]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_controls_wrap.cpp
make control children of a panel and not directly the frame
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d14a1e28
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d14a1e28 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d14a1e28 846
0085ce49
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
994141e6 1000
0085ce49
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
994141e6 1004
0085ce49
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d14a1e28 1008
0085ce49
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
4d5c3d91 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
4d5c3d91 1017
0085ce49 1018/* Runtime API */
15afbcd0 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
15afbcd0 1030
0085ce49 1031/* Runtime API implementation */
093d3ff1 1032
0085ce49 1033/* Error manipulation */
093d3ff1 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
15afbcd0
RD
1041}
1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
093d3ff1 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
093d3ff1 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
15afbcd0 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
c32bde28 1088 } else {
0085ce49
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
c32bde28 1100 }
0085ce49
RD
1101 return result;
1102#endif
994141e6 1103}
093d3ff1 1104
0085ce49 1105/* Unpack the argument tuple */
093d3ff1 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
15afbcd0 1672#endif
093d3ff1 1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
093d3ff1
RD
1685}
1686
1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
093d3ff1
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
1724
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
0085ce49
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
093d3ff1
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
093d3ff1
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1
RD
1880}
1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
093d3ff1
RD
1947 }
1948}
1949
0085ce49
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
0085ce49 1962 return 0;
093d3ff1
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
093d3ff1 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
093d3ff1 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
093d3ff1 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1
RD
2158}
2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
093d3ff1 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
093d3ff1 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
093d3ff1 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
093d3ff1 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
093d3ff1 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
093d3ff1 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_bool swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2497#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499#define SWIGTYPE_p_wxComboBox swig_types[33]
2500#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501#define SWIGTYPE_p_wxContextHelp swig_types[35]
2502#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504#define SWIGTYPE_p_wxControl swig_types[38]
2505#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506#define SWIGTYPE_p_wxCursor swig_types[40]
2507#define SWIGTYPE_p_wxDC swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510#define SWIGTYPE_p_wxDateTime swig_types[44]
2511#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvent swig_types[51]
2518#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519#define SWIGTYPE_p_wxFSFile swig_types[53]
2520#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522#define SWIGTYPE_p_wxFileSystem swig_types[56]
2523#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525#define SWIGTYPE_p_wxFont swig_types[59]
2526#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGauge swig_types[64]
2531#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534#define SWIGTYPE_p_wxGridSizer swig_types[68]
2535#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539#define SWIGTYPE_p_wxICOHandler swig_types[73]
2540#define SWIGTYPE_p_wxIcon swig_types[74]
2541#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543#define SWIGTYPE_p_wxImage swig_types[77]
2544#define SWIGTYPE_p_wxImageHandler swig_types[78]
2545#define SWIGTYPE_p_wxImageList swig_types[79]
2546#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548#define SWIGTYPE_p_wxItemContainer swig_types[82]
2549#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552#define SWIGTYPE_p_wxListBox swig_types[86]
2553#define SWIGTYPE_p_wxListEvent swig_types[87]
2554#define SWIGTYPE_p_wxListItem swig_types[88]
2555#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556#define SWIGTYPE_p_wxListView swig_types[90]
2557#define SWIGTYPE_p_wxListbook swig_types[91]
2558#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561#define SWIGTYPE_p_wxMenu swig_types[95]
2562#define SWIGTYPE_p_wxMenuBar swig_types[96]
2563#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564#define SWIGTYPE_p_wxMenuItem swig_types[98]
2565#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
34e0a3bb
RD
2566#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseEvent swig_types[101]
2568#define SWIGTYPE_p_wxMoveEvent swig_types[102]
2569#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[103]
2570#define SWIGTYPE_p_wxNcPaintEvent swig_types[104]
2571#define SWIGTYPE_p_wxNotebook swig_types[105]
2572#define SWIGTYPE_p_wxNotebookEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotifyEvent swig_types[107]
2574#define SWIGTYPE_p_wxObject swig_types[108]
2575#define SWIGTYPE_p_wxPCXHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNGHandler swig_types[110]
2577#define SWIGTYPE_p_wxPNMHandler swig_types[111]
2578#define SWIGTYPE_p_wxPaintEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[113]
2580#define SWIGTYPE_p_wxPaperSize swig_types[114]
2581#define SWIGTYPE_p_wxPickerBase swig_types[115]
2582#define SWIGTYPE_p_wxPoint swig_types[116]
2583#define SWIGTYPE_p_wxPyApp swig_types[117]
2584#define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
2585#define SWIGTYPE_p_wxPyControl swig_types[119]
2586#define SWIGTYPE_p_wxPyEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyImageHandler swig_types[121]
2588#define SWIGTYPE_p_wxPyListCtrl swig_types[122]
2589#define SWIGTYPE_p_wxPySizer swig_types[123]
2590#define SWIGTYPE_p_wxPyTreeCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPyTreeItemData swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRadioBox swig_types[128]
2595#define SWIGTYPE_p_wxRadioButton swig_types[129]
2596#define SWIGTYPE_p_wxRect swig_types[130]
2597#define SWIGTYPE_p_wxScrollBar swig_types[131]
2598#define SWIGTYPE_p_wxScrollEvent swig_types[132]
2599#define SWIGTYPE_p_wxScrollWinEvent swig_types[133]
2600#define SWIGTYPE_p_wxSetCursorEvent swig_types[134]
2601#define SWIGTYPE_p_wxShowEvent swig_types[135]
2602#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[136]
2603#define SWIGTYPE_p_wxSize swig_types[137]
2604#define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605#define SWIGTYPE_p_wxSizer swig_types[139]
2606#define SWIGTYPE_p_wxSizerItem swig_types[140]
2607#define SWIGTYPE_p_wxSlider swig_types[141]
2608#define SWIGTYPE_p_wxSpinButton swig_types[142]
2609#define SWIGTYPE_p_wxSpinCtrl swig_types[143]
2610#define SWIGTYPE_p_wxSpinEvent swig_types[144]
2611#define SWIGTYPE_p_wxStaticBitmap swig_types[145]
2612#define SWIGTYPE_p_wxStaticBox swig_types[146]
2613#define SWIGTYPE_p_wxStaticBoxSizer swig_types[147]
2614#define SWIGTYPE_p_wxStaticLine swig_types[148]
2615#define SWIGTYPE_p_wxStaticText swig_types[149]
2616#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[150]
2617#define SWIGTYPE_p_wxString swig_types[151]
2618#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[152]
2619#define SWIGTYPE_p_wxTIFFHandler swig_types[153]
2620#define SWIGTYPE_p_wxTextAttr swig_types[154]
2621#define SWIGTYPE_p_wxTextCtrl swig_types[155]
2622#define SWIGTYPE_p_wxTextUrlEvent swig_types[156]
2623#define SWIGTYPE_p_wxToggleButton swig_types[157]
2624#define SWIGTYPE_p_wxToolBar swig_types[158]
2625#define SWIGTYPE_p_wxToolBarBase swig_types[159]
2626#define SWIGTYPE_p_wxToolBarToolBase swig_types[160]
2627#define SWIGTYPE_p_wxToolbook swig_types[161]
2628#define SWIGTYPE_p_wxToolbookEvent swig_types[162]
2629#define SWIGTYPE_p_wxTreeEvent swig_types[163]
2630#define SWIGTYPE_p_wxTreeItemId swig_types[164]
2631#define SWIGTYPE_p_wxTreebook swig_types[165]
2632#define SWIGTYPE_p_wxTreebookEvent swig_types[166]
2633#define SWIGTYPE_p_wxUpdateUIEvent swig_types[167]
2634#define SWIGTYPE_p_wxValidator swig_types[168]
2635#define SWIGTYPE_p_wxVisualAttributes swig_types[169]
2636#define SWIGTYPE_p_wxWindow swig_types[170]
2637#define SWIGTYPE_p_wxWindowBase swig_types[171]
2638#define SWIGTYPE_p_wxWindowCreateEvent swig_types[172]
2639#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[173]
2640#define SWIGTYPE_p_wxXPMHandler swig_types[174]
2641static swig_type_info *swig_types[176];
2642static swig_module_info swig_module = {swig_types, 175, 0, 0, 0, 0};
32fe5131
RD
2643#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2644#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2645
2646/* -------- TYPES TABLE (END) -------- */
2647
0085ce49
RD
2648#if (PY_VERSION_HEX <= 0x02000000)
2649# if !defined(SWIG_PYTHON_CLASSIC)
2650# error "This python version requires to use swig with the '-classic' option"
2651# endif
2652#endif
2653#if (PY_VERSION_HEX <= 0x02020000)
2654# error "This python version requires to use swig with the '-nomodern' option"
2655#endif
2656#if (PY_VERSION_HEX <= 0x02020000)
2657# error "This python version requires to use swig with the '-nomodernargs' option"
2658#endif
2659#ifndef METH_O
2660# error "This python version requires to use swig with the '-nofastunpack' option"
2661#endif
093d3ff1
RD
2662
2663/*-----------------------------------------------
2664 @(target):= _controls_.so
2665 ------------------------------------------------*/
2666#define SWIG_init init_controls_
2667
2668#define SWIG_name "_controls_"
2669
0085ce49
RD
2670#define SWIGVERSION 0x010329
2671
2672
2673#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2674#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2675
2676
2677#include <stdexcept>
2678
2679
2680namespace swig {
2681 class PyObject_ptr {
2682 protected:
2683 PyObject *_obj;
2684
2685 public:
2686 PyObject_ptr() :_obj(0)
2687 {
2688 }
2689
2690 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2691 {
2692 Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2696 {
2697 if (initial_ref) Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr & operator=(const PyObject_ptr& item)
2701 {
2702 Py_XINCREF(item._obj);
2703 Py_XDECREF(_obj);
2704 _obj = item._obj;
2705 return *this;
2706 }
2707
2708 ~PyObject_ptr()
2709 {
2710 Py_XDECREF(_obj);
2711 }
2712
2713 operator PyObject *() const
2714 {
2715 return _obj;
2716 }
2717
2718 PyObject *operator->() const
2719 {
2720 return _obj;
2721 }
2722 };
2723}
2724
2725
2726namespace swig {
2727 struct PyObject_var : PyObject_ptr {
2728 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2729
2730 PyObject_var & operator = (PyObject* obj)
2731 {
2732 Py_XDECREF(_obj);
2733 _obj = obj;
2734 return *this;
2735 }
2736 };
2737}
2738
2739
093d3ff1
RD
2740#include "wx/wxPython/wxPython.h"
2741#include "wx/wxPython/pyclasses.h"
2742
2743 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2744 static const wxString wxPyEmptyString(wxEmptyString);
2745 static const wxString wxPyControlNameStr(wxControlNameStr);
2746
2747 const wxArrayString wxPyEmptyStringArray;
2748
2749 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2750
0085ce49 2751 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2752
2753
0085ce49
RD
2754SWIGINTERNINLINE PyObject *
2755SWIG_From_int (int value)
2756{
2757 return SWIG_From_long (value);
2758}
093d3ff1
RD
2759
2760
0085ce49
RD
2761#include <limits.h>
2762#ifndef LLONG_MIN
2763# define LLONG_MIN LONG_LONG_MIN
2764#endif
2765#ifndef LLONG_MAX
2766# define LLONG_MAX LONG_LONG_MAX
2767#endif
2768#ifndef ULLONG_MAX
2769# define ULLONG_MAX ULONG_LONG_MAX
2770#endif
093d3ff1
RD
2771
2772
2773SWIGINTERN int
0085ce49 2774SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2775{
2776 if (PyNumber_Check(obj)) {
2777 if (val) *val = PyInt_AsLong(obj);
0085ce49 2778 return SWIG_OK;
093d3ff1 2779 }
0085ce49 2780 return SWIG_TypeError;
093d3ff1
RD
2781}
2782
2783
093d3ff1 2784SWIGINTERN int
0085ce49
RD
2785SWIG_AsVal_int (PyObject * obj, int *val)
2786{
093d3ff1 2787 long v;
0085ce49
RD
2788 int res = SWIG_AsVal_long (obj, &v);
2789 if (SWIG_IsOK(res)) {
2790 if ((v < INT_MIN || v > INT_MAX)) {
2791 return SWIG_OverflowError;
093d3ff1 2792 } else {
0085ce49 2793 if (val) *val = static_cast< int >(v);
093d3ff1 2794 }
0085ce49
RD
2795 }
2796 return res;
994141e6
RD
2797}
2798
c32bde28 2799 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
15afbcd0 2800
093d3ff1 2801SWIGINTERN int
0085ce49 2802SWIG_AsVal_bool (PyObject *obj, bool *val)
15afbcd0 2803{
c32bde28
RD
2804 if (obj == Py_True) {
2805 if (val) *val = true;
0085ce49
RD
2806 return SWIG_OK;
2807 } else if (obj == Py_False) {
c32bde28 2808 if (val) *val = false;
0085ce49 2809 return SWIG_OK;
093d3ff1 2810 } else {
0085ce49
RD
2811 long v = 0;
2812 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2813 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2814 return res;
c32bde28 2815 }
15afbcd0
RD
2816}
2817
b2dc1044
RD
2818 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2819 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2820 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2821 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2822 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2823 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
d14a1e28
RD
2824
2825#include <wx/checklst.h>
d14a1e28 2826
b2dc1044 2827 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
0085ce49 2828SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2829 if (clientData)
2830 {
d14a1e28
RD
2831 wxPyClientData* data = new wxPyClientData(clientData);
2832 self->Insert(item, pos, data);
e9d6f3a4
RD
2833 }
2834 else
d14a1e28
RD
2835 self->Insert(item, pos);
2836 }
50f151d7
RD
2837
2838SWIGINTERN int
2839SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2840{
2841 long v = 0;
2842 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2843 return SWIG_TypeError;
2844 }
2845 else if (val)
2846 *val = (unsigned long)v;
2847 return SWIG_OK;
2848}
2849
2850
2851SWIGINTERN int
2852SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2853{
2854 unsigned long v;
2855 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2856 if (SWIG_IsOK(res)) {
2857 if ((v > UINT_MAX)) {
2858 return SWIG_OverflowError;
2859 } else {
2860 if (val) *val = static_cast< unsigned int >(v);
2861 }
2862 }
2863 return res;
2864}
2865
0085ce49 2866SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2867 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2868 wxArrayInt lst;
2869 self->GetSelections(lst);
2870 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2871 for (size_t i=0; i<lst.GetCount(); i++)
2872 {
7e08d4ef
RD
2873 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2874 }
e9d6f3a4 2875 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2876 return tup;
2877 }
0085ce49 2878SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2879 #ifdef __WXMSW__
2880 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2881 self->GetItem(item)->SetTextColour(c);
2882 #endif
2883 }
0085ce49 2884SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetBackgroundColour(c);
2888 #endif
2889 }
0085ce49 2890SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
c3eb6258
RD
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetFont(f);
2894 #endif
2895 }
b2dc1044 2896 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
0085ce49 2897SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d14a1e28
RD
2898 self->AppendText(text);
2899 }
0085ce49 2900SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d14a1e28
RD
2901 return self->GetValue().Mid(from, to - from);
2902 }
b2dc1044
RD
2903 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2904 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
33b885b9 2905 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
b2dc1044
RD
2906 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2907 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
75219dcb
RD
2908
2909SWIGINTERNINLINE PyObject*
2910SWIG_From_unsigned_SS_long (unsigned long value)
2911{
2912 return (value > LONG_MAX) ?
2913 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2914}
2915
2916
2917SWIGINTERNINLINE PyObject *
2918SWIG_From_size_t (size_t value)
2919{
2920 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2921}
2922
50f151d7
RD
2923
2924SWIGINTERNINLINE PyObject *
2925SWIG_From_unsigned_SS_int (unsigned int value)
2926{
2927 return SWIG_From_unsigned_SS_long (value);
2928}
2929
d14a1e28
RD
2930
2931#include <wx/slider.h>
2932
d14a1e28 2933
b2dc1044 2934 static const wxString wxPySliderNameStr(wxSliderNameStr);
33b885b9 2935 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
d14a1e28 2936
15afbcd0
RD
2937#if !wxUSE_TOGGLEBTN
2938// implement dummy items for platforms that don't have this class
d14a1e28
RD
2939
2940#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2941
2942class wxToggleButton : public wxControl
2943{
2944public:
2945 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2946 const wxPoint&, const wxSize&, long,
2947 const wxValidator&, const wxString&)
39f61e25 2948 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2949
2950 wxToggleButton()
39f61e25 2951 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2952};
2953#endif
2954
51b83b37 2955 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
994141e6 2956
7e08d4ef 2957SWIGINTERNINLINE int
0085ce49 2958SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2959{
7e08d4ef 2960 unsigned long v;
0085ce49
RD
2961 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2962 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2963 return res;
7e08d4ef 2964}
7e08d4ef 2965
b2dc1044 2966 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
0085ce49 2967SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d14a1e28
RD
2968 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2969 if (udata) {
2970 Py_INCREF(udata->m_obj);
2971 return udata->m_obj;
2972 } else {
2973 Py_INCREF(Py_None);
2974 return Py_None;
2975 }
2976 }
0085ce49 2977SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d14a1e28
RD
2978 self->SetClientData(new wxPyUserData(clientData));
2979 }
0085ce49 2980SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d14a1e28
RD
2981 wxPyUserData* udata = NULL;
2982 if (clientData && clientData != Py_None)
2983 udata = new wxPyUserData(clientData);
2984 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2985 shortHelp, longHelp, udata);
2986 }
0085ce49 2987SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d14a1e28
RD
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
0085ce49 2994SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d14a1e28
RD
2995 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2996 if (udata) {
2997 Py_INCREF(udata->m_obj);
2998 return udata->m_obj;
2999 } else {
3000 Py_INCREF(Py_None);
3001 return Py_None;
3002 }
3003 }
0085ce49 3004SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d14a1e28
RD
3005 self->SetToolClientData(id, new wxPyUserData(clientData));
3006 }
3007
3008#include <wx/listctrl.h>
3009
7557b9b5 3010 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
0085ce49 3011SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d14a1e28
RD
3012 // Python aware sorting function for wxPyListCtrl
3013 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3014 int retval = 0;
3015 PyObject* func = (PyObject*)funcPtr;
5a446332 3016 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3017
3018 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3019 PyObject* result = PyEval_CallObject(func, args);
3020 Py_DECREF(args);
3021 if (result) {
3022 retval = PyInt_AsLong(result);
3023 Py_DECREF(result);
3024 }
3025
4f89f6a3 3026 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3027 return retval;
3028 }
3029
3030 // C++ Version of a Python aware class
3031class wxPyListCtrl : public wxListCtrl {
32fe5131 3032 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d14a1e28
RD
3033public:
3034 wxPyListCtrl() : wxListCtrl() {}
3035 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3036 const wxPoint& pos,
3037 const wxSize& size,
3038 long style,
3039 const wxValidator& validator,
3040 const wxString& name) :
3041 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3042
3043 bool Create(wxWindow* parent, wxWindowID id,
3044 const wxPoint& pos,
3045 const wxSize& size,
3046 long style,
3047 const wxValidator& validator,
3048 const wxString& name) {
3049 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3050 }
3051
3052 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d14a1e28
RD
3053 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3054
84f85550
RD
3055 // use the virtual version to avoid a confusing assert in the base class
3056 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3057 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3058
d14a1e28
RD
3059 PYPRIVATE;
3060};
3061
3062IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3063
3064IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d14a1e28 3065IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3066IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3067IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3068
d14a1e28 3069
0085ce49 3070SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d14a1e28
RD
3071 wxListItem item;
3072 item.SetMask( wxLIST_MASK_STATE |
3073 wxLIST_MASK_TEXT |
3074 wxLIST_MASK_IMAGE |
3075 wxLIST_MASK_DATA |
3076 wxLIST_SET_ITEM |
3077 wxLIST_MASK_WIDTH |
3078 wxLIST_MASK_FORMAT
3079 );
3080 if (self->GetColumn(col, item))
3081 return new wxListItem(item);
3082 else
3083 return NULL;
3084 }
0085ce49 3085SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d14a1e28
RD
3086 wxListItem* info = new wxListItem;
3087 info->m_itemId = itemId;
3088 info->m_col = col;
3089 info->m_mask = 0xFFFF;
3090 self->GetItem(*info);
3091 return info;
3092 }
0085ce49 3093SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d14a1e28
RD
3094 wxPoint pos;
3095 self->GetItemPosition(item, pos);
3096 return pos;
3097 }
0085ce49 3098SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d14a1e28
RD
3099 wxRect rect;
3100 self->GetItemRect(item, rect, code);
3101 return rect;
3102 }
0085ce49 3103SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d14a1e28 3104 if (!PyCallable_Check(func))
ae8162c8 3105 return false;
d14a1e28
RD
3106 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3107 }
0085ce49 3108SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d14a1e28
RD
3109
3110
3111
3112 return (wxWindow*)self->m_mainWin;
3113
3114 }
3115
3116#include <wx/treectrl.h>
3117#include "wx/wxPython/pytree.h"
d14a1e28 3118
33b885b9 3119 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
0085ce49
RD
3120SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3121SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3122SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3123
3124 static wxTreeItemId wxNullTreeItemId;
3125
d14a1e28
RD
3126 // C++ version of Python aware wxTreeCtrl
3127class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3128 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d14a1e28
RD
3129public:
3130 wxPyTreeCtrl() : wxTreeCtrl() {}
3131 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3132 const wxPoint& pos,
3133 const wxSize& size,
3134 long style,
3135 const wxValidator& validator,
3136 const wxString& name) :
3137 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3138
3139 bool Create(wxWindow *parent, wxWindowID id,
3140 const wxPoint& pos,
3141 const wxSize& size,
3142 long style,
3143 const wxValidator& validator,
3144 const wxString& name) {
3145 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3146 }
3147
3148
3149 int OnCompareItems(const wxTreeItemId& item1,
3150 const wxTreeItemId& item2) {
3151 int rval = 0;
3152 bool found;
5a446332 3153 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3154 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3155 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3156 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d14a1e28
RD
3157 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3158 Py_DECREF(o1);
3159 Py_DECREF(o2);
3160 }
4f89f6a3 3161 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3162 if (! found)
3163 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3164 return rval;
3165 }
3166 PYPRIVATE;
3167};
3168
3169IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3170
3171
0085ce49 3172SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3173 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3174 if (data == NULL) {
3175 data = new wxPyTreeItemData();
3176 data->SetId(item); // set the id
3177 self->SetItemData(item, data);
3178 }
3179 return data;
3180 }
0085ce49 3181SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3182 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3183 if (data == NULL) {
3184 data = new wxPyTreeItemData();
3185 data->SetId(item); // set the id
3186 self->SetItemData(item, data);
3187 }
3188 return data->GetData();
3189 }
0085ce49 3190SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d14a1e28
RD
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
0085ce49 3194SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d14a1e28
RD
3195 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3196 if (data == NULL) {
3197 data = new wxPyTreeItemData(obj);
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 } else
3201 data->SetData(obj);
3202 }
0085ce49 3203SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3204 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3205 PyObject* rval = PyList_New(0);
3206 wxArrayTreeItemIds array;
3207 size_t num, x;
3208 num = self->GetSelections(array);
3209 for (x=0; x < num; x++) {
3210 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3211 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d14a1e28 3212 PyList_Append(rval, item);
1a10c483 3213 Py_DECREF(item);
d14a1e28 3214 }
4f89f6a3 3215 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3216 return rval;
3217 }
0085ce49 3218SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
58203fa6
RD
3219 void* cookie = 0;
3220 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3222 PyObject* tup = PyTuple_New(2);
ae8162c8 3223 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3224 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3225 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3226 return tup;
3227 }
0085ce49 3228SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
58203fa6 3229 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3230 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3231 PyObject* tup = PyTuple_New(2);
ae8162c8 3232 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3233 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3234 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3235 return tup;
3236 }
0085ce49 3237SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d14a1e28
RD
3238 wxRect rect;
3239 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3240 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3241 wxRect* r = new wxRect(rect);
ae8162c8 3242 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
4f89f6a3 3243 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3244 return val;
3245 }
3246 else
3247 RETURN_NONE();
3248 }
b2dc1044 3249 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3250
32fe5131 3251SWIGINTERNINLINE PyObject*
0085ce49 3252 SWIG_From_bool (bool value)
c32bde28 3253{
0085ce49 3254 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3255}
3256
d14a1e28
RD
3257 // C++ version of Python aware wxControl
3258class wxPyControl : public wxControl
3259{
3260 DECLARE_DYNAMIC_CLASS(wxPyControl)
3261public:
3262 wxPyControl() : wxControl() {}
3263 wxPyControl(wxWindow* parent, const wxWindowID id,
3264 const wxPoint& pos = wxDefaultPosition,
3265 const wxSize& size = wxDefaultSize,
3266 long style = 0,
3267 const wxValidator& validator=wxDefaultValidator,
3268 const wxString& name = wxPyControlNameStr)
3269 : wxControl(parent, id, pos, size, style, validator, name) {}
3270
db3e571a 3271 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d14a1e28 3272
976dbff5
RD
3273 bool DoEraseBackground(wxDC* dc) {
3274#ifdef __WXMSW__
3275 return wxWindow::DoEraseBackground(dc->GetHDC());
3276#else
3277 dc->SetBackground(wxBrush(GetBackgroundColour()));
3278 dc->Clear();
3279 return true;
3280#endif
3281 }
3282
d14a1e28
RD
3283 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3284 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3286 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3287
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3291
3292 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3293 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3294
3295 DEC_PYCALLBACK__(InitDialog);
3296 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3297 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3298 DEC_PYCALLBACK_BOOL_(Validate);
3299
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3301 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3302 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3303
3304 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3305 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3306
db3e571a 3307 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
db3e571a 3308 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4276dc52 3309
51b83b37
RD
3310 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3311
8d38bd1d
RD
3312 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3313
d14a1e28
RD
3314 PYPRIVATE;
3315};
3316
3317IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3318
3319IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3320IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3321IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3322IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3323
3324IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3325IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3326IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3327
3328IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3329IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3330
3331IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3332IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3333IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3334IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3335
3336IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3337IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3338IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3339
3340IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3341IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3342
db3e571a 3343IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
db3e571a 3344IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d14a1e28 3345
51b83b37 3346IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3347
3348IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3349
d14a1e28
RD
3350
3351
0085ce49 3352SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
e811c8ce
RD
3353
3354#include <wx/generic/dragimgg.h>
3355
53aa7709 3356 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
0085ce49 3357SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3358 wxDateTime rv;
3359 self->GetRange(&rv, NULL);
3360 return rv;
3361 }
0085ce49 3362SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3363 wxDateTime rv;
3364 self->GetRange(NULL, &rv);
3365 return rv;
3366 }
704eda0c 3367 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3368 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3369 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3370 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3371 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3372 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3373 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3374 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
d14a1e28
RD
3375#ifdef __cplusplus
3376extern "C" {
3377#endif
0085ce49
RD
3378SWIGINTERN int ButtonNameStr_set(PyObject *) {
3379 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3380 return 1;
b2dc1044
RD
3381}
3382
3383
0085ce49
RD
3384SWIGINTERN PyObject *ButtonNameStr_get(void) {
3385 PyObject *pyobj = 0;
3386
3387 {
b2dc1044 3388#if wxUSE_UNICODE
0085ce49 3389 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3390#else
0085ce49 3391 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3392#endif
0085ce49
RD
3393 }
3394 return pyobj;
3395}
3396
3397
3398SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxWindow *arg1 = (wxWindow *) 0 ;
3401 int arg2 = (int) -1 ;
3402 wxString const &arg3_defvalue = wxPyEmptyString ;
3403 wxString *arg3 = (wxString *) &arg3_defvalue ;
3404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3406 wxSize const &arg5_defvalue = wxDefaultSize ;
3407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3408 long arg6 = (long) 0 ;
3409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3411 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3412 wxString *arg8 = (wxString *) &arg8_defvalue ;
3413 wxButton *result = 0 ;
3414 void *argp1 = 0 ;
3415 int res1 = 0 ;
3416 int val2 ;
3417 int ecode2 = 0 ;
3418 bool temp3 = false ;
3419 wxPoint temp4 ;
3420 wxSize temp5 ;
3421 long val6 ;
3422 int ecode6 = 0 ;
3423 void *argp7 = 0 ;
3424 int res7 = 0 ;
3425 bool temp8 = false ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3442 }
3443 arg1 = reinterpret_cast< wxWindow * >(argp1);
3444 if (obj1) {
3445 ecode2 = SWIG_AsVal_int(obj1, &val2);
3446 if (!SWIG_IsOK(ecode2)) {
3447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3448 }
3449 arg2 = static_cast< int >(val2);
3450 }
3451 if (obj2) {
d14a1e28 3452 {
0085ce49
RD
3453 arg3 = wxString_in_helper(obj2);
3454 if (arg3 == NULL) SWIG_fail;
3455 temp3 = true;
d14a1e28 3456 }
0085ce49
RD
3457 }
3458 if (obj3) {
d14a1e28 3459 {
0085ce49
RD
3460 arg4 = &temp4;
3461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3462 }
0085ce49
RD
3463 }
3464 if (obj4) {
d14a1e28 3465 {
0085ce49
RD
3466 arg5 = &temp5;
3467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3468 }
0085ce49
RD
3469 }
3470 if (obj5) {
3471 ecode6 = SWIG_AsVal_long(obj5, &val6);
3472 if (!SWIG_IsOK(ecode6)) {
3473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3474 }
3475 arg6 = static_cast< long >(val6);
3476 }
3477 if (obj6) {
3478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3479 if (!SWIG_IsOK(res7)) {
3480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3481 }
0085ce49
RD
3482 if (!argp7) {
3483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3484 }
0085ce49
RD
3485 arg7 = reinterpret_cast< wxValidator * >(argp7);
3486 }
3487 if (obj7) {
d14a1e28 3488 {
0085ce49
RD
3489 arg8 = wxString_in_helper(obj7);
3490 if (arg8 == NULL) SWIG_fail;
3491 temp8 = true;
d14a1e28 3492 }
0085ce49
RD
3493 }
3494 {
3495 if (!wxPyCheckForApp()) SWIG_fail;
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3502 {
3503 if (temp3)
3504 delete arg3;
3505 }
3506 {
3507 if (temp8)
3508 delete arg8;
3509 }
3510 return resultobj;
3511fail:
3512 {
3513 if (temp3)
3514 delete arg3;
3515 }
3516 {
3517 if (temp8)
3518 delete arg8;
3519 }
3520 return NULL;
d14a1e28
RD
3521}
3522
3523
0085ce49
RD
3524SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3525 PyObject *resultobj = 0;
3526 wxButton *result = 0 ;
3527
3528 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3529 {
3530 if (!wxPyCheckForApp()) SWIG_fail;
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (wxButton *)new wxButton();
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3537 return resultobj;
3538fail:
3539 return NULL;
3540}
3541
3542
3543SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj = 0;
3545 wxButton *arg1 = (wxButton *) 0 ;
3546 wxWindow *arg2 = (wxWindow *) 0 ;
3547 int arg3 = (int) -1 ;
3548 wxString const &arg4_defvalue = wxPyEmptyString ;
3549 wxString *arg4 = (wxString *) &arg4_defvalue ;
3550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3552 wxSize const &arg6_defvalue = wxDefaultSize ;
3553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3554 long arg7 = (long) 0 ;
3555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3557 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3558 wxString *arg9 = (wxString *) &arg9_defvalue ;
3559 bool result;
3560 void *argp1 = 0 ;
3561 int res1 = 0 ;
3562 void *argp2 = 0 ;
3563 int res2 = 0 ;
3564 int val3 ;
3565 int ecode3 = 0 ;
3566 bool temp4 = false ;
3567 wxPoint temp5 ;
3568 wxSize temp6 ;
3569 long val7 ;
3570 int ecode7 = 0 ;
3571 void *argp8 = 0 ;
3572 int res8 = 0 ;
3573 bool temp9 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 PyObject * obj2 = 0 ;
3577 PyObject * obj3 = 0 ;
3578 PyObject * obj4 = 0 ;
3579 PyObject * obj5 = 0 ;
3580 PyObject * obj6 = 0 ;
3581 PyObject * obj7 = 0 ;
3582 PyObject * obj8 = 0 ;
3583 char * kwnames[] = {
3584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3585 };
3586
3587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3591 }
3592 arg1 = reinterpret_cast< wxButton * >(argp1);
3593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3594 if (!SWIG_IsOK(res2)) {
3595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3596 }
3597 arg2 = reinterpret_cast< wxWindow * >(argp2);
3598 if (obj2) {
3599 ecode3 = SWIG_AsVal_int(obj2, &val3);
3600 if (!SWIG_IsOK(ecode3)) {
3601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3602 }
3603 arg3 = static_cast< int >(val3);
3604 }
3605 if (obj3) {
d14a1e28 3606 {
0085ce49
RD
3607 arg4 = wxString_in_helper(obj3);
3608 if (arg4 == NULL) SWIG_fail;
3609 temp4 = true;
d14a1e28 3610 }
0085ce49
RD
3611 }
3612 if (obj4) {
4f89f6a3 3613 {
0085ce49
RD
3614 arg5 = &temp5;
3615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 3616 }
0085ce49
RD
3617 }
3618 if (obj5) {
d14a1e28 3619 {
0085ce49
RD
3620 arg6 = &temp6;
3621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 3622 }
0085ce49
RD
3623 }
3624 if (obj6) {
3625 ecode7 = SWIG_AsVal_long(obj6, &val7);
3626 if (!SWIG_IsOK(ecode7)) {
3627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3628 }
3629 arg7 = static_cast< long >(val7);
3630 }
3631 if (obj7) {
3632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3633 if (!SWIG_IsOK(res8)) {
3634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3635 }
0085ce49
RD
3636 if (!argp8) {
3637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3638 }
0085ce49
RD
3639 arg8 = reinterpret_cast< wxValidator * >(argp8);
3640 }
3641 if (obj8) {
d14a1e28 3642 {
0085ce49
RD
3643 arg9 = wxString_in_helper(obj8);
3644 if (arg9 == NULL) SWIG_fail;
3645 temp9 = true;
d14a1e28 3646 }
0085ce49
RD
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 {
3655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3656 }
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 {
3662 if (temp9)
3663 delete arg9;
3664 }
3665 return resultobj;
3666fail:
3667 {
3668 if (temp4)
3669 delete arg4;
3670 }
3671 {
3672 if (temp9)
3673 delete arg9;
3674 }
3675 return NULL;
d14a1e28
RD
3676}
3677
3678
0085ce49
RD
3679SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxButton *arg1 = (wxButton *) 0 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 PyObject *swig_obj[1] ;
3685
3686 if (!args) SWIG_fail;
3687 swig_obj[0] = args;
3688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3691 }
3692 arg1 = reinterpret_cast< wxButton * >(argp1);
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 (arg1)->SetDefault();
3696 wxPyEndAllowThreads(__tstate);
3697 if (PyErr_Occurred()) SWIG_fail;
3698 }
3699 resultobj = SWIG_Py_Void();
3700 return resultobj;
3701fail:
3702 return NULL;
d14a1e28
RD
3703}
3704
3705
0085ce49
RD
3706SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxSize result;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = wxButton::GetDefaultSize();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3718 return resultobj;
3719fail:
3720 return NULL;
3721}
3722
3723
3724SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = 0;
3726 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3727 SwigValueWrapper<wxVisualAttributes > result;
3728 int val1 ;
3729 int ecode1 = 0 ;
3730 PyObject * obj0 = 0 ;
3731 char * kwnames[] = {
3732 (char *) "variant", NULL
3733 };
3734
3735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3736 if (obj0) {
3737 ecode1 = SWIG_AsVal_int(obj0, &val1);
3738 if (!SWIG_IsOK(ecode1)) {
3739 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3740 }
3741 arg1 = static_cast< wxWindowVariant >(val1);
3742 }
3743 {
3744 if (!wxPyCheckForApp()) SWIG_fail;
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = wxButton::GetClassDefaultAttributes(arg1);
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3751 return resultobj;
3752fail:
3753 return NULL;
3754}
3755
3756
3757SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *obj;
3759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3760 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3761 return SWIG_Py_Void();
3762}
3763
3764SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3765 return SWIG_Python_InitShadowInstance(args);
3766}
3767
3768SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj = 0;
3770 wxWindow *arg1 = (wxWindow *) 0 ;
3771 int arg2 = (int) -1 ;
3772 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3773 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3776 wxSize const &arg5_defvalue = wxDefaultSize ;
3777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3778 long arg6 = (long) wxBU_AUTODRAW ;
3779 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3780 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3781 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3782 wxString *arg8 = (wxString *) &arg8_defvalue ;
3783 wxBitmapButton *result = 0 ;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 int val2 ;
3787 int ecode2 = 0 ;
3788 void *argp3 = 0 ;
3789 int res3 = 0 ;
3790 wxPoint temp4 ;
3791 wxSize temp5 ;
3792 long val6 ;
3793 int ecode6 = 0 ;
3794 void *argp7 = 0 ;
3795 int res7 = 0 ;
3796 bool temp8 = false ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 PyObject * obj2 = 0 ;
3800 PyObject * obj3 = 0 ;
3801 PyObject * obj4 = 0 ;
3802 PyObject * obj5 = 0 ;
3803 PyObject * obj6 = 0 ;
3804 PyObject * obj7 = 0 ;
3805 char * kwnames[] = {
3806 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3807 };
3808
3809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3811 if (!SWIG_IsOK(res1)) {
3812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3813 }
3814 arg1 = reinterpret_cast< wxWindow * >(argp1);
3815 if (obj1) {
3816 ecode2 = SWIG_AsVal_int(obj1, &val2);
3817 if (!SWIG_IsOK(ecode2)) {
3818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3819 }
3820 arg2 = static_cast< int >(val2);
3821 }
3822 if (obj2) {
3823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3824 if (!SWIG_IsOK(res3)) {
3825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3826 }
3827 if (!argp3) {
3828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3831 }
3832 if (obj3) {
d14a1e28 3833 {
0085ce49
RD
3834 arg4 = &temp4;
3835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3836 }
0085ce49
RD
3837 }
3838 if (obj4) {
d14a1e28 3839 {
0085ce49
RD
3840 arg5 = &temp5;
3841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3842 }
0085ce49
RD
3843 }
3844 if (obj5) {
3845 ecode6 = SWIG_AsVal_long(obj5, &val6);
3846 if (!SWIG_IsOK(ecode6)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3848 }
3849 arg6 = static_cast< long >(val6);
3850 }
3851 if (obj6) {
3852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3853 if (!SWIG_IsOK(res7)) {
3854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3855 }
0085ce49
RD
3856 if (!argp7) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3858 }
0085ce49
RD
3859 arg7 = reinterpret_cast< wxValidator * >(argp7);
3860 }
3861 if (obj7) {
22bfe96c 3862 {
0085ce49
RD
3863 arg8 = wxString_in_helper(obj7);
3864 if (arg8 == NULL) SWIG_fail;
3865 temp8 = true;
22bfe96c 3866 }
0085ce49
RD
3867 }
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3876 {
3877 if (temp8)
3878 delete arg8;
3879 }
3880 return resultobj;
3881fail:
3882 {
3883 if (temp8)
3884 delete arg8;
3885 }
3886 return NULL;
22bfe96c
RD
3887}
3888
3889
0085ce49
RD
3890SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891 PyObject *resultobj = 0;
3892 wxBitmapButton *result = 0 ;
3893
3894 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxBitmapButton *)new wxBitmapButton();
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3903 return resultobj;
3904fail:
3905 return NULL;
3906}
3907
3908
3909SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj = 0;
3911 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3912 wxWindow *arg2 = (wxWindow *) 0 ;
3913 int arg3 = (int) -1 ;
3914 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3915 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3916 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3917 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3918 wxSize const &arg6_defvalue = wxDefaultSize ;
3919 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3920 long arg7 = (long) wxBU_AUTODRAW ;
3921 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3922 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3923 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3924 wxString *arg9 = (wxString *) &arg9_defvalue ;
3925 bool result;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 void *argp2 = 0 ;
3929 int res2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 void *argp4 = 0 ;
3933 int res4 = 0 ;
3934 wxPoint temp5 ;
3935 wxSize temp6 ;
3936 long val7 ;
3937 int ecode7 = 0 ;
3938 void *argp8 = 0 ;
3939 int res8 = 0 ;
3940 bool temp9 = false ;
3941 PyObject * obj0 = 0 ;
3942 PyObject * obj1 = 0 ;
3943 PyObject * obj2 = 0 ;
3944 PyObject * obj3 = 0 ;
3945 PyObject * obj4 = 0 ;
3946 PyObject * obj5 = 0 ;
3947 PyObject * obj6 = 0 ;
3948 PyObject * obj7 = 0 ;
3949 PyObject * obj8 = 0 ;
3950 char * kwnames[] = {
3951 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3952 };
3953
3954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3958 }
3959 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3960 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3961 if (!SWIG_IsOK(res2)) {
3962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3963 }
3964 arg2 = reinterpret_cast< wxWindow * >(argp2);
3965 if (obj2) {
3966 ecode3 = SWIG_AsVal_int(obj2, &val3);
3967 if (!SWIG_IsOK(ecode3)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3969 }
3970 arg3 = static_cast< int >(val3);
3971 }
3972 if (obj3) {
3973 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3974 if (!SWIG_IsOK(res4)) {
3975 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3976 }
0085ce49
RD
3977 if (!argp4) {
3978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 3979 }
0085ce49
RD
3980 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3981 }
3982 if (obj4) {
d14a1e28 3983 {
0085ce49
RD
3984 arg5 = &temp5;
3985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3986 }
0085ce49
RD
3987 }
3988 if (obj5) {
d14a1e28 3989 {
0085ce49
RD
3990 arg6 = &temp6;
3991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3992 }
3993 }
3994 if (obj6) {
3995 ecode7 = SWIG_AsVal_long(obj6, &val7);
3996 if (!SWIG_IsOK(ecode7)) {
3997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3998 }
3999 arg7 = static_cast< long >(val7);
4000 }
4001 if (obj7) {
4002 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4003 if (!SWIG_IsOK(res8)) {
4004 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4005 }
4006 if (!argp8) {
4007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4008 }
0085ce49
RD
4009 arg8 = reinterpret_cast< wxValidator * >(argp8);
4010 }
4011 if (obj8) {
d14a1e28 4012 {
0085ce49
RD
4013 arg9 = wxString_in_helper(obj8);
4014 if (arg9 == NULL) SWIG_fail;
4015 temp9 = true;
d14a1e28 4016 }
0085ce49
RD
4017 }
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 {
4025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4026 }
4027 {
4028 if (temp9)
4029 delete arg9;
4030 }
4031 return resultobj;
4032fail:
4033 {
4034 if (temp9)
4035 delete arg9;
4036 }
4037 return NULL;
d14a1e28
RD
4038}
4039
4040
0085ce49
RD
4041SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 PyObject *resultobj = 0;
4043 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4044 wxBitmap result;
4045 void *argp1 = 0 ;
4046 int res1 = 0 ;
4047 PyObject *swig_obj[1] ;
4048
4049 if (!args) SWIG_fail;
4050 swig_obj[0] = args;
4051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4052 if (!SWIG_IsOK(res1)) {
4053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4054 }
4055 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetBitmapLabel();
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4063 return resultobj;
4064fail:
4065 return NULL;
d14a1e28
RD
4066}
4067
4068
0085ce49
RD
4069SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *resultobj = 0;
4071 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4072 wxBitmap result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject *swig_obj[1] ;
4076
4077 if (!args) SWIG_fail;
4078 swig_obj[0] = args;
4079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4080 if (!SWIG_IsOK(res1)) {
4081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4082 }
4083 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4084 {
4085 PyThreadState* __tstate = wxPyBeginAllowThreads();
4086 result = (arg1)->GetBitmapDisabled();
4087 wxPyEndAllowThreads(__tstate);
4088 if (PyErr_Occurred()) SWIG_fail;
4089 }
4090 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4091 return resultobj;
4092fail:
4093 return NULL;
d14a1e28
RD
4094}
4095
4096
0085ce49
RD
4097SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 PyObject *resultobj = 0;
4099 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4100 wxBitmap result;
4101 void *argp1 = 0 ;
4102 int res1 = 0 ;
4103 PyObject *swig_obj[1] ;
4104
4105 if (!args) SWIG_fail;
4106 swig_obj[0] = args;
4107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4108 if (!SWIG_IsOK(res1)) {
4109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4110 }
4111 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (arg1)->GetBitmapFocus();
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4119 return resultobj;
4120fail:
4121 return NULL;
d14a1e28
RD
4122}
4123
4124
0085ce49
RD
4125SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4126 PyObject *resultobj = 0;
4127 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4128 wxBitmap result;
4129 void *argp1 = 0 ;
4130 int res1 = 0 ;
4131 PyObject *swig_obj[1] ;
4132
4133 if (!args) SWIG_fail;
4134 swig_obj[0] = args;
4135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4138 }
4139 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 result = (arg1)->GetBitmapSelected();
4143 wxPyEndAllowThreads(__tstate);
4144 if (PyErr_Occurred()) SWIG_fail;
4145 }
4146 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4147 return resultobj;
4148fail:
4149 return NULL;
d14a1e28
RD
4150}
4151
4152
0085ce49
RD
4153SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4156 wxBitmap result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4166 }
4167 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (arg1)->GetBitmapHover();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4175 return resultobj;
4176fail:
4177 return NULL;
4178}
4179
4180
4181SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4184 wxBitmap *arg2 = 0 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 void *argp2 = 0 ;
4188 int res2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "bitmap", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4199 }
4200 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4202 if (!SWIG_IsOK(res2)) {
4203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4204 }
4205 if (!argp2) {
4206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217fail:
4218 return NULL;
4219}
4220
4221
4222SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4225 wxBitmap *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 void *argp2 = 0 ;
4229 int res2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char * kwnames[] = {
4233 (char *) "self",(char *) "bitmap", NULL
4234 };
4235
4236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4238 if (!SWIG_IsOK(res1)) {
4239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4240 }
4241 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4243 if (!SWIG_IsOK(res2)) {
4244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4245 }
4246 if (!argp2) {
4247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = SWIG_Py_Void();
4257 return resultobj;
4258fail:
4259 return NULL;
4260}
4261
4262
4263SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj = 0;
4265 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4266 wxBitmap *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char * kwnames[] = {
4274 (char *) "self",(char *) "bitmap", NULL
4275 };
4276
4277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4281 }
4282 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4284 if (!SWIG_IsOK(res2)) {
4285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4286 }
4287 if (!argp2) {
4288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299fail:
4300 return NULL;
4301}
4302
4303
4304SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4305 PyObject *resultobj = 0;
4306 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4307 wxBitmap *arg2 = 0 ;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 void *argp2 = 0 ;
4311 int res2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char * kwnames[] = {
4315 (char *) "self",(char *) "bitmap", NULL
4316 };
4317
4318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4322 }
4323 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4325 if (!SWIG_IsOK(res2)) {
4326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4327 }
4328 if (!argp2) {
4329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_Py_Void();
4339 return resultobj;
4340fail:
4341 return NULL;
4342}
4343
4344
4345SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4348 wxBitmap *arg2 = 0 ;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 void *argp2 = 0 ;
4352 int res2 = 0 ;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char * kwnames[] = {
4356 (char *) "self",(char *) "hover", NULL
4357 };
4358
4359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4363 }
4364 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4366 if (!SWIG_IsOK(res2)) {
4367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4368 }
4369 if (!argp2) {
4370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_Py_Void();
4380 return resultobj;
4381fail:
4382 return NULL;
4383}
4384
4385
4386SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4389 int arg2 ;
4390 int arg3 ;
4391 void *argp1 = 0 ;
4392 int res1 = 0 ;
4393 int val2 ;
4394 int ecode2 = 0 ;
4395 int val3 ;
4396 int ecode3 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "x",(char *) "y", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4408 }
4409 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 ecode3 = SWIG_AsVal_int(obj2, &val3);
4416 if (!SWIG_IsOK(ecode3)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4418 }
4419 arg3 = static_cast< int >(val3);
4420 {
4421 PyThreadState* __tstate = wxPyBeginAllowThreads();
4422 (arg1)->SetMargins(arg2,arg3);
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428fail:
4429 return NULL;
d14a1e28
RD
4430}
4431
4432
0085ce49
RD
4433SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4436 int result;
4437 void *argp1 = 0 ;
4438 int res1 = 0 ;
4439 PyObject *swig_obj[1] ;
4440
4441 if (!args) SWIG_fail;
4442 swig_obj[0] = args;
4443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4446 }
4447 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_From_int(static_cast< int >(result));
4455 return resultobj;
4456fail:
4457 return NULL;
d14a1e28
RD
4458}
4459
4460
0085ce49
RD
4461SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4464 int result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 PyObject *swig_obj[1] ;
4468
4469 if (!args) SWIG_fail;
4470 swig_obj[0] = args;
4471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4472 if (!SWIG_IsOK(res1)) {
4473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4474 }
4475 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_From_int(static_cast< int >(result));
4483 return resultobj;
4484fail:
4485 return NULL;
b1fcee84
RD
4486}
4487
4488
0085ce49
RD
4489SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *obj;
4491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4492 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4493 return SWIG_Py_Void();
d14a1e28
RD
4494}
4495
0085ce49
RD
4496SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4497 return SWIG_Python_InitShadowInstance(args);
4498}
d14a1e28 4499
0085ce49
RD
4500SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4501 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4502 return 1;
d14a1e28
RD
4503}
4504
4505
0085ce49
RD
4506SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4507 PyObject *pyobj = 0;
4508
4509 {
4510#if wxUSE_UNICODE
4511 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4512#else
4513 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4514#endif
4515 }
4516 return pyobj;
4517}
4518
4519
4520SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj = 0;
4522 wxWindow *arg1 = (wxWindow *) 0 ;
4523 int arg2 = (int) -1 ;
4524 wxString const &arg3_defvalue = wxPyEmptyString ;
4525 wxString *arg3 = (wxString *) &arg3_defvalue ;
4526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4528 wxSize const &arg5_defvalue = wxDefaultSize ;
4529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4530 long arg6 = (long) 0 ;
4531 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4532 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4533 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4534 wxString *arg8 = (wxString *) &arg8_defvalue ;
4535 wxCheckBox *result = 0 ;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 int val2 ;
4539 int ecode2 = 0 ;
4540 bool temp3 = false ;
4541 wxPoint temp4 ;
4542 wxSize temp5 ;
4543 long val6 ;
4544 int ecode6 = 0 ;
4545 void *argp7 = 0 ;
4546 int res7 = 0 ;
4547 bool temp8 = false ;
4548 PyObject * obj0 = 0 ;
4549 PyObject * obj1 = 0 ;
4550 PyObject * obj2 = 0 ;
4551 PyObject * obj3 = 0 ;
4552 PyObject * obj4 = 0 ;
4553 PyObject * obj5 = 0 ;
4554 PyObject * obj6 = 0 ;
4555 PyObject * obj7 = 0 ;
4556 char * kwnames[] = {
4557 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4564 }
4565 arg1 = reinterpret_cast< wxWindow * >(argp1);
4566 if (obj1) {
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4570 }
4571 arg2 = static_cast< int >(val2);
4572 }
4573 if (obj2) {
d14a1e28 4574 {
0085ce49
RD
4575 arg3 = wxString_in_helper(obj2);
4576 if (arg3 == NULL) SWIG_fail;
4577 temp3 = true;
d14a1e28 4578 }
0085ce49
RD
4579 }
4580 if (obj3) {
4581 {
4582 arg4 = &temp4;
4583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 4584 }
0085ce49
RD
4585 }
4586 if (obj4) {
d14a1e28 4587 {
0085ce49
RD
4588 arg5 = &temp5;
4589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 4590 }
0085ce49
RD
4591 }
4592 if (obj5) {
4593 ecode6 = SWIG_AsVal_long(obj5, &val6);
4594 if (!SWIG_IsOK(ecode6)) {
4595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4596 }
4597 arg6 = static_cast< long >(val6);
4598 }
4599 if (obj6) {
4600 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4601 if (!SWIG_IsOK(res7)) {
4602 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4603 }
0085ce49
RD
4604 if (!argp7) {
4605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4606 }
4607 arg7 = reinterpret_cast< wxValidator * >(argp7);
4608 }
4609 if (obj7) {
b1fcee84 4610 {
0085ce49
RD
4611 arg8 = wxString_in_helper(obj7);
4612 if (arg8 == NULL) SWIG_fail;
4613 temp8 = true;
b1fcee84 4614 }
0085ce49
RD
4615 }
4616 {
4617 if (!wxPyCheckForApp()) SWIG_fail;
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4624 {
4625 if (temp3)
4626 delete arg3;
4627 }
4628 {
4629 if (temp8)
4630 delete arg8;
4631 }
4632 return resultobj;
4633fail:
4634 {
4635 if (temp3)
4636 delete arg3;
4637 }
4638 {
4639 if (temp8)
4640 delete arg8;
4641 }
4642 return NULL;
b1fcee84
RD
4643}
4644
4645
0085ce49
RD
4646SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4647 PyObject *resultobj = 0;
4648 wxCheckBox *result = 0 ;
4649
4650 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4651 {
4652 if (!wxPyCheckForApp()) SWIG_fail;
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCheckBox *)new wxCheckBox();
4655 wxPyEndAllowThreads(__tstate);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4659 return resultobj;
4660fail:
4661 return NULL;
4662}
4663
4664
4665SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj = 0;
4667 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4668 wxWindow *arg2 = (wxWindow *) 0 ;
4669 int arg3 = (int) -1 ;
4670 wxString const &arg4_defvalue = wxPyEmptyString ;
4671 wxString *arg4 = (wxString *) &arg4_defvalue ;
4672 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4673 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4674 wxSize const &arg6_defvalue = wxDefaultSize ;
4675 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4676 long arg7 = (long) 0 ;
4677 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4678 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4679 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4680 wxString *arg9 = (wxString *) &arg9_defvalue ;
4681 bool result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 void *argp2 = 0 ;
4685 int res2 = 0 ;
4686 int val3 ;
4687 int ecode3 = 0 ;
4688 bool temp4 = false ;
4689 wxPoint temp5 ;
4690 wxSize temp6 ;
4691 long val7 ;
4692 int ecode7 = 0 ;
4693 void *argp8 = 0 ;
4694 int res8 = 0 ;
4695 bool temp9 = false ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 PyObject * obj2 = 0 ;
4699 PyObject * obj3 = 0 ;
4700 PyObject * obj4 = 0 ;
4701 PyObject * obj5 = 0 ;
4702 PyObject * obj6 = 0 ;
4703 PyObject * obj7 = 0 ;
4704 PyObject * obj8 = 0 ;
4705 char * kwnames[] = {
4706 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4707 };
4708
4709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4711 if (!SWIG_IsOK(res1)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4713 }
4714 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4715 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4716 if (!SWIG_IsOK(res2)) {
4717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4718 }
4719 arg2 = reinterpret_cast< wxWindow * >(argp2);
4720 if (obj2) {
4721 ecode3 = SWIG_AsVal_int(obj2, &val3);
4722 if (!SWIG_IsOK(ecode3)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4724 }
4725 arg3 = static_cast< int >(val3);
4726 }
4727 if (obj3) {
093d3ff1 4728 {
0085ce49
RD
4729 arg4 = wxString_in_helper(obj3);
4730 if (arg4 == NULL) SWIG_fail;
4731 temp4 = true;
093d3ff1 4732 }
0085ce49
RD
4733 }
4734 if (obj4) {
093d3ff1 4735 {
0085ce49
RD
4736 arg5 = &temp5;
4737 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4738 }
0085ce49
RD
4739 }
4740 if (obj5) {
d14a1e28 4741 {
0085ce49
RD
4742 arg6 = &temp6;
4743 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 4744 }
0085ce49
RD
4745 }
4746 if (obj6) {
4747 ecode7 = SWIG_AsVal_long(obj6, &val7);
4748 if (!SWIG_IsOK(ecode7)) {
4749 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4750 }
4751 arg7 = static_cast< long >(val7);
4752 }
4753 if (obj7) {
4754 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4755 if (!SWIG_IsOK(res8)) {
4756 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4757 }
0085ce49
RD
4758 if (!argp8) {
4759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4760 }
4761 arg8 = reinterpret_cast< wxValidator * >(argp8);
4762 }
4763 if (obj8) {
093d3ff1 4764 {
0085ce49
RD
4765 arg9 = wxString_in_helper(obj8);
4766 if (arg9 == NULL) SWIG_fail;
4767 temp9 = true;
093d3ff1 4768 }
0085ce49
RD
4769 }
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 {
4777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4778 }
4779 {
4780 if (temp4)
4781 delete arg4;
4782 }
4783 {
4784 if (temp9)
4785 delete arg9;
4786 }
4787 return resultobj;
4788fail:
4789 {
4790 if (temp4)
4791 delete arg4;
4792 }
4793 {
4794 if (temp9)
4795 delete arg9;
4796 }
4797 return NULL;
d14a1e28
RD
4798}
4799
4800
0085ce49
RD
4801SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4804 bool result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4814 }
4815 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (bool)(arg1)->GetValue();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 {
4823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4824 }
4825 return resultobj;
4826fail:
4827 return NULL;
d14a1e28
RD
4828}
4829
4830
0085ce49
RD
4831SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4834 bool result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4844 }
4845 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->IsChecked();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856fail:
4857 return NULL;
4858}
4859
4860
4861SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4864 bool arg2 ;
4865 void *argp1 = 0 ;
4866 int res1 = 0 ;
4867 bool val2 ;
4868 int ecode2 = 0 ;
4869 PyObject * obj0 = 0 ;
4870 PyObject * obj1 = 0 ;
4871 char * kwnames[] = {
4872 (char *) "self",(char *) "state", NULL
4873 };
4874
4875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4877 if (!SWIG_IsOK(res1)) {
4878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4879 }
4880 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4881 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4882 if (!SWIG_IsOK(ecode2)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4884 }
4885 arg2 = static_cast< bool >(val2);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 (arg1)->SetValue(arg2);
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_Py_Void();
4893 return resultobj;
4894fail:
4895 return NULL;
d14a1e28 4896}
0085ce49
RD
4897
4898
4899SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4902 wxCheckBoxState result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4912 }
4913 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922fail:
4923 return NULL;
4924}
4925
4926
4927SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj = 0;
4929 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4930 wxCheckBoxState arg2 ;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 int val2 ;
4934 int ecode2 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char * kwnames[] = {
4938 (char *) "self",(char *) "state", NULL
4939 };
4940
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4945 }
4946 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4950 }
4951 arg2 = static_cast< wxCheckBoxState >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 (arg1)->Set3StateValue(arg2);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_Py_Void();
4959 return resultobj;
4960fail:
4961 return NULL;
b2dc1044
RD
4962}
4963
4964
0085ce49
RD
4965SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4978 }
4979 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990fail:
4991 return NULL;
d14a1e28
RD
4992}
4993
4994
0085ce49
RD
4995SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5008 }
5009 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020fail:
5021 return NULL;
d14a1e28
RD
5022}
5023
5024
0085ce49
RD
5025SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj = 0;
5027 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5028 SwigValueWrapper<wxVisualAttributes > result;
5029 int val1 ;
5030 int ecode1 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "variant", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5037 if (obj0) {
5038 ecode1 = SWIG_AsVal_int(obj0, &val1);
5039 if (!SWIG_IsOK(ecode1)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5041 }
5042 arg1 = static_cast< wxWindowVariant >(val1);
5043 }
5044 {
5045 if (!wxPyCheckForApp()) SWIG_fail;
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5052 return resultobj;
5053fail:
5054 return NULL;
d14a1e28
RD
5055}
5056
5057
0085ce49
RD
5058SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *obj;
5060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5061 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5062 return SWIG_Py_Void();
d14a1e28
RD
5063}
5064
0085ce49
RD
5065SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 return SWIG_Python_InitShadowInstance(args);
5067}
d14a1e28 5068
0085ce49
RD
5069SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5070 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5071 return 1;
d14a1e28
RD
5072}
5073
5074
0085ce49
RD
5075SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5076 PyObject *pyobj = 0;
5077
5078 {
5079#if wxUSE_UNICODE
5080 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5081#else
5082 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5083#endif
5084 }
5085 return pyobj;
5086}
5087
5088
5089SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxWindow *arg1 = (wxWindow *) 0 ;
5092 int arg2 = (int) -1 ;
5093 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5094 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5095 wxSize const &arg4_defvalue = wxDefaultSize ;
5096 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5097 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5098 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5099 long arg6 = (long) 0 ;
5100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5102 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5103 wxString *arg8 = (wxString *) &arg8_defvalue ;
5104 wxChoice *result = 0 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 wxPoint temp3 ;
5110 wxSize temp4 ;
5111 bool temp5 = false ;
5112 long val6 ;
5113 int ecode6 = 0 ;
5114 void *argp7 = 0 ;
5115 int res7 = 0 ;
5116 bool temp8 = false ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 PyObject * obj2 = 0 ;
5120 PyObject * obj3 = 0 ;
5121 PyObject * obj4 = 0 ;
5122 PyObject * obj5 = 0 ;
5123 PyObject * obj6 = 0 ;
5124 PyObject * obj7 = 0 ;
5125 char * kwnames[] = {
5126 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5127 };
5128
5129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5131 if (!SWIG_IsOK(res1)) {
5132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5133 }
5134 arg1 = reinterpret_cast< wxWindow * >(argp1);
5135 if (obj1) {
5136 ecode2 = SWIG_AsVal_int(obj1, &val2);
5137 if (!SWIG_IsOK(ecode2)) {
5138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5139 }
5140 arg2 = static_cast< int >(val2);
5141 }
5142 if (obj2) {
093d3ff1 5143 {
0085ce49
RD
5144 arg3 = &temp3;
5145 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5146 }
0085ce49
RD
5147 }
5148 if (obj3) {
d14a1e28 5149 {
0085ce49
RD
5150 arg4 = &temp4;
5151 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5152 }
0085ce49
RD
5153 }
5154 if (obj4) {
d14a1e28 5155 {
0085ce49
RD
5156 if (! PySequence_Check(obj4)) {
5157 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5158 SWIG_fail;
5159 }
5160 arg5 = new wxArrayString;
5161 temp5 = true;
5162 int i, len=PySequence_Length(obj4);
5163 for (i=0; i<len; i++) {
5164 PyObject* item = PySequence_GetItem(obj4, i);
5165 wxString* s = wxString_in_helper(item);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 arg5->Add(*s);
5168 delete s;
5169 Py_DECREF(item);
5170 }
d14a1e28 5171 }
0085ce49
RD
5172 }
5173 if (obj5) {
5174 ecode6 = SWIG_AsVal_long(obj5, &val6);
5175 if (!SWIG_IsOK(ecode6)) {
5176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5177 }
5178 arg6 = static_cast< long >(val6);
5179 }
5180 if (obj6) {
5181 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5182 if (!SWIG_IsOK(res7)) {
5183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5184 }
0085ce49
RD
5185 if (!argp7) {
5186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5187 }
5188 arg7 = reinterpret_cast< wxValidator * >(argp7);
5189 }
5190 if (obj7) {
d14a1e28 5191 {
0085ce49
RD
5192 arg8 = wxString_in_helper(obj7);
5193 if (arg8 == NULL) SWIG_fail;
5194 temp8 = true;
d14a1e28 5195 }
0085ce49
RD
5196 }
5197 {
5198 if (!wxPyCheckForApp()) SWIG_fail;
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5205 {
5206 if (temp5) delete arg5;
5207 }
5208 {
5209 if (temp8)
5210 delete arg8;
5211 }
5212 return resultobj;
5213fail:
5214 {
5215 if (temp5) delete arg5;
5216 }
5217 {
5218 if (temp8)
5219 delete arg8;
5220 }
5221 return NULL;
d14a1e28
RD
5222}
5223
5224
0085ce49
RD
5225SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxChoice *result = 0 ;
5228
5229 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5230 {
5231 if (!wxPyCheckForApp()) SWIG_fail;
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (wxChoice *)new wxChoice();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5238 return resultobj;
5239fail:
5240 return NULL;
5241}
5242
5243
5244SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj = 0;
5246 wxChoice *arg1 = (wxChoice *) 0 ;
5247 wxWindow *arg2 = (wxWindow *) 0 ;
5248 int arg3 = (int) -1 ;
5249 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5250 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5251 wxSize const &arg5_defvalue = wxDefaultSize ;
5252 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5253 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5254 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5255 long arg7 = (long) 0 ;
5256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5258 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5259 wxString *arg9 = (wxString *) &arg9_defvalue ;
5260 bool result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 void *argp2 = 0 ;
5264 int res2 = 0 ;
5265 int val3 ;
5266 int ecode3 = 0 ;
5267 wxPoint temp4 ;
5268 wxSize temp5 ;
5269 bool temp6 = false ;
5270 long val7 ;
5271 int ecode7 = 0 ;
5272 void *argp8 = 0 ;
5273 int res8 = 0 ;
5274 bool temp9 = false ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 PyObject * obj2 = 0 ;
5278 PyObject * obj3 = 0 ;
5279 PyObject * obj4 = 0 ;
5280 PyObject * obj5 = 0 ;
5281 PyObject * obj6 = 0 ;
5282 PyObject * obj7 = 0 ;
5283 PyObject * obj8 = 0 ;
5284 char * kwnames[] = {
5285 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5286 };
5287
5288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5292 }
5293 arg1 = reinterpret_cast< wxChoice * >(argp1);
5294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5295 if (!SWIG_IsOK(res2)) {
5296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5297 }
5298 arg2 = reinterpret_cast< wxWindow * >(argp2);
5299 if (obj2) {
5300 ecode3 = SWIG_AsVal_int(obj2, &val3);
5301 if (!SWIG_IsOK(ecode3)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5303 }
5304 arg3 = static_cast< int >(val3);
5305 }
5306 if (obj3) {
d14a1e28 5307 {
0085ce49
RD
5308 arg4 = &temp4;
5309 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5310 }
0085ce49
RD
5311 }
5312 if (obj4) {
4f89f6a3 5313 {
0085ce49
RD
5314 arg5 = &temp5;
5315 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 5316 }
0085ce49
RD
5317 }
5318 if (obj5) {
d14a1e28 5319 {
0085ce49
RD
5320 if (! PySequence_Check(obj5)) {
5321 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5322 SWIG_fail;
5323 }
5324 arg6 = new wxArrayString;
5325 temp6 = true;
5326 int i, len=PySequence_Length(obj5);
5327 for (i=0; i<len; i++) {
5328 PyObject* item = PySequence_GetItem(obj5, i);
5329 wxString* s = wxString_in_helper(item);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 arg6->Add(*s);
5332 delete s;
5333 Py_DECREF(item);
5334 }
5335 }
5336 }
5337 if (obj6) {
5338 ecode7 = SWIG_AsVal_long(obj6, &val7);
5339 if (!SWIG_IsOK(ecode7)) {
5340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5341 }
5342 arg7 = static_cast< long >(val7);
5343 }
5344 if (obj7) {
5345 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5346 if (!SWIG_IsOK(res8)) {
5347 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 5348 }
0085ce49
RD
5349 if (!argp8) {
5350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5351 }
5352 arg8 = reinterpret_cast< wxValidator * >(argp8);
5353 }
5354 if (obj8) {
4f89f6a3 5355 {
0085ce49
RD
5356 arg9 = wxString_in_helper(obj8);
5357 if (arg9 == NULL) SWIG_fail;
5358 temp9 = true;
4f89f6a3 5359 }
0085ce49
RD
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 {
5371 if (temp6) delete arg6;
5372 }
5373 {
5374 if (temp9)
5375 delete arg9;
5376 }
5377 return resultobj;
5378fail:
5379 {
5380 if (temp6) delete arg6;
5381 }
5382 {
5383 if (temp9)
5384 delete arg9;
5385 }
5386 return NULL;
d14a1e28
RD
5387}
5388
5389
0085ce49
RD
5390SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 wxChoice *arg1 = (wxChoice *) 0 ;
5393 int result;
5394 void *argp1 = 0 ;
5395 int res1 = 0 ;
5396 PyObject *swig_obj[1] ;
5397
5398 if (!args) SWIG_fail;
5399 swig_obj[0] = args;
5400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5403 }
5404 arg1 = reinterpret_cast< wxChoice * >(argp1);
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = SWIG_From_int(static_cast< int >(result));
5412 return resultobj;
5413fail:
5414 return NULL;
5415}
5416
5417
5418SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj = 0;
5420 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5421 SwigValueWrapper<wxVisualAttributes > result;
5422 int val1 ;
5423 int ecode1 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "variant", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5430 if (obj0) {
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5434 }
5435 arg1 = static_cast< wxWindowVariant >(val1);
5436 }
5437 {
5438 if (!wxPyCheckForApp()) SWIG_fail;
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = wxChoice::GetClassDefaultAttributes(arg1);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5445 return resultobj;
5446fail:
5447 return NULL;
22bfe96c
RD
5448}
5449
5450
0085ce49
RD
5451SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5452 PyObject *obj;
5453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5455 return SWIG_Py_Void();
d14a1e28 5456}
0085ce49
RD
5457
5458SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5459 return SWIG_Python_InitShadowInstance(args);
5460}
5461
5462SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5463 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5464 return 1;
b2dc1044
RD
5465}
5466
5467
0085ce49
RD
5468SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5469 PyObject *pyobj = 0;
5470
5471 {
b2dc1044 5472#if wxUSE_UNICODE
0085ce49 5473 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5474#else
0085ce49 5475 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5476#endif
0085ce49
RD
5477 }
5478 return pyobj;
5479}
5480
5481
5482SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5483 PyObject *resultobj = 0;
5484 wxWindow *arg1 = (wxWindow *) 0 ;
5485 int arg2 = (int) -1 ;
5486 wxString const &arg3_defvalue = wxPyEmptyString ;
5487 wxString *arg3 = (wxString *) &arg3_defvalue ;
5488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5490 wxSize const &arg5_defvalue = wxDefaultSize ;
5491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5492 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5493 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5494 long arg7 = (long) 0 ;
5495 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5496 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5497 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5498 wxString *arg9 = (wxString *) &arg9_defvalue ;
5499 wxComboBox *result = 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 int val2 ;
5503 int ecode2 = 0 ;
5504 bool temp3 = false ;
5505 wxPoint temp4 ;
5506 wxSize temp5 ;
5507 bool temp6 = false ;
5508 long val7 ;
5509 int ecode7 = 0 ;
5510 void *argp8 = 0 ;
5511 int res8 = 0 ;
5512 bool temp9 = false ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 PyObject * obj3 = 0 ;
5517 PyObject * obj4 = 0 ;
5518 PyObject * obj5 = 0 ;
5519 PyObject * obj6 = 0 ;
5520 PyObject * obj7 = 0 ;
5521 PyObject * obj8 = 0 ;
5522 char * kwnames[] = {
5523 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5524 };
5525
5526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5528 if (!SWIG_IsOK(res1)) {
5529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5530 }
5531 arg1 = reinterpret_cast< wxWindow * >(argp1);
5532 if (obj1) {
5533 ecode2 = SWIG_AsVal_int(obj1, &val2);
5534 if (!SWIG_IsOK(ecode2)) {
5535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5536 }
5537 arg2 = static_cast< int >(val2);
5538 }
5539 if (obj2) {
d14a1e28 5540 {
0085ce49
RD
5541 arg3 = wxString_in_helper(obj2);
5542 if (arg3 == NULL) SWIG_fail;
5543 temp3 = true;
d14a1e28 5544 }
0085ce49
RD
5545 }
5546 if (obj3) {
d14a1e28 5547 {
0085ce49
RD
5548 arg4 = &temp4;
5549 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5550 }
0085ce49
RD
5551 }
5552 if (obj4) {
d14a1e28 5553 {
0085ce49
RD
5554 arg5 = &temp5;
5555 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5556 }
0085ce49
RD
5557 }
5558 if (obj5) {
d14a1e28 5559 {
0085ce49
RD
5560 if (! PySequence_Check(obj5)) {
5561 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5562 SWIG_fail;
5563 }
5564 arg6 = new wxArrayString;
5565 temp6 = true;
5566 int i, len=PySequence_Length(obj5);
5567 for (i=0; i<len; i++) {
5568 PyObject* item = PySequence_GetItem(obj5, i);
5569 wxString* s = wxString_in_helper(item);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 arg6->Add(*s);
5572 delete s;
5573 Py_DECREF(item);
5574 }
d14a1e28 5575 }
0085ce49
RD
5576 }
5577 if (obj6) {
5578 ecode7 = SWIG_AsVal_long(obj6, &val7);
5579 if (!SWIG_IsOK(ecode7)) {
5580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5581 }
5582 arg7 = static_cast< long >(val7);
5583 }
5584 if (obj7) {
5585 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5586 if (!SWIG_IsOK(res8)) {
5587 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5588 }
5589 if (!argp8) {
5590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 arg8 = reinterpret_cast< wxValidator * >(argp8);
5593 }
5594 if (obj8) {
d14a1e28 5595 {
0085ce49
RD
5596 arg9 = wxString_in_helper(obj8);
5597 if (arg9 == NULL) SWIG_fail;
5598 temp9 = true;
d14a1e28 5599 }
0085ce49
RD
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5609 {
5610 if (temp3)
5611 delete arg3;
5612 }
5613 {
5614 if (temp6) delete arg6;
5615 }
5616 {
5617 if (temp9)
5618 delete arg9;
5619 }
5620 return resultobj;
5621fail:
5622 {
5623 if (temp3)
5624 delete arg3;
5625 }
5626 {
5627 if (temp6) delete arg6;
5628 }
5629 {
5630 if (temp9)
5631 delete arg9;
5632 }
5633 return NULL;
d14a1e28
RD
5634}
5635
5636
0085ce49
RD
5637SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxComboBox *result = 0 ;
5640
5641 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5642 {
5643 if (!wxPyCheckForApp()) SWIG_fail;
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (wxComboBox *)new wxComboBox();
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5650 return resultobj;
5651fail:
5652 return NULL;
5653}
5654
5655
5656SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxComboBox *arg1 = (wxComboBox *) 0 ;
5659 wxWindow *arg2 = (wxWindow *) 0 ;
5660 int arg3 = (int) -1 ;
5661 wxString const &arg4_defvalue = wxPyEmptyString ;
5662 wxString *arg4 = (wxString *) &arg4_defvalue ;
5663 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5664 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5665 wxSize const &arg6_defvalue = wxDefaultSize ;
5666 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5667 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5668 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5669 long arg8 = (long) 0 ;
5670 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5671 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5672 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5673 wxString *arg10 = (wxString *) &arg10_defvalue ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 void *argp2 = 0 ;
5678 int res2 = 0 ;
5679 int val3 ;
5680 int ecode3 = 0 ;
5681 bool temp4 = false ;
5682 wxPoint temp5 ;
5683 wxSize temp6 ;
5684 bool temp7 = false ;
5685 long val8 ;
5686 int ecode8 = 0 ;
5687 void *argp9 = 0 ;
5688 int res9 = 0 ;
5689 bool temp10 = false ;
5690 PyObject * obj0 = 0 ;
5691 PyObject * obj1 = 0 ;
5692 PyObject * obj2 = 0 ;
5693 PyObject * obj3 = 0 ;
5694 PyObject * obj4 = 0 ;
5695 PyObject * obj5 = 0 ;
5696 PyObject * obj6 = 0 ;
5697 PyObject * obj7 = 0 ;
5698 PyObject * obj8 = 0 ;
5699 PyObject * obj9 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5708 }
5709 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5711 if (!SWIG_IsOK(res2)) {
5712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5713 }
5714 arg2 = reinterpret_cast< wxWindow * >(argp2);
5715 if (obj2) {
5716 ecode3 = SWIG_AsVal_int(obj2, &val3);
5717 if (!SWIG_IsOK(ecode3)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5719 }
5720 arg3 = static_cast< int >(val3);
5721 }
5722 if (obj3) {
4f89f6a3 5723 {
0085ce49
RD
5724 arg4 = wxString_in_helper(obj3);
5725 if (arg4 == NULL) SWIG_fail;
5726 temp4 = true;
4f89f6a3 5727 }
0085ce49
RD
5728 }
5729 if (obj4) {
d14a1e28 5730 {
0085ce49
RD
5731 arg5 = &temp5;
5732 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5733 }
0085ce49
RD
5734 }
5735 if (obj5) {
d14a1e28 5736 {
0085ce49
RD
5737 arg6 = &temp6;
5738 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 5739 }
0085ce49
RD
5740 }
5741 if (obj6) {
d14a1e28 5742 {
0085ce49
RD
5743 if (! PySequence_Check(obj6)) {
5744 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5745 SWIG_fail;
5746 }
5747 arg7 = new wxArrayString;
5748 temp7 = true;
5749 int i, len=PySequence_Length(obj6);
5750 for (i=0; i<len; i++) {
5751 PyObject* item = PySequence_GetItem(obj6, i);
5752 wxString* s = wxString_in_helper(item);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg7->Add(*s);
5755 delete s;
5756 Py_DECREF(item);
5757 }
d14a1e28 5758 }
0085ce49
RD
5759 }
5760 if (obj7) {
5761 ecode8 = SWIG_AsVal_long(obj7, &val8);
5762 if (!SWIG_IsOK(ecode8)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5764 }
5765 arg8 = static_cast< long >(val8);
5766 }
5767 if (obj8) {
5768 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5769 if (!SWIG_IsOK(res9)) {
5770 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5771 }
0085ce49
RD
5772 if (!argp9) {
5773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5774 }
0085ce49
RD
5775 arg9 = reinterpret_cast< wxValidator * >(argp9);
5776 }
5777 if (obj9) {
d14a1e28 5778 {
0085ce49
RD
5779 arg10 = wxString_in_helper(obj9);
5780 if (arg10 == NULL) SWIG_fail;
5781 temp10 = true;
d14a1e28 5782 }
0085ce49
RD
5783 }
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5792 }
5793 {
5794 if (temp4)
5795 delete arg4;
5796 }
5797 {
5798 if (temp7) delete arg7;
5799 }
5800 {
5801 if (temp10)
5802 delete arg10;
5803 }
5804 return resultobj;
5805fail:
5806 {
5807 if (temp4)
5808 delete arg4;
5809 }
5810 {
5811 if (temp7) delete arg7;
5812 }
5813 {
5814 if (temp10)
5815 delete arg10;
5816 }
5817 return NULL;
d14a1e28
RD
5818}
5819
5820
0085ce49
RD
5821SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5822 PyObject *resultobj = 0;
5823 wxComboBox *arg1 = (wxComboBox *) 0 ;
5824 wxString result;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5834 }
5835 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = ((wxComboBox const *)arg1)->GetValue();
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
d14a1e28 5843#if wxUSE_UNICODE
0085ce49 5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5845#else
0085ce49 5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5847#endif
0085ce49
RD
5848 }
5849 return resultobj;
5850fail:
5851 return NULL;
5852}
5853
5854
5855SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj = 0;
5857 wxComboBox *arg1 = (wxComboBox *) 0 ;
5858 wxString *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 bool temp2 = false ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "value", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5872 }
5873 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5874 {
5875 arg2 = wxString_in_helper(obj1);
5876 if (arg2 == NULL) SWIG_fail;
5877 temp2 = true;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetValue((wxString const &)*arg2);
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_Py_Void();
5886 {
5887 if (temp2)
5888 delete arg2;
5889 }
5890 return resultobj;
5891fail:
5892 {
5893 if (temp2)
5894 delete arg2;
5895 }
5896 return NULL;
d14a1e28
RD
5897}
5898
5899
0085ce49
RD
5900SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Copy();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922fail:
5923 return NULL;
d14a1e28
RD
5924}
5925
5926
0085ce49
RD
5927SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Cut();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949fail:
5950 return NULL;
d14a1e28
RD
5951}
5952
5953
0085ce49
RD
5954SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Paste();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976fail:
5977 return NULL;
5978}
5979
5980
5981SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 long arg2 ;
5985 void *argp1 = 0 ;
5986 int res1 = 0 ;
5987 long val2 ;
5988 int ecode2 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 PyObject * obj1 = 0 ;
5991 char * kwnames[] = {
5992 (char *) "self",(char *) "pos", NULL
5993 };
5994
5995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5999 }
6000 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6001 ecode2 = SWIG_AsVal_long(obj1, &val2);
6002 if (!SWIG_IsOK(ecode2)) {
6003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6004 }
6005 arg2 = static_cast< long >(val2);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 (arg1)->SetInsertionPoint(arg2);
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_Py_Void();
6013 return resultobj;
6014fail:
6015 return NULL;
d14a1e28
RD
6016}
6017
6018
0085ce49
RD
6019SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxComboBox *arg1 = (wxComboBox *) 0 ;
6022 long result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_From_long(static_cast< long >(result));
6041 return resultobj;
6042fail:
6043 return NULL;
d14a1e28
RD
6044}
6045
6046
0085ce49
RD
6047SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6048 PyObject *resultobj = 0;
6049 wxComboBox *arg1 = (wxComboBox *) 0 ;
6050 long result;
6051 void *argp1 = 0 ;
6052 int res1 = 0 ;
6053 PyObject *swig_obj[1] ;
6054
6055 if (!args) SWIG_fail;
6056 swig_obj[0] = args;
6057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6058 if (!SWIG_IsOK(res1)) {
6059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6060 }
6061 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_From_long(static_cast< long >(result));
6069 return resultobj;
6070fail:
6071 return NULL;
6072}
6073
6074
6075SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxComboBox *arg1 = (wxComboBox *) 0 ;
6078 long arg2 ;
6079 long arg3 ;
6080 wxString *arg4 = 0 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 bool temp4 = false ;
6088 PyObject * obj0 = 0 ;
6089 PyObject * obj1 = 0 ;
6090 PyObject * obj2 = 0 ;
6091 PyObject * obj3 = 0 ;
6092 char * kwnames[] = {
2131d850 6093 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
6094 };
6095
6096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6098 if (!SWIG_IsOK(res1)) {
6099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6100 }
6101 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6102 ecode2 = SWIG_AsVal_long(obj1, &val2);
6103 if (!SWIG_IsOK(ecode2)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6105 }
6106 arg2 = static_cast< long >(val2);
6107 ecode3 = SWIG_AsVal_long(obj2, &val3);
6108 if (!SWIG_IsOK(ecode3)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6110 }
6111 arg3 = static_cast< long >(val3);
6112 {
6113 arg4 = wxString_in_helper(obj3);
6114 if (arg4 == NULL) SWIG_fail;
6115 temp4 = true;
6116 }
6117 {
6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
6119 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6120 wxPyEndAllowThreads(__tstate);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 resultobj = SWIG_Py_Void();
6124 {
6125 if (temp4)
6126 delete arg4;
6127 }
6128 return resultobj;
6129fail:
6130 {
6131 if (temp4)
6132 delete arg4;
6133 }
6134 return NULL;
6135}
6136
6137
6138SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj = 0;
6140 wxComboBox *arg1 = (wxComboBox *) 0 ;
6141 long arg2 ;
6142 long arg3 ;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 long val2 ;
6146 int ecode2 = 0 ;
6147 long val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
2131d850 6153 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6160 }
6161 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6162 ecode2 = SWIG_AsVal_long(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6165 }
6166 arg2 = static_cast< long >(val2);
6167 ecode3 = SWIG_AsVal_long(obj2, &val3);
6168 if (!SWIG_IsOK(ecode3)) {
6169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6170 }
6171 arg3 = static_cast< long >(val3);
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetSelection(arg2,arg3);
6175 wxPyEndAllowThreads(__tstate);
6176 if (PyErr_Occurred()) SWIG_fail;
6177 }
6178 resultobj = SWIG_Py_Void();
6179 return resultobj;
6180fail:
6181 return NULL;
6182}
6183
6184
6185SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxComboBox *arg1 = (wxComboBox *) 0 ;
6188 long *arg2 = (long *) 0 ;
6189 long *arg3 = (long *) 0 ;
6190 void *argp1 = 0 ;
6191 int res1 = 0 ;
6192 long temp2 ;
6193 int res2 = SWIG_TMPOBJ ;
6194 long temp3 ;
6195 int res3 = SWIG_TMPOBJ ;
6196 PyObject *swig_obj[1] ;
6197
6198 arg2 = &temp2;
6199 arg3 = &temp3;
6200 if (!args) SWIG_fail;
6201 swig_obj[0] = args;
6202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6203 if (!SWIG_IsOK(res1)) {
6204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6205 }
6206 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 (arg1)->GetSelection(arg2,arg3);
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = SWIG_Py_Void();
6214 if (SWIG_IsTmpObj(res2)) {
6215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6216 } else {
6217 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6219 }
6220 if (SWIG_IsTmpObj(res3)) {
6221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6222 } else {
6223 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6225 }
6226 return resultobj;
6227fail:
6228 return NULL;
d14a1e28
RD
6229}
6230
6231
0085ce49
RD
6232SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6233 PyObject *resultobj = 0;
6234 wxComboBox *arg1 = (wxComboBox *) 0 ;
6235 int result;
6236 void *argp1 = 0 ;
6237 int res1 = 0 ;
6238 PyObject *swig_obj[1] ;
6239
6240 if (!args) SWIG_fail;
6241 swig_obj[0] = args;
6242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6245 }
6246 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_From_int(static_cast< int >(result));
6254 return resultobj;
6255fail:
6256 return NULL;
6257}
6258
6259
6260SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxComboBox *arg1 = (wxComboBox *) 0 ;
6263 wxString *arg2 = 0 ;
6264 bool result;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 bool temp2 = false ;
6268 PyObject * obj0 = 0 ;
6269 PyObject * obj1 = 0 ;
6270 char * kwnames[] = {
6271 (char *) "self",(char *) "string", NULL
6272 };
6273
6274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6276 if (!SWIG_IsOK(res1)) {
6277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6278 }
6279 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6280 {
6281 arg2 = wxString_in_helper(obj1);
6282 if (arg2 == NULL) SWIG_fail;
6283 temp2 = true;
6284 }
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 {
6292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6293 }
6294 {
6295 if (temp2)
6296 delete arg2;
6297 }
6298 return resultobj;
6299fail:
6300 {
6301 if (temp2)
6302 delete arg2;
6303 }
6304 return NULL;
6305}
6306
6307
50f151d7
RD
6308SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxComboBox *arg1 = (wxComboBox *) 0 ;
6311 int arg2 ;
6312 wxString *arg3 = 0 ;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 int val2 ;
6316 int ecode2 = 0 ;
6317 bool temp3 = false ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 PyObject * obj2 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "self",(char *) "n",(char *) "string", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6329 }
6330 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6331 ecode2 = SWIG_AsVal_int(obj1, &val2);
6332 if (!SWIG_IsOK(ecode2)) {
6333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6334 }
6335 arg2 = static_cast< int >(val2);
6336 {
6337 arg3 = wxString_in_helper(obj2);
6338 if (arg3 == NULL) SWIG_fail;
6339 temp3 = true;
6340 }
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 (arg1)->SetString(arg2,(wxString const &)*arg3);
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_Py_Void();
6348 {
6349 if (temp3)
6350 delete arg3;
6351 }
6352 return resultobj;
6353fail:
6354 {
6355 if (temp3)
6356 delete arg3;
6357 }
6358 return NULL;
6359}
6360
6361
0085ce49
RD
6362SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 wxComboBox *arg1 = (wxComboBox *) 0 ;
6365 bool arg2 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 bool val2 ;
6369 int ecode2 = 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char * kwnames[] = {
6373 (char *) "self",(char *) "editable", NULL
6374 };
6375
6376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6378 if (!SWIG_IsOK(res1)) {
6379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6380 }
6381 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6383 if (!SWIG_IsOK(ecode2)) {
6384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6385 }
6386 arg2 = static_cast< bool >(val2);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetEditable(arg2);
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395fail:
6396 return NULL;
d14a1e28
RD
6397}
6398
6399
0085ce49
RD
6400SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 PyObject *swig_obj[1] ;
6406
6407 if (!args) SWIG_fail;
6408 swig_obj[0] = args;
6409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6410 if (!SWIG_IsOK(res1)) {
6411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6412 }
6413 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetInsertionPointEnd();
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422fail:
6423 return NULL;
6424}
6425
6426
6427SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 long arg2 ;
6431 long arg3 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 long val2 ;
6435 int ecode2 = 0 ;
6436 long val3 ;
6437 int ecode3 = 0 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 PyObject * obj2 = 0 ;
6441 char * kwnames[] = {
2131d850 6442 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
6443 };
6444
6445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6449 }
6450 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6451 ecode2 = SWIG_AsVal_long(obj1, &val2);
6452 if (!SWIG_IsOK(ecode2)) {
6453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6454 }
6455 arg2 = static_cast< long >(val2);
6456 ecode3 = SWIG_AsVal_long(obj2, &val3);
6457 if (!SWIG_IsOK(ecode3)) {
6458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6459 }
6460 arg3 = static_cast< long >(val3);
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 (arg1)->Remove(arg2,arg3);
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_Py_Void();
6468 return resultobj;
6469fail:
6470 return NULL;
d14a1e28
RD
6471}
6472
6473
0085ce49
RD
6474SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxComboBox *arg1 = (wxComboBox *) 0 ;
6477 bool result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 return resultobj;
6499fail:
6500 return NULL;
d14a1e28
RD
6501}
6502
6503
0085ce49
RD
6504SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Undo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526fail:
6527 return NULL;
fd3f2efe
RD
6528}
6529
6530
0085ce49
RD
6531SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->Redo();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553fail:
6554 return NULL;
d14a1e28
RD
6555}
6556
6557
0085ce49
RD
6558SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject *swig_obj[1] ;
6564
6565 if (!args) SWIG_fail;
6566 swig_obj[0] = args;
6567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6568 if (!SWIG_IsOK(res1)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6570 }
6571 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SelectAll();
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_Py_Void();
6579 return resultobj;
6580fail:
6581 return NULL;
b9d6a5f3
RD
6582}
6583
6584
0085ce49
RD
6585SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6586 PyObject *resultobj = 0;
6587 wxComboBox *arg1 = (wxComboBox *) 0 ;
6588 bool result;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 PyObject *swig_obj[1] ;
6592
6593 if (!args) SWIG_fail;
6594 swig_obj[0] = args;
6595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6596 if (!SWIG_IsOK(res1)) {
6597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6598 }
6599 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 return resultobj;
6610fail:
6611 return NULL;
943e8dfd
RD
6612}
6613
6614
0085ce49
RD
6615SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6616 PyObject *resultobj = 0;
6617 wxComboBox *arg1 = (wxComboBox *) 0 ;
6618 bool result;
6619 void *argp1 = 0 ;
6620 int res1 = 0 ;
6621 PyObject *swig_obj[1] ;
6622
6623 if (!args) SWIG_fail;
6624 swig_obj[0] = args;
6625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6626 if (!SWIG_IsOK(res1)) {
6627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6628 }
6629 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (bool)((wxComboBox const *)arg1)->CanCut();
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6638 }
6639 return resultobj;
6640fail:
6641 return NULL;
121b9a67
RD
6642}
6643
6644
0085ce49
RD
6645SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6646 PyObject *resultobj = 0;
6647 wxComboBox *arg1 = (wxComboBox *) 0 ;
6648 bool result;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject *swig_obj[1] ;
6652
6653 if (!args) SWIG_fail;
6654 swig_obj[0] = args;
6655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 {
6667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6668 }
6669 return resultobj;
6670fail:
6671 return NULL;
121b9a67
RD
6672}
6673
6674
0085ce49
RD
6675SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 wxComboBox *arg1 = (wxComboBox *) 0 ;
6678 bool result;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 PyObject *swig_obj[1] ;
6682
6683 if (!args) SWIG_fail;
6684 swig_obj[0] = args;
6685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6688 }
6689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6698 }
6699 return resultobj;
6700fail:
6701 return NULL;
d14a1e28
RD
6702}
6703
6704
0085ce49
RD
6705SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxComboBox *arg1 = (wxComboBox *) 0 ;
6708 bool result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6718 }
6719 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 return resultobj;
6730fail:
6731 return NULL;
d14a1e28
RD
6732}
6733
6734
0085ce49
RD
6735SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj = 0;
6737 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6738 SwigValueWrapper<wxVisualAttributes > result;
6739 int val1 ;
6740 int ecode1 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 char * kwnames[] = {
6743 (char *) "variant", NULL
6744 };
6745
6746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6747 if (obj0) {
6748 ecode1 = SWIG_AsVal_int(obj0, &val1);
6749 if (!SWIG_IsOK(ecode1)) {
6750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6751 }
6752 arg1 = static_cast< wxWindowVariant >(val1);
6753 }
6754 {
6755 if (!wxPyCheckForApp()) SWIG_fail;
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = wxComboBox::GetClassDefaultAttributes(arg1);
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6762 return resultobj;
6763fail:
6764 return NULL;
d14a1e28
RD
6765}
6766
6767
0085ce49
RD
6768SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6769 PyObject *obj;
6770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6771 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6772 return SWIG_Py_Void();
5cbf236d
RD
6773}
6774
0085ce49
RD
6775SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777}
5cbf236d 6778
0085ce49
RD
6779SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
5cbf236d
RD
6782}
6783
6784
0085ce49
RD
6785SWIGINTERN PyObject *GaugeNameStr_get(void) {
6786 PyObject *pyobj = 0;
6787
6788 {
6789#if wxUSE_UNICODE
6790 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6791#else
6792 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6793#endif
6794 }
6795 return pyobj;
6796}
6797
6798
6799SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj = 0;
6801 wxWindow *arg1 = (wxWindow *) 0 ;
6802 int arg2 = (int) -1 ;
6803 int arg3 = (int) 100 ;
6804 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6805 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6806 wxSize const &arg5_defvalue = wxDefaultSize ;
6807 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6808 long arg6 = (long) wxGA_HORIZONTAL ;
6809 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6810 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6811 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6812 wxString *arg8 = (wxString *) &arg8_defvalue ;
6813 wxGauge *result = 0 ;
6814 void *argp1 = 0 ;
6815 int res1 = 0 ;
6816 int val2 ;
6817 int ecode2 = 0 ;
6818 int val3 ;
6819 int ecode3 = 0 ;
6820 wxPoint temp4 ;
6821 wxSize temp5 ;
6822 long val6 ;
6823 int ecode6 = 0 ;
6824 void *argp7 = 0 ;
6825 int res7 = 0 ;
6826 bool temp8 = false ;
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 PyObject * obj2 = 0 ;
6830 PyObject * obj3 = 0 ;
6831 PyObject * obj4 = 0 ;
6832 PyObject * obj5 = 0 ;
6833 PyObject * obj6 = 0 ;
6834 PyObject * obj7 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6843 }
6844 arg1 = reinterpret_cast< wxWindow * >(argp1);
6845 if (obj1) {
6846 ecode2 = SWIG_AsVal_int(obj1, &val2);
6847 if (!SWIG_IsOK(ecode2)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6849 }
6850 arg2 = static_cast< int >(val2);
6851 }
6852 if (obj2) {
6853 ecode3 = SWIG_AsVal_int(obj2, &val3);
6854 if (!SWIG_IsOK(ecode3)) {
6855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6856 }
6857 arg3 = static_cast< int >(val3);
6858 }
6859 if (obj3) {
5cbf236d 6860 {
0085ce49
RD
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6863 }
0085ce49
RD
6864 }
6865 if (obj4) {
5cbf236d 6866 {
0085ce49
RD
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6869 }
0085ce49
RD
6870 }
6871 if (obj5) {
6872 ecode6 = SWIG_AsVal_long(obj5, &val6);
6873 if (!SWIG_IsOK(ecode6)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6875 }
6876 arg6 = static_cast< long >(val6);
6877 }
6878 if (obj6) {
6879 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6880 if (!SWIG_IsOK(res7)) {
6881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6882 }
6883 if (!argp7) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6885 }
0085ce49
RD
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
5cbf236d 6889 {
0085ce49
RD
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
5cbf236d 6893 }
0085ce49
RD
6894 }
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6903 {
6904 if (temp8)
6905 delete arg8;
6906 }
6907 return resultobj;
6908fail:
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return NULL;
5cbf236d
RD
6914}
6915
6916
0085ce49
RD
6917SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *resultobj = 0;
6919 wxGauge *result = 0 ;
6920
6921 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6922 {
6923 if (!wxPyCheckForApp()) SWIG_fail;
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 result = (wxGauge *)new wxGauge();
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6930 return resultobj;
6931fail:
6932 return NULL;
6933}
6934
6935
6936SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxGauge *arg1 = (wxGauge *) 0 ;
6939 wxWindow *arg2 = (wxWindow *) 0 ;
6940 int arg3 = (int) -1 ;
6941 int arg4 = (int) 100 ;
6942 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6943 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6944 wxSize const &arg6_defvalue = wxDefaultSize ;
6945 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6946 long arg7 = (long) wxGA_HORIZONTAL ;
6947 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6948 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6949 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6950 wxString *arg9 = (wxString *) &arg9_defvalue ;
6951 bool result;
6952 void *argp1 = 0 ;
6953 int res1 = 0 ;
6954 void *argp2 = 0 ;
6955 int res2 = 0 ;
6956 int val3 ;
6957 int ecode3 = 0 ;
6958 int val4 ;
6959 int ecode4 = 0 ;
6960 wxPoint temp5 ;
6961 wxSize temp6 ;
6962 long val7 ;
6963 int ecode7 = 0 ;
6964 void *argp8 = 0 ;
6965 int res8 = 0 ;
6966 bool temp9 = false ;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 PyObject * obj2 = 0 ;
6970 PyObject * obj3 = 0 ;
6971 PyObject * obj4 = 0 ;
6972 PyObject * obj5 = 0 ;
6973 PyObject * obj6 = 0 ;
6974 PyObject * obj7 = 0 ;
6975 PyObject * obj8 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6984 }
6985 arg1 = reinterpret_cast< wxGauge * >(argp1);
6986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6987 if (!SWIG_IsOK(res2)) {
6988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6989 }
6990 arg2 = reinterpret_cast< wxWindow * >(argp2);
6991 if (obj2) {
6992 ecode3 = SWIG_AsVal_int(obj2, &val3);
6993 if (!SWIG_IsOK(ecode3)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6995 }
6996 arg3 = static_cast< int >(val3);
6997 }
6998 if (obj3) {
6999 ecode4 = SWIG_AsVal_int(obj3, &val4);
7000 if (!SWIG_IsOK(ecode4)) {
7001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7002 }
7003 arg4 = static_cast< int >(val4);
7004 }
7005 if (obj4) {
5cbf236d 7006 {
0085ce49
RD
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 7009 }
0085ce49
RD
7010 }
7011 if (obj5) {
5cbf236d 7012 {
0085ce49
RD
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 7015 }
0085ce49
RD
7016 }
7017 if (obj6) {
7018 ecode7 = SWIG_AsVal_long(obj6, &val7);
7019 if (!SWIG_IsOK(ecode7)) {
7020 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7021 }
7022 arg7 = static_cast< long >(val7);
7023 }
7024 if (obj7) {
7025 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7026 if (!SWIG_IsOK(res8)) {
7027 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 7028 }
0085ce49
RD
7029 if (!argp8) {
7030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7031 }
7032 arg8 = reinterpret_cast< wxValidator * >(argp8);
7033 }
7034 if (obj8) {
5cbf236d 7035 {
0085ce49
RD
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
5cbf236d 7039 }
0085ce49
RD
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7049 }
7050 {
7051 if (temp9)
7052 delete arg9;
7053 }
7054 return resultobj;
7055fail:
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return NULL;
7061}
7062
7063
7064SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxGauge *arg1 = (wxGauge *) 0 ;
7067 int arg2 ;
7068 void *argp1 = 0 ;
7069 int res1 = 0 ;
7070 int val2 ;
7071 int ecode2 = 0 ;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 char * kwnames[] = {
7075 (char *) "self",(char *) "range", NULL
7076 };
7077
7078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7080 if (!SWIG_IsOK(res1)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7082 }
7083 arg1 = reinterpret_cast< wxGauge * >(argp1);
7084 ecode2 = SWIG_AsVal_int(obj1, &val2);
7085 if (!SWIG_IsOK(ecode2)) {
7086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7087 }
7088 arg2 = static_cast< int >(val2);
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 (arg1)->SetRange(arg2);
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_Py_Void();
7096 return resultobj;
7097fail:
7098 return NULL;
5cbf236d
RD
7099}
7100
7101
0085ce49
RD
7102SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7103 PyObject *resultobj = 0;
7104 wxGauge *arg1 = (wxGauge *) 0 ;
7105 int result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 PyObject *swig_obj[1] ;
7109
7110 if (!args) SWIG_fail;
7111 swig_obj[0] = args;
7112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7113 if (!SWIG_IsOK(res1)) {
7114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7115 }
7116 arg1 = reinterpret_cast< wxGauge * >(argp1);
7117 {
7118 PyThreadState* __tstate = wxPyBeginAllowThreads();
7119 result = (int)((wxGauge const *)arg1)->GetRange();
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 resultobj = SWIG_From_int(static_cast< int >(result));
7124 return resultobj;
7125fail:
7126 return NULL;
7127}
7128
7129
7130SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 wxGauge *arg1 = (wxGauge *) 0 ;
7133 int arg2 ;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 int val2 ;
7137 int ecode2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "self",(char *) "pos", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7146 if (!SWIG_IsOK(res1)) {
7147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7148 }
7149 arg1 = reinterpret_cast< wxGauge * >(argp1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetValue(arg2);
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 resultobj = SWIG_Py_Void();
7162 return resultobj;
7163fail:
7164 return NULL;
5cbf236d
RD
7165}
7166
7167
0085ce49
RD
7168SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 PyObject *resultobj = 0;
7170 wxGauge *arg1 = (wxGauge *) 0 ;
7171 int result;
7172 void *argp1 = 0 ;
7173 int res1 = 0 ;
7174 PyObject *swig_obj[1] ;
7175
7176 if (!args) SWIG_fail;
7177 swig_obj[0] = args;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7181 }
7182 arg1 = reinterpret_cast< wxGauge * >(argp1);
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (int)((wxGauge const *)arg1)->GetValue();
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_From_int(static_cast< int >(result));
7190 return resultobj;
7191fail:
7192 return NULL;
5cbf236d
RD
7193}
7194
7195
0085ce49
RD
7196SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxGauge *arg1 = (wxGauge *) 0 ;
7199 bool result;
7200 void *argp1 = 0 ;
7201 int res1 = 0 ;
7202 PyObject *swig_obj[1] ;
7203
7204 if (!args) SWIG_fail;
7205 swig_obj[0] = args;
7206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7207 if (!SWIG_IsOK(res1)) {
7208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7209 }
7210 arg1 = reinterpret_cast< wxGauge * >(argp1);
7211 {
7212 PyThreadState* __tstate = wxPyBeginAllowThreads();
7213 result = (bool)((wxGauge const *)arg1)->IsVertical();
7214 wxPyEndAllowThreads(__tstate);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 {
7218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7219 }
7220 return resultobj;
7221fail:
7222 return NULL;
7223}
7224
7225
7226SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7227 PyObject *resultobj = 0;
7228 wxGauge *arg1 = (wxGauge *) 0 ;
7229 int arg2 ;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 int val2 ;
7233 int ecode2 = 0 ;
7234 PyObject * obj0 = 0 ;
7235 PyObject * obj1 = 0 ;
7236 char * kwnames[] = {
7237 (char *) "self",(char *) "w", NULL
7238 };
7239
7240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7242 if (!SWIG_IsOK(res1)) {
7243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7244 }
7245 arg1 = reinterpret_cast< wxGauge * >(argp1);
7246 ecode2 = SWIG_AsVal_int(obj1, &val2);
7247 if (!SWIG_IsOK(ecode2)) {
7248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7249 }
7250 arg2 = static_cast< int >(val2);
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 (arg1)->SetShadowWidth(arg2);
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 resultobj = SWIG_Py_Void();
7258 return resultobj;
7259fail:
7260 return NULL;
22bfe96c
RD
7261}
7262
7263
0085ce49
RD
7264SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7265 PyObject *resultobj = 0;
7266 wxGauge *arg1 = (wxGauge *) 0 ;
7267 int result;
7268 void *argp1 = 0 ;
7269 int res1 = 0 ;
7270 PyObject *swig_obj[1] ;
7271
7272 if (!args) SWIG_fail;
7273 swig_obj[0] = args;
7274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7275 if (!SWIG_IsOK(res1)) {
7276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7277 }
7278 arg1 = reinterpret_cast< wxGauge * >(argp1);
7279 {
7280 PyThreadState* __tstate = wxPyBeginAllowThreads();
7281 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = SWIG_From_int(static_cast< int >(result));
7286 return resultobj;
7287fail:
7288 return NULL;
7289}
7290
7291
7292SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj = 0;
7294 wxGauge *arg1 = (wxGauge *) 0 ;
7295 int arg2 ;
7296 void *argp1 = 0 ;
7297 int res1 = 0 ;
7298 int val2 ;
7299 int ecode2 = 0 ;
7300 PyObject * obj0 = 0 ;
7301 PyObject * obj1 = 0 ;
7302 char * kwnames[] = {
7303 (char *) "self",(char *) "w", NULL
7304 };
7305
7306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7308 if (!SWIG_IsOK(res1)) {
7309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7310 }
7311 arg1 = reinterpret_cast< wxGauge * >(argp1);
7312 ecode2 = SWIG_AsVal_int(obj1, &val2);
7313 if (!SWIG_IsOK(ecode2)) {
7314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7315 }
7316 arg2 = static_cast< int >(val2);
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 (arg1)->SetBezelFace(arg2);
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 resultobj = SWIG_Py_Void();
7324 return resultobj;
7325fail:
7326 return NULL;
d14a1e28 7327}
0085ce49
RD
7328
7329
7330SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7331 PyObject *resultobj = 0;
7332 wxGauge *arg1 = (wxGauge *) 0 ;
7333 int result;
7334 void *argp1 = 0 ;
7335 int res1 = 0 ;
7336 PyObject *swig_obj[1] ;
7337
7338 if (!args) SWIG_fail;
7339 swig_obj[0] = args;
7340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7341 if (!SWIG_IsOK(res1)) {
7342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7343 }
7344 arg1 = reinterpret_cast< wxGauge * >(argp1);
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7348 wxPyEndAllowThreads(__tstate);
7349 if (PyErr_Occurred()) SWIG_fail;
7350 }
7351 resultobj = SWIG_From_int(static_cast< int >(result));
7352 return resultobj;
7353fail:
7354 return NULL;
7355}
7356
7357
7358SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj = 0;
7360 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7361 SwigValueWrapper<wxVisualAttributes > result;
7362 int val1 ;
7363 int ecode1 = 0 ;
7364 PyObject * obj0 = 0 ;
7365 char * kwnames[] = {
7366 (char *) "variant", NULL
7367 };
7368
7369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7370 if (obj0) {
7371 ecode1 = SWIG_AsVal_int(obj0, &val1);
7372 if (!SWIG_IsOK(ecode1)) {
7373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7374 }
7375 arg1 = static_cast< wxWindowVariant >(val1);
7376 }
7377 {
7378 if (!wxPyCheckForApp()) SWIG_fail;
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 result = wxGauge::GetClassDefaultAttributes(arg1);
7381 wxPyEndAllowThreads(__tstate);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7385 return resultobj;
7386fail:
7387 return NULL;
b2dc1044
RD
7388}
7389
7390
0085ce49
RD
7391SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7392 PyObject *obj;
7393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7394 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7395 return SWIG_Py_Void();
7396}
7397
7398SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7399 return SWIG_Python_InitShadowInstance(args);
7400}
7401
7402SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7403 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7404 return 1;
7405}
7406
7407
7408SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7409 PyObject *pyobj = 0;
7410
7411 {
b2dc1044 7412#if wxUSE_UNICODE
0085ce49 7413 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7414#else
0085ce49 7415 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7416#endif
0085ce49
RD
7417 }
7418 return pyobj;
d14a1e28
RD
7419}
7420
7421
0085ce49
RD
7422SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7423 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7424 return 1;
d14a1e28
RD
7425}
7426
7427
0085ce49
RD
7428SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7429 PyObject *pyobj = 0;
7430
7431 {
7432#if wxUSE_UNICODE
7433 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7434#else
7435 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7436#endif
7437 }
7438 return pyobj;
7439}
7440
7441
7442SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7443 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7444 return 1;
7445}
7446
7447
7448SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7449 PyObject *pyobj = 0;
7450
7451 {
7452#if wxUSE_UNICODE
7453 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7454#else
7455 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7456#endif
7457 }
7458 return pyobj;
7459}
7460
7461
7462SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7463 PyObject *resultobj = 0;
7464 wxWindow *arg1 = (wxWindow *) 0 ;
7465 int arg2 = (int) -1 ;
7466 wxString const &arg3_defvalue = wxPyEmptyString ;
7467 wxString *arg3 = (wxString *) &arg3_defvalue ;
7468 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7469 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7470 wxSize const &arg5_defvalue = wxDefaultSize ;
7471 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7472 long arg6 = (long) 0 ;
7473 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7474 wxString *arg7 = (wxString *) &arg7_defvalue ;
7475 wxStaticBox *result = 0 ;
7476 void *argp1 = 0 ;
7477 int res1 = 0 ;
7478 int val2 ;
7479 int ecode2 = 0 ;
7480 bool temp3 = false ;
7481 wxPoint temp4 ;
7482 wxSize temp5 ;
7483 long val6 ;
7484 int ecode6 = 0 ;
7485 bool temp7 = false ;
7486 PyObject * obj0 = 0 ;
7487 PyObject * obj1 = 0 ;
7488 PyObject * obj2 = 0 ;
7489 PyObject * obj3 = 0 ;
7490 PyObject * obj4 = 0 ;
7491 PyObject * obj5 = 0 ;
7492 PyObject * obj6 = 0 ;
7493 char * kwnames[] = {
7494 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7495 };
7496
7497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7499 if (!SWIG_IsOK(res1)) {
7500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7501 }
7502 arg1 = reinterpret_cast< wxWindow * >(argp1);
7503 if (obj1) {
7504 ecode2 = SWIG_AsVal_int(obj1, &val2);
7505 if (!SWIG_IsOK(ecode2)) {
7506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7507 }
7508 arg2 = static_cast< int >(val2);
7509 }
7510 if (obj2) {
d14a1e28 7511 {
0085ce49
RD
7512 arg3 = wxString_in_helper(obj2);
7513 if (arg3 == NULL) SWIG_fail;
7514 temp3 = true;
d14a1e28 7515 }
0085ce49
RD
7516 }
7517 if (obj3) {
4f89f6a3 7518 {
0085ce49
RD
7519 arg4 = &temp4;
7520 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 7521 }
0085ce49
RD
7522 }
7523 if (obj4) {
d14a1e28 7524 {
0085ce49
RD
7525 arg5 = &temp5;
7526 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7527 }
0085ce49
RD
7528 }
7529 if (obj5) {
7530 ecode6 = SWIG_AsVal_long(obj5, &val6);
7531 if (!SWIG_IsOK(ecode6)) {
7532 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7533 }
7534 arg6 = static_cast< long >(val6);
7535 }
7536 if (obj6) {
d14a1e28 7537 {
0085ce49
RD
7538 arg7 = wxString_in_helper(obj6);
7539 if (arg7 == NULL) SWIG_fail;
7540 temp7 = true;
d14a1e28 7541 }
0085ce49
RD
7542 }
7543 {
7544 if (!wxPyCheckForApp()) SWIG_fail;
7545 PyThreadState* __tstate = wxPyBeginAllowThreads();
7546 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7547 wxPyEndAllowThreads(__tstate);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 }
7550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7551 {
7552 if (temp3)
7553 delete arg3;
7554 }
7555 {
7556 if (temp7)
7557 delete arg7;
7558 }
7559 return resultobj;
7560fail:
7561 {
7562 if (temp3)
7563 delete arg3;
7564 }
7565 {
7566 if (temp7)
7567 delete arg7;
7568 }
7569 return NULL;
d14a1e28
RD
7570}
7571
7572
0085ce49
RD
7573SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7574 PyObject *resultobj = 0;
7575 wxStaticBox *result = 0 ;
7576
7577 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7578 {
7579 if (!wxPyCheckForApp()) SWIG_fail;
7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
7581 result = (wxStaticBox *)new wxStaticBox();
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7586 return resultobj;
7587fail:
7588 return NULL;
7589}
7590
7591
7592SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj = 0;
7594 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7595 wxWindow *arg2 = (wxWindow *) 0 ;
7596 int arg3 = (int) -1 ;
7597 wxString const &arg4_defvalue = wxPyEmptyString ;
7598 wxString *arg4 = (wxString *) &arg4_defvalue ;
7599 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7600 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7601 wxSize const &arg6_defvalue = wxDefaultSize ;
7602 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7603 long arg7 = (long) 0 ;
7604 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7605 wxString *arg8 = (wxString *) &arg8_defvalue ;
7606 bool result;
7607 void *argp1 = 0 ;
7608 int res1 = 0 ;
7609 void *argp2 = 0 ;
7610 int res2 = 0 ;
7611 int val3 ;
7612 int ecode3 = 0 ;
7613 bool temp4 = false ;
7614 wxPoint temp5 ;
7615 wxSize temp6 ;
7616 long val7 ;
7617 int ecode7 = 0 ;
7618 bool temp8 = false ;
7619 PyObject * obj0 = 0 ;
7620 PyObject * obj1 = 0 ;
7621 PyObject * obj2 = 0 ;
7622 PyObject * obj3 = 0 ;
7623 PyObject * obj4 = 0 ;
7624 PyObject * obj5 = 0 ;
7625 PyObject * obj6 = 0 ;
7626 PyObject * obj7 = 0 ;
7627 char * kwnames[] = {
7628 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7629 };
7630
7631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7633 if (!SWIG_IsOK(res1)) {
7634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7635 }
7636 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7637 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7638 if (!SWIG_IsOK(res2)) {
7639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7640 }
7641 arg2 = reinterpret_cast< wxWindow * >(argp2);
7642 if (obj2) {
7643 ecode3 = SWIG_AsVal_int(obj2, &val3);
7644 if (!SWIG_IsOK(ecode3)) {
7645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7646 }
7647 arg3 = static_cast< int >(val3);
7648 }
7649 if (obj3) {
093d3ff1 7650 {
0085ce49
RD
7651 arg4 = wxString_in_helper(obj3);
7652 if (arg4 == NULL) SWIG_fail;
7653 temp4 = true;
093d3ff1 7654 }
0085ce49
RD
7655 }
7656 if (obj4) {
d14a1e28 7657 {
0085ce49
RD
7658 arg5 = &temp5;
7659 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7660 }
0085ce49
RD
7661 }
7662 if (obj5) {
d14a1e28 7663 {
0085ce49
RD
7664 arg6 = &temp6;
7665 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 7666 }
0085ce49
RD
7667 }
7668 if (obj6) {
7669 ecode7 = SWIG_AsVal_long(obj6, &val7);
7670 if (!SWIG_IsOK(ecode7)) {
7671 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7672 }
7673 arg7 = static_cast< long >(val7);
7674 }
7675 if (obj7) {
093d3ff1 7676 {
0085ce49
RD
7677 arg8 = wxString_in_helper(obj7);
7678 if (arg8 == NULL) SWIG_fail;
7679 temp8 = true;
093d3ff1 7680 }
0085ce49
RD
7681 }
7682 {
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7685 wxPyEndAllowThreads(__tstate);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 {
7689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7690 }
7691 {
7692 if (temp4)
7693 delete arg4;
7694 }
7695 {
7696 if (temp8)
7697 delete arg8;
7698 }
7699 return resultobj;
7700fail:
7701 {
7702 if (temp4)
7703 delete arg4;
7704 }
7705 {
7706 if (temp8)
7707 delete arg8;
7708 }
7709 return NULL;
7710}
d14a1e28 7711
0085ce49
RD
7712
7713SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj = 0;
7715 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7716 SwigValueWrapper<wxVisualAttributes > result;
7717 int val1 ;
7718 int ecode1 = 0 ;
7719 PyObject * obj0 = 0 ;
7720 char * kwnames[] = {
7721 (char *) "variant", NULL
7722 };
7723
7724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7725 if (obj0) {
7726 ecode1 = SWIG_AsVal_int(obj0, &val1);
7727 if (!SWIG_IsOK(ecode1)) {
7728 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7729 }
7730 arg1 = static_cast< wxWindowVariant >(val1);
7731 }
7732 {
7733 if (!wxPyCheckForApp()) SWIG_fail;
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7736 wxPyEndAllowThreads(__tstate);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7740 return resultobj;
7741fail:
7742 return NULL;
7743}
7744
7745
7746SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7747 PyObject *obj;
7748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7749 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7750 return SWIG_Py_Void();
7751}
7752
7753SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7754 return SWIG_Python_InitShadowInstance(args);
7755}
7756
7757SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj = 0;
7759 wxWindow *arg1 = (wxWindow *) 0 ;
7760 int arg2 = (int) -1 ;
7761 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7762 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7763 wxSize const &arg4_defvalue = wxDefaultSize ;
7764 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7765 long arg5 = (long) wxLI_HORIZONTAL ;
7766 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7767 wxString *arg6 = (wxString *) &arg6_defvalue ;
7768 wxStaticLine *result = 0 ;
7769 void *argp1 = 0 ;
7770 int res1 = 0 ;
7771 int val2 ;
7772 int ecode2 = 0 ;
7773 wxPoint temp3 ;
7774 wxSize temp4 ;
7775 long val5 ;
7776 int ecode5 = 0 ;
7777 bool temp6 = false ;
7778 PyObject * obj0 = 0 ;
7779 PyObject * obj1 = 0 ;
7780 PyObject * obj2 = 0 ;
7781 PyObject * obj3 = 0 ;
7782 PyObject * obj4 = 0 ;
7783 PyObject * obj5 = 0 ;
7784 char * kwnames[] = {
7785 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7786 };
7787
7788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7790 if (!SWIG_IsOK(res1)) {
7791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7792 }
7793 arg1 = reinterpret_cast< wxWindow * >(argp1);
7794 if (obj1) {
7795 ecode2 = SWIG_AsVal_int(obj1, &val2);
7796 if (!SWIG_IsOK(ecode2)) {
7797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7798 }
7799 arg2 = static_cast< int >(val2);
7800 }
7801 if (obj2) {
093d3ff1 7802 {
0085ce49
RD
7803 arg3 = &temp3;
7804 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7805 }
0085ce49
RD
7806 }
7807 if (obj3) {
d14a1e28 7808 {
0085ce49
RD
7809 arg4 = &temp4;
7810 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7811 }
0085ce49
RD
7812 }
7813 if (obj4) {
7814 ecode5 = SWIG_AsVal_long(obj4, &val5);
7815 if (!SWIG_IsOK(ecode5)) {
7816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7817 }
7818 arg5 = static_cast< long >(val5);
7819 }
7820 if (obj5) {
7821 {
7822 arg6 = wxString_in_helper(obj5);
7823 if (arg6 == NULL) SWIG_fail;
7824 temp6 = true;
7825 }
7826 }
7827 {
7828 if (!wxPyCheckForApp()) SWIG_fail;
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7835 {
7836 if (temp6)
7837 delete arg6;
7838 }
7839 return resultobj;
7840fail:
7841 {
7842 if (temp6)
7843 delete arg6;
7844 }
7845 return NULL;
d14a1e28
RD
7846}
7847
7848
0085ce49
RD
7849SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7850 PyObject *resultobj = 0;
7851 wxStaticLine *result = 0 ;
7852
7853 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7854 {
7855 if (!wxPyCheckForApp()) SWIG_fail;
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (wxStaticLine *)new wxStaticLine();
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7862 return resultobj;
7863fail:
7864 return NULL;
7865}
7866
7867
7868SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7869 PyObject *resultobj = 0;
7870 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7871 wxWindow *arg2 = (wxWindow *) 0 ;
7872 int arg3 = (int) -1 ;
7873 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7874 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7875 wxSize const &arg5_defvalue = wxDefaultSize ;
7876 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7877 long arg6 = (long) wxLI_HORIZONTAL ;
7878 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7879 wxString *arg7 = (wxString *) &arg7_defvalue ;
7880 bool result;
7881 void *argp1 = 0 ;
7882 int res1 = 0 ;
7883 void *argp2 = 0 ;
7884 int res2 = 0 ;
7885 int val3 ;
7886 int ecode3 = 0 ;
7887 wxPoint temp4 ;
7888 wxSize temp5 ;
7889 long val6 ;
7890 int ecode6 = 0 ;
7891 bool temp7 = false ;
7892 PyObject * obj0 = 0 ;
7893 PyObject * obj1 = 0 ;
7894 PyObject * obj2 = 0 ;
7895 PyObject * obj3 = 0 ;
7896 PyObject * obj4 = 0 ;
7897 PyObject * obj5 = 0 ;
7898 PyObject * obj6 = 0 ;
7899 char * kwnames[] = {
7900 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7901 };
7902
7903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7905 if (!SWIG_IsOK(res1)) {
7906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7907 }
7908 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7909 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7910 if (!SWIG_IsOK(res2)) {
7911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7912 }
7913 arg2 = reinterpret_cast< wxWindow * >(argp2);
7914 if (obj2) {
7915 ecode3 = SWIG_AsVal_int(obj2, &val3);
7916 if (!SWIG_IsOK(ecode3)) {
7917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7918 }
7919 arg3 = static_cast< int >(val3);
7920 }
7921 if (obj3) {
d14a1e28 7922 {
0085ce49
RD
7923 arg4 = &temp4;
7924 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7925 }
0085ce49
RD
7926 }
7927 if (obj4) {
093d3ff1 7928 {
0085ce49
RD
7929 arg5 = &temp5;
7930 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7931 }
0085ce49
RD
7932 }
7933 if (obj5) {
7934 ecode6 = SWIG_AsVal_long(obj5, &val6);
7935 if (!SWIG_IsOK(ecode6)) {
7936 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7937 }
7938 arg6 = static_cast< long >(val6);
7939 }
7940 if (obj6) {
7941 {
7942 arg7 = wxString_in_helper(obj6);
7943 if (arg7 == NULL) SWIG_fail;
7944 temp7 = true;
7945 }
7946 }
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
7953 {
7954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7955 }
7956 {
7957 if (temp7)
7958 delete arg7;
7959 }
7960 return resultobj;
7961fail:
7962 {
7963 if (temp7)
7964 delete arg7;
7965 }
7966 return NULL;
d14a1e28
RD
7967}
7968
7969
0085ce49
RD
7970SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7971 PyObject *resultobj = 0;
7972 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7973 bool result;
7974 void *argp1 = 0 ;
7975 int res1 = 0 ;
7976 PyObject *swig_obj[1] ;
7977
7978 if (!args) SWIG_fail;
7979 swig_obj[0] = args;
7980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7981 if (!SWIG_IsOK(res1)) {
7982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7983 }
7984 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 {
7992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7993 }
7994 return resultobj;
7995fail:
7996 return NULL;
7997}
7998
7999
8000SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *resultobj = 0;
8002 int result;
8003
8004 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8005 {
8006 PyThreadState* __tstate = wxPyBeginAllowThreads();
8007 result = (int)wxStaticLine::GetDefaultSize();
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 resultobj = SWIG_From_int(static_cast< int >(result));
8012 return resultobj;
8013fail:
8014 return NULL;
8015}
8016
8017
8018SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8019 PyObject *resultobj = 0;
8020 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8021 SwigValueWrapper<wxVisualAttributes > result;
8022 int val1 ;
8023 int ecode1 = 0 ;
8024 PyObject * obj0 = 0 ;
8025 char * kwnames[] = {
8026 (char *) "variant", NULL
8027 };
8028
8029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8030 if (obj0) {
8031 ecode1 = SWIG_AsVal_int(obj0, &val1);
8032 if (!SWIG_IsOK(ecode1)) {
8033 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8034 }
8035 arg1 = static_cast< wxWindowVariant >(val1);
8036 }
8037 {
8038 if (!wxPyCheckForApp()) SWIG_fail;
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8041 wxPyEndAllowThreads(__tstate);
8042 if (PyErr_Occurred()) SWIG_fail;
8043 }
8044 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8045 return resultobj;
8046fail:
8047 return NULL;
8048}
8049
8050
8051SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8052 PyObject *obj;
8053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8054 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8055 return SWIG_Py_Void();
8056}
8057
8058SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8059 return SWIG_Python_InitShadowInstance(args);
8060}
8061
8062SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj = 0;
8064 wxWindow *arg1 = (wxWindow *) 0 ;
8065 int arg2 = (int) -1 ;
8066 wxString const &arg3_defvalue = wxPyEmptyString ;
8067 wxString *arg3 = (wxString *) &arg3_defvalue ;
8068 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8069 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8070 wxSize const &arg5_defvalue = wxDefaultSize ;
8071 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8072 long arg6 = (long) 0 ;
8073 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8074 wxString *arg7 = (wxString *) &arg7_defvalue ;
8075 wxStaticText *result = 0 ;
8076 void *argp1 = 0 ;
8077 int res1 = 0 ;
8078 int val2 ;
8079 int ecode2 = 0 ;
8080 bool temp3 = false ;
8081 wxPoint temp4 ;
8082 wxSize temp5 ;
8083 long val6 ;
8084 int ecode6 = 0 ;
8085 bool temp7 = false ;
8086 PyObject * obj0 = 0 ;
8087 PyObject * obj1 = 0 ;
8088 PyObject * obj2 = 0 ;
8089 PyObject * obj3 = 0 ;
8090 PyObject * obj4 = 0 ;
8091 PyObject * obj5 = 0 ;
8092 PyObject * obj6 = 0 ;
8093 char * kwnames[] = {
8094 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8095 };
8096
8097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8099 if (!SWIG_IsOK(res1)) {
8100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8101 }
8102 arg1 = reinterpret_cast< wxWindow * >(argp1);
8103 if (obj1) {
8104 ecode2 = SWIG_AsVal_int(obj1, &val2);
8105 if (!SWIG_IsOK(ecode2)) {
8106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8107 }
8108 arg2 = static_cast< int >(val2);
8109 }
8110 if (obj2) {
d14a1e28 8111 {
0085ce49
RD
8112 arg3 = wxString_in_helper(obj2);
8113 if (arg3 == NULL) SWIG_fail;
8114 temp3 = true;
d14a1e28 8115 }
0085ce49
RD
8116 }
8117 if (obj3) {
4f89f6a3 8118 {
0085ce49
RD
8119 arg4 = &temp4;
8120 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 8121 }
0085ce49
RD
8122 }
8123 if (obj4) {
093d3ff1 8124 {
0085ce49
RD
8125 arg5 = &temp5;
8126 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8127 }
0085ce49
RD
8128 }
8129 if (obj5) {
8130 ecode6 = SWIG_AsVal_long(obj5, &val6);
8131 if (!SWIG_IsOK(ecode6)) {
8132 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8133 }
8134 arg6 = static_cast< long >(val6);
8135 }
8136 if (obj6) {
d14a1e28 8137 {
0085ce49
RD
8138 arg7 = wxString_in_helper(obj6);
8139 if (arg7 == NULL) SWIG_fail;
8140 temp7 = true;
d14a1e28 8141 }
0085ce49
RD
8142 }
8143 {
8144 if (!wxPyCheckForApp()) SWIG_fail;
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8147 wxPyEndAllowThreads(__tstate);
8148 if (PyErr_Occurred()) SWIG_fail;
8149 }
8150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8151 {
8152 if (temp3)
8153 delete arg3;
8154 }
8155 {
8156 if (temp7)
8157 delete arg7;
8158 }
8159 return resultobj;
8160fail:
8161 {
8162 if (temp3)
8163 delete arg3;
8164 }
8165 {
8166 if (temp7)
8167 delete arg7;
8168 }
8169 return NULL;
d14a1e28
RD
8170}
8171
8172
0085ce49
RD
8173SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8174 PyObject *resultobj = 0;
8175 wxStaticText *result = 0 ;
8176
8177 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8178 {
8179 if (!wxPyCheckForApp()) SWIG_fail;
8180 PyThreadState* __tstate = wxPyBeginAllowThreads();
8181 result = (wxStaticText *)new wxStaticText();
8182 wxPyEndAllowThreads(__tstate);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8186 return resultobj;
8187fail:
8188 return NULL;
8189}
8190
8191
8192SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj = 0;
8194 wxStaticText *arg1 = (wxStaticText *) 0 ;
8195 wxWindow *arg2 = (wxWindow *) 0 ;
8196 int arg3 = (int) -1 ;
8197 wxString const &arg4_defvalue = wxPyEmptyString ;
8198 wxString *arg4 = (wxString *) &arg4_defvalue ;
8199 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8200 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8201 wxSize const &arg6_defvalue = wxDefaultSize ;
8202 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8203 long arg7 = (long) 0 ;
8204 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8205 wxString *arg8 = (wxString *) &arg8_defvalue ;
8206 bool result;
8207 void *argp1 = 0 ;
8208 int res1 = 0 ;
8209 void *argp2 = 0 ;
8210 int res2 = 0 ;
8211 int val3 ;
8212 int ecode3 = 0 ;
8213 bool temp4 = false ;
8214 wxPoint temp5 ;
8215 wxSize temp6 ;
8216 long val7 ;
8217 int ecode7 = 0 ;
8218 bool temp8 = false ;
8219 PyObject * obj0 = 0 ;
8220 PyObject * obj1 = 0 ;
8221 PyObject * obj2 = 0 ;
8222 PyObject * obj3 = 0 ;
8223 PyObject * obj4 = 0 ;
8224 PyObject * obj5 = 0 ;
8225 PyObject * obj6 = 0 ;
8226 PyObject * obj7 = 0 ;
8227 char * kwnames[] = {
8228 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8229 };
8230
8231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8233 if (!SWIG_IsOK(res1)) {
8234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8235 }
8236 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8238 if (!SWIG_IsOK(res2)) {
8239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8240 }
8241 arg2 = reinterpret_cast< wxWindow * >(argp2);
8242 if (obj2) {
8243 ecode3 = SWIG_AsVal_int(obj2, &val3);
8244 if (!SWIG_IsOK(ecode3)) {
8245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8246 }
8247 arg3 = static_cast< int >(val3);
8248 }
8249 if (obj3) {
d14a1e28 8250 {
0085ce49
RD
8251 arg4 = wxString_in_helper(obj3);
8252 if (arg4 == NULL) SWIG_fail;
8253 temp4 = true;
8254 }
8255 }
8256 if (obj4) {
8257 {
8258 arg5 = &temp5;
8259 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8260 }
0085ce49
RD
8261 }
8262 if (obj5) {
093d3ff1 8263 {
0085ce49
RD
8264 arg6 = &temp6;
8265 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8266 }
0085ce49
RD
8267 }
8268 if (obj6) {
8269 ecode7 = SWIG_AsVal_long(obj6, &val7);
8270 if (!SWIG_IsOK(ecode7)) {
8271 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8272 }
8273 arg7 = static_cast< long >(val7);
8274 }
8275 if (obj7) {
093d3ff1 8276 {
0085ce49
RD
8277 arg8 = wxString_in_helper(obj7);
8278 if (arg8 == NULL) SWIG_fail;
8279 temp8 = true;
8280 }
8281 }
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8285 wxPyEndAllowThreads(__tstate);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 {
8289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8290 }
8291 {
8292 if (temp4)
8293 delete arg4;
8294 }
8295 {
8296 if (temp8)
8297 delete arg8;
8298 }
8299 return resultobj;
8300fail:
8301 {
8302 if (temp4)
8303 delete arg4;
8304 }
8305 {
8306 if (temp8)
8307 delete arg8;
8308 }
8309 return NULL;
8310}
8311
8312
8313SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8314 PyObject *resultobj = 0;
8315 wxStaticText *arg1 = (wxStaticText *) 0 ;
8316 int arg2 ;
8317 void *argp1 = 0 ;
8318 int res1 = 0 ;
8319 int val2 ;
8320 int ecode2 = 0 ;
8321 PyObject * obj0 = 0 ;
8322 PyObject * obj1 = 0 ;
8323 char * kwnames[] = {
8324 (char *) "self",(char *) "width", NULL
8325 };
8326
8327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8329 if (!SWIG_IsOK(res1)) {
8330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8331 }
8332 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8333 ecode2 = SWIG_AsVal_int(obj1, &val2);
8334 if (!SWIG_IsOK(ecode2)) {
8335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8336 }
8337 arg2 = static_cast< int >(val2);
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 (arg1)->Wrap(arg2);
8341 wxPyEndAllowThreads(__tstate);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 resultobj = SWIG_Py_Void();
8345 return resultobj;
8346fail:
8347 return NULL;
8348}
8349
8350
8351SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj = 0;
8353 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8354 SwigValueWrapper<wxVisualAttributes > result;
8355 int val1 ;
8356 int ecode1 = 0 ;
8357 PyObject * obj0 = 0 ;
8358 char * kwnames[] = {
8359 (char *) "variant", NULL
8360 };
8361
8362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8363 if (obj0) {
8364 ecode1 = SWIG_AsVal_int(obj0, &val1);
8365 if (!SWIG_IsOK(ecode1)) {
8366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8367 }
8368 arg1 = static_cast< wxWindowVariant >(val1);
8369 }
8370 {
8371 if (!wxPyCheckForApp()) SWIG_fail;
8372 PyThreadState* __tstate = wxPyBeginAllowThreads();
8373 result = wxStaticText::GetClassDefaultAttributes(arg1);
8374 wxPyEndAllowThreads(__tstate);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8378 return resultobj;
8379fail:
8380 return NULL;
8381}
8382
8383
8384SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8385 PyObject *obj;
8386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8387 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8388 return SWIG_Py_Void();
8389}
8390
8391SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8392 return SWIG_Python_InitShadowInstance(args);
8393}
8394
8395SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj = 0;
8397 wxWindow *arg1 = (wxWindow *) 0 ;
8398 int arg2 = (int) -1 ;
8399 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8400 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8401 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8402 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8403 wxSize const &arg5_defvalue = wxDefaultSize ;
8404 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8405 long arg6 = (long) 0 ;
8406 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8407 wxString *arg7 = (wxString *) &arg7_defvalue ;
8408 wxStaticBitmap *result = 0 ;
8409 void *argp1 = 0 ;
8410 int res1 = 0 ;
8411 int val2 ;
8412 int ecode2 = 0 ;
8413 void *argp3 = 0 ;
8414 int res3 = 0 ;
8415 wxPoint temp4 ;
8416 wxSize temp5 ;
8417 long val6 ;
8418 int ecode6 = 0 ;
8419 bool temp7 = false ;
8420 PyObject * obj0 = 0 ;
8421 PyObject * obj1 = 0 ;
8422 PyObject * obj2 = 0 ;
8423 PyObject * obj3 = 0 ;
8424 PyObject * obj4 = 0 ;
8425 PyObject * obj5 = 0 ;
8426 PyObject * obj6 = 0 ;
8427 char * kwnames[] = {
8428 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8429 };
8430
8431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8433 if (!SWIG_IsOK(res1)) {
8434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8435 }
8436 arg1 = reinterpret_cast< wxWindow * >(argp1);
8437 if (obj1) {
8438 ecode2 = SWIG_AsVal_int(obj1, &val2);
8439 if (!SWIG_IsOK(ecode2)) {
8440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8441 }
8442 arg2 = static_cast< int >(val2);
8443 }
8444 if (obj2) {
8445 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8446 if (!SWIG_IsOK(res3)) {
8447 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8448 }
8449 if (!argp3) {
8450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8451 }
0085ce49
RD
8452 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8453 }
8454 if (obj3) {
d14a1e28 8455 {
0085ce49
RD
8456 arg4 = &temp4;
8457 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8458 }
0085ce49
RD
8459 }
8460 if (obj4) {
d14a1e28 8461 {
0085ce49
RD
8462 arg5 = &temp5;
8463 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8464 }
0085ce49
RD
8465 }
8466 if (obj5) {
8467 ecode6 = SWIG_AsVal_long(obj5, &val6);
8468 if (!SWIG_IsOK(ecode6)) {
8469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8470 }
8471 arg6 = static_cast< long >(val6);
8472 }
8473 if (obj6) {
093d3ff1 8474 {
0085ce49
RD
8475 arg7 = wxString_in_helper(obj6);
8476 if (arg7 == NULL) SWIG_fail;
8477 temp7 = true;
093d3ff1 8478 }
0085ce49
RD
8479 }
8480 {
8481 if (!wxPyCheckForApp()) SWIG_fail;
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8488 {
8489 if (temp7)
8490 delete arg7;
8491 }
8492 return resultobj;
8493fail:
8494 {
8495 if (temp7)
8496 delete arg7;
8497 }
8498 return NULL;
d14a1e28
RD
8499}
8500
8501
0085ce49
RD
8502SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8503 PyObject *resultobj = 0;
8504 wxStaticBitmap *result = 0 ;
8505
8506 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8507 {
8508 if (!wxPyCheckForApp()) SWIG_fail;
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 result = (wxStaticBitmap *)new wxStaticBitmap();
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8515 return resultobj;
8516fail:
8517 return NULL;
8518}
8519
8520
8521SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8522 PyObject *resultobj = 0;
8523 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8524 wxWindow *arg2 = (wxWindow *) 0 ;
8525 int arg3 = (int) -1 ;
8526 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8527 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8528 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8529 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8530 wxSize const &arg6_defvalue = wxDefaultSize ;
8531 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8532 long arg7 = (long) 0 ;
8533 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8534 wxString *arg8 = (wxString *) &arg8_defvalue ;
8535 bool result;
8536 void *argp1 = 0 ;
8537 int res1 = 0 ;
8538 void *argp2 = 0 ;
8539 int res2 = 0 ;
8540 int val3 ;
8541 int ecode3 = 0 ;
8542 void *argp4 = 0 ;
8543 int res4 = 0 ;
8544 wxPoint temp5 ;
8545 wxSize temp6 ;
8546 long val7 ;
8547 int ecode7 = 0 ;
8548 bool temp8 = false ;
8549 PyObject * obj0 = 0 ;
8550 PyObject * obj1 = 0 ;
8551 PyObject * obj2 = 0 ;
8552 PyObject * obj3 = 0 ;
8553 PyObject * obj4 = 0 ;
8554 PyObject * obj5 = 0 ;
8555 PyObject * obj6 = 0 ;
8556 PyObject * obj7 = 0 ;
8557 char * kwnames[] = {
8558 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8559 };
8560
8561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8563 if (!SWIG_IsOK(res1)) {
8564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8565 }
8566 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8568 if (!SWIG_IsOK(res2)) {
8569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8570 }
8571 arg2 = reinterpret_cast< wxWindow * >(argp2);
8572 if (obj2) {
8573 ecode3 = SWIG_AsVal_int(obj2, &val3);
8574 if (!SWIG_IsOK(ecode3)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8576 }
8577 arg3 = static_cast< int >(val3);
8578 }
8579 if (obj3) {
8580 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8581 if (!SWIG_IsOK(res4)) {
8582 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8583 }
8584 if (!argp4) {
8585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22bfe96c 8586 }
0085ce49
RD
8587 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8588 }
8589 if (obj4) {
22bfe96c 8590 {
0085ce49
RD
8591 arg5 = &temp5;
8592 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 8593 }
0085ce49
RD
8594 }
8595 if (obj5) {
22bfe96c 8596 {
0085ce49
RD
8597 arg6 = &temp6;
8598 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
22bfe96c 8599 }
0085ce49
RD
8600 }
8601 if (obj6) {
8602 ecode7 = SWIG_AsVal_long(obj6, &val7);
8603 if (!SWIG_IsOK(ecode7)) {
8604 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8605 }
8606 arg7 = static_cast< long >(val7);
8607 }
8608 if (obj7) {
b2dc1044 8609 {
0085ce49
RD
8610 arg8 = wxString_in_helper(obj7);
8611 if (arg8 == NULL) SWIG_fail;
8612 temp8 = true;
b2dc1044 8613 }
0085ce49
RD
8614 }
8615 {
8616 PyThreadState* __tstate = wxPyBeginAllowThreads();
8617 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8618 wxPyEndAllowThreads(__tstate);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 {
8622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8623 }
8624 {
8625 if (temp8)
8626 delete arg8;
8627 }
8628 return resultobj;
8629fail:
8630 {
8631 if (temp8)
8632 delete arg8;
8633 }
8634 return NULL;
b2dc1044
RD
8635}
8636
8637
0085ce49
RD
8638SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8639 PyObject *resultobj = 0;
8640 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8641 wxBitmap result;
8642 void *argp1 = 0 ;
8643 int res1 = 0 ;
8644 PyObject *swig_obj[1] ;
8645
8646 if (!args) SWIG_fail;
8647 swig_obj[0] = args;
8648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8649 if (!SWIG_IsOK(res1)) {
8650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8651 }
8652 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8653 {
8654 PyThreadState* __tstate = wxPyBeginAllowThreads();
8655 result = (arg1)->GetBitmap();
8656 wxPyEndAllowThreads(__tstate);
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8660 return resultobj;
8661fail:
8662 return NULL;
8663}
8664
8665
8666SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8667 PyObject *resultobj = 0;
8668 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8669 wxBitmap *arg2 = 0 ;
8670 void *argp1 = 0 ;
8671 int res1 = 0 ;
8672 void *argp2 = 0 ;
8673 int res2 = 0 ;
8674 PyObject * obj0 = 0 ;
8675 PyObject * obj1 = 0 ;
8676 char * kwnames[] = {
8677 (char *) "self",(char *) "bitmap", NULL
8678 };
8679
8680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8682 if (!SWIG_IsOK(res1)) {
8683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8684 }
8685 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8687 if (!SWIG_IsOK(res2)) {
8688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8689 }
8690 if (!argp2) {
8691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8692 }
8693 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = SWIG_Py_Void();
8701 return resultobj;
8702fail:
8703 return NULL;
8704}
8705
8706
8707SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj = 0;
8709 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8710 wxIcon *arg2 = 0 ;
8711 void *argp1 = 0 ;
8712 int res1 = 0 ;
8713 void *argp2 = 0 ;
8714 int res2 = 0 ;
8715 PyObject * obj0 = 0 ;
8716 PyObject * obj1 = 0 ;
8717 char * kwnames[] = {
8718 (char *) "self",(char *) "icon", NULL
8719 };
8720
8721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8723 if (!SWIG_IsOK(res1)) {
8724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8725 }
8726 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8728 if (!SWIG_IsOK(res2)) {
8729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8730 }
8731 if (!argp2) {
8732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8733 }
8734 arg2 = reinterpret_cast< wxIcon * >(argp2);
8735 {
8736 PyThreadState* __tstate = wxPyBeginAllowThreads();
8737 (arg1)->SetIcon((wxIcon const &)*arg2);
8738 wxPyEndAllowThreads(__tstate);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 }
8741 resultobj = SWIG_Py_Void();
8742 return resultobj;
8743fail:
8744 return NULL;
8745}
8746
8747
8748SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8749 PyObject *resultobj = 0;
8750 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8751 SwigValueWrapper<wxVisualAttributes > result;
8752 int val1 ;
8753 int ecode1 = 0 ;
8754 PyObject * obj0 = 0 ;
8755 char * kwnames[] = {
8756 (char *) "variant", NULL
8757 };
8758
8759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8760 if (obj0) {
8761 ecode1 = SWIG_AsVal_int(obj0, &val1);
8762 if (!SWIG_IsOK(ecode1)) {
8763 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8764 }
8765 arg1 = static_cast< wxWindowVariant >(val1);
8766 }
8767 {
8768 if (!wxPyCheckForApp()) SWIG_fail;
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8771 wxPyEndAllowThreads(__tstate);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8775 return resultobj;
8776fail:
8777 return NULL;
b2dc1044
RD
8778}
8779
8780
0085ce49
RD
8781SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8782 PyObject *obj;
8783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8784 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8785 return SWIG_Py_Void();
b2dc1044
RD
8786}
8787
0085ce49
RD
8788SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8789 return SWIG_Python_InitShadowInstance(args);
8790}
b2dc1044 8791
0085ce49
RD
8792SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8793 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8794 return 1;
b2dc1044
RD
8795}
8796
8797
0085ce49
RD
8798SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8799 PyObject *pyobj = 0;
8800
8801 {
b2dc1044 8802#if wxUSE_UNICODE
0085ce49 8803 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8804#else
0085ce49 8805 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8806#endif
0085ce49
RD
8807 }
8808 return pyobj;
8809}
8810
8811
8812SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj = 0;
8814 wxWindow *arg1 = (wxWindow *) 0 ;
8815 int arg2 = (int) -1 ;
8816 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8817 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8818 wxSize const &arg4_defvalue = wxDefaultSize ;
8819 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8820 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8821 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8822 long arg6 = (long) 0 ;
8823 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8824 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8825 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8826 wxString *arg8 = (wxString *) &arg8_defvalue ;
8827 wxListBox *result = 0 ;
8828 void *argp1 = 0 ;
8829 int res1 = 0 ;
8830 int val2 ;
8831 int ecode2 = 0 ;
8832 wxPoint temp3 ;
8833 wxSize temp4 ;
8834 bool temp5 = false ;
8835 long val6 ;
8836 int ecode6 = 0 ;
8837 void *argp7 = 0 ;
8838 int res7 = 0 ;
8839 bool temp8 = false ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 PyObject * obj2 = 0 ;
8843 PyObject * obj3 = 0 ;
8844 PyObject * obj4 = 0 ;
8845 PyObject * obj5 = 0 ;
8846 PyObject * obj6 = 0 ;
8847 PyObject * obj7 = 0 ;
8848 char * kwnames[] = {
8849 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8850 };
8851
8852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8854 if (!SWIG_IsOK(res1)) {
8855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8856 }
8857 arg1 = reinterpret_cast< wxWindow * >(argp1);
8858 if (obj1) {
8859 ecode2 = SWIG_AsVal_int(obj1, &val2);
8860 if (!SWIG_IsOK(ecode2)) {
8861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8862 }
8863 arg2 = static_cast< int >(val2);
8864 }
8865 if (obj2) {
d14a1e28 8866 {
0085ce49
RD
8867 arg3 = &temp3;
8868 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 8869 }
0085ce49
RD
8870 }
8871 if (obj3) {
d14a1e28 8872 {
0085ce49
RD
8873 arg4 = &temp4;
8874 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8875 }
0085ce49
RD
8876 }
8877 if (obj4) {
d14a1e28 8878 {
0085ce49
RD
8879 if (! PySequence_Check(obj4)) {
8880 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8881 SWIG_fail;
8882 }
8883 arg5 = new wxArrayString;
8884 temp5 = true;
8885 int i, len=PySequence_Length(obj4);
8886 for (i=0; i<len; i++) {
8887 PyObject* item = PySequence_GetItem(obj4, i);
8888 wxString* s = wxString_in_helper(item);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 arg5->Add(*s);
8891 delete s;
8892 Py_DECREF(item);
8893 }
d14a1e28 8894 }
0085ce49
RD
8895 }
8896 if (obj5) {
8897 ecode6 = SWIG_AsVal_long(obj5, &val6);
8898 if (!SWIG_IsOK(ecode6)) {
8899 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8900 }
8901 arg6 = static_cast< long >(val6);
8902 }
8903 if (obj6) {
8904 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8905 if (!SWIG_IsOK(res7)) {
8906 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8907 }
0085ce49
RD
8908 if (!argp7) {
8909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8910 }
0085ce49
RD
8911 arg7 = reinterpret_cast< wxValidator * >(argp7);
8912 }
8913 if (obj7) {
d14a1e28 8914 {
0085ce49
RD
8915 arg8 = wxString_in_helper(obj7);
8916 if (arg8 == NULL) SWIG_fail;
8917 temp8 = true;
d14a1e28 8918 }
0085ce49
RD
8919 }
8920 {
8921 if (!wxPyCheckForApp()) SWIG_fail;
8922 PyThreadState* __tstate = wxPyBeginAllowThreads();
8923 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8924 wxPyEndAllowThreads(__tstate);
8925 if (PyErr_Occurred()) SWIG_fail;
8926 }
8927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8928 {
8929 if (temp5) delete arg5;
8930 }
8931 {
8932 if (temp8)
8933 delete arg8;
8934 }
8935 return resultobj;
8936fail:
8937 {
8938 if (temp5) delete arg5;
8939 }
8940 {
8941 if (temp8)
8942 delete arg8;
8943 }
8944 return NULL;
d14a1e28
RD
8945}
8946
8947
0085ce49
RD
8948SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8949 PyObject *resultobj = 0;
8950 wxListBox *result = 0 ;
8951
8952 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8953 {
8954 if (!wxPyCheckForApp()) SWIG_fail;
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 result = (wxListBox *)new wxListBox();
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8961 return resultobj;
8962fail:
8963 return NULL;
8964}
8965
8966
8967SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj = 0;
8969 wxListBox *arg1 = (wxListBox *) 0 ;
8970 wxWindow *arg2 = (wxWindow *) 0 ;
8971 int arg3 = (int) -1 ;
8972 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8973 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8974 wxSize const &arg5_defvalue = wxDefaultSize ;
8975 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8976 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8977 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8978 long arg7 = (long) 0 ;
8979 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8980 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8981 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8982 wxString *arg9 = (wxString *) &arg9_defvalue ;
8983 bool result;
8984 void *argp1 = 0 ;
8985 int res1 = 0 ;
8986 void *argp2 = 0 ;
8987 int res2 = 0 ;
8988 int val3 ;
8989 int ecode3 = 0 ;
8990 wxPoint temp4 ;
8991 wxSize temp5 ;
8992 bool temp6 = false ;
8993 long val7 ;
8994 int ecode7 = 0 ;
8995 void *argp8 = 0 ;
8996 int res8 = 0 ;
8997 bool temp9 = false ;
8998 PyObject * obj0 = 0 ;
8999 PyObject * obj1 = 0 ;
9000 PyObject * obj2 = 0 ;
9001 PyObject * obj3 = 0 ;
9002 PyObject * obj4 = 0 ;
9003 PyObject * obj5 = 0 ;
9004 PyObject * obj6 = 0 ;
9005 PyObject * obj7 = 0 ;
9006 PyObject * obj8 = 0 ;
9007 char * kwnames[] = {
9008 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9009 };
9010
9011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9013 if (!SWIG_IsOK(res1)) {
9014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9015 }
9016 arg1 = reinterpret_cast< wxListBox * >(argp1);
9017 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9018 if (!SWIG_IsOK(res2)) {
9019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9020 }
9021 arg2 = reinterpret_cast< wxWindow * >(argp2);
9022 if (obj2) {
9023 ecode3 = SWIG_AsVal_int(obj2, &val3);
9024 if (!SWIG_IsOK(ecode3)) {
9025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9026 }
9027 arg3 = static_cast< int >(val3);
9028 }
9029 if (obj3) {
d14a1e28 9030 {
0085ce49
RD
9031 arg4 = &temp4;
9032 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 9033 }
0085ce49
RD
9034 }
9035 if (obj4) {
d14a1e28 9036 {
0085ce49
RD
9037 arg5 = &temp5;
9038 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 9039 }
0085ce49
RD
9040 }
9041 if (obj5) {
d14a1e28 9042 {
0085ce49
RD
9043 if (! PySequence_Check(obj5)) {
9044 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9045 SWIG_fail;
9046 }
9047 arg6 = new wxArrayString;
9048 temp6 = true;
9049 int i, len=PySequence_Length(obj5);
9050 for (i=0; i<len; i++) {
9051 PyObject* item = PySequence_GetItem(obj5, i);
9052 wxString* s = wxString_in_helper(item);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 arg6->Add(*s);
9055 delete s;
9056 Py_DECREF(item);
9057 }
d14a1e28 9058 }
0085ce49
RD
9059 }
9060 if (obj6) {
9061 ecode7 = SWIG_AsVal_long(obj6, &val7);
9062 if (!SWIG_IsOK(ecode7)) {
9063 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9064 }
9065 arg7 = static_cast< long >(val7);
9066 }
9067 if (obj7) {
9068 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9069 if (!SWIG_IsOK(res8)) {
9070 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 9071 }
0085ce49
RD
9072 if (!argp8) {
9073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
22bfe96c 9074 }
0085ce49
RD
9075 arg8 = reinterpret_cast< wxValidator * >(argp8);
9076 }
9077 if (obj8) {
22bfe96c 9078 {
0085ce49
RD
9079 arg9 = wxString_in_helper(obj8);
9080 if (arg9 == NULL) SWIG_fail;
9081 temp9 = true;
22bfe96c 9082 }
0085ce49
RD
9083 }
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 {
9091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9092 }
9093 {
9094 if (temp6) delete arg6;
9095 }
9096 {
9097 if (temp9)
9098 delete arg9;
9099 }
9100 return resultobj;
9101fail:
9102 {
9103 if (temp6) delete arg6;
9104 }
9105 {
9106 if (temp9)
9107 delete arg9;
9108 }
9109 return NULL;
9110}
9111
9112
9113SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9114 PyObject *resultobj = 0;
9115 wxListBox *arg1 = (wxListBox *) 0 ;
9116 wxString *arg2 = 0 ;
9117 int arg3 ;
9118 PyObject *arg4 = (PyObject *) NULL ;
9119 void *argp1 = 0 ;
9120 int res1 = 0 ;
9121 bool temp2 = false ;
9122 int val3 ;
9123 int ecode3 = 0 ;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 PyObject * obj2 = 0 ;
9127 PyObject * obj3 = 0 ;
9128 char * kwnames[] = {
9129 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9130 };
9131
9132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9134 if (!SWIG_IsOK(res1)) {
9135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9136 }
9137 arg1 = reinterpret_cast< wxListBox * >(argp1);
9138 {
9139 arg2 = wxString_in_helper(obj1);
9140 if (arg2 == NULL) SWIG_fail;
9141 temp2 = true;
9142 }
9143 ecode3 = SWIG_AsVal_int(obj2, &val3);
9144 if (!SWIG_IsOK(ecode3)) {
9145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9146 }
9147 arg3 = static_cast< int >(val3);
9148 if (obj3) {
9149 arg4 = obj3;
9150 }
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 resultobj = SWIG_Py_Void();
9158 {
9159 if (temp2)
9160 delete arg2;
9161 }
9162 return resultobj;
9163fail:
9164 {
9165 if (temp2)
9166 delete arg2;
9167 }
9168 return NULL;
9169}
9170
9171
9172SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9173 PyObject *resultobj = 0;
9174 wxListBox *arg1 = (wxListBox *) 0 ;
9175 wxArrayString *arg2 = 0 ;
50f151d7 9176 unsigned int arg3 ;
0085ce49
RD
9177 void *argp1 = 0 ;
9178 int res1 = 0 ;
9179 bool temp2 = false ;
50f151d7 9180 unsigned int val3 ;
0085ce49
RD
9181 int ecode3 = 0 ;
9182 PyObject * obj0 = 0 ;
9183 PyObject * obj1 = 0 ;
9184 PyObject * obj2 = 0 ;
9185 char * kwnames[] = {
9186 (char *) "self",(char *) "items",(char *) "pos", NULL
9187 };
9188
9189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9191 if (!SWIG_IsOK(res1)) {
9192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9193 }
9194 arg1 = reinterpret_cast< wxListBox * >(argp1);
9195 {
9196 if (! PySequence_Check(obj1)) {
9197 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9198 SWIG_fail;
9199 }
9200 arg2 = new wxArrayString;
9201 temp2 = true;
9202 int i, len=PySequence_Length(obj1);
9203 for (i=0; i<len; i++) {
9204 PyObject* item = PySequence_GetItem(obj1, i);
9205 wxString* s = wxString_in_helper(item);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 arg2->Add(*s);
9208 delete s;
9209 Py_DECREF(item);
22bfe96c 9210 }
0085ce49 9211 }
50f151d7 9212 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
0085ce49 9213 if (!SWIG_IsOK(ecode3)) {
50f151d7 9214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
0085ce49 9215 }
50f151d7 9216 arg3 = static_cast< unsigned int >(val3);
0085ce49
RD
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_Py_Void();
9224 {
9225 if (temp2) delete arg2;
9226 }
9227 return resultobj;
9228fail:
9229 {
9230 if (temp2) delete arg2;
9231 }
9232 return NULL;
22bfe96c
RD
9233}
9234
9235
0085ce49
RD
9236SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj = 0;
9238 wxListBox *arg1 = (wxListBox *) 0 ;
9239 wxArrayString *arg2 = 0 ;
9240 void *argp1 = 0 ;
9241 int res1 = 0 ;
9242 bool temp2 = false ;
9243 PyObject * obj0 = 0 ;
9244 PyObject * obj1 = 0 ;
9245 char * kwnames[] = {
9246 (char *) "self",(char *) "items", NULL
9247 };
9248
9249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9251 if (!SWIG_IsOK(res1)) {
9252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9253 }
9254 arg1 = reinterpret_cast< wxListBox * >(argp1);
9255 {
9256 if (! PySequence_Check(obj1)) {
9257 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9258 SWIG_fail;
9259 }
9260 arg2 = new wxArrayString;
9261 temp2 = true;
9262 int i, len=PySequence_Length(obj1);
9263 for (i=0; i<len; i++) {
9264 PyObject* item = PySequence_GetItem(obj1, i);
9265 wxString* s = wxString_in_helper(item);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 arg2->Add(*s);
9268 delete s;
9269 Py_DECREF(item);
d14a1e28 9270 }
0085ce49
RD
9271 }
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 (arg1)->Set((wxArrayString const &)*arg2);
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 resultobj = SWIG_Py_Void();
9279 {
9280 if (temp2) delete arg2;
9281 }
9282 return resultobj;
9283fail:
9284 {
9285 if (temp2) delete arg2;
9286 }
9287 return NULL;
9288}
9289
9290
9291SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj = 0;
9293 wxListBox *arg1 = (wxListBox *) 0 ;
9294 int arg2 ;
9295 bool result;
9296 void *argp1 = 0 ;
9297 int res1 = 0 ;
9298 int val2 ;
9299 int ecode2 = 0 ;
9300 PyObject * obj0 = 0 ;
9301 PyObject * obj1 = 0 ;
9302 char * kwnames[] = {
9303 (char *) "self",(char *) "n", NULL
9304 };
9305
9306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9308 if (!SWIG_IsOK(res1)) {
9309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9310 }
9311 arg1 = reinterpret_cast< wxListBox * >(argp1);
9312 ecode2 = SWIG_AsVal_int(obj1, &val2);
9313 if (!SWIG_IsOK(ecode2)) {
9314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9315 }
9316 arg2 = static_cast< int >(val2);
9317 {
9318 PyThreadState* __tstate = wxPyBeginAllowThreads();
9319 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 {
9324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9325 }
9326 return resultobj;
9327fail:
9328 return NULL;
9329}
9330
9331
9332SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9333 PyObject *resultobj = 0;
9334 wxListBox *arg1 = (wxListBox *) 0 ;
9335 int arg2 ;
9336 bool arg3 = (bool) true ;
9337 void *argp1 = 0 ;
9338 int res1 = 0 ;
9339 int val2 ;
9340 int ecode2 = 0 ;
9341 bool val3 ;
9342 int ecode3 = 0 ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 PyObject * obj2 = 0 ;
9346 char * kwnames[] = {
9347 (char *) "self",(char *) "n",(char *) "select", NULL
9348 };
9349
9350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9354 }
9355 arg1 = reinterpret_cast< wxListBox * >(argp1);
9356 ecode2 = SWIG_AsVal_int(obj1, &val2);
9357 if (!SWIG_IsOK(ecode2)) {
9358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9359 }
9360 arg2 = static_cast< int >(val2);
9361 if (obj2) {
9362 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9363 if (!SWIG_IsOK(ecode3)) {
9364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9365 }
9366 arg3 = static_cast< bool >(val3);
9367 }
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 (arg1)->SetSelection(arg2,arg3);
9371 wxPyEndAllowThreads(__tstate);
9372 if (PyErr_Occurred()) SWIG_fail;
9373 }
9374 resultobj = SWIG_Py_Void();
9375 return resultobj;
9376fail:
9377 return NULL;
9378}
9379
9380
9381SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9382 PyObject *resultobj = 0;
9383 wxListBox *arg1 = (wxListBox *) 0 ;
9384 int arg2 ;
9385 void *argp1 = 0 ;
9386 int res1 = 0 ;
9387 int val2 ;
9388 int ecode2 = 0 ;
9389 PyObject * obj0 = 0 ;
9390 PyObject * obj1 = 0 ;
9391 char * kwnames[] = {
9392 (char *) "self",(char *) "n", NULL
9393 };
9394
9395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9397 if (!SWIG_IsOK(res1)) {
9398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9399 }
9400 arg1 = reinterpret_cast< wxListBox * >(argp1);
9401 ecode2 = SWIG_AsVal_int(obj1, &val2);
9402 if (!SWIG_IsOK(ecode2)) {
9403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9404 }
9405 arg2 = static_cast< int >(val2);
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 (arg1)->Select(arg2);
9409 wxPyEndAllowThreads(__tstate);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 resultobj = SWIG_Py_Void();
9413 return resultobj;
9414fail:
9415 return NULL;
9416}
9417
9418
9419SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj = 0;
9421 wxListBox *arg1 = (wxListBox *) 0 ;
9422 int arg2 ;
9423 void *argp1 = 0 ;
9424 int res1 = 0 ;
9425 int val2 ;
9426 int ecode2 = 0 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char * kwnames[] = {
9430 (char *) "self",(char *) "n", NULL
9431 };
9432
9433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9435 if (!SWIG_IsOK(res1)) {
9436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9437 }
9438 arg1 = reinterpret_cast< wxListBox * >(argp1);
9439 ecode2 = SWIG_AsVal_int(obj1, &val2);
9440 if (!SWIG_IsOK(ecode2)) {
9441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9442 }
9443 arg2 = static_cast< int >(val2);
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 (arg1)->Deselect(arg2);
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_Py_Void();
9451 return resultobj;
9452fail:
9453 return NULL;
9454}
9455
9456
9457SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj = 0;
9459 wxListBox *arg1 = (wxListBox *) 0 ;
9460 int arg2 = (int) -1 ;
9461 void *argp1 = 0 ;
9462 int res1 = 0 ;
9463 int val2 ;
9464 int ecode2 = 0 ;
9465 PyObject * obj0 = 0 ;
9466 PyObject * obj1 = 0 ;
9467 char * kwnames[] = {
9468 (char *) "self",(char *) "itemToLeaveSelected", NULL
9469 };
9470
9471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9473 if (!SWIG_IsOK(res1)) {
9474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9475 }
9476 arg1 = reinterpret_cast< wxListBox * >(argp1);
9477 if (obj1) {
9478 ecode2 = SWIG_AsVal_int(obj1, &val2);
9479 if (!SWIG_IsOK(ecode2)) {
9480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9481 }
9482 arg2 = static_cast< int >(val2);
9483 }
9484 {
9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
9486 (arg1)->DeselectAll(arg2);
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_Py_Void();
9491 return resultobj;
9492fail:
9493 return NULL;
9494}
9495
9496
9497SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj = 0;
9499 wxListBox *arg1 = (wxListBox *) 0 ;
9500 wxString *arg2 = 0 ;
9501 bool arg3 = (bool) true ;
9502 bool result;
9503 void *argp1 = 0 ;
9504 int res1 = 0 ;
9505 bool temp2 = false ;
9506 bool val3 ;
9507 int ecode3 = 0 ;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 PyObject * obj2 = 0 ;
9511 char * kwnames[] = {
9512 (char *) "self",(char *) "s",(char *) "select", NULL
9513 };
9514
9515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9517 if (!SWIG_IsOK(res1)) {
9518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9519 }
9520 arg1 = reinterpret_cast< wxListBox * >(argp1);
9521 {
9522 arg2 = wxString_in_helper(obj1);
9523 if (arg2 == NULL) SWIG_fail;
9524 temp2 = true;
9525 }
9526 if (obj2) {
9527 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9528 if (!SWIG_IsOK(ecode3)) {
9529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9530 }
9531 arg3 = static_cast< bool >(val3);
9532 }
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9536 wxPyEndAllowThreads(__tstate);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 {
9540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9541 }
9542 {
9543 if (temp2)
9544 delete arg2;
9545 }
9546 return resultobj;
9547fail:
9548 {
9549 if (temp2)
9550 delete arg2;
9551 }
9552 return NULL;
d14a1e28
RD
9553}
9554
9555
0085ce49
RD
9556SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9557 PyObject *resultobj = 0;
9558 wxListBox *arg1 = (wxListBox *) 0 ;
9559 PyObject *result = 0 ;
9560 void *argp1 = 0 ;
9561 int res1 = 0 ;
9562 PyObject *swig_obj[1] ;
9563
9564 if (!args) SWIG_fail;
9565 swig_obj[0] = args;
9566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9567 if (!SWIG_IsOK(res1)) {
9568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9569 }
9570 arg1 = reinterpret_cast< wxListBox * >(argp1);
9571 {
9572 PyThreadState* __tstate = wxPyBeginAllowThreads();
9573 result = (PyObject *)wxListBox_GetSelections(arg1);
9574 wxPyEndAllowThreads(__tstate);
9575 if (PyErr_Occurred()) SWIG_fail;
9576 }
9577 resultobj = result;
9578 return resultobj;
9579fail:
9580 return NULL;
9581}
9582
9583
9584SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9585 PyObject *resultobj = 0;
9586 wxListBox *arg1 = (wxListBox *) 0 ;
9587 int arg2 ;
9588 void *argp1 = 0 ;
9589 int res1 = 0 ;
9590 int val2 ;
9591 int ecode2 = 0 ;
9592 PyObject * obj0 = 0 ;
9593 PyObject * obj1 = 0 ;
9594 char * kwnames[] = {
9595 (char *) "self",(char *) "n", NULL
9596 };
9597
9598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9600 if (!SWIG_IsOK(res1)) {
9601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9602 }
9603 arg1 = reinterpret_cast< wxListBox * >(argp1);
9604 ecode2 = SWIG_AsVal_int(obj1, &val2);
9605 if (!SWIG_IsOK(ecode2)) {
9606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9607 }
9608 arg2 = static_cast< int >(val2);
9609 {
9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
9611 (arg1)->SetFirstItem(arg2);
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 resultobj = SWIG_Py_Void();
9616 return resultobj;
9617fail:
9618 return NULL;
9619}
9620
9621
9622SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj = 0;
9624 wxListBox *arg1 = (wxListBox *) 0 ;
9625 wxString *arg2 = 0 ;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 bool temp2 = false ;
9629 PyObject * obj0 = 0 ;
9630 PyObject * obj1 = 0 ;
9631 char * kwnames[] = {
9632 (char *) "self",(char *) "s", NULL
9633 };
9634
9635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9637 if (!SWIG_IsOK(res1)) {
9638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9639 }
9640 arg1 = reinterpret_cast< wxListBox * >(argp1);
9641 {
9642 arg2 = wxString_in_helper(obj1);
9643 if (arg2 == NULL) SWIG_fail;
9644 temp2 = true;
9645 }
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 (arg1)->SetFirstItem((wxString const &)*arg2);
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
9652 resultobj = SWIG_Py_Void();
9653 {
9654 if (temp2)
9655 delete arg2;
9656 }
9657 return resultobj;
9658fail:
9659 {
9660 if (temp2)
9661 delete arg2;
9662 }
9663 return NULL;
9664}
9665
9666
9667SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj = 0;
9669 wxListBox *arg1 = (wxListBox *) 0 ;
9670 int arg2 ;
9671 void *argp1 = 0 ;
9672 int res1 = 0 ;
9673 int val2 ;
9674 int ecode2 = 0 ;
9675 PyObject * obj0 = 0 ;
9676 PyObject * obj1 = 0 ;
9677 char * kwnames[] = {
9678 (char *) "self",(char *) "n", NULL
9679 };
9680
9681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9683 if (!SWIG_IsOK(res1)) {
9684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9685 }
9686 arg1 = reinterpret_cast< wxListBox * >(argp1);
9687 ecode2 = SWIG_AsVal_int(obj1, &val2);
9688 if (!SWIG_IsOK(ecode2)) {
9689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9690 }
9691 arg2 = static_cast< int >(val2);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 (arg1)->EnsureVisible(arg2);
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 resultobj = SWIG_Py_Void();
9699 return resultobj;
9700fail:
9701 return NULL;
9702}
9703
9704
9705SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9706 PyObject *resultobj = 0;
9707 wxListBox *arg1 = (wxListBox *) 0 ;
9708 wxString *arg2 = 0 ;
9709 void *argp1 = 0 ;
9710 int res1 = 0 ;
9711 bool temp2 = false ;
9712 PyObject * obj0 = 0 ;
9713 PyObject * obj1 = 0 ;
9714 char * kwnames[] = {
9715 (char *) "self",(char *) "s", NULL
9716 };
9717
9718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9720 if (!SWIG_IsOK(res1)) {
9721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9722 }
9723 arg1 = reinterpret_cast< wxListBox * >(argp1);
9724 {
9725 arg2 = wxString_in_helper(obj1);
9726 if (arg2 == NULL) SWIG_fail;
9727 temp2 = true;
9728 }
9729 {
9730 PyThreadState* __tstate = wxPyBeginAllowThreads();
9731 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9732 wxPyEndAllowThreads(__tstate);
9733 if (PyErr_Occurred()) SWIG_fail;
9734 }
9735 resultobj = SWIG_Py_Void();
9736 {
9737 if (temp2)
9738 delete arg2;
9739 }
9740 return resultobj;
9741fail:
9742 {
9743 if (temp2)
9744 delete arg2;
9745 }
9746 return NULL;
d14a1e28
RD
9747}
9748
9749
0085ce49
RD
9750SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9751 PyObject *resultobj = 0;
9752 wxListBox *arg1 = (wxListBox *) 0 ;
9753 bool result;
9754 void *argp1 = 0 ;
9755 int res1 = 0 ;
9756 PyObject *swig_obj[1] ;
9757
9758 if (!args) SWIG_fail;
9759 swig_obj[0] = args;
9760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9761 if (!SWIG_IsOK(res1)) {
9762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9763 }
9764 arg1 = reinterpret_cast< wxListBox * >(argp1);
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 result = (bool)((wxListBox const *)arg1)->IsSorted();
9768 wxPyEndAllowThreads(__tstate);
9769 if (PyErr_Occurred()) SWIG_fail;
9770 }
9771 {
9772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9773 }
9774 return resultobj;
9775fail:
9776 return NULL;
9777}
9778
9779
9780SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9781 PyObject *resultobj = 0;
9782 wxListBox *arg1 = (wxListBox *) 0 ;
9783 wxPoint *arg2 = 0 ;
9784 int result;
9785 void *argp1 = 0 ;
9786 int res1 = 0 ;
9787 wxPoint temp2 ;
9788 PyObject * obj0 = 0 ;
9789 PyObject * obj1 = 0 ;
9790 char * kwnames[] = {
9791 (char *) "self",(char *) "pt", NULL
9792 };
9793
9794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9796 if (!SWIG_IsOK(res1)) {
9797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9798 }
9799 arg1 = reinterpret_cast< wxListBox * >(argp1);
9800 {
9801 arg2 = &temp2;
9802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9803 }
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 resultobj = SWIG_From_int(static_cast< int >(result));
9811 return resultobj;
9812fail:
9813 return NULL;
9814}
9815
9816
9817SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj = 0;
9819 wxListBox *arg1 = (wxListBox *) 0 ;
9820 int arg2 ;
9821 wxColour *arg3 = 0 ;
9822 void *argp1 = 0 ;
9823 int res1 = 0 ;
9824 int val2 ;
9825 int ecode2 = 0 ;
9826 wxColour temp3 ;
9827 PyObject * obj0 = 0 ;
9828 PyObject * obj1 = 0 ;
9829 PyObject * obj2 = 0 ;
9830 char * kwnames[] = {
9831 (char *) "self",(char *) "item",(char *) "c", NULL
9832 };
9833
9834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9836 if (!SWIG_IsOK(res1)) {
9837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9838 }
9839 arg1 = reinterpret_cast< wxListBox * >(argp1);
9840 ecode2 = SWIG_AsVal_int(obj1, &val2);
9841 if (!SWIG_IsOK(ecode2)) {
9842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9843 }
9844 arg2 = static_cast< int >(val2);
9845 {
9846 arg3 = &temp3;
9847 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9848 }
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 resultobj = SWIG_Py_Void();
9856 return resultobj;
9857fail:
9858 return NULL;
9859}
9860
9861
9862SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj = 0;
9864 wxListBox *arg1 = (wxListBox *) 0 ;
9865 int arg2 ;
9866 wxColour *arg3 = 0 ;
9867 void *argp1 = 0 ;
9868 int res1 = 0 ;
9869 int val2 ;
9870 int ecode2 = 0 ;
9871 wxColour temp3 ;
9872 PyObject * obj0 = 0 ;
9873 PyObject * obj1 = 0 ;
9874 PyObject * obj2 = 0 ;
9875 char * kwnames[] = {
9876 (char *) "self",(char *) "item",(char *) "c", NULL
9877 };
9878
9879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9881 if (!SWIG_IsOK(res1)) {
9882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9883 }
9884 arg1 = reinterpret_cast< wxListBox * >(argp1);
9885 ecode2 = SWIG_AsVal_int(obj1, &val2);
9886 if (!SWIG_IsOK(ecode2)) {
9887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9888 }
9889 arg2 = static_cast< int >(val2);
9890 {
9891 arg3 = &temp3;
9892 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9893 }
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 resultobj = SWIG_Py_Void();
9901 return resultobj;
9902fail:
9903 return NULL;
9904}
9905
9906
9907SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = 0;
9909 wxListBox *arg1 = (wxListBox *) 0 ;
9910 int arg2 ;
9911 wxFont *arg3 = 0 ;
9912 void *argp1 = 0 ;
9913 int res1 = 0 ;
9914 int val2 ;
9915 int ecode2 = 0 ;
9916 void *argp3 = 0 ;
9917 int res3 = 0 ;
9918 PyObject * obj0 = 0 ;
9919 PyObject * obj1 = 0 ;
9920 PyObject * obj2 = 0 ;
9921 char * kwnames[] = {
9922 (char *) "self",(char *) "item",(char *) "f", NULL
9923 };
9924
9925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9927 if (!SWIG_IsOK(res1)) {
9928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9929 }
9930 arg1 = reinterpret_cast< wxListBox * >(argp1);
9931 ecode2 = SWIG_AsVal_int(obj1, &val2);
9932 if (!SWIG_IsOK(ecode2)) {
9933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9934 }
9935 arg2 = static_cast< int >(val2);
9936 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9937 if (!SWIG_IsOK(res3)) {
9938 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9939 }
9940 if (!argp3) {
9941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9942 }
9943 arg3 = reinterpret_cast< wxFont * >(argp3);
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9947 wxPyEndAllowThreads(__tstate);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 resultobj = SWIG_Py_Void();
9951 return resultobj;
9952fail:
9953 return NULL;
9954}
9955
9956
9957SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj = 0;
9959 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9960 SwigValueWrapper<wxVisualAttributes > result;
9961 int val1 ;
9962 int ecode1 = 0 ;
9963 PyObject * obj0 = 0 ;
9964 char * kwnames[] = {
9965 (char *) "variant", NULL
9966 };
9967
9968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9969 if (obj0) {
9970 ecode1 = SWIG_AsVal_int(obj0, &val1);
9971 if (!SWIG_IsOK(ecode1)) {
9972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9973 }
9974 arg1 = static_cast< wxWindowVariant >(val1);
9975 }
9976 {
9977 if (!wxPyCheckForApp()) SWIG_fail;
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 result = wxListBox::GetClassDefaultAttributes(arg1);
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9984 return resultobj;
9985fail:
9986 return NULL;
9987}
9988
9989
9990SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9991 PyObject *obj;
9992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9993 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9994 return SWIG_Py_Void();
9995}
9996
9997SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9998 return SWIG_Python_InitShadowInstance(args);
9999}
10000
10001SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj = 0;
10003 wxWindow *arg1 = (wxWindow *) 0 ;
10004 int arg2 = (int) -1 ;
10005 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10006 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10007 wxSize const &arg4_defvalue = wxDefaultSize ;
10008 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10009 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10010 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10011 long arg6 = (long) 0 ;
10012 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10013 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10014 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10015 wxString *arg8 = (wxString *) &arg8_defvalue ;
10016 wxCheckListBox *result = 0 ;
10017 void *argp1 = 0 ;
10018 int res1 = 0 ;
10019 int val2 ;
10020 int ecode2 = 0 ;
10021 wxPoint temp3 ;
10022 wxSize temp4 ;
10023 bool temp5 = false ;
10024 long val6 ;
10025 int ecode6 = 0 ;
10026 void *argp7 = 0 ;
10027 int res7 = 0 ;
10028 bool temp8 = false ;
10029 PyObject * obj0 = 0 ;
10030 PyObject * obj1 = 0 ;
10031 PyObject * obj2 = 0 ;
10032 PyObject * obj3 = 0 ;
10033 PyObject * obj4 = 0 ;
10034 PyObject * obj5 = 0 ;
10035 PyObject * obj6 = 0 ;
10036 PyObject * obj7 = 0 ;
10037 char * kwnames[] = {
10038 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10039 };
10040
10041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10043 if (!SWIG_IsOK(res1)) {
10044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10045 }
10046 arg1 = reinterpret_cast< wxWindow * >(argp1);
10047 if (obj1) {
10048 ecode2 = SWIG_AsVal_int(obj1, &val2);
10049 if (!SWIG_IsOK(ecode2)) {
10050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10051 }
10052 arg2 = static_cast< int >(val2);
10053 }
10054 if (obj2) {
d14a1e28 10055 {
0085ce49
RD
10056 arg3 = &temp3;
10057 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 10058 }
0085ce49
RD
10059 }
10060 if (obj3) {
d14a1e28 10061 {
0085ce49
RD
10062 arg4 = &temp4;
10063 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10064 }
0085ce49
RD
10065 }
10066 if (obj4) {
d14a1e28 10067 {
0085ce49
RD
10068 if (! PySequence_Check(obj4)) {
10069 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10070 SWIG_fail;
10071 }
10072 arg5 = new wxArrayString;
10073 temp5 = true;
10074 int i, len=PySequence_Length(obj4);
10075 for (i=0; i<len; i++) {
10076 PyObject* item = PySequence_GetItem(obj4, i);
10077 wxString* s = wxString_in_helper(item);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 arg5->Add(*s);
10080 delete s;
10081 Py_DECREF(item);
10082 }
d14a1e28 10083 }
0085ce49
RD
10084 }
10085 if (obj5) {
10086 ecode6 = SWIG_AsVal_long(obj5, &val6);
10087 if (!SWIG_IsOK(ecode6)) {
10088 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10089 }
10090 arg6 = static_cast< long >(val6);
10091 }
10092 if (obj6) {
10093 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10094 if (!SWIG_IsOK(res7)) {
10095 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 10096 }
0085ce49
RD
10097 if (!argp7) {
10098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 10099 }
0085ce49
RD
10100 arg7 = reinterpret_cast< wxValidator * >(argp7);
10101 }
10102 if (obj7) {
093d3ff1 10103 {
0085ce49
RD
10104 arg8 = wxString_in_helper(obj7);
10105 if (arg8 == NULL) SWIG_fail;
10106 temp8 = true;
093d3ff1 10107 }
0085ce49
RD
10108 }
10109 {
10110 if (!wxPyCheckForApp()) SWIG_fail;
10111 PyThreadState* __tstate = wxPyBeginAllowThreads();
10112 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10113 wxPyEndAllowThreads(__tstate);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10117 {
10118 if (temp5) delete arg5;
10119 }
10120 {
10121 if (temp8)
10122 delete arg8;
10123 }
10124 return resultobj;
10125fail:
10126 {
10127 if (temp5) delete arg5;
10128 }
10129 {
10130 if (temp8)
10131 delete arg8;
10132 }
10133 return NULL;
d14a1e28
RD
10134}
10135
10136
0085ce49
RD
10137SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10138 PyObject *resultobj = 0;
10139 wxCheckListBox *result = 0 ;
10140
10141 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10142 {
10143 if (!wxPyCheckForApp()) SWIG_fail;
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (wxCheckListBox *)new wxCheckListBox();
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10150 return resultobj;
10151fail:
10152 return NULL;
10153}
10154
10155
10156SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj = 0;
10158 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10159 wxWindow *arg2 = (wxWindow *) 0 ;
10160 int arg3 = (int) -1 ;
10161 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10162 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10163 wxSize const &arg5_defvalue = wxDefaultSize ;
10164 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10165 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10166 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10167 long arg7 = (long) 0 ;
10168 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10169 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10170 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10171 wxString *arg9 = (wxString *) &arg9_defvalue ;
10172 bool result;
10173 void *argp1 = 0 ;
10174 int res1 = 0 ;
10175 void *argp2 = 0 ;
10176 int res2 = 0 ;
10177 int val3 ;
10178 int ecode3 = 0 ;
10179 wxPoint temp4 ;
10180 wxSize temp5 ;
10181 bool temp6 = false ;
10182 long val7 ;
10183 int ecode7 = 0 ;
10184 void *argp8 = 0 ;
10185 int res8 = 0 ;
10186 bool temp9 = false ;
10187 PyObject * obj0 = 0 ;
10188 PyObject * obj1 = 0 ;
10189 PyObject * obj2 = 0 ;
10190 PyObject * obj3 = 0 ;
10191 PyObject * obj4 = 0 ;
10192 PyObject * obj5 = 0 ;
10193 PyObject * obj6 = 0 ;
10194 PyObject * obj7 = 0 ;
10195 PyObject * obj8 = 0 ;
10196 char * kwnames[] = {
10197 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10198 };
10199
10200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10202 if (!SWIG_IsOK(res1)) {
10203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10204 }
10205 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10207 if (!SWIG_IsOK(res2)) {
10208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10209 }
10210 arg2 = reinterpret_cast< wxWindow * >(argp2);
10211 if (obj2) {
10212 ecode3 = SWIG_AsVal_int(obj2, &val3);
10213 if (!SWIG_IsOK(ecode3)) {
10214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10215 }
10216 arg3 = static_cast< int >(val3);
10217 }
10218 if (obj3) {
22bfe96c 10219 {
0085ce49
RD
10220 arg4 = &temp4;
10221 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10222 }
0085ce49
RD
10223 }
10224 if (obj4) {
d14a1e28 10225 {
0085ce49
RD
10226 arg5 = &temp5;
10227 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 10228 }
0085ce49
RD
10229 }
10230 if (obj5) {
d14a1e28 10231 {
0085ce49
RD
10232 if (! PySequence_Check(obj5)) {
10233 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10234 SWIG_fail;
10235 }
10236 arg6 = new wxArrayString;
10237 temp6 = true;
10238 int i, len=PySequence_Length(obj5);
10239 for (i=0; i<len; i++) {
10240 PyObject* item = PySequence_GetItem(obj5, i);
10241 wxString* s = wxString_in_helper(item);
10242 if (PyErr_Occurred()) SWIG_fail;
10243 arg6->Add(*s);
10244 delete s;
10245 Py_DECREF(item);
10246 }
d14a1e28 10247 }
0085ce49
RD
10248 }
10249 if (obj6) {
10250 ecode7 = SWIG_AsVal_long(obj6, &val7);
10251 if (!SWIG_IsOK(ecode7)) {
10252 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10253 }
10254 arg7 = static_cast< long >(val7);
10255 }
10256 if (obj7) {
10257 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10258 if (!SWIG_IsOK(res8)) {
10259 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10260 }
0085ce49
RD
10261 if (!argp8) {
10262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10263 }
0085ce49
RD
10264 arg8 = reinterpret_cast< wxValidator * >(argp8);
10265 }
10266 if (obj8) {
d14a1e28 10267 {
0085ce49
RD
10268 arg9 = wxString_in_helper(obj8);
10269 if (arg9 == NULL) SWIG_fail;
10270 temp9 = true;
d14a1e28 10271 }
0085ce49
RD
10272 }
10273 {
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 {
10280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10281 }
10282 {
10283 if (temp6) delete arg6;
10284 }
10285 {
10286 if (temp9)
10287 delete arg9;
10288 }
10289 return resultobj;
10290fail:
10291 {
10292 if (temp6) delete arg6;
10293 }
10294 {
10295 if (temp9)
10296 delete arg9;
10297 }
10298 return NULL;
10299}
10300
10301
10302SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10303 PyObject *resultobj = 0;
10304 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10305 unsigned int arg2 ;
0085ce49
RD
10306 bool result;
10307 void *argp1 = 0 ;
10308 int res1 = 0 ;
50f151d7 10309 unsigned int val2 ;
0085ce49
RD
10310 int ecode2 = 0 ;
10311 PyObject * obj0 = 0 ;
10312 PyObject * obj1 = 0 ;
10313 char * kwnames[] = {
10314 (char *) "self",(char *) "index", NULL
10315 };
10316
10317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10319 if (!SWIG_IsOK(res1)) {
10320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10321 }
10322 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10323 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10324 if (!SWIG_IsOK(ecode2)) {
50f151d7 10325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10326 }
50f151d7 10327 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (bool)(arg1)->IsChecked(arg2);
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 {
10335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10336 }
10337 return resultobj;
10338fail:
10339 return NULL;
10340}
10341
10342
10343SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10344 PyObject *resultobj = 0;
10345 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10346 unsigned int arg2 ;
0085ce49
RD
10347 int arg3 = (int) true ;
10348 void *argp1 = 0 ;
10349 int res1 = 0 ;
50f151d7 10350 unsigned int val2 ;
0085ce49
RD
10351 int ecode2 = 0 ;
10352 int val3 ;
10353 int ecode3 = 0 ;
10354 PyObject * obj0 = 0 ;
10355 PyObject * obj1 = 0 ;
10356 PyObject * obj2 = 0 ;
10357 char * kwnames[] = {
10358 (char *) "self",(char *) "index",(char *) "check", NULL
10359 };
10360
10361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10363 if (!SWIG_IsOK(res1)) {
10364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10365 }
10366 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10367 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10368 if (!SWIG_IsOK(ecode2)) {
50f151d7 10369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10370 }
50f151d7 10371 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10372 if (obj2) {
10373 ecode3 = SWIG_AsVal_int(obj2, &val3);
10374 if (!SWIG_IsOK(ecode3)) {
10375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10376 }
10377 arg3 = static_cast< int >(val3);
10378 }
10379 {
10380 PyThreadState* __tstate = wxPyBeginAllowThreads();
10381 (arg1)->Check(arg2,arg3);
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 resultobj = SWIG_Py_Void();
10386 return resultobj;
10387fail:
10388 return NULL;
d14a1e28
RD
10389}
10390
10391
0085ce49
RD
10392SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10393 PyObject *resultobj = 0;
10394 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10395 int result;
10396 void *argp1 = 0 ;
10397 int res1 = 0 ;
10398 PyObject *swig_obj[1] ;
10399
10400 if (!args) SWIG_fail;
10401 swig_obj[0] = args;
10402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10403 if (!SWIG_IsOK(res1)) {
10404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10405 }
10406 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10407 {
10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
10409 result = (int)(arg1)->GetItemHeight();
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 resultobj = SWIG_From_int(static_cast< int >(result));
10414 return resultobj;
10415fail:
10416 return NULL;
d14a1e28
RD
10417}
10418
10419
0085ce49
RD
10420SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10421 PyObject *obj;
10422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10423 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10424 return SWIG_Py_Void();
d14a1e28
RD
10425}
10426
0085ce49
RD
10427SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10428 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
10429}
10430
0085ce49
RD
10431SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10432 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10433 return 1;
22bfe96c
RD
10434}
10435
10436
0085ce49
RD
10437SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10438 PyObject *pyobj = 0;
10439
10440 {
10441#if wxUSE_UNICODE
10442 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10443#else
10444 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10445#endif
10446 }
10447 return pyobj;
10448}
10449
10450
10451SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10452 PyObject *resultobj = 0;
10453 wxColour const &arg1_defvalue = wxNullColour ;
10454 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10455 wxColour const &arg2_defvalue = wxNullColour ;
10456 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10457 wxFont const &arg3_defvalue = wxNullFont ;
10458 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10459 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10460 wxTextAttr *result = 0 ;
10461 wxColour temp1 ;
10462 wxColour temp2 ;
10463 void *argp3 = 0 ;
10464 int res3 = 0 ;
10465 int val4 ;
10466 int ecode4 = 0 ;
10467 PyObject * obj0 = 0 ;
10468 PyObject * obj1 = 0 ;
10469 PyObject * obj2 = 0 ;
10470 PyObject * obj3 = 0 ;
10471 char * kwnames[] = {
10472 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10473 };
10474
10475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10476 if (obj0) {
d14a1e28 10477 {
0085ce49
RD
10478 arg1 = &temp1;
10479 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 10480 }
0085ce49
RD
10481 }
10482 if (obj1) {
d14a1e28 10483 {
0085ce49
RD
10484 arg2 = &temp2;
10485 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 10486 }
0085ce49
RD
10487 }
10488 if (obj2) {
10489 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10490 if (!SWIG_IsOK(res3)) {
10491 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 10492 }
0085ce49
RD
10493 if (!argp3) {
10494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10495 }
10496 arg3 = reinterpret_cast< wxFont * >(argp3);
10497 }
10498 if (obj3) {
10499 ecode4 = SWIG_AsVal_int(obj3, &val4);
10500 if (!SWIG_IsOK(ecode4)) {
10501 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10502 }
10503 arg4 = static_cast< wxTextAttrAlignment >(val4);
10504 }
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10512 return resultobj;
10513fail:
10514 return NULL;
d14a1e28
RD
10515}
10516
10517
0085ce49
RD
10518SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10519 PyObject *resultobj = 0;
10520 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 PyObject *swig_obj[1] ;
10524
10525 if (!args) SWIG_fail;
10526 swig_obj[0] = args;
10527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10528 if (!SWIG_IsOK(res1)) {
10529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10530 }
10531 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 delete arg1;
d14a1e28 10535
0085ce49
RD
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541fail:
10542 return NULL;
d14a1e28
RD
10543}
10544
10545
0085ce49
RD
10546SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10547 PyObject *resultobj = 0;
10548 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 PyObject *swig_obj[1] ;
10552
10553 if (!args) SWIG_fail;
10554 swig_obj[0] = args;
10555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10556 if (!SWIG_IsOK(res1)) {
10557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10558 }
10559 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 (arg1)->Init();
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568fail:
10569 return NULL;
10570}
10571
10572
01f6b6d3
RD
10573SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj = 0;
10575 wxTextAttr *arg1 = 0 ;
10576 wxTextAttr *arg2 = 0 ;
10577 wxTextAttr result;
10578 void *argp1 = 0 ;
10579 int res1 = 0 ;
10580 void *argp2 = 0 ;
10581 int res2 = 0 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 char * kwnames[] = {
10585 (char *) "base",(char *) "overlay", NULL
10586 };
10587
10588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10589 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10590 if (!SWIG_IsOK(res1)) {
10591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10592 }
10593 if (!argp1) {
10594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10595 }
10596 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10597 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10598 if (!SWIG_IsOK(res2)) {
10599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10600 }
10601 if (!argp2) {
10602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10603 }
10604 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10612 return resultobj;
10613fail:
10614 return NULL;
10615}
10616
10617
0085ce49
RD
10618SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj = 0;
10620 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10621 wxColour *arg2 = 0 ;
10622 void *argp1 = 0 ;
10623 int res1 = 0 ;
10624 wxColour temp2 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 char * kwnames[] = {
10628 (char *) "self",(char *) "colText", NULL
10629 };
10630
10631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10633 if (!SWIG_IsOK(res1)) {
10634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10635 }
10636 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10637 {
10638 arg2 = &temp2;
10639 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10640 }
10641 {
10642 PyThreadState* __tstate = wxPyBeginAllowThreads();
10643 (arg1)->SetTextColour((wxColour const &)*arg2);
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_Py_Void();
10648 return resultobj;
10649fail:
10650 return NULL;
10651}
10652
10653
10654SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj = 0;
10656 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10657 wxColour *arg2 = 0 ;
10658 void *argp1 = 0 ;
10659 int res1 = 0 ;
10660 wxColour temp2 ;
10661 PyObject * obj0 = 0 ;
10662 PyObject * obj1 = 0 ;
10663 char * kwnames[] = {
10664 (char *) "self",(char *) "colBack", NULL
10665 };
10666
10667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10669 if (!SWIG_IsOK(res1)) {
10670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10671 }
10672 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10673 {
10674 arg2 = &temp2;
10675 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10676 }
10677 {
10678 PyThreadState* __tstate = wxPyBeginAllowThreads();
10679 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
10683 resultobj = SWIG_Py_Void();
10684 return resultobj;
10685fail:
10686 return NULL;
10687}
10688
10689
10690SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10691 PyObject *resultobj = 0;
10692 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10693 wxFont *arg2 = 0 ;
10694 long arg3 = (long) wxTEXT_ATTR_FONT ;
10695 void *argp1 = 0 ;
10696 int res1 = 0 ;
10697 void *argp2 = 0 ;
10698 int res2 = 0 ;
10699 long val3 ;
10700 int ecode3 = 0 ;
10701 PyObject * obj0 = 0 ;
10702 PyObject * obj1 = 0 ;
10703 PyObject * obj2 = 0 ;
10704 char * kwnames[] = {
10705 (char *) "self",(char *) "font",(char *) "flags", NULL
10706 };
10707
10708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10710 if (!SWIG_IsOK(res1)) {
10711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10712 }
10713 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10715 if (!SWIG_IsOK(res2)) {
10716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10717 }
10718 if (!argp2) {
10719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10720 }
10721 arg2 = reinterpret_cast< wxFont * >(argp2);
10722 if (obj2) {
10723 ecode3 = SWIG_AsVal_long(obj2, &val3);
10724 if (!SWIG_IsOK(ecode3)) {
10725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10726 }
10727 arg3 = static_cast< long >(val3);
10728 }
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10732 wxPyEndAllowThreads(__tstate);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 }
10735 resultobj = SWIG_Py_Void();
10736 return resultobj;
10737fail:
10738 return NULL;
10739}
10740
10741
10742SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10743 PyObject *resultobj = 0;
10744 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10745 wxTextAttrAlignment arg2 ;
10746 void *argp1 = 0 ;
10747 int res1 = 0 ;
10748 int val2 ;
10749 int ecode2 = 0 ;
10750 PyObject * obj0 = 0 ;
10751 PyObject * obj1 = 0 ;
10752 char * kwnames[] = {
10753 (char *) "self",(char *) "alignment", NULL
10754 };
10755
10756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10758 if (!SWIG_IsOK(res1)) {
10759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10760 }
10761 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10762 ecode2 = SWIG_AsVal_int(obj1, &val2);
10763 if (!SWIG_IsOK(ecode2)) {
10764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10765 }
10766 arg2 = static_cast< wxTextAttrAlignment >(val2);
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->SetAlignment(arg2);
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_Py_Void();
10774 return resultobj;
10775fail:
10776 return NULL;
10777}
10778
10779
10780SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj = 0;
10782 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10783 wxArrayInt *arg2 = 0 ;
10784 void *argp1 = 0 ;
10785 int res1 = 0 ;
10786 bool temp2 = false ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 char * kwnames[] = {
10790 (char *) "self",(char *) "tabs", NULL
10791 };
10792
10793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10795 if (!SWIG_IsOK(res1)) {
10796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10797 }
10798 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10799 {
10800 if (! PySequence_Check(obj1)) {
10801 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10802 SWIG_fail;
10803 }
10804 arg2 = new wxArrayInt;
10805 temp2 = true;
10806 int i, len=PySequence_Length(obj1);
10807 for (i=0; i<len; i++) {
10808 PyObject* item = PySequence_GetItem(obj1, i);
10809 PyObject* number = PyNumber_Int(item);
10810 arg2->Add(PyInt_AS_LONG(number));
10811 Py_DECREF(item);
10812 Py_DECREF(number);
d14a1e28 10813 }
0085ce49
RD
10814 }
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10818 wxPyEndAllowThreads(__tstate);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 }
10821 resultobj = SWIG_Py_Void();
10822 {
10823 if (temp2) delete arg2;
10824 }
10825 return resultobj;
10826fail:
10827 {
10828 if (temp2) delete arg2;
10829 }
10830 return NULL;
10831}
10832
10833
10834SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10835 PyObject *resultobj = 0;
10836 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10837 int arg2 ;
10838 int arg3 = (int) 0 ;
10839 void *argp1 = 0 ;
10840 int res1 = 0 ;
10841 int val2 ;
10842 int ecode2 = 0 ;
10843 int val3 ;
10844 int ecode3 = 0 ;
10845 PyObject * obj0 = 0 ;
10846 PyObject * obj1 = 0 ;
10847 PyObject * obj2 = 0 ;
10848 char * kwnames[] = {
10849 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10850 };
10851
10852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10854 if (!SWIG_IsOK(res1)) {
10855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10856 }
10857 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10858 ecode2 = SWIG_AsVal_int(obj1, &val2);
10859 if (!SWIG_IsOK(ecode2)) {
10860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10861 }
10862 arg2 = static_cast< int >(val2);
10863 if (obj2) {
10864 ecode3 = SWIG_AsVal_int(obj2, &val3);
10865 if (!SWIG_IsOK(ecode3)) {
10866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10867 }
10868 arg3 = static_cast< int >(val3);
10869 }
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 (arg1)->SetLeftIndent(arg2,arg3);
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 resultobj = SWIG_Py_Void();
10877 return resultobj;
10878fail:
10879 return NULL;
10880}
10881
10882
10883SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10884 PyObject *resultobj = 0;
10885 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10886 int arg2 ;
10887 void *argp1 = 0 ;
10888 int res1 = 0 ;
10889 int val2 ;
10890 int ecode2 = 0 ;
10891 PyObject * obj0 = 0 ;
10892 PyObject * obj1 = 0 ;
10893 char * kwnames[] = {
10894 (char *) "self",(char *) "indent", NULL
10895 };
10896
10897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10899 if (!SWIG_IsOK(res1)) {
10900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10901 }
10902 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10903 ecode2 = SWIG_AsVal_int(obj1, &val2);
10904 if (!SWIG_IsOK(ecode2)) {
10905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10906 }
10907 arg2 = static_cast< int >(val2);
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 (arg1)->SetRightIndent(arg2);
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 resultobj = SWIG_Py_Void();
10915 return resultobj;
10916fail:
10917 return NULL;
10918}
10919
10920
10921SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj = 0;
10923 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10924 long arg2 ;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 long val2 ;
10928 int ecode2 = 0 ;
10929 PyObject * obj0 = 0 ;
10930 PyObject * obj1 = 0 ;
10931 char * kwnames[] = {
10932 (char *) "self",(char *) "flags", NULL
10933 };
10934
10935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10937 if (!SWIG_IsOK(res1)) {
10938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10939 }
10940 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10941 ecode2 = SWIG_AsVal_long(obj1, &val2);
10942 if (!SWIG_IsOK(ecode2)) {
10943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10944 }
10945 arg2 = static_cast< long >(val2);
10946 {
10947 PyThreadState* __tstate = wxPyBeginAllowThreads();
10948 (arg1)->SetFlags(arg2);
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 resultobj = SWIG_Py_Void();
10953 return resultobj;
10954fail:
10955 return NULL;
d14a1e28
RD
10956}
10957
10958
0085ce49
RD
10959SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10960 PyObject *resultobj = 0;
10961 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10962 bool result;
10963 void *argp1 = 0 ;
10964 int res1 = 0 ;
10965 PyObject *swig_obj[1] ;
10966
10967 if (!args) SWIG_fail;
10968 swig_obj[0] = args;
10969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10970 if (!SWIG_IsOK(res1)) {
10971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10972 }
10973 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10977 wxPyEndAllowThreads(__tstate);
10978 if (PyErr_Occurred()) SWIG_fail;
10979 }
10980 {
10981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10982 }
10983 return resultobj;
10984fail:
10985 return NULL;
d14a1e28
RD
10986}
10987
10988
0085ce49
RD
10989SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10990 PyObject *resultobj = 0;
10991 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10992 bool result;
10993 void *argp1 = 0 ;
10994 int res1 = 0 ;
10995 PyObject *swig_obj[1] ;
10996
10997 if (!args) SWIG_fail;
10998 swig_obj[0] = args;
10999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11000 if (!SWIG_IsOK(res1)) {
11001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11002 }
11003 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
11006 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 {
11011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11012 }
11013 return resultobj;
11014fail:
11015 return NULL;
d14a1e28
RD
11016}
11017
11018
0085ce49
RD
11019SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11020 PyObject *resultobj = 0;
11021 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11022 bool result;
11023 void *argp1 = 0 ;
11024 int res1 = 0 ;
11025 PyObject *swig_obj[1] ;
11026
11027 if (!args) SWIG_fail;
11028 swig_obj[0] = args;
11029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11030 if (!SWIG_IsOK(res1)) {
11031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11032 }
11033 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11034 {
11035 PyThreadState* __tstate = wxPyBeginAllowThreads();
11036 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 {
11041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11042 }
11043 return resultobj;
11044fail:
11045 return NULL;
d14a1e28
RD
11046}
11047
11048
0085ce49
RD
11049SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11050 PyObject *resultobj = 0;
11051 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11052 bool result;
11053 void *argp1 = 0 ;
11054 int res1 = 0 ;
11055 PyObject *swig_obj[1] ;
11056
11057 if (!args) SWIG_fail;
11058 swig_obj[0] = args;
11059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11060 if (!SWIG_IsOK(res1)) {
11061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11062 }
11063 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11067 wxPyEndAllowThreads(__tstate);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 }
11070 {
11071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11072 }
11073 return resultobj;
11074fail:
11075 return NULL;
22bfe96c
RD
11076}
11077
11078
0085ce49
RD
11079SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11080 PyObject *resultobj = 0;
11081 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11082 bool result;
11083 void *argp1 = 0 ;
11084 int res1 = 0 ;
11085 PyObject *swig_obj[1] ;
11086
11087 if (!args) SWIG_fail;
11088 swig_obj[0] = args;
11089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11090 if (!SWIG_IsOK(res1)) {
11091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11092 }
11093 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11097 wxPyEndAllowThreads(__tstate);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11102 }
11103 return resultobj;
11104fail:
11105 return NULL;
b2dc1044
RD
11106}
11107
11108
0085ce49
RD
11109SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11110 PyObject *resultobj = 0;
11111 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11112 bool result;
11113 void *argp1 = 0 ;
11114 int res1 = 0 ;
11115 PyObject *swig_obj[1] ;
11116
11117 if (!args) SWIG_fail;
11118 swig_obj[0] = args;
11119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11120 if (!SWIG_IsOK(res1)) {
11121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11122 }
11123 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 {
11131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11132 }
11133 return resultobj;
11134fail:
11135 return NULL;
d14a1e28
RD
11136}
11137
11138
0085ce49
RD
11139SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11140 PyObject *resultobj = 0;
11141 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11142 bool result;
11143 void *argp1 = 0 ;
11144 int res1 = 0 ;
11145 PyObject *swig_obj[1] ;
11146
11147 if (!args) SWIG_fail;
11148 swig_obj[0] = args;
11149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11150 if (!SWIG_IsOK(res1)) {
11151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11152 }
11153 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 {
11161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11162 }
11163 return resultobj;
11164fail:
11165 return NULL;
11166}
11167
11168
11169SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11170 PyObject *resultobj = 0;
11171 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11172 long arg2 ;
11173 bool result;
11174 void *argp1 = 0 ;
11175 int res1 = 0 ;
11176 long val2 ;
11177 int ecode2 = 0 ;
11178 PyObject * obj0 = 0 ;
11179 PyObject * obj1 = 0 ;
11180 char * kwnames[] = {
11181 (char *) "self",(char *) "flag", NULL
11182 };
11183
11184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11186 if (!SWIG_IsOK(res1)) {
11187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11188 }
11189 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11190 ecode2 = SWIG_AsVal_long(obj1, &val2);
11191 if (!SWIG_IsOK(ecode2)) {
11192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11193 }
11194 arg2 = static_cast< long >(val2);
11195 {
11196 PyThreadState* __tstate = wxPyBeginAllowThreads();
11197 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 {
11202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11203 }
11204 return resultobj;
11205fail:
11206 return NULL;
d14a1e28
RD
11207}
11208
11209
0085ce49
RD
11210SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11211 PyObject *resultobj = 0;
11212 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11213 wxColour *result = 0 ;
11214 void *argp1 = 0 ;
11215 int res1 = 0 ;
11216 PyObject *swig_obj[1] ;
11217
11218 if (!args) SWIG_fail;
11219 swig_obj[0] = args;
11220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11221 if (!SWIG_IsOK(res1)) {
11222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11223 }
11224 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11225 {
11226 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11227 {
0085ce49
RD
11228 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11229 result = (wxColour *) &_result_ref;
d14a1e28 11230 }
0085ce49
RD
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11235 return resultobj;
11236fail:
11237 return NULL;
d14a1e28
RD
11238}
11239
11240
0085ce49
RD
11241SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11242 PyObject *resultobj = 0;
11243 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11244 wxColour *result = 0 ;
11245 void *argp1 = 0 ;
11246 int res1 = 0 ;
11247 PyObject *swig_obj[1] ;
11248
11249 if (!args) SWIG_fail;
11250 swig_obj[0] = args;
11251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11252 if (!SWIG_IsOK(res1)) {
11253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11254 }
11255 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11256 {
11257 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11258 {
0085ce49
RD
11259 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11260 result = (wxColour *) &_result_ref;
d14a1e28 11261 }
0085ce49
RD
11262 wxPyEndAllowThreads(__tstate);
11263 if (PyErr_Occurred()) SWIG_fail;
11264 }
11265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11266 return resultobj;
11267fail:
11268 return NULL;
d14a1e28
RD
11269}
11270
11271
0085ce49
RD
11272SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11273 PyObject *resultobj = 0;
11274 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11275 wxFont *result = 0 ;
11276 void *argp1 = 0 ;
11277 int res1 = 0 ;
11278 PyObject *swig_obj[1] ;
11279
11280 if (!args) SWIG_fail;
11281 swig_obj[0] = args;
11282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11283 if (!SWIG_IsOK(res1)) {
11284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11285 }
11286 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11289 {
0085ce49
RD
11290 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11291 result = (wxFont *) &_result_ref;
d14a1e28 11292 }
0085ce49
RD
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 {
11297 wxFont* resultptr = new wxFont(*result);
11298 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11299 }
11300 return resultobj;
11301fail:
11302 return NULL;
d14a1e28
RD
11303}
11304
11305
0085ce49
RD
11306SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11309 wxTextAttrAlignment result;
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_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11319 }
11320 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 resultobj = SWIG_From_int(static_cast< int >(result));
11328 return resultobj;
11329fail:
11330 return NULL;
d14a1e28
RD
11331}
11332
11333
0085ce49
RD
11334SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11335 PyObject *resultobj = 0;
11336 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11337 wxArrayInt *result = 0 ;
11338 void *argp1 = 0 ;
11339 int res1 = 0 ;
11340 PyObject *swig_obj[1] ;
11341
11342 if (!args) SWIG_fail;
11343 swig_obj[0] = args;
11344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11345 if (!SWIG_IsOK(res1)) {
11346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11347 }
11348 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11351 {
0085ce49
RD
11352 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11353 result = (wxArrayInt *) &_result_ref;
d14a1e28 11354 }
0085ce49
RD
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 {
11359 resultobj = PyList_New(0);
11360 size_t idx;
11361 for (idx = 0; idx < result->GetCount(); idx += 1) {
11362 PyObject* val = PyInt_FromLong( result->Item(idx) );
11363 PyList_Append(resultobj, val);
11364 Py_DECREF(val);
4f89f6a3 11365 }
0085ce49
RD
11366 }
11367 return resultobj;
11368fail:
11369 return NULL;
d14a1e28
RD
11370}
11371
11372
0085ce49
RD
11373SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11374 PyObject *resultobj = 0;
11375 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11376 long result;
11377 void *argp1 = 0 ;
11378 int res1 = 0 ;
11379 PyObject *swig_obj[1] ;
11380
11381 if (!args) SWIG_fail;
11382 swig_obj[0] = args;
11383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11384 if (!SWIG_IsOK(res1)) {
11385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11386 }
11387 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11388 {
11389 PyThreadState* __tstate = wxPyBeginAllowThreads();
11390 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11391 wxPyEndAllowThreads(__tstate);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 }
11394 resultobj = SWIG_From_long(static_cast< long >(result));
11395 return resultobj;
11396fail:
11397 return NULL;
d14a1e28
RD
11398}
11399
11400
0085ce49
RD
11401SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(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_GetLeftSubIndent" "', 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)->GetLeftSubIndent();
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_GetRightIndent(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_GetRightIndent" "', 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)->GetRightIndent();
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_GetFlags(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_GetFlags" "', 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)->GetFlags();
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_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11486 PyObject *resultobj = 0;
11487 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11488 bool 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_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11498 }
11499 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 {
11507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11508 }
11509 return resultobj;
11510fail:
11511 return NULL;
11512}
11513
11514
11515SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11516 PyObject *resultobj = 0;
11517 wxTextAttr *arg1 = 0 ;
11518 wxTextAttr *arg2 = 0 ;
11519 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11520 wxTextAttr result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 void *argp2 = 0 ;
11524 int res2 = 0 ;
11525 void *argp3 = 0 ;
11526 int res3 = 0 ;
11527 PyObject * obj0 = 0 ;
11528 PyObject * obj1 = 0 ;
11529 PyObject * obj2 = 0 ;
11530 char * kwnames[] = {
11531 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11532 };
11533
11534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11535 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11536 if (!SWIG_IsOK(res1)) {
11537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11538 }
11539 if (!argp1) {
11540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11541 }
11542 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11544 if (!SWIG_IsOK(res2)) {
11545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11546 }
11547 if (!argp2) {
11548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11549 }
11550 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11551 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11552 if (!SWIG_IsOK(res3)) {
11553 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11554 }
11555 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11556 {
11557 PyThreadState* __tstate = wxPyBeginAllowThreads();
11558 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11563 return resultobj;
11564fail:
11565 return NULL;
11566}
11567
11568
11569SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11570 PyObject *obj;
11571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11572 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11573 return SWIG_Py_Void();
11574}
11575
11576SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11577 return SWIG_Python_InitShadowInstance(args);
11578}
11579
11580SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11581 PyObject *resultobj = 0;
11582 wxWindow *arg1 = (wxWindow *) 0 ;
11583 int arg2 = (int) -1 ;
11584 wxString const &arg3_defvalue = wxPyEmptyString ;
11585 wxString *arg3 = (wxString *) &arg3_defvalue ;
11586 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11587 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11588 wxSize const &arg5_defvalue = wxDefaultSize ;
11589 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11590 long arg6 = (long) 0 ;
11591 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11592 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11593 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11594 wxString *arg8 = (wxString *) &arg8_defvalue ;
11595 wxTextCtrl *result = 0 ;
11596 void *argp1 = 0 ;
11597 int res1 = 0 ;
11598 int val2 ;
11599 int ecode2 = 0 ;
11600 bool temp3 = false ;
11601 wxPoint temp4 ;
11602 wxSize temp5 ;
11603 long val6 ;
11604 int ecode6 = 0 ;
11605 void *argp7 = 0 ;
11606 int res7 = 0 ;
11607 bool temp8 = false ;
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
11610 PyObject * obj2 = 0 ;
11611 PyObject * obj3 = 0 ;
11612 PyObject * obj4 = 0 ;
11613 PyObject * obj5 = 0 ;
11614 PyObject * obj6 = 0 ;
11615 PyObject * obj7 = 0 ;
11616 char * kwnames[] = {
11617 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11618 };
11619
11620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11622 if (!SWIG_IsOK(res1)) {
11623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11624 }
11625 arg1 = reinterpret_cast< wxWindow * >(argp1);
11626 if (obj1) {
11627 ecode2 = SWIG_AsVal_int(obj1, &val2);
11628 if (!SWIG_IsOK(ecode2)) {
11629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11630 }
11631 arg2 = static_cast< int >(val2);
11632 }
11633 if (obj2) {
4f89f6a3 11634 {
0085ce49
RD
11635 arg3 = wxString_in_helper(obj2);
11636 if (arg3 == NULL) SWIG_fail;
11637 temp3 = true;
4f89f6a3 11638 }
0085ce49
RD
11639 }
11640 if (obj3) {
d14a1e28 11641 {
0085ce49
RD
11642 arg4 = &temp4;
11643 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 11644 }
0085ce49
RD
11645 }
11646 if (obj4) {
d14a1e28 11647 {
0085ce49
RD
11648 arg5 = &temp5;
11649 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11650 }
0085ce49
RD
11651 }
11652 if (obj5) {
11653 ecode6 = SWIG_AsVal_long(obj5, &val6);
11654 if (!SWIG_IsOK(ecode6)) {
11655 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11656 }
11657 arg6 = static_cast< long >(val6);
11658 }
11659 if (obj6) {
11660 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11661 if (!SWIG_IsOK(res7)) {
11662 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 11663 }
0085ce49
RD
11664 if (!argp7) {
11665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11666 }
0085ce49
RD
11667 arg7 = reinterpret_cast< wxValidator * >(argp7);
11668 }
11669 if (obj7) {
d14a1e28 11670 {
0085ce49
RD
11671 arg8 = wxString_in_helper(obj7);
11672 if (arg8 == NULL) SWIG_fail;
11673 temp8 = true;
d14a1e28 11674 }
0085ce49
RD
11675 }
11676 {
11677 if (!wxPyCheckForApp()) SWIG_fail;
11678 PyThreadState* __tstate = wxPyBeginAllowThreads();
11679 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11680 wxPyEndAllowThreads(__tstate);
11681 if (PyErr_Occurred()) SWIG_fail;
11682 }
11683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11684 {
11685 if (temp3)
11686 delete arg3;
11687 }
11688 {
11689 if (temp8)
11690 delete arg8;
11691 }
11692 return resultobj;
11693fail:
11694 {
11695 if (temp3)
11696 delete arg3;
11697 }
11698 {
11699 if (temp8)
11700 delete arg8;
11701 }
11702 return NULL;
d14a1e28
RD
11703}
11704
11705
0085ce49
RD
11706SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11707 PyObject *resultobj = 0;
11708 wxTextCtrl *result = 0 ;
11709
11710 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11711 {
11712 if (!wxPyCheckForApp()) SWIG_fail;
11713 PyThreadState* __tstate = wxPyBeginAllowThreads();
11714 result = (wxTextCtrl *)new wxTextCtrl();
11715 wxPyEndAllowThreads(__tstate);
11716 if (PyErr_Occurred()) SWIG_fail;
11717 }
11718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11719 return resultobj;
11720fail:
11721 return NULL;
11722}
11723
11724
11725SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11726 PyObject *resultobj = 0;
11727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11728 wxWindow *arg2 = (wxWindow *) 0 ;
11729 int arg3 = (int) -1 ;
11730 wxString const &arg4_defvalue = wxPyEmptyString ;
11731 wxString *arg4 = (wxString *) &arg4_defvalue ;
11732 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11733 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11734 wxSize const &arg6_defvalue = wxDefaultSize ;
11735 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11736 long arg7 = (long) 0 ;
11737 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11738 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11739 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11740 wxString *arg9 = (wxString *) &arg9_defvalue ;
11741 bool result;
11742 void *argp1 = 0 ;
11743 int res1 = 0 ;
11744 void *argp2 = 0 ;
11745 int res2 = 0 ;
11746 int val3 ;
11747 int ecode3 = 0 ;
11748 bool temp4 = false ;
11749 wxPoint temp5 ;
11750 wxSize temp6 ;
11751 long val7 ;
11752 int ecode7 = 0 ;
11753 void *argp8 = 0 ;
11754 int res8 = 0 ;
11755 bool temp9 = false ;
11756 PyObject * obj0 = 0 ;
11757 PyObject * obj1 = 0 ;
11758 PyObject * obj2 = 0 ;
11759 PyObject * obj3 = 0 ;
11760 PyObject * obj4 = 0 ;
11761 PyObject * obj5 = 0 ;
11762 PyObject * obj6 = 0 ;
11763 PyObject * obj7 = 0 ;
11764 PyObject * obj8 = 0 ;
11765 char * kwnames[] = {
11766 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11767 };
11768
11769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11771 if (!SWIG_IsOK(res1)) {
11772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11773 }
11774 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11776 if (!SWIG_IsOK(res2)) {
11777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11778 }
11779 arg2 = reinterpret_cast< wxWindow * >(argp2);
11780 if (obj2) {
11781 ecode3 = SWIG_AsVal_int(obj2, &val3);
11782 if (!SWIG_IsOK(ecode3)) {
11783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11784 }
11785 arg3 = static_cast< int >(val3);
11786 }
11787 if (obj3) {
d14a1e28 11788 {
0085ce49
RD
11789 arg4 = wxString_in_helper(obj3);
11790 if (arg4 == NULL) SWIG_fail;
11791 temp4 = true;
d14a1e28 11792 }
0085ce49
RD
11793 }
11794 if (obj4) {
d14a1e28 11795 {
0085ce49
RD
11796 arg5 = &temp5;
11797 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11798 }
0085ce49
RD
11799 }
11800 if (obj5) {
d14a1e28 11801 {
0085ce49
RD
11802 arg6 = &temp6;
11803 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 11804 }
0085ce49
RD
11805 }
11806 if (obj6) {
11807 ecode7 = SWIG_AsVal_long(obj6, &val7);
11808 if (!SWIG_IsOK(ecode7)) {
11809 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11810 }
11811 arg7 = static_cast< long >(val7);
11812 }
11813 if (obj7) {
11814 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11815 if (!SWIG_IsOK(res8)) {
11816 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 11817 }
0085ce49
RD
11818 if (!argp8) {
11819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11820 }
0085ce49
RD
11821 arg8 = reinterpret_cast< wxValidator * >(argp8);
11822 }
11823 if (obj8) {
d14a1e28 11824 {
0085ce49
RD
11825 arg9 = wxString_in_helper(obj8);
11826 if (arg9 == NULL) SWIG_fail;
11827 temp9 = true;
d14a1e28 11828 }
0085ce49
RD
11829 }
11830 {
11831 PyThreadState* __tstate = wxPyBeginAllowThreads();
11832 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11833 wxPyEndAllowThreads(__tstate);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 }
11836 {
11837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11838 }
11839 {
11840 if (temp4)
11841 delete arg4;
11842 }
11843 {
11844 if (temp9)
11845 delete arg9;
11846 }
11847 return resultobj;
11848fail:
11849 {
11850 if (temp4)
11851 delete arg4;
11852 }
11853 {
11854 if (temp9)
11855 delete arg9;
11856 }
11857 return NULL;
d14a1e28
RD
11858}
11859
11860
0085ce49
RD
11861SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11862 PyObject *resultobj = 0;
11863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11864 wxString result;
11865 void *argp1 = 0 ;
11866 int res1 = 0 ;
11867 PyObject *swig_obj[1] ;
11868
11869 if (!args) SWIG_fail;
11870 swig_obj[0] = args;
11871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11872 if (!SWIG_IsOK(res1)) {
11873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11874 }
11875 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = ((wxTextCtrl const *)arg1)->GetValue();
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 {
11883#if wxUSE_UNICODE
11884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11885#else
11886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11887#endif
11888 }
11889 return resultobj;
11890fail:
11891 return NULL;
11892}
11893
11894
11895SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11896 PyObject *resultobj = 0;
11897 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11898 wxString *arg2 = 0 ;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 bool temp2 = false ;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 char * kwnames[] = {
11905 (char *) "self",(char *) "value", NULL
11906 };
11907
11908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11910 if (!SWIG_IsOK(res1)) {
11911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11912 }
11913 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11914 {
11915 arg2 = wxString_in_helper(obj1);
11916 if (arg2 == NULL) SWIG_fail;
11917 temp2 = true;
11918 }
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 (arg1)->SetValue((wxString const &)*arg2);
11922 wxPyEndAllowThreads(__tstate);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 resultobj = SWIG_Py_Void();
11926 {
11927 if (temp2)
11928 delete arg2;
11929 }
11930 return resultobj;
11931fail:
11932 {
11933 if (temp2)
11934 delete arg2;
11935 }
11936 return NULL;
11937}
11938
11939
11940SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11941 PyObject *resultobj = 0;
11942 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11943 long arg2 ;
11944 long arg3 ;
11945 wxString result;
11946 void *argp1 = 0 ;
11947 int res1 = 0 ;
11948 long val2 ;
11949 int ecode2 = 0 ;
11950 long val3 ;
11951 int ecode3 = 0 ;
11952 PyObject * obj0 = 0 ;
11953 PyObject * obj1 = 0 ;
11954 PyObject * obj2 = 0 ;
11955 char * kwnames[] = {
2131d850 11956 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
11957 };
11958
11959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11961 if (!SWIG_IsOK(res1)) {
11962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11963 }
11964 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11965 ecode2 = SWIG_AsVal_long(obj1, &val2);
11966 if (!SWIG_IsOK(ecode2)) {
11967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11968 }
11969 arg2 = static_cast< long >(val2);
11970 ecode3 = SWIG_AsVal_long(obj2, &val3);
11971 if (!SWIG_IsOK(ecode3)) {
11972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11973 }
11974 arg3 = static_cast< long >(val3);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982#if wxUSE_UNICODE
11983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11984#else
11985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11986#endif
11987 }
11988 return resultobj;
11989fail:
11990 return NULL;
11991}
11992
11993
11994SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11995 PyObject *resultobj = 0;
11996 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11997 long arg2 ;
11998 int result;
11999 void *argp1 = 0 ;
12000 int res1 = 0 ;
12001 long val2 ;
12002 int ecode2 = 0 ;
12003 PyObject * obj0 = 0 ;
12004 PyObject * obj1 = 0 ;
12005 char * kwnames[] = {
12006 (char *) "self",(char *) "lineNo", NULL
12007 };
12008
12009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12013 }
12014 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12015 ecode2 = SWIG_AsVal_long(obj1, &val2);
12016 if (!SWIG_IsOK(ecode2)) {
12017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12018 }
12019 arg2 = static_cast< long >(val2);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 resultobj = SWIG_From_int(static_cast< int >(result));
12027 return resultobj;
12028fail:
12029 return NULL;
12030}
12031
12032
12033SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12034 PyObject *resultobj = 0;
12035 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12036 long arg2 ;
12037 wxString result;
12038 void *argp1 = 0 ;
12039 int res1 = 0 ;
12040 long val2 ;
12041 int ecode2 = 0 ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 char * kwnames[] = {
12045 (char *) "self",(char *) "lineNo", NULL
12046 };
12047
12048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12050 if (!SWIG_IsOK(res1)) {
12051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12052 }
12053 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12054 ecode2 = SWIG_AsVal_long(obj1, &val2);
12055 if (!SWIG_IsOK(ecode2)) {
12056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12057 }
12058 arg2 = static_cast< long >(val2);
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 {
12066#if wxUSE_UNICODE
12067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12068#else
12069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12070#endif
12071 }
12072 return resultobj;
12073fail:
12074 return NULL;
d14a1e28
RD
12075}
12076
12077
0085ce49
RD
12078SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12079 PyObject *resultobj = 0;
12080 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12081 int result;
12082 void *argp1 = 0 ;
12083 int res1 = 0 ;
12084 PyObject *swig_obj[1] ;
12085
12086 if (!args) SWIG_fail;
12087 swig_obj[0] = args;
12088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12089 if (!SWIG_IsOK(res1)) {
12090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12091 }
12092 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12093 {
12094 PyThreadState* __tstate = wxPyBeginAllowThreads();
12095 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 resultobj = SWIG_From_int(static_cast< int >(result));
12100 return resultobj;
12101fail:
12102 return NULL;
d14a1e28
RD
12103}
12104
12105
0085ce49
RD
12106SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12107 PyObject *resultobj = 0;
12108 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12109 bool result;
12110 void *argp1 = 0 ;
12111 int res1 = 0 ;
12112 PyObject *swig_obj[1] ;
12113
12114 if (!args) SWIG_fail;
12115 swig_obj[0] = args;
12116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12119 }
12120 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 {
12128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12129 }
12130 return resultobj;
12131fail:
12132 return NULL;
c3eb6258
RD
12133}
12134
12135
0085ce49
RD
12136SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12137 PyObject *resultobj = 0;
12138 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12139 bool result;
12140 void *argp1 = 0 ;
12141 int res1 = 0 ;
12142 PyObject *swig_obj[1] ;
12143
12144 if (!args) SWIG_fail;
12145 swig_obj[0] = args;
12146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12147 if (!SWIG_IsOK(res1)) {
12148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12149 }
12150 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12151 {
12152 PyThreadState* __tstate = wxPyBeginAllowThreads();
12153 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 {
12158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12159 }
12160 return resultobj;
12161fail:
12162 return NULL;
74a57fcd
RD
12163}
12164
12165
0085ce49
RD
12166SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12167 PyObject *resultobj = 0;
12168 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12169 bool result;
12170 void *argp1 = 0 ;
12171 int res1 = 0 ;
12172 PyObject *swig_obj[1] ;
12173
12174 if (!args) SWIG_fail;
12175 swig_obj[0] = args;
12176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12177 if (!SWIG_IsOK(res1)) {
12178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12179 }
12180 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 {
12188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12189 }
12190 return resultobj;
12191fail:
12192 return NULL;
d14a1e28
RD
12193}
12194
12195
0085ce49
RD
12196SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12197 PyObject *resultobj = 0;
12198 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12199 bool result;
12200 void *argp1 = 0 ;
12201 int res1 = 0 ;
12202 PyObject *swig_obj[1] ;
12203
12204 if (!args) SWIG_fail;
12205 swig_obj[0] = args;
12206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12207 if (!SWIG_IsOK(res1)) {
12208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12209 }
12210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 {
12218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12219 }
12220 return resultobj;
12221fail:
12222 return NULL;
12223}
12224
12225
12226SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12229 long *arg2 = (long *) 0 ;
12230 long *arg3 = (long *) 0 ;
12231 void *argp1 = 0 ;
12232 int res1 = 0 ;
12233 long temp2 ;
12234 int res2 = SWIG_TMPOBJ ;
12235 long temp3 ;
12236 int res3 = SWIG_TMPOBJ ;
12237 PyObject *swig_obj[1] ;
12238
12239 arg2 = &temp2;
12240 arg3 = &temp3;
12241 if (!args) SWIG_fail;
12242 swig_obj[0] = args;
12243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12246 }
12247 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 resultobj = SWIG_Py_Void();
12255 if (SWIG_IsTmpObj(res2)) {
12256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12257 } else {
12258 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12260 }
12261 if (SWIG_IsTmpObj(res3)) {
12262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12263 } else {
12264 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12266 }
12267 return resultobj;
12268fail:
12269 return NULL;
d14a1e28
RD
12270}
12271
12272
0085ce49
RD
12273SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12274 PyObject *resultobj = 0;
12275 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12276 wxString result;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 PyObject *swig_obj[1] ;
12280
12281 if (!args) SWIG_fail;
12282 swig_obj[0] = args;
12283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12286 }
12287 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 {
12295#if wxUSE_UNICODE
12296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12297#else
12298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12299#endif
12300 }
12301 return resultobj;
12302fail:
12303 return NULL;
d14a1e28
RD
12304}
12305
12306
0085ce49
RD
12307SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12308 PyObject *resultobj = 0;
12309 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12319 }
12320 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 (arg1)->Clear();
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 resultobj = SWIG_Py_Void();
12328 return resultobj;
12329fail:
12330 return NULL;
12331}
12332
12333
12334SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12335 PyObject *resultobj = 0;
12336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12337 long arg2 ;
12338 long arg3 ;
12339 wxString *arg4 = 0 ;
12340 void *argp1 = 0 ;
12341 int res1 = 0 ;
12342 long val2 ;
12343 int ecode2 = 0 ;
12344 long val3 ;
12345 int ecode3 = 0 ;
12346 bool temp4 = false ;
12347 PyObject * obj0 = 0 ;
12348 PyObject * obj1 = 0 ;
12349 PyObject * obj2 = 0 ;
12350 PyObject * obj3 = 0 ;
12351 char * kwnames[] = {
2131d850 12352 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
12353 };
12354
12355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12357 if (!SWIG_IsOK(res1)) {
12358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12359 }
12360 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12361 ecode2 = SWIG_AsVal_long(obj1, &val2);
12362 if (!SWIG_IsOK(ecode2)) {
12363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12364 }
12365 arg2 = static_cast< long >(val2);
12366 ecode3 = SWIG_AsVal_long(obj2, &val3);
12367 if (!SWIG_IsOK(ecode3)) {
12368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12369 }
12370 arg3 = static_cast< long >(val3);
12371 {
12372 arg4 = wxString_in_helper(obj3);
12373 if (arg4 == NULL) SWIG_fail;
12374 temp4 = true;
12375 }
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 resultobj = SWIG_Py_Void();
12383 {
12384 if (temp4)
12385 delete arg4;
12386 }
12387 return resultobj;
12388fail:
12389 {
12390 if (temp4)
12391 delete arg4;
12392 }
12393 return NULL;
12394}
12395
12396
12397SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12400 long arg2 ;
12401 long arg3 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 long val2 ;
12405 int ecode2 = 0 ;
12406 long val3 ;
12407 int ecode3 = 0 ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 PyObject * obj2 = 0 ;
12411 char * kwnames[] = {
2131d850 12412 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
12413 };
12414
12415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12419 }
12420 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12421 ecode2 = SWIG_AsVal_long(obj1, &val2);
12422 if (!SWIG_IsOK(ecode2)) {
12423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12424 }
12425 arg2 = static_cast< long >(val2);
12426 ecode3 = SWIG_AsVal_long(obj2, &val3);
12427 if (!SWIG_IsOK(ecode3)) {
12428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12429 }
12430 arg3 = static_cast< long >(val3);
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 (arg1)->Remove(arg2,arg3);
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 resultobj = SWIG_Py_Void();
12438 return resultobj;
12439fail:
12440 return NULL;
12441}
12442
12443
12444SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj = 0;
12446 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12447 wxString *arg2 = 0 ;
12448 bool result;
12449 void *argp1 = 0 ;
12450 int res1 = 0 ;
12451 bool temp2 = false ;
12452 PyObject * obj0 = 0 ;
12453 PyObject * obj1 = 0 ;
12454 char * kwnames[] = {
12455 (char *) "self",(char *) "file", NULL
12456 };
12457
12458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) 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_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12462 }
12463 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12464 {
12465 arg2 = wxString_in_helper(obj1);
12466 if (arg2 == NULL) SWIG_fail;
12467 temp2 = true;
12468 }
12469 {
12470 PyThreadState* __tstate = wxPyBeginAllowThreads();
12471 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 {
12476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12477 }
12478 {
12479 if (temp2)
12480 delete arg2;
12481 }
12482 return resultobj;
12483fail:
12484 {
12485 if (temp2)
12486 delete arg2;
12487 }
12488 return NULL;
12489}
12490
12491
12492SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12493 PyObject *resultobj = 0;
12494 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12495 wxString const &arg2_defvalue = wxPyEmptyString ;
12496 wxString *arg2 = (wxString *) &arg2_defvalue ;
12497 bool result;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 bool temp2 = false ;
12501 PyObject * obj0 = 0 ;
12502 PyObject * obj1 = 0 ;
12503 char * kwnames[] = {
12504 (char *) "self",(char *) "file", NULL
12505 };
12506
12507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12509 if (!SWIG_IsOK(res1)) {
12510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12511 }
12512 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12513 if (obj1) {
4f89f6a3 12514 {
0085ce49
RD
12515 arg2 = wxString_in_helper(obj1);
12516 if (arg2 == NULL) SWIG_fail;
12517 temp2 = true;
4f89f6a3 12518 }
0085ce49
RD
12519 }
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 {
12527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12528 }
12529 {
12530 if (temp2)
12531 delete arg2;
12532 }
12533 return resultobj;
12534fail:
12535 {
12536 if (temp2)
12537 delete arg2;
12538 }
12539 return NULL;
d14a1e28
RD
12540}
12541
12542
0085ce49
RD
12543SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 PyObject *resultobj = 0;
12545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 PyObject *swig_obj[1] ;
12549
12550 if (!args) SWIG_fail;
12551 swig_obj[0] = args;
12552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12553 if (!SWIG_IsOK(res1)) {
12554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12555 }
12556 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->MarkDirty();
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_Py_Void();
12564 return resultobj;
12565fail:
12566 return NULL;
d14a1e28
RD
12567}
12568
12569
0085ce49
RD
12570SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 PyObject *swig_obj[1] ;
12576
12577 if (!args) SWIG_fail;
12578 swig_obj[0] = args;
12579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12582 }
12583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 (arg1)->DiscardEdits();
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 resultobj = SWIG_Py_Void();
12591 return resultobj;
12592fail:
12593 return NULL;
12594}
12595
12596
b02396e8
RD
12597SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj = 0;
12599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12600 bool arg2 ;
12601 void *argp1 = 0 ;
12602 int res1 = 0 ;
12603 bool val2 ;
12604 int ecode2 = 0 ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 char * kwnames[] = {
12608 (char *) "self",(char *) "modified", NULL
12609 };
12610
12611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12613 if (!SWIG_IsOK(res1)) {
12614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12615 }
12616 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12617 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12618 if (!SWIG_IsOK(ecode2)) {
12619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12620 }
12621 arg2 = static_cast< bool >(val2);
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 (arg1)->SetModified(arg2);
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 resultobj = SWIG_Py_Void();
12629 return resultobj;
12630fail:
12631 return NULL;
12632}
12633
12634
0085ce49
RD
12635SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12636 PyObject *resultobj = 0;
12637 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12638 unsigned long arg2 ;
12639 void *argp1 = 0 ;
12640 int res1 = 0 ;
12641 unsigned long val2 ;
12642 int ecode2 = 0 ;
12643 PyObject * obj0 = 0 ;
12644 PyObject * obj1 = 0 ;
12645 char * kwnames[] = {
12646 (char *) "self",(char *) "len", NULL
12647 };
12648
12649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12651 if (!SWIG_IsOK(res1)) {
12652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12653 }
12654 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12655 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12656 if (!SWIG_IsOK(ecode2)) {
12657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12658 }
12659 arg2 = static_cast< unsigned long >(val2);
12660 {
12661 PyThreadState* __tstate = wxPyBeginAllowThreads();
12662 (arg1)->SetMaxLength(arg2);
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 resultobj = SWIG_Py_Void();
12667 return resultobj;
12668fail:
12669 return NULL;
12670}
12671
12672
12673SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj = 0;
12675 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12676 wxString *arg2 = 0 ;
12677 void *argp1 = 0 ;
12678 int res1 = 0 ;
12679 bool temp2 = false ;
12680 PyObject * obj0 = 0 ;
12681 PyObject * obj1 = 0 ;
12682 char * kwnames[] = {
12683 (char *) "self",(char *) "text", NULL
12684 };
12685
12686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12688 if (!SWIG_IsOK(res1)) {
12689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12690 }
12691 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12692 {
12693 arg2 = wxString_in_helper(obj1);
12694 if (arg2 == NULL) SWIG_fail;
12695 temp2 = true;
12696 }
12697 {
12698 PyThreadState* __tstate = wxPyBeginAllowThreads();
12699 (arg1)->WriteText((wxString const &)*arg2);
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 resultobj = SWIG_Py_Void();
12704 {
12705 if (temp2)
12706 delete arg2;
12707 }
12708 return resultobj;
12709fail:
12710 {
12711 if (temp2)
12712 delete arg2;
12713 }
12714 return NULL;
d14a1e28
RD
12715}
12716
12717
0085ce49
RD
12718SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj = 0;
12720 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12721 wxString *arg2 = 0 ;
12722 void *argp1 = 0 ;
12723 int res1 = 0 ;
12724 bool temp2 = false ;
12725 PyObject * obj0 = 0 ;
12726 PyObject * obj1 = 0 ;
12727 char * kwnames[] = {
12728 (char *) "self",(char *) "text", NULL
12729 };
12730
12731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12733 if (!SWIG_IsOK(res1)) {
12734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12735 }
12736 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12737 {
12738 arg2 = wxString_in_helper(obj1);
12739 if (arg2 == NULL) SWIG_fail;
12740 temp2 = true;
12741 }
12742 {
12743 PyThreadState* __tstate = wxPyBeginAllowThreads();
12744 (arg1)->AppendText((wxString const &)*arg2);
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 resultobj = SWIG_Py_Void();
12749 {
12750 if (temp2)
12751 delete arg2;
12752 }
12753 return resultobj;
12754fail:
12755 {
12756 if (temp2)
12757 delete arg2;
12758 }
12759 return NULL;
12760}
12761
12762
12763SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12764 PyObject *resultobj = 0;
12765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12766 wxKeyEvent *arg2 = 0 ;
12767 bool result;
12768 void *argp1 = 0 ;
12769 int res1 = 0 ;
12770 void *argp2 = 0 ;
12771 int res2 = 0 ;
12772 PyObject * obj0 = 0 ;
12773 PyObject * obj1 = 0 ;
12774 char * kwnames[] = {
12775 (char *) "self",(char *) "event", NULL
12776 };
12777
12778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12782 }
12783 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12785 if (!SWIG_IsOK(res2)) {
12786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12787 }
12788 if (!argp2) {
12789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12790 }
12791 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12792 {
12793 PyThreadState* __tstate = wxPyBeginAllowThreads();
12794 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12795 wxPyEndAllowThreads(__tstate);
12796 if (PyErr_Occurred()) SWIG_fail;
12797 }
12798 {
12799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12800 }
12801 return resultobj;
12802fail:
12803 return NULL;
12804}
12805
12806
12807SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12808 PyObject *resultobj = 0;
12809 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12810 long arg2 ;
12811 long arg3 ;
12812 wxTextAttr *arg4 = 0 ;
12813 bool result;
12814 void *argp1 = 0 ;
12815 int res1 = 0 ;
12816 long val2 ;
12817 int ecode2 = 0 ;
12818 long val3 ;
12819 int ecode3 = 0 ;
12820 void *argp4 = 0 ;
12821 int res4 = 0 ;
12822 PyObject * obj0 = 0 ;
12823 PyObject * obj1 = 0 ;
12824 PyObject * obj2 = 0 ;
12825 PyObject * obj3 = 0 ;
12826 char * kwnames[] = {
12827 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12828 };
12829
12830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12832 if (!SWIG_IsOK(res1)) {
12833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12834 }
12835 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12836 ecode2 = SWIG_AsVal_long(obj1, &val2);
12837 if (!SWIG_IsOK(ecode2)) {
12838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12839 }
12840 arg2 = static_cast< long >(val2);
12841 ecode3 = SWIG_AsVal_long(obj2, &val3);
12842 if (!SWIG_IsOK(ecode3)) {
12843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12844 }
12845 arg3 = static_cast< long >(val3);
12846 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12847 if (!SWIG_IsOK(res4)) {
12848 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12849 }
12850 if (!argp4) {
12851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12852 }
12853 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12854 {
12855 PyThreadState* __tstate = wxPyBeginAllowThreads();
12856 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12857 wxPyEndAllowThreads(__tstate);
12858 if (PyErr_Occurred()) SWIG_fail;
12859 }
12860 {
12861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12862 }
12863 return resultobj;
12864fail:
12865 return NULL;
12866}
12867
12868
12869SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12870 PyObject *resultobj = 0;
12871 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12872 long arg2 ;
12873 wxTextAttr *arg3 = 0 ;
12874 bool result;
12875 void *argp1 = 0 ;
12876 int res1 = 0 ;
12877 long val2 ;
12878 int ecode2 = 0 ;
12879 void *argp3 = 0 ;
12880 int res3 = 0 ;
12881 PyObject * obj0 = 0 ;
12882 PyObject * obj1 = 0 ;
12883 PyObject * obj2 = 0 ;
12884 char * kwnames[] = {
12885 (char *) "self",(char *) "position",(char *) "style", NULL
12886 };
12887
12888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12890 if (!SWIG_IsOK(res1)) {
12891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12892 }
12893 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12894 ecode2 = SWIG_AsVal_long(obj1, &val2);
12895 if (!SWIG_IsOK(ecode2)) {
12896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12897 }
12898 arg2 = static_cast< long >(val2);
12899 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12900 if (!SWIG_IsOK(res3)) {
12901 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12902 }
12903 if (!argp3) {
12904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12905 }
12906 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12907 {
12908 PyThreadState* __tstate = wxPyBeginAllowThreads();
12909 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 {
12914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12915 }
12916 return resultobj;
12917fail:
12918 return NULL;
12919}
12920
12921
12922SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12923 PyObject *resultobj = 0;
12924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12925 wxTextAttr *arg2 = 0 ;
12926 bool result;
12927 void *argp1 = 0 ;
12928 int res1 = 0 ;
12929 void *argp2 = 0 ;
12930 int res2 = 0 ;
12931 PyObject * obj0 = 0 ;
12932 PyObject * obj1 = 0 ;
12933 char * kwnames[] = {
12934 (char *) "self",(char *) "style", NULL
12935 };
12936
12937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12939 if (!SWIG_IsOK(res1)) {
12940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12941 }
12942 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12944 if (!SWIG_IsOK(res2)) {
12945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12946 }
12947 if (!argp2) {
12948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12949 }
12950 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 {
12958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12959 }
12960 return resultobj;
12961fail:
12962 return NULL;
d14a1e28
RD
12963}
12964
12965
0085ce49
RD
12966SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 PyObject *resultobj = 0;
12968 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12969 wxTextAttr *result = 0 ;
12970 void *argp1 = 0 ;
12971 int res1 = 0 ;
12972 PyObject *swig_obj[1] ;
12973
12974 if (!args) SWIG_fail;
12975 swig_obj[0] = args;
12976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12979 }
12980 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 12983 {
0085ce49
RD
12984 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12985 result = (wxTextAttr *) &_result_ref;
093d3ff1 12986 }
0085ce49
RD
12987 wxPyEndAllowThreads(__tstate);
12988 if (PyErr_Occurred()) SWIG_fail;
12989 }
12990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12991 return resultobj;
12992fail:
12993 return NULL;
12994}
12995
12996
12997SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj = 0;
12999 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13000 long arg2 ;
13001 long arg3 ;
13002 long result;
13003 void *argp1 = 0 ;
13004 int res1 = 0 ;
13005 long val2 ;
13006 int ecode2 = 0 ;
13007 long val3 ;
13008 int ecode3 = 0 ;
13009 PyObject * obj0 = 0 ;
13010 PyObject * obj1 = 0 ;
13011 PyObject * obj2 = 0 ;
13012 char * kwnames[] = {
13013 (char *) "self",(char *) "x",(char *) "y", NULL
13014 };
13015
13016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13018 if (!SWIG_IsOK(res1)) {
13019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13020 }
13021 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13022 ecode2 = SWIG_AsVal_long(obj1, &val2);
13023 if (!SWIG_IsOK(ecode2)) {
13024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13025 }
13026 arg2 = static_cast< long >(val2);
13027 ecode3 = SWIG_AsVal_long(obj2, &val3);
13028 if (!SWIG_IsOK(ecode3)) {
13029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13030 }
13031 arg3 = static_cast< long >(val3);
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 resultobj = SWIG_From_long(static_cast< long >(result));
13039 return resultobj;
13040fail:
13041 return NULL;
13042}
13043
13044
13045SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj = 0;
13047 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13048 long arg2 ;
13049 long *arg3 = (long *) 0 ;
13050 long *arg4 = (long *) 0 ;
13051 void *argp1 = 0 ;
13052 int res1 = 0 ;
13053 long val2 ;
13054 int ecode2 = 0 ;
13055 long temp3 ;
13056 int res3 = SWIG_TMPOBJ ;
13057 long temp4 ;
13058 int res4 = SWIG_TMPOBJ ;
13059 PyObject * obj0 = 0 ;
13060 PyObject * obj1 = 0 ;
13061 char * kwnames[] = {
13062 (char *) "self",(char *) "pos", NULL
13063 };
13064
13065 arg3 = &temp3;
13066 arg4 = &temp4;
13067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13069 if (!SWIG_IsOK(res1)) {
13070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13071 }
13072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13073 ecode2 = SWIG_AsVal_long(obj1, &val2);
13074 if (!SWIG_IsOK(ecode2)) {
13075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13076 }
13077 arg2 = static_cast< long >(val2);
13078 {
13079 PyThreadState* __tstate = wxPyBeginAllowThreads();
13080 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13081 wxPyEndAllowThreads(__tstate);
13082 if (PyErr_Occurred()) SWIG_fail;
13083 }
13084 resultobj = SWIG_Py_Void();
13085 if (SWIG_IsTmpObj(res3)) {
13086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13087 } else {
13088 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13090 }
13091 if (SWIG_IsTmpObj(res4)) {
13092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13093 } else {
13094 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13096 }
13097 return resultobj;
13098fail:
13099 return NULL;
13100}
13101
13102
13103SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13104 PyObject *resultobj = 0;
13105 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13106 long arg2 ;
13107 void *argp1 = 0 ;
13108 int res1 = 0 ;
13109 long val2 ;
13110 int ecode2 = 0 ;
13111 PyObject * obj0 = 0 ;
13112 PyObject * obj1 = 0 ;
13113 char * kwnames[] = {
13114 (char *) "self",(char *) "pos", NULL
13115 };
13116
13117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13119 if (!SWIG_IsOK(res1)) {
13120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13121 }
13122 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13123 ecode2 = SWIG_AsVal_long(obj1, &val2);
13124 if (!SWIG_IsOK(ecode2)) {
13125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13126 }
13127 arg2 = static_cast< long >(val2);
13128 {
13129 PyThreadState* __tstate = wxPyBeginAllowThreads();
13130 (arg1)->ShowPosition(arg2);
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_Py_Void();
13135 return resultobj;
13136fail:
13137 return NULL;
13138}
13139
13140
13141SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj = 0;
13143 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13144 wxPoint *arg2 = 0 ;
13145 long *arg3 = (long *) 0 ;
13146 long *arg4 = (long *) 0 ;
13147 wxTextCtrlHitTestResult result;
13148 void *argp1 = 0 ;
13149 int res1 = 0 ;
13150 wxPoint temp2 ;
13151 long temp3 ;
13152 int res3 = SWIG_TMPOBJ ;
13153 long temp4 ;
13154 int res4 = SWIG_TMPOBJ ;
13155 PyObject * obj0 = 0 ;
13156 PyObject * obj1 = 0 ;
13157 char * kwnames[] = {
13158 (char *) "self",(char *) "pt", NULL
13159 };
13160
13161 arg3 = &temp3;
13162 arg4 = &temp4;
13163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13165 if (!SWIG_IsOK(res1)) {
13166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13167 }
13168 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13169 {
13170 arg2 = &temp2;
13171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13172 }
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 resultobj = SWIG_From_int(static_cast< int >(result));
13180 if (SWIG_IsTmpObj(res3)) {
13181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13182 } else {
13183 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13185 }
13186 if (SWIG_IsTmpObj(res4)) {
13187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13188 } else {
13189 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13191 }
13192 return resultobj;
13193fail:
13194 return NULL;
13195}
13196
13197
13198SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13199 PyObject *resultobj = 0;
13200 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13201 wxPoint *arg2 = 0 ;
13202 long *arg3 = (long *) 0 ;
13203 wxTextCtrlHitTestResult result;
13204 void *argp1 = 0 ;
13205 int res1 = 0 ;
13206 wxPoint temp2 ;
13207 long temp3 ;
13208 int res3 = SWIG_TMPOBJ ;
13209 PyObject * obj0 = 0 ;
13210 PyObject * obj1 = 0 ;
13211 char * kwnames[] = {
13212 (char *) "self",(char *) "pt", NULL
13213 };
13214
13215 arg3 = &temp3;
13216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13218 if (!SWIG_IsOK(res1)) {
13219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13220 }
13221 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13222 {
13223 arg2 = &temp2;
13224 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13225 }
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 resultobj = SWIG_From_int(static_cast< int >(result));
13233 if (SWIG_IsTmpObj(res3)) {
13234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13235 } else {
13236 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13238 }
13239 return resultobj;
13240fail:
13241 return NULL;
d14a1e28
RD
13242}
13243
13244
0085ce49
RD
13245SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13246 PyObject *resultobj = 0;
13247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13248 void *argp1 = 0 ;
13249 int res1 = 0 ;
13250 PyObject *swig_obj[1] ;
13251
13252 if (!args) SWIG_fail;
13253 swig_obj[0] = args;
13254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13255 if (!SWIG_IsOK(res1)) {
13256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13257 }
13258 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13259 {
13260 PyThreadState* __tstate = wxPyBeginAllowThreads();
13261 (arg1)->Copy();
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 resultobj = SWIG_Py_Void();
13266 return resultobj;
13267fail:
13268 return NULL;
d14a1e28 13269}
0085ce49
RD
13270
13271
13272SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 PyObject *swig_obj[1] ;
13278
13279 if (!args) SWIG_fail;
13280 swig_obj[0] = args;
13281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13282 if (!SWIG_IsOK(res1)) {
13283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13284 }
13285 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 (arg1)->Cut();
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_Py_Void();
13293 return resultobj;
13294fail:
13295 return NULL;
b2dc1044
RD
13296}
13297
13298
0085ce49
RD
13299SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13300 PyObject *resultobj = 0;
13301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13311 }
13312 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 (arg1)->Paste();
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 resultobj = SWIG_Py_Void();
13320 return resultobj;
13321fail:
13322 return NULL;
d14a1e28
RD
13323}
13324
13325
0085ce49
RD
13326SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13327 PyObject *resultobj = 0;
13328 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13329 bool result;
13330 void *argp1 = 0 ;
13331 int res1 = 0 ;
13332 PyObject *swig_obj[1] ;
13333
13334 if (!args) SWIG_fail;
13335 swig_obj[0] = args;
13336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13337 if (!SWIG_IsOK(res1)) {
13338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13339 }
13340 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13341 {
13342 PyThreadState* __tstate = wxPyBeginAllowThreads();
13343 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 {
13348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13349 }
13350 return resultobj;
13351fail:
13352 return NULL;
d14a1e28
RD
13353}
13354
13355
0085ce49
RD
13356SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13357 PyObject *resultobj = 0;
13358 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13359 bool result;
13360 void *argp1 = 0 ;
13361 int res1 = 0 ;
13362 PyObject *swig_obj[1] ;
13363
13364 if (!args) SWIG_fail;
13365 swig_obj[0] = args;
13366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13367 if (!SWIG_IsOK(res1)) {
13368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13369 }
13370 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 {
13378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13379 }
13380 return resultobj;
13381fail:
13382 return NULL;
994141e6
RD
13383}
13384
13385
0085ce49
RD
13386SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13387 PyObject *resultobj = 0;
13388 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13389 bool result;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 PyObject *swig_obj[1] ;
13393
13394 if (!args) SWIG_fail;
13395 swig_obj[0] = args;
13396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13399 }
13400 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 {
13408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13409 }
13410 return resultobj;
13411fail:
13412 return NULL;
d14a1e28
RD
13413}
13414
13415
0085ce49
RD
13416SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13417 PyObject *resultobj = 0;
13418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13419 void *argp1 = 0 ;
13420 int res1 = 0 ;
13421 PyObject *swig_obj[1] ;
13422
13423 if (!args) SWIG_fail;
13424 swig_obj[0] = args;
13425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13426 if (!SWIG_IsOK(res1)) {
13427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13428 }
13429 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 (arg1)->Undo();
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 resultobj = SWIG_Py_Void();
13437 return resultobj;
13438fail:
13439 return NULL;
d14a1e28
RD
13440}
13441
13442
0085ce49
RD
13443SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13444 PyObject *resultobj = 0;
13445 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 PyObject *swig_obj[1] ;
13449
13450 if (!args) SWIG_fail;
13451 swig_obj[0] = args;
13452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13455 }
13456 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 (arg1)->Redo();
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_Py_Void();
13464 return resultobj;
13465fail:
13466 return NULL;
d14a1e28
RD
13467}
13468
13469
0085ce49
RD
13470SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13471 PyObject *resultobj = 0;
13472 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13473 bool result;
13474 void *argp1 = 0 ;
13475 int res1 = 0 ;
13476 PyObject *swig_obj[1] ;
13477
13478 if (!args) SWIG_fail;
13479 swig_obj[0] = args;
13480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13481 if (!SWIG_IsOK(res1)) {
13482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13483 }
13484 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 {
13492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13493 }
13494 return resultobj;
13495fail:
13496 return NULL;
d14a1e28
RD
13497}
13498
13499
0085ce49
RD
13500SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13501 PyObject *resultobj = 0;
13502 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13503 bool result;
13504 void *argp1 = 0 ;
13505 int res1 = 0 ;
13506 PyObject *swig_obj[1] ;
13507
13508 if (!args) SWIG_fail;
13509 swig_obj[0] = args;
13510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13511 if (!SWIG_IsOK(res1)) {
13512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13513 }
13514 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13515 {
13516 PyThreadState* __tstate = wxPyBeginAllowThreads();
13517 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 {
13522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13523 }
13524 return resultobj;
13525fail:
13526 return NULL;
13527}
13528
13529
13530SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj = 0;
13532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13533 long arg2 ;
13534 void *argp1 = 0 ;
13535 int res1 = 0 ;
13536 long val2 ;
13537 int ecode2 = 0 ;
13538 PyObject * obj0 = 0 ;
13539 PyObject * obj1 = 0 ;
13540 char * kwnames[] = {
13541 (char *) "self",(char *) "pos", NULL
13542 };
13543
13544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13546 if (!SWIG_IsOK(res1)) {
13547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13548 }
13549 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13550 ecode2 = SWIG_AsVal_long(obj1, &val2);
13551 if (!SWIG_IsOK(ecode2)) {
13552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13553 }
13554 arg2 = static_cast< long >(val2);
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 (arg1)->SetInsertionPoint(arg2);
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_SetInsertionPointEnd(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_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13580 }
13581 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 (arg1)->SetInsertionPointEnd();
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_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 long 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_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13608 }
13609 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_From_long(static_cast< long >(result));
13617 return resultobj;
13618fail:
13619 return NULL;
d14a1e28
RD
13620}
13621
13622
0085ce49
RD
13623SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13624 PyObject *resultobj = 0;
13625 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13626 long result;
13627 void *argp1 = 0 ;
13628 int res1 = 0 ;
13629 PyObject *swig_obj[1] ;
13630
13631 if (!args) SWIG_fail;
13632 swig_obj[0] = args;
13633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13634 if (!SWIG_IsOK(res1)) {
13635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13636 }
13637 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13641 wxPyEndAllowThreads(__tstate);
13642 if (PyErr_Occurred()) SWIG_fail;
13643 }
13644 resultobj = SWIG_From_long(static_cast< long >(result));
13645 return resultobj;
13646fail:
13647 return NULL;
13648}
13649
13650
13651SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13652 PyObject *resultobj = 0;
13653 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13654 long arg2 ;
13655 long arg3 ;
13656 void *argp1 = 0 ;
13657 int res1 = 0 ;
13658 long val2 ;
13659 int ecode2 = 0 ;
13660 long val3 ;
13661 int ecode3 = 0 ;
13662 PyObject * obj0 = 0 ;
13663 PyObject * obj1 = 0 ;
13664 PyObject * obj2 = 0 ;
13665 char * kwnames[] = {
2131d850 13666 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13667 };
13668
13669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) 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_SetSelection" "', 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_SetSelection" "', expected argument " "2"" of type '" "long""'");
13678 }
13679 arg2 = static_cast< long >(val2);
13680 ecode3 = SWIG_AsVal_long(obj2, &val3);
13681 if (!SWIG_IsOK(ecode3)) {
13682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13683 }
13684 arg3 = static_cast< long >(val3);
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 (arg1)->SetSelection(arg2,arg3);
13688 wxPyEndAllowThreads(__tstate);
13689 if (PyErr_Occurred()) SWIG_fail;
13690 }
13691 resultobj = SWIG_Py_Void();
13692 return resultobj;
13693fail:
13694 return NULL;
d14a1e28
RD
13695}
13696
13697
0085ce49
RD
13698SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13699 PyObject *resultobj = 0;
13700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13701 void *argp1 = 0 ;
13702 int res1 = 0 ;
13703 PyObject *swig_obj[1] ;
13704
13705 if (!args) SWIG_fail;
13706 swig_obj[0] = args;
13707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13708 if (!SWIG_IsOK(res1)) {
13709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13710 }
13711 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 (arg1)->SelectAll();
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 resultobj = SWIG_Py_Void();
13719 return resultobj;
13720fail:
13721 return NULL;
13722}
13723
13724
13725SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13726 PyObject *resultobj = 0;
13727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13728 bool arg2 ;
13729 void *argp1 = 0 ;
13730 int res1 = 0 ;
13731 bool val2 ;
13732 int ecode2 = 0 ;
13733 PyObject * obj0 = 0 ;
13734 PyObject * obj1 = 0 ;
13735 char * kwnames[] = {
13736 (char *) "self",(char *) "editable", NULL
13737 };
13738
13739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13741 if (!SWIG_IsOK(res1)) {
13742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13743 }
13744 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13745 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13746 if (!SWIG_IsOK(ecode2)) {
13747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13748 }
13749 arg2 = static_cast< bool >(val2);
13750 {
13751 PyThreadState* __tstate = wxPyBeginAllowThreads();
13752 (arg1)->SetEditable(arg2);
13753 wxPyEndAllowThreads(__tstate);
13754 if (PyErr_Occurred()) SWIG_fail;
13755 }
13756 resultobj = SWIG_Py_Void();
13757 return resultobj;
13758fail:
13759 return NULL;
13760}
13761
13762
13763SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13764 PyObject *resultobj = 0;
13765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13766 wxString *arg2 = 0 ;
13767 void *argp1 = 0 ;
13768 int res1 = 0 ;
13769 bool temp2 = false ;
13770 PyObject * obj0 = 0 ;
13771 PyObject * obj1 = 0 ;
13772 char * kwnames[] = {
13773 (char *) "self",(char *) "text", NULL
13774 };
13775
13776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13778 if (!SWIG_IsOK(res1)) {
13779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13780 }
13781 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13782 {
13783 arg2 = wxString_in_helper(obj1);
13784 if (arg2 == NULL) SWIG_fail;
13785 temp2 = true;
13786 }
13787 {
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 resultobj = SWIG_Py_Void();
13794 {
13795 if (temp2)
13796 delete arg2;
13797 }
13798 return resultobj;
13799fail:
13800 {
13801 if (temp2)
13802 delete arg2;
13803 }
13804 return NULL;
13805}
13806
13807
13808SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13809 PyObject *resultobj = 0;
13810 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13811 long arg2 ;
13812 long arg3 ;
13813 wxString result;
13814 void *argp1 = 0 ;
13815 int res1 = 0 ;
13816 long val2 ;
13817 int ecode2 = 0 ;
13818 long val3 ;
13819 int ecode3 = 0 ;
13820 PyObject * obj0 = 0 ;
13821 PyObject * obj1 = 0 ;
13822 PyObject * obj2 = 0 ;
13823 char * kwnames[] = {
2131d850 13824 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13825 };
13826
13827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13829 if (!SWIG_IsOK(res1)) {
13830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13831 }
13832 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13833 ecode2 = SWIG_AsVal_long(obj1, &val2);
13834 if (!SWIG_IsOK(ecode2)) {
13835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13836 }
13837 arg2 = static_cast< long >(val2);
13838 ecode3 = SWIG_AsVal_long(obj2, &val3);
13839 if (!SWIG_IsOK(ecode3)) {
13840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13841 }
13842 arg3 = static_cast< long >(val3);
13843 {
13844 PyThreadState* __tstate = wxPyBeginAllowThreads();
13845 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13846 wxPyEndAllowThreads(__tstate);
13847 if (PyErr_Occurred()) SWIG_fail;
13848 }
13849 {
13850#if wxUSE_UNICODE
13851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13852#else
13853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13854#endif
13855 }
13856 return resultobj;
13857fail:
13858 return NULL;
d14a1e28
RD
13859}
13860
13861
0085ce49
RD
13862SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13863 PyObject *resultobj = 0;
13864 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13865 SwigValueWrapper<wxVisualAttributes > result;
13866 int val1 ;
13867 int ecode1 = 0 ;
13868 PyObject * obj0 = 0 ;
13869 char * kwnames[] = {
13870 (char *) "variant", NULL
13871 };
13872
13873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13874 if (obj0) {
13875 ecode1 = SWIG_AsVal_int(obj0, &val1);
13876 if (!SWIG_IsOK(ecode1)) {
13877 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13878 }
13879 arg1 = static_cast< wxWindowVariant >(val1);
13880 }
13881 {
13882 if (!wxPyCheckForApp()) SWIG_fail;
13883 PyThreadState* __tstate = wxPyBeginAllowThreads();
13884 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13889 return resultobj;
13890fail:
13891 return NULL;
13892}
13893
13894
13895SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13896 PyObject *obj;
13897 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13898 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13899 return SWIG_Py_Void();
13900}
13901
13902SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13903 return SWIG_Python_InitShadowInstance(args);
13904}
13905
13906SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13907 PyObject *resultobj = 0;
13908 int arg1 ;
13909 wxMouseEvent *arg2 = 0 ;
13910 long arg3 ;
13911 long arg4 ;
13912 wxTextUrlEvent *result = 0 ;
13913 int val1 ;
13914 int ecode1 = 0 ;
13915 void *argp2 = 0 ;
13916 int res2 = 0 ;
13917 long val3 ;
13918 int ecode3 = 0 ;
13919 long val4 ;
13920 int ecode4 = 0 ;
13921 PyObject * obj0 = 0 ;
13922 PyObject * obj1 = 0 ;
13923 PyObject * obj2 = 0 ;
13924 PyObject * obj3 = 0 ;
13925 char * kwnames[] = {
13926 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13927 };
13928
13929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13930 ecode1 = SWIG_AsVal_int(obj0, &val1);
13931 if (!SWIG_IsOK(ecode1)) {
13932 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13933 }
13934 arg1 = static_cast< int >(val1);
13935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13936 if (!SWIG_IsOK(res2)) {
13937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13938 }
13939 if (!argp2) {
13940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13941 }
13942 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13943 ecode3 = SWIG_AsVal_long(obj2, &val3);
13944 if (!SWIG_IsOK(ecode3)) {
13945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13946 }
13947 arg3 = static_cast< long >(val3);
13948 ecode4 = SWIG_AsVal_long(obj3, &val4);
13949 if (!SWIG_IsOK(ecode4)) {
13950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13951 }
13952 arg4 = static_cast< long >(val4);
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13960 return resultobj;
13961fail:
13962 return NULL;
d14a1e28
RD
13963}
13964
13965
0085ce49
RD
13966SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13967 PyObject *resultobj = 0;
13968 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13969 wxMouseEvent *result = 0 ;
13970 void *argp1 = 0 ;
13971 int res1 = 0 ;
13972 PyObject *swig_obj[1] ;
13973
13974 if (!args) SWIG_fail;
13975 swig_obj[0] = args;
13976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13977 if (!SWIG_IsOK(res1)) {
13978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13979 }
13980 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13981 {
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 13983 {
0085ce49
RD
13984 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13985 result = (wxMouseEvent *) &_result_ref;
4f89f6a3 13986 }
0085ce49
RD
13987 wxPyEndAllowThreads(__tstate);
13988 if (PyErr_Occurred()) SWIG_fail;
13989 }
13990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13991 return resultobj;
13992fail:
13993 return NULL;
d14a1e28
RD
13994}
13995
13996
0085ce49
RD
13997SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13998 PyObject *resultobj = 0;
13999 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14000 long result;
14001 void *argp1 = 0 ;
14002 int res1 = 0 ;
14003 PyObject *swig_obj[1] ;
14004
14005 if (!args) SWIG_fail;
14006 swig_obj[0] = args;
14007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14008 if (!SWIG_IsOK(res1)) {
14009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14010 }
14011 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_From_long(static_cast< long >(result));
14019 return resultobj;
14020fail:
14021 return NULL;
d14a1e28
RD
14022}
14023
14024
0085ce49
RD
14025SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14026 PyObject *resultobj = 0;
14027 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14028 long result;
14029 void *argp1 = 0 ;
14030 int res1 = 0 ;
14031 PyObject *swig_obj[1] ;
14032
14033 if (!args) SWIG_fail;
14034 swig_obj[0] = args;
14035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14036 if (!SWIG_IsOK(res1)) {
14037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14038 }
14039 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14043 wxPyEndAllowThreads(__tstate);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 resultobj = SWIG_From_long(static_cast< long >(result));
14047 return resultobj;
14048fail:
14049 return NULL;
d14a1e28
RD
14050}
14051
14052
0085ce49
RD
14053SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14054 PyObject *obj;
14055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14056 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14057 return SWIG_Py_Void();
d14a1e28
RD
14058}
14059
0085ce49
RD
14060SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14061 return SWIG_Python_InitShadowInstance(args);
14062}
d14a1e28 14063
0085ce49
RD
14064SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14065 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14066 return 1;
14067}
14068
14069
14070SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14071 PyObject *pyobj = 0;
14072
14073 {
14074#if wxUSE_UNICODE
14075 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14076#else
14077 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14078#endif
14079 }
14080 return pyobj;
14081}
14082
14083
14084SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14085 PyObject *resultobj = 0;
14086 wxWindow *arg1 = (wxWindow *) 0 ;
14087 int arg2 = (int) -1 ;
14088 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14089 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14090 wxSize const &arg4_defvalue = wxDefaultSize ;
14091 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14092 long arg5 = (long) wxSB_HORIZONTAL ;
14093 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14094 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14095 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14096 wxString *arg7 = (wxString *) &arg7_defvalue ;
14097 wxScrollBar *result = 0 ;
14098 void *argp1 = 0 ;
14099 int res1 = 0 ;
14100 int val2 ;
14101 int ecode2 = 0 ;
14102 wxPoint temp3 ;
14103 wxSize temp4 ;
14104 long val5 ;
14105 int ecode5 = 0 ;
14106 void *argp6 = 0 ;
14107 int res6 = 0 ;
14108 bool temp7 = false ;
14109 PyObject * obj0 = 0 ;
14110 PyObject * obj1 = 0 ;
14111 PyObject * obj2 = 0 ;
14112 PyObject * obj3 = 0 ;
14113 PyObject * obj4 = 0 ;
14114 PyObject * obj5 = 0 ;
14115 PyObject * obj6 = 0 ;
14116 char * kwnames[] = {
14117 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14118 };
14119
14120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14122 if (!SWIG_IsOK(res1)) {
14123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14124 }
14125 arg1 = reinterpret_cast< wxWindow * >(argp1);
14126 if (obj1) {
14127 ecode2 = SWIG_AsVal_int(obj1, &val2);
14128 if (!SWIG_IsOK(ecode2)) {
14129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14130 }
14131 arg2 = static_cast< int >(val2);
14132 }
14133 if (obj2) {
d14a1e28 14134 {
0085ce49
RD
14135 arg3 = &temp3;
14136 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14137 }
0085ce49
RD
14138 }
14139 if (obj3) {
4f89f6a3 14140 {
0085ce49
RD
14141 arg4 = &temp4;
14142 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 14143 }
0085ce49
RD
14144 }
14145 if (obj4) {
14146 ecode5 = SWIG_AsVal_long(obj4, &val5);
14147 if (!SWIG_IsOK(ecode5)) {
14148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14149 }
14150 arg5 = static_cast< long >(val5);
14151 }
14152 if (obj5) {
14153 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14154 if (!SWIG_IsOK(res6)) {
14155 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14156 }
14157 if (!argp6) {
14158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14159 }
14160 arg6 = reinterpret_cast< wxValidator * >(argp6);
14161 }
14162 if (obj6) {
14163 {
14164 arg7 = wxString_in_helper(obj6);
14165 if (arg7 == NULL) SWIG_fail;
14166 temp7 = true;
14167 }
14168 }
14169 {
14170 if (!wxPyCheckForApp()) SWIG_fail;
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14177 {
14178 if (temp7)
14179 delete arg7;
14180 }
14181 return resultobj;
14182fail:
14183 {
14184 if (temp7)
14185 delete arg7;
14186 }
14187 return NULL;
d14a1e28
RD
14188}
14189
14190
0085ce49
RD
14191SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14192 PyObject *resultobj = 0;
14193 wxScrollBar *result = 0 ;
14194
14195 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14196 {
14197 if (!wxPyCheckForApp()) SWIG_fail;
14198 PyThreadState* __tstate = wxPyBeginAllowThreads();
14199 result = (wxScrollBar *)new wxScrollBar();
14200 wxPyEndAllowThreads(__tstate);
14201 if (PyErr_Occurred()) SWIG_fail;
14202 }
14203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14204 return resultobj;
14205fail:
14206 return NULL;
14207}
14208
14209
14210SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14211 PyObject *resultobj = 0;
14212 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14213 wxWindow *arg2 = (wxWindow *) 0 ;
14214 int arg3 = (int) -1 ;
14215 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14216 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14217 wxSize const &arg5_defvalue = wxDefaultSize ;
14218 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14219 long arg6 = (long) wxSB_HORIZONTAL ;
14220 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14221 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14222 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14223 wxString *arg8 = (wxString *) &arg8_defvalue ;
14224 bool result;
14225 void *argp1 = 0 ;
14226 int res1 = 0 ;
14227 void *argp2 = 0 ;
14228 int res2 = 0 ;
14229 int val3 ;
14230 int ecode3 = 0 ;
14231 wxPoint temp4 ;
14232 wxSize temp5 ;
14233 long val6 ;
14234 int ecode6 = 0 ;
14235 void *argp7 = 0 ;
14236 int res7 = 0 ;
14237 bool temp8 = false ;
14238 PyObject * obj0 = 0 ;
14239 PyObject * obj1 = 0 ;
14240 PyObject * obj2 = 0 ;
14241 PyObject * obj3 = 0 ;
14242 PyObject * obj4 = 0 ;
14243 PyObject * obj5 = 0 ;
14244 PyObject * obj6 = 0 ;
14245 PyObject * obj7 = 0 ;
14246 char * kwnames[] = {
14247 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14248 };
14249
14250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14252 if (!SWIG_IsOK(res1)) {
14253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14254 }
14255 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14257 if (!SWIG_IsOK(res2)) {
14258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14259 }
14260 arg2 = reinterpret_cast< wxWindow * >(argp2);
14261 if (obj2) {
14262 ecode3 = SWIG_AsVal_int(obj2, &val3);
14263 if (!SWIG_IsOK(ecode3)) {
14264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14265 }
14266 arg3 = static_cast< int >(val3);
14267 }
14268 if (obj3) {
093d3ff1 14269 {
0085ce49
RD
14270 arg4 = &temp4;
14271 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 14272 }
0085ce49
RD
14273 }
14274 if (obj4) {
d14a1e28 14275 {
0085ce49
RD
14276 arg5 = &temp5;
14277 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14278 }
14279 }
14280 if (obj5) {
14281 ecode6 = SWIG_AsVal_long(obj5, &val6);
14282 if (!SWIG_IsOK(ecode6)) {
14283 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14284 }
14285 arg6 = static_cast< long >(val6);
14286 }
14287 if (obj6) {
14288 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14289 if (!SWIG_IsOK(res7)) {
14290 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 14291 }
0085ce49
RD
14292 if (!argp7) {
14293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14294 }
14295 arg7 = reinterpret_cast< wxValidator * >(argp7);
14296 }
14297 if (obj7) {
4f89f6a3 14298 {
0085ce49
RD
14299 arg8 = wxString_in_helper(obj7);
14300 if (arg8 == NULL) SWIG_fail;
14301 temp8 = true;
4f89f6a3 14302 }
0085ce49
RD
14303 }
14304 {
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14307 wxPyEndAllowThreads(__tstate);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 {
14311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14312 }
14313 {
14314 if (temp8)
14315 delete arg8;
14316 }
14317 return resultobj;
14318fail:
14319 {
14320 if (temp8)
14321 delete arg8;
14322 }
14323 return NULL;
d14a1e28
RD
14324}
14325
14326
0085ce49
RD
14327SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14328 PyObject *resultobj = 0;
14329 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14330 int result;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 PyObject *swig_obj[1] ;
14334
14335 if (!args) SWIG_fail;
14336 swig_obj[0] = args;
14337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14338 if (!SWIG_IsOK(res1)) {
14339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14340 }
14341 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14342 {
14343 PyThreadState* __tstate = wxPyBeginAllowThreads();
14344 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14345 wxPyEndAllowThreads(__tstate);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 }
14348 resultobj = SWIG_From_int(static_cast< int >(result));
14349 return resultobj;
14350fail:
14351 return NULL;
d14a1e28
RD
14352}
14353
14354
0085ce49
RD
14355SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14356 PyObject *resultobj = 0;
14357 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14358 int result;
14359 void *argp1 = 0 ;
14360 int res1 = 0 ;
14361 PyObject *swig_obj[1] ;
14362
14363 if (!args) SWIG_fail;
14364 swig_obj[0] = args;
14365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14366 if (!SWIG_IsOK(res1)) {
14367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14368 }
14369 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14370 {
14371 PyThreadState* __tstate = wxPyBeginAllowThreads();
14372 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 resultobj = SWIG_From_int(static_cast< int >(result));
14377 return resultobj;
14378fail:
14379 return NULL;
d14a1e28
RD
14380}
14381
14382
0085ce49
RD
14383SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14384 PyObject *resultobj = 0;
14385 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14386 int result;
14387 void *argp1 = 0 ;
14388 int res1 = 0 ;
14389 PyObject *swig_obj[1] ;
14390
14391 if (!args) SWIG_fail;
14392 swig_obj[0] = args;
14393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14394 if (!SWIG_IsOK(res1)) {
14395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14396 }
14397 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 resultobj = SWIG_From_int(static_cast< int >(result));
14405 return resultobj;
14406fail:
14407 return NULL;
d14a1e28
RD
14408}
14409
14410
0085ce49
RD
14411SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14412 PyObject *resultobj = 0;
14413 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14414 int result;
14415 void *argp1 = 0 ;
14416 int res1 = 0 ;
14417 PyObject *swig_obj[1] ;
14418
14419 if (!args) SWIG_fail;
14420 swig_obj[0] = args;
14421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14422 if (!SWIG_IsOK(res1)) {
14423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14424 }
14425 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14426 {
14427 PyThreadState* __tstate = wxPyBeginAllowThreads();
14428 result = (int)((wxScrollBar const *)arg1)->GetRange();
14429 wxPyEndAllowThreads(__tstate);
14430 if (PyErr_Occurred()) SWIG_fail;
14431 }
14432 resultobj = SWIG_From_int(static_cast< int >(result));
14433 return resultobj;
14434fail:
14435 return NULL;
d14a1e28
RD
14436}
14437
14438
0085ce49
RD
14439SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14440 PyObject *resultobj = 0;
14441 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14442 bool result;
14443 void *argp1 = 0 ;
14444 int res1 = 0 ;
14445 PyObject *swig_obj[1] ;
14446
14447 if (!args) SWIG_fail;
14448 swig_obj[0] = args;
14449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14450 if (!SWIG_IsOK(res1)) {
14451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14452 }
14453 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14454 {
14455 PyThreadState* __tstate = wxPyBeginAllowThreads();
14456 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14457 wxPyEndAllowThreads(__tstate);
14458 if (PyErr_Occurred()) SWIG_fail;
14459 }
14460 {
14461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14462 }
14463 return resultobj;
14464fail:
14465 return NULL;
14466}
14467
14468
14469SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj = 0;
14471 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14472 int arg2 ;
14473 void *argp1 = 0 ;
14474 int res1 = 0 ;
14475 int val2 ;
14476 int ecode2 = 0 ;
14477 PyObject * obj0 = 0 ;
14478 PyObject * obj1 = 0 ;
14479 char * kwnames[] = {
14480 (char *) "self",(char *) "viewStart", NULL
14481 };
14482
14483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14485 if (!SWIG_IsOK(res1)) {
14486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14487 }
14488 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14489 ecode2 = SWIG_AsVal_int(obj1, &val2);
14490 if (!SWIG_IsOK(ecode2)) {
14491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14492 }
14493 arg2 = static_cast< int >(val2);
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 (arg1)->SetThumbPosition(arg2);
14497 wxPyEndAllowThreads(__tstate);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 }
14500 resultobj = SWIG_Py_Void();
14501 return resultobj;
14502fail:
14503 return NULL;
14504}
14505
14506
14507SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14508 PyObject *resultobj = 0;
14509 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14510 SwigValueWrapper<wxVisualAttributes > result;
14511 int val1 ;
14512 int ecode1 = 0 ;
14513 PyObject * obj0 = 0 ;
14514 char * kwnames[] = {
14515 (char *) "variant", NULL
14516 };
14517
14518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14519 if (obj0) {
14520 ecode1 = SWIG_AsVal_int(obj0, &val1);
14521 if (!SWIG_IsOK(ecode1)) {
14522 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14523 }
14524 arg1 = static_cast< wxWindowVariant >(val1);
14525 }
14526 {
14527 if (!wxPyCheckForApp()) SWIG_fail;
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14534 return resultobj;
14535fail:
14536 return NULL;
d14a1e28
RD
14537}
14538
14539
0085ce49
RD
14540SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14541 PyObject *obj;
14542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14543 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14544 return SWIG_Py_Void();
d14a1e28
RD
14545}
14546
0085ce49
RD
14547SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14548 return SWIG_Python_InitShadowInstance(args);
14549}
d14a1e28 14550
0085ce49
RD
14551SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14552 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14553 return 1;
d14a1e28
RD
14554}
14555
14556
0085ce49
RD
14557SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14558 PyObject *pyobj = 0;
14559
14560 {
14561#if wxUSE_UNICODE
14562 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14563#else
14564 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14565#endif
14566 }
14567 return pyobj;
d14a1e28
RD
14568}
14569
14570
0085ce49
RD
14571SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14572 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14573 return 1;
d14a1e28
RD
14574}
14575
14576
0085ce49
RD
14577SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14578 PyObject *pyobj = 0;
14579
14580 {
14581#if wxUSE_UNICODE
14582 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14583#else
14584 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14585#endif
14586 }
14587 return pyobj;
14588}
14589
14590
14591SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14592 PyObject *resultobj = 0;
14593 wxWindow *arg1 = (wxWindow *) 0 ;
14594 int arg2 = (int) -1 ;
14595 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14596 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14597 wxSize const &arg4_defvalue = wxDefaultSize ;
14598 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14599 long arg5 = (long) wxSP_HORIZONTAL ;
14600 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14601 wxString *arg6 = (wxString *) &arg6_defvalue ;
14602 wxSpinButton *result = 0 ;
14603 void *argp1 = 0 ;
14604 int res1 = 0 ;
14605 int val2 ;
14606 int ecode2 = 0 ;
14607 wxPoint temp3 ;
14608 wxSize temp4 ;
14609 long val5 ;
14610 int ecode5 = 0 ;
14611 bool temp6 = false ;
14612 PyObject * obj0 = 0 ;
14613 PyObject * obj1 = 0 ;
14614 PyObject * obj2 = 0 ;
14615 PyObject * obj3 = 0 ;
14616 PyObject * obj4 = 0 ;
14617 PyObject * obj5 = 0 ;
14618 char * kwnames[] = {
14619 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14620 };
14621
14622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14624 if (!SWIG_IsOK(res1)) {
14625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14626 }
14627 arg1 = reinterpret_cast< wxWindow * >(argp1);
14628 if (obj1) {
14629 ecode2 = SWIG_AsVal_int(obj1, &val2);
14630 if (!SWIG_IsOK(ecode2)) {
14631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14632 }
14633 arg2 = static_cast< int >(val2);
14634 }
14635 if (obj2) {
093d3ff1 14636 {
0085ce49
RD
14637 arg3 = &temp3;
14638 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14639 }
0085ce49
RD
14640 }
14641 if (obj3) {
d14a1e28 14642 {
0085ce49
RD
14643 arg4 = &temp4;
14644 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14645 }
0085ce49
RD
14646 }
14647 if (obj4) {
14648 ecode5 = SWIG_AsVal_long(obj4, &val5);
14649 if (!SWIG_IsOK(ecode5)) {
14650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14651 }
14652 arg5 = static_cast< long >(val5);
14653 }
14654 if (obj5) {
d14a1e28 14655 {
0085ce49
RD
14656 arg6 = wxString_in_helper(obj5);
14657 if (arg6 == NULL) SWIG_fail;
14658 temp6 = true;
d14a1e28 14659 }
0085ce49
RD
14660 }
14661 {
14662 if (!wxPyCheckForApp()) SWIG_fail;
14663 PyThreadState* __tstate = wxPyBeginAllowThreads();
14664 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14669 {
14670 if (temp6)
14671 delete arg6;
14672 }
14673 return resultobj;
14674fail:
14675 {
14676 if (temp6)
14677 delete arg6;
14678 }
14679 return NULL;
d14a1e28
RD
14680}
14681
14682
0085ce49
RD
14683SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14684 PyObject *resultobj = 0;
14685 wxSpinButton *result = 0 ;
14686
14687 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14688 {
14689 if (!wxPyCheckForApp()) SWIG_fail;
14690 PyThreadState* __tstate = wxPyBeginAllowThreads();
14691 result = (wxSpinButton *)new wxSpinButton();
14692 wxPyEndAllowThreads(__tstate);
14693 if (PyErr_Occurred()) SWIG_fail;
14694 }
14695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14696 return resultobj;
14697fail:
14698 return NULL;
14699}
14700
14701
14702SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14703 PyObject *resultobj = 0;
14704 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14705 wxWindow *arg2 = (wxWindow *) 0 ;
14706 int arg3 = (int) -1 ;
14707 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14708 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14709 wxSize const &arg5_defvalue = wxDefaultSize ;
14710 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14711 long arg6 = (long) wxSP_HORIZONTAL ;
14712 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14713 wxString *arg7 = (wxString *) &arg7_defvalue ;
14714 bool result;
14715 void *argp1 = 0 ;
14716 int res1 = 0 ;
14717 void *argp2 = 0 ;
14718 int res2 = 0 ;
14719 int val3 ;
14720 int ecode3 = 0 ;
14721 wxPoint temp4 ;
14722 wxSize temp5 ;
14723 long val6 ;
14724 int ecode6 = 0 ;
14725 bool temp7 = false ;
14726 PyObject * obj0 = 0 ;
14727 PyObject * obj1 = 0 ;
14728 PyObject * obj2 = 0 ;
14729 PyObject * obj3 = 0 ;
14730 PyObject * obj4 = 0 ;
14731 PyObject * obj5 = 0 ;
14732 PyObject * obj6 = 0 ;
14733 char * kwnames[] = {
14734 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14735 };
14736
14737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14739 if (!SWIG_IsOK(res1)) {
14740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14741 }
14742 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14743 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14744 if (!SWIG_IsOK(res2)) {
14745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14746 }
14747 arg2 = reinterpret_cast< wxWindow * >(argp2);
14748 if (obj2) {
14749 ecode3 = SWIG_AsVal_int(obj2, &val3);
14750 if (!SWIG_IsOK(ecode3)) {
14751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14752 }
14753 arg3 = static_cast< int >(val3);
14754 }
14755 if (obj3) {
d14a1e28 14756 {
0085ce49
RD
14757 arg4 = &temp4;
14758 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14759 }
0085ce49
RD
14760 }
14761 if (obj4) {
d14a1e28 14762 {
0085ce49
RD
14763 arg5 = &temp5;
14764 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 14765 }
0085ce49
RD
14766 }
14767 if (obj5) {
14768 ecode6 = SWIG_AsVal_long(obj5, &val6);
14769 if (!SWIG_IsOK(ecode6)) {
14770 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14771 }
14772 arg6 = static_cast< long >(val6);
14773 }
14774 if (obj6) {
d14a1e28 14775 {
0085ce49
RD
14776 arg7 = wxString_in_helper(obj6);
14777 if (arg7 == NULL) SWIG_fail;
14778 temp7 = true;
d14a1e28 14779 }
0085ce49
RD
14780 }
14781 {
14782 PyThreadState* __tstate = wxPyBeginAllowThreads();
14783 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14784 wxPyEndAllowThreads(__tstate);
14785 if (PyErr_Occurred()) SWIG_fail;
14786 }
14787 {
14788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14789 }
14790 {
14791 if (temp7)
14792 delete arg7;
14793 }
14794 return resultobj;
14795fail:
14796 {
14797 if (temp7)
14798 delete arg7;
14799 }
14800 return NULL;
d14a1e28
RD
14801}
14802
14803
0085ce49
RD
14804SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14805 PyObject *resultobj = 0;
14806 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14807 int result;
14808 void *argp1 = 0 ;
14809 int res1 = 0 ;
14810 PyObject *swig_obj[1] ;
14811
14812 if (!args) SWIG_fail;
14813 swig_obj[0] = args;
14814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14815 if (!SWIG_IsOK(res1)) {
14816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14817 }
14818 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14819 {
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (int)((wxSpinButton const *)arg1)->GetValue();
14822 wxPyEndAllowThreads(__tstate);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
14825 resultobj = SWIG_From_int(static_cast< int >(result));
14826 return resultobj;
14827fail:
14828 return NULL;
d14a1e28
RD
14829}
14830
14831
0085ce49
RD
14832SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14833 PyObject *resultobj = 0;
14834 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14835 int result;
14836 void *argp1 = 0 ;
14837 int res1 = 0 ;
14838 PyObject *swig_obj[1] ;
14839
14840 if (!args) SWIG_fail;
14841 swig_obj[0] = args;
14842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14843 if (!SWIG_IsOK(res1)) {
14844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14845 }
14846 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14847 {
14848 PyThreadState* __tstate = wxPyBeginAllowThreads();
14849 result = (int)((wxSpinButton const *)arg1)->GetMin();
14850 wxPyEndAllowThreads(__tstate);
14851 if (PyErr_Occurred()) SWIG_fail;
14852 }
14853 resultobj = SWIG_From_int(static_cast< int >(result));
14854 return resultobj;
14855fail:
14856 return NULL;
d14a1e28
RD
14857}
14858
14859
0085ce49
RD
14860SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14861 PyObject *resultobj = 0;
14862 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14863 int result;
14864 void *argp1 = 0 ;
14865 int res1 = 0 ;
14866 PyObject *swig_obj[1] ;
14867
14868 if (!args) SWIG_fail;
14869 swig_obj[0] = args;
14870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14871 if (!SWIG_IsOK(res1)) {
14872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14873 }
14874 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 result = (int)((wxSpinButton const *)arg1)->GetMax();
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 resultobj = SWIG_From_int(static_cast< int >(result));
14882 return resultobj;
14883fail:
14884 return NULL;
14885}
14886
14887
14888SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj = 0;
14890 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14891 int arg2 ;
14892 void *argp1 = 0 ;
14893 int res1 = 0 ;
14894 int val2 ;
14895 int ecode2 = 0 ;
14896 PyObject * obj0 = 0 ;
14897 PyObject * obj1 = 0 ;
14898 char * kwnames[] = {
14899 (char *) "self",(char *) "val", NULL
14900 };
14901
14902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14904 if (!SWIG_IsOK(res1)) {
14905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14906 }
14907 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14908 ecode2 = SWIG_AsVal_int(obj1, &val2);
14909 if (!SWIG_IsOK(ecode2)) {
14910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14911 }
14912 arg2 = static_cast< int >(val2);
14913 {
14914 PyThreadState* __tstate = wxPyBeginAllowThreads();
14915 (arg1)->SetValue(arg2);
14916 wxPyEndAllowThreads(__tstate);
14917 if (PyErr_Occurred()) SWIG_fail;
14918 }
14919 resultobj = SWIG_Py_Void();
14920 return resultobj;
14921fail:
14922 return NULL;
14923}
14924
14925
14926SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14927 PyObject *resultobj = 0;
14928 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14929 int arg2 ;
14930 void *argp1 = 0 ;
14931 int res1 = 0 ;
14932 int val2 ;
14933 int ecode2 = 0 ;
14934 PyObject * obj0 = 0 ;
14935 PyObject * obj1 = 0 ;
14936 char * kwnames[] = {
14937 (char *) "self",(char *) "minVal", NULL
14938 };
14939
14940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14942 if (!SWIG_IsOK(res1)) {
14943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14944 }
14945 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14946 ecode2 = SWIG_AsVal_int(obj1, &val2);
14947 if (!SWIG_IsOK(ecode2)) {
14948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14949 }
14950 arg2 = static_cast< int >(val2);
14951 {
14952 PyThreadState* __tstate = wxPyBeginAllowThreads();
14953 (arg1)->SetMin(arg2);
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 resultobj = SWIG_Py_Void();
14958 return resultobj;
14959fail:
14960 return NULL;
14961}
14962
14963
14964SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14965 PyObject *resultobj = 0;
14966 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14967 int arg2 ;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 int val2 ;
14971 int ecode2 = 0 ;
14972 PyObject * obj0 = 0 ;
14973 PyObject * obj1 = 0 ;
14974 char * kwnames[] = {
14975 (char *) "self",(char *) "maxVal", NULL
14976 };
14977
14978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14980 if (!SWIG_IsOK(res1)) {
14981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14982 }
14983 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14984 ecode2 = SWIG_AsVal_int(obj1, &val2);
14985 if (!SWIG_IsOK(ecode2)) {
14986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14987 }
14988 arg2 = static_cast< int >(val2);
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 (arg1)->SetMax(arg2);
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 resultobj = SWIG_Py_Void();
14996 return resultobj;
14997fail:
14998 return NULL;
14999}
15000
15001
15002SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj = 0;
15004 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15005 int arg2 ;
15006 int arg3 ;
15007 void *argp1 = 0 ;
15008 int res1 = 0 ;
15009 int val2 ;
15010 int ecode2 = 0 ;
15011 int val3 ;
15012 int ecode3 = 0 ;
15013 PyObject * obj0 = 0 ;
15014 PyObject * obj1 = 0 ;
15015 PyObject * obj2 = 0 ;
15016 char * kwnames[] = {
15017 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15018 };
15019
15020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15022 if (!SWIG_IsOK(res1)) {
15023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15024 }
15025 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15026 ecode2 = SWIG_AsVal_int(obj1, &val2);
15027 if (!SWIG_IsOK(ecode2)) {
15028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15029 }
15030 arg2 = static_cast< int >(val2);
15031 ecode3 = SWIG_AsVal_int(obj2, &val3);
15032 if (!SWIG_IsOK(ecode3)) {
15033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15034 }
15035 arg3 = static_cast< int >(val3);
15036 {
15037 PyThreadState* __tstate = wxPyBeginAllowThreads();
15038 (arg1)->SetRange(arg2,arg3);
15039 wxPyEndAllowThreads(__tstate);
15040 if (PyErr_Occurred()) SWIG_fail;
15041 }
15042 resultobj = SWIG_Py_Void();
15043 return resultobj;
15044fail:
15045 return NULL;
d14a1e28
RD
15046}
15047
15048
0085ce49
RD
15049SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15050 PyObject *resultobj = 0;
15051 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15052 bool result;
15053 void *argp1 = 0 ;
15054 int res1 = 0 ;
15055 PyObject *swig_obj[1] ;
15056
15057 if (!args) SWIG_fail;
15058 swig_obj[0] = args;
15059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15060 if (!SWIG_IsOK(res1)) {
15061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15062 }
15063 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15064 {
15065 PyThreadState* __tstate = wxPyBeginAllowThreads();
15066 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15067 wxPyEndAllowThreads(__tstate);
15068 if (PyErr_Occurred()) SWIG_fail;
15069 }
15070 {
15071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15072 }
15073 return resultobj;
15074fail:
15075 return NULL;
d14a1e28
RD
15076}
15077
15078
0085ce49
RD
15079SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15080 PyObject *resultobj = 0;
15081 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15082 SwigValueWrapper<wxVisualAttributes > result;
15083 int val1 ;
15084 int ecode1 = 0 ;
15085 PyObject * obj0 = 0 ;
15086 char * kwnames[] = {
15087 (char *) "variant", NULL
15088 };
15089
15090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15091 if (obj0) {
15092 ecode1 = SWIG_AsVal_int(obj0, &val1);
15093 if (!SWIG_IsOK(ecode1)) {
15094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15095 }
15096 arg1 = static_cast< wxWindowVariant >(val1);
15097 }
15098 {
15099 if (!wxPyCheckForApp()) SWIG_fail;
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15102 wxPyEndAllowThreads(__tstate);
15103 if (PyErr_Occurred()) SWIG_fail;
15104 }
15105 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15106 return resultobj;
15107fail:
15108 return NULL;
15109}
15110
15111
15112SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15113 PyObject *obj;
15114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15115 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15116 return SWIG_Py_Void();
15117}
15118
15119SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15120 return SWIG_Python_InitShadowInstance(args);
15121}
15122
15123SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15124 PyObject *resultobj = 0;
15125 wxWindow *arg1 = (wxWindow *) 0 ;
15126 int arg2 = (int) -1 ;
15127 wxString const &arg3_defvalue = wxPyEmptyString ;
15128 wxString *arg3 = (wxString *) &arg3_defvalue ;
15129 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15130 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15131 wxSize const &arg5_defvalue = wxDefaultSize ;
15132 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15133 long arg6 = (long) wxSP_ARROW_KEYS ;
15134 int arg7 = (int) 0 ;
15135 int arg8 = (int) 100 ;
15136 int arg9 = (int) 0 ;
15137 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15138 wxString *arg10 = (wxString *) &arg10_defvalue ;
15139 wxSpinCtrl *result = 0 ;
15140 void *argp1 = 0 ;
15141 int res1 = 0 ;
15142 int val2 ;
15143 int ecode2 = 0 ;
15144 bool temp3 = false ;
15145 wxPoint temp4 ;
15146 wxSize temp5 ;
15147 long val6 ;
15148 int ecode6 = 0 ;
15149 int val7 ;
15150 int ecode7 = 0 ;
15151 int val8 ;
15152 int ecode8 = 0 ;
15153 int val9 ;
15154 int ecode9 = 0 ;
15155 bool temp10 = false ;
15156 PyObject * obj0 = 0 ;
15157 PyObject * obj1 = 0 ;
15158 PyObject * obj2 = 0 ;
15159 PyObject * obj3 = 0 ;
15160 PyObject * obj4 = 0 ;
15161 PyObject * obj5 = 0 ;
15162 PyObject * obj6 = 0 ;
15163 PyObject * obj7 = 0 ;
15164 PyObject * obj8 = 0 ;
15165 PyObject * obj9 = 0 ;
15166 char * kwnames[] = {
15167 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15168 };
15169
15170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15172 if (!SWIG_IsOK(res1)) {
15173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15174 }
15175 arg1 = reinterpret_cast< wxWindow * >(argp1);
15176 if (obj1) {
15177 ecode2 = SWIG_AsVal_int(obj1, &val2);
15178 if (!SWIG_IsOK(ecode2)) {
15179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15180 }
15181 arg2 = static_cast< int >(val2);
15182 }
15183 if (obj2) {
093d3ff1 15184 {
0085ce49
RD
15185 arg3 = wxString_in_helper(obj2);
15186 if (arg3 == NULL) SWIG_fail;
15187 temp3 = true;
093d3ff1 15188 }
0085ce49
RD
15189 }
15190 if (obj3) {
093d3ff1 15191 {
0085ce49
RD
15192 arg4 = &temp4;
15193 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15194 }
0085ce49
RD
15195 }
15196 if (obj4) {
d14a1e28 15197 {
0085ce49
RD
15198 arg5 = &temp5;
15199 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15200 }
0085ce49
RD
15201 }
15202 if (obj5) {
15203 ecode6 = SWIG_AsVal_long(obj5, &val6);
15204 if (!SWIG_IsOK(ecode6)) {
15205 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15206 }
15207 arg6 = static_cast< long >(val6);
15208 }
15209 if (obj6) {
15210 ecode7 = SWIG_AsVal_int(obj6, &val7);
15211 if (!SWIG_IsOK(ecode7)) {
15212 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15213 }
15214 arg7 = static_cast< int >(val7);
15215 }
15216 if (obj7) {
15217 ecode8 = SWIG_AsVal_int(obj7, &val8);
15218 if (!SWIG_IsOK(ecode8)) {
15219 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15220 }
15221 arg8 = static_cast< int >(val8);
15222 }
15223 if (obj8) {
15224 ecode9 = SWIG_AsVal_int(obj8, &val9);
15225 if (!SWIG_IsOK(ecode9)) {
15226 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15227 }
15228 arg9 = static_cast< int >(val9);
15229 }
15230 if (obj9) {
d14a1e28 15231 {
0085ce49
RD
15232 arg10 = wxString_in_helper(obj9);
15233 if (arg10 == NULL) SWIG_fail;
15234 temp10 = true;
d14a1e28 15235 }
0085ce49
RD
15236 }
15237 {
15238 if (!wxPyCheckForApp()) SWIG_fail;
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15245 {
15246 if (temp3)
15247 delete arg3;
15248 }
15249 {
15250 if (temp10)
15251 delete arg10;
15252 }
15253 return resultobj;
15254fail:
15255 {
15256 if (temp3)
15257 delete arg3;
15258 }
15259 {
15260 if (temp10)
15261 delete arg10;
15262 }
15263 return NULL;
d14a1e28
RD
15264}
15265
15266
0085ce49
RD
15267SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15268 PyObject *resultobj = 0;
15269 wxSpinCtrl *result = 0 ;
15270
15271 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15272 {
15273 if (!wxPyCheckForApp()) SWIG_fail;
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
15275 result = (wxSpinCtrl *)new wxSpinCtrl();
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15280 return resultobj;
15281fail:
15282 return NULL;
15283}
15284
15285
15286SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15287 PyObject *resultobj = 0;
15288 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15289 wxWindow *arg2 = (wxWindow *) 0 ;
15290 int arg3 = (int) -1 ;
15291 wxString const &arg4_defvalue = wxPyEmptyString ;
15292 wxString *arg4 = (wxString *) &arg4_defvalue ;
15293 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15294 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15295 wxSize const &arg6_defvalue = wxDefaultSize ;
15296 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15297 long arg7 = (long) wxSP_ARROW_KEYS ;
15298 int arg8 = (int) 0 ;
15299 int arg9 = (int) 100 ;
15300 int arg10 = (int) 0 ;
15301 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15302 wxString *arg11 = (wxString *) &arg11_defvalue ;
15303 bool result;
15304 void *argp1 = 0 ;
15305 int res1 = 0 ;
15306 void *argp2 = 0 ;
15307 int res2 = 0 ;
15308 int val3 ;
15309 int ecode3 = 0 ;
15310 bool temp4 = false ;
15311 wxPoint temp5 ;
15312 wxSize temp6 ;
15313 long val7 ;
15314 int ecode7 = 0 ;
15315 int val8 ;
15316 int ecode8 = 0 ;
15317 int val9 ;
15318 int ecode9 = 0 ;
15319 int val10 ;
15320 int ecode10 = 0 ;
15321 bool temp11 = false ;
15322 PyObject * obj0 = 0 ;
15323 PyObject * obj1 = 0 ;
15324 PyObject * obj2 = 0 ;
15325 PyObject * obj3 = 0 ;
15326 PyObject * obj4 = 0 ;
15327 PyObject * obj5 = 0 ;
15328 PyObject * obj6 = 0 ;
15329 PyObject * obj7 = 0 ;
15330 PyObject * obj8 = 0 ;
15331 PyObject * obj9 = 0 ;
15332 PyObject * obj10 = 0 ;
15333 char * kwnames[] = {
15334 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15335 };
15336
15337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15339 if (!SWIG_IsOK(res1)) {
15340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15341 }
15342 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15344 if (!SWIG_IsOK(res2)) {
15345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15346 }
15347 arg2 = reinterpret_cast< wxWindow * >(argp2);
15348 if (obj2) {
15349 ecode3 = SWIG_AsVal_int(obj2, &val3);
15350 if (!SWIG_IsOK(ecode3)) {
15351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15352 }
15353 arg3 = static_cast< int >(val3);
15354 }
15355 if (obj3) {
093d3ff1 15356 {
0085ce49
RD
15357 arg4 = wxString_in_helper(obj3);
15358 if (arg4 == NULL) SWIG_fail;
15359 temp4 = true;
093d3ff1 15360 }
0085ce49
RD
15361 }
15362 if (obj4) {
d14a1e28 15363 {
0085ce49
RD
15364 arg5 = &temp5;
15365 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15366 }
0085ce49
RD
15367 }
15368 if (obj5) {
093d3ff1 15369 {
0085ce49
RD
15370 arg6 = &temp6;
15371 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 15372 }
0085ce49
RD
15373 }
15374 if (obj6) {
15375 ecode7 = SWIG_AsVal_long(obj6, &val7);
15376 if (!SWIG_IsOK(ecode7)) {
15377 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15378 }
15379 arg7 = static_cast< long >(val7);
15380 }
15381 if (obj7) {
15382 ecode8 = SWIG_AsVal_int(obj7, &val8);
15383 if (!SWIG_IsOK(ecode8)) {
15384 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15385 }
15386 arg8 = static_cast< int >(val8);
15387 }
15388 if (obj8) {
15389 ecode9 = SWIG_AsVal_int(obj8, &val9);
15390 if (!SWIG_IsOK(ecode9)) {
15391 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15392 }
15393 arg9 = static_cast< int >(val9);
15394 }
15395 if (obj9) {
15396 ecode10 = SWIG_AsVal_int(obj9, &val10);
15397 if (!SWIG_IsOK(ecode10)) {
15398 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15399 }
15400 arg10 = static_cast< int >(val10);
15401 }
15402 if (obj10) {
d14a1e28 15403 {
0085ce49
RD
15404 arg11 = wxString_in_helper(obj10);
15405 if (arg11 == NULL) SWIG_fail;
15406 temp11 = true;
d14a1e28 15407 }
0085ce49
RD
15408 }
15409 {
15410 PyThreadState* __tstate = wxPyBeginAllowThreads();
15411 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15412 wxPyEndAllowThreads(__tstate);
15413 if (PyErr_Occurred()) SWIG_fail;
15414 }
15415 {
15416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15417 }
15418 {
15419 if (temp4)
15420 delete arg4;
15421 }
15422 {
15423 if (temp11)
15424 delete arg11;
15425 }
15426 return resultobj;
15427fail:
15428 {
15429 if (temp4)
15430 delete arg4;
15431 }
15432 {
15433 if (temp11)
15434 delete arg11;
15435 }
15436 return NULL;
d14a1e28
RD
15437}
15438
15439
0085ce49
RD
15440SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15441 PyObject *resultobj = 0;
15442 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15443 int result;
15444 void *argp1 = 0 ;
15445 int res1 = 0 ;
15446 PyObject *swig_obj[1] ;
15447
15448 if (!args) SWIG_fail;
15449 swig_obj[0] = args;
15450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15451 if (!SWIG_IsOK(res1)) {
15452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15453 }
15454 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 resultobj = SWIG_From_int(static_cast< int >(result));
15462 return resultobj;
15463fail:
15464 return NULL;
15465}
15466
15467
15468SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj = 0;
15470 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15471 int arg2 ;
15472 void *argp1 = 0 ;
15473 int res1 = 0 ;
15474 int val2 ;
15475 int ecode2 = 0 ;
15476 PyObject * obj0 = 0 ;
15477 PyObject * obj1 = 0 ;
15478 char * kwnames[] = {
15479 (char *) "self",(char *) "value", NULL
15480 };
15481
15482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15484 if (!SWIG_IsOK(res1)) {
15485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15486 }
15487 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15488 ecode2 = SWIG_AsVal_int(obj1, &val2);
15489 if (!SWIG_IsOK(ecode2)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15491 }
15492 arg2 = static_cast< int >(val2);
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 (arg1)->SetValue(arg2);
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = SWIG_Py_Void();
15500 return resultobj;
15501fail:
15502 return NULL;
15503}
15504
15505
15506SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15507 PyObject *resultobj = 0;
15508 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15509 wxString *arg2 = 0 ;
15510 void *argp1 = 0 ;
15511 int res1 = 0 ;
15512 bool temp2 = false ;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 char * kwnames[] = {
15516 (char *) "self",(char *) "text", NULL
15517 };
15518
15519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15521 if (!SWIG_IsOK(res1)) {
15522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15523 }
15524 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15525 {
15526 arg2 = wxString_in_helper(obj1);
15527 if (arg2 == NULL) SWIG_fail;
15528 temp2 = true;
15529 }
15530 {
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 (arg1)->SetValue((wxString const &)*arg2);
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 resultobj = SWIG_Py_Void();
15537 {
15538 if (temp2)
15539 delete arg2;
15540 }
15541 return resultobj;
15542fail:
15543 {
15544 if (temp2)
15545 delete arg2;
15546 }
15547 return NULL;
15548}
15549
15550
15551SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15552 PyObject *resultobj = 0;
15553 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15554 int arg2 ;
15555 int arg3 ;
15556 void *argp1 = 0 ;
15557 int res1 = 0 ;
15558 int val2 ;
15559 int ecode2 = 0 ;
15560 int val3 ;
15561 int ecode3 = 0 ;
15562 PyObject * obj0 = 0 ;
15563 PyObject * obj1 = 0 ;
15564 PyObject * obj2 = 0 ;
15565 char * kwnames[] = {
15566 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15567 };
15568
15569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15571 if (!SWIG_IsOK(res1)) {
15572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15573 }
15574 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15575 ecode2 = SWIG_AsVal_int(obj1, &val2);
15576 if (!SWIG_IsOK(ecode2)) {
15577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15578 }
15579 arg2 = static_cast< int >(val2);
15580 ecode3 = SWIG_AsVal_int(obj2, &val3);
15581 if (!SWIG_IsOK(ecode3)) {
15582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15583 }
15584 arg3 = static_cast< int >(val3);
15585 {
15586 PyThreadState* __tstate = wxPyBeginAllowThreads();
15587 (arg1)->SetRange(arg2,arg3);
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 resultobj = SWIG_Py_Void();
15592 return resultobj;
15593fail:
15594 return NULL;
d14a1e28
RD
15595}
15596
15597
0085ce49
RD
15598SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15599 PyObject *resultobj = 0;
15600 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15601 int result;
15602 void *argp1 = 0 ;
15603 int res1 = 0 ;
15604 PyObject *swig_obj[1] ;
15605
15606 if (!args) SWIG_fail;
15607 swig_obj[0] = args;
15608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15609 if (!SWIG_IsOK(res1)) {
15610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15611 }
15612 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15613 {
15614 PyThreadState* __tstate = wxPyBeginAllowThreads();
15615 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15616 wxPyEndAllowThreads(__tstate);
15617 if (PyErr_Occurred()) SWIG_fail;
15618 }
15619 resultobj = SWIG_From_int(static_cast< int >(result));
15620 return resultobj;
15621fail:
15622 return NULL;
d14a1e28
RD
15623}
15624
15625
0085ce49
RD
15626SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15627 PyObject *resultobj = 0;
15628 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15629 int result;
15630 void *argp1 = 0 ;
15631 int res1 = 0 ;
15632 PyObject *swig_obj[1] ;
15633
15634 if (!args) SWIG_fail;
15635 swig_obj[0] = args;
15636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15637 if (!SWIG_IsOK(res1)) {
15638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15639 }
15640 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15641 {
15642 PyThreadState* __tstate = wxPyBeginAllowThreads();
15643 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15644 wxPyEndAllowThreads(__tstate);
15645 if (PyErr_Occurred()) SWIG_fail;
15646 }
15647 resultobj = SWIG_From_int(static_cast< int >(result));
15648 return resultobj;
15649fail:
15650 return NULL;
15651}
15652
15653
15654SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15655 PyObject *resultobj = 0;
15656 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15657 long arg2 ;
15658 long arg3 ;
15659 void *argp1 = 0 ;
15660 int res1 = 0 ;
15661 long val2 ;
15662 int ecode2 = 0 ;
15663 long val3 ;
15664 int ecode3 = 0 ;
15665 PyObject * obj0 = 0 ;
15666 PyObject * obj1 = 0 ;
15667 PyObject * obj2 = 0 ;
15668 char * kwnames[] = {
2131d850 15669 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
15670 };
15671
15672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15674 if (!SWIG_IsOK(res1)) {
15675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15676 }
15677 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15678 ecode2 = SWIG_AsVal_long(obj1, &val2);
15679 if (!SWIG_IsOK(ecode2)) {
15680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15681 }
15682 arg2 = static_cast< long >(val2);
15683 ecode3 = SWIG_AsVal_long(obj2, &val3);
15684 if (!SWIG_IsOK(ecode3)) {
15685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15686 }
15687 arg3 = static_cast< long >(val3);
15688 {
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 (arg1)->SetSelection(arg2,arg3);
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
15694 resultobj = SWIG_Py_Void();
15695 return resultobj;
15696fail:
15697 return NULL;
15698}
15699
15700
15701SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15702 PyObject *resultobj = 0;
15703 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15704 SwigValueWrapper<wxVisualAttributes > result;
15705 int val1 ;
15706 int ecode1 = 0 ;
15707 PyObject * obj0 = 0 ;
15708 char * kwnames[] = {
15709 (char *) "variant", NULL
15710 };
15711
15712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15713 if (obj0) {
15714 ecode1 = SWIG_AsVal_int(obj0, &val1);
15715 if (!SWIG_IsOK(ecode1)) {
15716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15717 }
15718 arg1 = static_cast< wxWindowVariant >(val1);
15719 }
15720 {
15721 if (!wxPyCheckForApp()) SWIG_fail;
15722 PyThreadState* __tstate = wxPyBeginAllowThreads();
15723 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15724 wxPyEndAllowThreads(__tstate);
15725 if (PyErr_Occurred()) SWIG_fail;
15726 }
15727 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15728 return resultobj;
15729fail:
15730 return NULL;
d14a1e28
RD
15731}
15732
15733
0085ce49
RD
15734SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15735 PyObject *obj;
15736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15737 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15738 return SWIG_Py_Void();
d14a1e28
RD
15739}
15740
0085ce49
RD
15741SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15742 return SWIG_Python_InitShadowInstance(args);
15743}
d14a1e28 15744
0085ce49
RD
15745SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15746 PyObject *resultobj = 0;
15747 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15748 int arg2 = (int) 0 ;
15749 wxSpinEvent *result = 0 ;
15750 int val1 ;
15751 int ecode1 = 0 ;
15752 int val2 ;
15753 int ecode2 = 0 ;
15754 PyObject * obj0 = 0 ;
15755 PyObject * obj1 = 0 ;
15756 char * kwnames[] = {
15757 (char *) "commandType",(char *) "winid", NULL
15758 };
15759
15760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15761 if (obj0) {
15762 ecode1 = SWIG_AsVal_int(obj0, &val1);
15763 if (!SWIG_IsOK(ecode1)) {
15764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15765 }
15766 arg1 = static_cast< wxEventType >(val1);
15767 }
15768 if (obj1) {
15769 ecode2 = SWIG_AsVal_int(obj1, &val2);
15770 if (!SWIG_IsOK(ecode2)) {
15771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15772 }
15773 arg2 = static_cast< int >(val2);
15774 }
15775 {
15776 PyThreadState* __tstate = wxPyBeginAllowThreads();
15777 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15778 wxPyEndAllowThreads(__tstate);
15779 if (PyErr_Occurred()) SWIG_fail;
15780 }
15781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15782 return resultobj;
15783fail:
15784 return NULL;
d14a1e28
RD
15785}
15786
15787
0085ce49
RD
15788SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15789 PyObject *resultobj = 0;
15790 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15791 int result;
15792 void *argp1 = 0 ;
15793 int res1 = 0 ;
15794 PyObject *swig_obj[1] ;
15795
15796 if (!args) SWIG_fail;
15797 swig_obj[0] = args;
15798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15799 if (!SWIG_IsOK(res1)) {
15800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15801 }
15802 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15803 {
15804 PyThreadState* __tstate = wxPyBeginAllowThreads();
15805 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15806 wxPyEndAllowThreads(__tstate);
15807 if (PyErr_Occurred()) SWIG_fail;
15808 }
15809 resultobj = SWIG_From_int(static_cast< int >(result));
15810 return resultobj;
15811fail:
15812 return NULL;
15813}
15814
15815
15816SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15817 PyObject *resultobj = 0;
15818 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15819 int arg2 ;
15820 void *argp1 = 0 ;
15821 int res1 = 0 ;
15822 int val2 ;
15823 int ecode2 = 0 ;
15824 PyObject * obj0 = 0 ;
15825 PyObject * obj1 = 0 ;
15826 char * kwnames[] = {
15827 (char *) "self",(char *) "pos", NULL
15828 };
15829
15830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15832 if (!SWIG_IsOK(res1)) {
15833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15834 }
15835 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15836 ecode2 = SWIG_AsVal_int(obj1, &val2);
15837 if (!SWIG_IsOK(ecode2)) {
15838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15839 }
15840 arg2 = static_cast< int >(val2);
15841 {
15842 PyThreadState* __tstate = wxPyBeginAllowThreads();
15843 (arg1)->SetPosition(arg2);
15844 wxPyEndAllowThreads(__tstate);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 resultobj = SWIG_Py_Void();
15848 return resultobj;
15849fail:
15850 return NULL;
d14a1e28
RD
15851}
15852
15853
0085ce49
RD
15854SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15855 PyObject *obj;
15856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15857 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15858 return SWIG_Py_Void();
15859}
15860
15861SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15862 return SWIG_Python_InitShadowInstance(args);
15863}
15864
15865SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15866 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15867 return 1;
15868}
15869
15870
15871SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15872 PyObject *pyobj = 0;
15873
15874 {
d14a1e28 15875#if wxUSE_UNICODE
0085ce49 15876 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15877#else
0085ce49 15878 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 15879#endif
0085ce49
RD
15880 }
15881 return pyobj;
d14a1e28
RD
15882}
15883
15884
0085ce49
RD
15885SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15886 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15887 return 1;
d14a1e28
RD
15888}
15889
15890
0085ce49
RD
15891SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15892 PyObject *pyobj = 0;
15893
15894 {
15895#if wxUSE_UNICODE
15896 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15897#else
15898 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15899#endif
15900 }
15901 return pyobj;
15902}
15903
15904
15905SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj = 0;
15907 wxWindow *arg1 = (wxWindow *) 0 ;
15908 int arg2 = (int) -1 ;
15909 wxString const &arg3_defvalue = wxPyEmptyString ;
15910 wxString *arg3 = (wxString *) &arg3_defvalue ;
15911 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15912 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15913 wxSize const &arg5_defvalue = wxDefaultSize ;
15914 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15915 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15916 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15917 int arg7 = (int) 0 ;
15918 long arg8 = (long) wxRA_HORIZONTAL ;
15919 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15920 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15921 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15922 wxString *arg10 = (wxString *) &arg10_defvalue ;
15923 wxRadioBox *result = 0 ;
15924 void *argp1 = 0 ;
15925 int res1 = 0 ;
15926 int val2 ;
15927 int ecode2 = 0 ;
15928 bool temp3 = false ;
15929 wxPoint temp4 ;
15930 wxSize temp5 ;
15931 bool temp6 = false ;
15932 int val7 ;
15933 int ecode7 = 0 ;
15934 long val8 ;
15935 int ecode8 = 0 ;
15936 void *argp9 = 0 ;
15937 int res9 = 0 ;
15938 bool temp10 = false ;
15939 PyObject * obj0 = 0 ;
15940 PyObject * obj1 = 0 ;
15941 PyObject * obj2 = 0 ;
15942 PyObject * obj3 = 0 ;
15943 PyObject * obj4 = 0 ;
15944 PyObject * obj5 = 0 ;
15945 PyObject * obj6 = 0 ;
15946 PyObject * obj7 = 0 ;
15947 PyObject * obj8 = 0 ;
15948 PyObject * obj9 = 0 ;
15949 char * kwnames[] = {
15950 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15951 };
15952
15953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15955 if (!SWIG_IsOK(res1)) {
15956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15957 }
15958 arg1 = reinterpret_cast< wxWindow * >(argp1);
15959 if (obj1) {
15960 ecode2 = SWIG_AsVal_int(obj1, &val2);
15961 if (!SWIG_IsOK(ecode2)) {
15962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15963 }
15964 arg2 = static_cast< int >(val2);
15965 }
15966 if (obj2) {
093d3ff1 15967 {
0085ce49
RD
15968 arg3 = wxString_in_helper(obj2);
15969 if (arg3 == NULL) SWIG_fail;
15970 temp3 = true;
093d3ff1 15971 }
0085ce49
RD
15972 }
15973 if (obj3) {
093d3ff1 15974 {
0085ce49
RD
15975 arg4 = &temp4;
15976 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15977 }
0085ce49
RD
15978 }
15979 if (obj4) {
d14a1e28 15980 {
0085ce49
RD
15981 arg5 = &temp5;
15982 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15983 }
0085ce49
RD
15984 }
15985 if (obj5) {
d14a1e28 15986 {
0085ce49
RD
15987 if (! PySequence_Check(obj5)) {
15988 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15989 SWIG_fail;
15990 }
15991 arg6 = new wxArrayString;
15992 temp6 = true;
15993 int i, len=PySequence_Length(obj5);
15994 for (i=0; i<len; i++) {
15995 PyObject* item = PySequence_GetItem(obj5, i);
15996 wxString* s = wxString_in_helper(item);
15997 if (PyErr_Occurred()) SWIG_fail;
15998 arg6->Add(*s);
15999 delete s;
16000 Py_DECREF(item);
16001 }
d14a1e28 16002 }
0085ce49
RD
16003 }
16004 if (obj6) {
16005 ecode7 = SWIG_AsVal_int(obj6, &val7);
16006 if (!SWIG_IsOK(ecode7)) {
16007 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16008 }
16009 arg7 = static_cast< int >(val7);
16010 }
16011 if (obj7) {
16012 ecode8 = SWIG_AsVal_long(obj7, &val8);
16013 if (!SWIG_IsOK(ecode8)) {
16014 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16015 }
16016 arg8 = static_cast< long >(val8);
16017 }
16018 if (obj8) {
16019 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16020 if (!SWIG_IsOK(res9)) {
16021 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16022 }
16023 if (!argp9) {
16024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 16025 }
0085ce49
RD
16026 arg9 = reinterpret_cast< wxValidator * >(argp9);
16027 }
16028 if (obj9) {
d14a1e28 16029 {
0085ce49
RD
16030 arg10 = wxString_in_helper(obj9);
16031 if (arg10 == NULL) SWIG_fail;
16032 temp10 = true;
d14a1e28 16033 }
0085ce49
RD
16034 }
16035 {
16036 if (!wxPyCheckForApp()) SWIG_fail;
16037 PyThreadState* __tstate = wxPyBeginAllowThreads();
16038 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);
16039 wxPyEndAllowThreads(__tstate);
16040 if (PyErr_Occurred()) SWIG_fail;
16041 }
16042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16043 {
16044 if (temp3)
16045 delete arg3;
16046 }
16047 {
16048 if (temp6) delete arg6;
16049 }
16050 {
16051 if (temp10)
16052 delete arg10;
16053 }
16054 return resultobj;
16055fail:
16056 {
16057 if (temp3)
16058 delete arg3;
16059 }
16060 {
16061 if (temp6) delete arg6;
16062 }
16063 {
16064 if (temp10)
16065 delete arg10;
16066 }
16067 return NULL;
d14a1e28
RD
16068}
16069
16070
0085ce49
RD
16071SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16072 PyObject *resultobj = 0;
16073 wxRadioBox *result = 0 ;
16074
16075 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16076 {
16077 if (!wxPyCheckForApp()) SWIG_fail;
16078 PyThreadState* __tstate = wxPyBeginAllowThreads();
16079 result = (wxRadioBox *)new wxRadioBox();
16080 wxPyEndAllowThreads(__tstate);
16081 if (PyErr_Occurred()) SWIG_fail;
16082 }
16083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16084 return resultobj;
16085fail:
16086 return NULL;
16087}
16088
16089
16090SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16091 PyObject *resultobj = 0;
16092 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16093 wxWindow *arg2 = (wxWindow *) 0 ;
16094 int arg3 = (int) -1 ;
16095 wxString const &arg4_defvalue = wxPyEmptyString ;
16096 wxString *arg4 = (wxString *) &arg4_defvalue ;
16097 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16098 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16099 wxSize const &arg6_defvalue = wxDefaultSize ;
16100 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16101 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16102 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16103 int arg8 = (int) 0 ;
16104 long arg9 = (long) wxRA_HORIZONTAL ;
16105 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16106 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16107 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16108 wxString *arg11 = (wxString *) &arg11_defvalue ;
16109 bool result;
16110 void *argp1 = 0 ;
16111 int res1 = 0 ;
16112 void *argp2 = 0 ;
16113 int res2 = 0 ;
16114 int val3 ;
16115 int ecode3 = 0 ;
16116 bool temp4 = false ;
16117 wxPoint temp5 ;
16118 wxSize temp6 ;
16119 bool temp7 = false ;
16120 int val8 ;
16121 int ecode8 = 0 ;
16122 long val9 ;
16123 int ecode9 = 0 ;
16124 void *argp10 = 0 ;
16125 int res10 = 0 ;
16126 bool temp11 = false ;
16127 PyObject * obj0 = 0 ;
16128 PyObject * obj1 = 0 ;
16129 PyObject * obj2 = 0 ;
16130 PyObject * obj3 = 0 ;
16131 PyObject * obj4 = 0 ;
16132 PyObject * obj5 = 0 ;
16133 PyObject * obj6 = 0 ;
16134 PyObject * obj7 = 0 ;
16135 PyObject * obj8 = 0 ;
16136 PyObject * obj9 = 0 ;
16137 PyObject * obj10 = 0 ;
16138 char * kwnames[] = {
16139 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16140 };
16141
16142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16144 if (!SWIG_IsOK(res1)) {
16145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16146 }
16147 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16149 if (!SWIG_IsOK(res2)) {
16150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16151 }
16152 arg2 = reinterpret_cast< wxWindow * >(argp2);
16153 if (obj2) {
16154 ecode3 = SWIG_AsVal_int(obj2, &val3);
16155 if (!SWIG_IsOK(ecode3)) {
16156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16157 }
16158 arg3 = static_cast< int >(val3);
16159 }
16160 if (obj3) {
093d3ff1 16161 {
0085ce49
RD
16162 arg4 = wxString_in_helper(obj3);
16163 if (arg4 == NULL) SWIG_fail;
16164 temp4 = true;
093d3ff1 16165 }
0085ce49
RD
16166 }
16167 if (obj4) {
d14a1e28 16168 {
0085ce49
RD
16169 arg5 = &temp5;
16170 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16171 }
0085ce49
RD
16172 }
16173 if (obj5) {
d14a1e28 16174 {
0085ce49
RD
16175 arg6 = &temp6;
16176 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 16177 }
0085ce49
RD
16178 }
16179 if (obj6) {
d14a1e28 16180 {
0085ce49
RD
16181 if (! PySequence_Check(obj6)) {
16182 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16183 SWIG_fail;
16184 }
16185 arg7 = new wxArrayString;
16186 temp7 = true;
16187 int i, len=PySequence_Length(obj6);
16188 for (i=0; i<len; i++) {
16189 PyObject* item = PySequence_GetItem(obj6, i);
16190 wxString* s = wxString_in_helper(item);
16191 if (PyErr_Occurred()) SWIG_fail;
16192 arg7->Add(*s);
16193 delete s;
16194 Py_DECREF(item);
16195 }
d14a1e28 16196 }
0085ce49
RD
16197 }
16198 if (obj7) {
16199 ecode8 = SWIG_AsVal_int(obj7, &val8);
16200 if (!SWIG_IsOK(ecode8)) {
16201 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16202 }
16203 arg8 = static_cast< int >(val8);
16204 }
16205 if (obj8) {
16206 ecode9 = SWIG_AsVal_long(obj8, &val9);
16207 if (!SWIG_IsOK(ecode9)) {
16208 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16209 }
16210 arg9 = static_cast< long >(val9);
16211 }
16212 if (obj9) {
16213 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16214 if (!SWIG_IsOK(res10)) {
16215 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
4f89f6a3 16216 }
0085ce49
RD
16217 if (!argp10) {
16218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 16219 }
0085ce49
RD
16220 arg10 = reinterpret_cast< wxValidator * >(argp10);
16221 }
16222 if (obj10) {
d14a1e28 16223 {
0085ce49
RD
16224 arg11 = wxString_in_helper(obj10);
16225 if (arg11 == NULL) SWIG_fail;
16226 temp11 = true;
d14a1e28 16227 }
0085ce49
RD
16228 }
16229 {
16230 PyThreadState* __tstate = wxPyBeginAllowThreads();
16231 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);
16232 wxPyEndAllowThreads(__tstate);
16233 if (PyErr_Occurred()) SWIG_fail;
16234 }
16235 {
16236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16237 }
16238 {
16239 if (temp4)
16240 delete arg4;
16241 }
16242 {
16243 if (temp7) delete arg7;
16244 }
16245 {
16246 if (temp11)
16247 delete arg11;
16248 }
16249 return resultobj;
16250fail:
16251 {
16252 if (temp4)
16253 delete arg4;
16254 }
16255 {
16256 if (temp7) delete arg7;
16257 }
16258 {
16259 if (temp11)
16260 delete arg11;
16261 }
16262 return NULL;
16263}
16264
16265
16266SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj = 0;
16268 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16269 int arg2 ;
16270 void *argp1 = 0 ;
16271 int res1 = 0 ;
16272 int val2 ;
16273 int ecode2 = 0 ;
16274 PyObject * obj0 = 0 ;
16275 PyObject * obj1 = 0 ;
16276 char * kwnames[] = {
16277 (char *) "self",(char *) "n", NULL
16278 };
16279
16280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16282 if (!SWIG_IsOK(res1)) {
16283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16284 }
16285 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16286 ecode2 = SWIG_AsVal_int(obj1, &val2);
16287 if (!SWIG_IsOK(ecode2)) {
16288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16289 }
16290 arg2 = static_cast< int >(val2);
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 (arg1)->SetSelection(arg2);
16294 wxPyEndAllowThreads(__tstate);
16295 if (PyErr_Occurred()) SWIG_fail;
16296 }
16297 resultobj = SWIG_Py_Void();
16298 return resultobj;
16299fail:
16300 return NULL;
d14a1e28
RD
16301}
16302
16303
0085ce49
RD
16304SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16305 PyObject *resultobj = 0;
16306 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16307 int result;
16308 void *argp1 = 0 ;
16309 int res1 = 0 ;
16310 PyObject *swig_obj[1] ;
16311
16312 if (!args) SWIG_fail;
16313 swig_obj[0] = args;
16314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16315 if (!SWIG_IsOK(res1)) {
16316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16317 }
16318 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 resultobj = SWIG_From_int(static_cast< int >(result));
16326 return resultobj;
16327fail:
16328 return NULL;
d14a1e28
RD
16329}
16330
16331
0085ce49
RD
16332SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16333 PyObject *resultobj = 0;
16334 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16335 wxString result;
16336 void *argp1 = 0 ;
16337 int res1 = 0 ;
16338 PyObject *swig_obj[1] ;
16339
16340 if (!args) SWIG_fail;
16341 swig_obj[0] = args;
16342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16343 if (!SWIG_IsOK(res1)) {
16344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16345 }
16346 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16347 {
16348 PyThreadState* __tstate = wxPyBeginAllowThreads();
16349 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16350 wxPyEndAllowThreads(__tstate);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 }
16353 {
16354#if wxUSE_UNICODE
16355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16356#else
16357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16358#endif
16359 }
16360 return resultobj;
16361fail:
16362 return NULL;
16363}
16364
16365
16366SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj = 0;
16368 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16369 wxString *arg2 = 0 ;
16370 bool result;
16371 void *argp1 = 0 ;
16372 int res1 = 0 ;
16373 bool temp2 = false ;
16374 PyObject * obj0 = 0 ;
16375 PyObject * obj1 = 0 ;
16376 char * kwnames[] = {
16377 (char *) "self",(char *) "s", NULL
16378 };
16379
16380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16382 if (!SWIG_IsOK(res1)) {
16383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16384 }
16385 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16386 {
16387 arg2 = wxString_in_helper(obj1);
16388 if (arg2 == NULL) SWIG_fail;
16389 temp2 = true;
16390 }
16391 {
16392 PyThreadState* __tstate = wxPyBeginAllowThreads();
16393 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16394 wxPyEndAllowThreads(__tstate);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 {
16398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16399 }
16400 {
16401 if (temp2)
16402 delete arg2;
16403 }
16404 return resultobj;
16405fail:
16406 {
16407 if (temp2)
16408 delete arg2;
16409 }
16410 return NULL;
d14a1e28
RD
16411}
16412
16413
0085ce49
RD
16414SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16415 PyObject *resultobj = 0;
16416 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
75219dcb 16417 size_t result;
0085ce49
RD
16418 void *argp1 = 0 ;
16419 int res1 = 0 ;
16420 PyObject *swig_obj[1] ;
16421
16422 if (!args) SWIG_fail;
16423 swig_obj[0] = args;
16424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16425 if (!SWIG_IsOK(res1)) {
16426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16427 }
16428 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16429 {
16430 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 16431 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
0085ce49
RD
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
75219dcb 16435 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
16436 return resultobj;
16437fail:
16438 return NULL;
16439}
16440
16441
16442SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj = 0;
16444 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16445 wxString *arg2 = 0 ;
16446 int result;
16447 void *argp1 = 0 ;
16448 int res1 = 0 ;
16449 bool temp2 = false ;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 char * kwnames[] = {
16453 (char *) "self",(char *) "s", NULL
16454 };
16455
16456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16458 if (!SWIG_IsOK(res1)) {
16459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16460 }
16461 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16462 {
16463 arg2 = wxString_in_helper(obj1);
16464 if (arg2 == NULL) SWIG_fail;
16465 temp2 = true;
16466 }
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 resultobj = SWIG_From_int(static_cast< int >(result));
16474 {
16475 if (temp2)
16476 delete arg2;
16477 }
16478 return resultobj;
16479fail:
16480 {
16481 if (temp2)
16482 delete arg2;
16483 }
16484 return NULL;
16485}
16486
16487
16488SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16489 PyObject *resultobj = 0;
16490 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16491 int arg2 ;
16492 wxString result;
16493 void *argp1 = 0 ;
16494 int res1 = 0 ;
16495 int val2 ;
16496 int ecode2 = 0 ;
16497 PyObject * obj0 = 0 ;
16498 PyObject * obj1 = 0 ;
16499 char * kwnames[] = {
16500 (char *) "self",(char *) "n", NULL
16501 };
16502
16503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16505 if (!SWIG_IsOK(res1)) {
16506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16507 }
16508 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16509 ecode2 = SWIG_AsVal_int(obj1, &val2);
16510 if (!SWIG_IsOK(ecode2)) {
16511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16512 }
16513 arg2 = static_cast< int >(val2);
16514 {
16515 PyThreadState* __tstate = wxPyBeginAllowThreads();
16516 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16517 wxPyEndAllowThreads(__tstate);
16518 if (PyErr_Occurred()) SWIG_fail;
16519 }
16520 {
16521#if wxUSE_UNICODE
16522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16523#else
16524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16525#endif
16526 }
16527 return resultobj;
16528fail:
16529 return NULL;
16530}
16531
16532
16533SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16534 PyObject *resultobj = 0;
16535 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16536 int arg2 ;
16537 wxString *arg3 = 0 ;
16538 void *argp1 = 0 ;
16539 int res1 = 0 ;
16540 int val2 ;
16541 int ecode2 = 0 ;
16542 bool temp3 = false ;
16543 PyObject * obj0 = 0 ;
16544 PyObject * obj1 = 0 ;
16545 PyObject * obj2 = 0 ;
16546 char * kwnames[] = {
16547 (char *) "self",(char *) "n",(char *) "label", NULL
16548 };
16549
16550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16552 if (!SWIG_IsOK(res1)) {
16553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16554 }
16555 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16556 ecode2 = SWIG_AsVal_int(obj1, &val2);
16557 if (!SWIG_IsOK(ecode2)) {
16558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16559 }
16560 arg2 = static_cast< int >(val2);
16561 {
16562 arg3 = wxString_in_helper(obj2);
16563 if (arg3 == NULL) SWIG_fail;
16564 temp3 = true;
16565 }
16566 {
16567 PyThreadState* __tstate = wxPyBeginAllowThreads();
16568 (arg1)->SetString(arg2,(wxString const &)*arg3);
16569 wxPyEndAllowThreads(__tstate);
16570 if (PyErr_Occurred()) SWIG_fail;
16571 }
16572 resultobj = SWIG_Py_Void();
16573 {
16574 if (temp3)
16575 delete arg3;
16576 }
16577 return resultobj;
16578fail:
16579 {
16580 if (temp3)
16581 delete arg3;
16582 }
16583 return NULL;
16584}
16585
16586
16587SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16588 PyObject *resultobj = 0;
16589 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16590 unsigned int arg2 ;
0085ce49
RD
16591 bool arg3 = (bool) true ;
16592 void *argp1 = 0 ;
16593 int res1 = 0 ;
50f151d7 16594 unsigned int val2 ;
0085ce49
RD
16595 int ecode2 = 0 ;
16596 bool val3 ;
16597 int ecode3 = 0 ;
16598 PyObject * obj0 = 0 ;
16599 PyObject * obj1 = 0 ;
16600 PyObject * obj2 = 0 ;
16601 char * kwnames[] = {
16602 (char *) "self",(char *) "n",(char *) "enable", NULL
16603 };
16604
16605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16607 if (!SWIG_IsOK(res1)) {
16608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16609 }
16610 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16611 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16612 if (!SWIG_IsOK(ecode2)) {
50f151d7 16613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16614 }
50f151d7 16615 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16616 if (obj2) {
16617 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16618 if (!SWIG_IsOK(ecode3)) {
16619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16620 }
16621 arg3 = static_cast< bool >(val3);
16622 }
16623 {
16624 PyThreadState* __tstate = wxPyBeginAllowThreads();
16625 (arg1)->Enable(arg2,arg3);
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 resultobj = SWIG_Py_Void();
16630 return resultobj;
16631fail:
16632 return NULL;
16633}
16634
16635
16636SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj = 0;
16638 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16639 unsigned int arg2 ;
0085ce49
RD
16640 bool arg3 = (bool) true ;
16641 void *argp1 = 0 ;
16642 int res1 = 0 ;
50f151d7 16643 unsigned int val2 ;
0085ce49
RD
16644 int ecode2 = 0 ;
16645 bool val3 ;
16646 int ecode3 = 0 ;
16647 PyObject * obj0 = 0 ;
16648 PyObject * obj1 = 0 ;
16649 PyObject * obj2 = 0 ;
16650 char * kwnames[] = {
16651 (char *) "self",(char *) "n",(char *) "show", NULL
16652 };
16653
16654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16656 if (!SWIG_IsOK(res1)) {
16657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16658 }
16659 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16660 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16661 if (!SWIG_IsOK(ecode2)) {
50f151d7 16662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16663 }
50f151d7 16664 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16665 if (obj2) {
16666 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16667 if (!SWIG_IsOK(ecode3)) {
16668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16669 }
16670 arg3 = static_cast< bool >(val3);
16671 }
16672 {
16673 PyThreadState* __tstate = wxPyBeginAllowThreads();
16674 (arg1)->Show(arg2,arg3);
16675 wxPyEndAllowThreads(__tstate);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
16678 resultobj = SWIG_Py_Void();
16679 return resultobj;
16680fail:
16681 return NULL;
d14a1e28
RD
16682}
16683
16684
50f151d7
RD
16685SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj = 0;
16687 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16688 unsigned int arg2 ;
16689 bool result;
16690 void *argp1 = 0 ;
16691 int res1 = 0 ;
16692 unsigned int val2 ;
16693 int ecode2 = 0 ;
16694 PyObject * obj0 = 0 ;
16695 PyObject * obj1 = 0 ;
16696 char * kwnames[] = {
16697 (char *) "self",(char *) "n", NULL
16698 };
16699
16700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16702 if (!SWIG_IsOK(res1)) {
16703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16704 }
16705 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16706 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16707 if (!SWIG_IsOK(ecode2)) {
16708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16709 }
16710 arg2 = static_cast< unsigned int >(val2);
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 {
16718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16719 }
16720 return resultobj;
16721fail:
16722 return NULL;
16723}
16724
16725
16726SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16727 PyObject *resultobj = 0;
16728 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16729 unsigned int arg2 ;
16730 bool result;
16731 void *argp1 = 0 ;
16732 int res1 = 0 ;
16733 unsigned int val2 ;
16734 int ecode2 = 0 ;
16735 PyObject * obj0 = 0 ;
16736 PyObject * obj1 = 0 ;
16737 char * kwnames[] = {
16738 (char *) "self",(char *) "n", NULL
16739 };
16740
16741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16743 if (!SWIG_IsOK(res1)) {
16744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16745 }
16746 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16747 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16748 if (!SWIG_IsOK(ecode2)) {
16749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16750 }
16751 arg2 = static_cast< unsigned int >(val2);
16752 {
16753 PyThreadState* __tstate = wxPyBeginAllowThreads();
16754 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16755 wxPyEndAllowThreads(__tstate);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 {
16759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16760 }
16761 return resultobj;
16762fail:
16763 return NULL;
16764}
16765
16766
0085ce49
RD
16767SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16768 PyObject *resultobj = 0;
16769 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16770 unsigned int result;
0085ce49
RD
16771 void *argp1 = 0 ;
16772 int res1 = 0 ;
16773 PyObject *swig_obj[1] ;
16774
16775 if (!args) SWIG_fail;
16776 swig_obj[0] = args;
16777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16778 if (!SWIG_IsOK(res1)) {
16779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16780 }
16781 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16782 {
16783 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16784 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
0085ce49
RD
16785 wxPyEndAllowThreads(__tstate);
16786 if (PyErr_Occurred()) SWIG_fail;
16787 }
50f151d7 16788 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16789 return resultobj;
16790fail:
16791 return NULL;
d14a1e28
RD
16792}
16793
16794
0085ce49
RD
16795SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16796 PyObject *resultobj = 0;
16797 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16798 unsigned int result;
0085ce49
RD
16799 void *argp1 = 0 ;
16800 int res1 = 0 ;
16801 PyObject *swig_obj[1] ;
16802
16803 if (!args) SWIG_fail;
16804 swig_obj[0] = args;
16805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16806 if (!SWIG_IsOK(res1)) {
16807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16808 }
16809 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16810 {
16811 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16812 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
0085ce49
RD
16813 wxPyEndAllowThreads(__tstate);
16814 if (PyErr_Occurred()) SWIG_fail;
16815 }
50f151d7 16816 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16817 return resultobj;
16818fail:
16819 return NULL;
16820}
16821
16822
16823SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16824 PyObject *resultobj = 0;
16825 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16826 int arg2 ;
16827 wxDirection arg3 ;
16828 long arg4 ;
16829 int result;
16830 void *argp1 = 0 ;
16831 int res1 = 0 ;
16832 int val2 ;
16833 int ecode2 = 0 ;
16834 int val3 ;
16835 int ecode3 = 0 ;
16836 long val4 ;
16837 int ecode4 = 0 ;
16838 PyObject * obj0 = 0 ;
16839 PyObject * obj1 = 0 ;
16840 PyObject * obj2 = 0 ;
16841 PyObject * obj3 = 0 ;
16842 char * kwnames[] = {
16843 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16844 };
16845
16846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16848 if (!SWIG_IsOK(res1)) {
16849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16850 }
16851 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16852 ecode2 = SWIG_AsVal_int(obj1, &val2);
16853 if (!SWIG_IsOK(ecode2)) {
16854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16855 }
16856 arg2 = static_cast< int >(val2);
16857 ecode3 = SWIG_AsVal_int(obj2, &val3);
16858 if (!SWIG_IsOK(ecode3)) {
16859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16860 }
16861 arg3 = static_cast< wxDirection >(val3);
16862 ecode4 = SWIG_AsVal_long(obj3, &val4);
16863 if (!SWIG_IsOK(ecode4)) {
16864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16865 }
16866 arg4 = static_cast< long >(val4);
16867 {
16868 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16869 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
0085ce49
RD
16870 wxPyEndAllowThreads(__tstate);
16871 if (PyErr_Occurred()) SWIG_fail;
16872 }
16873 resultobj = SWIG_From_int(static_cast< int >(result));
16874 return resultobj;
16875fail:
16876 return NULL;
16877}
16878
16879
01f6b6d3
RD
16880SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16881 PyObject *resultobj = 0;
16882 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16883 unsigned int arg2 ;
16884 wxString *arg3 = 0 ;
16885 void *argp1 = 0 ;
16886 int res1 = 0 ;
16887 unsigned int val2 ;
16888 int ecode2 = 0 ;
16889 bool temp3 = false ;
16890 PyObject * obj0 = 0 ;
16891 PyObject * obj1 = 0 ;
16892 PyObject * obj2 = 0 ;
16893 char * kwnames[] = {
16894 (char *) "self",(char *) "item",(char *) "text", NULL
16895 };
16896
16897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16899 if (!SWIG_IsOK(res1)) {
16900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16901 }
16902 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16903 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16904 if (!SWIG_IsOK(ecode2)) {
16905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16906 }
16907 arg2 = static_cast< unsigned int >(val2);
16908 {
16909 arg3 = wxString_in_helper(obj2);
16910 if (arg3 == NULL) SWIG_fail;
16911 temp3 = true;
16912 }
16913 {
16914 PyThreadState* __tstate = wxPyBeginAllowThreads();
16915 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16916 wxPyEndAllowThreads(__tstate);
16917 if (PyErr_Occurred()) SWIG_fail;
16918 }
16919 resultobj = SWIG_Py_Void();
16920 {
16921 if (temp3)
16922 delete arg3;
16923 }
16924 return resultobj;
16925fail:
16926 {
16927 if (temp3)
16928 delete arg3;
16929 }
16930 return NULL;
16931}
16932
16933
16934SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16935 PyObject *resultobj = 0;
16936 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16937 unsigned int arg2 ;
16938 wxToolTip *result = 0 ;
16939 void *argp1 = 0 ;
16940 int res1 = 0 ;
16941 unsigned int val2 ;
16942 int ecode2 = 0 ;
16943 PyObject * obj0 = 0 ;
16944 PyObject * obj1 = 0 ;
16945 char * kwnames[] = {
16946 (char *) "self",(char *) "item", NULL
16947 };
16948
16949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16951 if (!SWIG_IsOK(res1)) {
16952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16953 }
16954 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16955 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16956 if (!SWIG_IsOK(ecode2)) {
16957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16958 }
16959 arg2 = static_cast< unsigned int >(val2);
16960 {
16961 PyThreadState* __tstate = wxPyBeginAllowThreads();
16962 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16963 wxPyEndAllowThreads(__tstate);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 }
16966 {
16967 resultobj = wxPyMake_wxObject(result, (bool)0);
16968 }
16969 return resultobj;
16970fail:
16971 return NULL;
16972}
16973
16974
b850e7f3
RD
16975SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16976 PyObject *resultobj = 0;
16977 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16978 unsigned int arg2 ;
16979 wxString *arg3 = 0 ;
16980 void *argp1 = 0 ;
16981 int res1 = 0 ;
16982 unsigned int val2 ;
16983 int ecode2 = 0 ;
16984 bool temp3 = false ;
16985 PyObject * obj0 = 0 ;
16986 PyObject * obj1 = 0 ;
16987 PyObject * obj2 = 0 ;
16988 char * kwnames[] = {
16989 (char *) "self",(char *) "n",(char *) "helpText", NULL
16990 };
16991
16992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16994 if (!SWIG_IsOK(res1)) {
16995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16996 }
16997 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16998 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16999 if (!SWIG_IsOK(ecode2)) {
17000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17001 }
17002 arg2 = static_cast< unsigned int >(val2);
17003 {
17004 arg3 = wxString_in_helper(obj2);
17005 if (arg3 == NULL) SWIG_fail;
17006 temp3 = true;
17007 }
17008 {
17009 PyThreadState* __tstate = wxPyBeginAllowThreads();
17010 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 resultobj = SWIG_Py_Void();
17015 {
17016 if (temp3)
17017 delete arg3;
17018 }
17019 return resultobj;
17020fail:
17021 {
17022 if (temp3)
17023 delete arg3;
17024 }
17025 return NULL;
17026}
17027
17028
17029SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17030 PyObject *resultobj = 0;
17031 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17032 unsigned int arg2 ;
17033 wxString result;
17034 void *argp1 = 0 ;
17035 int res1 = 0 ;
17036 unsigned int val2 ;
17037 int ecode2 = 0 ;
17038 PyObject * obj0 = 0 ;
17039 PyObject * obj1 = 0 ;
17040 char * kwnames[] = {
17041 (char *) "self",(char *) "n", NULL
17042 };
17043
17044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17046 if (!SWIG_IsOK(res1)) {
17047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17048 }
17049 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17050 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17051 if (!SWIG_IsOK(ecode2)) {
17052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17053 }
17054 arg2 = static_cast< unsigned int >(val2);
17055 {
17056 PyThreadState* __tstate = wxPyBeginAllowThreads();
17057 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17058 wxPyEndAllowThreads(__tstate);
17059 if (PyErr_Occurred()) SWIG_fail;
17060 }
17061 {
17062#if wxUSE_UNICODE
17063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17064#else
17065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17066#endif
17067 }
17068 return resultobj;
17069fail:
17070 return NULL;
17071}
17072
17073
0085ce49
RD
17074SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17075 PyObject *resultobj = 0;
17076 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17077 SwigValueWrapper<wxVisualAttributes > result;
17078 int val1 ;
17079 int ecode1 = 0 ;
17080 PyObject * obj0 = 0 ;
17081 char * kwnames[] = {
17082 (char *) "variant", NULL
17083 };
17084
17085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17086 if (obj0) {
17087 ecode1 = SWIG_AsVal_int(obj0, &val1);
17088 if (!SWIG_IsOK(ecode1)) {
17089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17090 }
17091 arg1 = static_cast< wxWindowVariant >(val1);
17092 }
17093 {
17094 if (!wxPyCheckForApp()) SWIG_fail;
17095 PyThreadState* __tstate = wxPyBeginAllowThreads();
17096 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17101 return resultobj;
17102fail:
17103 return NULL;
17104}
17105
17106
17107SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17108 PyObject *obj;
17109 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17110 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17111 return SWIG_Py_Void();
17112}
17113
17114SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17115 return SWIG_Python_InitShadowInstance(args);
17116}
17117
17118SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17119 PyObject *resultobj = 0;
17120 wxWindow *arg1 = (wxWindow *) 0 ;
17121 int arg2 = (int) -1 ;
17122 wxString const &arg3_defvalue = wxPyEmptyString ;
17123 wxString *arg3 = (wxString *) &arg3_defvalue ;
17124 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17125 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17126 wxSize const &arg5_defvalue = wxDefaultSize ;
17127 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17128 long arg6 = (long) 0 ;
17129 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17130 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17131 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17132 wxString *arg8 = (wxString *) &arg8_defvalue ;
17133 wxRadioButton *result = 0 ;
17134 void *argp1 = 0 ;
17135 int res1 = 0 ;
17136 int val2 ;
17137 int ecode2 = 0 ;
17138 bool temp3 = false ;
17139 wxPoint temp4 ;
17140 wxSize temp5 ;
17141 long val6 ;
17142 int ecode6 = 0 ;
17143 void *argp7 = 0 ;
17144 int res7 = 0 ;
17145 bool temp8 = false ;
17146 PyObject * obj0 = 0 ;
17147 PyObject * obj1 = 0 ;
17148 PyObject * obj2 = 0 ;
17149 PyObject * obj3 = 0 ;
17150 PyObject * obj4 = 0 ;
17151 PyObject * obj5 = 0 ;
17152 PyObject * obj6 = 0 ;
17153 PyObject * obj7 = 0 ;
17154 char * kwnames[] = {
17155 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17156 };
17157
17158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17160 if (!SWIG_IsOK(res1)) {
17161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17162 }
17163 arg1 = reinterpret_cast< wxWindow * >(argp1);
17164 if (obj1) {
17165 ecode2 = SWIG_AsVal_int(obj1, &val2);
17166 if (!SWIG_IsOK(ecode2)) {
17167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17168 }
17169 arg2 = static_cast< int >(val2);
17170 }
17171 if (obj2) {
d14a1e28 17172 {
0085ce49
RD
17173 arg3 = wxString_in_helper(obj2);
17174 if (arg3 == NULL) SWIG_fail;
17175 temp3 = true;
d14a1e28 17176 }
0085ce49
RD
17177 }
17178 if (obj3) {
d14a1e28 17179 {
0085ce49
RD
17180 arg4 = &temp4;
17181 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 17182 }
0085ce49
RD
17183 }
17184 if (obj4) {
d14a1e28 17185 {
0085ce49
RD
17186 arg5 = &temp5;
17187 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17188 }
17189 }
17190 if (obj5) {
17191 ecode6 = SWIG_AsVal_long(obj5, &val6);
17192 if (!SWIG_IsOK(ecode6)) {
17193 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17194 }
17195 arg6 = static_cast< long >(val6);
17196 }
17197 if (obj6) {
17198 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17199 if (!SWIG_IsOK(res7)) {
17200 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 17201 }
0085ce49
RD
17202 if (!argp7) {
17203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17204 }
17205 arg7 = reinterpret_cast< wxValidator * >(argp7);
17206 }
17207 if (obj7) {
d14a1e28 17208 {
0085ce49
RD
17209 arg8 = wxString_in_helper(obj7);
17210 if (arg8 == NULL) SWIG_fail;
17211 temp8 = true;
d14a1e28 17212 }
0085ce49
RD
17213 }
17214 {
17215 if (!wxPyCheckForApp()) SWIG_fail;
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17222 {
17223 if (temp3)
17224 delete arg3;
17225 }
17226 {
17227 if (temp8)
17228 delete arg8;
17229 }
17230 return resultobj;
17231fail:
17232 {
17233 if (temp3)
17234 delete arg3;
17235 }
17236 {
17237 if (temp8)
17238 delete arg8;
17239 }
17240 return NULL;
d14a1e28
RD
17241}
17242
17243
0085ce49
RD
17244SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17245 PyObject *resultobj = 0;
17246 wxRadioButton *result = 0 ;
17247
17248 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17249 {
17250 if (!wxPyCheckForApp()) SWIG_fail;
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 result = (wxRadioButton *)new wxRadioButton();
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17257 return resultobj;
17258fail:
17259 return NULL;
17260}
17261
17262
17263SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17264 PyObject *resultobj = 0;
17265 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17266 wxWindow *arg2 = (wxWindow *) 0 ;
17267 int arg3 = (int) -1 ;
17268 wxString const &arg4_defvalue = wxPyEmptyString ;
17269 wxString *arg4 = (wxString *) &arg4_defvalue ;
17270 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17271 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17272 wxSize const &arg6_defvalue = wxDefaultSize ;
17273 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17274 long arg7 = (long) 0 ;
17275 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17276 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17277 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17278 wxString *arg9 = (wxString *) &arg9_defvalue ;
17279 bool result;
17280 void *argp1 = 0 ;
17281 int res1 = 0 ;
17282 void *argp2 = 0 ;
17283 int res2 = 0 ;
17284 int val3 ;
17285 int ecode3 = 0 ;
17286 bool temp4 = false ;
17287 wxPoint temp5 ;
17288 wxSize temp6 ;
17289 long val7 ;
17290 int ecode7 = 0 ;
17291 void *argp8 = 0 ;
17292 int res8 = 0 ;
17293 bool temp9 = false ;
17294 PyObject * obj0 = 0 ;
17295 PyObject * obj1 = 0 ;
17296 PyObject * obj2 = 0 ;
17297 PyObject * obj3 = 0 ;
17298 PyObject * obj4 = 0 ;
17299 PyObject * obj5 = 0 ;
17300 PyObject * obj6 = 0 ;
17301 PyObject * obj7 = 0 ;
17302 PyObject * obj8 = 0 ;
17303 char * kwnames[] = {
17304 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17305 };
17306
17307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17309 if (!SWIG_IsOK(res1)) {
17310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17311 }
17312 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17314 if (!SWIG_IsOK(res2)) {
17315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17316 }
17317 arg2 = reinterpret_cast< wxWindow * >(argp2);
17318 if (obj2) {
17319 ecode3 = SWIG_AsVal_int(obj2, &val3);
17320 if (!SWIG_IsOK(ecode3)) {
17321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17322 }
17323 arg3 = static_cast< int >(val3);
17324 }
17325 if (obj3) {
d14a1e28 17326 {
0085ce49
RD
17327 arg4 = wxString_in_helper(obj3);
17328 if (arg4 == NULL) SWIG_fail;
17329 temp4 = true;
d14a1e28 17330 }
0085ce49
RD
17331 }
17332 if (obj4) {
d14a1e28 17333 {
0085ce49
RD
17334 arg5 = &temp5;
17335 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 17336 }
0085ce49
RD
17337 }
17338 if (obj5) {
d14a1e28 17339 {
0085ce49
RD
17340 arg6 = &temp6;
17341 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17342 }
17343 }
17344 if (obj6) {
17345 ecode7 = SWIG_AsVal_long(obj6, &val7);
17346 if (!SWIG_IsOK(ecode7)) {
17347 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17348 }
17349 arg7 = static_cast< long >(val7);
17350 }
17351 if (obj7) {
17352 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17353 if (!SWIG_IsOK(res8)) {
17354 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17355 }
17356 if (!argp8) {
17357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 17358 }
0085ce49
RD
17359 arg8 = reinterpret_cast< wxValidator * >(argp8);
17360 }
17361 if (obj8) {
d14a1e28 17362 {
0085ce49
RD
17363 arg9 = wxString_in_helper(obj8);
17364 if (arg9 == NULL) SWIG_fail;
17365 temp9 = true;
d14a1e28 17366 }
0085ce49
RD
17367 }
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17376 }
17377 {
17378 if (temp4)
17379 delete arg4;
17380 }
17381 {
17382 if (temp9)
17383 delete arg9;
17384 }
17385 return resultobj;
17386fail:
17387 {
17388 if (temp4)
17389 delete arg4;
17390 }
17391 {
17392 if (temp9)
17393 delete arg9;
17394 }
17395 return NULL;
d14a1e28
RD
17396}
17397
17398
0085ce49
RD
17399SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17400 PyObject *resultobj = 0;
17401 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17402 bool result;
17403 void *argp1 = 0 ;
17404 int res1 = 0 ;
17405 PyObject *swig_obj[1] ;
17406
17407 if (!args) SWIG_fail;
17408 swig_obj[0] = args;
17409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17410 if (!SWIG_IsOK(res1)) {
17411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17412 }
17413 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17414 {
17415 PyThreadState* __tstate = wxPyBeginAllowThreads();
17416 result = (bool)(arg1)->GetValue();
17417 wxPyEndAllowThreads(__tstate);
17418 if (PyErr_Occurred()) SWIG_fail;
17419 }
17420 {
17421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17422 }
17423 return resultobj;
17424fail:
17425 return NULL;
17426}
17427
17428
17429SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17430 PyObject *resultobj = 0;
17431 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17432 bool arg2 ;
17433 void *argp1 = 0 ;
17434 int res1 = 0 ;
17435 bool val2 ;
17436 int ecode2 = 0 ;
17437 PyObject * obj0 = 0 ;
17438 PyObject * obj1 = 0 ;
17439 char * kwnames[] = {
17440 (char *) "self",(char *) "value", NULL
17441 };
17442
17443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17445 if (!SWIG_IsOK(res1)) {
17446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17447 }
17448 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17449 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17450 if (!SWIG_IsOK(ecode2)) {
17451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17452 }
17453 arg2 = static_cast< bool >(val2);
17454 {
17455 PyThreadState* __tstate = wxPyBeginAllowThreads();
17456 (arg1)->SetValue(arg2);
17457 wxPyEndAllowThreads(__tstate);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 }
17460 resultobj = SWIG_Py_Void();
17461 return resultobj;
17462fail:
17463 return NULL;
17464}
17465
17466
17467SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17468 PyObject *resultobj = 0;
17469 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17470 SwigValueWrapper<wxVisualAttributes > result;
17471 int val1 ;
17472 int ecode1 = 0 ;
17473 PyObject * obj0 = 0 ;
17474 char * kwnames[] = {
17475 (char *) "variant", NULL
17476 };
17477
17478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17479 if (obj0) {
17480 ecode1 = SWIG_AsVal_int(obj0, &val1);
17481 if (!SWIG_IsOK(ecode1)) {
17482 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17483 }
17484 arg1 = static_cast< wxWindowVariant >(val1);
17485 }
17486 {
17487 if (!wxPyCheckForApp()) SWIG_fail;
17488 PyThreadState* __tstate = wxPyBeginAllowThreads();
17489 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17494 return resultobj;
17495fail:
17496 return NULL;
d14a1e28
RD
17497}
17498
17499
0085ce49
RD
17500SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17501 PyObject *obj;
17502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17503 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17504 return SWIG_Py_Void();
17505}
17506
17507SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17508 return SWIG_Python_InitShadowInstance(args);
17509}
17510
17511SWIGINTERN int SliderNameStr_set(PyObject *) {
17512 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17513 return 1;
17514}
17515
17516
17517SWIGINTERN PyObject *SliderNameStr_get(void) {
17518 PyObject *pyobj = 0;
17519
17520 {
17521#if wxUSE_UNICODE
17522 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17523#else
17524 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17525#endif
17526 }
17527 return pyobj;
17528}
17529
17530
17531SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17532 PyObject *resultobj = 0;
17533 wxWindow *arg1 = (wxWindow *) 0 ;
17534 int arg2 = (int) -1 ;
17535 int arg3 = (int) 0 ;
17536 int arg4 = (int) 0 ;
17537 int arg5 = (int) 100 ;
17538 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17539 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17540 wxSize const &arg7_defvalue = wxDefaultSize ;
17541 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17542 long arg8 = (long) wxSL_HORIZONTAL ;
17543 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17544 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17545 wxString const &arg10_defvalue = wxPySliderNameStr ;
17546 wxString *arg10 = (wxString *) &arg10_defvalue ;
17547 wxSlider *result = 0 ;
17548 void *argp1 = 0 ;
17549 int res1 = 0 ;
17550 int val2 ;
17551 int ecode2 = 0 ;
17552 int val3 ;
17553 int ecode3 = 0 ;
17554 int val4 ;
17555 int ecode4 = 0 ;
17556 int val5 ;
17557 int ecode5 = 0 ;
17558 wxPoint temp6 ;
17559 wxSize temp7 ;
17560 long val8 ;
17561 int ecode8 = 0 ;
17562 void *argp9 = 0 ;
17563 int res9 = 0 ;
17564 bool temp10 = false ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 PyObject * obj2 = 0 ;
17568 PyObject * obj3 = 0 ;
17569 PyObject * obj4 = 0 ;
17570 PyObject * obj5 = 0 ;
17571 PyObject * obj6 = 0 ;
17572 PyObject * obj7 = 0 ;
17573 PyObject * obj8 = 0 ;
17574 PyObject * obj9 = 0 ;
17575 char * kwnames[] = {
17576 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17577 };
17578
17579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17581 if (!SWIG_IsOK(res1)) {
17582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17583 }
17584 arg1 = reinterpret_cast< wxWindow * >(argp1);
17585 if (obj1) {
17586 ecode2 = SWIG_AsVal_int(obj1, &val2);
17587 if (!SWIG_IsOK(ecode2)) {
17588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17589 }
17590 arg2 = static_cast< int >(val2);
17591 }
17592 if (obj2) {
17593 ecode3 = SWIG_AsVal_int(obj2, &val3);
17594 if (!SWIG_IsOK(ecode3)) {
17595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17596 }
17597 arg3 = static_cast< int >(val3);
17598 }
17599 if (obj3) {
17600 ecode4 = SWIG_AsVal_int(obj3, &val4);
17601 if (!SWIG_IsOK(ecode4)) {
17602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17603 }
17604 arg4 = static_cast< int >(val4);
17605 }
17606 if (obj4) {
17607 ecode5 = SWIG_AsVal_int(obj4, &val5);
17608 if (!SWIG_IsOK(ecode5)) {
17609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17610 }
17611 arg5 = static_cast< int >(val5);
17612 }
17613 if (obj5) {
093d3ff1 17614 {
0085ce49
RD
17615 arg6 = &temp6;
17616 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 17617 }
0085ce49
RD
17618 }
17619 if (obj6) {
093d3ff1 17620 {
0085ce49
RD
17621 arg7 = &temp7;
17622 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17623 }
0085ce49
RD
17624 }
17625 if (obj7) {
17626 ecode8 = SWIG_AsVal_long(obj7, &val8);
17627 if (!SWIG_IsOK(ecode8)) {
17628 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17629 }
17630 arg8 = static_cast< long >(val8);
17631 }
17632 if (obj8) {
17633 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17634 if (!SWIG_IsOK(res9)) {
17635 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17636 }
0085ce49
RD
17637 if (!argp9) {
17638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17639 }
0085ce49
RD
17640 arg9 = reinterpret_cast< wxValidator * >(argp9);
17641 }
17642 if (obj9) {
4f89f6a3 17643 {
0085ce49
RD
17644 arg10 = wxString_in_helper(obj9);
17645 if (arg10 == NULL) SWIG_fail;
17646 temp10 = true;
4f89f6a3 17647 }
0085ce49
RD
17648 }
17649 {
17650 if (!wxPyCheckForApp()) SWIG_fail;
17651 PyThreadState* __tstate = wxPyBeginAllowThreads();
17652 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17653 wxPyEndAllowThreads(__tstate);
17654 if (PyErr_Occurred()) SWIG_fail;
17655 }
17656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17657 {
17658 if (temp10)
17659 delete arg10;
17660 }
17661 return resultobj;
17662fail:
17663 {
17664 if (temp10)
17665 delete arg10;
17666 }
17667 return NULL;
d14a1e28
RD
17668}
17669
17670
0085ce49
RD
17671SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17672 PyObject *resultobj = 0;
17673 wxSlider *result = 0 ;
17674
17675 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17676 {
17677 if (!wxPyCheckForApp()) SWIG_fail;
17678 PyThreadState* __tstate = wxPyBeginAllowThreads();
17679 result = (wxSlider *)new wxSlider();
17680 wxPyEndAllowThreads(__tstate);
17681 if (PyErr_Occurred()) SWIG_fail;
17682 }
17683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17684 return resultobj;
17685fail:
17686 return NULL;
17687}
17688
17689
17690SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17691 PyObject *resultobj = 0;
17692 wxSlider *arg1 = (wxSlider *) 0 ;
17693 wxWindow *arg2 = (wxWindow *) 0 ;
17694 int arg3 = (int) -1 ;
17695 int arg4 = (int) 0 ;
17696 int arg5 = (int) 0 ;
17697 int arg6 = (int) 100 ;
17698 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17699 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17700 wxSize const &arg8_defvalue = wxDefaultSize ;
17701 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17702 long arg9 = (long) wxSL_HORIZONTAL ;
17703 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17704 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17705 wxString const &arg11_defvalue = wxPySliderNameStr ;
17706 wxString *arg11 = (wxString *) &arg11_defvalue ;
17707 bool result;
17708 void *argp1 = 0 ;
17709 int res1 = 0 ;
17710 void *argp2 = 0 ;
17711 int res2 = 0 ;
17712 int val3 ;
17713 int ecode3 = 0 ;
17714 int val4 ;
17715 int ecode4 = 0 ;
17716 int val5 ;
17717 int ecode5 = 0 ;
17718 int val6 ;
17719 int ecode6 = 0 ;
17720 wxPoint temp7 ;
17721 wxSize temp8 ;
17722 long val9 ;
17723 int ecode9 = 0 ;
17724 void *argp10 = 0 ;
17725 int res10 = 0 ;
17726 bool temp11 = false ;
17727 PyObject * obj0 = 0 ;
17728 PyObject * obj1 = 0 ;
17729 PyObject * obj2 = 0 ;
17730 PyObject * obj3 = 0 ;
17731 PyObject * obj4 = 0 ;
17732 PyObject * obj5 = 0 ;
17733 PyObject * obj6 = 0 ;
17734 PyObject * obj7 = 0 ;
17735 PyObject * obj8 = 0 ;
17736 PyObject * obj9 = 0 ;
17737 PyObject * obj10 = 0 ;
17738 char * kwnames[] = {
17739 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17740 };
17741
17742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17744 if (!SWIG_IsOK(res1)) {
17745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17746 }
17747 arg1 = reinterpret_cast< wxSlider * >(argp1);
17748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17749 if (!SWIG_IsOK(res2)) {
17750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17751 }
17752 arg2 = reinterpret_cast< wxWindow * >(argp2);
17753 if (obj2) {
17754 ecode3 = SWIG_AsVal_int(obj2, &val3);
17755 if (!SWIG_IsOK(ecode3)) {
17756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17757 }
17758 arg3 = static_cast< int >(val3);
17759 }
17760 if (obj3) {
17761 ecode4 = SWIG_AsVal_int(obj3, &val4);
17762 if (!SWIG_IsOK(ecode4)) {
17763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17764 }
17765 arg4 = static_cast< int >(val4);
17766 }
17767 if (obj4) {
17768 ecode5 = SWIG_AsVal_int(obj4, &val5);
17769 if (!SWIG_IsOK(ecode5)) {
17770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17771 }
17772 arg5 = static_cast< int >(val5);
17773 }
17774 if (obj5) {
17775 ecode6 = SWIG_AsVal_int(obj5, &val6);
17776 if (!SWIG_IsOK(ecode6)) {
17777 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17778 }
17779 arg6 = static_cast< int >(val6);
17780 }
17781 if (obj6) {
093d3ff1 17782 {
0085ce49
RD
17783 arg7 = &temp7;
17784 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d14a1e28 17785 }
0085ce49
RD
17786 }
17787 if (obj7) {
d14a1e28 17788 {
0085ce49
RD
17789 arg8 = &temp8;
17790 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d14a1e28 17791 }
0085ce49
RD
17792 }
17793 if (obj8) {
17794 ecode9 = SWIG_AsVal_long(obj8, &val9);
17795 if (!SWIG_IsOK(ecode9)) {
17796 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17797 }
17798 arg9 = static_cast< long >(val9);
17799 }
17800 if (obj9) {
17801 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17802 if (!SWIG_IsOK(res10)) {
17803 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17804 }
0085ce49
RD
17805 if (!argp10) {
17806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 17807 }
0085ce49
RD
17808 arg10 = reinterpret_cast< wxValidator * >(argp10);
17809 }
17810 if (obj10) {
4f89f6a3 17811 {
0085ce49
RD
17812 arg11 = wxString_in_helper(obj10);
17813 if (arg11 == NULL) SWIG_fail;
17814 temp11 = true;
4f89f6a3 17815 }
0085ce49
RD
17816 }
17817 {
17818 PyThreadState* __tstate = wxPyBeginAllowThreads();
17819 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 {
17824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17825 }
17826 {
17827 if (temp11)
17828 delete arg11;
17829 }
17830 return resultobj;
17831fail:
17832 {
17833 if (temp11)
17834 delete arg11;
17835 }
17836 return NULL;
d14a1e28
RD
17837}
17838
17839
0085ce49
RD
17840SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17841 PyObject *resultobj = 0;
17842 wxSlider *arg1 = (wxSlider *) 0 ;
17843 int result;
17844 void *argp1 = 0 ;
17845 int res1 = 0 ;
17846 PyObject *swig_obj[1] ;
17847
17848 if (!args) SWIG_fail;
17849 swig_obj[0] = args;
17850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17851 if (!SWIG_IsOK(res1)) {
17852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17853 }
17854 arg1 = reinterpret_cast< wxSlider * >(argp1);
17855 {
17856 PyThreadState* __tstate = wxPyBeginAllowThreads();
17857 result = (int)((wxSlider const *)arg1)->GetValue();
17858 wxPyEndAllowThreads(__tstate);
17859 if (PyErr_Occurred()) SWIG_fail;
17860 }
17861 resultobj = SWIG_From_int(static_cast< int >(result));
17862 return resultobj;
17863fail:
17864 return NULL;
17865}
17866
17867
17868SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj = 0;
17870 wxSlider *arg1 = (wxSlider *) 0 ;
17871 int arg2 ;
17872 void *argp1 = 0 ;
17873 int res1 = 0 ;
17874 int val2 ;
17875 int ecode2 = 0 ;
17876 PyObject * obj0 = 0 ;
17877 PyObject * obj1 = 0 ;
17878 char * kwnames[] = {
17879 (char *) "self",(char *) "value", NULL
17880 };
17881
17882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17884 if (!SWIG_IsOK(res1)) {
17885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17886 }
17887 arg1 = reinterpret_cast< wxSlider * >(argp1);
17888 ecode2 = SWIG_AsVal_int(obj1, &val2);
17889 if (!SWIG_IsOK(ecode2)) {
17890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17891 }
17892 arg2 = static_cast< int >(val2);
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 (arg1)->SetValue(arg2);
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 }
17899 resultobj = SWIG_Py_Void();
17900 return resultobj;
17901fail:
17902 return NULL;
17903}
17904
17905
17906SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17907 PyObject *resultobj = 0;
17908 wxSlider *arg1 = (wxSlider *) 0 ;
17909 int arg2 ;
17910 int arg3 ;
17911 void *argp1 = 0 ;
17912 int res1 = 0 ;
17913 int val2 ;
17914 int ecode2 = 0 ;
17915 int val3 ;
17916 int ecode3 = 0 ;
17917 PyObject * obj0 = 0 ;
17918 PyObject * obj1 = 0 ;
17919 PyObject * obj2 = 0 ;
17920 char * kwnames[] = {
17921 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17922 };
17923
17924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17926 if (!SWIG_IsOK(res1)) {
17927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17928 }
17929 arg1 = reinterpret_cast< wxSlider * >(argp1);
17930 ecode2 = SWIG_AsVal_int(obj1, &val2);
17931 if (!SWIG_IsOK(ecode2)) {
17932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17933 }
17934 arg2 = static_cast< int >(val2);
17935 ecode3 = SWIG_AsVal_int(obj2, &val3);
17936 if (!SWIG_IsOK(ecode3)) {
17937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17938 }
17939 arg3 = static_cast< int >(val3);
17940 {
17941 PyThreadState* __tstate = wxPyBeginAllowThreads();
17942 (arg1)->SetRange(arg2,arg3);
17943 wxPyEndAllowThreads(__tstate);
17944 if (PyErr_Occurred()) SWIG_fail;
17945 }
17946 resultobj = SWIG_Py_Void();
17947 return resultobj;
17948fail:
17949 return NULL;
d14a1e28
RD
17950}
17951
17952
0085ce49
RD
17953SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17954 PyObject *resultobj = 0;
17955 wxSlider *arg1 = (wxSlider *) 0 ;
17956 int result;
17957 void *argp1 = 0 ;
17958 int res1 = 0 ;
17959 PyObject *swig_obj[1] ;
17960
17961 if (!args) SWIG_fail;
17962 swig_obj[0] = args;
17963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17964 if (!SWIG_IsOK(res1)) {
17965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17966 }
17967 arg1 = reinterpret_cast< wxSlider * >(argp1);
17968 {
17969 PyThreadState* __tstate = wxPyBeginAllowThreads();
17970 result = (int)((wxSlider const *)arg1)->GetMin();
17971 wxPyEndAllowThreads(__tstate);
17972 if (PyErr_Occurred()) SWIG_fail;
17973 }
17974 resultobj = SWIG_From_int(static_cast< int >(result));
17975 return resultobj;
17976fail:
17977 return NULL;
d14a1e28
RD
17978}
17979
17980
0085ce49
RD
17981SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17982 PyObject *resultobj = 0;
17983 wxSlider *arg1 = (wxSlider *) 0 ;
17984 int result;
17985 void *argp1 = 0 ;
17986 int res1 = 0 ;
17987 PyObject *swig_obj[1] ;
17988
17989 if (!args) SWIG_fail;
17990 swig_obj[0] = args;
17991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17992 if (!SWIG_IsOK(res1)) {
17993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17994 }
17995 arg1 = reinterpret_cast< wxSlider * >(argp1);
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 result = (int)((wxSlider const *)arg1)->GetMax();
17999 wxPyEndAllowThreads(__tstate);
18000 if (PyErr_Occurred()) SWIG_fail;
18001 }
18002 resultobj = SWIG_From_int(static_cast< int >(result));
18003 return resultobj;
18004fail:
18005 return NULL;
18006}
18007
18008
18009SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18010 PyObject *resultobj = 0;
18011 wxSlider *arg1 = (wxSlider *) 0 ;
18012 int arg2 ;
18013 void *argp1 = 0 ;
18014 int res1 = 0 ;
18015 int val2 ;
18016 int ecode2 = 0 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char * kwnames[] = {
18020 (char *) "self",(char *) "minValue", NULL
18021 };
18022
18023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18025 if (!SWIG_IsOK(res1)) {
18026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18027 }
18028 arg1 = reinterpret_cast< wxSlider * >(argp1);
18029 ecode2 = SWIG_AsVal_int(obj1, &val2);
18030 if (!SWIG_IsOK(ecode2)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18032 }
18033 arg2 = static_cast< int >(val2);
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 (arg1)->SetMin(arg2);
18037 wxPyEndAllowThreads(__tstate);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 resultobj = SWIG_Py_Void();
18041 return resultobj;
18042fail:
18043 return NULL;
18044}
18045
18046
18047SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj = 0;
18049 wxSlider *arg1 = (wxSlider *) 0 ;
18050 int arg2 ;
18051 void *argp1 = 0 ;
18052 int res1 = 0 ;
18053 int val2 ;
18054 int ecode2 = 0 ;
18055 PyObject * obj0 = 0 ;
18056 PyObject * obj1 = 0 ;
18057 char * kwnames[] = {
18058 (char *) "self",(char *) "maxValue", NULL
18059 };
18060
18061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18063 if (!SWIG_IsOK(res1)) {
18064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18065 }
18066 arg1 = reinterpret_cast< wxSlider * >(argp1);
18067 ecode2 = SWIG_AsVal_int(obj1, &val2);
18068 if (!SWIG_IsOK(ecode2)) {
18069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18070 }
18071 arg2 = static_cast< int >(val2);
18072 {
18073 PyThreadState* __tstate = wxPyBeginAllowThreads();
18074 (arg1)->SetMax(arg2);
18075 wxPyEndAllowThreads(__tstate);
18076 if (PyErr_Occurred()) SWIG_fail;
18077 }
18078 resultobj = SWIG_Py_Void();
18079 return resultobj;
18080fail:
18081 return NULL;
18082}
18083
18084
18085SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18086 PyObject *resultobj = 0;
18087 wxSlider *arg1 = (wxSlider *) 0 ;
18088 int arg2 ;
18089 void *argp1 = 0 ;
18090 int res1 = 0 ;
18091 int val2 ;
18092 int ecode2 = 0 ;
18093 PyObject * obj0 = 0 ;
18094 PyObject * obj1 = 0 ;
18095 char * kwnames[] = {
18096 (char *) "self",(char *) "lineSize", NULL
18097 };
18098
18099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18101 if (!SWIG_IsOK(res1)) {
18102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18103 }
18104 arg1 = reinterpret_cast< wxSlider * >(argp1);
18105 ecode2 = SWIG_AsVal_int(obj1, &val2);
18106 if (!SWIG_IsOK(ecode2)) {
18107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18108 }
18109 arg2 = static_cast< int >(val2);
18110 {
18111 PyThreadState* __tstate = wxPyBeginAllowThreads();
18112 (arg1)->SetLineSize(arg2);
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 resultobj = SWIG_Py_Void();
18117 return resultobj;
18118fail:
18119 return NULL;
18120}
18121
18122
18123SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj = 0;
18125 wxSlider *arg1 = (wxSlider *) 0 ;
18126 int arg2 ;
18127 void *argp1 = 0 ;
18128 int res1 = 0 ;
18129 int val2 ;
18130 int ecode2 = 0 ;
18131 PyObject * obj0 = 0 ;
18132 PyObject * obj1 = 0 ;
18133 char * kwnames[] = {
18134 (char *) "self",(char *) "pageSize", NULL
18135 };
18136
18137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18139 if (!SWIG_IsOK(res1)) {
18140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18141 }
18142 arg1 = reinterpret_cast< wxSlider * >(argp1);
18143 ecode2 = SWIG_AsVal_int(obj1, &val2);
18144 if (!SWIG_IsOK(ecode2)) {
18145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18146 }
18147 arg2 = static_cast< int >(val2);
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 (arg1)->SetPageSize(arg2);
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_Py_Void();
18155 return resultobj;
18156fail:
18157 return NULL;
d14a1e28
RD
18158}
18159
18160
0085ce49
RD
18161SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18162 PyObject *resultobj = 0;
18163 wxSlider *arg1 = (wxSlider *) 0 ;
18164 int result;
18165 void *argp1 = 0 ;
18166 int res1 = 0 ;
18167 PyObject *swig_obj[1] ;
18168
18169 if (!args) SWIG_fail;
18170 swig_obj[0] = args;
18171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18172 if (!SWIG_IsOK(res1)) {
18173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18174 }
18175 arg1 = reinterpret_cast< wxSlider * >(argp1);
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 result = (int)((wxSlider const *)arg1)->GetLineSize();
18179 wxPyEndAllowThreads(__tstate);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 }
18182 resultobj = SWIG_From_int(static_cast< int >(result));
18183 return resultobj;
18184fail:
18185 return NULL;
d14a1e28
RD
18186}
18187
18188
0085ce49
RD
18189SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18190 PyObject *resultobj = 0;
18191 wxSlider *arg1 = (wxSlider *) 0 ;
18192 int result;
18193 void *argp1 = 0 ;
18194 int res1 = 0 ;
18195 PyObject *swig_obj[1] ;
18196
18197 if (!args) SWIG_fail;
18198 swig_obj[0] = args;
18199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18200 if (!SWIG_IsOK(res1)) {
18201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18202 }
18203 arg1 = reinterpret_cast< wxSlider * >(argp1);
18204 {
18205 PyThreadState* __tstate = wxPyBeginAllowThreads();
18206 result = (int)((wxSlider const *)arg1)->GetPageSize();
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 resultobj = SWIG_From_int(static_cast< int >(result));
18211 return resultobj;
18212fail:
18213 return NULL;
18214}
18215
18216
18217SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18218 PyObject *resultobj = 0;
18219 wxSlider *arg1 = (wxSlider *) 0 ;
18220 int arg2 ;
18221 void *argp1 = 0 ;
18222 int res1 = 0 ;
18223 int val2 ;
18224 int ecode2 = 0 ;
18225 PyObject * obj0 = 0 ;
18226 PyObject * obj1 = 0 ;
18227 char * kwnames[] = {
18228 (char *) "self",(char *) "lenPixels", NULL
18229 };
18230
18231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18233 if (!SWIG_IsOK(res1)) {
18234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18235 }
18236 arg1 = reinterpret_cast< wxSlider * >(argp1);
18237 ecode2 = SWIG_AsVal_int(obj1, &val2);
18238 if (!SWIG_IsOK(ecode2)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18240 }
18241 arg2 = static_cast< int >(val2);
18242 {
18243 PyThreadState* __tstate = wxPyBeginAllowThreads();
18244 (arg1)->SetThumbLength(arg2);
18245 wxPyEndAllowThreads(__tstate);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 resultobj = SWIG_Py_Void();
18249 return resultobj;
18250fail:
18251 return NULL;
4d5c3d91
RD
18252}
18253
18254
0085ce49
RD
18255SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18256 PyObject *resultobj = 0;
18257 wxSlider *arg1 = (wxSlider *) 0 ;
18258 int result;
18259 void *argp1 = 0 ;
18260 int res1 = 0 ;
18261 PyObject *swig_obj[1] ;
18262
18263 if (!args) SWIG_fail;
18264 swig_obj[0] = args;
18265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18266 if (!SWIG_IsOK(res1)) {
18267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18268 }
18269 arg1 = reinterpret_cast< wxSlider * >(argp1);
18270 {
18271 PyThreadState* __tstate = wxPyBeginAllowThreads();
18272 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18273 wxPyEndAllowThreads(__tstate);
18274 if (PyErr_Occurred()) SWIG_fail;
18275 }
18276 resultobj = SWIG_From_int(static_cast< int >(result));
18277 return resultobj;
18278fail:
18279 return NULL;
18280}
18281
18282
18283SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18284 PyObject *resultobj = 0;
18285 wxSlider *arg1 = (wxSlider *) 0 ;
18286 int arg2 ;
18287 int arg3 = (int) 1 ;
18288 void *argp1 = 0 ;
18289 int res1 = 0 ;
18290 int val2 ;
18291 int ecode2 = 0 ;
18292 int val3 ;
18293 int ecode3 = 0 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 PyObject * obj2 = 0 ;
18297 char * kwnames[] = {
18298 (char *) "self",(char *) "n",(char *) "pos", NULL
18299 };
18300
18301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18303 if (!SWIG_IsOK(res1)) {
18304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18305 }
18306 arg1 = reinterpret_cast< wxSlider * >(argp1);
18307 ecode2 = SWIG_AsVal_int(obj1, &val2);
18308 if (!SWIG_IsOK(ecode2)) {
18309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18310 }
18311 arg2 = static_cast< int >(val2);
18312 if (obj2) {
18313 ecode3 = SWIG_AsVal_int(obj2, &val3);
18314 if (!SWIG_IsOK(ecode3)) {
18315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18316 }
18317 arg3 = static_cast< int >(val3);
18318 }
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 (arg1)->SetTickFreq(arg2,arg3);
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 resultobj = SWIG_Py_Void();
18326 return resultobj;
18327fail:
18328 return NULL;
4896ac9e
RD
18329}
18330
18331
0085ce49
RD
18332SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18333 PyObject *resultobj = 0;
18334 wxSlider *arg1 = (wxSlider *) 0 ;
18335 int result;
18336 void *argp1 = 0 ;
18337 int res1 = 0 ;
18338 PyObject *swig_obj[1] ;
18339
18340 if (!args) SWIG_fail;
18341 swig_obj[0] = args;
18342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18343 if (!SWIG_IsOK(res1)) {
18344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18345 }
18346 arg1 = reinterpret_cast< wxSlider * >(argp1);
18347 {
18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
18349 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 resultobj = SWIG_From_int(static_cast< int >(result));
18354 return resultobj;
18355fail:
18356 return NULL;
d14a1e28
RD
18357}
18358
18359
0085ce49
RD
18360SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18361 PyObject *resultobj = 0;
18362 wxSlider *arg1 = (wxSlider *) 0 ;
18363 void *argp1 = 0 ;
18364 int res1 = 0 ;
18365 PyObject *swig_obj[1] ;
18366
18367 if (!args) SWIG_fail;
18368 swig_obj[0] = args;
18369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18370 if (!SWIG_IsOK(res1)) {
18371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18372 }
18373 arg1 = reinterpret_cast< wxSlider * >(argp1);
18374 {
18375 PyThreadState* __tstate = wxPyBeginAllowThreads();
18376 (arg1)->ClearTicks();
18377 wxPyEndAllowThreads(__tstate);
18378 if (PyErr_Occurred()) SWIG_fail;
18379 }
18380 resultobj = SWIG_Py_Void();
18381 return resultobj;
18382fail:
18383 return NULL;
18384}
18385
18386
18387SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18388 PyObject *resultobj = 0;
18389 wxSlider *arg1 = (wxSlider *) 0 ;
18390 int arg2 ;
18391 void *argp1 = 0 ;
18392 int res1 = 0 ;
18393 int val2 ;
18394 int ecode2 = 0 ;
18395 PyObject * obj0 = 0 ;
18396 PyObject * obj1 = 0 ;
18397 char * kwnames[] = {
18398 (char *) "self",(char *) "tickPos", NULL
18399 };
18400
18401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18403 if (!SWIG_IsOK(res1)) {
18404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18405 }
18406 arg1 = reinterpret_cast< wxSlider * >(argp1);
18407 ecode2 = SWIG_AsVal_int(obj1, &val2);
18408 if (!SWIG_IsOK(ecode2)) {
18409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18410 }
18411 arg2 = static_cast< int >(val2);
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 (arg1)->SetTick(arg2);
18415 wxPyEndAllowThreads(__tstate);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 }
18418 resultobj = SWIG_Py_Void();
18419 return resultobj;
18420fail:
18421 return NULL;
d14a1e28
RD
18422}
18423
18424
0085ce49
RD
18425SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18426 PyObject *resultobj = 0;
18427 wxSlider *arg1 = (wxSlider *) 0 ;
18428 void *argp1 = 0 ;
18429 int res1 = 0 ;
18430 PyObject *swig_obj[1] ;
18431
18432 if (!args) SWIG_fail;
18433 swig_obj[0] = args;
18434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18435 if (!SWIG_IsOK(res1)) {
18436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18437 }
18438 arg1 = reinterpret_cast< wxSlider * >(argp1);
18439 {
18440 PyThreadState* __tstate = wxPyBeginAllowThreads();
18441 (arg1)->ClearSel();
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_Py_Void();
18446 return resultobj;
18447fail:
18448 return NULL;
d14a1e28
RD
18449}
18450
18451
0085ce49
RD
18452SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18453 PyObject *resultobj = 0;
18454 wxSlider *arg1 = (wxSlider *) 0 ;
18455 int result;
18456 void *argp1 = 0 ;
18457 int res1 = 0 ;
18458 PyObject *swig_obj[1] ;
18459
18460 if (!args) SWIG_fail;
18461 swig_obj[0] = args;
18462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18463 if (!SWIG_IsOK(res1)) {
18464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18465 }
18466 arg1 = reinterpret_cast< wxSlider * >(argp1);
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18470 wxPyEndAllowThreads(__tstate);
18471 if (PyErr_Occurred()) SWIG_fail;
18472 }
18473 resultobj = SWIG_From_int(static_cast< int >(result));
18474 return resultobj;
18475fail:
18476 return NULL;
d14a1e28
RD
18477}
18478
18479
0085ce49
RD
18480SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18481 PyObject *resultobj = 0;
18482 wxSlider *arg1 = (wxSlider *) 0 ;
18483 int result;
18484 void *argp1 = 0 ;
18485 int res1 = 0 ;
18486 PyObject *swig_obj[1] ;
18487
18488 if (!args) SWIG_fail;
18489 swig_obj[0] = args;
18490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18491 if (!SWIG_IsOK(res1)) {
18492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18493 }
18494 arg1 = reinterpret_cast< wxSlider * >(argp1);
18495 {
18496 PyThreadState* __tstate = wxPyBeginAllowThreads();
18497 result = (int)((wxSlider const *)arg1)->GetSelStart();
18498 wxPyEndAllowThreads(__tstate);
18499 if (PyErr_Occurred()) SWIG_fail;
18500 }
18501 resultobj = SWIG_From_int(static_cast< int >(result));
18502 return resultobj;
18503fail:
18504 return NULL;
18505}
18506
18507
18508SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18509 PyObject *resultobj = 0;
18510 wxSlider *arg1 = (wxSlider *) 0 ;
18511 int arg2 ;
18512 int arg3 ;
18513 void *argp1 = 0 ;
18514 int res1 = 0 ;
18515 int val2 ;
18516 int ecode2 = 0 ;
18517 int val3 ;
18518 int ecode3 = 0 ;
18519 PyObject * obj0 = 0 ;
18520 PyObject * obj1 = 0 ;
18521 PyObject * obj2 = 0 ;
18522 char * kwnames[] = {
18523 (char *) "self",(char *) "min",(char *) "max", NULL
18524 };
18525
18526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18528 if (!SWIG_IsOK(res1)) {
18529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18530 }
18531 arg1 = reinterpret_cast< wxSlider * >(argp1);
18532 ecode2 = SWIG_AsVal_int(obj1, &val2);
18533 if (!SWIG_IsOK(ecode2)) {
18534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18535 }
18536 arg2 = static_cast< int >(val2);
18537 ecode3 = SWIG_AsVal_int(obj2, &val3);
18538 if (!SWIG_IsOK(ecode3)) {
18539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18540 }
18541 arg3 = static_cast< int >(val3);
18542 {
18543 PyThreadState* __tstate = wxPyBeginAllowThreads();
18544 (arg1)->SetSelection(arg2,arg3);
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 resultobj = SWIG_Py_Void();
18549 return resultobj;
18550fail:
18551 return NULL;
18552}
18553
18554
18555SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18556 PyObject *resultobj = 0;
18557 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18558 SwigValueWrapper<wxVisualAttributes > result;
18559 int val1 ;
18560 int ecode1 = 0 ;
18561 PyObject * obj0 = 0 ;
18562 char * kwnames[] = {
18563 (char *) "variant", NULL
18564 };
18565
18566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18567 if (obj0) {
18568 ecode1 = SWIG_AsVal_int(obj0, &val1);
18569 if (!SWIG_IsOK(ecode1)) {
18570 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18571 }
18572 arg1 = static_cast< wxWindowVariant >(val1);
18573 }
18574 {
18575 if (!wxPyCheckForApp()) SWIG_fail;
18576 PyThreadState* __tstate = wxPyBeginAllowThreads();
18577 result = wxSlider::GetClassDefaultAttributes(arg1);
18578 wxPyEndAllowThreads(__tstate);
18579 if (PyErr_Occurred()) SWIG_fail;
18580 }
18581 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18582 return resultobj;
18583fail:
18584 return NULL;
d14a1e28
RD
18585}
18586
18587
0085ce49
RD
18588SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18589 PyObject *obj;
18590 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18591 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18592 return SWIG_Py_Void();
d14a1e28
RD
18593}
18594
0085ce49
RD
18595SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18596 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18597}
18598
0085ce49
RD
18599SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18600 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18601 return 1;
d14a1e28
RD
18602}
18603
18604
0085ce49
RD
18605SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18606 PyObject *pyobj = 0;
18607
18608 {
18609#if wxUSE_UNICODE
18610 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18611#else
18612 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18613#endif
18614 }
18615 return pyobj;
18616}
18617
18618
18619SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18620 PyObject *resultobj = 0;
18621 wxWindow *arg1 = (wxWindow *) 0 ;
18622 int arg2 = (int) -1 ;
18623 wxString const &arg3_defvalue = wxPyEmptyString ;
18624 wxString *arg3 = (wxString *) &arg3_defvalue ;
18625 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18626 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18627 wxSize const &arg5_defvalue = wxDefaultSize ;
18628 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18629 long arg6 = (long) 0 ;
18630 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18631 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18632 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18633 wxString *arg8 = (wxString *) &arg8_defvalue ;
18634 wxToggleButton *result = 0 ;
18635 void *argp1 = 0 ;
18636 int res1 = 0 ;
18637 int val2 ;
18638 int ecode2 = 0 ;
18639 bool temp3 = false ;
18640 wxPoint temp4 ;
18641 wxSize temp5 ;
18642 long val6 ;
18643 int ecode6 = 0 ;
18644 void *argp7 = 0 ;
18645 int res7 = 0 ;
18646 bool temp8 = false ;
18647 PyObject * obj0 = 0 ;
18648 PyObject * obj1 = 0 ;
18649 PyObject * obj2 = 0 ;
18650 PyObject * obj3 = 0 ;
18651 PyObject * obj4 = 0 ;
18652 PyObject * obj5 = 0 ;
18653 PyObject * obj6 = 0 ;
18654 PyObject * obj7 = 0 ;
18655 char * kwnames[] = {
18656 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18657 };
18658
18659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18661 if (!SWIG_IsOK(res1)) {
18662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18663 }
18664 arg1 = reinterpret_cast< wxWindow * >(argp1);
18665 if (obj1) {
18666 ecode2 = SWIG_AsVal_int(obj1, &val2);
18667 if (!SWIG_IsOK(ecode2)) {
18668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18669 }
18670 arg2 = static_cast< int >(val2);
18671 }
18672 if (obj2) {
d14a1e28 18673 {
0085ce49
RD
18674 arg3 = wxString_in_helper(obj2);
18675 if (arg3 == NULL) SWIG_fail;
18676 temp3 = true;
d14a1e28 18677 }
0085ce49
RD
18678 }
18679 if (obj3) {
4f89f6a3 18680 {
0085ce49
RD
18681 arg4 = &temp4;
18682 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 18683 }
0085ce49
RD
18684 }
18685 if (obj4) {
d14a1e28 18686 {
0085ce49
RD
18687 arg5 = &temp5;
18688 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18689 }
0085ce49
RD
18690 }
18691 if (obj5) {
18692 ecode6 = SWIG_AsVal_long(obj5, &val6);
18693 if (!SWIG_IsOK(ecode6)) {
18694 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18695 }
18696 arg6 = static_cast< long >(val6);
18697 }
18698 if (obj6) {
18699 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18700 if (!SWIG_IsOK(res7)) {
18701 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 18702 }
0085ce49
RD
18703 if (!argp7) {
18704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 18705 }
0085ce49
RD
18706 arg7 = reinterpret_cast< wxValidator * >(argp7);
18707 }
18708 if (obj7) {
d14a1e28 18709 {
0085ce49
RD
18710 arg8 = wxString_in_helper(obj7);
18711 if (arg8 == NULL) SWIG_fail;
18712 temp8 = true;
d14a1e28 18713 }
0085ce49
RD
18714 }
18715 {
18716 if (!wxPyCheckForApp()) SWIG_fail;
18717 PyThreadState* __tstate = wxPyBeginAllowThreads();
18718 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18719 wxPyEndAllowThreads(__tstate);
18720 if (PyErr_Occurred()) SWIG_fail;
18721 }
18722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18723 {
18724 if (temp3)
18725 delete arg3;
18726 }
18727 {
18728 if (temp8)
18729 delete arg8;
18730 }
18731 return resultobj;
18732fail:
18733 {
18734 if (temp3)
18735 delete arg3;
18736 }
18737 {
18738 if (temp8)
18739 delete arg8;
18740 }
18741 return NULL;
d14a1e28
RD
18742}
18743
18744
0085ce49
RD
18745SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18746 PyObject *resultobj = 0;
18747 wxToggleButton *result = 0 ;
18748
18749 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18750 {
18751 if (!wxPyCheckForApp()) SWIG_fail;
18752 PyThreadState* __tstate = wxPyBeginAllowThreads();
18753 result = (wxToggleButton *)new wxToggleButton();
18754 wxPyEndAllowThreads(__tstate);
18755 if (PyErr_Occurred()) SWIG_fail;
18756 }
18757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18758 return resultobj;
18759fail:
18760 return NULL;
18761}
18762
18763
18764SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18765 PyObject *resultobj = 0;
18766 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18767 wxWindow *arg2 = (wxWindow *) 0 ;
18768 int arg3 = (int) -1 ;
18769 wxString const &arg4_defvalue = wxPyEmptyString ;
18770 wxString *arg4 = (wxString *) &arg4_defvalue ;
18771 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18772 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18773 wxSize const &arg6_defvalue = wxDefaultSize ;
18774 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18775 long arg7 = (long) 0 ;
18776 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18777 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18778 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18779 wxString *arg9 = (wxString *) &arg9_defvalue ;
18780 bool result;
18781 void *argp1 = 0 ;
18782 int res1 = 0 ;
18783 void *argp2 = 0 ;
18784 int res2 = 0 ;
18785 int val3 ;
18786 int ecode3 = 0 ;
18787 bool temp4 = false ;
18788 wxPoint temp5 ;
18789 wxSize temp6 ;
18790 long val7 ;
18791 int ecode7 = 0 ;
18792 void *argp8 = 0 ;
18793 int res8 = 0 ;
18794 bool temp9 = false ;
18795 PyObject * obj0 = 0 ;
18796 PyObject * obj1 = 0 ;
18797 PyObject * obj2 = 0 ;
18798 PyObject * obj3 = 0 ;
18799 PyObject * obj4 = 0 ;
18800 PyObject * obj5 = 0 ;
18801 PyObject * obj6 = 0 ;
18802 PyObject * obj7 = 0 ;
18803 PyObject * obj8 = 0 ;
18804 char * kwnames[] = {
18805 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18806 };
18807
18808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18810 if (!SWIG_IsOK(res1)) {
18811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18812 }
18813 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18814 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18815 if (!SWIG_IsOK(res2)) {
18816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18817 }
18818 arg2 = reinterpret_cast< wxWindow * >(argp2);
18819 if (obj2) {
18820 ecode3 = SWIG_AsVal_int(obj2, &val3);
18821 if (!SWIG_IsOK(ecode3)) {
18822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18823 }
18824 arg3 = static_cast< int >(val3);
18825 }
18826 if (obj3) {
d14a1e28 18827 {
0085ce49
RD
18828 arg4 = wxString_in_helper(obj3);
18829 if (arg4 == NULL) SWIG_fail;
18830 temp4 = true;
d14a1e28 18831 }
0085ce49
RD
18832 }
18833 if (obj4) {
d14a1e28 18834 {
0085ce49
RD
18835 arg5 = &temp5;
18836 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18837 }
0085ce49
RD
18838 }
18839 if (obj5) {
093d3ff1 18840 {
0085ce49
RD
18841 arg6 = &temp6;
18842 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 18843 }
0085ce49
RD
18844 }
18845 if (obj6) {
18846 ecode7 = SWIG_AsVal_long(obj6, &val7);
18847 if (!SWIG_IsOK(ecode7)) {
18848 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18849 }
18850 arg7 = static_cast< long >(val7);
18851 }
18852 if (obj7) {
18853 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18854 if (!SWIG_IsOK(res8)) {
18855 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18856 }
18857 if (!argp8) {
18858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 18859 }
0085ce49
RD
18860 arg8 = reinterpret_cast< wxValidator * >(argp8);
18861 }
18862 if (obj8) {
093d3ff1 18863 {
0085ce49
RD
18864 arg9 = wxString_in_helper(obj8);
18865 if (arg9 == NULL) SWIG_fail;
18866 temp9 = true;
093d3ff1 18867 }
0085ce49
RD
18868 }
18869 {
18870 PyThreadState* __tstate = wxPyBeginAllowThreads();
18871 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18872 wxPyEndAllowThreads(__tstate);
18873 if (PyErr_Occurred()) SWIG_fail;
18874 }
18875 {
18876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18877 }
18878 {
18879 if (temp4)
18880 delete arg4;
18881 }
18882 {
18883 if (temp9)
18884 delete arg9;
18885 }
18886 return resultobj;
18887fail:
18888 {
18889 if (temp4)
18890 delete arg4;
18891 }
18892 {
18893 if (temp9)
18894 delete arg9;
18895 }
18896 return NULL;
18897}
18898
18899
18900SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18901 PyObject *resultobj = 0;
18902 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18903 bool arg2 ;
18904 void *argp1 = 0 ;
18905 int res1 = 0 ;
18906 bool val2 ;
18907 int ecode2 = 0 ;
18908 PyObject * obj0 = 0 ;
18909 PyObject * obj1 = 0 ;
18910 char * kwnames[] = {
18911 (char *) "self",(char *) "value", NULL
18912 };
18913
18914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18916 if (!SWIG_IsOK(res1)) {
18917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18918 }
18919 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18920 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18921 if (!SWIG_IsOK(ecode2)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18923 }
18924 arg2 = static_cast< bool >(val2);
18925 {
18926 PyThreadState* __tstate = wxPyBeginAllowThreads();
18927 (arg1)->SetValue(arg2);
18928 wxPyEndAllowThreads(__tstate);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
18931 resultobj = SWIG_Py_Void();
18932 return resultobj;
18933fail:
18934 return NULL;
d14a1e28
RD
18935}
18936
18937
0085ce49
RD
18938SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18939 PyObject *resultobj = 0;
18940 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18941 bool result;
18942 void *argp1 = 0 ;
18943 int res1 = 0 ;
18944 PyObject *swig_obj[1] ;
18945
18946 if (!args) SWIG_fail;
18947 swig_obj[0] = args;
18948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18949 if (!SWIG_IsOK(res1)) {
18950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18951 }
18952 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18953 {
18954 PyThreadState* __tstate = wxPyBeginAllowThreads();
18955 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18956 wxPyEndAllowThreads(__tstate);
18957 if (PyErr_Occurred()) SWIG_fail;
18958 }
18959 {
18960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18961 }
18962 return resultobj;
18963fail:
18964 return NULL;
d14a1e28
RD
18965}
18966
18967
0085ce49
RD
18968SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18969 PyObject *resultobj = 0;
18970 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18971 SwigValueWrapper<wxVisualAttributes > result;
18972 int val1 ;
18973 int ecode1 = 0 ;
18974 PyObject * obj0 = 0 ;
18975 char * kwnames[] = {
18976 (char *) "variant", NULL
18977 };
18978
18979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18980 if (obj0) {
18981 ecode1 = SWIG_AsVal_int(obj0, &val1);
18982 if (!SWIG_IsOK(ecode1)) {
18983 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18984 }
18985 arg1 = static_cast< wxWindowVariant >(val1);
18986 }
18987 {
18988 if (!wxPyCheckForApp()) SWIG_fail;
18989 PyThreadState* __tstate = wxPyBeginAllowThreads();
18990 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18991 wxPyEndAllowThreads(__tstate);
18992 if (PyErr_Occurred()) SWIG_fail;
18993 }
18994 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18995 return resultobj;
18996fail:
18997 return NULL;
d14a1e28
RD
18998}
18999
19000
0085ce49
RD
19001SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19002 PyObject *obj;
19003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19004 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19005 return SWIG_Py_Void();
d14a1e28
RD
19006}
19007
0085ce49
RD
19008SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19009 return SWIG_Python_InitShadowInstance(args);
19010}
d14a1e28 19011
0085ce49
RD
19012SWIGINTERN int NotebookNameStr_set(PyObject *) {
19013 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19014 return 1;
d14a1e28
RD
19015}
19016
19017
0085ce49
RD
19018SWIGINTERN PyObject *NotebookNameStr_get(void) {
19019 PyObject *pyobj = 0;
19020
19021 {
d14a1e28 19022#if wxUSE_UNICODE
0085ce49 19023 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19024#else
0085ce49 19025 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19026#endif
0085ce49
RD
19027 }
19028 return pyobj;
d14a1e28
RD
19029}
19030
19031
0085ce49
RD
19032SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19033 PyObject *resultobj = 0;
19034 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19035 size_t result;
19036 void *argp1 = 0 ;
19037 int res1 = 0 ;
19038 PyObject *swig_obj[1] ;
19039
19040 if (!args) SWIG_fail;
19041 swig_obj[0] = args;
19042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19043 if (!SWIG_IsOK(res1)) {
19044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19045 }
19046 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19047 {
19048 PyThreadState* __tstate = wxPyBeginAllowThreads();
19049 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19050 wxPyEndAllowThreads(__tstate);
19051 if (PyErr_Occurred()) SWIG_fail;
19052 }
19053 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19054 return resultobj;
19055fail:
19056 return NULL;
19057}
19058
19059
19060SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19061 PyObject *resultobj = 0;
19062 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19063 size_t arg2 ;
19064 wxWindow *result = 0 ;
19065 void *argp1 = 0 ;
19066 int res1 = 0 ;
19067 size_t val2 ;
19068 int ecode2 = 0 ;
19069 PyObject * obj0 = 0 ;
19070 PyObject * obj1 = 0 ;
19071 char * kwnames[] = {
19072 (char *) "self",(char *) "n", NULL
19073 };
19074
19075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19077 if (!SWIG_IsOK(res1)) {
19078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19079 }
19080 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19081 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19082 if (!SWIG_IsOK(ecode2)) {
19083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19084 }
19085 arg2 = static_cast< size_t >(val2);
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 result = (wxWindow *)(arg1)->GetPage(arg2);
19089 wxPyEndAllowThreads(__tstate);
19090 if (PyErr_Occurred()) SWIG_fail;
19091 }
19092 {
19093 resultobj = wxPyMake_wxObject(result, 0);
19094 }
19095 return resultobj;
19096fail:
19097 return NULL;
22bfe96c
RD
19098}
19099
19100
0085ce49
RD
19101SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19102 PyObject *resultobj = 0;
19103 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19104 wxWindow *result = 0 ;
19105 void *argp1 = 0 ;
19106 int res1 = 0 ;
19107 PyObject *swig_obj[1] ;
19108
19109 if (!args) SWIG_fail;
19110 swig_obj[0] = args;
19111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19114 }
19115 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19116 {
19117 PyThreadState* __tstate = wxPyBeginAllowThreads();
19118 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 {
19123 resultobj = wxPyMake_wxObject(result, 0);
19124 }
19125 return resultobj;
19126fail:
19127 return NULL;
d14a1e28
RD
19128}
19129
19130
0085ce49
RD
19131SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19132 PyObject *resultobj = 0;
19133 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19134 int result;
19135 void *argp1 = 0 ;
19136 int res1 = 0 ;
19137 PyObject *swig_obj[1] ;
19138
19139 if (!args) SWIG_fail;
19140 swig_obj[0] = args;
19141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19142 if (!SWIG_IsOK(res1)) {
19143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19144 }
19145 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19146 {
19147 PyThreadState* __tstate = wxPyBeginAllowThreads();
19148 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19149 wxPyEndAllowThreads(__tstate);
19150 if (PyErr_Occurred()) SWIG_fail;
19151 }
19152 resultobj = SWIG_From_int(static_cast< int >(result));
19153 return resultobj;
19154fail:
19155 return NULL;
19156}
19157
19158
19159SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19160 PyObject *resultobj = 0;
19161 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19162 size_t arg2 ;
19163 wxString *arg3 = 0 ;
19164 bool result;
19165 void *argp1 = 0 ;
19166 int res1 = 0 ;
19167 size_t val2 ;
19168 int ecode2 = 0 ;
19169 bool temp3 = false ;
19170 PyObject * obj0 = 0 ;
19171 PyObject * obj1 = 0 ;
19172 PyObject * obj2 = 0 ;
19173 char * kwnames[] = {
19174 (char *) "self",(char *) "n",(char *) "strText", NULL
19175 };
19176
19177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19179 if (!SWIG_IsOK(res1)) {
19180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19181 }
19182 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19183 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19184 if (!SWIG_IsOK(ecode2)) {
19185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19186 }
19187 arg2 = static_cast< size_t >(val2);
19188 {
19189 arg3 = wxString_in_helper(obj2);
19190 if (arg3 == NULL) SWIG_fail;
19191 temp3 = true;
19192 }
19193 {
19194 PyThreadState* __tstate = wxPyBeginAllowThreads();
19195 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19196 wxPyEndAllowThreads(__tstate);
19197 if (PyErr_Occurred()) SWIG_fail;
19198 }
19199 {
19200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19201 }
19202 {
19203 if (temp3)
19204 delete arg3;
19205 }
19206 return resultobj;
19207fail:
19208 {
19209 if (temp3)
19210 delete arg3;
19211 }
19212 return NULL;
19213}
19214
19215
19216SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19217 PyObject *resultobj = 0;
19218 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19219 size_t arg2 ;
19220 wxString result;
19221 void *argp1 = 0 ;
19222 int res1 = 0 ;
19223 size_t val2 ;
19224 int ecode2 = 0 ;
19225 PyObject * obj0 = 0 ;
19226 PyObject * obj1 = 0 ;
19227 char * kwnames[] = {
19228 (char *) "self",(char *) "n", NULL
19229 };
19230
19231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19233 if (!SWIG_IsOK(res1)) {
19234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19235 }
19236 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19237 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19238 if (!SWIG_IsOK(ecode2)) {
19239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19240 }
19241 arg2 = static_cast< size_t >(val2);
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 {
19249#if wxUSE_UNICODE
19250 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19251#else
19252 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19253#endif
19254 }
19255 return resultobj;
19256fail:
19257 return NULL;
19258}
19259
19260
19261SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19262 PyObject *resultobj = 0;
19263 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19264 wxImageList *arg2 = (wxImageList *) 0 ;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 void *argp2 = 0 ;
19268 int res2 = 0 ;
19269 PyObject * obj0 = 0 ;
19270 PyObject * obj1 = 0 ;
19271 char * kwnames[] = {
19272 (char *) "self",(char *) "imageList", NULL
19273 };
19274
19275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19277 if (!SWIG_IsOK(res1)) {
19278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19279 }
19280 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19282 if (!SWIG_IsOK(res2)) {
19283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19284 }
19285 arg2 = reinterpret_cast< wxImageList * >(argp2);
19286 {
19287 PyThreadState* __tstate = wxPyBeginAllowThreads();
19288 (arg1)->SetImageList(arg2);
19289 wxPyEndAllowThreads(__tstate);
19290 if (PyErr_Occurred()) SWIG_fail;
19291 }
19292 resultobj = SWIG_Py_Void();
19293 return resultobj;
19294fail:
19295 return NULL;
19296}
19297
19298
19299SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19300 PyObject *resultobj = 0;
19301 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19302 wxImageList *arg2 = (wxImageList *) 0 ;
19303 void *argp1 = 0 ;
19304 int res1 = 0 ;
19305 int res2 = 0 ;
19306 PyObject * obj0 = 0 ;
19307 PyObject * obj1 = 0 ;
19308 char * kwnames[] = {
19309 (char *) "self",(char *) "imageList", NULL
19310 };
19311
19312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19314 if (!SWIG_IsOK(res1)) {
19315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19316 }
19317 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19318 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19319 if (!SWIG_IsOK(res2)) {
19320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19321 }
19322 {
19323 PyThreadState* __tstate = wxPyBeginAllowThreads();
19324 (arg1)->AssignImageList(arg2);
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
19328 resultobj = SWIG_Py_Void();
19329 return resultobj;
19330fail:
19331 return NULL;
d14a1e28
RD
19332}
19333
19334
0085ce49
RD
19335SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19336 PyObject *resultobj = 0;
19337 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19338 wxImageList *result = 0 ;
19339 void *argp1 = 0 ;
19340 int res1 = 0 ;
19341 PyObject *swig_obj[1] ;
19342
19343 if (!args) SWIG_fail;
19344 swig_obj[0] = args;
19345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19346 if (!SWIG_IsOK(res1)) {
19347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19348 }
19349 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19350 {
19351 PyThreadState* __tstate = wxPyBeginAllowThreads();
19352 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19353 wxPyEndAllowThreads(__tstate);
19354 if (PyErr_Occurred()) SWIG_fail;
19355 }
19356 {
19357 resultobj = wxPyMake_wxObject(result, (bool)0);
19358 }
19359 return resultobj;
19360fail:
19361 return NULL;
19362}
19363
19364
19365SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19366 PyObject *resultobj = 0;
19367 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19368 size_t arg2 ;
19369 int result;
19370 void *argp1 = 0 ;
19371 int res1 = 0 ;
19372 size_t val2 ;
19373 int ecode2 = 0 ;
19374 PyObject * obj0 = 0 ;
19375 PyObject * obj1 = 0 ;
19376 char * kwnames[] = {
19377 (char *) "self",(char *) "n", NULL
19378 };
19379
19380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19382 if (!SWIG_IsOK(res1)) {
19383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19384 }
19385 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19386 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19387 if (!SWIG_IsOK(ecode2)) {
19388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19389 }
19390 arg2 = static_cast< size_t >(val2);
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19394 wxPyEndAllowThreads(__tstate);
19395 if (PyErr_Occurred()) SWIG_fail;
19396 }
19397 resultobj = SWIG_From_int(static_cast< int >(result));
19398 return resultobj;
19399fail:
19400 return NULL;
19401}
19402
19403
19404SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19405 PyObject *resultobj = 0;
19406 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19407 size_t arg2 ;
19408 int arg3 ;
19409 bool result;
19410 void *argp1 = 0 ;
19411 int res1 = 0 ;
19412 size_t val2 ;
19413 int ecode2 = 0 ;
19414 int val3 ;
19415 int ecode3 = 0 ;
19416 PyObject * obj0 = 0 ;
19417 PyObject * obj1 = 0 ;
19418 PyObject * obj2 = 0 ;
19419 char * kwnames[] = {
19420 (char *) "self",(char *) "n",(char *) "imageId", NULL
19421 };
19422
19423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19425 if (!SWIG_IsOK(res1)) {
19426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19427 }
19428 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19429 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19430 if (!SWIG_IsOK(ecode2)) {
19431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19432 }
19433 arg2 = static_cast< size_t >(val2);
19434 ecode3 = SWIG_AsVal_int(obj2, &val3);
19435 if (!SWIG_IsOK(ecode3)) {
19436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19437 }
19438 arg3 = static_cast< int >(val3);
19439 {
19440 PyThreadState* __tstate = wxPyBeginAllowThreads();
19441 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 {
19446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19447 }
19448 return resultobj;
19449fail:
19450 return NULL;
19451}
19452
19453
19454SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19455 PyObject *resultobj = 0;
19456 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19457 wxSize *arg2 = 0 ;
19458 void *argp1 = 0 ;
19459 int res1 = 0 ;
19460 wxSize temp2 ;
19461 PyObject * obj0 = 0 ;
19462 PyObject * obj1 = 0 ;
19463 char * kwnames[] = {
19464 (char *) "self",(char *) "size", NULL
19465 };
19466
19467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19469 if (!SWIG_IsOK(res1)) {
19470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19471 }
19472 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19473 {
19474 arg2 = &temp2;
19475 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19476 }
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
19479 (arg1)->SetPageSize((wxSize const &)*arg2);
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 resultobj = SWIG_Py_Void();
19484 return resultobj;
19485fail:
19486 return NULL;
19487}
19488
19489
19490SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19491 PyObject *resultobj = 0;
19492 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19493 wxSize *arg2 = 0 ;
19494 wxSize result;
19495 void *argp1 = 0 ;
19496 int res1 = 0 ;
19497 wxSize temp2 ;
19498 PyObject * obj0 = 0 ;
19499 PyObject * obj1 = 0 ;
19500 char * kwnames[] = {
19501 (char *) "self",(char *) "sizePage", NULL
19502 };
19503
19504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19506 if (!SWIG_IsOK(res1)) {
19507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19508 }
19509 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19510 {
19511 arg2 = &temp2;
19512 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19513 }
19514 {
19515 PyThreadState* __tstate = wxPyBeginAllowThreads();
19516 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19517 wxPyEndAllowThreads(__tstate);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 }
19520 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19521 return resultobj;
19522fail:
19523 return NULL;
d14a1e28
RD
19524}
19525
19526
0085ce49
RD
19527SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19528 PyObject *resultobj = 0;
19529 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19530 unsigned int result;
0085ce49
RD
19531 void *argp1 = 0 ;
19532 int res1 = 0 ;
19533 PyObject *swig_obj[1] ;
19534
19535 if (!args) SWIG_fail;
19536 swig_obj[0] = args;
19537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19540 }
19541 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19542 {
19543 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19544 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
0085ce49
RD
19545 wxPyEndAllowThreads(__tstate);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
e9d6f3a4 19548 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
19549 return resultobj;
19550fail:
19551 return NULL;
19552}
19553
19554
19555SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj = 0;
19557 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19558 unsigned int arg2 ;
0085ce49
RD
19559 void *argp1 = 0 ;
19560 int res1 = 0 ;
e9d6f3a4 19561 unsigned int val2 ;
0085ce49
RD
19562 int ecode2 = 0 ;
19563 PyObject * obj0 = 0 ;
19564 PyObject * obj1 = 0 ;
19565 char * kwnames[] = {
19566 (char *) "self",(char *) "internalBorder", NULL
19567 };
19568
19569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19573 }
19574 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19575 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 19576 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 19578 }
e9d6f3a4 19579 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
19580 {
19581 PyThreadState* __tstate = wxPyBeginAllowThreads();
19582 (arg1)->SetInternalBorder(arg2);
19583 wxPyEndAllowThreads(__tstate);
19584 if (PyErr_Occurred()) SWIG_fail;
19585 }
19586 resultobj = SWIG_Py_Void();
19587 return resultobj;
19588fail:
19589 return NULL;
b2dc1044
RD
19590}
19591
19592
0085ce49
RD
19593SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19594 PyObject *resultobj = 0;
19595 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19596 bool result;
19597 void *argp1 = 0 ;
19598 int res1 = 0 ;
19599 PyObject *swig_obj[1] ;
19600
19601 if (!args) SWIG_fail;
19602 swig_obj[0] = args;
19603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19604 if (!SWIG_IsOK(res1)) {
19605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19606 }
19607 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19608 {
19609 PyThreadState* __tstate = wxPyBeginAllowThreads();
19610 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19611 wxPyEndAllowThreads(__tstate);
19612 if (PyErr_Occurred()) SWIG_fail;
19613 }
19614 {
19615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19616 }
19617 return resultobj;
19618fail:
19619 return NULL;
19620}
19621
19622
e9d6f3a4
RD
19623SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj = 0;
19625 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19626 int arg2 ;
19627 void *argp1 = 0 ;
19628 int res1 = 0 ;
19629 int val2 ;
19630 int ecode2 = 0 ;
19631 PyObject * obj0 = 0 ;
19632 PyObject * obj1 = 0 ;
19633 char * kwnames[] = {
19634 (char *) "self",(char *) "margin", NULL
19635 };
19636
19637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19639 if (!SWIG_IsOK(res1)) {
19640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19641 }
19642 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19643 ecode2 = SWIG_AsVal_int(obj1, &val2);
19644 if (!SWIG_IsOK(ecode2)) {
19645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19646 }
19647 arg2 = static_cast< int >(val2);
19648 {
19649 PyThreadState* __tstate = wxPyBeginAllowThreads();
19650 (arg1)->SetControlMargin(arg2);
19651 wxPyEndAllowThreads(__tstate);
19652 if (PyErr_Occurred()) SWIG_fail;
19653 }
19654 resultobj = SWIG_Py_Void();
19655 return resultobj;
19656fail:
19657 return NULL;
19658}
19659
19660
19661SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19662 PyObject *resultobj = 0;
19663 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19664 int result;
19665 void *argp1 = 0 ;
19666 int res1 = 0 ;
19667 PyObject *swig_obj[1] ;
19668
19669 if (!args) SWIG_fail;
19670 swig_obj[0] = args;
19671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19672 if (!SWIG_IsOK(res1)) {
19673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19674 }
19675 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19676 {
19677 PyThreadState* __tstate = wxPyBeginAllowThreads();
19678 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 resultobj = SWIG_From_int(static_cast< int >(result));
19683 return resultobj;
19684fail:
19685 return NULL;
19686}
19687
19688
0085ce49
RD
19689SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19690 PyObject *resultobj = 0;
19691 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19692 bool arg2 ;
19693 void *argp1 = 0 ;
19694 int res1 = 0 ;
19695 bool val2 ;
19696 int ecode2 = 0 ;
19697 PyObject * obj0 = 0 ;
19698 PyObject * obj1 = 0 ;
19699 char * kwnames[] = {
19700 (char *) "self",(char *) "fit", NULL
19701 };
19702
19703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19705 if (!SWIG_IsOK(res1)) {
19706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19707 }
19708 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19709 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19710 if (!SWIG_IsOK(ecode2)) {
19711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19712 }
19713 arg2 = static_cast< bool >(val2);
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 (arg1)->SetFitToCurrentPage(arg2);
19717 wxPyEndAllowThreads(__tstate);
19718 if (PyErr_Occurred()) SWIG_fail;
19719 }
19720 resultobj = SWIG_Py_Void();
19721 return resultobj;
19722fail:
19723 return NULL;
d14a1e28
RD
19724}
19725
19726
0085ce49
RD
19727SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19728 PyObject *resultobj = 0;
19729 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19730 bool result;
19731 void *argp1 = 0 ;
19732 int res1 = 0 ;
19733 PyObject *swig_obj[1] ;
19734
19735 if (!args) SWIG_fail;
19736 swig_obj[0] = args;
19737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19738 if (!SWIG_IsOK(res1)) {
19739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19740 }
19741 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19745 wxPyEndAllowThreads(__tstate);
19746 if (PyErr_Occurred()) SWIG_fail;
19747 }
19748 {
19749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19750 }
19751 return resultobj;
19752fail:
19753 return NULL;
19754}
19755
19756
e9d6f3a4
RD
19757SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19758 PyObject *resultobj = 0;
19759 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19760 wxSizer *result = 0 ;
19761 void *argp1 = 0 ;
19762 int res1 = 0 ;
19763 PyObject *swig_obj[1] ;
19764
19765 if (!args) SWIG_fail;
19766 swig_obj[0] = args;
19767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19768 if (!SWIG_IsOK(res1)) {
19769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19770 }
19771 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19772 {
19773 PyThreadState* __tstate = wxPyBeginAllowThreads();
19774 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19775 wxPyEndAllowThreads(__tstate);
19776 if (PyErr_Occurred()) SWIG_fail;
19777 }
19778 {
19779 resultobj = wxPyMake_wxObject(result, (bool)0);
19780 }
19781 return resultobj;
19782fail:
19783 return NULL;
19784}
19785
19786
0085ce49
RD
19787SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj = 0;
19789 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19790 size_t arg2 ;
19791 bool result;
19792 void *argp1 = 0 ;
19793 int res1 = 0 ;
19794 size_t val2 ;
19795 int ecode2 = 0 ;
19796 PyObject * obj0 = 0 ;
19797 PyObject * obj1 = 0 ;
19798 char * kwnames[] = {
19799 (char *) "self",(char *) "n", NULL
19800 };
19801
19802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19804 if (!SWIG_IsOK(res1)) {
19805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19806 }
19807 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19808 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19809 if (!SWIG_IsOK(ecode2)) {
19810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19811 }
19812 arg2 = static_cast< size_t >(val2);
19813 {
19814 PyThreadState* __tstate = wxPyBeginAllowThreads();
19815 result = (bool)(arg1)->DeletePage(arg2);
19816 wxPyEndAllowThreads(__tstate);
19817 if (PyErr_Occurred()) SWIG_fail;
19818 }
19819 {
19820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19821 }
19822 return resultobj;
19823fail:
19824 return NULL;
19825}
19826
19827
19828SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj = 0;
19830 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19831 size_t arg2 ;
19832 bool result;
19833 void *argp1 = 0 ;
19834 int res1 = 0 ;
19835 size_t val2 ;
19836 int ecode2 = 0 ;
19837 PyObject * obj0 = 0 ;
19838 PyObject * obj1 = 0 ;
19839 char * kwnames[] = {
19840 (char *) "self",(char *) "n", NULL
19841 };
19842
19843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19845 if (!SWIG_IsOK(res1)) {
19846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19847 }
19848 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19849 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19850 if (!SWIG_IsOK(ecode2)) {
19851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19852 }
19853 arg2 = static_cast< size_t >(val2);
19854 {
19855 PyThreadState* __tstate = wxPyBeginAllowThreads();
19856 result = (bool)(arg1)->RemovePage(arg2);
19857 wxPyEndAllowThreads(__tstate);
19858 if (PyErr_Occurred()) SWIG_fail;
19859 }
19860 {
19861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19862 }
19863 return resultobj;
19864fail:
19865 return NULL;
d14a1e28
RD
19866}
19867
19868
0085ce49
RD
19869SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19870 PyObject *resultobj = 0;
19871 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19872 bool result;
19873 void *argp1 = 0 ;
19874 int res1 = 0 ;
19875 PyObject *swig_obj[1] ;
19876
19877 if (!args) SWIG_fail;
19878 swig_obj[0] = args;
19879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19880 if (!SWIG_IsOK(res1)) {
19881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19882 }
19883 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19884 {
19885 PyThreadState* __tstate = wxPyBeginAllowThreads();
19886 result = (bool)(arg1)->DeleteAllPages();
19887 wxPyEndAllowThreads(__tstate);
19888 if (PyErr_Occurred()) SWIG_fail;
19889 }
19890 {
19891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19892 }
19893 return resultobj;
19894fail:
19895 return NULL;
19896}
19897
19898
19899SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19900 PyObject *resultobj = 0;
19901 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19902 wxWindow *arg2 = (wxWindow *) 0 ;
19903 wxString *arg3 = 0 ;
19904 bool arg4 = (bool) false ;
19905 int arg5 = (int) -1 ;
19906 bool result;
19907 void *argp1 = 0 ;
19908 int res1 = 0 ;
19909 void *argp2 = 0 ;
19910 int res2 = 0 ;
19911 bool temp3 = false ;
19912 bool val4 ;
19913 int ecode4 = 0 ;
19914 int val5 ;
19915 int ecode5 = 0 ;
19916 PyObject * obj0 = 0 ;
19917 PyObject * obj1 = 0 ;
19918 PyObject * obj2 = 0 ;
19919 PyObject * obj3 = 0 ;
19920 PyObject * obj4 = 0 ;
19921 char * kwnames[] = {
19922 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19923 };
19924
19925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19927 if (!SWIG_IsOK(res1)) {
19928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19929 }
19930 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19932 if (!SWIG_IsOK(res2)) {
19933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19934 }
19935 arg2 = reinterpret_cast< wxWindow * >(argp2);
19936 {
19937 arg3 = wxString_in_helper(obj2);
19938 if (arg3 == NULL) SWIG_fail;
19939 temp3 = true;
19940 }
19941 if (obj3) {
19942 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19943 if (!SWIG_IsOK(ecode4)) {
19944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19945 }
19946 arg4 = static_cast< bool >(val4);
19947 }
19948 if (obj4) {
19949 ecode5 = SWIG_AsVal_int(obj4, &val5);
19950 if (!SWIG_IsOK(ecode5)) {
19951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19952 }
19953 arg5 = static_cast< int >(val5);
19954 }
19955 {
19956 PyThreadState* __tstate = wxPyBeginAllowThreads();
19957 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19958 wxPyEndAllowThreads(__tstate);
19959 if (PyErr_Occurred()) SWIG_fail;
19960 }
19961 {
19962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19963 }
19964 {
19965 if (temp3)
19966 delete arg3;
19967 }
19968 return resultobj;
19969fail:
19970 {
19971 if (temp3)
19972 delete arg3;
19973 }
19974 return NULL;
19975}
19976
19977
19978SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19979 PyObject *resultobj = 0;
19980 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19981 size_t arg2 ;
19982 wxWindow *arg3 = (wxWindow *) 0 ;
19983 wxString *arg4 = 0 ;
19984 bool arg5 = (bool) false ;
19985 int arg6 = (int) -1 ;
19986 bool result;
19987 void *argp1 = 0 ;
19988 int res1 = 0 ;
19989 size_t val2 ;
19990 int ecode2 = 0 ;
19991 void *argp3 = 0 ;
19992 int res3 = 0 ;
19993 bool temp4 = false ;
19994 bool val5 ;
19995 int ecode5 = 0 ;
19996 int val6 ;
19997 int ecode6 = 0 ;
19998 PyObject * obj0 = 0 ;
19999 PyObject * obj1 = 0 ;
20000 PyObject * obj2 = 0 ;
20001 PyObject * obj3 = 0 ;
20002 PyObject * obj4 = 0 ;
20003 PyObject * obj5 = 0 ;
20004 char * kwnames[] = {
20005 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20006 };
20007
20008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20010 if (!SWIG_IsOK(res1)) {
20011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20012 }
20013 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20014 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20015 if (!SWIG_IsOK(ecode2)) {
20016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20017 }
20018 arg2 = static_cast< size_t >(val2);
20019 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20020 if (!SWIG_IsOK(res3)) {
20021 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20022 }
20023 arg3 = reinterpret_cast< wxWindow * >(argp3);
20024 {
20025 arg4 = wxString_in_helper(obj3);
20026 if (arg4 == NULL) SWIG_fail;
20027 temp4 = true;
20028 }
20029 if (obj4) {
20030 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20031 if (!SWIG_IsOK(ecode5)) {
20032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20033 }
20034 arg5 = static_cast< bool >(val5);
20035 }
20036 if (obj5) {
20037 ecode6 = SWIG_AsVal_int(obj5, &val6);
20038 if (!SWIG_IsOK(ecode6)) {
20039 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20040 }
20041 arg6 = static_cast< int >(val6);
20042 }
20043 {
20044 PyThreadState* __tstate = wxPyBeginAllowThreads();
20045 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20046 wxPyEndAllowThreads(__tstate);
20047 if (PyErr_Occurred()) SWIG_fail;
20048 }
20049 {
20050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20051 }
20052 {
20053 if (temp4)
20054 delete arg4;
20055 }
20056 return resultobj;
20057fail:
20058 {
20059 if (temp4)
20060 delete arg4;
20061 }
20062 return NULL;
20063}
20064
20065
20066SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20067 PyObject *resultobj = 0;
20068 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20069 size_t arg2 ;
20070 int result;
20071 void *argp1 = 0 ;
20072 int res1 = 0 ;
20073 size_t val2 ;
20074 int ecode2 = 0 ;
20075 PyObject * obj0 = 0 ;
20076 PyObject * obj1 = 0 ;
20077 char * kwnames[] = {
20078 (char *) "self",(char *) "n", NULL
20079 };
20080
20081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20083 if (!SWIG_IsOK(res1)) {
20084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20085 }
20086 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20087 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20088 if (!SWIG_IsOK(ecode2)) {
20089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20090 }
20091 arg2 = static_cast< size_t >(val2);
20092 {
20093 PyThreadState* __tstate = wxPyBeginAllowThreads();
20094 result = (int)(arg1)->SetSelection(arg2);
20095 wxPyEndAllowThreads(__tstate);
20096 if (PyErr_Occurred()) SWIG_fail;
20097 }
20098 resultobj = SWIG_From_int(static_cast< int >(result));
20099 return resultobj;
20100fail:
20101 return NULL;
20102}
20103
20104
20105SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20106 PyObject *resultobj = 0;
20107 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20108 bool arg2 = (bool) true ;
20109 void *argp1 = 0 ;
20110 int res1 = 0 ;
20111 bool val2 ;
20112 int ecode2 = 0 ;
20113 PyObject * obj0 = 0 ;
20114 PyObject * obj1 = 0 ;
20115 char * kwnames[] = {
20116 (char *) "self",(char *) "forward", NULL
20117 };
20118
20119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20121 if (!SWIG_IsOK(res1)) {
20122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20123 }
20124 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20125 if (obj1) {
20126 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20127 if (!SWIG_IsOK(ecode2)) {
20128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20129 }
20130 arg2 = static_cast< bool >(val2);
20131 }
20132 {
20133 PyThreadState* __tstate = wxPyBeginAllowThreads();
20134 (arg1)->AdvanceSelection(arg2);
20135 wxPyEndAllowThreads(__tstate);
20136 if (PyErr_Occurred()) SWIG_fail;
20137 }
20138 resultobj = SWIG_Py_Void();
20139 return resultobj;
20140fail:
20141 return NULL;
20142}
20143
20144
704eda0c
RD
20145SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20146 PyObject *resultobj = 0;
20147 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20148 wxPoint *arg2 = 0 ;
20149 long *arg3 = (long *) 0 ;
20150 int result;
20151 void *argp1 = 0 ;
20152 int res1 = 0 ;
20153 wxPoint temp2 ;
20154 long temp3 ;
20155 int res3 = SWIG_TMPOBJ ;
20156 PyObject * obj0 = 0 ;
20157 PyObject * obj1 = 0 ;
20158 char * kwnames[] = {
20159 (char *) "self",(char *) "pt", NULL
20160 };
20161
20162 arg3 = &temp3;
20163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20165 if (!SWIG_IsOK(res1)) {
20166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20167 }
20168 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20169 {
20170 arg2 = &temp2;
20171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20172 }
20173 {
20174 PyThreadState* __tstate = wxPyBeginAllowThreads();
20175 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 resultobj = SWIG_From_int(static_cast< int >(result));
20180 if (SWIG_IsTmpObj(res3)) {
20181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20182 } else {
20183 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20185 }
20186 return resultobj;
20187fail:
20188 return NULL;
20189}
20190
20191
0085ce49
RD
20192SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj = 0;
20194 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20195 SwigValueWrapper<wxVisualAttributes > result;
20196 int val1 ;
20197 int ecode1 = 0 ;
20198 PyObject * obj0 = 0 ;
20199 char * kwnames[] = {
20200 (char *) "variant", NULL
20201 };
20202
20203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20204 if (obj0) {
20205 ecode1 = SWIG_AsVal_int(obj0, &val1);
20206 if (!SWIG_IsOK(ecode1)) {
20207 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20208 }
20209 arg1 = static_cast< wxWindowVariant >(val1);
20210 }
20211 {
20212 if (!wxPyCheckForApp()) SWIG_fail;
20213 PyThreadState* __tstate = wxPyBeginAllowThreads();
20214 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20215 wxPyEndAllowThreads(__tstate);
20216 if (PyErr_Occurred()) SWIG_fail;
20217 }
20218 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20219 return resultobj;
20220fail:
20221 return NULL;
20222}
20223
20224
20225SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20226 PyObject *obj;
20227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20228 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20229 return SWIG_Py_Void();
20230}
20231
20232SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj = 0;
20234 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20235 int arg2 = (int) 0 ;
20236 int arg3 = (int) -1 ;
20237 int arg4 = (int) -1 ;
20238 wxBookCtrlBaseEvent *result = 0 ;
20239 int val1 ;
20240 int ecode1 = 0 ;
20241 int val2 ;
20242 int ecode2 = 0 ;
20243 int val3 ;
20244 int ecode3 = 0 ;
20245 int val4 ;
20246 int ecode4 = 0 ;
20247 PyObject * obj0 = 0 ;
20248 PyObject * obj1 = 0 ;
20249 PyObject * obj2 = 0 ;
20250 PyObject * obj3 = 0 ;
20251 char * kwnames[] = {
20252 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20253 };
20254
20255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20256 if (obj0) {
20257 ecode1 = SWIG_AsVal_int(obj0, &val1);
20258 if (!SWIG_IsOK(ecode1)) {
20259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20260 }
20261 arg1 = static_cast< wxEventType >(val1);
20262 }
20263 if (obj1) {
20264 ecode2 = SWIG_AsVal_int(obj1, &val2);
20265 if (!SWIG_IsOK(ecode2)) {
20266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20267 }
20268 arg2 = static_cast< int >(val2);
20269 }
20270 if (obj2) {
20271 ecode3 = SWIG_AsVal_int(obj2, &val3);
20272 if (!SWIG_IsOK(ecode3)) {
20273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20274 }
20275 arg3 = static_cast< int >(val3);
20276 }
20277 if (obj3) {
20278 ecode4 = SWIG_AsVal_int(obj3, &val4);
20279 if (!SWIG_IsOK(ecode4)) {
20280 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20281 }
20282 arg4 = static_cast< int >(val4);
20283 }
20284 {
20285 PyThreadState* __tstate = wxPyBeginAllowThreads();
20286 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20287 wxPyEndAllowThreads(__tstate);
20288 if (PyErr_Occurred()) SWIG_fail;
20289 }
20290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20291 return resultobj;
20292fail:
20293 return NULL;
d14a1e28
RD
20294}
20295
20296
0085ce49
RD
20297SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20298 PyObject *resultobj = 0;
20299 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20300 int result;
20301 void *argp1 = 0 ;
20302 int res1 = 0 ;
20303 PyObject *swig_obj[1] ;
20304
20305 if (!args) SWIG_fail;
20306 swig_obj[0] = args;
20307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20308 if (!SWIG_IsOK(res1)) {
20309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20310 }
20311 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20312 {
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_From_int(static_cast< int >(result));
20319 return resultobj;
20320fail:
20321 return NULL;
20322}
20323
20324
20325SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20326 PyObject *resultobj = 0;
20327 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20328 int arg2 ;
20329 void *argp1 = 0 ;
20330 int res1 = 0 ;
20331 int val2 ;
20332 int ecode2 = 0 ;
20333 PyObject * obj0 = 0 ;
20334 PyObject * obj1 = 0 ;
20335 char * kwnames[] = {
20336 (char *) "self",(char *) "nSel", NULL
20337 };
20338
20339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20341 if (!SWIG_IsOK(res1)) {
20342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20343 }
20344 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20345 ecode2 = SWIG_AsVal_int(obj1, &val2);
20346 if (!SWIG_IsOK(ecode2)) {
20347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20348 }
20349 arg2 = static_cast< int >(val2);
20350 {
20351 PyThreadState* __tstate = wxPyBeginAllowThreads();
20352 (arg1)->SetSelection(arg2);
20353 wxPyEndAllowThreads(__tstate);
20354 if (PyErr_Occurred()) SWIG_fail;
20355 }
20356 resultobj = SWIG_Py_Void();
20357 return resultobj;
20358fail:
20359 return NULL;
d14a1e28
RD
20360}
20361
20362
0085ce49
RD
20363SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20364 PyObject *resultobj = 0;
20365 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20366 int result;
20367 void *argp1 = 0 ;
20368 int res1 = 0 ;
20369 PyObject *swig_obj[1] ;
20370
20371 if (!args) SWIG_fail;
20372 swig_obj[0] = args;
20373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20374 if (!SWIG_IsOK(res1)) {
20375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20376 }
20377 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20378 {
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20381 wxPyEndAllowThreads(__tstate);
20382 if (PyErr_Occurred()) SWIG_fail;
20383 }
20384 resultobj = SWIG_From_int(static_cast< int >(result));
20385 return resultobj;
20386fail:
20387 return NULL;
20388}
20389
20390
20391SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20392 PyObject *resultobj = 0;
20393 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20394 int arg2 ;
20395 void *argp1 = 0 ;
20396 int res1 = 0 ;
20397 int val2 ;
20398 int ecode2 = 0 ;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20401 char * kwnames[] = {
20402 (char *) "self",(char *) "nOldSel", NULL
20403 };
20404
20405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20407 if (!SWIG_IsOK(res1)) {
20408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20409 }
20410 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20411 ecode2 = SWIG_AsVal_int(obj1, &val2);
20412 if (!SWIG_IsOK(ecode2)) {
20413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20414 }
20415 arg2 = static_cast< int >(val2);
20416 {
20417 PyThreadState* __tstate = wxPyBeginAllowThreads();
20418 (arg1)->SetOldSelection(arg2);
20419 wxPyEndAllowThreads(__tstate);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 }
20422 resultobj = SWIG_Py_Void();
20423 return resultobj;
20424fail:
20425 return NULL;
20426}
20427
20428
20429SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20430 PyObject *obj;
20431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20432 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20433 return SWIG_Py_Void();
20434}
20435
20436SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20437 return SWIG_Python_InitShadowInstance(args);
20438}
20439
20440SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20441 PyObject *resultobj = 0;
20442 wxWindow *arg1 = (wxWindow *) 0 ;
20443 int arg2 = (int) -1 ;
20444 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20445 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20446 wxSize const &arg4_defvalue = wxDefaultSize ;
20447 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20448 long arg5 = (long) 0 ;
20449 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20450 wxString *arg6 = (wxString *) &arg6_defvalue ;
20451 wxNotebook *result = 0 ;
20452 void *argp1 = 0 ;
20453 int res1 = 0 ;
20454 int val2 ;
20455 int ecode2 = 0 ;
20456 wxPoint temp3 ;
20457 wxSize temp4 ;
20458 long val5 ;
20459 int ecode5 = 0 ;
20460 bool temp6 = false ;
20461 PyObject * obj0 = 0 ;
20462 PyObject * obj1 = 0 ;
20463 PyObject * obj2 = 0 ;
20464 PyObject * obj3 = 0 ;
20465 PyObject * obj4 = 0 ;
20466 PyObject * obj5 = 0 ;
20467 char * kwnames[] = {
20468 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20469 };
20470
20471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20473 if (!SWIG_IsOK(res1)) {
20474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20475 }
20476 arg1 = reinterpret_cast< wxWindow * >(argp1);
20477 if (obj1) {
20478 ecode2 = SWIG_AsVal_int(obj1, &val2);
20479 if (!SWIG_IsOK(ecode2)) {
20480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20481 }
20482 arg2 = static_cast< int >(val2);
20483 }
20484 if (obj2) {
093d3ff1 20485 {
0085ce49
RD
20486 arg3 = &temp3;
20487 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20488 }
0085ce49
RD
20489 }
20490 if (obj3) {
d14a1e28 20491 {
0085ce49
RD
20492 arg4 = &temp4;
20493 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20494 }
0085ce49
RD
20495 }
20496 if (obj4) {
20497 ecode5 = SWIG_AsVal_long(obj4, &val5);
20498 if (!SWIG_IsOK(ecode5)) {
20499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20500 }
20501 arg5 = static_cast< long >(val5);
20502 }
20503 if (obj5) {
093d3ff1 20504 {
0085ce49
RD
20505 arg6 = wxString_in_helper(obj5);
20506 if (arg6 == NULL) SWIG_fail;
20507 temp6 = true;
093d3ff1 20508 }
0085ce49
RD
20509 }
20510 {
20511 if (!wxPyCheckForApp()) SWIG_fail;
20512 PyThreadState* __tstate = wxPyBeginAllowThreads();
20513 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20514 wxPyEndAllowThreads(__tstate);
20515 if (PyErr_Occurred()) SWIG_fail;
20516 }
20517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20518 {
20519 if (temp6)
20520 delete arg6;
20521 }
20522 return resultobj;
20523fail:
20524 {
20525 if (temp6)
20526 delete arg6;
20527 }
20528 return NULL;
d14a1e28
RD
20529}
20530
20531
0085ce49
RD
20532SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20533 PyObject *resultobj = 0;
20534 wxNotebook *result = 0 ;
20535
20536 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20537 {
20538 if (!wxPyCheckForApp()) SWIG_fail;
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 result = (wxNotebook *)new wxNotebook();
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20545 return resultobj;
20546fail:
20547 return NULL;
20548}
20549
20550
20551SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj = 0;
20553 wxNotebook *arg1 = (wxNotebook *) 0 ;
20554 wxWindow *arg2 = (wxWindow *) 0 ;
20555 int arg3 = (int) -1 ;
20556 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20557 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20558 wxSize const &arg5_defvalue = wxDefaultSize ;
20559 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20560 long arg6 = (long) 0 ;
20561 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20562 wxString *arg7 = (wxString *) &arg7_defvalue ;
20563 bool result;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 void *argp2 = 0 ;
20567 int res2 = 0 ;
20568 int val3 ;
20569 int ecode3 = 0 ;
20570 wxPoint temp4 ;
20571 wxSize temp5 ;
20572 long val6 ;
20573 int ecode6 = 0 ;
20574 bool temp7 = false ;
20575 PyObject * obj0 = 0 ;
20576 PyObject * obj1 = 0 ;
20577 PyObject * obj2 = 0 ;
20578 PyObject * obj3 = 0 ;
20579 PyObject * obj4 = 0 ;
20580 PyObject * obj5 = 0 ;
20581 PyObject * obj6 = 0 ;
20582 char * kwnames[] = {
20583 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20584 };
20585
20586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20588 if (!SWIG_IsOK(res1)) {
20589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20590 }
20591 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20593 if (!SWIG_IsOK(res2)) {
20594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20595 }
20596 arg2 = reinterpret_cast< wxWindow * >(argp2);
20597 if (obj2) {
20598 ecode3 = SWIG_AsVal_int(obj2, &val3);
20599 if (!SWIG_IsOK(ecode3)) {
20600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20601 }
20602 arg3 = static_cast< int >(val3);
20603 }
20604 if (obj3) {
093d3ff1 20605 {
0085ce49
RD
20606 arg4 = &temp4;
20607 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20608 }
0085ce49
RD
20609 }
20610 if (obj4) {
d14a1e28 20611 {
0085ce49
RD
20612 arg5 = &temp5;
20613 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20614 }
0085ce49
RD
20615 }
20616 if (obj5) {
20617 ecode6 = SWIG_AsVal_long(obj5, &val6);
20618 if (!SWIG_IsOK(ecode6)) {
20619 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20620 }
20621 arg6 = static_cast< long >(val6);
20622 }
20623 if (obj6) {
4f89f6a3 20624 {
0085ce49
RD
20625 arg7 = wxString_in_helper(obj6);
20626 if (arg7 == NULL) SWIG_fail;
20627 temp7 = true;
4f89f6a3 20628 }
0085ce49
RD
20629 }
20630 {
20631 PyThreadState* __tstate = wxPyBeginAllowThreads();
20632 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20633 wxPyEndAllowThreads(__tstate);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 {
20637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20638 }
20639 {
20640 if (temp7)
20641 delete arg7;
20642 }
20643 return resultobj;
20644fail:
20645 {
20646 if (temp7)
20647 delete arg7;
20648 }
20649 return NULL;
d14a1e28
RD
20650}
20651
20652
0085ce49
RD
20653SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20654 PyObject *resultobj = 0;
20655 wxNotebook *arg1 = (wxNotebook *) 0 ;
20656 int result;
20657 void *argp1 = 0 ;
20658 int res1 = 0 ;
20659 PyObject *swig_obj[1] ;
20660
20661 if (!args) SWIG_fail;
20662 swig_obj[0] = args;
20663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20664 if (!SWIG_IsOK(res1)) {
20665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20666 }
20667 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20668 {
20669 PyThreadState* __tstate = wxPyBeginAllowThreads();
20670 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 resultobj = SWIG_From_int(static_cast< int >(result));
20675 return resultobj;
20676fail:
20677 return NULL;
20678}
20679
20680
20681SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20682 PyObject *resultobj = 0;
20683 wxNotebook *arg1 = (wxNotebook *) 0 ;
20684 wxSize *arg2 = 0 ;
20685 void *argp1 = 0 ;
20686 int res1 = 0 ;
20687 wxSize temp2 ;
20688 PyObject * obj0 = 0 ;
20689 PyObject * obj1 = 0 ;
20690 char * kwnames[] = {
20691 (char *) "self",(char *) "padding", NULL
20692 };
20693
20694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20696 if (!SWIG_IsOK(res1)) {
20697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20698 }
20699 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20700 {
20701 arg2 = &temp2;
20702 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20703 }
20704 {
20705 PyThreadState* __tstate = wxPyBeginAllowThreads();
20706 (arg1)->SetPadding((wxSize const &)*arg2);
20707 wxPyEndAllowThreads(__tstate);
20708 if (PyErr_Occurred()) SWIG_fail;
20709 }
20710 resultobj = SWIG_Py_Void();
20711 return resultobj;
20712fail:
20713 return NULL;
20714}
20715
20716
20717SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20718 PyObject *resultobj = 0;
20719 wxNotebook *arg1 = (wxNotebook *) 0 ;
20720 wxSize *arg2 = 0 ;
20721 void *argp1 = 0 ;
20722 int res1 = 0 ;
20723 wxSize temp2 ;
20724 PyObject * obj0 = 0 ;
20725 PyObject * obj1 = 0 ;
20726 char * kwnames[] = {
20727 (char *) "self",(char *) "sz", NULL
20728 };
20729
20730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20732 if (!SWIG_IsOK(res1)) {
20733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20734 }
20735 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20736 {
20737 arg2 = &temp2;
20738 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20739 }
20740 {
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 (arg1)->SetTabSize((wxSize const &)*arg2);
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 resultobj = SWIG_Py_Void();
20747 return resultobj;
20748fail:
20749 return NULL;
20750}
20751
20752
0085ce49
RD
20753SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20754 PyObject *resultobj = 0;
20755 wxNotebook *arg1 = (wxNotebook *) 0 ;
20756 wxColour result;
20757 void *argp1 = 0 ;
20758 int res1 = 0 ;
20759 PyObject *swig_obj[1] ;
20760
20761 if (!args) SWIG_fail;
20762 swig_obj[0] = args;
20763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20764 if (!SWIG_IsOK(res1)) {
20765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20766 }
20767 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20768 {
20769 PyThreadState* __tstate = wxPyBeginAllowThreads();
20770 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20771 wxPyEndAllowThreads(__tstate);
20772 if (PyErr_Occurred()) SWIG_fail;
20773 }
20774 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20775 return resultobj;
20776fail:
20777 return NULL;
20778}
20779
20780
20781SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20782 PyObject *resultobj = 0;
20783 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20784 SwigValueWrapper<wxVisualAttributes > result;
20785 int val1 ;
20786 int ecode1 = 0 ;
20787 PyObject * obj0 = 0 ;
20788 char * kwnames[] = {
20789 (char *) "variant", NULL
20790 };
20791
20792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20793 if (obj0) {
20794 ecode1 = SWIG_AsVal_int(obj0, &val1);
20795 if (!SWIG_IsOK(ecode1)) {
20796 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20797 }
20798 arg1 = static_cast< wxWindowVariant >(val1);
20799 }
20800 {
20801 if (!wxPyCheckForApp()) SWIG_fail;
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 result = wxNotebook::GetClassDefaultAttributes(arg1);
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20808 return resultobj;
20809fail:
20810 return NULL;
20811}
20812
20813
20814SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20815 PyObject *obj;
20816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20817 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20818 return SWIG_Py_Void();
20819}
20820
20821SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20822 return SWIG_Python_InitShadowInstance(args);
20823}
20824
20825SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20828 int arg2 = (int) 0 ;
20829 int arg3 = (int) -1 ;
20830 int arg4 = (int) -1 ;
20831 wxNotebookEvent *result = 0 ;
20832 int val1 ;
20833 int ecode1 = 0 ;
20834 int val2 ;
20835 int ecode2 = 0 ;
20836 int val3 ;
20837 int ecode3 = 0 ;
20838 int val4 ;
20839 int ecode4 = 0 ;
20840 PyObject * obj0 = 0 ;
20841 PyObject * obj1 = 0 ;
20842 PyObject * obj2 = 0 ;
20843 PyObject * obj3 = 0 ;
20844 char * kwnames[] = {
20845 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20846 };
20847
20848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20849 if (obj0) {
20850 ecode1 = SWIG_AsVal_int(obj0, &val1);
20851 if (!SWIG_IsOK(ecode1)) {
20852 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20853 }
20854 arg1 = static_cast< wxEventType >(val1);
20855 }
20856 if (obj1) {
20857 ecode2 = SWIG_AsVal_int(obj1, &val2);
20858 if (!SWIG_IsOK(ecode2)) {
20859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20860 }
20861 arg2 = static_cast< int >(val2);
20862 }
20863 if (obj2) {
20864 ecode3 = SWIG_AsVal_int(obj2, &val3);
20865 if (!SWIG_IsOK(ecode3)) {
20866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20867 }
20868 arg3 = static_cast< int >(val3);
20869 }
20870 if (obj3) {
20871 ecode4 = SWIG_AsVal_int(obj3, &val4);
20872 if (!SWIG_IsOK(ecode4)) {
20873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20874 }
20875 arg4 = static_cast< int >(val4);
20876 }
20877 {
20878 PyThreadState* __tstate = wxPyBeginAllowThreads();
20879 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20884 return resultobj;
20885fail:
20886 return NULL;
20887}
20888
20889
20890SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20891 PyObject *obj;
20892 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20893 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20894 return SWIG_Py_Void();
20895}
20896
20897SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20898 return SWIG_Python_InitShadowInstance(args);
20899}
20900
20901SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20902 PyObject *resultobj = 0;
20903 wxWindow *arg1 = (wxWindow *) 0 ;
20904 int arg2 = (int) -1 ;
20905 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20906 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20907 wxSize const &arg4_defvalue = wxDefaultSize ;
20908 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20909 long arg5 = (long) 0 ;
20910 wxString const &arg6_defvalue = wxPyEmptyString ;
20911 wxString *arg6 = (wxString *) &arg6_defvalue ;
20912 wxListbook *result = 0 ;
20913 void *argp1 = 0 ;
20914 int res1 = 0 ;
20915 int val2 ;
20916 int ecode2 = 0 ;
20917 wxPoint temp3 ;
20918 wxSize temp4 ;
20919 long val5 ;
20920 int ecode5 = 0 ;
20921 bool temp6 = false ;
20922 PyObject * obj0 = 0 ;
20923 PyObject * obj1 = 0 ;
20924 PyObject * obj2 = 0 ;
20925 PyObject * obj3 = 0 ;
20926 PyObject * obj4 = 0 ;
20927 PyObject * obj5 = 0 ;
20928 char * kwnames[] = {
20929 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20930 };
20931
20932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20936 }
20937 arg1 = reinterpret_cast< wxWindow * >(argp1);
20938 if (obj1) {
20939 ecode2 = SWIG_AsVal_int(obj1, &val2);
20940 if (!SWIG_IsOK(ecode2)) {
20941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20942 }
20943 arg2 = static_cast< int >(val2);
20944 }
20945 if (obj2) {
093d3ff1 20946 {
0085ce49
RD
20947 arg3 = &temp3;
20948 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20949 }
0085ce49
RD
20950 }
20951 if (obj3) {
093d3ff1 20952 {
0085ce49
RD
20953 arg4 = &temp4;
20954 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20955 }
0085ce49
RD
20956 }
20957 if (obj4) {
20958 ecode5 = SWIG_AsVal_long(obj4, &val5);
20959 if (!SWIG_IsOK(ecode5)) {
20960 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20961 }
20962 arg5 = static_cast< long >(val5);
20963 }
20964 if (obj5) {
d14a1e28 20965 {
0085ce49
RD
20966 arg6 = wxString_in_helper(obj5);
20967 if (arg6 == NULL) SWIG_fail;
20968 temp6 = true;
d14a1e28 20969 }
0085ce49
RD
20970 }
20971 {
20972 if (!wxPyCheckForApp()) SWIG_fail;
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20979 {
20980 if (temp6)
20981 delete arg6;
20982 }
20983 return resultobj;
20984fail:
20985 {
20986 if (temp6)
20987 delete arg6;
20988 }
20989 return NULL;
d14a1e28
RD
20990}
20991
20992
0085ce49
RD
20993SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20994 PyObject *resultobj = 0;
20995 wxListbook *result = 0 ;
20996
20997 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20998 {
20999 if (!wxPyCheckForApp()) SWIG_fail;
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
21001 result = (wxListbook *)new wxListbook();
21002 wxPyEndAllowThreads(__tstate);
21003 if (PyErr_Occurred()) SWIG_fail;
21004 }
21005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21006 return resultobj;
21007fail:
21008 return NULL;
21009}
21010
21011
21012SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21013 PyObject *resultobj = 0;
21014 wxListbook *arg1 = (wxListbook *) 0 ;
21015 wxWindow *arg2 = (wxWindow *) 0 ;
21016 int arg3 = (int) -1 ;
21017 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21018 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21019 wxSize const &arg5_defvalue = wxDefaultSize ;
21020 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21021 long arg6 = (long) 0 ;
21022 wxString const &arg7_defvalue = wxPyEmptyString ;
21023 wxString *arg7 = (wxString *) &arg7_defvalue ;
21024 bool result;
21025 void *argp1 = 0 ;
21026 int res1 = 0 ;
21027 void *argp2 = 0 ;
21028 int res2 = 0 ;
21029 int val3 ;
21030 int ecode3 = 0 ;
21031 wxPoint temp4 ;
21032 wxSize temp5 ;
21033 long val6 ;
21034 int ecode6 = 0 ;
21035 bool temp7 = false ;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038 PyObject * obj2 = 0 ;
21039 PyObject * obj3 = 0 ;
21040 PyObject * obj4 = 0 ;
21041 PyObject * obj5 = 0 ;
21042 PyObject * obj6 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21051 }
21052 arg1 = reinterpret_cast< wxListbook * >(argp1);
21053 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21054 if (!SWIG_IsOK(res2)) {
21055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21056 }
21057 arg2 = reinterpret_cast< wxWindow * >(argp2);
21058 if (obj2) {
21059 ecode3 = SWIG_AsVal_int(obj2, &val3);
21060 if (!SWIG_IsOK(ecode3)) {
21061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21062 }
21063 arg3 = static_cast< int >(val3);
21064 }
21065 if (obj3) {
22bfe96c 21066 {
0085ce49
RD
21067 arg4 = &temp4;
21068 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 21069 }
0085ce49
RD
21070 }
21071 if (obj4) {
22bfe96c 21072 {
0085ce49
RD
21073 arg5 = &temp5;
21074 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 21075 }
0085ce49
RD
21076 }
21077 if (obj5) {
21078 ecode6 = SWIG_AsVal_long(obj5, &val6);
21079 if (!SWIG_IsOK(ecode6)) {
21080 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21081 }
21082 arg6 = static_cast< long >(val6);
21083 }
21084 if (obj6) {
b2dc1044 21085 {
0085ce49
RD
21086 arg7 = wxString_in_helper(obj6);
21087 if (arg7 == NULL) SWIG_fail;
21088 temp7 = true;
b2dc1044 21089 }
0085ce49
RD
21090 }
21091 {
21092 PyThreadState* __tstate = wxPyBeginAllowThreads();
21093 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21094 wxPyEndAllowThreads(__tstate);
21095 if (PyErr_Occurred()) SWIG_fail;
21096 }
21097 {
21098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21099 }
21100 {
21101 if (temp7)
21102 delete arg7;
21103 }
21104 return resultobj;
21105fail:
21106 {
21107 if (temp7)
21108 delete arg7;
21109 }
21110 return NULL;
b2dc1044
RD
21111}
21112
21113
0085ce49
RD
21114SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21115 PyObject *resultobj = 0;
21116 wxListbook *arg1 = (wxListbook *) 0 ;
21117 wxListView *result = 0 ;
21118 void *argp1 = 0 ;
21119 int res1 = 0 ;
21120 PyObject *swig_obj[1] ;
21121
21122 if (!args) SWIG_fail;
21123 swig_obj[0] = args;
21124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21125 if (!SWIG_IsOK(res1)) {
21126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21127 }
21128 arg1 = reinterpret_cast< wxListbook * >(argp1);
21129 {
21130 PyThreadState* __tstate = wxPyBeginAllowThreads();
21131 result = (wxListView *)(arg1)->GetListView();
21132 wxPyEndAllowThreads(__tstate);
21133 if (PyErr_Occurred()) SWIG_fail;
21134 }
21135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21136 return resultobj;
21137fail:
21138 return NULL;
21139}
21140
21141
21142SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21143 PyObject *obj;
21144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21145 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21146 return SWIG_Py_Void();
21147}
21148
21149SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21150 return SWIG_Python_InitShadowInstance(args);
21151}
21152
21153SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21154 PyObject *resultobj = 0;
21155 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21156 int arg2 = (int) 0 ;
21157 int arg3 = (int) -1 ;
21158 int arg4 = (int) -1 ;
21159 wxListbookEvent *result = 0 ;
21160 int val1 ;
21161 int ecode1 = 0 ;
21162 int val2 ;
21163 int ecode2 = 0 ;
21164 int val3 ;
21165 int ecode3 = 0 ;
21166 int val4 ;
21167 int ecode4 = 0 ;
21168 PyObject * obj0 = 0 ;
21169 PyObject * obj1 = 0 ;
21170 PyObject * obj2 = 0 ;
21171 PyObject * obj3 = 0 ;
21172 char * kwnames[] = {
21173 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21174 };
21175
21176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21177 if (obj0) {
21178 ecode1 = SWIG_AsVal_int(obj0, &val1);
21179 if (!SWIG_IsOK(ecode1)) {
21180 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21181 }
21182 arg1 = static_cast< wxEventType >(val1);
21183 }
21184 if (obj1) {
21185 ecode2 = SWIG_AsVal_int(obj1, &val2);
21186 if (!SWIG_IsOK(ecode2)) {
21187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21188 }
21189 arg2 = static_cast< int >(val2);
21190 }
21191 if (obj2) {
21192 ecode3 = SWIG_AsVal_int(obj2, &val3);
21193 if (!SWIG_IsOK(ecode3)) {
21194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21195 }
21196 arg3 = static_cast< int >(val3);
21197 }
21198 if (obj3) {
21199 ecode4 = SWIG_AsVal_int(obj3, &val4);
21200 if (!SWIG_IsOK(ecode4)) {
21201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21202 }
21203 arg4 = static_cast< int >(val4);
21204 }
21205 {
21206 PyThreadState* __tstate = wxPyBeginAllowThreads();
21207 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21212 return resultobj;
21213fail:
21214 return NULL;
21215}
21216
21217
21218SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21219 PyObject *obj;
21220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21221 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21222 return SWIG_Py_Void();
21223}
21224
21225SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21226 return SWIG_Python_InitShadowInstance(args);
21227}
21228
21229SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21230 PyObject *resultobj = 0;
21231 wxWindow *arg1 = (wxWindow *) 0 ;
21232 int arg2 ;
21233 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21234 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21235 wxSize const &arg4_defvalue = wxDefaultSize ;
21236 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21237 long arg5 = (long) 0 ;
21238 wxString const &arg6_defvalue = wxPyEmptyString ;
21239 wxString *arg6 = (wxString *) &arg6_defvalue ;
21240 wxChoicebook *result = 0 ;
21241 void *argp1 = 0 ;
21242 int res1 = 0 ;
21243 int val2 ;
21244 int ecode2 = 0 ;
21245 wxPoint temp3 ;
21246 wxSize temp4 ;
21247 long val5 ;
21248 int ecode5 = 0 ;
21249 bool temp6 = false ;
21250 PyObject * obj0 = 0 ;
21251 PyObject * obj1 = 0 ;
21252 PyObject * obj2 = 0 ;
21253 PyObject * obj3 = 0 ;
21254 PyObject * obj4 = 0 ;
21255 PyObject * obj5 = 0 ;
21256 char * kwnames[] = {
21257 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21258 };
21259
21260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21262 if (!SWIG_IsOK(res1)) {
21263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21264 }
21265 arg1 = reinterpret_cast< wxWindow * >(argp1);
21266 ecode2 = SWIG_AsVal_int(obj1, &val2);
21267 if (!SWIG_IsOK(ecode2)) {
21268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21269 }
21270 arg2 = static_cast< int >(val2);
21271 if (obj2) {
d14a1e28 21272 {
0085ce49
RD
21273 arg3 = &temp3;
21274 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 21275 }
0085ce49
RD
21276 }
21277 if (obj3) {
d14a1e28 21278 {
0085ce49
RD
21279 arg4 = &temp4;
21280 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21281 }
0085ce49
RD
21282 }
21283 if (obj4) {
21284 ecode5 = SWIG_AsVal_long(obj4, &val5);
21285 if (!SWIG_IsOK(ecode5)) {
21286 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21287 }
21288 arg5 = static_cast< long >(val5);
21289 }
21290 if (obj5) {
d14a1e28 21291 {
0085ce49
RD
21292 arg6 = wxString_in_helper(obj5);
21293 if (arg6 == NULL) SWIG_fail;
21294 temp6 = true;
d14a1e28 21295 }
0085ce49
RD
21296 }
21297 {
21298 if (!wxPyCheckForApp()) SWIG_fail;
21299 PyThreadState* __tstate = wxPyBeginAllowThreads();
21300 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21305 {
21306 if (temp6)
21307 delete arg6;
21308 }
21309 return resultobj;
21310fail:
21311 {
21312 if (temp6)
21313 delete arg6;
21314 }
21315 return NULL;
d14a1e28
RD
21316}
21317
21318
0085ce49
RD
21319SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21320 PyObject *resultobj = 0;
21321 wxChoicebook *result = 0 ;
21322
21323 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21324 {
21325 if (!wxPyCheckForApp()) SWIG_fail;
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 result = (wxChoicebook *)new wxChoicebook();
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
21331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21332 return resultobj;
21333fail:
21334 return NULL;
21335}
21336
21337
21338SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21339 PyObject *resultobj = 0;
21340 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21341 wxWindow *arg2 = (wxWindow *) 0 ;
21342 int arg3 ;
21343 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21344 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21345 wxSize const &arg5_defvalue = wxDefaultSize ;
21346 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21347 long arg6 = (long) 0 ;
21348 wxString const &arg7_defvalue = wxPyEmptyString ;
21349 wxString *arg7 = (wxString *) &arg7_defvalue ;
21350 bool result;
21351 void *argp1 = 0 ;
21352 int res1 = 0 ;
21353 void *argp2 = 0 ;
21354 int res2 = 0 ;
21355 int val3 ;
21356 int ecode3 = 0 ;
21357 wxPoint temp4 ;
21358 wxSize temp5 ;
21359 long val6 ;
21360 int ecode6 = 0 ;
21361 bool temp7 = false ;
21362 PyObject * obj0 = 0 ;
21363 PyObject * obj1 = 0 ;
21364 PyObject * obj2 = 0 ;
21365 PyObject * obj3 = 0 ;
21366 PyObject * obj4 = 0 ;
21367 PyObject * obj5 = 0 ;
21368 PyObject * obj6 = 0 ;
21369 char * kwnames[] = {
21370 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21371 };
21372
21373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21375 if (!SWIG_IsOK(res1)) {
21376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21377 }
21378 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21380 if (!SWIG_IsOK(res2)) {
21381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21382 }
21383 arg2 = reinterpret_cast< wxWindow * >(argp2);
21384 ecode3 = SWIG_AsVal_int(obj2, &val3);
21385 if (!SWIG_IsOK(ecode3)) {
21386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21387 }
21388 arg3 = static_cast< int >(val3);
21389 if (obj3) {
4f89f6a3 21390 {
0085ce49
RD
21391 arg4 = &temp4;
21392 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 21393 }
0085ce49
RD
21394 }
21395 if (obj4) {
d14a1e28 21396 {
0085ce49
RD
21397 arg5 = &temp5;
21398 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 21399 }
0085ce49
RD
21400 }
21401 if (obj5) {
21402 ecode6 = SWIG_AsVal_long(obj5, &val6);
21403 if (!SWIG_IsOK(ecode6)) {
21404 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21405 }
21406 arg6 = static_cast< long >(val6);
21407 }
21408 if (obj6) {
d14a1e28 21409 {
0085ce49
RD
21410 arg7 = wxString_in_helper(obj6);
21411 if (arg7 == NULL) SWIG_fail;
21412 temp7 = true;
d14a1e28 21413 }
0085ce49
RD
21414 }
21415 {
21416 PyThreadState* __tstate = wxPyBeginAllowThreads();
21417 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21418 wxPyEndAllowThreads(__tstate);
21419 if (PyErr_Occurred()) SWIG_fail;
21420 }
21421 {
21422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21423 }
21424 {
21425 if (temp7)
21426 delete arg7;
21427 }
21428 return resultobj;
21429fail:
21430 {
21431 if (temp7)
21432 delete arg7;
21433 }
21434 return NULL;
d14a1e28
RD
21435}
21436
21437
0085ce49
RD
21438SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21439 PyObject *resultobj = 0;
21440 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21441 wxChoice *result = 0 ;
21442 void *argp1 = 0 ;
21443 int res1 = 0 ;
21444 PyObject *swig_obj[1] ;
21445
21446 if (!args) SWIG_fail;
21447 swig_obj[0] = args;
21448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21449 if (!SWIG_IsOK(res1)) {
21450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21451 }
21452 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21453 {
21454 PyThreadState* __tstate = wxPyBeginAllowThreads();
21455 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21456 wxPyEndAllowThreads(__tstate);
21457 if (PyErr_Occurred()) SWIG_fail;
21458 }
21459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21460 return resultobj;
21461fail:
21462 return NULL;
21463}
21464
21465
21466SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21467 PyObject *obj;
21468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21469 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21470 return SWIG_Py_Void();
21471}
21472
21473SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21474 return SWIG_Python_InitShadowInstance(args);
21475}
21476
21477SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21478 PyObject *resultobj = 0;
21479 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21480 int arg2 = (int) 0 ;
21481 int arg3 = (int) -1 ;
21482 int arg4 = (int) -1 ;
21483 wxChoicebookEvent *result = 0 ;
21484 int val1 ;
21485 int ecode1 = 0 ;
21486 int val2 ;
21487 int ecode2 = 0 ;
21488 int val3 ;
21489 int ecode3 = 0 ;
21490 int val4 ;
21491 int ecode4 = 0 ;
21492 PyObject * obj0 = 0 ;
21493 PyObject * obj1 = 0 ;
21494 PyObject * obj2 = 0 ;
21495 PyObject * obj3 = 0 ;
21496 char * kwnames[] = {
21497 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21498 };
21499
21500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21501 if (obj0) {
21502 ecode1 = SWIG_AsVal_int(obj0, &val1);
21503 if (!SWIG_IsOK(ecode1)) {
21504 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21505 }
21506 arg1 = static_cast< wxEventType >(val1);
21507 }
21508 if (obj1) {
21509 ecode2 = SWIG_AsVal_int(obj1, &val2);
21510 if (!SWIG_IsOK(ecode2)) {
21511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21512 }
21513 arg2 = static_cast< int >(val2);
21514 }
21515 if (obj2) {
21516 ecode3 = SWIG_AsVal_int(obj2, &val3);
21517 if (!SWIG_IsOK(ecode3)) {
21518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21519 }
21520 arg3 = static_cast< int >(val3);
21521 }
21522 if (obj3) {
21523 ecode4 = SWIG_AsVal_int(obj3, &val4);
21524 if (!SWIG_IsOK(ecode4)) {
21525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21526 }
21527 arg4 = static_cast< int >(val4);
21528 }
21529 {
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21536 return resultobj;
21537fail:
21538 return NULL;
21539}
21540
21541
21542SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21543 PyObject *obj;
21544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21545 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21546 return SWIG_Py_Void();
21547}
21548
21549SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21550 return SWIG_Python_InitShadowInstance(args);
21551}
21552
21553SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21554 PyObject *resultobj = 0;
21555 wxWindow *arg1 = (wxWindow *) 0 ;
21556 int arg2 ;
21557 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21558 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21559 wxSize const &arg4_defvalue = wxDefaultSize ;
21560 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21561 long arg5 = (long) wxBK_DEFAULT ;
21562 wxString const &arg6_defvalue = wxPyEmptyString ;
21563 wxString *arg6 = (wxString *) &arg6_defvalue ;
21564 wxTreebook *result = 0 ;
21565 void *argp1 = 0 ;
21566 int res1 = 0 ;
21567 int val2 ;
21568 int ecode2 = 0 ;
21569 wxPoint temp3 ;
21570 wxSize temp4 ;
21571 long val5 ;
21572 int ecode5 = 0 ;
21573 bool temp6 = false ;
21574 PyObject * obj0 = 0 ;
21575 PyObject * obj1 = 0 ;
21576 PyObject * obj2 = 0 ;
21577 PyObject * obj3 = 0 ;
21578 PyObject * obj4 = 0 ;
21579 PyObject * obj5 = 0 ;
21580 char * kwnames[] = {
21581 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21582 };
21583
21584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21586 if (!SWIG_IsOK(res1)) {
21587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21588 }
21589 arg1 = reinterpret_cast< wxWindow * >(argp1);
21590 ecode2 = SWIG_AsVal_int(obj1, &val2);
21591 if (!SWIG_IsOK(ecode2)) {
21592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21593 }
21594 arg2 = static_cast< int >(val2);
21595 if (obj2) {
093d3ff1 21596 {
0085ce49
RD
21597 arg3 = &temp3;
21598 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21599 }
0085ce49
RD
21600 }
21601 if (obj3) {
d14a1e28 21602 {
0085ce49
RD
21603 arg4 = &temp4;
21604 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21605 }
0085ce49
RD
21606 }
21607 if (obj4) {
21608 ecode5 = SWIG_AsVal_long(obj4, &val5);
21609 if (!SWIG_IsOK(ecode5)) {
21610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21611 }
21612 arg5 = static_cast< long >(val5);
21613 }
21614 if (obj5) {
093d3ff1 21615 {
0085ce49
RD
21616 arg6 = wxString_in_helper(obj5);
21617 if (arg6 == NULL) SWIG_fail;
21618 temp6 = true;
093d3ff1 21619 }
0085ce49
RD
21620 }
21621 {
21622 if (!wxPyCheckForApp()) SWIG_fail;
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21629 {
21630 if (temp6)
21631 delete arg6;
21632 }
21633 return resultobj;
21634fail:
21635 {
21636 if (temp6)
21637 delete arg6;
21638 }
21639 return NULL;
d14a1e28
RD
21640}
21641
21642
0085ce49
RD
21643SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21644 PyObject *resultobj = 0;
21645 wxTreebook *result = 0 ;
21646
21647 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21648 {
21649 if (!wxPyCheckForApp()) SWIG_fail;
21650 PyThreadState* __tstate = wxPyBeginAllowThreads();
21651 result = (wxTreebook *)new wxTreebook();
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21656 return resultobj;
21657fail:
21658 return NULL;
21659}
21660
21661
21662SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21663 PyObject *resultobj = 0;
21664 wxTreebook *arg1 = (wxTreebook *) 0 ;
21665 wxWindow *arg2 = (wxWindow *) 0 ;
21666 int arg3 ;
21667 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21668 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21669 wxSize const &arg5_defvalue = wxDefaultSize ;
21670 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21671 long arg6 = (long) wxBK_DEFAULT ;
21672 wxString const &arg7_defvalue = wxPyEmptyString ;
21673 wxString *arg7 = (wxString *) &arg7_defvalue ;
21674 bool result;
21675 void *argp1 = 0 ;
21676 int res1 = 0 ;
21677 void *argp2 = 0 ;
21678 int res2 = 0 ;
21679 int val3 ;
21680 int ecode3 = 0 ;
21681 wxPoint temp4 ;
21682 wxSize temp5 ;
21683 long val6 ;
21684 int ecode6 = 0 ;
21685 bool temp7 = false ;
21686 PyObject * obj0 = 0 ;
21687 PyObject * obj1 = 0 ;
21688 PyObject * obj2 = 0 ;
21689 PyObject * obj3 = 0 ;
21690 PyObject * obj4 = 0 ;
21691 PyObject * obj5 = 0 ;
21692 PyObject * obj6 = 0 ;
21693 char * kwnames[] = {
21694 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21695 };
21696
21697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21699 if (!SWIG_IsOK(res1)) {
21700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21701 }
21702 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21704 if (!SWIG_IsOK(res2)) {
21705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21706 }
21707 arg2 = reinterpret_cast< wxWindow * >(argp2);
21708 ecode3 = SWIG_AsVal_int(obj2, &val3);
21709 if (!SWIG_IsOK(ecode3)) {
21710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21711 }
21712 arg3 = static_cast< int >(val3);
21713 if (obj3) {
d14a1e28 21714 {
0085ce49
RD
21715 arg4 = &temp4;
21716 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21717 }
0085ce49
RD
21718 }
21719 if (obj4) {
093d3ff1 21720 {
0085ce49
RD
21721 arg5 = &temp5;
21722 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21723 }
0085ce49
RD
21724 }
21725 if (obj5) {
21726 ecode6 = SWIG_AsVal_long(obj5, &val6);
21727 if (!SWIG_IsOK(ecode6)) {
21728 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21729 }
21730 arg6 = static_cast< long >(val6);
21731 }
21732 if (obj6) {
093d3ff1 21733 {
0085ce49
RD
21734 arg7 = wxString_in_helper(obj6);
21735 if (arg7 == NULL) SWIG_fail;
21736 temp7 = true;
093d3ff1 21737 }
0085ce49
RD
21738 }
21739 {
21740 PyThreadState* __tstate = wxPyBeginAllowThreads();
21741 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21742 wxPyEndAllowThreads(__tstate);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 }
21745 {
21746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21747 }
21748 {
21749 if (temp7)
21750 delete arg7;
21751 }
21752 return resultobj;
21753fail:
21754 {
21755 if (temp7)
21756 delete arg7;
21757 }
21758 return NULL;
21759}
21760
21761
21762SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj = 0;
21764 wxTreebook *arg1 = (wxTreebook *) 0 ;
21765 size_t arg2 ;
21766 wxWindow *arg3 = (wxWindow *) 0 ;
21767 wxString *arg4 = 0 ;
21768 bool arg5 = (bool) false ;
21769 int arg6 = (int) wxNOT_FOUND ;
21770 bool result;
21771 void *argp1 = 0 ;
21772 int res1 = 0 ;
21773 size_t val2 ;
21774 int ecode2 = 0 ;
21775 void *argp3 = 0 ;
21776 int res3 = 0 ;
21777 bool temp4 = false ;
21778 bool val5 ;
21779 int ecode5 = 0 ;
21780 int val6 ;
21781 int ecode6 = 0 ;
21782 PyObject * obj0 = 0 ;
21783 PyObject * obj1 = 0 ;
21784 PyObject * obj2 = 0 ;
21785 PyObject * obj3 = 0 ;
21786 PyObject * obj4 = 0 ;
21787 PyObject * obj5 = 0 ;
21788 char * kwnames[] = {
21789 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21790 };
21791
21792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21794 if (!SWIG_IsOK(res1)) {
21795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21796 }
21797 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21798 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21799 if (!SWIG_IsOK(ecode2)) {
21800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21801 }
21802 arg2 = static_cast< size_t >(val2);
21803 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21804 if (!SWIG_IsOK(res3)) {
21805 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21806 }
21807 arg3 = reinterpret_cast< wxWindow * >(argp3);
21808 {
21809 arg4 = wxString_in_helper(obj3);
21810 if (arg4 == NULL) SWIG_fail;
21811 temp4 = true;
21812 }
21813 if (obj4) {
21814 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21815 if (!SWIG_IsOK(ecode5)) {
21816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21817 }
21818 arg5 = static_cast< bool >(val5);
21819 }
21820 if (obj5) {
21821 ecode6 = SWIG_AsVal_int(obj5, &val6);
21822 if (!SWIG_IsOK(ecode6)) {
21823 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21824 }
21825 arg6 = static_cast< int >(val6);
21826 }
21827 {
21828 PyThreadState* __tstate = wxPyBeginAllowThreads();
21829 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21830 wxPyEndAllowThreads(__tstate);
21831 if (PyErr_Occurred()) SWIG_fail;
21832 }
21833 {
21834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21835 }
21836 {
21837 if (temp4)
21838 delete arg4;
21839 }
21840 return resultobj;
21841fail:
21842 {
21843 if (temp4)
21844 delete arg4;
21845 }
21846 return NULL;
21847}
21848
21849
21850SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21851 PyObject *resultobj = 0;
21852 wxTreebook *arg1 = (wxTreebook *) 0 ;
21853 wxWindow *arg2 = (wxWindow *) 0 ;
21854 wxString *arg3 = 0 ;
21855 bool arg4 = (bool) false ;
21856 int arg5 = (int) wxNOT_FOUND ;
21857 bool result;
21858 void *argp1 = 0 ;
21859 int res1 = 0 ;
21860 void *argp2 = 0 ;
21861 int res2 = 0 ;
21862 bool temp3 = false ;
21863 bool val4 ;
21864 int ecode4 = 0 ;
21865 int val5 ;
21866 int ecode5 = 0 ;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 PyObject * obj2 = 0 ;
21870 PyObject * obj3 = 0 ;
21871 PyObject * obj4 = 0 ;
21872 char * kwnames[] = {
21873 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21874 };
21875
21876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21880 }
21881 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21882 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21883 if (!SWIG_IsOK(res2)) {
21884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21885 }
21886 arg2 = reinterpret_cast< wxWindow * >(argp2);
21887 {
21888 arg3 = wxString_in_helper(obj2);
21889 if (arg3 == NULL) SWIG_fail;
21890 temp3 = true;
21891 }
21892 if (obj3) {
21893 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21894 if (!SWIG_IsOK(ecode4)) {
21895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21896 }
21897 arg4 = static_cast< bool >(val4);
21898 }
21899 if (obj4) {
21900 ecode5 = SWIG_AsVal_int(obj4, &val5);
21901 if (!SWIG_IsOK(ecode5)) {
21902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21903 }
21904 arg5 = static_cast< int >(val5);
21905 }
21906 {
21907 PyThreadState* __tstate = wxPyBeginAllowThreads();
21908 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21909 wxPyEndAllowThreads(__tstate);
21910 if (PyErr_Occurred()) SWIG_fail;
21911 }
21912 {
21913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21914 }
21915 {
21916 if (temp3)
21917 delete arg3;
21918 }
21919 return resultobj;
21920fail:
21921 {
21922 if (temp3)
21923 delete arg3;
21924 }
21925 return NULL;
21926}
21927
21928
21929SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21930 PyObject *resultobj = 0;
21931 wxTreebook *arg1 = (wxTreebook *) 0 ;
21932 size_t arg2 ;
21933 bool result;
21934 void *argp1 = 0 ;
21935 int res1 = 0 ;
21936 size_t val2 ;
21937 int ecode2 = 0 ;
21938 PyObject * obj0 = 0 ;
21939 PyObject * obj1 = 0 ;
21940 char * kwnames[] = {
21941 (char *) "self",(char *) "pos", NULL
21942 };
21943
21944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21946 if (!SWIG_IsOK(res1)) {
21947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21948 }
21949 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21950 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21951 if (!SWIG_IsOK(ecode2)) {
21952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21953 }
21954 arg2 = static_cast< size_t >(val2);
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 {
21962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21963 }
21964 return resultobj;
21965fail:
21966 return NULL;
21967}
21968
21969
21970SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21971 PyObject *resultobj = 0;
21972 wxTreebook *arg1 = (wxTreebook *) 0 ;
21973 size_t arg2 ;
21974 bool arg3 = (bool) true ;
21975 bool result;
21976 void *argp1 = 0 ;
21977 int res1 = 0 ;
21978 size_t val2 ;
21979 int ecode2 = 0 ;
21980 bool val3 ;
21981 int ecode3 = 0 ;
21982 PyObject * obj0 = 0 ;
21983 PyObject * obj1 = 0 ;
21984 PyObject * obj2 = 0 ;
21985 char * kwnames[] = {
21986 (char *) "self",(char *) "pos",(char *) "expand", NULL
21987 };
21988
21989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21991 if (!SWIG_IsOK(res1)) {
21992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21993 }
21994 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21995 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21996 if (!SWIG_IsOK(ecode2)) {
21997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21998 }
21999 arg2 = static_cast< size_t >(val2);
22000 if (obj2) {
22001 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22002 if (!SWIG_IsOK(ecode3)) {
22003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22004 }
22005 arg3 = static_cast< bool >(val3);
22006 }
22007 {
22008 PyThreadState* __tstate = wxPyBeginAllowThreads();
22009 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22010 wxPyEndAllowThreads(__tstate);
22011 if (PyErr_Occurred()) SWIG_fail;
22012 }
22013 {
22014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22015 }
22016 return resultobj;
22017fail:
22018 return NULL;
22019}
22020
22021
22022SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22023 PyObject *resultobj = 0;
22024 wxTreebook *arg1 = (wxTreebook *) 0 ;
22025 size_t arg2 ;
22026 bool result;
22027 void *argp1 = 0 ;
22028 int res1 = 0 ;
22029 size_t val2 ;
22030 int ecode2 = 0 ;
22031 PyObject * obj0 = 0 ;
22032 PyObject * obj1 = 0 ;
22033 char * kwnames[] = {
22034 (char *) "self",(char *) "pos", NULL
22035 };
22036
22037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22039 if (!SWIG_IsOK(res1)) {
22040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22041 }
22042 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22043 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22044 if (!SWIG_IsOK(ecode2)) {
22045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22046 }
22047 arg2 = static_cast< size_t >(val2);
22048 {
22049 PyThreadState* __tstate = wxPyBeginAllowThreads();
22050 result = (bool)(arg1)->CollapseNode(arg2);
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 {
22055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22056 }
22057 return resultobj;
22058fail:
22059 return NULL;
22060}
22061
22062
22063SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22064 PyObject *resultobj = 0;
22065 wxTreebook *arg1 = (wxTreebook *) 0 ;
22066 size_t arg2 ;
22067 int result;
22068 void *argp1 = 0 ;
22069 int res1 = 0 ;
22070 size_t val2 ;
22071 int ecode2 = 0 ;
22072 PyObject * obj0 = 0 ;
22073 PyObject * obj1 = 0 ;
22074 char * kwnames[] = {
22075 (char *) "self",(char *) "pos", NULL
22076 };
22077
22078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22080 if (!SWIG_IsOK(res1)) {
22081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22082 }
22083 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22084 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22085 if (!SWIG_IsOK(ecode2)) {
22086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22087 }
22088 arg2 = static_cast< size_t >(val2);
22089 {
22090 PyThreadState* __tstate = wxPyBeginAllowThreads();
22091 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 resultobj = SWIG_From_int(static_cast< int >(result));
22096 return resultobj;
22097fail:
22098 return NULL;
d14a1e28
RD
22099}
22100
22101
0085ce49
RD
22102SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22103 PyObject *resultobj = 0;
22104 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22105 wxPyTreeCtrl *result = 0 ;
0085ce49
RD
22106 void *argp1 = 0 ;
22107 int res1 = 0 ;
22108 PyObject *swig_obj[1] ;
22109
22110 if (!args) SWIG_fail;
22111 swig_obj[0] = args;
22112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22113 if (!SWIG_IsOK(res1)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22115 }
22116 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22119 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
0085ce49
RD
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
10044bf1
RD
22123 {
22124 resultobj = wxPyMake_wxObject(result, (bool)0);
22125 }
0085ce49
RD
22126 return resultobj;
22127fail:
22128 return NULL;
22129}
22130
22131
22132SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22133 PyObject *obj;
22134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22135 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22136 return SWIG_Py_Void();
22137}
22138
22139SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22140 return SWIG_Python_InitShadowInstance(args);
22141}
22142
22143SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj = 0;
22145 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22146 int arg2 = (int) 0 ;
22147 int arg3 = (int) wxNOT_FOUND ;
22148 int arg4 = (int) wxNOT_FOUND ;
22149 wxTreebookEvent *result = 0 ;
22150 int val1 ;
22151 int ecode1 = 0 ;
22152 int val2 ;
22153 int ecode2 = 0 ;
22154 int val3 ;
22155 int ecode3 = 0 ;
22156 int val4 ;
22157 int ecode4 = 0 ;
22158 PyObject * obj0 = 0 ;
22159 PyObject * obj1 = 0 ;
22160 PyObject * obj2 = 0 ;
22161 PyObject * obj3 = 0 ;
22162 char * kwnames[] = {
22163 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22164 };
22165
22166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22167 if (obj0) {
22168 ecode1 = SWIG_AsVal_int(obj0, &val1);
22169 if (!SWIG_IsOK(ecode1)) {
22170 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22171 }
22172 arg1 = static_cast< wxEventType >(val1);
22173 }
22174 if (obj1) {
22175 ecode2 = SWIG_AsVal_int(obj1, &val2);
22176 if (!SWIG_IsOK(ecode2)) {
22177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22178 }
22179 arg2 = static_cast< int >(val2);
22180 }
22181 if (obj2) {
22182 ecode3 = SWIG_AsVal_int(obj2, &val3);
22183 if (!SWIG_IsOK(ecode3)) {
22184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22185 }
22186 arg3 = static_cast< int >(val3);
22187 }
22188 if (obj3) {
22189 ecode4 = SWIG_AsVal_int(obj3, &val4);
22190 if (!SWIG_IsOK(ecode4)) {
22191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22192 }
22193 arg4 = static_cast< int >(val4);
22194 }
22195 {
22196 PyThreadState* __tstate = wxPyBeginAllowThreads();
22197 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22198 wxPyEndAllowThreads(__tstate);
22199 if (PyErr_Occurred()) SWIG_fail;
22200 }
22201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22202 return resultobj;
22203fail:
22204 return NULL;
22205}
22206
22207
22208SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22209 PyObject *obj;
22210 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22211 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22212 return SWIG_Py_Void();
22213}
22214
22215SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22216 return SWIG_Python_InitShadowInstance(args);
22217}
22218
22219SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22220 PyObject *resultobj = 0;
22221 wxWindow *arg1 = (wxWindow *) 0 ;
22222 int arg2 ;
22223 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22224 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22225 wxSize const &arg4_defvalue = wxDefaultSize ;
22226 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22227 long arg5 = (long) wxBK_DEFAULT ;
22228 wxString const &arg6_defvalue = wxPyEmptyString ;
22229 wxString *arg6 = (wxString *) &arg6_defvalue ;
22230 wxToolbook *result = 0 ;
22231 void *argp1 = 0 ;
22232 int res1 = 0 ;
22233 int val2 ;
22234 int ecode2 = 0 ;
22235 wxPoint temp3 ;
22236 wxSize temp4 ;
22237 long val5 ;
22238 int ecode5 = 0 ;
22239 bool temp6 = false ;
22240 PyObject * obj0 = 0 ;
22241 PyObject * obj1 = 0 ;
22242 PyObject * obj2 = 0 ;
22243 PyObject * obj3 = 0 ;
22244 PyObject * obj4 = 0 ;
22245 PyObject * obj5 = 0 ;
22246 char * kwnames[] = {
22247 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22248 };
22249
22250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22252 if (!SWIG_IsOK(res1)) {
22253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22254 }
22255 arg1 = reinterpret_cast< wxWindow * >(argp1);
22256 ecode2 = SWIG_AsVal_int(obj1, &val2);
22257 if (!SWIG_IsOK(ecode2)) {
22258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22259 }
22260 arg2 = static_cast< int >(val2);
22261 if (obj2) {
d14a1e28 22262 {
0085ce49
RD
22263 arg3 = &temp3;
22264 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 22265 }
0085ce49
RD
22266 }
22267 if (obj3) {
093d3ff1 22268 {
0085ce49
RD
22269 arg4 = &temp4;
22270 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22271 }
0085ce49
RD
22272 }
22273 if (obj4) {
22274 ecode5 = SWIG_AsVal_long(obj4, &val5);
22275 if (!SWIG_IsOK(ecode5)) {
22276 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22277 }
22278 arg5 = static_cast< long >(val5);
22279 }
22280 if (obj5) {
d14a1e28 22281 {
0085ce49
RD
22282 arg6 = wxString_in_helper(obj5);
22283 if (arg6 == NULL) SWIG_fail;
22284 temp6 = true;
d14a1e28 22285 }
0085ce49
RD
22286 }
22287 {
22288 PyThreadState* __tstate = wxPyBeginAllowThreads();
22289 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22290 wxPyEndAllowThreads(__tstate);
22291 if (PyErr_Occurred()) SWIG_fail;
22292 }
22293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22294 {
22295 if (temp6)
22296 delete arg6;
22297 }
22298 return resultobj;
22299fail:
22300 {
22301 if (temp6)
22302 delete arg6;
22303 }
22304 return NULL;
d14a1e28
RD
22305}
22306
22307
0085ce49
RD
22308SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22309 PyObject *resultobj = 0;
22310 wxToolbook *result = 0 ;
22311
22312 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22313 {
22314 PyThreadState* __tstate = wxPyBeginAllowThreads();
22315 result = (wxToolbook *)new wxToolbook();
22316 wxPyEndAllowThreads(__tstate);
22317 if (PyErr_Occurred()) SWIG_fail;
22318 }
22319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22320 return resultobj;
22321fail:
22322 return NULL;
22323}
22324
22325
22326SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22327 PyObject *resultobj = 0;
22328 wxToolbook *arg1 = (wxToolbook *) 0 ;
22329 wxWindow *arg2 = (wxWindow *) 0 ;
22330 int arg3 ;
22331 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22332 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22333 wxSize const &arg5_defvalue = wxDefaultSize ;
22334 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22335 long arg6 = (long) 0 ;
22336 wxString const &arg7_defvalue = wxEmptyString ;
22337 wxString *arg7 = (wxString *) &arg7_defvalue ;
22338 bool result;
22339 void *argp1 = 0 ;
22340 int res1 = 0 ;
22341 void *argp2 = 0 ;
22342 int res2 = 0 ;
22343 int val3 ;
22344 int ecode3 = 0 ;
22345 wxPoint temp4 ;
22346 wxSize temp5 ;
22347 long val6 ;
22348 int ecode6 = 0 ;
22349 bool temp7 = false ;
22350 PyObject * obj0 = 0 ;
22351 PyObject * obj1 = 0 ;
22352 PyObject * obj2 = 0 ;
22353 PyObject * obj3 = 0 ;
22354 PyObject * obj4 = 0 ;
22355 PyObject * obj5 = 0 ;
22356 PyObject * obj6 = 0 ;
22357 char * kwnames[] = {
22358 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22359 };
22360
22361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22363 if (!SWIG_IsOK(res1)) {
22364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22365 }
22366 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22367 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22368 if (!SWIG_IsOK(res2)) {
22369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22370 }
22371 arg2 = reinterpret_cast< wxWindow * >(argp2);
22372 ecode3 = SWIG_AsVal_int(obj2, &val3);
22373 if (!SWIG_IsOK(ecode3)) {
22374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22375 }
22376 arg3 = static_cast< int >(val3);
22377 if (obj3) {
093d3ff1 22378 {
0085ce49
RD
22379 arg4 = &temp4;
22380 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22381 }
0085ce49
RD
22382 }
22383 if (obj4) {
093d3ff1 22384 {
0085ce49
RD
22385 arg5 = &temp5;
22386 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22387 }
0085ce49
RD
22388 }
22389 if (obj5) {
22390 ecode6 = SWIG_AsVal_long(obj5, &val6);
22391 if (!SWIG_IsOK(ecode6)) {
22392 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22393 }
22394 arg6 = static_cast< long >(val6);
22395 }
22396 if (obj6) {
994141e6 22397 {
0085ce49
RD
22398 arg7 = wxString_in_helper(obj6);
22399 if (arg7 == NULL) SWIG_fail;
22400 temp7 = true;
d14a1e28 22401 }
0085ce49
RD
22402 }
22403 {
22404 PyThreadState* __tstate = wxPyBeginAllowThreads();
22405 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22406 wxPyEndAllowThreads(__tstate);
22407 if (PyErr_Occurred()) SWIG_fail;
22408 }
22409 {
22410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22411 }
22412 {
22413 if (temp7)
22414 delete arg7;
22415 }
22416 return resultobj;
22417fail:
22418 {
22419 if (temp7)
22420 delete arg7;
22421 }
22422 return NULL;
22bfe96c
RD
22423}
22424
22425
0085ce49
RD
22426SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22427 PyObject *resultobj = 0;
22428 wxToolbook *arg1 = (wxToolbook *) 0 ;
22429 wxToolBarBase *result = 0 ;
22430 void *argp1 = 0 ;
22431 int res1 = 0 ;
22432 PyObject *swig_obj[1] ;
22433
22434 if (!args) SWIG_fail;
22435 swig_obj[0] = args;
22436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22437 if (!SWIG_IsOK(res1)) {
22438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22439 }
22440 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22441 {
22442 PyThreadState* __tstate = wxPyBeginAllowThreads();
22443 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22444 wxPyEndAllowThreads(__tstate);
22445 if (PyErr_Occurred()) SWIG_fail;
22446 }
22447 {
22448 resultobj = wxPyMake_wxObject(result, (bool)0);
22449 }
22450 return resultobj;
22451fail:
22452 return NULL;
d14a1e28
RD
22453}
22454
22455
0085ce49
RD
22456SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22457 PyObject *resultobj = 0;
22458 wxToolbook *arg1 = (wxToolbook *) 0 ;
22459 void *argp1 = 0 ;
22460 int res1 = 0 ;
22461 PyObject *swig_obj[1] ;
22462
22463 if (!args) SWIG_fail;
22464 swig_obj[0] = args;
22465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22466 if (!SWIG_IsOK(res1)) {
22467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22468 }
22469 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22470 {
22471 PyThreadState* __tstate = wxPyBeginAllowThreads();
22472 (arg1)->Realize();
22473 wxPyEndAllowThreads(__tstate);
22474 if (PyErr_Occurred()) SWIG_fail;
22475 }
22476 resultobj = SWIG_Py_Void();
22477 return resultobj;
22478fail:
22479 return NULL;
22480}
22481
22482
22483SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22484 PyObject *obj;
22485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22486 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22487 return SWIG_Py_Void();
22488}
22489
22490SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22491 return SWIG_Python_InitShadowInstance(args);
22492}
22493
22494SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22495 PyObject *resultobj = 0;
22496 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22497 int arg2 = (int) 0 ;
22498 int arg3 = (int) wxNOT_FOUND ;
22499 int arg4 = (int) wxNOT_FOUND ;
22500 wxToolbookEvent *result = 0 ;
22501 int val1 ;
22502 int ecode1 = 0 ;
22503 int val2 ;
22504 int ecode2 = 0 ;
22505 int val3 ;
22506 int ecode3 = 0 ;
22507 int val4 ;
22508 int ecode4 = 0 ;
22509 PyObject * obj0 = 0 ;
22510 PyObject * obj1 = 0 ;
22511 PyObject * obj2 = 0 ;
22512 PyObject * obj3 = 0 ;
22513 char * kwnames[] = {
22514 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22515 };
22516
22517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22518 if (obj0) {
22519 ecode1 = SWIG_AsVal_int(obj0, &val1);
22520 if (!SWIG_IsOK(ecode1)) {
22521 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22522 }
22523 arg1 = static_cast< wxEventType >(val1);
22524 }
22525 if (obj1) {
22526 ecode2 = SWIG_AsVal_int(obj1, &val2);
22527 if (!SWIG_IsOK(ecode2)) {
22528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22529 }
22530 arg2 = static_cast< int >(val2);
22531 }
22532 if (obj2) {
22533 ecode3 = SWIG_AsVal_int(obj2, &val3);
22534 if (!SWIG_IsOK(ecode3)) {
22535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22536 }
22537 arg3 = static_cast< int >(val3);
22538 }
22539 if (obj3) {
22540 ecode4 = SWIG_AsVal_int(obj3, &val4);
22541 if (!SWIG_IsOK(ecode4)) {
22542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22543 }
22544 arg4 = static_cast< int >(val4);
22545 }
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22553 return resultobj;
22554fail:
22555 return NULL;
d14a1e28
RD
22556}
22557
22558
0085ce49
RD
22559SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22560 PyObject *obj;
22561 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22562 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22563 return SWIG_Py_Void();
d14a1e28
RD
22564}
22565
0085ce49
RD
22566SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22567 return SWIG_Python_InitShadowInstance(args);
22568}
d14a1e28 22569
0085ce49
RD
22570SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22571 PyObject *resultobj = 0;
22572 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22573 int result;
22574 void *argp1 = 0 ;
22575 int res1 = 0 ;
22576 PyObject *swig_obj[1] ;
22577
22578 if (!args) SWIG_fail;
22579 swig_obj[0] = args;
22580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22581 if (!SWIG_IsOK(res1)) {
22582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22583 }
22584 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22585 {
22586 PyThreadState* __tstate = wxPyBeginAllowThreads();
22587 result = (int)(arg1)->GetId();
22588 wxPyEndAllowThreads(__tstate);
22589 if (PyErr_Occurred()) SWIG_fail;
22590 }
22591 resultobj = SWIG_From_int(static_cast< int >(result));
22592 return resultobj;
22593fail:
22594 return NULL;
d14a1e28
RD
22595}
22596
22597
0085ce49
RD
22598SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22599 PyObject *resultobj = 0;
22600 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22601 wxControl *result = 0 ;
22602 void *argp1 = 0 ;
22603 int res1 = 0 ;
22604 PyObject *swig_obj[1] ;
22605
22606 if (!args) SWIG_fail;
22607 swig_obj[0] = args;
22608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22609 if (!SWIG_IsOK(res1)) {
22610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22611 }
22612 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22613 {
22614 PyThreadState* __tstate = wxPyBeginAllowThreads();
22615 result = (wxControl *)(arg1)->GetControl();
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 {
22620 resultobj = wxPyMake_wxObject(result, 0);
22621 }
22622 return resultobj;
22623fail:
22624 return NULL;
d14a1e28
RD
22625}
22626
22627
0085ce49
RD
22628SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22629 PyObject *resultobj = 0;
22630 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22631 wxToolBarBase *result = 0 ;
22632 void *argp1 = 0 ;
22633 int res1 = 0 ;
22634 PyObject *swig_obj[1] ;
22635
22636 if (!args) SWIG_fail;
22637 swig_obj[0] = args;
22638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22639 if (!SWIG_IsOK(res1)) {
22640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22641 }
22642 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22643 {
22644 PyThreadState* __tstate = wxPyBeginAllowThreads();
22645 result = (wxToolBarBase *)(arg1)->GetToolBar();
22646 wxPyEndAllowThreads(__tstate);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 {
22650 resultobj = wxPyMake_wxObject(result, (bool)0);
22651 }
22652 return resultobj;
22653fail:
22654 return NULL;
d14a1e28
RD
22655}
22656
22657
0085ce49
RD
22658SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22659 PyObject *resultobj = 0;
22660 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22661 int result;
22662 void *argp1 = 0 ;
22663 int res1 = 0 ;
22664 PyObject *swig_obj[1] ;
22665
22666 if (!args) SWIG_fail;
22667 swig_obj[0] = args;
22668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22669 if (!SWIG_IsOK(res1)) {
22670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22671 }
22672 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22673 {
22674 PyThreadState* __tstate = wxPyBeginAllowThreads();
22675 result = (int)(arg1)->IsButton();
22676 wxPyEndAllowThreads(__tstate);
22677 if (PyErr_Occurred()) SWIG_fail;
22678 }
22679 resultobj = SWIG_From_int(static_cast< int >(result));
22680 return resultobj;
22681fail:
22682 return NULL;
d14a1e28
RD
22683}
22684
22685
0085ce49
RD
22686SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22687 PyObject *resultobj = 0;
22688 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22689 int result;
22690 void *argp1 = 0 ;
22691 int res1 = 0 ;
22692 PyObject *swig_obj[1] ;
22693
22694 if (!args) SWIG_fail;
22695 swig_obj[0] = args;
22696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22697 if (!SWIG_IsOK(res1)) {
22698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22699 }
22700 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22701 {
22702 PyThreadState* __tstate = wxPyBeginAllowThreads();
22703 result = (int)(arg1)->IsControl();
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 resultobj = SWIG_From_int(static_cast< int >(result));
22708 return resultobj;
22709fail:
22710 return NULL;
d14a1e28
RD
22711}
22712
22713
0085ce49
RD
22714SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22715 PyObject *resultobj = 0;
22716 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22717 int result;
22718 void *argp1 = 0 ;
22719 int res1 = 0 ;
22720 PyObject *swig_obj[1] ;
22721
22722 if (!args) SWIG_fail;
22723 swig_obj[0] = args;
22724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22725 if (!SWIG_IsOK(res1)) {
22726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22727 }
22728 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 result = (int)(arg1)->IsSeparator();
22732 wxPyEndAllowThreads(__tstate);
22733 if (PyErr_Occurred()) SWIG_fail;
22734 }
22735 resultobj = SWIG_From_int(static_cast< int >(result));
22736 return resultobj;
22737fail:
22738 return NULL;
d14a1e28
RD
22739}
22740
22741
0085ce49
RD
22742SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22743 PyObject *resultobj = 0;
22744 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22745 int result;
22746 void *argp1 = 0 ;
22747 int res1 = 0 ;
22748 PyObject *swig_obj[1] ;
22749
22750 if (!args) SWIG_fail;
22751 swig_obj[0] = args;
22752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22753 if (!SWIG_IsOK(res1)) {
22754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22755 }
22756 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22757 {
22758 PyThreadState* __tstate = wxPyBeginAllowThreads();
22759 result = (int)(arg1)->GetStyle();
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 resultobj = SWIG_From_int(static_cast< int >(result));
22764 return resultobj;
22765fail:
22766 return NULL;
d14a1e28
RD
22767}
22768
22769
0085ce49
RD
22770SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22771 PyObject *resultobj = 0;
22772 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22773 wxItemKind result;
22774 void *argp1 = 0 ;
22775 int res1 = 0 ;
22776 PyObject *swig_obj[1] ;
22777
22778 if (!args) SWIG_fail;
22779 swig_obj[0] = args;
22780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22781 if (!SWIG_IsOK(res1)) {
22782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22783 }
22784 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22785 {
22786 PyThreadState* __tstate = wxPyBeginAllowThreads();
22787 result = (wxItemKind)(arg1)->GetKind();
22788 wxPyEndAllowThreads(__tstate);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 resultobj = SWIG_From_int(static_cast< int >(result));
22792 return resultobj;
22793fail:
22794 return NULL;
d14a1e28
RD
22795}
22796
22797
0085ce49
RD
22798SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22799 PyObject *resultobj = 0;
22800 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22801 bool result;
22802 void *argp1 = 0 ;
22803 int res1 = 0 ;
22804 PyObject *swig_obj[1] ;
22805
22806 if (!args) SWIG_fail;
22807 swig_obj[0] = args;
22808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22809 if (!SWIG_IsOK(res1)) {
22810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22811 }
22812 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22813 {
22814 PyThreadState* __tstate = wxPyBeginAllowThreads();
22815 result = (bool)(arg1)->IsEnabled();
22816 wxPyEndAllowThreads(__tstate);
22817 if (PyErr_Occurred()) SWIG_fail;
22818 }
22819 {
22820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22821 }
22822 return resultobj;
22823fail:
22824 return NULL;
d14a1e28
RD
22825}
22826
22827
0085ce49
RD
22828SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22829 PyObject *resultobj = 0;
22830 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22831 bool result;
22832 void *argp1 = 0 ;
22833 int res1 = 0 ;
22834 PyObject *swig_obj[1] ;
22835
22836 if (!args) SWIG_fail;
22837 swig_obj[0] = args;
22838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22839 if (!SWIG_IsOK(res1)) {
22840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22841 }
22842 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22843 {
22844 PyThreadState* __tstate = wxPyBeginAllowThreads();
22845 result = (bool)(arg1)->IsToggled();
22846 wxPyEndAllowThreads(__tstate);
22847 if (PyErr_Occurred()) SWIG_fail;
22848 }
22849 {
22850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22851 }
22852 return resultobj;
22853fail:
22854 return NULL;
22bfe96c
RD
22855}
22856
22857
0085ce49
RD
22858SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22859 PyObject *resultobj = 0;
22860 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22861 bool result;
22862 void *argp1 = 0 ;
22863 int res1 = 0 ;
22864 PyObject *swig_obj[1] ;
22865
22866 if (!args) SWIG_fail;
22867 swig_obj[0] = args;
22868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22869 if (!SWIG_IsOK(res1)) {
22870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22871 }
22872 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22873 {
22874 PyThreadState* __tstate = wxPyBeginAllowThreads();
22875 result = (bool)(arg1)->CanBeToggled();
22876 wxPyEndAllowThreads(__tstate);
22877 if (PyErr_Occurred()) SWIG_fail;
22878 }
22879 {
22880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22881 }
22882 return resultobj;
22883fail:
22884 return NULL;
d1e20054
RD
22885}
22886
22887
0085ce49
RD
22888SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22889 PyObject *resultobj = 0;
22890 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22891 wxBitmap *result = 0 ;
22892 void *argp1 = 0 ;
22893 int res1 = 0 ;
22894 PyObject *swig_obj[1] ;
22895
22896 if (!args) SWIG_fail;
22897 swig_obj[0] = args;
22898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22899 if (!SWIG_IsOK(res1)) {
22900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22901 }
22902 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22903 {
22904 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22905 {
0085ce49
RD
22906 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22907 result = (wxBitmap *) &_result_ref;
093d3ff1 22908 }
0085ce49
RD
22909 wxPyEndAllowThreads(__tstate);
22910 if (PyErr_Occurred()) SWIG_fail;
22911 }
22912 {
22913 wxBitmap* resultptr = new wxBitmap(*result);
22914 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22915 }
22916 return resultobj;
22917fail:
22918 return NULL;
d1e20054
RD
22919}
22920
22921
0085ce49
RD
22922SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22923 PyObject *resultobj = 0;
22924 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22925 wxBitmap *result = 0 ;
22926 void *argp1 = 0 ;
22927 int res1 = 0 ;
22928 PyObject *swig_obj[1] ;
22929
22930 if (!args) SWIG_fail;
22931 swig_obj[0] = args;
22932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22933 if (!SWIG_IsOK(res1)) {
22934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22935 }
22936 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22937 {
22938 PyThreadState* __tstate = wxPyBeginAllowThreads();
d1e20054 22939 {
0085ce49
RD
22940 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22941 result = (wxBitmap *) &_result_ref;
d1e20054 22942 }
0085ce49
RD
22943 wxPyEndAllowThreads(__tstate);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 }
22946 {
22947 wxBitmap* resultptr = new wxBitmap(*result);
22948 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22949 }
22950 return resultobj;
22951fail:
22952 return NULL;
d1e20054
RD
22953}
22954
22955
0085ce49
RD
22956SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22957 PyObject *resultobj = 0;
22958 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22959 wxBitmap result;
22960 void *argp1 = 0 ;
22961 int res1 = 0 ;
22962 PyObject *swig_obj[1] ;
22963
22964 if (!args) SWIG_fail;
22965 swig_obj[0] = args;
22966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22967 if (!SWIG_IsOK(res1)) {
22968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22969 }
22970 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22971 {
22972 PyThreadState* __tstate = wxPyBeginAllowThreads();
22973 result = (arg1)->GetBitmap();
22974 wxPyEndAllowThreads(__tstate);
22975 if (PyErr_Occurred()) SWIG_fail;
22976 }
22977 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22978 return resultobj;
22979fail:
22980 return NULL;
b2dc1044
RD
22981}
22982
22983
0085ce49
RD
22984SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22985 PyObject *resultobj = 0;
22986 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22987 wxString result;
22988 void *argp1 = 0 ;
22989 int res1 = 0 ;
22990 PyObject *swig_obj[1] ;
22991
22992 if (!args) SWIG_fail;
22993 swig_obj[0] = args;
22994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22995 if (!SWIG_IsOK(res1)) {
22996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22997 }
22998 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22999 {
23000 PyThreadState* __tstate = wxPyBeginAllowThreads();
23001 result = (arg1)->GetLabel();
23002 wxPyEndAllowThreads(__tstate);
23003 if (PyErr_Occurred()) SWIG_fail;
23004 }
23005 {
b2dc1044 23006#if wxUSE_UNICODE
0085ce49 23007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23008#else
0085ce49 23009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23010#endif
0085ce49
RD
23011 }
23012 return resultobj;
23013fail:
23014 return NULL;
b2dc1044
RD
23015}
23016
23017
0085ce49
RD
23018SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23019 PyObject *resultobj = 0;
23020 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23021 wxString result;
23022 void *argp1 = 0 ;
23023 int res1 = 0 ;
23024 PyObject *swig_obj[1] ;
23025
23026 if (!args) SWIG_fail;
23027 swig_obj[0] = args;
23028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23029 if (!SWIG_IsOK(res1)) {
23030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23031 }
23032 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23033 {
23034 PyThreadState* __tstate = wxPyBeginAllowThreads();
23035 result = (arg1)->GetShortHelp();
23036 wxPyEndAllowThreads(__tstate);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
23039 {
b2dc1044 23040#if wxUSE_UNICODE
0085ce49 23041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23042#else
0085ce49 23043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23044#endif
0085ce49
RD
23045 }
23046 return resultobj;
23047fail:
23048 return NULL;
d14a1e28
RD
23049}
23050
23051
0085ce49
RD
23052SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23053 PyObject *resultobj = 0;
23054 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23055 wxString result;
23056 void *argp1 = 0 ;
23057 int res1 = 0 ;
23058 PyObject *swig_obj[1] ;
23059
23060 if (!args) SWIG_fail;
23061 swig_obj[0] = args;
23062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23063 if (!SWIG_IsOK(res1)) {
23064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23065 }
23066 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23067 {
23068 PyThreadState* __tstate = wxPyBeginAllowThreads();
23069 result = (arg1)->GetLongHelp();
23070 wxPyEndAllowThreads(__tstate);
23071 if (PyErr_Occurred()) SWIG_fail;
23072 }
23073 {
23074#if wxUSE_UNICODE
23075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23076#else
23077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23078#endif
23079 }
23080 return resultobj;
23081fail:
23082 return NULL;
23083}
23084
23085
23086SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23087 PyObject *resultobj = 0;
23088 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23089 bool arg2 ;
23090 bool result;
23091 void *argp1 = 0 ;
23092 int res1 = 0 ;
23093 bool val2 ;
23094 int ecode2 = 0 ;
23095 PyObject * obj0 = 0 ;
23096 PyObject * obj1 = 0 ;
23097 char * kwnames[] = {
23098 (char *) "self",(char *) "enable", NULL
23099 };
23100
23101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23103 if (!SWIG_IsOK(res1)) {
23104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23105 }
23106 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23107 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23108 if (!SWIG_IsOK(ecode2)) {
23109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23110 }
23111 arg2 = static_cast< bool >(val2);
23112 {
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 result = (bool)(arg1)->Enable(arg2);
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 {
23119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23120 }
23121 return resultobj;
23122fail:
23123 return NULL;
d14a1e28
RD
23124}
23125
23126
0085ce49
RD
23127SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23128 PyObject *resultobj = 0;
23129 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23130 void *argp1 = 0 ;
23131 int res1 = 0 ;
23132 PyObject *swig_obj[1] ;
23133
23134 if (!args) SWIG_fail;
23135 swig_obj[0] = args;
23136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23137 if (!SWIG_IsOK(res1)) {
23138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23139 }
23140 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23141 {
23142 PyThreadState* __tstate = wxPyBeginAllowThreads();
23143 (arg1)->Toggle();
23144 wxPyEndAllowThreads(__tstate);
23145 if (PyErr_Occurred()) SWIG_fail;
23146 }
23147 resultobj = SWIG_Py_Void();
23148 return resultobj;
23149fail:
23150 return NULL;
23151}
23152
23153
23154SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23155 PyObject *resultobj = 0;
23156 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23157 bool arg2 ;
23158 bool result;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 bool val2 ;
23162 int ecode2 = 0 ;
23163 PyObject * obj0 = 0 ;
23164 PyObject * obj1 = 0 ;
23165 char * kwnames[] = {
23166 (char *) "self",(char *) "toggle", NULL
23167 };
23168
23169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23171 if (!SWIG_IsOK(res1)) {
23172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23173 }
23174 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23175 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23176 if (!SWIG_IsOK(ecode2)) {
23177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23178 }
23179 arg2 = static_cast< bool >(val2);
23180 {
23181 PyThreadState* __tstate = wxPyBeginAllowThreads();
23182 result = (bool)(arg1)->SetToggle(arg2);
23183 wxPyEndAllowThreads(__tstate);
23184 if (PyErr_Occurred()) SWIG_fail;
23185 }
23186 {
23187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23188 }
23189 return resultobj;
23190fail:
23191 return NULL;
23192}
23193
23194
23195SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23196 PyObject *resultobj = 0;
23197 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23198 wxString *arg2 = 0 ;
23199 bool result;
23200 void *argp1 = 0 ;
23201 int res1 = 0 ;
23202 bool temp2 = false ;
23203 PyObject * obj0 = 0 ;
23204 PyObject * obj1 = 0 ;
23205 char * kwnames[] = {
23206 (char *) "self",(char *) "help", NULL
23207 };
23208
23209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23211 if (!SWIG_IsOK(res1)) {
23212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23213 }
23214 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23215 {
23216 arg2 = wxString_in_helper(obj1);
23217 if (arg2 == NULL) SWIG_fail;
23218 temp2 = true;
23219 }
23220 {
23221 PyThreadState* __tstate = wxPyBeginAllowThreads();
23222 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 {
23227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23228 }
23229 {
23230 if (temp2)
23231 delete arg2;
23232 }
23233 return resultobj;
23234fail:
23235 {
23236 if (temp2)
23237 delete arg2;
23238 }
23239 return NULL;
23240}
23241
23242
23243SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23244 PyObject *resultobj = 0;
23245 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23246 wxString *arg2 = 0 ;
23247 bool result;
23248 void *argp1 = 0 ;
23249 int res1 = 0 ;
23250 bool temp2 = false ;
23251 PyObject * obj0 = 0 ;
23252 PyObject * obj1 = 0 ;
23253 char * kwnames[] = {
23254 (char *) "self",(char *) "help", NULL
23255 };
23256
23257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23259 if (!SWIG_IsOK(res1)) {
23260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23261 }
23262 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23263 {
23264 arg2 = wxString_in_helper(obj1);
23265 if (arg2 == NULL) SWIG_fail;
23266 temp2 = true;
23267 }
23268 {
23269 PyThreadState* __tstate = wxPyBeginAllowThreads();
23270 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23271 wxPyEndAllowThreads(__tstate);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 }
23274 {
23275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23276 }
23277 {
23278 if (temp2)
23279 delete arg2;
23280 }
23281 return resultobj;
23282fail:
23283 {
23284 if (temp2)
23285 delete arg2;
23286 }
23287 return NULL;
23288}
23289
23290
23291SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23292 PyObject *resultobj = 0;
23293 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23294 wxBitmap *arg2 = 0 ;
23295 void *argp1 = 0 ;
23296 int res1 = 0 ;
23297 void *argp2 = 0 ;
23298 int res2 = 0 ;
23299 PyObject * obj0 = 0 ;
23300 PyObject * obj1 = 0 ;
23301 char * kwnames[] = {
23302 (char *) "self",(char *) "bmp", NULL
23303 };
23304
23305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23307 if (!SWIG_IsOK(res1)) {
23308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23309 }
23310 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23312 if (!SWIG_IsOK(res2)) {
23313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23314 }
23315 if (!argp2) {
23316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23317 }
23318 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 resultobj = SWIG_Py_Void();
23326 return resultobj;
23327fail:
23328 return NULL;
23329}
23330
23331
23332SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23333 PyObject *resultobj = 0;
23334 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23335 wxBitmap *arg2 = 0 ;
23336 void *argp1 = 0 ;
23337 int res1 = 0 ;
23338 void *argp2 = 0 ;
23339 int res2 = 0 ;
23340 PyObject * obj0 = 0 ;
23341 PyObject * obj1 = 0 ;
23342 char * kwnames[] = {
23343 (char *) "self",(char *) "bmp", NULL
23344 };
23345
23346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23348 if (!SWIG_IsOK(res1)) {
23349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23350 }
23351 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23353 if (!SWIG_IsOK(res2)) {
23354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23355 }
23356 if (!argp2) {
23357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23358 }
23359 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23360 {
23361 PyThreadState* __tstate = wxPyBeginAllowThreads();
23362 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 resultobj = SWIG_Py_Void();
23367 return resultobj;
23368fail:
23369 return NULL;
23370}
23371
23372
23373SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23374 PyObject *resultobj = 0;
23375 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23376 wxString *arg2 = 0 ;
23377 void *argp1 = 0 ;
23378 int res1 = 0 ;
23379 bool temp2 = false ;
23380 PyObject * obj0 = 0 ;
23381 PyObject * obj1 = 0 ;
23382 char * kwnames[] = {
23383 (char *) "self",(char *) "label", NULL
23384 };
23385
23386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23388 if (!SWIG_IsOK(res1)) {
23389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23390 }
23391 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23392 {
23393 arg2 = wxString_in_helper(obj1);
23394 if (arg2 == NULL) SWIG_fail;
23395 temp2 = true;
23396 }
23397 {
23398 PyThreadState* __tstate = wxPyBeginAllowThreads();
23399 (arg1)->SetLabel((wxString const &)*arg2);
23400 wxPyEndAllowThreads(__tstate);
23401 if (PyErr_Occurred()) SWIG_fail;
23402 }
23403 resultobj = SWIG_Py_Void();
23404 {
23405 if (temp2)
23406 delete arg2;
23407 }
23408 return resultobj;
23409fail:
23410 {
23411 if (temp2)
23412 delete arg2;
23413 }
23414 return NULL;
d14a1e28
RD
23415}
23416
23417
0085ce49
RD
23418SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23419 PyObject *resultobj = 0;
23420 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23421 void *argp1 = 0 ;
23422 int res1 = 0 ;
23423 PyObject *swig_obj[1] ;
23424
23425 if (!args) SWIG_fail;
23426 swig_obj[0] = args;
23427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23428 if (!SWIG_IsOK(res1)) {
23429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23430 }
23431 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23432 {
23433 PyThreadState* __tstate = wxPyBeginAllowThreads();
23434 (arg1)->Detach();
23435 wxPyEndAllowThreads(__tstate);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 }
23438 resultobj = SWIG_Py_Void();
23439 return resultobj;
23440fail:
23441 return NULL;
23442}
23443
23444
23445SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23446 PyObject *resultobj = 0;
23447 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23448 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23449 void *argp1 = 0 ;
23450 int res1 = 0 ;
23451 void *argp2 = 0 ;
23452 int res2 = 0 ;
23453 PyObject * obj0 = 0 ;
23454 PyObject * obj1 = 0 ;
23455 char * kwnames[] = {
23456 (char *) "self",(char *) "tbar", NULL
23457 };
23458
23459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23461 if (!SWIG_IsOK(res1)) {
23462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23463 }
23464 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23465 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23466 if (!SWIG_IsOK(res2)) {
23467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23468 }
23469 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23470 {
23471 PyThreadState* __tstate = wxPyBeginAllowThreads();
23472 (arg1)->Attach(arg2);
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 resultobj = SWIG_Py_Void();
23477 return resultobj;
23478fail:
23479 return NULL;
d14a1e28
RD
23480}
23481
23482
0085ce49
RD
23483SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23484 PyObject *resultobj = 0;
23485 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23486 PyObject *result = 0 ;
23487 void *argp1 = 0 ;
23488 int res1 = 0 ;
23489 PyObject *swig_obj[1] ;
23490
23491 if (!args) SWIG_fail;
23492 swig_obj[0] = args;
23493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23494 if (!SWIG_IsOK(res1)) {
23495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23496 }
23497 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23498 {
23499 PyThreadState* __tstate = wxPyBeginAllowThreads();
23500 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23501 wxPyEndAllowThreads(__tstate);
23502 if (PyErr_Occurred()) SWIG_fail;
23503 }
23504 resultobj = result;
23505 return resultobj;
23506fail:
23507 return NULL;
23508}
23509
23510
23511SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23512 PyObject *resultobj = 0;
23513 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23514 PyObject *arg2 = (PyObject *) 0 ;
23515 void *argp1 = 0 ;
23516 int res1 = 0 ;
23517 PyObject * obj0 = 0 ;
23518 PyObject * obj1 = 0 ;
23519 char * kwnames[] = {
23520 (char *) "self",(char *) "clientData", NULL
23521 };
23522
23523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23525 if (!SWIG_IsOK(res1)) {
23526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23527 }
23528 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23529 arg2 = obj1;
23530 {
23531 PyThreadState* __tstate = wxPyBeginAllowThreads();
23532 wxToolBarToolBase_SetClientData(arg1,arg2);
23533 wxPyEndAllowThreads(__tstate);
23534 if (PyErr_Occurred()) SWIG_fail;
23535 }
23536 resultobj = SWIG_Py_Void();
23537 return resultobj;
23538fail:
23539 return NULL;
23540}
23541
23542
23543SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23544 PyObject *obj;
23545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23546 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23547 return SWIG_Py_Void();
23548}
23549
23550SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23551 PyObject *resultobj = 0;
23552 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23553 int arg2 ;
23554 wxString *arg3 = 0 ;
23555 wxBitmap *arg4 = 0 ;
23556 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23557 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23558 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23559 wxString const &arg7_defvalue = wxPyEmptyString ;
23560 wxString *arg7 = (wxString *) &arg7_defvalue ;
23561 wxString const &arg8_defvalue = wxPyEmptyString ;
23562 wxString *arg8 = (wxString *) &arg8_defvalue ;
23563 PyObject *arg9 = (PyObject *) NULL ;
23564 wxToolBarToolBase *result = 0 ;
23565 void *argp1 = 0 ;
23566 int res1 = 0 ;
23567 int val2 ;
23568 int ecode2 = 0 ;
23569 bool temp3 = false ;
23570 void *argp4 = 0 ;
23571 int res4 = 0 ;
23572 void *argp5 = 0 ;
23573 int res5 = 0 ;
23574 int val6 ;
23575 int ecode6 = 0 ;
23576 bool temp7 = false ;
23577 bool temp8 = false ;
23578 PyObject * obj0 = 0 ;
23579 PyObject * obj1 = 0 ;
23580 PyObject * obj2 = 0 ;
23581 PyObject * obj3 = 0 ;
23582 PyObject * obj4 = 0 ;
23583 PyObject * obj5 = 0 ;
23584 PyObject * obj6 = 0 ;
23585 PyObject * obj7 = 0 ;
23586 PyObject * obj8 = 0 ;
23587 char * kwnames[] = {
23588 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23589 };
23590
23591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23593 if (!SWIG_IsOK(res1)) {
23594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23595 }
23596 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23597 ecode2 = SWIG_AsVal_int(obj1, &val2);
23598 if (!SWIG_IsOK(ecode2)) {
23599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23600 }
23601 arg2 = static_cast< int >(val2);
23602 {
23603 arg3 = wxString_in_helper(obj2);
23604 if (arg3 == NULL) SWIG_fail;
23605 temp3 = true;
23606 }
23607 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23608 if (!SWIG_IsOK(res4)) {
23609 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23610 }
23611 if (!argp4) {
23612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23613 }
23614 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23615 if (obj4) {
23616 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23617 if (!SWIG_IsOK(res5)) {
23618 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23619 }
0085ce49
RD
23620 if (!argp5) {
23621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23622 }
0085ce49
RD
23623 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23624 }
23625 if (obj5) {
23626 ecode6 = SWIG_AsVal_int(obj5, &val6);
23627 if (!SWIG_IsOK(ecode6)) {
23628 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23629 }
23630 arg6 = static_cast< wxItemKind >(val6);
23631 }
23632 if (obj6) {
093d3ff1 23633 {
0085ce49
RD
23634 arg7 = wxString_in_helper(obj6);
23635 if (arg7 == NULL) SWIG_fail;
23636 temp7 = true;
093d3ff1 23637 }
0085ce49
RD
23638 }
23639 if (obj7) {
d14a1e28 23640 {
0085ce49
RD
23641 arg8 = wxString_in_helper(obj7);
23642 if (arg8 == NULL) SWIG_fail;
23643 temp8 = true;
d14a1e28 23644 }
0085ce49
RD
23645 }
23646 if (obj8) {
23647 arg9 = obj8;
23648 }
23649 {
23650 PyThreadState* __tstate = wxPyBeginAllowThreads();
23651 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23652 wxPyEndAllowThreads(__tstate);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 }
23655 {
23656 resultobj = wxPyMake_wxObject(result, (bool)0);
23657 }
23658 {
23659 if (temp3)
23660 delete arg3;
23661 }
23662 {
23663 if (temp7)
23664 delete arg7;
23665 }
23666 {
23667 if (temp8)
23668 delete arg8;
23669 }
23670 return resultobj;
23671fail:
23672 {
23673 if (temp3)
23674 delete arg3;
23675 }
23676 {
23677 if (temp7)
23678 delete arg7;
23679 }
23680 {
23681 if (temp8)
23682 delete arg8;
23683 }
23684 return NULL;
23685}
23686
23687
23688SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23689 PyObject *resultobj = 0;
23690 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23691 size_t arg2 ;
23692 int arg3 ;
23693 wxString *arg4 = 0 ;
23694 wxBitmap *arg5 = 0 ;
23695 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23696 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23697 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23698 wxString const &arg8_defvalue = wxPyEmptyString ;
23699 wxString *arg8 = (wxString *) &arg8_defvalue ;
23700 wxString const &arg9_defvalue = wxPyEmptyString ;
23701 wxString *arg9 = (wxString *) &arg9_defvalue ;
23702 PyObject *arg10 = (PyObject *) NULL ;
23703 wxToolBarToolBase *result = 0 ;
23704 void *argp1 = 0 ;
23705 int res1 = 0 ;
23706 size_t val2 ;
23707 int ecode2 = 0 ;
23708 int val3 ;
23709 int ecode3 = 0 ;
23710 bool temp4 = false ;
23711 void *argp5 = 0 ;
23712 int res5 = 0 ;
23713 void *argp6 = 0 ;
23714 int res6 = 0 ;
23715 int val7 ;
23716 int ecode7 = 0 ;
23717 bool temp8 = false ;
23718 bool temp9 = false ;
23719 PyObject * obj0 = 0 ;
23720 PyObject * obj1 = 0 ;
23721 PyObject * obj2 = 0 ;
23722 PyObject * obj3 = 0 ;
23723 PyObject * obj4 = 0 ;
23724 PyObject * obj5 = 0 ;
23725 PyObject * obj6 = 0 ;
23726 PyObject * obj7 = 0 ;
23727 PyObject * obj8 = 0 ;
23728 PyObject * obj9 = 0 ;
23729 char * kwnames[] = {
23730 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23731 };
23732
23733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23735 if (!SWIG_IsOK(res1)) {
23736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23737 }
23738 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23739 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23740 if (!SWIG_IsOK(ecode2)) {
23741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23742 }
23743 arg2 = static_cast< size_t >(val2);
23744 ecode3 = SWIG_AsVal_int(obj2, &val3);
23745 if (!SWIG_IsOK(ecode3)) {
23746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23747 }
23748 arg3 = static_cast< int >(val3);
23749 {
23750 arg4 = wxString_in_helper(obj3);
23751 if (arg4 == NULL) SWIG_fail;
23752 temp4 = true;
23753 }
23754 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23755 if (!SWIG_IsOK(res5)) {
23756 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23757 }
23758 if (!argp5) {
23759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23760 }
23761 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23762 if (obj5) {
23763 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23764 if (!SWIG_IsOK(res6)) {
23765 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d14a1e28 23766 }
0085ce49
RD
23767 if (!argp6) {
23768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
093d3ff1 23769 }
0085ce49
RD
23770 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23771 }
23772 if (obj6) {
23773 ecode7 = SWIG_AsVal_int(obj6, &val7);
23774 if (!SWIG_IsOK(ecode7)) {
23775 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23776 }
23777 arg7 = static_cast< wxItemKind >(val7);
23778 }
23779 if (obj7) {
d14a1e28 23780 {
0085ce49
RD
23781 arg8 = wxString_in_helper(obj7);
23782 if (arg8 == NULL) SWIG_fail;
23783 temp8 = true;
d14a1e28 23784 }
0085ce49
RD
23785 }
23786 if (obj8) {
d14a1e28 23787 {
0085ce49
RD
23788 arg9 = wxString_in_helper(obj8);
23789 if (arg9 == NULL) SWIG_fail;
23790 temp9 = true;
d14a1e28 23791 }
0085ce49
RD
23792 }
23793 if (obj9) {
23794 arg10 = obj9;
23795 }
23796 {
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23799 wxPyEndAllowThreads(__tstate);
23800 if (PyErr_Occurred()) SWIG_fail;
23801 }
23802 {
23803 resultobj = wxPyMake_wxObject(result, (bool)0);
23804 }
23805 {
23806 if (temp4)
23807 delete arg4;
23808 }
23809 {
23810 if (temp8)
23811 delete arg8;
23812 }
23813 {
23814 if (temp9)
23815 delete arg9;
23816 }
23817 return resultobj;
23818fail:
23819 {
23820 if (temp4)
23821 delete arg4;
23822 }
23823 {
23824 if (temp8)
23825 delete arg8;
23826 }
23827 {
23828 if (temp9)
23829 delete arg9;
23830 }
23831 return NULL;
23832}
23833
23834
23835SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23836 PyObject *resultobj = 0;
23837 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23838 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23839 wxToolBarToolBase *result = 0 ;
23840 void *argp1 = 0 ;
23841 int res1 = 0 ;
23842 void *argp2 = 0 ;
23843 int res2 = 0 ;
23844 PyObject * obj0 = 0 ;
23845 PyObject * obj1 = 0 ;
23846 char * kwnames[] = {
23847 (char *) "self",(char *) "tool", NULL
23848 };
23849
23850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23852 if (!SWIG_IsOK(res1)) {
23853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23854 }
23855 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23857 if (!SWIG_IsOK(res2)) {
23858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23859 }
23860 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23861 {
23862 PyThreadState* __tstate = wxPyBeginAllowThreads();
23863 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23864 wxPyEndAllowThreads(__tstate);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 {
23868 resultobj = wxPyMake_wxObject(result, (bool)0);
23869 }
23870 return resultobj;
23871fail:
23872 return NULL;
23873}
23874
23875
23876SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23877 PyObject *resultobj = 0;
23878 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23879 size_t arg2 ;
23880 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23881 wxToolBarToolBase *result = 0 ;
23882 void *argp1 = 0 ;
23883 int res1 = 0 ;
23884 size_t val2 ;
23885 int ecode2 = 0 ;
23886 void *argp3 = 0 ;
23887 int res3 = 0 ;
23888 PyObject * obj0 = 0 ;
23889 PyObject * obj1 = 0 ;
23890 PyObject * obj2 = 0 ;
23891 char * kwnames[] = {
23892 (char *) "self",(char *) "pos",(char *) "tool", NULL
23893 };
23894
23895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23897 if (!SWIG_IsOK(res1)) {
23898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23899 }
23900 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23901 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23902 if (!SWIG_IsOK(ecode2)) {
23903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23904 }
23905 arg2 = static_cast< size_t >(val2);
23906 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23907 if (!SWIG_IsOK(res3)) {
23908 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23909 }
23910 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23911 {
23912 PyThreadState* __tstate = wxPyBeginAllowThreads();
23913 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23914 wxPyEndAllowThreads(__tstate);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 }
23917 {
23918 resultobj = wxPyMake_wxObject(result, (bool)0);
23919 }
23920 return resultobj;
23921fail:
23922 return NULL;
23923}
23924
23925
23926SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23927 PyObject *resultobj = 0;
23928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23929 wxControl *arg2 = (wxControl *) 0 ;
23930 wxToolBarToolBase *result = 0 ;
23931 void *argp1 = 0 ;
23932 int res1 = 0 ;
23933 void *argp2 = 0 ;
23934 int res2 = 0 ;
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 char * kwnames[] = {
23938 (char *) "self",(char *) "control", NULL
23939 };
23940
23941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23943 if (!SWIG_IsOK(res1)) {
23944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23945 }
23946 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23947 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23948 if (!SWIG_IsOK(res2)) {
23949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23950 }
23951 arg2 = reinterpret_cast< wxControl * >(argp2);
23952 {
23953 PyThreadState* __tstate = wxPyBeginAllowThreads();
23954 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23955 wxPyEndAllowThreads(__tstate);
23956 if (PyErr_Occurred()) SWIG_fail;
23957 }
23958 {
23959 resultobj = wxPyMake_wxObject(result, (bool)0);
23960 }
23961 return resultobj;
23962fail:
23963 return NULL;
23964}
23965
23966
23967SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23968 PyObject *resultobj = 0;
23969 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23970 size_t arg2 ;
23971 wxControl *arg3 = (wxControl *) 0 ;
23972 wxToolBarToolBase *result = 0 ;
23973 void *argp1 = 0 ;
23974 int res1 = 0 ;
23975 size_t val2 ;
23976 int ecode2 = 0 ;
23977 void *argp3 = 0 ;
23978 int res3 = 0 ;
23979 PyObject * obj0 = 0 ;
23980 PyObject * obj1 = 0 ;
23981 PyObject * obj2 = 0 ;
23982 char * kwnames[] = {
23983 (char *) "self",(char *) "pos",(char *) "control", NULL
23984 };
23985
23986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23988 if (!SWIG_IsOK(res1)) {
23989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23990 }
23991 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23992 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23993 if (!SWIG_IsOK(ecode2)) {
23994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23995 }
23996 arg2 = static_cast< size_t >(val2);
23997 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23998 if (!SWIG_IsOK(res3)) {
23999 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24000 }
24001 arg3 = reinterpret_cast< wxControl * >(argp3);
24002 {
24003 PyThreadState* __tstate = wxPyBeginAllowThreads();
24004 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24005 wxPyEndAllowThreads(__tstate);
24006 if (PyErr_Occurred()) SWIG_fail;
24007 }
24008 {
24009 resultobj = wxPyMake_wxObject(result, (bool)0);
24010 }
24011 return resultobj;
24012fail:
24013 return NULL;
24014}
24015
24016
24017SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24018 PyObject *resultobj = 0;
24019 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24020 int arg2 ;
24021 wxControl *result = 0 ;
24022 void *argp1 = 0 ;
24023 int res1 = 0 ;
24024 int val2 ;
24025 int ecode2 = 0 ;
24026 PyObject * obj0 = 0 ;
24027 PyObject * obj1 = 0 ;
24028 char * kwnames[] = {
24029 (char *) "self",(char *) "id", NULL
24030 };
24031
24032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24034 if (!SWIG_IsOK(res1)) {
24035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24036 }
24037 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24038 ecode2 = SWIG_AsVal_int(obj1, &val2);
24039 if (!SWIG_IsOK(ecode2)) {
24040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24041 }
24042 arg2 = static_cast< int >(val2);
24043 {
24044 PyThreadState* __tstate = wxPyBeginAllowThreads();
24045 result = (wxControl *)(arg1)->FindControl(arg2);
24046 wxPyEndAllowThreads(__tstate);
24047 if (PyErr_Occurred()) SWIG_fail;
24048 }
24049 {
24050 resultobj = wxPyMake_wxObject(result, 0);
24051 }
24052 return resultobj;
24053fail:
24054 return NULL;
d14a1e28
RD
24055}
24056
24057
0085ce49
RD
24058SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24059 PyObject *resultobj = 0;
24060 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24061 wxToolBarToolBase *result = 0 ;
24062 void *argp1 = 0 ;
24063 int res1 = 0 ;
24064 PyObject *swig_obj[1] ;
24065
24066 if (!args) SWIG_fail;
24067 swig_obj[0] = args;
24068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24069 if (!SWIG_IsOK(res1)) {
24070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24071 }
24072 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24073 {
24074 PyThreadState* __tstate = wxPyBeginAllowThreads();
24075 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24076 wxPyEndAllowThreads(__tstate);
24077 if (PyErr_Occurred()) SWIG_fail;
24078 }
24079 {
24080 resultobj = wxPyMake_wxObject(result, (bool)0);
24081 }
24082 return resultobj;
24083fail:
24084 return NULL;
24085}
24086
24087
24088SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24089 PyObject *resultobj = 0;
24090 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24091 size_t arg2 ;
24092 wxToolBarToolBase *result = 0 ;
24093 void *argp1 = 0 ;
24094 int res1 = 0 ;
24095 size_t val2 ;
24096 int ecode2 = 0 ;
24097 PyObject * obj0 = 0 ;
24098 PyObject * obj1 = 0 ;
24099 char * kwnames[] = {
24100 (char *) "self",(char *) "pos", NULL
24101 };
24102
24103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24105 if (!SWIG_IsOK(res1)) {
24106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24107 }
24108 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24109 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24110 if (!SWIG_IsOK(ecode2)) {
24111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24112 }
24113 arg2 = static_cast< size_t >(val2);
24114 {
24115 PyThreadState* __tstate = wxPyBeginAllowThreads();
24116 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24117 wxPyEndAllowThreads(__tstate);
24118 if (PyErr_Occurred()) SWIG_fail;
24119 }
24120 {
24121 resultobj = wxPyMake_wxObject(result, (bool)0);
24122 }
24123 return resultobj;
24124fail:
24125 return NULL;
24126}
24127
24128
24129SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24130 PyObject *resultobj = 0;
24131 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24132 int arg2 ;
24133 wxToolBarToolBase *result = 0 ;
24134 void *argp1 = 0 ;
24135 int res1 = 0 ;
24136 int val2 ;
24137 int ecode2 = 0 ;
24138 PyObject * obj0 = 0 ;
24139 PyObject * obj1 = 0 ;
24140 char * kwnames[] = {
24141 (char *) "self",(char *) "id", NULL
24142 };
24143
24144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24146 if (!SWIG_IsOK(res1)) {
24147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24148 }
24149 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24150 ecode2 = SWIG_AsVal_int(obj1, &val2);
24151 if (!SWIG_IsOK(ecode2)) {
24152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24153 }
24154 arg2 = static_cast< int >(val2);
24155 {
24156 PyThreadState* __tstate = wxPyBeginAllowThreads();
24157 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24158 wxPyEndAllowThreads(__tstate);
24159 if (PyErr_Occurred()) SWIG_fail;
24160 }
24161 {
24162 resultobj = wxPyMake_wxObject(result, (bool)0);
24163 }
24164 return resultobj;
24165fail:
24166 return NULL;
24167}
24168
24169
24170SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24171 PyObject *resultobj = 0;
24172 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24173 size_t arg2 ;
24174 bool result;
24175 void *argp1 = 0 ;
24176 int res1 = 0 ;
24177 size_t val2 ;
24178 int ecode2 = 0 ;
24179 PyObject * obj0 = 0 ;
24180 PyObject * obj1 = 0 ;
24181 char * kwnames[] = {
24182 (char *) "self",(char *) "pos", NULL
24183 };
24184
24185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24187 if (!SWIG_IsOK(res1)) {
24188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24189 }
24190 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24191 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24192 if (!SWIG_IsOK(ecode2)) {
24193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24194 }
24195 arg2 = static_cast< size_t >(val2);
24196 {
24197 PyThreadState* __tstate = wxPyBeginAllowThreads();
24198 result = (bool)(arg1)->DeleteToolByPos(arg2);
24199 wxPyEndAllowThreads(__tstate);
24200 if (PyErr_Occurred()) SWIG_fail;
24201 }
24202 {
24203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24204 }
24205 return resultobj;
24206fail:
24207 return NULL;
24208}
24209
24210
24211SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24212 PyObject *resultobj = 0;
24213 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24214 int arg2 ;
24215 bool result;
24216 void *argp1 = 0 ;
24217 int res1 = 0 ;
24218 int val2 ;
24219 int ecode2 = 0 ;
24220 PyObject * obj0 = 0 ;
24221 PyObject * obj1 = 0 ;
24222 char * kwnames[] = {
24223 (char *) "self",(char *) "id", NULL
24224 };
24225
24226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24228 if (!SWIG_IsOK(res1)) {
24229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24230 }
24231 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24232 ecode2 = SWIG_AsVal_int(obj1, &val2);
24233 if (!SWIG_IsOK(ecode2)) {
24234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24235 }
24236 arg2 = static_cast< int >(val2);
24237 {
24238 PyThreadState* __tstate = wxPyBeginAllowThreads();
24239 result = (bool)(arg1)->DeleteTool(arg2);
24240 wxPyEndAllowThreads(__tstate);
24241 if (PyErr_Occurred()) SWIG_fail;
24242 }
24243 {
24244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24245 }
24246 return resultobj;
24247fail:
24248 return NULL;
d14a1e28
RD
24249}
24250
24251
0085ce49
RD
24252SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24253 PyObject *resultobj = 0;
24254 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24255 void *argp1 = 0 ;
24256 int res1 = 0 ;
24257 PyObject *swig_obj[1] ;
24258
24259 if (!args) SWIG_fail;
24260 swig_obj[0] = args;
24261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24262 if (!SWIG_IsOK(res1)) {
24263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24264 }
24265 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24266 {
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 (arg1)->ClearTools();
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_Py_Void();
24273 return resultobj;
24274fail:
24275 return NULL;
d14a1e28
RD
24276}
24277
24278
0085ce49
RD
24279SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24280 PyObject *resultobj = 0;
24281 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24282 bool result;
24283 void *argp1 = 0 ;
24284 int res1 = 0 ;
24285 PyObject *swig_obj[1] ;
24286
24287 if (!args) SWIG_fail;
24288 swig_obj[0] = args;
24289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24290 if (!SWIG_IsOK(res1)) {
24291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24292 }
24293 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24294 {
24295 PyThreadState* __tstate = wxPyBeginAllowThreads();
24296 result = (bool)(arg1)->Realize();
24297 wxPyEndAllowThreads(__tstate);
24298 if (PyErr_Occurred()) SWIG_fail;
24299 }
24300 {
24301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24302 }
24303 return resultobj;
24304fail:
24305 return NULL;
24306}
24307
24308
24309SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24310 PyObject *resultobj = 0;
24311 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24312 int arg2 ;
24313 bool arg3 ;
24314 void *argp1 = 0 ;
24315 int res1 = 0 ;
24316 int val2 ;
24317 int ecode2 = 0 ;
24318 bool val3 ;
24319 int ecode3 = 0 ;
24320 PyObject * obj0 = 0 ;
24321 PyObject * obj1 = 0 ;
24322 PyObject * obj2 = 0 ;
24323 char * kwnames[] = {
24324 (char *) "self",(char *) "id",(char *) "enable", NULL
24325 };
24326
24327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24329 if (!SWIG_IsOK(res1)) {
24330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24331 }
24332 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24333 ecode2 = SWIG_AsVal_int(obj1, &val2);
24334 if (!SWIG_IsOK(ecode2)) {
24335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24336 }
24337 arg2 = static_cast< int >(val2);
24338 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24339 if (!SWIG_IsOK(ecode3)) {
24340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24341 }
24342 arg3 = static_cast< bool >(val3);
24343 {
24344 PyThreadState* __tstate = wxPyBeginAllowThreads();
24345 (arg1)->EnableTool(arg2,arg3);
24346 wxPyEndAllowThreads(__tstate);
24347 if (PyErr_Occurred()) SWIG_fail;
24348 }
24349 resultobj = SWIG_Py_Void();
24350 return resultobj;
24351fail:
24352 return NULL;
24353}
24354
24355
24356SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24357 PyObject *resultobj = 0;
24358 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24359 int arg2 ;
24360 bool arg3 ;
24361 void *argp1 = 0 ;
24362 int res1 = 0 ;
24363 int val2 ;
24364 int ecode2 = 0 ;
24365 bool val3 ;
24366 int ecode3 = 0 ;
24367 PyObject * obj0 = 0 ;
24368 PyObject * obj1 = 0 ;
24369 PyObject * obj2 = 0 ;
24370 char * kwnames[] = {
24371 (char *) "self",(char *) "id",(char *) "toggle", NULL
24372 };
24373
24374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24376 if (!SWIG_IsOK(res1)) {
24377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24378 }
24379 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24380 ecode2 = SWIG_AsVal_int(obj1, &val2);
24381 if (!SWIG_IsOK(ecode2)) {
24382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24383 }
24384 arg2 = static_cast< int >(val2);
24385 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24386 if (!SWIG_IsOK(ecode3)) {
24387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24388 }
24389 arg3 = static_cast< bool >(val3);
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 (arg1)->ToggleTool(arg2,arg3);
24393 wxPyEndAllowThreads(__tstate);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
24396 resultobj = SWIG_Py_Void();
24397 return resultobj;
24398fail:
24399 return NULL;
24400}
24401
24402
24403SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24404 PyObject *resultobj = 0;
24405 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24406 int arg2 ;
24407 bool arg3 ;
24408 void *argp1 = 0 ;
24409 int res1 = 0 ;
24410 int val2 ;
24411 int ecode2 = 0 ;
24412 bool val3 ;
24413 int ecode3 = 0 ;
24414 PyObject * obj0 = 0 ;
24415 PyObject * obj1 = 0 ;
24416 PyObject * obj2 = 0 ;
24417 char * kwnames[] = {
24418 (char *) "self",(char *) "id",(char *) "toggle", NULL
24419 };
24420
24421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24423 if (!SWIG_IsOK(res1)) {
24424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24425 }
24426 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24427 ecode2 = SWIG_AsVal_int(obj1, &val2);
24428 if (!SWIG_IsOK(ecode2)) {
24429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24430 }
24431 arg2 = static_cast< int >(val2);
24432 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24433 if (!SWIG_IsOK(ecode3)) {
24434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24435 }
24436 arg3 = static_cast< bool >(val3);
24437 {
24438 PyThreadState* __tstate = wxPyBeginAllowThreads();
24439 (arg1)->SetToggle(arg2,arg3);
24440 wxPyEndAllowThreads(__tstate);
24441 if (PyErr_Occurred()) SWIG_fail;
24442 }
24443 resultobj = SWIG_Py_Void();
24444 return resultobj;
24445fail:
24446 return NULL;
24447}
24448
24449
24450SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24451 PyObject *resultobj = 0;
24452 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24453 int arg2 ;
24454 PyObject *result = 0 ;
24455 void *argp1 = 0 ;
24456 int res1 = 0 ;
24457 int val2 ;
24458 int ecode2 = 0 ;
24459 PyObject * obj0 = 0 ;
24460 PyObject * obj1 = 0 ;
24461 char * kwnames[] = {
24462 (char *) "self",(char *) "id", NULL
24463 };
24464
24465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24467 if (!SWIG_IsOK(res1)) {
24468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24469 }
24470 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24471 ecode2 = SWIG_AsVal_int(obj1, &val2);
24472 if (!SWIG_IsOK(ecode2)) {
24473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24474 }
24475 arg2 = static_cast< int >(val2);
24476 {
24477 PyThreadState* __tstate = wxPyBeginAllowThreads();
24478 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24479 wxPyEndAllowThreads(__tstate);
24480 if (PyErr_Occurred()) SWIG_fail;
24481 }
24482 resultobj = result;
24483 return resultobj;
24484fail:
24485 return NULL;
24486}
24487
24488
24489SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24490 PyObject *resultobj = 0;
24491 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24492 int arg2 ;
24493 PyObject *arg3 = (PyObject *) 0 ;
24494 void *argp1 = 0 ;
24495 int res1 = 0 ;
24496 int val2 ;
24497 int ecode2 = 0 ;
24498 PyObject * obj0 = 0 ;
24499 PyObject * obj1 = 0 ;
24500 PyObject * obj2 = 0 ;
24501 char * kwnames[] = {
24502 (char *) "self",(char *) "id",(char *) "clientData", NULL
24503 };
24504
24505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24507 if (!SWIG_IsOK(res1)) {
24508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24509 }
24510 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24511 ecode2 = SWIG_AsVal_int(obj1, &val2);
24512 if (!SWIG_IsOK(ecode2)) {
24513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24514 }
24515 arg2 = static_cast< int >(val2);
24516 arg3 = obj2;
24517 {
24518 PyThreadState* __tstate = wxPyBeginAllowThreads();
24519 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24520 wxPyEndAllowThreads(__tstate);
24521 if (PyErr_Occurred()) SWIG_fail;
24522 }
24523 resultobj = SWIG_Py_Void();
24524 return resultobj;
24525fail:
24526 return NULL;
24527}
24528
24529
24530SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24531 PyObject *resultobj = 0;
24532 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24533 int arg2 ;
24534 int result;
24535 void *argp1 = 0 ;
24536 int res1 = 0 ;
24537 int val2 ;
24538 int ecode2 = 0 ;
24539 PyObject * obj0 = 0 ;
24540 PyObject * obj1 = 0 ;
24541 char * kwnames[] = {
24542 (char *) "self",(char *) "id", NULL
24543 };
24544
24545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24547 if (!SWIG_IsOK(res1)) {
24548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24549 }
24550 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24551 ecode2 = SWIG_AsVal_int(obj1, &val2);
24552 if (!SWIG_IsOK(ecode2)) {
24553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24554 }
24555 arg2 = static_cast< int >(val2);
24556 {
24557 PyThreadState* __tstate = wxPyBeginAllowThreads();
24558 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24559 wxPyEndAllowThreads(__tstate);
24560 if (PyErr_Occurred()) SWIG_fail;
24561 }
24562 resultobj = SWIG_From_int(static_cast< int >(result));
24563 return resultobj;
24564fail:
24565 return NULL;
24566}
24567
24568
24569SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj = 0;
24571 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24572 int arg2 ;
24573 bool result;
24574 void *argp1 = 0 ;
24575 int res1 = 0 ;
24576 int val2 ;
24577 int ecode2 = 0 ;
24578 PyObject * obj0 = 0 ;
24579 PyObject * obj1 = 0 ;
24580 char * kwnames[] = {
24581 (char *) "self",(char *) "id", NULL
24582 };
24583
24584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24586 if (!SWIG_IsOK(res1)) {
24587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24588 }
24589 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24590 ecode2 = SWIG_AsVal_int(obj1, &val2);
24591 if (!SWIG_IsOK(ecode2)) {
24592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24593 }
24594 arg2 = static_cast< int >(val2);
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 result = (bool)(arg1)->GetToolState(arg2);
24598 wxPyEndAllowThreads(__tstate);
24599 if (PyErr_Occurred()) SWIG_fail;
24600 }
24601 {
24602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24603 }
24604 return resultobj;
24605fail:
24606 return NULL;
24607}
24608
24609
24610SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj = 0;
24612 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24613 int arg2 ;
24614 bool result;
24615 void *argp1 = 0 ;
24616 int res1 = 0 ;
24617 int val2 ;
24618 int ecode2 = 0 ;
24619 PyObject * obj0 = 0 ;
24620 PyObject * obj1 = 0 ;
24621 char * kwnames[] = {
24622 (char *) "self",(char *) "id", NULL
24623 };
24624
24625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24627 if (!SWIG_IsOK(res1)) {
24628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24629 }
24630 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24631 ecode2 = SWIG_AsVal_int(obj1, &val2);
24632 if (!SWIG_IsOK(ecode2)) {
24633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24634 }
24635 arg2 = static_cast< int >(val2);
24636 {
24637 PyThreadState* __tstate = wxPyBeginAllowThreads();
24638 result = (bool)(arg1)->GetToolEnabled(arg2);
24639 wxPyEndAllowThreads(__tstate);
24640 if (PyErr_Occurred()) SWIG_fail;
24641 }
24642 {
24643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24644 }
24645 return resultobj;
24646fail:
24647 return NULL;
24648}
24649
24650
24651SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24652 PyObject *resultobj = 0;
24653 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24654 int arg2 ;
24655 wxString *arg3 = 0 ;
24656 void *argp1 = 0 ;
24657 int res1 = 0 ;
24658 int val2 ;
24659 int ecode2 = 0 ;
24660 bool temp3 = false ;
24661 PyObject * obj0 = 0 ;
24662 PyObject * obj1 = 0 ;
24663 PyObject * obj2 = 0 ;
24664 char * kwnames[] = {
24665 (char *) "self",(char *) "id",(char *) "helpString", NULL
24666 };
24667
24668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24670 if (!SWIG_IsOK(res1)) {
24671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24672 }
24673 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24674 ecode2 = SWIG_AsVal_int(obj1, &val2);
24675 if (!SWIG_IsOK(ecode2)) {
24676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24677 }
24678 arg2 = static_cast< int >(val2);
24679 {
24680 arg3 = wxString_in_helper(obj2);
24681 if (arg3 == NULL) SWIG_fail;
24682 temp3 = true;
24683 }
24684 {
24685 PyThreadState* __tstate = wxPyBeginAllowThreads();
24686 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24687 wxPyEndAllowThreads(__tstate);
24688 if (PyErr_Occurred()) SWIG_fail;
24689 }
24690 resultobj = SWIG_Py_Void();
24691 {
24692 if (temp3)
24693 delete arg3;
24694 }
24695 return resultobj;
24696fail:
24697 {
24698 if (temp3)
24699 delete arg3;
24700 }
24701 return NULL;
24702}
24703
24704
24705SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24706 PyObject *resultobj = 0;
24707 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24708 int arg2 ;
24709 wxString result;
24710 void *argp1 = 0 ;
24711 int res1 = 0 ;
24712 int val2 ;
24713 int ecode2 = 0 ;
24714 PyObject * obj0 = 0 ;
24715 PyObject * obj1 = 0 ;
24716 char * kwnames[] = {
24717 (char *) "self",(char *) "id", NULL
24718 };
24719
24720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24722 if (!SWIG_IsOK(res1)) {
24723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24724 }
24725 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24726 ecode2 = SWIG_AsVal_int(obj1, &val2);
24727 if (!SWIG_IsOK(ecode2)) {
24728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24729 }
24730 arg2 = static_cast< int >(val2);
24731 {
24732 PyThreadState* __tstate = wxPyBeginAllowThreads();
24733 result = (arg1)->GetToolShortHelp(arg2);
24734 wxPyEndAllowThreads(__tstate);
24735 if (PyErr_Occurred()) SWIG_fail;
24736 }
24737 {
24738#if wxUSE_UNICODE
24739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24740#else
24741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24742#endif
24743 }
24744 return resultobj;
24745fail:
24746 return NULL;
24747}
24748
24749
24750SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24751 PyObject *resultobj = 0;
24752 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24753 int arg2 ;
24754 wxString *arg3 = 0 ;
24755 void *argp1 = 0 ;
24756 int res1 = 0 ;
24757 int val2 ;
24758 int ecode2 = 0 ;
24759 bool temp3 = false ;
24760 PyObject * obj0 = 0 ;
24761 PyObject * obj1 = 0 ;
24762 PyObject * obj2 = 0 ;
24763 char * kwnames[] = {
24764 (char *) "self",(char *) "id",(char *) "helpString", NULL
24765 };
24766
24767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24769 if (!SWIG_IsOK(res1)) {
24770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24771 }
24772 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24773 ecode2 = SWIG_AsVal_int(obj1, &val2);
24774 if (!SWIG_IsOK(ecode2)) {
24775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24776 }
24777 arg2 = static_cast< int >(val2);
24778 {
24779 arg3 = wxString_in_helper(obj2);
24780 if (arg3 == NULL) SWIG_fail;
24781 temp3 = true;
24782 }
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24786 wxPyEndAllowThreads(__tstate);
24787 if (PyErr_Occurred()) SWIG_fail;
24788 }
24789 resultobj = SWIG_Py_Void();
24790 {
24791 if (temp3)
24792 delete arg3;
24793 }
24794 return resultobj;
24795fail:
24796 {
24797 if (temp3)
24798 delete arg3;
24799 }
24800 return NULL;
24801}
24802
24803
24804SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj = 0;
24806 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24807 int arg2 ;
24808 wxString result;
24809 void *argp1 = 0 ;
24810 int res1 = 0 ;
24811 int val2 ;
24812 int ecode2 = 0 ;
24813 PyObject * obj0 = 0 ;
24814 PyObject * obj1 = 0 ;
24815 char * kwnames[] = {
24816 (char *) "self",(char *) "id", NULL
24817 };
24818
24819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24821 if (!SWIG_IsOK(res1)) {
24822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24823 }
24824 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24825 ecode2 = SWIG_AsVal_int(obj1, &val2);
24826 if (!SWIG_IsOK(ecode2)) {
24827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24828 }
24829 arg2 = static_cast< int >(val2);
24830 {
24831 PyThreadState* __tstate = wxPyBeginAllowThreads();
24832 result = (arg1)->GetToolLongHelp(arg2);
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 {
24837#if wxUSE_UNICODE
24838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24839#else
24840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24841#endif
24842 }
24843 return resultobj;
24844fail:
24845 return NULL;
24846}
24847
24848
24849SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24850 PyObject *resultobj = 0;
24851 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24852 int arg2 ;
24853 int arg3 ;
24854 void *argp1 = 0 ;
24855 int res1 = 0 ;
24856 int val2 ;
24857 int ecode2 = 0 ;
24858 int val3 ;
24859 int ecode3 = 0 ;
24860 PyObject * obj0 = 0 ;
24861 PyObject * obj1 = 0 ;
24862 PyObject * obj2 = 0 ;
24863 char * kwnames[] = {
24864 (char *) "self",(char *) "x",(char *) "y", NULL
24865 };
24866
24867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24869 if (!SWIG_IsOK(res1)) {
24870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24871 }
24872 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24873 ecode2 = SWIG_AsVal_int(obj1, &val2);
24874 if (!SWIG_IsOK(ecode2)) {
24875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24876 }
24877 arg2 = static_cast< int >(val2);
24878 ecode3 = SWIG_AsVal_int(obj2, &val3);
24879 if (!SWIG_IsOK(ecode3)) {
24880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24881 }
24882 arg3 = static_cast< int >(val3);
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 (arg1)->SetMargins(arg2,arg3);
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 resultobj = SWIG_Py_Void();
24890 return resultobj;
24891fail:
24892 return NULL;
24893}
24894
24895
24896SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24897 PyObject *resultobj = 0;
24898 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24899 wxSize *arg2 = 0 ;
24900 void *argp1 = 0 ;
24901 int res1 = 0 ;
24902 wxSize temp2 ;
24903 PyObject * obj0 = 0 ;
24904 PyObject * obj1 = 0 ;
24905 char * kwnames[] = {
24906 (char *) "self",(char *) "size", NULL
24907 };
24908
24909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24911 if (!SWIG_IsOK(res1)) {
24912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24913 }
24914 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24915 {
24916 arg2 = &temp2;
24917 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24918 }
24919 {
24920 PyThreadState* __tstate = wxPyBeginAllowThreads();
24921 (arg1)->SetMargins((wxSize const &)*arg2);
24922 wxPyEndAllowThreads(__tstate);
24923 if (PyErr_Occurred()) SWIG_fail;
24924 }
24925 resultobj = SWIG_Py_Void();
24926 return resultobj;
24927fail:
24928 return NULL;
24929}
24930
24931
24932SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24933 PyObject *resultobj = 0;
24934 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24935 int arg2 ;
24936 void *argp1 = 0 ;
24937 int res1 = 0 ;
24938 int val2 ;
24939 int ecode2 = 0 ;
24940 PyObject * obj0 = 0 ;
24941 PyObject * obj1 = 0 ;
24942 char * kwnames[] = {
24943 (char *) "self",(char *) "packing", NULL
24944 };
24945
24946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24948 if (!SWIG_IsOK(res1)) {
24949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24950 }
24951 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24952 ecode2 = SWIG_AsVal_int(obj1, &val2);
24953 if (!SWIG_IsOK(ecode2)) {
24954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24955 }
24956 arg2 = static_cast< int >(val2);
24957 {
24958 PyThreadState* __tstate = wxPyBeginAllowThreads();
24959 (arg1)->SetToolPacking(arg2);
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 resultobj = SWIG_Py_Void();
24964 return resultobj;
24965fail:
24966 return NULL;
24967}
24968
24969
24970SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24971 PyObject *resultobj = 0;
24972 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24973 int arg2 ;
24974 void *argp1 = 0 ;
24975 int res1 = 0 ;
24976 int val2 ;
24977 int ecode2 = 0 ;
24978 PyObject * obj0 = 0 ;
24979 PyObject * obj1 = 0 ;
24980 char * kwnames[] = {
24981 (char *) "self",(char *) "separation", NULL
24982 };
24983
24984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24986 if (!SWIG_IsOK(res1)) {
24987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24988 }
24989 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24990 ecode2 = SWIG_AsVal_int(obj1, &val2);
24991 if (!SWIG_IsOK(ecode2)) {
24992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24993 }
24994 arg2 = static_cast< int >(val2);
24995 {
24996 PyThreadState* __tstate = wxPyBeginAllowThreads();
24997 (arg1)->SetToolSeparation(arg2);
24998 wxPyEndAllowThreads(__tstate);
24999 if (PyErr_Occurred()) SWIG_fail;
25000 }
25001 resultobj = SWIG_Py_Void();
25002 return resultobj;
25003fail:
25004 return NULL;
d14a1e28
RD
25005}
25006
25007
0085ce49
RD
25008SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25009 PyObject *resultobj = 0;
25010 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25011 wxSize result;
25012 void *argp1 = 0 ;
25013 int res1 = 0 ;
25014 PyObject *swig_obj[1] ;
25015
25016 if (!args) SWIG_fail;
25017 swig_obj[0] = args;
25018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25019 if (!SWIG_IsOK(res1)) {
25020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25021 }
25022 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25023 {
25024 PyThreadState* __tstate = wxPyBeginAllowThreads();
25025 result = (arg1)->GetToolMargins();
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25030 return resultobj;
25031fail:
25032 return NULL;
d14a1e28
RD
25033}
25034
25035
0085ce49
RD
25036SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25037 PyObject *resultobj = 0;
25038 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25039 wxSize result;
25040 void *argp1 = 0 ;
25041 int res1 = 0 ;
25042 PyObject *swig_obj[1] ;
25043
25044 if (!args) SWIG_fail;
25045 swig_obj[0] = args;
25046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25047 if (!SWIG_IsOK(res1)) {
25048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25049 }
25050 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25051 {
25052 PyThreadState* __tstate = wxPyBeginAllowThreads();
25053 result = (arg1)->GetMargins();
25054 wxPyEndAllowThreads(__tstate);
25055 if (PyErr_Occurred()) SWIG_fail;
25056 }
25057 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25058 return resultobj;
25059fail:
25060 return NULL;
d14a1e28
RD
25061}
25062
25063
0085ce49
RD
25064SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25065 PyObject *resultobj = 0;
25066 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25067 int result;
25068 void *argp1 = 0 ;
25069 int res1 = 0 ;
25070 PyObject *swig_obj[1] ;
25071
25072 if (!args) SWIG_fail;
25073 swig_obj[0] = args;
25074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25075 if (!SWIG_IsOK(res1)) {
25076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25077 }
25078 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25079 {
25080 PyThreadState* __tstate = wxPyBeginAllowThreads();
25081 result = (int)(arg1)->GetToolPacking();
25082 wxPyEndAllowThreads(__tstate);
25083 if (PyErr_Occurred()) SWIG_fail;
25084 }
25085 resultobj = SWIG_From_int(static_cast< int >(result));
25086 return resultobj;
25087fail:
25088 return NULL;
d14a1e28
RD
25089}
25090
25091
0085ce49
RD
25092SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25093 PyObject *resultobj = 0;
25094 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25095 int result;
25096 void *argp1 = 0 ;
25097 int res1 = 0 ;
25098 PyObject *swig_obj[1] ;
25099
25100 if (!args) SWIG_fail;
25101 swig_obj[0] = args;
25102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25103 if (!SWIG_IsOK(res1)) {
25104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25105 }
25106 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25107 {
25108 PyThreadState* __tstate = wxPyBeginAllowThreads();
25109 result = (int)(arg1)->GetToolSeparation();
25110 wxPyEndAllowThreads(__tstate);
25111 if (PyErr_Occurred()) SWIG_fail;
25112 }
25113 resultobj = SWIG_From_int(static_cast< int >(result));
25114 return resultobj;
25115fail:
25116 return NULL;
25117}
25118
25119
25120SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25121 PyObject *resultobj = 0;
25122 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25123 int arg2 ;
25124 void *argp1 = 0 ;
25125 int res1 = 0 ;
25126 int val2 ;
25127 int ecode2 = 0 ;
25128 PyObject * obj0 = 0 ;
25129 PyObject * obj1 = 0 ;
25130 char * kwnames[] = {
25131 (char *) "self",(char *) "nRows", NULL
25132 };
25133
25134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25136 if (!SWIG_IsOK(res1)) {
25137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25138 }
25139 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25140 ecode2 = SWIG_AsVal_int(obj1, &val2);
25141 if (!SWIG_IsOK(ecode2)) {
25142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25143 }
25144 arg2 = static_cast< int >(val2);
25145 {
25146 PyThreadState* __tstate = wxPyBeginAllowThreads();
25147 (arg1)->SetRows(arg2);
25148 wxPyEndAllowThreads(__tstate);
25149 if (PyErr_Occurred()) SWIG_fail;
25150 }
25151 resultobj = SWIG_Py_Void();
25152 return resultobj;
25153fail:
25154 return NULL;
25155}
25156
25157
25158SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25159 PyObject *resultobj = 0;
25160 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25161 int arg2 ;
25162 int arg3 ;
25163 void *argp1 = 0 ;
25164 int res1 = 0 ;
25165 int val2 ;
25166 int ecode2 = 0 ;
25167 int val3 ;
25168 int ecode3 = 0 ;
25169 PyObject * obj0 = 0 ;
25170 PyObject * obj1 = 0 ;
25171 PyObject * obj2 = 0 ;
25172 char * kwnames[] = {
25173 (char *) "self",(char *) "rows",(char *) "cols", NULL
25174 };
25175
25176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25178 if (!SWIG_IsOK(res1)) {
25179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25180 }
25181 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25182 ecode2 = SWIG_AsVal_int(obj1, &val2);
25183 if (!SWIG_IsOK(ecode2)) {
25184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25185 }
25186 arg2 = static_cast< int >(val2);
25187 ecode3 = SWIG_AsVal_int(obj2, &val3);
25188 if (!SWIG_IsOK(ecode3)) {
25189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25190 }
25191 arg3 = static_cast< int >(val3);
25192 {
25193 PyThreadState* __tstate = wxPyBeginAllowThreads();
25194 (arg1)->SetMaxRowsCols(arg2,arg3);
25195 wxPyEndAllowThreads(__tstate);
25196 if (PyErr_Occurred()) SWIG_fail;
25197 }
25198 resultobj = SWIG_Py_Void();
25199 return resultobj;
25200fail:
25201 return NULL;
22bfe96c
RD
25202}
25203
25204
0085ce49
RD
25205SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25206 PyObject *resultobj = 0;
25207 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25208 int result;
25209 void *argp1 = 0 ;
25210 int res1 = 0 ;
25211 PyObject *swig_obj[1] ;
25212
25213 if (!args) SWIG_fail;
25214 swig_obj[0] = args;
25215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25216 if (!SWIG_IsOK(res1)) {
25217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25218 }
25219 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25220 {
25221 PyThreadState* __tstate = wxPyBeginAllowThreads();
25222 result = (int)(arg1)->GetMaxRows();
25223 wxPyEndAllowThreads(__tstate);
25224 if (PyErr_Occurred()) SWIG_fail;
25225 }
25226 resultobj = SWIG_From_int(static_cast< int >(result));
25227 return resultobj;
25228fail:
25229 return NULL;
d14a1e28
RD
25230}
25231
25232
0085ce49
RD
25233SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25234 PyObject *resultobj = 0;
25235 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25236 int result;
25237 void *argp1 = 0 ;
25238 int res1 = 0 ;
25239 PyObject *swig_obj[1] ;
25240
25241 if (!args) SWIG_fail;
25242 swig_obj[0] = args;
25243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25244 if (!SWIG_IsOK(res1)) {
25245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25246 }
25247 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 result = (int)(arg1)->GetMaxCols();
25251 wxPyEndAllowThreads(__tstate);
25252 if (PyErr_Occurred()) SWIG_fail;
25253 }
25254 resultobj = SWIG_From_int(static_cast< int >(result));
25255 return resultobj;
25256fail:
25257 return NULL;
25258}
25259
25260
25261SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25262 PyObject *resultobj = 0;
25263 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25264 wxSize *arg2 = 0 ;
25265 void *argp1 = 0 ;
25266 int res1 = 0 ;
25267 wxSize temp2 ;
25268 PyObject * obj0 = 0 ;
25269 PyObject * obj1 = 0 ;
25270 char * kwnames[] = {
25271 (char *) "self",(char *) "size", NULL
25272 };
25273
25274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25276 if (!SWIG_IsOK(res1)) {
25277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25278 }
25279 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25280 {
25281 arg2 = &temp2;
25282 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25283 }
25284 {
25285 PyThreadState* __tstate = wxPyBeginAllowThreads();
25286 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25287 wxPyEndAllowThreads(__tstate);
25288 if (PyErr_Occurred()) SWIG_fail;
25289 }
25290 resultobj = SWIG_Py_Void();
25291 return resultobj;
25292fail:
25293 return NULL;
d14a1e28
RD
25294}
25295
25296
0085ce49
RD
25297SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25298 PyObject *resultobj = 0;
25299 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25300 wxSize result;
25301 void *argp1 = 0 ;
25302 int res1 = 0 ;
25303 PyObject *swig_obj[1] ;
25304
25305 if (!args) SWIG_fail;
25306 swig_obj[0] = args;
25307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25308 if (!SWIG_IsOK(res1)) {
25309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25310 }
25311 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25312 {
25313 PyThreadState* __tstate = wxPyBeginAllowThreads();
25314 result = (arg1)->GetToolBitmapSize();
25315 wxPyEndAllowThreads(__tstate);
25316 if (PyErr_Occurred()) SWIG_fail;
25317 }
25318 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25319 return resultobj;
25320fail:
25321 return NULL;
d14a1e28
RD
25322}
25323
25324
0085ce49
RD
25325SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25326 PyObject *resultobj = 0;
25327 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25328 wxSize result;
25329 void *argp1 = 0 ;
25330 int res1 = 0 ;
25331 PyObject *swig_obj[1] ;
25332
25333 if (!args) SWIG_fail;
25334 swig_obj[0] = args;
25335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25336 if (!SWIG_IsOK(res1)) {
25337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25338 }
25339 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25340 {
25341 PyThreadState* __tstate = wxPyBeginAllowThreads();
25342 result = (arg1)->GetToolSize();
25343 wxPyEndAllowThreads(__tstate);
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25347 return resultobj;
25348fail:
25349 return NULL;
25350}
25351
25352
25353SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25354 PyObject *resultobj = 0;
25355 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25356 int arg2 ;
25357 int arg3 ;
25358 wxToolBarToolBase *result = 0 ;
25359 void *argp1 = 0 ;
25360 int res1 = 0 ;
25361 int val2 ;
25362 int ecode2 = 0 ;
25363 int val3 ;
25364 int ecode3 = 0 ;
25365 PyObject * obj0 = 0 ;
25366 PyObject * obj1 = 0 ;
25367 PyObject * obj2 = 0 ;
25368 char * kwnames[] = {
25369 (char *) "self",(char *) "x",(char *) "y", NULL
25370 };
25371
25372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25374 if (!SWIG_IsOK(res1)) {
25375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25376 }
25377 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25378 ecode2 = SWIG_AsVal_int(obj1, &val2);
25379 if (!SWIG_IsOK(ecode2)) {
25380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25381 }
25382 arg2 = static_cast< int >(val2);
25383 ecode3 = SWIG_AsVal_int(obj2, &val3);
25384 if (!SWIG_IsOK(ecode3)) {
25385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25386 }
25387 arg3 = static_cast< int >(val3);
25388 {
25389 PyThreadState* __tstate = wxPyBeginAllowThreads();
25390 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25391 wxPyEndAllowThreads(__tstate);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 {
25395 resultobj = wxPyMake_wxObject(result, (bool)0);
25396 }
25397 return resultobj;
25398fail:
25399 return NULL;
25400}
25401
25402
25403SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25404 PyObject *resultobj = 0;
25405 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25406 int arg2 ;
25407 wxToolBarToolBase *result = 0 ;
25408 void *argp1 = 0 ;
25409 int res1 = 0 ;
25410 int val2 ;
25411 int ecode2 = 0 ;
25412 PyObject * obj0 = 0 ;
25413 PyObject * obj1 = 0 ;
25414 char * kwnames[] = {
25415 (char *) "self",(char *) "toolid", NULL
25416 };
25417
25418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25420 if (!SWIG_IsOK(res1)) {
25421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25422 }
25423 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25424 ecode2 = SWIG_AsVal_int(obj1, &val2);
25425 if (!SWIG_IsOK(ecode2)) {
25426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25427 }
25428 arg2 = static_cast< int >(val2);
25429 {
25430 PyThreadState* __tstate = wxPyBeginAllowThreads();
25431 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25432 wxPyEndAllowThreads(__tstate);
25433 if (PyErr_Occurred()) SWIG_fail;
25434 }
25435 {
25436 resultobj = wxPyMake_wxObject(result, (bool)0);
25437 }
25438 return resultobj;
25439fail:
25440 return NULL;
d14a1e28
RD
25441}
25442
25443
0085ce49
RD
25444SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25445 PyObject *resultobj = 0;
25446 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25447 bool result;
25448 void *argp1 = 0 ;
25449 int res1 = 0 ;
25450 PyObject *swig_obj[1] ;
25451
25452 if (!args) SWIG_fail;
25453 swig_obj[0] = args;
25454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25455 if (!SWIG_IsOK(res1)) {
25456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25457 }
25458 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25459 {
25460 PyThreadState* __tstate = wxPyBeginAllowThreads();
25461 result = (bool)(arg1)->IsVertical();
25462 wxPyEndAllowThreads(__tstate);
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 {
25466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25467 }
25468 return resultobj;
25469fail:
25470 return NULL;
25471}
25472
25473
25474SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25475 PyObject *resultobj = 0;
25476 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25477 size_t result;
25478 void *argp1 = 0 ;
25479 int res1 = 0 ;
25480 PyObject *swig_obj[1] ;
25481
25482 if (!args) SWIG_fail;
25483 swig_obj[0] = args;
25484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25485 if (!SWIG_IsOK(res1)) {
25486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25487 }
25488 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25489 {
25490 PyThreadState* __tstate = wxPyBeginAllowThreads();
25491 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25492 wxPyEndAllowThreads(__tstate);
25493 if (PyErr_Occurred()) SWIG_fail;
25494 }
25495 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25496 return resultobj;
25497fail:
25498 return NULL;
25499}
25500
25501
25502SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25503 PyObject *obj;
25504 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25505 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25506 return SWIG_Py_Void();
25507}
25508
25509SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25510 PyObject *resultobj = 0;
25511 wxWindow *arg1 = (wxWindow *) 0 ;
25512 int arg2 = (int) -1 ;
25513 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25514 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25515 wxSize const &arg4_defvalue = wxDefaultSize ;
25516 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25517 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25518 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25519 wxString *arg6 = (wxString *) &arg6_defvalue ;
25520 wxToolBar *result = 0 ;
25521 void *argp1 = 0 ;
25522 int res1 = 0 ;
25523 int val2 ;
25524 int ecode2 = 0 ;
25525 wxPoint temp3 ;
25526 wxSize temp4 ;
25527 long val5 ;
25528 int ecode5 = 0 ;
25529 bool temp6 = false ;
25530 PyObject * obj0 = 0 ;
25531 PyObject * obj1 = 0 ;
25532 PyObject * obj2 = 0 ;
25533 PyObject * obj3 = 0 ;
25534 PyObject * obj4 = 0 ;
25535 PyObject * obj5 = 0 ;
25536 char * kwnames[] = {
25537 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25538 };
25539
25540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25542 if (!SWIG_IsOK(res1)) {
25543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25544 }
25545 arg1 = reinterpret_cast< wxWindow * >(argp1);
25546 if (obj1) {
25547 ecode2 = SWIG_AsVal_int(obj1, &val2);
25548 if (!SWIG_IsOK(ecode2)) {
25549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25550 }
25551 arg2 = static_cast< int >(val2);
25552 }
25553 if (obj2) {
25554 {
25555 arg3 = &temp3;
25556 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25557 }
25558 }
25559 if (obj3) {
093d3ff1 25560 {
0085ce49
RD
25561 arg4 = &temp4;
25562 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25563 }
0085ce49
RD
25564 }
25565 if (obj4) {
25566 ecode5 = SWIG_AsVal_long(obj4, &val5);
25567 if (!SWIG_IsOK(ecode5)) {
25568 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25569 }
25570 arg5 = static_cast< long >(val5);
25571 }
25572 if (obj5) {
d14a1e28 25573 {
0085ce49
RD
25574 arg6 = wxString_in_helper(obj5);
25575 if (arg6 == NULL) SWIG_fail;
25576 temp6 = true;
d14a1e28 25577 }
0085ce49
RD
25578 }
25579 {
25580 if (!wxPyCheckForApp()) SWIG_fail;
25581 PyThreadState* __tstate = wxPyBeginAllowThreads();
25582 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25587 {
25588 if (temp6)
25589 delete arg6;
25590 }
25591 return resultobj;
25592fail:
25593 {
25594 if (temp6)
25595 delete arg6;
25596 }
25597 return NULL;
d14a1e28
RD
25598}
25599
25600
0085ce49
RD
25601SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25602 PyObject *resultobj = 0;
25603 wxToolBar *result = 0 ;
25604
25605 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25606 {
25607 if (!wxPyCheckForApp()) SWIG_fail;
25608 PyThreadState* __tstate = wxPyBeginAllowThreads();
25609 result = (wxToolBar *)new wxToolBar();
25610 wxPyEndAllowThreads(__tstate);
25611 if (PyErr_Occurred()) SWIG_fail;
25612 }
25613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25614 return resultobj;
25615fail:
25616 return NULL;
25617}
25618
25619
25620SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25621 PyObject *resultobj = 0;
25622 wxToolBar *arg1 = (wxToolBar *) 0 ;
25623 wxWindow *arg2 = (wxWindow *) 0 ;
25624 int arg3 = (int) -1 ;
25625 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25626 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25627 wxSize const &arg5_defvalue = wxDefaultSize ;
25628 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25629 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25630 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25631 wxString *arg7 = (wxString *) &arg7_defvalue ;
25632 bool result;
25633 void *argp1 = 0 ;
25634 int res1 = 0 ;
25635 void *argp2 = 0 ;
25636 int res2 = 0 ;
25637 int val3 ;
25638 int ecode3 = 0 ;
25639 wxPoint temp4 ;
25640 wxSize temp5 ;
25641 long val6 ;
25642 int ecode6 = 0 ;
25643 bool temp7 = false ;
25644 PyObject * obj0 = 0 ;
25645 PyObject * obj1 = 0 ;
25646 PyObject * obj2 = 0 ;
25647 PyObject * obj3 = 0 ;
25648 PyObject * obj4 = 0 ;
25649 PyObject * obj5 = 0 ;
25650 PyObject * obj6 = 0 ;
25651 char * kwnames[] = {
25652 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25653 };
25654
25655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25657 if (!SWIG_IsOK(res1)) {
25658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25659 }
25660 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25662 if (!SWIG_IsOK(res2)) {
25663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25664 }
25665 arg2 = reinterpret_cast< wxWindow * >(argp2);
25666 if (obj2) {
25667 ecode3 = SWIG_AsVal_int(obj2, &val3);
25668 if (!SWIG_IsOK(ecode3)) {
25669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25670 }
25671 arg3 = static_cast< int >(val3);
25672 }
25673 if (obj3) {
25674 {
25675 arg4 = &temp4;
25676 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 25677 }
0085ce49
RD
25678 }
25679 if (obj4) {
22bfe96c 25680 {
0085ce49
RD
25681 arg5 = &temp5;
25682 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 25683 }
0085ce49
RD
25684 }
25685 if (obj5) {
25686 ecode6 = SWIG_AsVal_long(obj5, &val6);
25687 if (!SWIG_IsOK(ecode6)) {
25688 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25689 }
25690 arg6 = static_cast< long >(val6);
25691 }
25692 if (obj6) {
22bfe96c 25693 {
0085ce49
RD
25694 arg7 = wxString_in_helper(obj6);
25695 if (arg7 == NULL) SWIG_fail;
25696 temp7 = true;
22bfe96c 25697 }
0085ce49
RD
25698 }
25699 {
25700 PyThreadState* __tstate = wxPyBeginAllowThreads();
25701 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25702 wxPyEndAllowThreads(__tstate);
25703 if (PyErr_Occurred()) SWIG_fail;
25704 }
25705 {
25706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25707 }
25708 {
25709 if (temp7)
25710 delete arg7;
25711 }
25712 return resultobj;
25713fail:
25714 {
25715 if (temp7)
25716 delete arg7;
25717 }
25718 return NULL;
25719}
25720
25721
0085ce49
RD
25722SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25723 PyObject *resultobj = 0;
25724 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25725 SwigValueWrapper<wxVisualAttributes > result;
25726 int val1 ;
25727 int ecode1 = 0 ;
25728 PyObject * obj0 = 0 ;
25729 char * kwnames[] = {
25730 (char *) "variant", NULL
25731 };
25732
25733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25734 if (obj0) {
25735 ecode1 = SWIG_AsVal_int(obj0, &val1);
25736 if (!SWIG_IsOK(ecode1)) {
25737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25738 }
25739 arg1 = static_cast< wxWindowVariant >(val1);
25740 }
25741 {
25742 if (!wxPyCheckForApp()) SWIG_fail;
25743 PyThreadState* __tstate = wxPyBeginAllowThreads();
25744 result = wxToolBar::GetClassDefaultAttributes(arg1);
25745 wxPyEndAllowThreads(__tstate);
25746 if (PyErr_Occurred()) SWIG_fail;
25747 }
25748 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25749 return resultobj;
25750fail:
25751 return NULL;
22bfe96c
RD
25752}
25753
25754
0085ce49
RD
25755SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25756 PyObject *obj;
25757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25758 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25759 return SWIG_Py_Void();
d14a1e28 25760}
0085ce49
RD
25761
25762SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25763 return SWIG_Python_InitShadowInstance(args);
b2dc1044
RD
25764}
25765
0085ce49
RD
25766SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25767 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25768 return 1;
25769}
b2dc1044 25770
0085ce49
RD
25771
25772SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25773 PyObject *pyobj = 0;
25774
25775 {
b2dc1044 25776#if wxUSE_UNICODE
0085ce49 25777 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25778#else
0085ce49 25779 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 25780#endif
0085ce49
RD
25781 }
25782 return pyobj;
25783}
25784
25785
25786SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25787 PyObject *resultobj = 0;
25788 wxColour const &arg1_defvalue = wxNullColour ;
25789 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25790 wxColour const &arg2_defvalue = wxNullColour ;
25791 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25792 wxFont const &arg3_defvalue = wxNullFont ;
25793 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25794 wxListItemAttr *result = 0 ;
25795 wxColour temp1 ;
25796 wxColour temp2 ;
25797 void *argp3 = 0 ;
25798 int res3 = 0 ;
25799 PyObject * obj0 = 0 ;
25800 PyObject * obj1 = 0 ;
25801 PyObject * obj2 = 0 ;
25802 char * kwnames[] = {
25803 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25804 };
25805
25806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25807 if (obj0) {
d14a1e28 25808 {
0085ce49
RD
25809 arg1 = &temp1;
25810 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 25811 }
0085ce49
RD
25812 }
25813 if (obj1) {
d14a1e28 25814 {
0085ce49
RD
25815 arg2 = &temp2;
25816 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 25817 }
0085ce49
RD
25818 }
25819 if (obj2) {
25820 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25821 if (!SWIG_IsOK(res3)) {
25822 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25823 }
0085ce49
RD
25824 if (!argp3) {
25825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 25826 }
0085ce49
RD
25827 arg3 = reinterpret_cast< wxFont * >(argp3);
25828 }
25829 {
25830 PyThreadState* __tstate = wxPyBeginAllowThreads();
25831 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25832 wxPyEndAllowThreads(__tstate);
25833 if (PyErr_Occurred()) SWIG_fail;
25834 }
25835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25836 return resultobj;
25837fail:
25838 return NULL;
d14a1e28
RD
25839}
25840
25841
0085ce49
RD
25842SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25843 PyObject *resultobj = 0;
25844 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25845 void *argp1 = 0 ;
25846 int res1 = 0 ;
25847 PyObject *swig_obj[1] ;
25848
25849 if (!args) SWIG_fail;
25850 swig_obj[0] = args;
25851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25852 if (!SWIG_IsOK(res1)) {
25853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25854 }
25855 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25856 {
25857 PyThreadState* __tstate = wxPyBeginAllowThreads();
25858 delete arg1;
d14a1e28 25859
0085ce49
RD
25860 wxPyEndAllowThreads(__tstate);
25861 if (PyErr_Occurred()) SWIG_fail;
25862 }
25863 resultobj = SWIG_Py_Void();
25864 return resultobj;
25865fail:
25866 return NULL;
25867}
25868
25869
25870SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25871 PyObject *resultobj = 0;
25872 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25873 wxColour *arg2 = 0 ;
25874 void *argp1 = 0 ;
25875 int res1 = 0 ;
25876 wxColour temp2 ;
25877 PyObject * obj0 = 0 ;
25878 PyObject * obj1 = 0 ;
25879 char * kwnames[] = {
25880 (char *) "self",(char *) "colText", NULL
25881 };
25882
25883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25885 if (!SWIG_IsOK(res1)) {
25886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25887 }
25888 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25889 {
25890 arg2 = &temp2;
25891 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25892 }
25893 {
25894 PyThreadState* __tstate = wxPyBeginAllowThreads();
25895 (arg1)->SetTextColour((wxColour const &)*arg2);
25896 wxPyEndAllowThreads(__tstate);
25897 if (PyErr_Occurred()) SWIG_fail;
25898 }
25899 resultobj = SWIG_Py_Void();
25900 return resultobj;
25901fail:
25902 return NULL;
25903}
25904
25905
25906SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25907 PyObject *resultobj = 0;
25908 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25909 wxColour *arg2 = 0 ;
25910 void *argp1 = 0 ;
25911 int res1 = 0 ;
25912 wxColour temp2 ;
25913 PyObject * obj0 = 0 ;
25914 PyObject * obj1 = 0 ;
25915 char * kwnames[] = {
25916 (char *) "self",(char *) "colBack", NULL
25917 };
25918
25919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25921 if (!SWIG_IsOK(res1)) {
25922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25923 }
25924 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25925 {
25926 arg2 = &temp2;
25927 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25928 }
25929 {
25930 PyThreadState* __tstate = wxPyBeginAllowThreads();
25931 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25932 wxPyEndAllowThreads(__tstate);
25933 if (PyErr_Occurred()) SWIG_fail;
25934 }
25935 resultobj = SWIG_Py_Void();
25936 return resultobj;
25937fail:
25938 return NULL;
25939}
25940
25941
25942SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25943 PyObject *resultobj = 0;
25944 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25945 wxFont *arg2 = 0 ;
25946 void *argp1 = 0 ;
25947 int res1 = 0 ;
25948 void *argp2 = 0 ;
25949 int res2 = 0 ;
25950 PyObject * obj0 = 0 ;
25951 PyObject * obj1 = 0 ;
25952 char * kwnames[] = {
25953 (char *) "self",(char *) "font", NULL
25954 };
25955
25956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25958 if (!SWIG_IsOK(res1)) {
25959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25960 }
25961 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25963 if (!SWIG_IsOK(res2)) {
25964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25965 }
25966 if (!argp2) {
25967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25968 }
25969 arg2 = reinterpret_cast< wxFont * >(argp2);
25970 {
25971 PyThreadState* __tstate = wxPyBeginAllowThreads();
25972 (arg1)->SetFont((wxFont const &)*arg2);
25973 wxPyEndAllowThreads(__tstate);
25974 if (PyErr_Occurred()) SWIG_fail;
25975 }
25976 resultobj = SWIG_Py_Void();
25977 return resultobj;
25978fail:
25979 return NULL;
d14a1e28
RD
25980}
25981
25982
0085ce49
RD
25983SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25984 PyObject *resultobj = 0;
25985 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25986 bool result;
25987 void *argp1 = 0 ;
25988 int res1 = 0 ;
25989 PyObject *swig_obj[1] ;
25990
25991 if (!args) SWIG_fail;
25992 swig_obj[0] = args;
25993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25994 if (!SWIG_IsOK(res1)) {
25995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25996 }
25997 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25998 {
25999 PyThreadState* __tstate = wxPyBeginAllowThreads();
26000 result = (bool)(arg1)->HasTextColour();
26001 wxPyEndAllowThreads(__tstate);
26002 if (PyErr_Occurred()) SWIG_fail;
26003 }
26004 {
26005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26006 }
26007 return resultobj;
26008fail:
26009 return NULL;
d14a1e28
RD
26010}
26011
26012
0085ce49
RD
26013SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26014 PyObject *resultobj = 0;
26015 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26016 bool result;
26017 void *argp1 = 0 ;
26018 int res1 = 0 ;
26019 PyObject *swig_obj[1] ;
26020
26021 if (!args) SWIG_fail;
26022 swig_obj[0] = args;
26023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26024 if (!SWIG_IsOK(res1)) {
26025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26026 }
26027 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26028 {
26029 PyThreadState* __tstate = wxPyBeginAllowThreads();
26030 result = (bool)(arg1)->HasBackgroundColour();
26031 wxPyEndAllowThreads(__tstate);
26032 if (PyErr_Occurred()) SWIG_fail;
26033 }
26034 {
26035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26036 }
26037 return resultobj;
26038fail:
26039 return NULL;
d14a1e28
RD
26040}
26041
26042
0085ce49
RD
26043SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26044 PyObject *resultobj = 0;
26045 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26046 bool result;
26047 void *argp1 = 0 ;
26048 int res1 = 0 ;
26049 PyObject *swig_obj[1] ;
26050
26051 if (!args) SWIG_fail;
26052 swig_obj[0] = args;
26053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26054 if (!SWIG_IsOK(res1)) {
26055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26056 }
26057 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26058 {
26059 PyThreadState* __tstate = wxPyBeginAllowThreads();
26060 result = (bool)(arg1)->HasFont();
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 {
26065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26066 }
26067 return resultobj;
26068fail:
26069 return NULL;
d14a1e28
RD
26070}
26071
26072
0085ce49
RD
26073SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26074 PyObject *resultobj = 0;
26075 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26076 wxColour result;
26077 void *argp1 = 0 ;
26078 int res1 = 0 ;
26079 PyObject *swig_obj[1] ;
26080
26081 if (!args) SWIG_fail;
26082 swig_obj[0] = args;
26083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26084 if (!SWIG_IsOK(res1)) {
26085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26086 }
26087 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26088 {
26089 PyThreadState* __tstate = wxPyBeginAllowThreads();
26090 result = (arg1)->GetTextColour();
26091 wxPyEndAllowThreads(__tstate);
26092 if (PyErr_Occurred()) SWIG_fail;
26093 }
26094 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26095 return resultobj;
26096fail:
26097 return NULL;
d14a1e28
RD
26098}
26099
26100
0085ce49
RD
26101SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26102 PyObject *resultobj = 0;
26103 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26104 wxColour result;
26105 void *argp1 = 0 ;
26106 int res1 = 0 ;
26107 PyObject *swig_obj[1] ;
26108
26109 if (!args) SWIG_fail;
26110 swig_obj[0] = args;
26111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26112 if (!SWIG_IsOK(res1)) {
26113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26114 }
26115 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26116 {
26117 PyThreadState* __tstate = wxPyBeginAllowThreads();
26118 result = (arg1)->GetBackgroundColour();
26119 wxPyEndAllowThreads(__tstate);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26123 return resultobj;
26124fail:
26125 return NULL;
d14a1e28
RD
26126}
26127
26128
0085ce49
RD
26129SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26130 PyObject *resultobj = 0;
26131 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26132 wxFont result;
26133 void *argp1 = 0 ;
26134 int res1 = 0 ;
26135 PyObject *swig_obj[1] ;
26136
26137 if (!args) SWIG_fail;
26138 swig_obj[0] = args;
26139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26140 if (!SWIG_IsOK(res1)) {
26141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26142 }
26143 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26144 {
26145 PyThreadState* __tstate = wxPyBeginAllowThreads();
26146 result = (arg1)->GetFont();
26147 wxPyEndAllowThreads(__tstate);
26148 if (PyErr_Occurred()) SWIG_fail;
26149 }
26150 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26151 return resultobj;
26152fail:
26153 return NULL;
26154}
26155
26156
26157SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26158 PyObject *resultobj = 0;
26159 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26160 wxListItemAttr *arg2 = 0 ;
26161 void *argp1 = 0 ;
26162 int res1 = 0 ;
26163 void *argp2 = 0 ;
26164 int res2 = 0 ;
26165 PyObject * obj0 = 0 ;
26166 PyObject * obj1 = 0 ;
26167 char * kwnames[] = {
26168 (char *) "self",(char *) "source", NULL
26169 };
26170
26171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26173 if (!SWIG_IsOK(res1)) {
26174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26175 }
26176 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26178 if (!SWIG_IsOK(res2)) {
26179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26180 }
26181 if (!argp2) {
26182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26183 }
26184 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26185 {
26186 PyThreadState* __tstate = wxPyBeginAllowThreads();
26187 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26188 wxPyEndAllowThreads(__tstate);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 return resultobj;
26193fail:
26194 return NULL;
d14a1e28
RD
26195}
26196
26197
0085ce49
RD
26198SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26199 PyObject *resultobj = 0;
26200 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26201 void *argp1 = 0 ;
26202 int res1 = 0 ;
26203 PyObject *swig_obj[1] ;
26204
26205 if (!args) SWIG_fail;
26206 swig_obj[0] = args;
26207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26208 if (!SWIG_IsOK(res1)) {
26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26210 }
26211 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26212 {
26213 PyThreadState* __tstate = wxPyBeginAllowThreads();
26214 wxListItemAttr_Destroy(arg1);
26215 wxPyEndAllowThreads(__tstate);
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 resultobj = SWIG_Py_Void();
26219 return resultobj;
26220fail:
26221 return NULL;
d14a1e28
RD
26222}
26223
26224
0085ce49
RD
26225SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26226 PyObject *obj;
26227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26228 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26229 return SWIG_Py_Void();
d14a1e28
RD
26230}
26231
0085ce49
RD
26232SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26233 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
26234}
26235
0085ce49
RD
26236SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26237 PyObject *resultobj = 0;
26238 wxListItem *result = 0 ;
26239
26240 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26241 {
26242 PyThreadState* __tstate = wxPyBeginAllowThreads();
26243 result = (wxListItem *)new wxListItem();
26244 wxPyEndAllowThreads(__tstate);
26245 if (PyErr_Occurred()) SWIG_fail;
26246 }
26247 {
26248 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26249 }
26250 return resultobj;
26251fail:
26252 return NULL;
d14a1e28
RD
26253}
26254
26255
0085ce49
RD
26256SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26257 PyObject *resultobj = 0;
26258 wxListItem *arg1 = (wxListItem *) 0 ;
26259 void *argp1 = 0 ;
26260 int res1 = 0 ;
26261 PyObject *swig_obj[1] ;
26262
26263 if (!args) SWIG_fail;
26264 swig_obj[0] = args;
26265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26266 if (!SWIG_IsOK(res1)) {
26267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26268 }
26269 arg1 = reinterpret_cast< wxListItem * >(argp1);
26270 {
26271 PyThreadState* __tstate = wxPyBeginAllowThreads();
26272 delete arg1;
d14a1e28 26273
0085ce49
RD
26274 wxPyEndAllowThreads(__tstate);
26275 if (PyErr_Occurred()) SWIG_fail;
26276 }
26277 resultobj = SWIG_Py_Void();
26278 return resultobj;
26279fail:
26280 return NULL;
d14a1e28
RD
26281}
26282
26283
0085ce49
RD
26284SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26285 PyObject *resultobj = 0;
26286 wxListItem *arg1 = (wxListItem *) 0 ;
26287 void *argp1 = 0 ;
26288 int res1 = 0 ;
26289 PyObject *swig_obj[1] ;
26290
26291 if (!args) SWIG_fail;
26292 swig_obj[0] = args;
26293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26294 if (!SWIG_IsOK(res1)) {
26295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26296 }
26297 arg1 = reinterpret_cast< wxListItem * >(argp1);
26298 {
26299 PyThreadState* __tstate = wxPyBeginAllowThreads();
26300 (arg1)->Clear();
26301 wxPyEndAllowThreads(__tstate);
26302 if (PyErr_Occurred()) SWIG_fail;
26303 }
26304 resultobj = SWIG_Py_Void();
26305 return resultobj;
26306fail:
26307 return NULL;
d14a1e28
RD
26308}
26309
26310
0085ce49
RD
26311SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26312 PyObject *resultobj = 0;
26313 wxListItem *arg1 = (wxListItem *) 0 ;
26314 void *argp1 = 0 ;
26315 int res1 = 0 ;
26316 PyObject *swig_obj[1] ;
26317
26318 if (!args) SWIG_fail;
26319 swig_obj[0] = args;
26320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26321 if (!SWIG_IsOK(res1)) {
26322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26323 }
26324 arg1 = reinterpret_cast< wxListItem * >(argp1);
26325 {
26326 PyThreadState* __tstate = wxPyBeginAllowThreads();
26327 (arg1)->ClearAttributes();
26328 wxPyEndAllowThreads(__tstate);
26329 if (PyErr_Occurred()) SWIG_fail;
26330 }
26331 resultobj = SWIG_Py_Void();
26332 return resultobj;
26333fail:
26334 return NULL;
26335}
26336
26337
26338SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26339 PyObject *resultobj = 0;
26340 wxListItem *arg1 = (wxListItem *) 0 ;
26341 long arg2 ;
26342 void *argp1 = 0 ;
26343 int res1 = 0 ;
26344 long val2 ;
26345 int ecode2 = 0 ;
26346 PyObject * obj0 = 0 ;
26347 PyObject * obj1 = 0 ;
26348 char * kwnames[] = {
26349 (char *) "self",(char *) "mask", NULL
26350 };
26351
26352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26354 if (!SWIG_IsOK(res1)) {
26355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26356 }
26357 arg1 = reinterpret_cast< wxListItem * >(argp1);
26358 ecode2 = SWIG_AsVal_long(obj1, &val2);
26359 if (!SWIG_IsOK(ecode2)) {
26360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26361 }
26362 arg2 = static_cast< long >(val2);
26363 {
26364 PyThreadState* __tstate = wxPyBeginAllowThreads();
26365 (arg1)->SetMask(arg2);
26366 wxPyEndAllowThreads(__tstate);
26367 if (PyErr_Occurred()) SWIG_fail;
26368 }
26369 resultobj = SWIG_Py_Void();
26370 return resultobj;
26371fail:
26372 return NULL;
26373}
26374
26375
26376SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26377 PyObject *resultobj = 0;
26378 wxListItem *arg1 = (wxListItem *) 0 ;
26379 long arg2 ;
26380 void *argp1 = 0 ;
26381 int res1 = 0 ;
26382 long val2 ;
26383 int ecode2 = 0 ;
26384 PyObject * obj0 = 0 ;
26385 PyObject * obj1 = 0 ;
26386 char * kwnames[] = {
26387 (char *) "self",(char *) "id", NULL
26388 };
26389
26390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26392 if (!SWIG_IsOK(res1)) {
26393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26394 }
26395 arg1 = reinterpret_cast< wxListItem * >(argp1);
26396 ecode2 = SWIG_AsVal_long(obj1, &val2);
26397 if (!SWIG_IsOK(ecode2)) {
26398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26399 }
26400 arg2 = static_cast< long >(val2);
26401 {
26402 PyThreadState* __tstate = wxPyBeginAllowThreads();
26403 (arg1)->SetId(arg2);
26404 wxPyEndAllowThreads(__tstate);
26405 if (PyErr_Occurred()) SWIG_fail;
26406 }
26407 resultobj = SWIG_Py_Void();
26408 return resultobj;
26409fail:
26410 return NULL;
26411}
26412
26413
26414SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26415 PyObject *resultobj = 0;
26416 wxListItem *arg1 = (wxListItem *) 0 ;
26417 int arg2 ;
26418 void *argp1 = 0 ;
26419 int res1 = 0 ;
26420 int val2 ;
26421 int ecode2 = 0 ;
26422 PyObject * obj0 = 0 ;
26423 PyObject * obj1 = 0 ;
26424 char * kwnames[] = {
26425 (char *) "self",(char *) "col", NULL
26426 };
26427
26428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26430 if (!SWIG_IsOK(res1)) {
26431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26432 }
26433 arg1 = reinterpret_cast< wxListItem * >(argp1);
26434 ecode2 = SWIG_AsVal_int(obj1, &val2);
26435 if (!SWIG_IsOK(ecode2)) {
26436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26437 }
26438 arg2 = static_cast< int >(val2);
26439 {
26440 PyThreadState* __tstate = wxPyBeginAllowThreads();
26441 (arg1)->SetColumn(arg2);
26442 wxPyEndAllowThreads(__tstate);
26443 if (PyErr_Occurred()) SWIG_fail;
26444 }
26445 resultobj = SWIG_Py_Void();
26446 return resultobj;
26447fail:
26448 return NULL;
26449}
26450
26451
26452SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26453 PyObject *resultobj = 0;
26454 wxListItem *arg1 = (wxListItem *) 0 ;
26455 long arg2 ;
26456 void *argp1 = 0 ;
26457 int res1 = 0 ;
26458 long val2 ;
26459 int ecode2 = 0 ;
26460 PyObject * obj0 = 0 ;
26461 PyObject * obj1 = 0 ;
26462 char * kwnames[] = {
26463 (char *) "self",(char *) "state", NULL
26464 };
26465
26466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26468 if (!SWIG_IsOK(res1)) {
26469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26470 }
26471 arg1 = reinterpret_cast< wxListItem * >(argp1);
26472 ecode2 = SWIG_AsVal_long(obj1, &val2);
26473 if (!SWIG_IsOK(ecode2)) {
26474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26475 }
26476 arg2 = static_cast< long >(val2);
26477 {
26478 PyThreadState* __tstate = wxPyBeginAllowThreads();
26479 (arg1)->SetState(arg2);
26480 wxPyEndAllowThreads(__tstate);
26481 if (PyErr_Occurred()) SWIG_fail;
26482 }
26483 resultobj = SWIG_Py_Void();
26484 return resultobj;
26485fail:
26486 return NULL;
26487}
26488
26489
26490SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26491 PyObject *resultobj = 0;
26492 wxListItem *arg1 = (wxListItem *) 0 ;
26493 long arg2 ;
26494 void *argp1 = 0 ;
26495 int res1 = 0 ;
26496 long val2 ;
26497 int ecode2 = 0 ;
26498 PyObject * obj0 = 0 ;
26499 PyObject * obj1 = 0 ;
26500 char * kwnames[] = {
26501 (char *) "self",(char *) "stateMask", NULL
26502 };
26503
26504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26506 if (!SWIG_IsOK(res1)) {
26507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26508 }
26509 arg1 = reinterpret_cast< wxListItem * >(argp1);
26510 ecode2 = SWIG_AsVal_long(obj1, &val2);
26511 if (!SWIG_IsOK(ecode2)) {
26512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26513 }
26514 arg2 = static_cast< long >(val2);
26515 {
26516 PyThreadState* __tstate = wxPyBeginAllowThreads();
26517 (arg1)->SetStateMask(arg2);
26518 wxPyEndAllowThreads(__tstate);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 resultobj = SWIG_Py_Void();
26522 return resultobj;
26523fail:
26524 return NULL;
26525}
26526
26527
26528SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26529 PyObject *resultobj = 0;
26530 wxListItem *arg1 = (wxListItem *) 0 ;
26531 wxString *arg2 = 0 ;
26532 void *argp1 = 0 ;
26533 int res1 = 0 ;
26534 bool temp2 = false ;
26535 PyObject * obj0 = 0 ;
26536 PyObject * obj1 = 0 ;
26537 char * kwnames[] = {
26538 (char *) "self",(char *) "text", NULL
26539 };
26540
26541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26543 if (!SWIG_IsOK(res1)) {
26544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26545 }
26546 arg1 = reinterpret_cast< wxListItem * >(argp1);
26547 {
26548 arg2 = wxString_in_helper(obj1);
26549 if (arg2 == NULL) SWIG_fail;
26550 temp2 = true;
26551 }
26552 {
26553 PyThreadState* __tstate = wxPyBeginAllowThreads();
26554 (arg1)->SetText((wxString const &)*arg2);
26555 wxPyEndAllowThreads(__tstate);
26556 if (PyErr_Occurred()) SWIG_fail;
26557 }
26558 resultobj = SWIG_Py_Void();
26559 {
26560 if (temp2)
26561 delete arg2;
26562 }
26563 return resultobj;
26564fail:
26565 {
26566 if (temp2)
26567 delete arg2;
26568 }
26569 return NULL;
26570}
26571
26572
26573SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26574 PyObject *resultobj = 0;
26575 wxListItem *arg1 = (wxListItem *) 0 ;
26576 int arg2 ;
26577 void *argp1 = 0 ;
26578 int res1 = 0 ;
26579 int val2 ;
26580 int ecode2 = 0 ;
26581 PyObject * obj0 = 0 ;
26582 PyObject * obj1 = 0 ;
26583 char * kwnames[] = {
26584 (char *) "self",(char *) "image", NULL
26585 };
26586
26587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26589 if (!SWIG_IsOK(res1)) {
26590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26591 }
26592 arg1 = reinterpret_cast< wxListItem * >(argp1);
26593 ecode2 = SWIG_AsVal_int(obj1, &val2);
26594 if (!SWIG_IsOK(ecode2)) {
26595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26596 }
26597 arg2 = static_cast< int >(val2);
26598 {
26599 PyThreadState* __tstate = wxPyBeginAllowThreads();
26600 (arg1)->SetImage(arg2);
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 resultobj = SWIG_Py_Void();
26605 return resultobj;
26606fail:
26607 return NULL;
26608}
26609
26610
26611SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26612 PyObject *resultobj = 0;
26613 wxListItem *arg1 = (wxListItem *) 0 ;
26614 long arg2 ;
26615 void *argp1 = 0 ;
26616 int res1 = 0 ;
26617 long val2 ;
26618 int ecode2 = 0 ;
26619 PyObject * obj0 = 0 ;
26620 PyObject * obj1 = 0 ;
26621 char * kwnames[] = {
26622 (char *) "self",(char *) "data", NULL
26623 };
26624
26625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26627 if (!SWIG_IsOK(res1)) {
26628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26629 }
26630 arg1 = reinterpret_cast< wxListItem * >(argp1);
26631 ecode2 = SWIG_AsVal_long(obj1, &val2);
26632 if (!SWIG_IsOK(ecode2)) {
26633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26634 }
26635 arg2 = static_cast< long >(val2);
26636 {
26637 PyThreadState* __tstate = wxPyBeginAllowThreads();
26638 (arg1)->SetData(arg2);
26639 wxPyEndAllowThreads(__tstate);
26640 if (PyErr_Occurred()) SWIG_fail;
26641 }
26642 resultobj = SWIG_Py_Void();
26643 return resultobj;
26644fail:
26645 return NULL;
26646}
26647
26648
26649SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26650 PyObject *resultobj = 0;
26651 wxListItem *arg1 = (wxListItem *) 0 ;
26652 int arg2 ;
26653 void *argp1 = 0 ;
26654 int res1 = 0 ;
26655 int val2 ;
26656 int ecode2 = 0 ;
26657 PyObject * obj0 = 0 ;
26658 PyObject * obj1 = 0 ;
26659 char * kwnames[] = {
26660 (char *) "self",(char *) "width", NULL
26661 };
26662
26663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26665 if (!SWIG_IsOK(res1)) {
26666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26667 }
26668 arg1 = reinterpret_cast< wxListItem * >(argp1);
26669 ecode2 = SWIG_AsVal_int(obj1, &val2);
26670 if (!SWIG_IsOK(ecode2)) {
26671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26672 }
26673 arg2 = static_cast< int >(val2);
26674 {
26675 PyThreadState* __tstate = wxPyBeginAllowThreads();
26676 (arg1)->SetWidth(arg2);
26677 wxPyEndAllowThreads(__tstate);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 resultobj = SWIG_Py_Void();
26681 return resultobj;
26682fail:
26683 return NULL;
26684}
26685
26686
26687SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26688 PyObject *resultobj = 0;
26689 wxListItem *arg1 = (wxListItem *) 0 ;
26690 wxListColumnFormat arg2 ;
26691 void *argp1 = 0 ;
26692 int res1 = 0 ;
26693 int val2 ;
26694 int ecode2 = 0 ;
26695 PyObject * obj0 = 0 ;
26696 PyObject * obj1 = 0 ;
26697 char * kwnames[] = {
26698 (char *) "self",(char *) "align", NULL
26699 };
26700
26701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26703 if (!SWIG_IsOK(res1)) {
26704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26705 }
26706 arg1 = reinterpret_cast< wxListItem * >(argp1);
26707 ecode2 = SWIG_AsVal_int(obj1, &val2);
26708 if (!SWIG_IsOK(ecode2)) {
26709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26710 }
26711 arg2 = static_cast< wxListColumnFormat >(val2);
26712 {
26713 PyThreadState* __tstate = wxPyBeginAllowThreads();
26714 (arg1)->SetAlign(arg2);
26715 wxPyEndAllowThreads(__tstate);
26716 if (PyErr_Occurred()) SWIG_fail;
26717 }
26718 resultobj = SWIG_Py_Void();
26719 return resultobj;
26720fail:
26721 return NULL;
26722}
26723
26724
26725SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26726 PyObject *resultobj = 0;
26727 wxListItem *arg1 = (wxListItem *) 0 ;
26728 wxColour *arg2 = 0 ;
26729 void *argp1 = 0 ;
26730 int res1 = 0 ;
26731 wxColour temp2 ;
26732 PyObject * obj0 = 0 ;
26733 PyObject * obj1 = 0 ;
26734 char * kwnames[] = {
26735 (char *) "self",(char *) "colText", NULL
26736 };
26737
26738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26740 if (!SWIG_IsOK(res1)) {
26741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26742 }
26743 arg1 = reinterpret_cast< wxListItem * >(argp1);
26744 {
26745 arg2 = &temp2;
26746 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26747 }
26748 {
26749 PyThreadState* __tstate = wxPyBeginAllowThreads();
26750 (arg1)->SetTextColour((wxColour const &)*arg2);
26751 wxPyEndAllowThreads(__tstate);
26752 if (PyErr_Occurred()) SWIG_fail;
26753 }
26754 resultobj = SWIG_Py_Void();
26755 return resultobj;
26756fail:
26757 return NULL;
26758}
26759
26760
26761SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26762 PyObject *resultobj = 0;
26763 wxListItem *arg1 = (wxListItem *) 0 ;
26764 wxColour *arg2 = 0 ;
26765 void *argp1 = 0 ;
26766 int res1 = 0 ;
26767 wxColour temp2 ;
26768 PyObject * obj0 = 0 ;
26769 PyObject * obj1 = 0 ;
26770 char * kwnames[] = {
26771 (char *) "self",(char *) "colBack", NULL
26772 };
26773
26774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26776 if (!SWIG_IsOK(res1)) {
26777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26778 }
26779 arg1 = reinterpret_cast< wxListItem * >(argp1);
26780 {
26781 arg2 = &temp2;
26782 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26783 }
26784 {
26785 PyThreadState* __tstate = wxPyBeginAllowThreads();
26786 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26787 wxPyEndAllowThreads(__tstate);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 }
26790 resultobj = SWIG_Py_Void();
26791 return resultobj;
26792fail:
26793 return NULL;
26794}
26795
26796
26797SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26798 PyObject *resultobj = 0;
26799 wxListItem *arg1 = (wxListItem *) 0 ;
26800 wxFont *arg2 = 0 ;
26801 void *argp1 = 0 ;
26802 int res1 = 0 ;
26803 void *argp2 = 0 ;
26804 int res2 = 0 ;
26805 PyObject * obj0 = 0 ;
26806 PyObject * obj1 = 0 ;
26807 char * kwnames[] = {
26808 (char *) "self",(char *) "font", NULL
26809 };
26810
26811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26813 if (!SWIG_IsOK(res1)) {
26814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26815 }
26816 arg1 = reinterpret_cast< wxListItem * >(argp1);
26817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26818 if (!SWIG_IsOK(res2)) {
26819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26820 }
26821 if (!argp2) {
26822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26823 }
26824 arg2 = reinterpret_cast< wxFont * >(argp2);
26825 {
26826 PyThreadState* __tstate = wxPyBeginAllowThreads();
26827 (arg1)->SetFont((wxFont const &)*arg2);
26828 wxPyEndAllowThreads(__tstate);
26829 if (PyErr_Occurred()) SWIG_fail;
26830 }
26831 resultobj = SWIG_Py_Void();
26832 return resultobj;
26833fail:
26834 return NULL;
d14a1e28
RD
26835}
26836
26837
0085ce49
RD
26838SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26839 PyObject *resultobj = 0;
26840 wxListItem *arg1 = (wxListItem *) 0 ;
26841 long result;
26842 void *argp1 = 0 ;
26843 int res1 = 0 ;
26844 PyObject *swig_obj[1] ;
26845
26846 if (!args) SWIG_fail;
26847 swig_obj[0] = args;
26848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26849 if (!SWIG_IsOK(res1)) {
26850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26851 }
26852 arg1 = reinterpret_cast< wxListItem * >(argp1);
26853 {
26854 PyThreadState* __tstate = wxPyBeginAllowThreads();
26855 result = (long)(arg1)->GetMask();
26856 wxPyEndAllowThreads(__tstate);
26857 if (PyErr_Occurred()) SWIG_fail;
26858 }
26859 resultobj = SWIG_From_long(static_cast< long >(result));
26860 return resultobj;
26861fail:
26862 return NULL;
d14a1e28
RD
26863}
26864
26865
0085ce49
RD
26866SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26867 PyObject *resultobj = 0;
26868 wxListItem *arg1 = (wxListItem *) 0 ;
26869 long result;
26870 void *argp1 = 0 ;
26871 int res1 = 0 ;
26872 PyObject *swig_obj[1] ;
26873
26874 if (!args) SWIG_fail;
26875 swig_obj[0] = args;
26876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26877 if (!SWIG_IsOK(res1)) {
26878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26879 }
26880 arg1 = reinterpret_cast< wxListItem * >(argp1);
26881 {
26882 PyThreadState* __tstate = wxPyBeginAllowThreads();
26883 result = (long)(arg1)->GetId();
26884 wxPyEndAllowThreads(__tstate);
26885 if (PyErr_Occurred()) SWIG_fail;
26886 }
26887 resultobj = SWIG_From_long(static_cast< long >(result));
26888 return resultobj;
26889fail:
26890 return NULL;
d14a1e28
RD
26891}
26892
26893
0085ce49
RD
26894SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26895 PyObject *resultobj = 0;
26896 wxListItem *arg1 = (wxListItem *) 0 ;
26897 int result;
26898 void *argp1 = 0 ;
26899 int res1 = 0 ;
26900 PyObject *swig_obj[1] ;
26901
26902 if (!args) SWIG_fail;
26903 swig_obj[0] = args;
26904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26905 if (!SWIG_IsOK(res1)) {
26906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26907 }
26908 arg1 = reinterpret_cast< wxListItem * >(argp1);
26909 {
26910 PyThreadState* __tstate = wxPyBeginAllowThreads();
26911 result = (int)(arg1)->GetColumn();
26912 wxPyEndAllowThreads(__tstate);
26913 if (PyErr_Occurred()) SWIG_fail;
26914 }
26915 resultobj = SWIG_From_int(static_cast< int >(result));
26916 return resultobj;
26917fail:
26918 return NULL;
22bfe96c
RD
26919}
26920
26921
0085ce49
RD
26922SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26923 PyObject *resultobj = 0;
26924 wxListItem *arg1 = (wxListItem *) 0 ;
26925 long result;
26926 void *argp1 = 0 ;
26927 int res1 = 0 ;
26928 PyObject *swig_obj[1] ;
26929
26930 if (!args) SWIG_fail;
26931 swig_obj[0] = args;
26932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26933 if (!SWIG_IsOK(res1)) {
26934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26935 }
26936 arg1 = reinterpret_cast< wxListItem * >(argp1);
26937 {
26938 PyThreadState* __tstate = wxPyBeginAllowThreads();
26939 result = (long)(arg1)->GetState();
26940 wxPyEndAllowThreads(__tstate);
26941 if (PyErr_Occurred()) SWIG_fail;
26942 }
26943 resultobj = SWIG_From_long(static_cast< long >(result));
26944 return resultobj;
26945fail:
26946 return NULL;
b2dc1044
RD
26947}
26948
26949
0085ce49
RD
26950SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26951 PyObject *resultobj = 0;
26952 wxListItem *arg1 = (wxListItem *) 0 ;
26953 wxString *result = 0 ;
26954 void *argp1 = 0 ;
26955 int res1 = 0 ;
26956 PyObject *swig_obj[1] ;
26957
26958 if (!args) SWIG_fail;
26959 swig_obj[0] = args;
26960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26961 if (!SWIG_IsOK(res1)) {
26962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26963 }
26964 arg1 = reinterpret_cast< wxListItem * >(argp1);
26965 {
26966 PyThreadState* __tstate = wxPyBeginAllowThreads();
b2dc1044 26967 {
0085ce49
RD
26968 wxString const &_result_ref = (arg1)->GetText();
26969 result = (wxString *) &_result_ref;
26970 }
26971 wxPyEndAllowThreads(__tstate);
26972 if (PyErr_Occurred()) SWIG_fail;
26973 }
26974 {
b2dc1044 26975#if wxUSE_UNICODE
0085ce49 26976 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
b2dc1044 26977#else
0085ce49 26978 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
b2dc1044 26979#endif
0085ce49
RD
26980 }
26981 return resultobj;
26982fail:
26983 return NULL;
d14a1e28
RD
26984}
26985
26986
0085ce49
RD
26987SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26988 PyObject *resultobj = 0;
26989 wxListItem *arg1 = (wxListItem *) 0 ;
26990 int result;
26991 void *argp1 = 0 ;
26992 int res1 = 0 ;
26993 PyObject *swig_obj[1] ;
26994
26995 if (!args) SWIG_fail;
26996 swig_obj[0] = args;
26997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26998 if (!SWIG_IsOK(res1)) {
26999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27000 }
27001 arg1 = reinterpret_cast< wxListItem * >(argp1);
27002 {
27003 PyThreadState* __tstate = wxPyBeginAllowThreads();
27004 result = (int)(arg1)->GetImage();
27005 wxPyEndAllowThreads(__tstate);
27006 if (PyErr_Occurred()) SWIG_fail;
27007 }
27008 resultobj = SWIG_From_int(static_cast< int >(result));
27009 return resultobj;
27010fail:
27011 return NULL;
d14a1e28
RD
27012}
27013
27014
0085ce49
RD
27015SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27016 PyObject *resultobj = 0;
27017 wxListItem *arg1 = (wxListItem *) 0 ;
27018 long result;
27019 void *argp1 = 0 ;
27020 int res1 = 0 ;
27021 PyObject *swig_obj[1] ;
27022
27023 if (!args) SWIG_fail;
27024 swig_obj[0] = args;
27025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27026 if (!SWIG_IsOK(res1)) {
27027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27028 }
27029 arg1 = reinterpret_cast< wxListItem * >(argp1);
27030 {
27031 PyThreadState* __tstate = wxPyBeginAllowThreads();
27032 result = (long)(arg1)->GetData();
27033 wxPyEndAllowThreads(__tstate);
27034 if (PyErr_Occurred()) SWIG_fail;
27035 }
27036 resultobj = SWIG_From_long(static_cast< long >(result));
27037 return resultobj;
27038fail:
27039 return NULL;
d14a1e28
RD
27040}
27041
27042
0085ce49
RD
27043SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27044 PyObject *resultobj = 0;
27045 wxListItem *arg1 = (wxListItem *) 0 ;
27046 int result;
27047 void *argp1 = 0 ;
27048 int res1 = 0 ;
27049 PyObject *swig_obj[1] ;
27050
27051 if (!args) SWIG_fail;
27052 swig_obj[0] = args;
27053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27054 if (!SWIG_IsOK(res1)) {
27055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27056 }
27057 arg1 = reinterpret_cast< wxListItem * >(argp1);
27058 {
27059 PyThreadState* __tstate = wxPyBeginAllowThreads();
27060 result = (int)(arg1)->GetWidth();
27061 wxPyEndAllowThreads(__tstate);
27062 if (PyErr_Occurred()) SWIG_fail;
27063 }
27064 resultobj = SWIG_From_int(static_cast< int >(result));
27065 return resultobj;
27066fail:
27067 return NULL;
d14a1e28
RD
27068}
27069
27070
0085ce49
RD
27071SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27072 PyObject *resultobj = 0;
27073 wxListItem *arg1 = (wxListItem *) 0 ;
27074 wxListColumnFormat result;
27075 void *argp1 = 0 ;
27076 int res1 = 0 ;
27077 PyObject *swig_obj[1] ;
27078
27079 if (!args) SWIG_fail;
27080 swig_obj[0] = args;
27081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27082 if (!SWIG_IsOK(res1)) {
27083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27084 }
27085 arg1 = reinterpret_cast< wxListItem * >(argp1);
27086 {
27087 PyThreadState* __tstate = wxPyBeginAllowThreads();
27088 result = (wxListColumnFormat)(arg1)->GetAlign();
27089 wxPyEndAllowThreads(__tstate);
27090 if (PyErr_Occurred()) SWIG_fail;
27091 }
27092 resultobj = SWIG_From_int(static_cast< int >(result));
27093 return resultobj;
27094fail:
27095 return NULL;
d14a1e28
RD
27096}
27097
27098
0085ce49
RD
27099SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27100 PyObject *resultobj = 0;
27101 wxListItem *arg1 = (wxListItem *) 0 ;
27102 wxListItemAttr *result = 0 ;
27103 void *argp1 = 0 ;
27104 int res1 = 0 ;
27105 PyObject *swig_obj[1] ;
27106
27107 if (!args) SWIG_fail;
27108 swig_obj[0] = args;
27109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27110 if (!SWIG_IsOK(res1)) {
27111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27112 }
27113 arg1 = reinterpret_cast< wxListItem * >(argp1);
27114 {
27115 PyThreadState* __tstate = wxPyBeginAllowThreads();
27116 result = (wxListItemAttr *)(arg1)->GetAttributes();
27117 wxPyEndAllowThreads(__tstate);
27118 if (PyErr_Occurred()) SWIG_fail;
27119 }
27120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27121 return resultobj;
27122fail:
27123 return NULL;
d14a1e28
RD
27124}
27125
27126
0085ce49
RD
27127SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27128 PyObject *resultobj = 0;
27129 wxListItem *arg1 = (wxListItem *) 0 ;
27130 bool result;
27131 void *argp1 = 0 ;
27132 int res1 = 0 ;
27133 PyObject *swig_obj[1] ;
27134
27135 if (!args) SWIG_fail;
27136 swig_obj[0] = args;
27137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27138 if (!SWIG_IsOK(res1)) {
27139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27140 }
27141 arg1 = reinterpret_cast< wxListItem * >(argp1);
27142 {
27143 PyThreadState* __tstate = wxPyBeginAllowThreads();
27144 result = (bool)(arg1)->HasAttributes();
27145 wxPyEndAllowThreads(__tstate);
27146 if (PyErr_Occurred()) SWIG_fail;
27147 }
27148 {
27149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27150 }
27151 return resultobj;
27152fail:
27153 return NULL;
22bfe96c
RD
27154}
27155
27156
0085ce49
RD
27157SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27158 PyObject *resultobj = 0;
27159 wxListItem *arg1 = (wxListItem *) 0 ;
27160 wxColour result;
27161 void *argp1 = 0 ;
27162 int res1 = 0 ;
27163 PyObject *swig_obj[1] ;
27164
27165 if (!args) SWIG_fail;
27166 swig_obj[0] = args;
27167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27168 if (!SWIG_IsOK(res1)) {
27169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27170 }
27171 arg1 = reinterpret_cast< wxListItem * >(argp1);
27172 {
27173 PyThreadState* __tstate = wxPyBeginAllowThreads();
27174 result = ((wxListItem const *)arg1)->GetTextColour();
27175 wxPyEndAllowThreads(__tstate);
27176 if (PyErr_Occurred()) SWIG_fail;
27177 }
27178 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27179 return resultobj;
27180fail:
27181 return NULL;
d14a1e28 27182}
0085ce49
RD
27183
27184
27185SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27186 PyObject *resultobj = 0;
27187 wxListItem *arg1 = (wxListItem *) 0 ;
27188 wxColour result;
27189 void *argp1 = 0 ;
27190 int res1 = 0 ;
27191 PyObject *swig_obj[1] ;
27192
27193 if (!args) SWIG_fail;
27194 swig_obj[0] = args;
27195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27196 if (!SWIG_IsOK(res1)) {
27197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27198 }
27199 arg1 = reinterpret_cast< wxListItem * >(argp1);
27200 {
27201 PyThreadState* __tstate = wxPyBeginAllowThreads();
27202 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27203 wxPyEndAllowThreads(__tstate);
27204 if (PyErr_Occurred()) SWIG_fail;
27205 }
27206 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27207 return resultobj;
27208fail:
27209 return NULL;
b2dc1044
RD
27210}
27211
27212
0085ce49
RD
27213SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27214 PyObject *resultobj = 0;
27215 wxListItem *arg1 = (wxListItem *) 0 ;
27216 wxFont result;
27217 void *argp1 = 0 ;
27218 int res1 = 0 ;
27219 PyObject *swig_obj[1] ;
27220
27221 if (!args) SWIG_fail;
27222 swig_obj[0] = args;
27223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27224 if (!SWIG_IsOK(res1)) {
27225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27226 }
27227 arg1 = reinterpret_cast< wxListItem * >(argp1);
27228 {
27229 PyThreadState* __tstate = wxPyBeginAllowThreads();
27230 result = ((wxListItem const *)arg1)->GetFont();
27231 wxPyEndAllowThreads(__tstate);
27232 if (PyErr_Occurred()) SWIG_fail;
27233 }
27234 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27235 return resultobj;
27236fail:
27237 return NULL;
27238}
27239
27240
27241SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27242 PyObject *resultobj = 0;
27243 wxListItem *arg1 = (wxListItem *) 0 ;
27244 long arg2 ;
27245 void *argp1 = 0 ;
27246 int res1 = 0 ;
27247 long val2 ;
27248 int ecode2 = 0 ;
27249 PyObject *swig_obj[2] ;
27250
27251 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27253 if (!SWIG_IsOK(res1)) {
27254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27255 }
27256 arg1 = reinterpret_cast< wxListItem * >(argp1);
27257 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27258 if (!SWIG_IsOK(ecode2)) {
27259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27260 }
27261 arg2 = static_cast< long >(val2);
27262 if (arg1) (arg1)->m_mask = arg2;
27263
27264 resultobj = SWIG_Py_Void();
27265 return resultobj;
27266fail:
27267 return NULL;
b2dc1044
RD
27268}
27269
27270
0085ce49
RD
27271SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27272 PyObject *resultobj = 0;
27273 wxListItem *arg1 = (wxListItem *) 0 ;
27274 long result;
27275 void *argp1 = 0 ;
27276 int res1 = 0 ;
27277 PyObject *swig_obj[1] ;
27278
27279 if (!args) SWIG_fail;
27280 swig_obj[0] = args;
27281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27282 if (!SWIG_IsOK(res1)) {
27283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27284 }
27285 arg1 = reinterpret_cast< wxListItem * >(argp1);
27286 result = (long) ((arg1)->m_mask);
27287 resultobj = SWIG_From_long(static_cast< long >(result));
27288 return resultobj;
27289fail:
27290 return NULL;
27291}
27292
27293
27294SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27295 PyObject *resultobj = 0;
27296 wxListItem *arg1 = (wxListItem *) 0 ;
27297 long arg2 ;
27298 void *argp1 = 0 ;
27299 int res1 = 0 ;
27300 long val2 ;
27301 int ecode2 = 0 ;
27302 PyObject *swig_obj[2] ;
27303
27304 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27306 if (!SWIG_IsOK(res1)) {
27307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27308 }
27309 arg1 = reinterpret_cast< wxListItem * >(argp1);
27310 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27311 if (!SWIG_IsOK(ecode2)) {
27312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27313 }
27314 arg2 = static_cast< long >(val2);
27315 if (arg1) (arg1)->m_itemId = arg2;
27316
27317 resultobj = SWIG_Py_Void();
27318 return resultobj;
27319fail:
27320 return NULL;
d14a1e28
RD
27321}
27322
27323
0085ce49
RD
27324SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 PyObject *resultobj = 0;
27326 wxListItem *arg1 = (wxListItem *) 0 ;
27327 long result;
27328 void *argp1 = 0 ;
27329 int res1 = 0 ;
27330 PyObject *swig_obj[1] ;
27331
27332 if (!args) SWIG_fail;
27333 swig_obj[0] = args;
27334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27335 if (!SWIG_IsOK(res1)) {
27336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27337 }
27338 arg1 = reinterpret_cast< wxListItem * >(argp1);
27339 result = (long) ((arg1)->m_itemId);
27340 resultobj = SWIG_From_long(static_cast< long >(result));
27341 return resultobj;
27342fail:
27343 return NULL;
27344}
27345
27346
27347SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27348 PyObject *resultobj = 0;
27349 wxListItem *arg1 = (wxListItem *) 0 ;
27350 int arg2 ;
27351 void *argp1 = 0 ;
27352 int res1 = 0 ;
27353 int val2 ;
27354 int ecode2 = 0 ;
27355 PyObject *swig_obj[2] ;
27356
27357 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27359 if (!SWIG_IsOK(res1)) {
27360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27361 }
27362 arg1 = reinterpret_cast< wxListItem * >(argp1);
27363 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27364 if (!SWIG_IsOK(ecode2)) {
27365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27366 }
27367 arg2 = static_cast< int >(val2);
27368 if (arg1) (arg1)->m_col = arg2;
27369
27370 resultobj = SWIG_Py_Void();
27371 return resultobj;
27372fail:
27373 return NULL;
d14a1e28
RD
27374}
27375
27376
0085ce49
RD
27377SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27378 PyObject *resultobj = 0;
27379 wxListItem *arg1 = (wxListItem *) 0 ;
27380 int result;
27381 void *argp1 = 0 ;
27382 int res1 = 0 ;
27383 PyObject *swig_obj[1] ;
27384
27385 if (!args) SWIG_fail;
27386 swig_obj[0] = args;
27387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27388 if (!SWIG_IsOK(res1)) {
27389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27390 }
27391 arg1 = reinterpret_cast< wxListItem * >(argp1);
27392 result = (int) ((arg1)->m_col);
27393 resultobj = SWIG_From_int(static_cast< int >(result));
27394 return resultobj;
27395fail:
27396 return NULL;
27397}
27398
27399
27400SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27401 PyObject *resultobj = 0;
27402 wxListItem *arg1 = (wxListItem *) 0 ;
27403 long arg2 ;
27404 void *argp1 = 0 ;
27405 int res1 = 0 ;
27406 long val2 ;
27407 int ecode2 = 0 ;
27408 PyObject *swig_obj[2] ;
27409
27410 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27412 if (!SWIG_IsOK(res1)) {
27413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27414 }
27415 arg1 = reinterpret_cast< wxListItem * >(argp1);
27416 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27417 if (!SWIG_IsOK(ecode2)) {
27418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27419 }
27420 arg2 = static_cast< long >(val2);
27421 if (arg1) (arg1)->m_state = arg2;
27422
27423 resultobj = SWIG_Py_Void();
27424 return resultobj;
27425fail:
27426 return NULL;
8fb0e70a
RD
27427}
27428
27429
0085ce49
RD
27430SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27431 PyObject *resultobj = 0;
27432 wxListItem *arg1 = (wxListItem *) 0 ;
27433 long result;
27434 void *argp1 = 0 ;
27435 int res1 = 0 ;
27436 PyObject *swig_obj[1] ;
27437
27438 if (!args) SWIG_fail;
27439 swig_obj[0] = args;
27440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27441 if (!SWIG_IsOK(res1)) {
27442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27443 }
27444 arg1 = reinterpret_cast< wxListItem * >(argp1);
27445 result = (long) ((arg1)->m_state);
27446 resultobj = SWIG_From_long(static_cast< long >(result));
27447 return resultobj;
27448fail:
27449 return NULL;
27450}
27451
27452
27453SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27454 PyObject *resultobj = 0;
27455 wxListItem *arg1 = (wxListItem *) 0 ;
27456 long arg2 ;
27457 void *argp1 = 0 ;
27458 int res1 = 0 ;
27459 long val2 ;
27460 int ecode2 = 0 ;
27461 PyObject *swig_obj[2] ;
27462
27463 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27465 if (!SWIG_IsOK(res1)) {
27466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27467 }
27468 arg1 = reinterpret_cast< wxListItem * >(argp1);
27469 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27470 if (!SWIG_IsOK(ecode2)) {
27471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27472 }
27473 arg2 = static_cast< long >(val2);
27474 if (arg1) (arg1)->m_stateMask = arg2;
27475
27476 resultobj = SWIG_Py_Void();
27477 return resultobj;
27478fail:
27479 return NULL;
d14a1e28
RD
27480}
27481
27482
0085ce49
RD
27483SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27484 PyObject *resultobj = 0;
27485 wxListItem *arg1 = (wxListItem *) 0 ;
27486 long result;
27487 void *argp1 = 0 ;
27488 int res1 = 0 ;
27489 PyObject *swig_obj[1] ;
27490
27491 if (!args) SWIG_fail;
27492 swig_obj[0] = args;
27493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27494 if (!SWIG_IsOK(res1)) {
27495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27496 }
27497 arg1 = reinterpret_cast< wxListItem * >(argp1);
27498 result = (long) ((arg1)->m_stateMask);
27499 resultobj = SWIG_From_long(static_cast< long >(result));
27500 return resultobj;
27501fail:
27502 return NULL;
27503}
27504
27505
27506SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27507 PyObject *resultobj = 0;
27508 wxListItem *arg1 = (wxListItem *) 0 ;
27509 wxString *arg2 = (wxString *) 0 ;
27510 void *argp1 = 0 ;
27511 int res1 = 0 ;
27512 bool temp2 = false ;
27513 PyObject *swig_obj[2] ;
27514
27515 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27517 if (!SWIG_IsOK(res1)) {
27518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27519 }
27520 arg1 = reinterpret_cast< wxListItem * >(argp1);
27521 {
27522 arg2 = wxString_in_helper(swig_obj[1]);
27523 if (arg2 == NULL) SWIG_fail;
27524 temp2 = true;
27525 }
27526 if (arg1) (arg1)->m_text = *arg2;
27527
27528 resultobj = SWIG_Py_Void();
27529 {
27530 if (temp2)
27531 delete arg2;
27532 }
27533 return resultobj;
27534fail:
27535 {
27536 if (temp2)
27537 delete arg2;
27538 }
27539 return NULL;
d14a1e28
RD
27540}
27541
27542
0085ce49
RD
27543SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27544 PyObject *resultobj = 0;
27545 wxListItem *arg1 = (wxListItem *) 0 ;
27546 wxString *result = 0 ;
27547 void *argp1 = 0 ;
27548 int res1 = 0 ;
27549 PyObject *swig_obj[1] ;
27550
27551 if (!args) SWIG_fail;
27552 swig_obj[0] = args;
27553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27554 if (!SWIG_IsOK(res1)) {
27555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27556 }
27557 arg1 = reinterpret_cast< wxListItem * >(argp1);
27558 result = (wxString *)& ((arg1)->m_text);
27559 {
d14a1e28 27560#if wxUSE_UNICODE
0085ce49 27561 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 27562#else
0085ce49 27563 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 27564#endif
0085ce49
RD
27565 }
27566 return resultobj;
27567fail:
27568 return NULL;
d14a1e28
RD
27569}
27570
27571
0085ce49
RD
27572SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27573 PyObject *resultobj = 0;
27574 wxListItem *arg1 = (wxListItem *) 0 ;
27575 int arg2 ;
27576 void *argp1 = 0 ;
27577 int res1 = 0 ;
27578 int val2 ;
27579 int ecode2 = 0 ;
27580 PyObject *swig_obj[2] ;
27581
27582 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27584 if (!SWIG_IsOK(res1)) {
27585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27586 }
27587 arg1 = reinterpret_cast< wxListItem * >(argp1);
27588 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27589 if (!SWIG_IsOK(ecode2)) {
27590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27591 }
27592 arg2 = static_cast< int >(val2);
27593 if (arg1) (arg1)->m_image = arg2;
27594
27595 resultobj = SWIG_Py_Void();
27596 return resultobj;
27597fail:
27598 return NULL;
d14a1e28
RD
27599}
27600
27601
0085ce49
RD
27602SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27603 PyObject *resultobj = 0;
27604 wxListItem *arg1 = (wxListItem *) 0 ;
27605 int result;
27606 void *argp1 = 0 ;
27607 int res1 = 0 ;
27608 PyObject *swig_obj[1] ;
27609
27610 if (!args) SWIG_fail;
27611 swig_obj[0] = args;
27612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27613 if (!SWIG_IsOK(res1)) {
27614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27615 }
27616 arg1 = reinterpret_cast< wxListItem * >(argp1);
27617 result = (int) ((arg1)->m_image);
27618 resultobj = SWIG_From_int(static_cast< int >(result));
27619 return resultobj;
27620fail:
27621 return NULL;
27622}
27623
27624
27625SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27626 PyObject *resultobj = 0;
27627 wxListItem *arg1 = (wxListItem *) 0 ;
27628 long arg2 ;
27629 void *argp1 = 0 ;
27630 int res1 = 0 ;
27631 long val2 ;
27632 int ecode2 = 0 ;
27633 PyObject *swig_obj[2] ;
27634
27635 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27637 if (!SWIG_IsOK(res1)) {
27638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27639 }
27640 arg1 = reinterpret_cast< wxListItem * >(argp1);
27641 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27642 if (!SWIG_IsOK(ecode2)) {
27643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27644 }
27645 arg2 = static_cast< long >(val2);
27646 if (arg1) (arg1)->m_data = arg2;
27647
27648 resultobj = SWIG_Py_Void();
27649 return resultobj;
27650fail:
27651 return NULL;
d14a1e28
RD
27652}
27653
27654
0085ce49
RD
27655SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27656 PyObject *resultobj = 0;
27657 wxListItem *arg1 = (wxListItem *) 0 ;
27658 long result;
27659 void *argp1 = 0 ;
27660 int res1 = 0 ;
27661 PyObject *swig_obj[1] ;
27662
27663 if (!args) SWIG_fail;
27664 swig_obj[0] = args;
27665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27666 if (!SWIG_IsOK(res1)) {
27667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27668 }
27669 arg1 = reinterpret_cast< wxListItem * >(argp1);
27670 result = (long) ((arg1)->m_data);
27671 resultobj = SWIG_From_long(static_cast< long >(result));
27672 return resultobj;
27673fail:
27674 return NULL;
27675}
27676
27677
27678SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27679 PyObject *resultobj = 0;
27680 wxListItem *arg1 = (wxListItem *) 0 ;
27681 int arg2 ;
27682 void *argp1 = 0 ;
27683 int res1 = 0 ;
27684 int val2 ;
27685 int ecode2 = 0 ;
27686 PyObject *swig_obj[2] ;
27687
27688 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27690 if (!SWIG_IsOK(res1)) {
27691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27692 }
27693 arg1 = reinterpret_cast< wxListItem * >(argp1);
27694 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27695 if (!SWIG_IsOK(ecode2)) {
27696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27697 }
27698 arg2 = static_cast< int >(val2);
27699 if (arg1) (arg1)->m_format = arg2;
27700
27701 resultobj = SWIG_Py_Void();
27702 return resultobj;
27703fail:
27704 return NULL;
d14a1e28
RD
27705}
27706
27707
0085ce49
RD
27708SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27709 PyObject *resultobj = 0;
27710 wxListItem *arg1 = (wxListItem *) 0 ;
27711 int result;
27712 void *argp1 = 0 ;
27713 int res1 = 0 ;
27714 PyObject *swig_obj[1] ;
27715
27716 if (!args) SWIG_fail;
27717 swig_obj[0] = args;
27718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27719 if (!SWIG_IsOK(res1)) {
27720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27721 }
27722 arg1 = reinterpret_cast< wxListItem * >(argp1);
27723 result = (int) ((arg1)->m_format);
27724 resultobj = SWIG_From_int(static_cast< int >(result));
27725 return resultobj;
27726fail:
27727 return NULL;
27728}
27729
27730
27731SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27732 PyObject *resultobj = 0;
27733 wxListItem *arg1 = (wxListItem *) 0 ;
27734 int arg2 ;
27735 void *argp1 = 0 ;
27736 int res1 = 0 ;
27737 int val2 ;
27738 int ecode2 = 0 ;
27739 PyObject *swig_obj[2] ;
27740
27741 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27743 if (!SWIG_IsOK(res1)) {
27744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27745 }
27746 arg1 = reinterpret_cast< wxListItem * >(argp1);
27747 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27748 if (!SWIG_IsOK(ecode2)) {
27749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27750 }
27751 arg2 = static_cast< int >(val2);
27752 if (arg1) (arg1)->m_width = arg2;
27753
27754 resultobj = SWIG_Py_Void();
27755 return resultobj;
27756fail:
27757 return NULL;
d14a1e28
RD
27758}
27759
27760
0085ce49
RD
27761SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27762 PyObject *resultobj = 0;
27763 wxListItem *arg1 = (wxListItem *) 0 ;
27764 int result;
27765 void *argp1 = 0 ;
27766 int res1 = 0 ;
27767 PyObject *swig_obj[1] ;
27768
27769 if (!args) SWIG_fail;
27770 swig_obj[0] = args;
27771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27772 if (!SWIG_IsOK(res1)) {
27773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27774 }
27775 arg1 = reinterpret_cast< wxListItem * >(argp1);
27776 result = (int) ((arg1)->m_width);
27777 resultobj = SWIG_From_int(static_cast< int >(result));
27778 return resultobj;
27779fail:
27780 return NULL;
27781}
27782
27783
27784SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27785 PyObject *obj;
27786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27787 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27788 return SWIG_Py_Void();
27789}
27790
27791SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27792 return SWIG_Python_InitShadowInstance(args);
27793}
27794
27795SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27796 PyObject *resultobj = 0;
27797 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27798 int arg2 = (int) 0 ;
27799 wxListEvent *result = 0 ;
27800 int val1 ;
27801 int ecode1 = 0 ;
27802 int val2 ;
27803 int ecode2 = 0 ;
27804 PyObject * obj0 = 0 ;
27805 PyObject * obj1 = 0 ;
27806 char * kwnames[] = {
27807 (char *) "commandType",(char *) "id", NULL
27808 };
27809
27810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27811 if (obj0) {
27812 ecode1 = SWIG_AsVal_int(obj0, &val1);
27813 if (!SWIG_IsOK(ecode1)) {
27814 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27815 }
27816 arg1 = static_cast< wxEventType >(val1);
27817 }
27818 if (obj1) {
27819 ecode2 = SWIG_AsVal_int(obj1, &val2);
27820 if (!SWIG_IsOK(ecode2)) {
27821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27822 }
27823 arg2 = static_cast< int >(val2);
27824 }
27825 {
27826 PyThreadState* __tstate = wxPyBeginAllowThreads();
27827 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27828 wxPyEndAllowThreads(__tstate);
27829 if (PyErr_Occurred()) SWIG_fail;
27830 }
27831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27832 return resultobj;
27833fail:
27834 return NULL;
27835}
27836
27837
27838SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27839 PyObject *resultobj = 0;
27840 wxListEvent *arg1 = (wxListEvent *) 0 ;
27841 int arg2 ;
27842 void *argp1 = 0 ;
27843 int res1 = 0 ;
27844 int val2 ;
27845 int ecode2 = 0 ;
27846 PyObject *swig_obj[2] ;
27847
27848 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27850 if (!SWIG_IsOK(res1)) {
27851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27852 }
27853 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27854 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27855 if (!SWIG_IsOK(ecode2)) {
27856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27857 }
27858 arg2 = static_cast< int >(val2);
27859 if (arg1) (arg1)->m_code = arg2;
27860
27861 resultobj = SWIG_Py_Void();
27862 return resultobj;
27863fail:
27864 return NULL;
d14a1e28
RD
27865}
27866
27867
0085ce49
RD
27868SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27869 PyObject *resultobj = 0;
27870 wxListEvent *arg1 = (wxListEvent *) 0 ;
27871 int result;
27872 void *argp1 = 0 ;
27873 int res1 = 0 ;
27874 PyObject *swig_obj[1] ;
27875
27876 if (!args) SWIG_fail;
27877 swig_obj[0] = args;
27878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27879 if (!SWIG_IsOK(res1)) {
27880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27881 }
27882 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27883 result = (int) ((arg1)->m_code);
27884 resultobj = SWIG_From_int(static_cast< int >(result));
27885 return resultobj;
27886fail:
27887 return NULL;
27888}
27889
27890
27891SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27892 PyObject *resultobj = 0;
27893 wxListEvent *arg1 = (wxListEvent *) 0 ;
27894 long arg2 ;
27895 void *argp1 = 0 ;
27896 int res1 = 0 ;
27897 long val2 ;
27898 int ecode2 = 0 ;
27899 PyObject *swig_obj[2] ;
27900
27901 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27903 if (!SWIG_IsOK(res1)) {
27904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27905 }
27906 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27907 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27908 if (!SWIG_IsOK(ecode2)) {
27909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27910 }
27911 arg2 = static_cast< long >(val2);
27912 if (arg1) (arg1)->m_oldItemIndex = arg2;
27913
27914 resultobj = SWIG_Py_Void();
27915 return resultobj;
27916fail:
27917 return NULL;
d14a1e28
RD
27918}
27919
27920
0085ce49
RD
27921SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27922 PyObject *resultobj = 0;
27923 wxListEvent *arg1 = (wxListEvent *) 0 ;
27924 long result;
27925 void *argp1 = 0 ;
27926 int res1 = 0 ;
27927 PyObject *swig_obj[1] ;
27928
27929 if (!args) SWIG_fail;
27930 swig_obj[0] = args;
27931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27932 if (!SWIG_IsOK(res1)) {
27933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27934 }
27935 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27936 result = (long) ((arg1)->m_oldItemIndex);
27937 resultobj = SWIG_From_long(static_cast< long >(result));
27938 return resultobj;
27939fail:
27940 return NULL;
27941}
27942
27943
27944SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27945 PyObject *resultobj = 0;
27946 wxListEvent *arg1 = (wxListEvent *) 0 ;
27947 long arg2 ;
27948 void *argp1 = 0 ;
27949 int res1 = 0 ;
27950 long val2 ;
27951 int ecode2 = 0 ;
27952 PyObject *swig_obj[2] ;
27953
27954 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27956 if (!SWIG_IsOK(res1)) {
27957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27958 }
27959 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27960 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27961 if (!SWIG_IsOK(ecode2)) {
27962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27963 }
27964 arg2 = static_cast< long >(val2);
27965 if (arg1) (arg1)->m_itemIndex = arg2;
27966
27967 resultobj = SWIG_Py_Void();
27968 return resultobj;
27969fail:
27970 return NULL;
d14a1e28
RD
27971}
27972
27973
0085ce49
RD
27974SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27975 PyObject *resultobj = 0;
27976 wxListEvent *arg1 = (wxListEvent *) 0 ;
27977 long result;
27978 void *argp1 = 0 ;
27979 int res1 = 0 ;
27980 PyObject *swig_obj[1] ;
27981
27982 if (!args) SWIG_fail;
27983 swig_obj[0] = args;
27984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27985 if (!SWIG_IsOK(res1)) {
27986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27987 }
27988 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27989 result = (long) ((arg1)->m_itemIndex);
27990 resultobj = SWIG_From_long(static_cast< long >(result));
27991 return resultobj;
27992fail:
27993 return NULL;
27994}
27995
27996
27997SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27998 PyObject *resultobj = 0;
27999 wxListEvent *arg1 = (wxListEvent *) 0 ;
28000 int arg2 ;
28001 void *argp1 = 0 ;
28002 int res1 = 0 ;
28003 int val2 ;
28004 int ecode2 = 0 ;
28005 PyObject *swig_obj[2] ;
28006
28007 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28009 if (!SWIG_IsOK(res1)) {
28010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28011 }
28012 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28013 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28014 if (!SWIG_IsOK(ecode2)) {
28015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28016 }
28017 arg2 = static_cast< int >(val2);
28018 if (arg1) (arg1)->m_col = arg2;
28019
28020 resultobj = SWIG_Py_Void();
28021 return resultobj;
28022fail:
28023 return NULL;
7e08d4ef
RD
28024}
28025
28026
0085ce49
RD
28027SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28028 PyObject *resultobj = 0;
28029 wxListEvent *arg1 = (wxListEvent *) 0 ;
28030 int result;
28031 void *argp1 = 0 ;
28032 int res1 = 0 ;
28033 PyObject *swig_obj[1] ;
28034
28035 if (!args) SWIG_fail;
28036 swig_obj[0] = args;
28037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28038 if (!SWIG_IsOK(res1)) {
28039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28040 }
28041 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28042 result = (int) ((arg1)->m_col);
28043 resultobj = SWIG_From_int(static_cast< int >(result));
28044 return resultobj;
28045fail:
28046 return NULL;
28047}
28048
28049
28050SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28051 PyObject *resultobj = 0;
28052 wxListEvent *arg1 = (wxListEvent *) 0 ;
28053 wxPoint *arg2 = (wxPoint *) 0 ;
28054 void *argp1 = 0 ;
28055 int res1 = 0 ;
28056 void *argp2 = 0 ;
28057 int res2 = 0 ;
28058 PyObject *swig_obj[2] ;
28059
28060 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28062 if (!SWIG_IsOK(res1)) {
28063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28064 }
28065 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28066 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28067 if (!SWIG_IsOK(res2)) {
28068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28069 }
28070 arg2 = reinterpret_cast< wxPoint * >(argp2);
28071 if (arg1) (arg1)->m_pointDrag = *arg2;
28072
28073 resultobj = SWIG_Py_Void();
28074 return resultobj;
28075fail:
28076 return NULL;
7e08d4ef
RD
28077}
28078
28079
0085ce49
RD
28080SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28081 PyObject *resultobj = 0;
28082 wxListEvent *arg1 = (wxListEvent *) 0 ;
28083 wxPoint *result = 0 ;
28084 void *argp1 = 0 ;
28085 int res1 = 0 ;
28086 PyObject *swig_obj[1] ;
28087
28088 if (!args) SWIG_fail;
28089 swig_obj[0] = args;
28090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28091 if (!SWIG_IsOK(res1)) {
28092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28093 }
28094 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28095 result = (wxPoint *)& ((arg1)->m_pointDrag);
28096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28097 return resultobj;
28098fail:
28099 return NULL;
28100}
28101
28102
28103SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28104 PyObject *resultobj = 0;
28105 wxListEvent *arg1 = (wxListEvent *) 0 ;
28106 wxListItem *result = 0 ;
28107 void *argp1 = 0 ;
28108 int res1 = 0 ;
28109 PyObject *swig_obj[1] ;
28110
28111 if (!args) SWIG_fail;
28112 swig_obj[0] = args;
28113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28114 if (!SWIG_IsOK(res1)) {
28115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28116 }
28117 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28118 result = (wxListItem *)& ((arg1)->m_item);
28119 {
28120 resultobj = wxPyMake_wxObject(result, (bool)0);
28121 }
28122 return resultobj;
28123fail:
28124 return NULL;
7e08d4ef
RD
28125}
28126
28127
0085ce49
RD
28128SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28129 PyObject *resultobj = 0;
28130 wxListEvent *arg1 = (wxListEvent *) 0 ;
28131 int result;
28132 void *argp1 = 0 ;
28133 int res1 = 0 ;
28134 PyObject *swig_obj[1] ;
28135
28136 if (!args) SWIG_fail;
28137 swig_obj[0] = args;
28138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28139 if (!SWIG_IsOK(res1)) {
28140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28141 }
28142 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28143 {
28144 PyThreadState* __tstate = wxPyBeginAllowThreads();
28145 result = (int)(arg1)->GetKeyCode();
28146 wxPyEndAllowThreads(__tstate);
28147 if (PyErr_Occurred()) SWIG_fail;
28148 }
28149 resultobj = SWIG_From_int(static_cast< int >(result));
28150 return resultobj;
28151fail:
28152 return NULL;
7e08d4ef
RD
28153}
28154
28155
0085ce49
RD
28156SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28157 PyObject *resultobj = 0;
28158 wxListEvent *arg1 = (wxListEvent *) 0 ;
28159 long result;
28160 void *argp1 = 0 ;
28161 int res1 = 0 ;
28162 PyObject *swig_obj[1] ;
28163
28164 if (!args) SWIG_fail;
28165 swig_obj[0] = args;
28166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28167 if (!SWIG_IsOK(res1)) {
28168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28169 }
28170 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28171 {
28172 PyThreadState* __tstate = wxPyBeginAllowThreads();
28173 result = (long)(arg1)->GetIndex();
28174 wxPyEndAllowThreads(__tstate);
28175 if (PyErr_Occurred()) SWIG_fail;
28176 }
28177 resultobj = SWIG_From_long(static_cast< long >(result));
28178 return resultobj;
28179fail:
28180 return NULL;
7e08d4ef
RD
28181}
28182
28183
0085ce49
RD
28184SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28185 PyObject *resultobj = 0;
28186 wxListEvent *arg1 = (wxListEvent *) 0 ;
28187 int result;
28188 void *argp1 = 0 ;
28189 int res1 = 0 ;
28190 PyObject *swig_obj[1] ;
28191
28192 if (!args) SWIG_fail;
28193 swig_obj[0] = args;
28194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28195 if (!SWIG_IsOK(res1)) {
28196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28197 }
28198 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28199 {
28200 PyThreadState* __tstate = wxPyBeginAllowThreads();
28201 result = (int)(arg1)->GetColumn();
28202 wxPyEndAllowThreads(__tstate);
28203 if (PyErr_Occurred()) SWIG_fail;
28204 }
28205 resultobj = SWIG_From_int(static_cast< int >(result));
28206 return resultobj;
28207fail:
28208 return NULL;
d14a1e28
RD
28209}
28210
28211
0085ce49
RD
28212SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28213 PyObject *resultobj = 0;
28214 wxListEvent *arg1 = (wxListEvent *) 0 ;
28215 wxPoint result;
28216 void *argp1 = 0 ;
28217 int res1 = 0 ;
28218 PyObject *swig_obj[1] ;
28219
28220 if (!args) SWIG_fail;
28221 swig_obj[0] = args;
28222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28223 if (!SWIG_IsOK(res1)) {
28224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28225 }
28226 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28227 {
28228 PyThreadState* __tstate = wxPyBeginAllowThreads();
28229 result = (arg1)->GetPoint();
28230 wxPyEndAllowThreads(__tstate);
28231 if (PyErr_Occurred()) SWIG_fail;
28232 }
28233 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28234 return resultobj;
28235fail:
28236 return NULL;
d14a1e28
RD
28237}
28238
28239
0085ce49
RD
28240SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28241 PyObject *resultobj = 0;
28242 wxListEvent *arg1 = (wxListEvent *) 0 ;
28243 wxString *result = 0 ;
28244 void *argp1 = 0 ;
28245 int res1 = 0 ;
28246 PyObject *swig_obj[1] ;
28247
28248 if (!args) SWIG_fail;
28249 swig_obj[0] = args;
28250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28251 if (!SWIG_IsOK(res1)) {
28252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28253 }
28254 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28255 {
28256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 28257 {
0085ce49
RD
28258 wxString const &_result_ref = (arg1)->GetLabel();
28259 result = (wxString *) &_result_ref;
4f89f6a3 28260 }
0085ce49
RD
28261 wxPyEndAllowThreads(__tstate);
28262 if (PyErr_Occurred()) SWIG_fail;
28263 }
28264 {
28265#if wxUSE_UNICODE
28266 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28267#else
28268 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28269#endif
28270 }
28271 return resultobj;
28272fail:
28273 return NULL;
d14a1e28
RD
28274}
28275
28276
0085ce49
RD
28277SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28278 PyObject *resultobj = 0;
28279 wxListEvent *arg1 = (wxListEvent *) 0 ;
28280 wxString *result = 0 ;
28281 void *argp1 = 0 ;
28282 int res1 = 0 ;
28283 PyObject *swig_obj[1] ;
28284
28285 if (!args) SWIG_fail;
28286 swig_obj[0] = args;
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_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28290 }
28291 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28292 {
28293 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 28294 {
0085ce49
RD
28295 wxString const &_result_ref = (arg1)->GetText();
28296 result = (wxString *) &_result_ref;
d14a1e28 28297 }
0085ce49
RD
28298 wxPyEndAllowThreads(__tstate);
28299 if (PyErr_Occurred()) SWIG_fail;
28300 }
28301 {
28302#if wxUSE_UNICODE
28303 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28304#else
28305 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28306#endif
28307 }
28308 return resultobj;
28309fail:
28310 return NULL;
d14a1e28
RD
28311}
28312
28313
0085ce49
RD
28314SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28315 PyObject *resultobj = 0;
28316 wxListEvent *arg1 = (wxListEvent *) 0 ;
28317 int result;
28318 void *argp1 = 0 ;
28319 int res1 = 0 ;
28320 PyObject *swig_obj[1] ;
28321
28322 if (!args) SWIG_fail;
28323 swig_obj[0] = args;
28324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28325 if (!SWIG_IsOK(res1)) {
28326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28327 }
28328 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28329 {
28330 PyThreadState* __tstate = wxPyBeginAllowThreads();
28331 result = (int)(arg1)->GetImage();
28332 wxPyEndAllowThreads(__tstate);
28333 if (PyErr_Occurred()) SWIG_fail;
28334 }
28335 resultobj = SWIG_From_int(static_cast< int >(result));
28336 return resultobj;
28337fail:
28338 return NULL;
d14a1e28
RD
28339}
28340
28341
0085ce49
RD
28342SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28343 PyObject *resultobj = 0;
28344 wxListEvent *arg1 = (wxListEvent *) 0 ;
28345 long result;
28346 void *argp1 = 0 ;
28347 int res1 = 0 ;
28348 PyObject *swig_obj[1] ;
28349
28350 if (!args) SWIG_fail;
28351 swig_obj[0] = args;
28352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28353 if (!SWIG_IsOK(res1)) {
28354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28355 }
28356 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28357 {
28358 PyThreadState* __tstate = wxPyBeginAllowThreads();
28359 result = (long)(arg1)->GetData();
28360 wxPyEndAllowThreads(__tstate);
28361 if (PyErr_Occurred()) SWIG_fail;
28362 }
28363 resultobj = SWIG_From_long(static_cast< long >(result));
28364 return resultobj;
28365fail:
28366 return NULL;
d14a1e28
RD
28367}
28368
28369
0085ce49
RD
28370SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28371 PyObject *resultobj = 0;
28372 wxListEvent *arg1 = (wxListEvent *) 0 ;
28373 long result;
28374 void *argp1 = 0 ;
28375 int res1 = 0 ;
28376 PyObject *swig_obj[1] ;
28377
28378 if (!args) SWIG_fail;
28379 swig_obj[0] = args;
28380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28381 if (!SWIG_IsOK(res1)) {
28382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28383 }
28384 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28385 {
28386 PyThreadState* __tstate = wxPyBeginAllowThreads();
28387 result = (long)(arg1)->GetMask();
28388 wxPyEndAllowThreads(__tstate);
28389 if (PyErr_Occurred()) SWIG_fail;
28390 }
28391 resultobj = SWIG_From_long(static_cast< long >(result));
28392 return resultobj;
28393fail:
28394 return NULL;
d14a1e28
RD
28395}
28396
28397
0085ce49
RD
28398SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28399 PyObject *resultobj = 0;
28400 wxListEvent *arg1 = (wxListEvent *) 0 ;
28401 wxListItem *result = 0 ;
28402 void *argp1 = 0 ;
28403 int res1 = 0 ;
28404 PyObject *swig_obj[1] ;
28405
28406 if (!args) SWIG_fail;
28407 swig_obj[0] = args;
28408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28409 if (!SWIG_IsOK(res1)) {
28410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28411 }
28412 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28413 {
28414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22bfe96c 28415 {
0085ce49
RD
28416 wxListItem const &_result_ref = (arg1)->GetItem();
28417 result = (wxListItem *) &_result_ref;
22bfe96c 28418 }
0085ce49
RD
28419 wxPyEndAllowThreads(__tstate);
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28423 return resultobj;
28424fail:
28425 return NULL;
22bfe96c
RD
28426}
28427
28428
0085ce49
RD
28429SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28430 PyObject *resultobj = 0;
28431 wxListEvent *arg1 = (wxListEvent *) 0 ;
28432 long result;
28433 void *argp1 = 0 ;
28434 int res1 = 0 ;
28435 PyObject *swig_obj[1] ;
28436
28437 if (!args) SWIG_fail;
28438 swig_obj[0] = args;
28439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28440 if (!SWIG_IsOK(res1)) {
28441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28442 }
28443 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28444 {
28445 PyThreadState* __tstate = wxPyBeginAllowThreads();
28446 result = (long)(arg1)->GetCacheFrom();
28447 wxPyEndAllowThreads(__tstate);
28448 if (PyErr_Occurred()) SWIG_fail;
28449 }
28450 resultobj = SWIG_From_long(static_cast< long >(result));
28451 return resultobj;
28452fail:
28453 return NULL;
d14a1e28
RD
28454}
28455
28456
0085ce49
RD
28457SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28458 PyObject *resultobj = 0;
28459 wxListEvent *arg1 = (wxListEvent *) 0 ;
28460 long result;
28461 void *argp1 = 0 ;
28462 int res1 = 0 ;
28463 PyObject *swig_obj[1] ;
28464
28465 if (!args) SWIG_fail;
28466 swig_obj[0] = args;
28467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28468 if (!SWIG_IsOK(res1)) {
28469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28470 }
28471 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28472 {
28473 PyThreadState* __tstate = wxPyBeginAllowThreads();
28474 result = (long)(arg1)->GetCacheTo();
28475 wxPyEndAllowThreads(__tstate);
28476 if (PyErr_Occurred()) SWIG_fail;
28477 }
28478 resultobj = SWIG_From_long(static_cast< long >(result));
28479 return resultobj;
28480fail:
28481 return NULL;
d14a1e28
RD
28482}
28483
28484
0085ce49
RD
28485SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28486 PyObject *resultobj = 0;
28487 wxListEvent *arg1 = (wxListEvent *) 0 ;
28488 bool result;
28489 void *argp1 = 0 ;
28490 int res1 = 0 ;
28491 PyObject *swig_obj[1] ;
28492
28493 if (!args) SWIG_fail;
28494 swig_obj[0] = args;
28495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28496 if (!SWIG_IsOK(res1)) {
28497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28498 }
28499 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28500 {
28501 PyThreadState* __tstate = wxPyBeginAllowThreads();
28502 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28503 wxPyEndAllowThreads(__tstate);
28504 if (PyErr_Occurred()) SWIG_fail;
28505 }
28506 {
28507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28508 }
28509 return resultobj;
28510fail:
28511 return NULL;
28512}
28513
28514
28515SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28516 PyObject *resultobj = 0;
28517 wxListEvent *arg1 = (wxListEvent *) 0 ;
28518 bool arg2 ;
28519 void *argp1 = 0 ;
28520 int res1 = 0 ;
28521 bool val2 ;
28522 int ecode2 = 0 ;
28523 PyObject * obj0 = 0 ;
28524 PyObject * obj1 = 0 ;
28525 char * kwnames[] = {
28526 (char *) "self",(char *) "editCancelled", NULL
28527 };
28528
28529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28531 if (!SWIG_IsOK(res1)) {
28532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28533 }
28534 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28535 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28536 if (!SWIG_IsOK(ecode2)) {
28537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28538 }
28539 arg2 = static_cast< bool >(val2);
28540 {
28541 PyThreadState* __tstate = wxPyBeginAllowThreads();
28542 (arg1)->SetEditCanceled(arg2);
28543 wxPyEndAllowThreads(__tstate);
28544 if (PyErr_Occurred()) SWIG_fail;
28545 }
28546 resultobj = SWIG_Py_Void();
28547 return resultobj;
28548fail:
28549 return NULL;
28550}
28551
28552
28553SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28554 PyObject *obj;
28555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28556 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28557 return SWIG_Py_Void();
28558}
28559
28560SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28561 return SWIG_Python_InitShadowInstance(args);
28562}
28563
28564SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28565 PyObject *resultobj = 0;
28566 wxWindow *arg1 = (wxWindow *) 0 ;
28567 int arg2 = (int) -1 ;
28568 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28569 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28570 wxSize const &arg4_defvalue = wxDefaultSize ;
28571 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28572 long arg5 = (long) wxLC_ICON ;
28573 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28574 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28575 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28576 wxString *arg7 = (wxString *) &arg7_defvalue ;
28577 wxPyListCtrl *result = 0 ;
28578 void *argp1 = 0 ;
28579 int res1 = 0 ;
28580 int val2 ;
28581 int ecode2 = 0 ;
28582 wxPoint temp3 ;
28583 wxSize temp4 ;
28584 long val5 ;
28585 int ecode5 = 0 ;
28586 void *argp6 = 0 ;
28587 int res6 = 0 ;
28588 bool temp7 = false ;
28589 PyObject * obj0 = 0 ;
28590 PyObject * obj1 = 0 ;
28591 PyObject * obj2 = 0 ;
28592 PyObject * obj3 = 0 ;
28593 PyObject * obj4 = 0 ;
28594 PyObject * obj5 = 0 ;
28595 PyObject * obj6 = 0 ;
28596 char * kwnames[] = {
28597 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28598 };
28599
28600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28602 if (!SWIG_IsOK(res1)) {
28603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28604 }
28605 arg1 = reinterpret_cast< wxWindow * >(argp1);
28606 if (obj1) {
28607 ecode2 = SWIG_AsVal_int(obj1, &val2);
28608 if (!SWIG_IsOK(ecode2)) {
28609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28610 }
28611 arg2 = static_cast< int >(val2);
28612 }
28613 if (obj2) {
093d3ff1 28614 {
0085ce49
RD
28615 arg3 = &temp3;
28616 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 28617 }
0085ce49
RD
28618 }
28619 if (obj3) {
d14a1e28 28620 {
0085ce49
RD
28621 arg4 = &temp4;
28622 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 28623 }
0085ce49
RD
28624 }
28625 if (obj4) {
28626 ecode5 = SWIG_AsVal_long(obj4, &val5);
28627 if (!SWIG_IsOK(ecode5)) {
28628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28629 }
28630 arg5 = static_cast< long >(val5);
28631 }
28632 if (obj5) {
28633 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28634 if (!SWIG_IsOK(res6)) {
28635 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 28636 }
0085ce49
RD
28637 if (!argp6) {
28638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28639 }
28640 arg6 = reinterpret_cast< wxValidator * >(argp6);
28641 }
28642 if (obj6) {
093d3ff1 28643 {
0085ce49
RD
28644 arg7 = wxString_in_helper(obj6);
28645 if (arg7 == NULL) SWIG_fail;
28646 temp7 = true;
093d3ff1 28647 }
0085ce49
RD
28648 }
28649 {
28650 if (!wxPyCheckForApp()) SWIG_fail;
28651 PyThreadState* __tstate = wxPyBeginAllowThreads();
28652 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28653 wxPyEndAllowThreads(__tstate);
28654 if (PyErr_Occurred()) SWIG_fail;
28655 }
28656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28657 {
28658 if (temp7)
28659 delete arg7;
28660 }
28661 return resultobj;
28662fail:
28663 {
28664 if (temp7)
28665 delete arg7;
28666 }
28667 return NULL;
d14a1e28
RD
28668}
28669
28670
0085ce49
RD
28671SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28672 PyObject *resultobj = 0;
28673 wxPyListCtrl *result = 0 ;
28674
28675 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28676 {
28677 if (!wxPyCheckForApp()) SWIG_fail;
28678 PyThreadState* __tstate = wxPyBeginAllowThreads();
28679 result = (wxPyListCtrl *)new wxPyListCtrl();
28680 wxPyEndAllowThreads(__tstate);
28681 if (PyErr_Occurred()) SWIG_fail;
28682 }
28683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28684 return resultobj;
28685fail:
28686 return NULL;
28687}
28688
28689
28690SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28691 PyObject *resultobj = 0;
28692 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28693 wxWindow *arg2 = (wxWindow *) 0 ;
28694 int arg3 = (int) -1 ;
28695 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28696 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28697 wxSize const &arg5_defvalue = wxDefaultSize ;
28698 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28699 long arg6 = (long) wxLC_ICON ;
28700 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28701 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28702 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28703 wxString *arg8 = (wxString *) &arg8_defvalue ;
28704 bool result;
28705 void *argp1 = 0 ;
28706 int res1 = 0 ;
28707 void *argp2 = 0 ;
28708 int res2 = 0 ;
28709 int val3 ;
28710 int ecode3 = 0 ;
28711 wxPoint temp4 ;
28712 wxSize temp5 ;
28713 long val6 ;
28714 int ecode6 = 0 ;
28715 void *argp7 = 0 ;
28716 int res7 = 0 ;
28717 bool temp8 = false ;
28718 PyObject * obj0 = 0 ;
28719 PyObject * obj1 = 0 ;
28720 PyObject * obj2 = 0 ;
28721 PyObject * obj3 = 0 ;
28722 PyObject * obj4 = 0 ;
28723 PyObject * obj5 = 0 ;
28724 PyObject * obj6 = 0 ;
28725 PyObject * obj7 = 0 ;
28726 char * kwnames[] = {
28727 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28728 };
28729
28730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28732 if (!SWIG_IsOK(res1)) {
28733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28734 }
28735 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28736 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28737 if (!SWIG_IsOK(res2)) {
28738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28739 }
28740 arg2 = reinterpret_cast< wxWindow * >(argp2);
28741 if (obj2) {
28742 ecode3 = SWIG_AsVal_int(obj2, &val3);
28743 if (!SWIG_IsOK(ecode3)) {
28744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28745 }
28746 arg3 = static_cast< int >(val3);
28747 }
28748 if (obj3) {
093d3ff1 28749 {
0085ce49
RD
28750 arg4 = &temp4;
28751 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 28752 }
0085ce49
RD
28753 }
28754 if (obj4) {
d14a1e28 28755 {
0085ce49
RD
28756 arg5 = &temp5;
28757 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 28758 }
0085ce49
RD
28759 }
28760 if (obj5) {
28761 ecode6 = SWIG_AsVal_long(obj5, &val6);
28762 if (!SWIG_IsOK(ecode6)) {
28763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28764 }
28765 arg6 = static_cast< long >(val6);
28766 }
28767 if (obj6) {
28768 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28769 if (!SWIG_IsOK(res7)) {
28770 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28771 }
0085ce49
RD
28772 if (!argp7) {
28773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 28774 }
0085ce49
RD
28775 arg7 = reinterpret_cast< wxValidator * >(argp7);
28776 }
28777 if (obj7) {
d14a1e28 28778 {
0085ce49
RD
28779 arg8 = wxString_in_helper(obj7);
28780 if (arg8 == NULL) SWIG_fail;
28781 temp8 = true;
d14a1e28 28782 }
0085ce49
RD
28783 }
28784 {
28785 PyThreadState* __tstate = wxPyBeginAllowThreads();
28786 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28787 wxPyEndAllowThreads(__tstate);
28788 if (PyErr_Occurred()) SWIG_fail;
28789 }
28790 {
28791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28792 }
28793 {
28794 if (temp8)
28795 delete arg8;
28796 }
28797 return resultobj;
28798fail:
28799 {
28800 if (temp8)
28801 delete arg8;
28802 }
28803 return NULL;
28804}
28805
28806
28807SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28808 PyObject *resultobj = 0;
28809 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28810 PyObject *arg2 = (PyObject *) 0 ;
28811 PyObject *arg3 = (PyObject *) 0 ;
28812 void *argp1 = 0 ;
28813 int res1 = 0 ;
28814 PyObject * obj0 = 0 ;
28815 PyObject * obj1 = 0 ;
28816 PyObject * obj2 = 0 ;
28817 char * kwnames[] = {
28818 (char *) "self",(char *) "self",(char *) "_class", NULL
28819 };
28820
28821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28823 if (!SWIG_IsOK(res1)) {
28824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28825 }
28826 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28827 arg2 = obj1;
28828 arg3 = obj2;
28829 {
28830 PyThreadState* __tstate = wxPyBeginAllowThreads();
28831 (arg1)->_setCallbackInfo(arg2,arg3);
28832 wxPyEndAllowThreads(__tstate);
28833 if (PyErr_Occurred()) SWIG_fail;
28834 }
28835 resultobj = SWIG_Py_Void();
28836 return resultobj;
28837fail:
28838 return NULL;
28839}
28840
28841
28842SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28843 PyObject *resultobj = 0;
28844 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28845 int arg2 ;
28846 wxListItem *result = 0 ;
28847 void *argp1 = 0 ;
28848 int res1 = 0 ;
28849 int val2 ;
28850 int ecode2 = 0 ;
28851 PyObject * obj0 = 0 ;
28852 PyObject * obj1 = 0 ;
28853 char * kwnames[] = {
28854 (char *) "self",(char *) "col", NULL
28855 };
28856
28857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28859 if (!SWIG_IsOK(res1)) {
28860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28861 }
28862 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28863 ecode2 = SWIG_AsVal_int(obj1, &val2);
28864 if (!SWIG_IsOK(ecode2)) {
28865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28866 }
28867 arg2 = static_cast< int >(val2);
28868 {
28869 PyThreadState* __tstate = wxPyBeginAllowThreads();
28870 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28871 wxPyEndAllowThreads(__tstate);
28872 if (PyErr_Occurred()) SWIG_fail;
28873 }
28874 {
28875 resultobj = wxPyMake_wxObject(result, (bool)0);
28876 }
28877 return resultobj;
28878fail:
28879 return NULL;
28880}
28881
28882
28883SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28884 PyObject *resultobj = 0;
28885 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28886 int arg2 ;
28887 wxListItem *arg3 = 0 ;
28888 bool result;
28889 void *argp1 = 0 ;
28890 int res1 = 0 ;
28891 int val2 ;
28892 int ecode2 = 0 ;
28893 void *argp3 = 0 ;
28894 int res3 = 0 ;
28895 PyObject * obj0 = 0 ;
28896 PyObject * obj1 = 0 ;
28897 PyObject * obj2 = 0 ;
28898 char * kwnames[] = {
28899 (char *) "self",(char *) "col",(char *) "item", NULL
28900 };
28901
28902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28904 if (!SWIG_IsOK(res1)) {
28905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28906 }
28907 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28908 ecode2 = SWIG_AsVal_int(obj1, &val2);
28909 if (!SWIG_IsOK(ecode2)) {
28910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28911 }
28912 arg2 = static_cast< int >(val2);
28913 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28914 if (!SWIG_IsOK(res3)) {
28915 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28916 }
28917 if (!argp3) {
28918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28919 }
28920 arg3 = reinterpret_cast< wxListItem * >(argp3);
28921 {
28922 PyThreadState* __tstate = wxPyBeginAllowThreads();
28923 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28924 wxPyEndAllowThreads(__tstate);
28925 if (PyErr_Occurred()) SWIG_fail;
28926 }
28927 {
28928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28929 }
28930 return resultobj;
28931fail:
28932 return NULL;
28933}
28934
28935
28936SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28937 PyObject *resultobj = 0;
28938 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28939 int arg2 ;
28940 int result;
28941 void *argp1 = 0 ;
28942 int res1 = 0 ;
28943 int val2 ;
28944 int ecode2 = 0 ;
28945 PyObject * obj0 = 0 ;
28946 PyObject * obj1 = 0 ;
28947 char * kwnames[] = {
28948 (char *) "self",(char *) "col", NULL
28949 };
28950
28951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28953 if (!SWIG_IsOK(res1)) {
28954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28955 }
28956 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28957 ecode2 = SWIG_AsVal_int(obj1, &val2);
28958 if (!SWIG_IsOK(ecode2)) {
28959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28960 }
28961 arg2 = static_cast< int >(val2);
28962 {
28963 PyThreadState* __tstate = wxPyBeginAllowThreads();
28964 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28965 wxPyEndAllowThreads(__tstate);
28966 if (PyErr_Occurred()) SWIG_fail;
28967 }
28968 resultobj = SWIG_From_int(static_cast< int >(result));
28969 return resultobj;
28970fail:
28971 return NULL;
28972}
28973
28974
28975SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28976 PyObject *resultobj = 0;
28977 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28978 int arg2 ;
28979 int arg3 ;
28980 bool result;
28981 void *argp1 = 0 ;
28982 int res1 = 0 ;
28983 int val2 ;
28984 int ecode2 = 0 ;
28985 int val3 ;
28986 int ecode3 = 0 ;
28987 PyObject * obj0 = 0 ;
28988 PyObject * obj1 = 0 ;
28989 PyObject * obj2 = 0 ;
28990 char * kwnames[] = {
28991 (char *) "self",(char *) "col",(char *) "width", NULL
28992 };
28993
28994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28996 if (!SWIG_IsOK(res1)) {
28997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28998 }
28999 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29000 ecode2 = SWIG_AsVal_int(obj1, &val2);
29001 if (!SWIG_IsOK(ecode2)) {
29002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29003 }
29004 arg2 = static_cast< int >(val2);
29005 ecode3 = SWIG_AsVal_int(obj2, &val3);
29006 if (!SWIG_IsOK(ecode3)) {
29007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29008 }
29009 arg3 = static_cast< int >(val3);
29010 {
29011 PyThreadState* __tstate = wxPyBeginAllowThreads();
29012 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29013 wxPyEndAllowThreads(__tstate);
29014 if (PyErr_Occurred()) SWIG_fail;
29015 }
29016 {
29017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29018 }
29019 return resultobj;
29020fail:
29021 return NULL;
d14a1e28
RD
29022}
29023
29024
0085ce49
RD
29025SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29026 PyObject *resultobj = 0;
29027 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29028 int result;
29029 void *argp1 = 0 ;
29030 int res1 = 0 ;
29031 PyObject *swig_obj[1] ;
29032
29033 if (!args) SWIG_fail;
29034 swig_obj[0] = args;
29035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29036 if (!SWIG_IsOK(res1)) {
29037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29038 }
29039 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29040 {
29041 PyThreadState* __tstate = wxPyBeginAllowThreads();
29042 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29043 wxPyEndAllowThreads(__tstate);
29044 if (PyErr_Occurred()) SWIG_fail;
29045 }
29046 resultobj = SWIG_From_int(static_cast< int >(result));
29047 return resultobj;
29048fail:
29049 return NULL;
d14a1e28
RD
29050}
29051
29052
0085ce49
RD
29053SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29054 PyObject *resultobj = 0;
29055 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29056 wxRect result;
29057 void *argp1 = 0 ;
29058 int res1 = 0 ;
29059 PyObject *swig_obj[1] ;
29060
29061 if (!args) SWIG_fail;
29062 swig_obj[0] = args;
29063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29064 if (!SWIG_IsOK(res1)) {
29065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29066 }
29067 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29068 {
29069 PyThreadState* __tstate = wxPyBeginAllowThreads();
29070 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29071 wxPyEndAllowThreads(__tstate);
29072 if (PyErr_Occurred()) SWIG_fail;
29073 }
29074 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29075 return resultobj;
29076fail:
29077 return NULL;
d14a1e28
RD
29078}
29079
29080
0085ce49
RD
29081SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29082 PyObject *resultobj = 0;
29083 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29084 wxTextCtrl *result = 0 ;
29085 void *argp1 = 0 ;
29086 int res1 = 0 ;
29087 PyObject *swig_obj[1] ;
29088
29089 if (!args) SWIG_fail;
29090 swig_obj[0] = args;
29091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29092 if (!SWIG_IsOK(res1)) {
29093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29094 }
29095 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29096 {
29097 PyThreadState* __tstate = wxPyBeginAllowThreads();
29098 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29099 wxPyEndAllowThreads(__tstate);
29100 if (PyErr_Occurred()) SWIG_fail;
29101 }
29102 {
29103 resultobj = wxPyMake_wxObject(result, 0);
29104 }
29105 return resultobj;
29106fail:
29107 return NULL;
29108}
29109
29110
29111SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29112 PyObject *resultobj = 0;
29113 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29114 long arg2 ;
29115 int arg3 = (int) 0 ;
29116 wxListItem *result = 0 ;
29117 void *argp1 = 0 ;
29118 int res1 = 0 ;
29119 long val2 ;
29120 int ecode2 = 0 ;
29121 int val3 ;
29122 int ecode3 = 0 ;
29123 PyObject * obj0 = 0 ;
29124 PyObject * obj1 = 0 ;
29125 PyObject * obj2 = 0 ;
29126 char * kwnames[] = {
29127 (char *) "self",(char *) "itemId",(char *) "col", NULL
29128 };
29129
29130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29132 if (!SWIG_IsOK(res1)) {
29133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29134 }
29135 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29136 ecode2 = SWIG_AsVal_long(obj1, &val2);
29137 if (!SWIG_IsOK(ecode2)) {
29138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29139 }
29140 arg2 = static_cast< long >(val2);
29141 if (obj2) {
29142 ecode3 = SWIG_AsVal_int(obj2, &val3);
29143 if (!SWIG_IsOK(ecode3)) {
29144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29145 }
29146 arg3 = static_cast< int >(val3);
29147 }
29148 {
29149 PyThreadState* __tstate = wxPyBeginAllowThreads();
29150 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29151 wxPyEndAllowThreads(__tstate);
29152 if (PyErr_Occurred()) SWIG_fail;
29153 }
29154 {
29155 resultobj = wxPyMake_wxObject(result, (bool)0);
29156 }
29157 return resultobj;
29158fail:
29159 return NULL;
29160}
29161
29162
29163SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29164 PyObject *resultobj = 0;
29165 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29166 wxListItem *arg2 = 0 ;
29167 bool result;
29168 void *argp1 = 0 ;
29169 int res1 = 0 ;
29170 void *argp2 = 0 ;
29171 int res2 = 0 ;
29172 PyObject * obj0 = 0 ;
29173 PyObject * obj1 = 0 ;
29174 char * kwnames[] = {
29175 (char *) "self",(char *) "info", NULL
29176 };
29177
29178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29180 if (!SWIG_IsOK(res1)) {
29181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29182 }
29183 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29185 if (!SWIG_IsOK(res2)) {
29186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29187 }
29188 if (!argp2) {
29189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29190 }
29191 arg2 = reinterpret_cast< wxListItem * >(argp2);
29192 {
29193 PyThreadState* __tstate = wxPyBeginAllowThreads();
29194 result = (bool)(arg1)->SetItem(*arg2);
29195 wxPyEndAllowThreads(__tstate);
29196 if (PyErr_Occurred()) SWIG_fail;
29197 }
29198 {
29199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29200 }
29201 return resultobj;
29202fail:
29203 return NULL;
29204}
29205
29206
29207SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29208 PyObject *resultobj = 0;
29209 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29210 long arg2 ;
29211 int arg3 ;
29212 wxString *arg4 = 0 ;
29213 int arg5 = (int) -1 ;
29214 long result;
29215 void *argp1 = 0 ;
29216 int res1 = 0 ;
29217 long val2 ;
29218 int ecode2 = 0 ;
29219 int val3 ;
29220 int ecode3 = 0 ;
29221 bool temp4 = false ;
29222 int val5 ;
29223 int ecode5 = 0 ;
29224 PyObject * obj0 = 0 ;
29225 PyObject * obj1 = 0 ;
29226 PyObject * obj2 = 0 ;
29227 PyObject * obj3 = 0 ;
29228 PyObject * obj4 = 0 ;
29229 char * kwnames[] = {
29230 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29231 };
29232
29233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29235 if (!SWIG_IsOK(res1)) {
29236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29237 }
29238 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29239 ecode2 = SWIG_AsVal_long(obj1, &val2);
29240 if (!SWIG_IsOK(ecode2)) {
29241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29242 }
29243 arg2 = static_cast< long >(val2);
29244 ecode3 = SWIG_AsVal_int(obj2, &val3);
29245 if (!SWIG_IsOK(ecode3)) {
29246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29247 }
29248 arg3 = static_cast< int >(val3);
29249 {
29250 arg4 = wxString_in_helper(obj3);
29251 if (arg4 == NULL) SWIG_fail;
29252 temp4 = true;
29253 }
29254 if (obj4) {
29255 ecode5 = SWIG_AsVal_int(obj4, &val5);
29256 if (!SWIG_IsOK(ecode5)) {
29257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29258 }
29259 arg5 = static_cast< int >(val5);
29260 }
29261 {
29262 PyThreadState* __tstate = wxPyBeginAllowThreads();
29263 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29264 wxPyEndAllowThreads(__tstate);
29265 if (PyErr_Occurred()) SWIG_fail;
29266 }
29267 resultobj = SWIG_From_long(static_cast< long >(result));
29268 {
29269 if (temp4)
29270 delete arg4;
29271 }
29272 return resultobj;
29273fail:
29274 {
29275 if (temp4)
29276 delete arg4;
29277 }
29278 return NULL;
29279}
29280
29281
29282SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29283 PyObject *resultobj = 0;
29284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29285 long arg2 ;
29286 long arg3 ;
29287 int result;
29288 void *argp1 = 0 ;
29289 int res1 = 0 ;
29290 long val2 ;
29291 int ecode2 = 0 ;
29292 long val3 ;
29293 int ecode3 = 0 ;
29294 PyObject * obj0 = 0 ;
29295 PyObject * obj1 = 0 ;
29296 PyObject * obj2 = 0 ;
29297 char * kwnames[] = {
29298 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29299 };
29300
29301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29303 if (!SWIG_IsOK(res1)) {
29304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29305 }
29306 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29307 ecode2 = SWIG_AsVal_long(obj1, &val2);
29308 if (!SWIG_IsOK(ecode2)) {
29309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29310 }
29311 arg2 = static_cast< long >(val2);
29312 ecode3 = SWIG_AsVal_long(obj2, &val3);
29313 if (!SWIG_IsOK(ecode3)) {
29314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29315 }
29316 arg3 = static_cast< long >(val3);
29317 {
29318 PyThreadState* __tstate = wxPyBeginAllowThreads();
29319 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29320 wxPyEndAllowThreads(__tstate);
29321 if (PyErr_Occurred()) SWIG_fail;
29322 }
29323 resultobj = SWIG_From_int(static_cast< int >(result));
29324 return resultobj;
29325fail:
29326 return NULL;
29327}
29328
29329
29330SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29331 PyObject *resultobj = 0;
29332 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29333 long arg2 ;
29334 long arg3 ;
29335 long arg4 ;
29336 bool result;
29337 void *argp1 = 0 ;
29338 int res1 = 0 ;
29339 long val2 ;
29340 int ecode2 = 0 ;
29341 long val3 ;
29342 int ecode3 = 0 ;
29343 long val4 ;
29344 int ecode4 = 0 ;
29345 PyObject * obj0 = 0 ;
29346 PyObject * obj1 = 0 ;
29347 PyObject * obj2 = 0 ;
29348 PyObject * obj3 = 0 ;
29349 char * kwnames[] = {
29350 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29351 };
29352
29353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29355 if (!SWIG_IsOK(res1)) {
29356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29357 }
29358 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29359 ecode2 = SWIG_AsVal_long(obj1, &val2);
29360 if (!SWIG_IsOK(ecode2)) {
29361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29362 }
29363 arg2 = static_cast< long >(val2);
29364 ecode3 = SWIG_AsVal_long(obj2, &val3);
29365 if (!SWIG_IsOK(ecode3)) {
29366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29367 }
29368 arg3 = static_cast< long >(val3);
29369 ecode4 = SWIG_AsVal_long(obj3, &val4);
29370 if (!SWIG_IsOK(ecode4)) {
29371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29372 }
29373 arg4 = static_cast< long >(val4);
29374 {
29375 PyThreadState* __tstate = wxPyBeginAllowThreads();
29376 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29377 wxPyEndAllowThreads(__tstate);
29378 if (PyErr_Occurred()) SWIG_fail;
29379 }
29380 {
29381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29382 }
29383 return resultobj;
29384fail:
29385 return NULL;
29386}
29387
29388
29389SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29390 PyObject *resultobj = 0;
29391 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29392 long arg2 ;
29393 int arg3 ;
29394 int arg4 = (int) -1 ;
29395 bool result;
29396 void *argp1 = 0 ;
29397 int res1 = 0 ;
29398 long val2 ;
29399 int ecode2 = 0 ;
29400 int val3 ;
29401 int ecode3 = 0 ;
29402 int val4 ;
29403 int ecode4 = 0 ;
29404 PyObject * obj0 = 0 ;
29405 PyObject * obj1 = 0 ;
29406 PyObject * obj2 = 0 ;
29407 PyObject * obj3 = 0 ;
29408 char * kwnames[] = {
29409 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29410 };
29411
29412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29414 if (!SWIG_IsOK(res1)) {
29415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29416 }
29417 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29418 ecode2 = SWIG_AsVal_long(obj1, &val2);
29419 if (!SWIG_IsOK(ecode2)) {
29420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29421 }
29422 arg2 = static_cast< long >(val2);
29423 ecode3 = SWIG_AsVal_int(obj2, &val3);
29424 if (!SWIG_IsOK(ecode3)) {
29425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29426 }
29427 arg3 = static_cast< int >(val3);
29428 if (obj3) {
29429 ecode4 = SWIG_AsVal_int(obj3, &val4);
29430 if (!SWIG_IsOK(ecode4)) {
29431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29432 }
29433 arg4 = static_cast< int >(val4);
29434 }
29435 {
29436 PyThreadState* __tstate = wxPyBeginAllowThreads();
29437 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29438 wxPyEndAllowThreads(__tstate);
29439 if (PyErr_Occurred()) SWIG_fail;
29440 }
29441 {
29442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29443 }
29444 return resultobj;
29445fail:
29446 return NULL;
29447}
29448
29449
29450SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29451 PyObject *resultobj = 0;
29452 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29453 long arg2 ;
29454 long arg3 ;
29455 int arg4 ;
29456 bool result;
29457 void *argp1 = 0 ;
29458 int res1 = 0 ;
29459 long val2 ;
29460 int ecode2 = 0 ;
29461 long val3 ;
29462 int ecode3 = 0 ;
29463 int val4 ;
29464 int ecode4 = 0 ;
29465 PyObject * obj0 = 0 ;
29466 PyObject * obj1 = 0 ;
29467 PyObject * obj2 = 0 ;
29468 PyObject * obj3 = 0 ;
29469 char * kwnames[] = {
29470 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29471 };
29472
29473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29475 if (!SWIG_IsOK(res1)) {
29476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29477 }
29478 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29479 ecode2 = SWIG_AsVal_long(obj1, &val2);
29480 if (!SWIG_IsOK(ecode2)) {
29481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29482 }
29483 arg2 = static_cast< long >(val2);
29484 ecode3 = SWIG_AsVal_long(obj2, &val3);
29485 if (!SWIG_IsOK(ecode3)) {
29486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29487 }
29488 arg3 = static_cast< long >(val3);
29489 ecode4 = SWIG_AsVal_int(obj3, &val4);
29490 if (!SWIG_IsOK(ecode4)) {
29491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29492 }
29493 arg4 = static_cast< int >(val4);
29494 {
29495 PyThreadState* __tstate = wxPyBeginAllowThreads();
29496 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29497 wxPyEndAllowThreads(__tstate);
29498 if (PyErr_Occurred()) SWIG_fail;
29499 }
29500 {
29501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29502 }
29503 return resultobj;
29504fail:
29505 return NULL;
29506}
29507
29508
29509SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29510 PyObject *resultobj = 0;
29511 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29512 long arg2 ;
29513 wxString result;
29514 void *argp1 = 0 ;
29515 int res1 = 0 ;
29516 long val2 ;
29517 int ecode2 = 0 ;
29518 PyObject * obj0 = 0 ;
29519 PyObject * obj1 = 0 ;
29520 char * kwnames[] = {
29521 (char *) "self",(char *) "item", NULL
29522 };
29523
29524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29526 if (!SWIG_IsOK(res1)) {
29527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29528 }
29529 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29530 ecode2 = SWIG_AsVal_long(obj1, &val2);
29531 if (!SWIG_IsOK(ecode2)) {
29532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29533 }
29534 arg2 = static_cast< long >(val2);
29535 {
29536 PyThreadState* __tstate = wxPyBeginAllowThreads();
29537 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29538 wxPyEndAllowThreads(__tstate);
29539 if (PyErr_Occurred()) SWIG_fail;
29540 }
29541 {
29542#if wxUSE_UNICODE
29543 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29544#else
29545 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29546#endif
29547 }
29548 return resultobj;
29549fail:
29550 return NULL;
29551}
29552
29553
29554SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29555 PyObject *resultobj = 0;
29556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29557 long arg2 ;
29558 wxString *arg3 = 0 ;
29559 void *argp1 = 0 ;
29560 int res1 = 0 ;
29561 long val2 ;
29562 int ecode2 = 0 ;
29563 bool temp3 = false ;
29564 PyObject * obj0 = 0 ;
29565 PyObject * obj1 = 0 ;
29566 PyObject * obj2 = 0 ;
29567 char * kwnames[] = {
29568 (char *) "self",(char *) "item",(char *) "str", NULL
29569 };
29570
29571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29573 if (!SWIG_IsOK(res1)) {
29574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29575 }
29576 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29577 ecode2 = SWIG_AsVal_long(obj1, &val2);
29578 if (!SWIG_IsOK(ecode2)) {
29579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29580 }
29581 arg2 = static_cast< long >(val2);
29582 {
29583 arg3 = wxString_in_helper(obj2);
29584 if (arg3 == NULL) SWIG_fail;
29585 temp3 = true;
29586 }
29587 {
29588 PyThreadState* __tstate = wxPyBeginAllowThreads();
29589 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29590 wxPyEndAllowThreads(__tstate);
29591 if (PyErr_Occurred()) SWIG_fail;
29592 }
29593 resultobj = SWIG_Py_Void();
29594 {
29595 if (temp3)
29596 delete arg3;
29597 }
29598 return resultobj;
29599fail:
29600 {
29601 if (temp3)
29602 delete arg3;
29603 }
29604 return NULL;
29605}
29606
29607
29608SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29609 PyObject *resultobj = 0;
29610 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29611 long arg2 ;
29612 long result;
29613 void *argp1 = 0 ;
29614 int res1 = 0 ;
29615 long val2 ;
29616 int ecode2 = 0 ;
29617 PyObject * obj0 = 0 ;
29618 PyObject * obj1 = 0 ;
29619 char * kwnames[] = {
29620 (char *) "self",(char *) "item", NULL
29621 };
29622
29623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29625 if (!SWIG_IsOK(res1)) {
29626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29627 }
29628 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29629 ecode2 = SWIG_AsVal_long(obj1, &val2);
29630 if (!SWIG_IsOK(ecode2)) {
29631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29632 }
29633 arg2 = static_cast< long >(val2);
29634 {
29635 PyThreadState* __tstate = wxPyBeginAllowThreads();
29636 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29637 wxPyEndAllowThreads(__tstate);
29638 if (PyErr_Occurred()) SWIG_fail;
29639 }
29640 resultobj = SWIG_From_long(static_cast< long >(result));
29641 return resultobj;
29642fail:
29643 return NULL;
29644}
29645
29646
29647SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29648 PyObject *resultobj = 0;
29649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29650 long arg2 ;
29651 long arg3 ;
29652 bool result;
29653 void *argp1 = 0 ;
29654 int res1 = 0 ;
29655 long val2 ;
29656 int ecode2 = 0 ;
29657 long val3 ;
29658 int ecode3 = 0 ;
29659 PyObject * obj0 = 0 ;
29660 PyObject * obj1 = 0 ;
29661 PyObject * obj2 = 0 ;
29662 char * kwnames[] = {
29663 (char *) "self",(char *) "item",(char *) "data", NULL
29664 };
29665
29666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29668 if (!SWIG_IsOK(res1)) {
29669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29670 }
29671 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29672 ecode2 = SWIG_AsVal_long(obj1, &val2);
29673 if (!SWIG_IsOK(ecode2)) {
29674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29675 }
29676 arg2 = static_cast< long >(val2);
29677 ecode3 = SWIG_AsVal_long(obj2, &val3);
29678 if (!SWIG_IsOK(ecode3)) {
29679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29680 }
29681 arg3 = static_cast< long >(val3);
29682 {
29683 PyThreadState* __tstate = wxPyBeginAllowThreads();
29684 result = (bool)(arg1)->SetItemData(arg2,arg3);
29685 wxPyEndAllowThreads(__tstate);
29686 if (PyErr_Occurred()) SWIG_fail;
29687 }
29688 {
29689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29690 }
29691 return resultobj;
29692fail:
29693 return NULL;
29694}
29695
29696
29697SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29698 PyObject *resultobj = 0;
29699 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29700 long arg2 ;
29701 wxPoint result;
29702 void *argp1 = 0 ;
29703 int res1 = 0 ;
29704 long val2 ;
29705 int ecode2 = 0 ;
29706 PyObject * obj0 = 0 ;
29707 PyObject * obj1 = 0 ;
29708 char * kwnames[] = {
29709 (char *) "self",(char *) "item", NULL
29710 };
29711
29712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29714 if (!SWIG_IsOK(res1)) {
29715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29716 }
29717 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29718 ecode2 = SWIG_AsVal_long(obj1, &val2);
29719 if (!SWIG_IsOK(ecode2)) {
29720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29721 }
29722 arg2 = static_cast< long >(val2);
29723 {
29724 PyThreadState* __tstate = wxPyBeginAllowThreads();
29725 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29726 wxPyEndAllowThreads(__tstate);
29727 if (PyErr_Occurred()) SWIG_fail;
29728 }
29729 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29730 return resultobj;
29731fail:
29732 return NULL;
29733}
29734
29735
29736SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29737 PyObject *resultobj = 0;
29738 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29739 long arg2 ;
29740 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29741 wxRect result;
29742 void *argp1 = 0 ;
29743 int res1 = 0 ;
29744 long val2 ;
29745 int ecode2 = 0 ;
29746 int val3 ;
29747 int ecode3 = 0 ;
29748 PyObject * obj0 = 0 ;
29749 PyObject * obj1 = 0 ;
29750 PyObject * obj2 = 0 ;
29751 char * kwnames[] = {
29752 (char *) "self",(char *) "item",(char *) "code", NULL
29753 };
29754
29755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29757 if (!SWIG_IsOK(res1)) {
29758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29759 }
29760 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29761 ecode2 = SWIG_AsVal_long(obj1, &val2);
29762 if (!SWIG_IsOK(ecode2)) {
29763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29764 }
29765 arg2 = static_cast< long >(val2);
29766 if (obj2) {
29767 ecode3 = SWIG_AsVal_int(obj2, &val3);
29768 if (!SWIG_IsOK(ecode3)) {
29769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29770 }
29771 arg3 = static_cast< int >(val3);
29772 }
29773 {
29774 PyThreadState* __tstate = wxPyBeginAllowThreads();
29775 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29776 wxPyEndAllowThreads(__tstate);
29777 if (PyErr_Occurred()) SWIG_fail;
29778 }
29779 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29780 return resultobj;
29781fail:
29782 return NULL;
29783}
29784
29785
29786SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29787 PyObject *resultobj = 0;
29788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29789 long arg2 ;
29790 wxPoint *arg3 = 0 ;
29791 bool result;
29792 void *argp1 = 0 ;
29793 int res1 = 0 ;
29794 long val2 ;
29795 int ecode2 = 0 ;
29796 wxPoint temp3 ;
29797 PyObject * obj0 = 0 ;
29798 PyObject * obj1 = 0 ;
29799 PyObject * obj2 = 0 ;
29800 char * kwnames[] = {
29801 (char *) "self",(char *) "item",(char *) "pos", NULL
29802 };
29803
29804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29806 if (!SWIG_IsOK(res1)) {
29807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29808 }
29809 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29810 ecode2 = SWIG_AsVal_long(obj1, &val2);
29811 if (!SWIG_IsOK(ecode2)) {
29812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29813 }
29814 arg2 = static_cast< long >(val2);
29815 {
29816 arg3 = &temp3;
29817 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29818 }
29819 {
29820 PyThreadState* __tstate = wxPyBeginAllowThreads();
29821 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29822 wxPyEndAllowThreads(__tstate);
29823 if (PyErr_Occurred()) SWIG_fail;
29824 }
29825 {
29826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29827 }
29828 return resultobj;
29829fail:
29830 return NULL;
d14a1e28
RD
29831}
29832
29833
0085ce49
RD
29834SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29835 PyObject *resultobj = 0;
29836 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29837 int result;
29838 void *argp1 = 0 ;
29839 int res1 = 0 ;
29840 PyObject *swig_obj[1] ;
29841
29842 if (!args) SWIG_fail;
29843 swig_obj[0] = args;
29844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29845 if (!SWIG_IsOK(res1)) {
29846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29847 }
29848 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29849 {
29850 PyThreadState* __tstate = wxPyBeginAllowThreads();
29851 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29852 wxPyEndAllowThreads(__tstate);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 }
29855 resultobj = SWIG_From_int(static_cast< int >(result));
29856 return resultobj;
29857fail:
29858 return NULL;
d14a1e28
RD
29859}
29860
29861
0085ce49
RD
29862SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29863 PyObject *resultobj = 0;
29864 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29865 int result;
29866 void *argp1 = 0 ;
29867 int res1 = 0 ;
29868 PyObject *swig_obj[1] ;
29869
29870 if (!args) SWIG_fail;
29871 swig_obj[0] = args;
29872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29873 if (!SWIG_IsOK(res1)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29875 }
29876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29877 {
29878 PyThreadState* __tstate = wxPyBeginAllowThreads();
29879 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29880 wxPyEndAllowThreads(__tstate);
29881 if (PyErr_Occurred()) SWIG_fail;
29882 }
29883 resultobj = SWIG_From_int(static_cast< int >(result));
29884 return resultobj;
29885fail:
29886 return NULL;
d14a1e28
RD
29887}
29888
29889
0085ce49
RD
29890SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29891 PyObject *resultobj = 0;
29892 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29893 wxSize result;
29894 void *argp1 = 0 ;
29895 int res1 = 0 ;
29896 PyObject *swig_obj[1] ;
29897
29898 if (!args) SWIG_fail;
29899 swig_obj[0] = args;
29900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29901 if (!SWIG_IsOK(res1)) {
29902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29903 }
29904 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29905 {
29906 PyThreadState* __tstate = wxPyBeginAllowThreads();
29907 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29908 wxPyEndAllowThreads(__tstate);
29909 if (PyErr_Occurred()) SWIG_fail;
29910 }
29911 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29912 return resultobj;
29913fail:
29914 return NULL;
29915}
29916
29917
29918SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29919 PyObject *resultobj = 0;
29920 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29921 int arg2 ;
29922 bool arg3 = (bool) false ;
29923 void *argp1 = 0 ;
29924 int res1 = 0 ;
29925 int val2 ;
29926 int ecode2 = 0 ;
29927 bool val3 ;
29928 int ecode3 = 0 ;
29929 PyObject * obj0 = 0 ;
29930 PyObject * obj1 = 0 ;
29931 PyObject * obj2 = 0 ;
29932 char * kwnames[] = {
29933 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29934 };
29935
29936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29938 if (!SWIG_IsOK(res1)) {
29939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29940 }
29941 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29942 ecode2 = SWIG_AsVal_int(obj1, &val2);
29943 if (!SWIG_IsOK(ecode2)) {
29944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29945 }
29946 arg2 = static_cast< int >(val2);
29947 if (obj2) {
29948 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29949 if (!SWIG_IsOK(ecode3)) {
29950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29951 }
29952 arg3 = static_cast< bool >(val3);
29953 }
29954 {
29955 PyThreadState* __tstate = wxPyBeginAllowThreads();
29956 (arg1)->SetItemSpacing(arg2,arg3);
29957 wxPyEndAllowThreads(__tstate);
29958 if (PyErr_Occurred()) SWIG_fail;
29959 }
29960 resultobj = SWIG_Py_Void();
29961 return resultobj;
29962fail:
29963 return NULL;
22bfe96c
RD
29964}
29965
29966
0085ce49
RD
29967SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29968 PyObject *resultobj = 0;
29969 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29970 int result;
29971 void *argp1 = 0 ;
29972 int res1 = 0 ;
29973 PyObject *swig_obj[1] ;
29974
29975 if (!args) SWIG_fail;
29976 swig_obj[0] = args;
29977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29978 if (!SWIG_IsOK(res1)) {
29979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29980 }
29981 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29982 {
29983 PyThreadState* __tstate = wxPyBeginAllowThreads();
29984 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29985 wxPyEndAllowThreads(__tstate);
29986 if (PyErr_Occurred()) SWIG_fail;
29987 }
29988 resultobj = SWIG_From_int(static_cast< int >(result));
29989 return resultobj;
29990fail:
29991 return NULL;
d14a1e28
RD
29992}
29993
29994
0085ce49
RD
29995SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29996 PyObject *resultobj = 0;
29997 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29998 wxColour result;
29999 void *argp1 = 0 ;
30000 int res1 = 0 ;
30001 PyObject *swig_obj[1] ;
30002
30003 if (!args) SWIG_fail;
30004 swig_obj[0] = args;
30005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30006 if (!SWIG_IsOK(res1)) {
30007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30008 }
30009 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30010 {
30011 PyThreadState* __tstate = wxPyBeginAllowThreads();
30012 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30013 wxPyEndAllowThreads(__tstate);
30014 if (PyErr_Occurred()) SWIG_fail;
30015 }
30016 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30017 return resultobj;
30018fail:
30019 return NULL;
30020}
30021
30022
30023SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30024 PyObject *resultobj = 0;
30025 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30026 wxColour *arg2 = 0 ;
30027 void *argp1 = 0 ;
30028 int res1 = 0 ;
30029 wxColour temp2 ;
30030 PyObject * obj0 = 0 ;
30031 PyObject * obj1 = 0 ;
30032 char * kwnames[] = {
30033 (char *) "self",(char *) "col", NULL
30034 };
30035
30036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30038 if (!SWIG_IsOK(res1)) {
30039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30040 }
30041 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30042 {
30043 arg2 = &temp2;
30044 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30045 }
30046 {
30047 PyThreadState* __tstate = wxPyBeginAllowThreads();
30048 (arg1)->SetTextColour((wxColour const &)*arg2);
30049 wxPyEndAllowThreads(__tstate);
30050 if (PyErr_Occurred()) SWIG_fail;
30051 }
30052 resultobj = SWIG_Py_Void();
30053 return resultobj;
30054fail:
30055 return NULL;
d14a1e28
RD
30056}
30057
30058
0085ce49
RD
30059SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30060 PyObject *resultobj = 0;
30061 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30062 long result;
30063 void *argp1 = 0 ;
30064 int res1 = 0 ;
30065 PyObject *swig_obj[1] ;
30066
30067 if (!args) SWIG_fail;
30068 swig_obj[0] = args;
30069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30070 if (!SWIG_IsOK(res1)) {
30071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30072 }
30073 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30074 {
30075 PyThreadState* __tstate = wxPyBeginAllowThreads();
30076 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30077 wxPyEndAllowThreads(__tstate);
30078 if (PyErr_Occurred()) SWIG_fail;
30079 }
30080 resultobj = SWIG_From_long(static_cast< long >(result));
30081 return resultobj;
30082fail:
30083 return NULL;
30084}
30085
30086
30087SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30088 PyObject *resultobj = 0;
30089 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30090 long arg2 ;
30091 bool arg3 = (bool) true ;
30092 void *argp1 = 0 ;
30093 int res1 = 0 ;
30094 long val2 ;
30095 int ecode2 = 0 ;
30096 bool val3 ;
30097 int ecode3 = 0 ;
30098 PyObject * obj0 = 0 ;
30099 PyObject * obj1 = 0 ;
30100 PyObject * obj2 = 0 ;
30101 char * kwnames[] = {
30102 (char *) "self",(char *) "style",(char *) "add", NULL
30103 };
30104
30105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30107 if (!SWIG_IsOK(res1)) {
30108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30109 }
30110 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30111 ecode2 = SWIG_AsVal_long(obj1, &val2);
30112 if (!SWIG_IsOK(ecode2)) {
30113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30114 }
30115 arg2 = static_cast< long >(val2);
30116 if (obj2) {
30117 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30118 if (!SWIG_IsOK(ecode3)) {
30119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30120 }
30121 arg3 = static_cast< bool >(val3);
30122 }
30123 {
30124 PyThreadState* __tstate = wxPyBeginAllowThreads();
30125 (arg1)->SetSingleStyle(arg2,arg3);
30126 wxPyEndAllowThreads(__tstate);
30127 if (PyErr_Occurred()) SWIG_fail;
30128 }
30129 resultobj = SWIG_Py_Void();
30130 return resultobj;
30131fail:
30132 return NULL;
30133}
30134
30135
30136SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30137 PyObject *resultobj = 0;
30138 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30139 long arg2 ;
30140 int arg3 = (int) wxLIST_NEXT_ALL ;
30141 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30142 long result;
30143 void *argp1 = 0 ;
30144 int res1 = 0 ;
30145 long val2 ;
30146 int ecode2 = 0 ;
30147 int val3 ;
30148 int ecode3 = 0 ;
30149 int val4 ;
30150 int ecode4 = 0 ;
30151 PyObject * obj0 = 0 ;
30152 PyObject * obj1 = 0 ;
30153 PyObject * obj2 = 0 ;
30154 PyObject * obj3 = 0 ;
30155 char * kwnames[] = {
30156 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30157 };
30158
30159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30161 if (!SWIG_IsOK(res1)) {
30162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30163 }
30164 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30165 ecode2 = SWIG_AsVal_long(obj1, &val2);
30166 if (!SWIG_IsOK(ecode2)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30168 }
30169 arg2 = static_cast< long >(val2);
30170 if (obj2) {
30171 ecode3 = SWIG_AsVal_int(obj2, &val3);
30172 if (!SWIG_IsOK(ecode3)) {
30173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30174 }
30175 arg3 = static_cast< int >(val3);
30176 }
30177 if (obj3) {
30178 ecode4 = SWIG_AsVal_int(obj3, &val4);
30179 if (!SWIG_IsOK(ecode4)) {
30180 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30181 }
30182 arg4 = static_cast< int >(val4);
30183 }
30184 {
30185 PyThreadState* __tstate = wxPyBeginAllowThreads();
30186 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30187 wxPyEndAllowThreads(__tstate);
30188 if (PyErr_Occurred()) SWIG_fail;
30189 }
30190 resultobj = SWIG_From_long(static_cast< long >(result));
30191 return resultobj;
30192fail:
30193 return NULL;
30194}
30195
30196
30197SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30198 PyObject *resultobj = 0;
30199 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30200 int arg2 ;
30201 wxImageList *result = 0 ;
30202 void *argp1 = 0 ;
30203 int res1 = 0 ;
30204 int val2 ;
30205 int ecode2 = 0 ;
30206 PyObject * obj0 = 0 ;
30207 PyObject * obj1 = 0 ;
30208 char * kwnames[] = {
30209 (char *) "self",(char *) "which", NULL
30210 };
30211
30212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30214 if (!SWIG_IsOK(res1)) {
30215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30216 }
30217 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30218 ecode2 = SWIG_AsVal_int(obj1, &val2);
30219 if (!SWIG_IsOK(ecode2)) {
30220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30221 }
30222 arg2 = static_cast< int >(val2);
30223 {
30224 PyThreadState* __tstate = wxPyBeginAllowThreads();
30225 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30226 wxPyEndAllowThreads(__tstate);
30227 if (PyErr_Occurred()) SWIG_fail;
30228 }
30229 {
30230 resultobj = wxPyMake_wxObject(result, (bool)0);
30231 }
30232 return resultobj;
30233fail:
30234 return NULL;
30235}
30236
30237
30238SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30239 PyObject *resultobj = 0;
30240 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30241 wxImageList *arg2 = (wxImageList *) 0 ;
30242 int arg3 ;
30243 void *argp1 = 0 ;
30244 int res1 = 0 ;
30245 void *argp2 = 0 ;
30246 int res2 = 0 ;
30247 int val3 ;
30248 int ecode3 = 0 ;
30249 PyObject * obj0 = 0 ;
30250 PyObject * obj1 = 0 ;
30251 PyObject * obj2 = 0 ;
30252 char * kwnames[] = {
30253 (char *) "self",(char *) "imageList",(char *) "which", NULL
30254 };
30255
30256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30258 if (!SWIG_IsOK(res1)) {
30259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30260 }
30261 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30262 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30263 if (!SWIG_IsOK(res2)) {
30264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30265 }
30266 arg2 = reinterpret_cast< wxImageList * >(argp2);
30267 ecode3 = SWIG_AsVal_int(obj2, &val3);
30268 if (!SWIG_IsOK(ecode3)) {
30269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30270 }
30271 arg3 = static_cast< int >(val3);
30272 {
30273 PyThreadState* __tstate = wxPyBeginAllowThreads();
30274 (arg1)->SetImageList(arg2,arg3);
30275 wxPyEndAllowThreads(__tstate);
30276 if (PyErr_Occurred()) SWIG_fail;
30277 }
30278 resultobj = SWIG_Py_Void();
30279 return resultobj;
30280fail:
30281 return NULL;
30282}
30283
30284
30285SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30286 PyObject *resultobj = 0;
30287 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30288 wxImageList *arg2 = (wxImageList *) 0 ;
30289 int arg3 ;
30290 void *argp1 = 0 ;
30291 int res1 = 0 ;
30292 int res2 = 0 ;
30293 int val3 ;
30294 int ecode3 = 0 ;
30295 PyObject * obj0 = 0 ;
30296 PyObject * obj1 = 0 ;
30297 PyObject * obj2 = 0 ;
30298 char * kwnames[] = {
30299 (char *) "self",(char *) "imageList",(char *) "which", NULL
30300 };
30301
30302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30304 if (!SWIG_IsOK(res1)) {
30305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30306 }
30307 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30308 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30309 if (!SWIG_IsOK(res2)) {
30310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30311 }
30312 ecode3 = SWIG_AsVal_int(obj2, &val3);
30313 if (!SWIG_IsOK(ecode3)) {
30314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30315 }
30316 arg3 = static_cast< int >(val3);
30317 {
30318 PyThreadState* __tstate = wxPyBeginAllowThreads();
30319 (arg1)->AssignImageList(arg2,arg3);
30320 wxPyEndAllowThreads(__tstate);
30321 if (PyErr_Occurred()) SWIG_fail;
30322 }
30323 resultobj = SWIG_Py_Void();
30324 return resultobj;
30325fail:
30326 return NULL;
d14a1e28
RD
30327}
30328
30329
0085ce49
RD
30330SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30331 PyObject *resultobj = 0;
30332 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30333 bool result;
30334 void *argp1 = 0 ;
30335 int res1 = 0 ;
30336 PyObject *swig_obj[1] ;
30337
30338 if (!args) SWIG_fail;
30339 swig_obj[0] = args;
30340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30341 if (!SWIG_IsOK(res1)) {
30342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30343 }
30344 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30345 {
30346 PyThreadState* __tstate = wxPyBeginAllowThreads();
30347 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30348 wxPyEndAllowThreads(__tstate);
30349 if (PyErr_Occurred()) SWIG_fail;
30350 }
30351 {
30352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30353 }
30354 return resultobj;
30355fail:
30356 return NULL;
d14a1e28
RD
30357}
30358
30359
0085ce49
RD
30360SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30361 PyObject *resultobj = 0;
30362 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30363 bool result;
30364 void *argp1 = 0 ;
30365 int res1 = 0 ;
30366 PyObject *swig_obj[1] ;
30367
30368 if (!args) SWIG_fail;
30369 swig_obj[0] = args;
30370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30371 if (!SWIG_IsOK(res1)) {
30372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30373 }
30374 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30375 {
30376 PyThreadState* __tstate = wxPyBeginAllowThreads();
30377 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30378 wxPyEndAllowThreads(__tstate);
30379 if (PyErr_Occurred()) SWIG_fail;
30380 }
30381 {
30382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30383 }
30384 return resultobj;
30385fail:
30386 return NULL;
30387}
30388
30389
30390SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30391 PyObject *resultobj = 0;
30392 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30393 long arg2 ;
30394 void *argp1 = 0 ;
30395 int res1 = 0 ;
30396 long val2 ;
30397 int ecode2 = 0 ;
30398 PyObject * obj0 = 0 ;
30399 PyObject * obj1 = 0 ;
30400 char * kwnames[] = {
30401 (char *) "self",(char *) "item", NULL
30402 };
30403
30404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30406 if (!SWIG_IsOK(res1)) {
30407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30408 }
30409 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30410 ecode2 = SWIG_AsVal_long(obj1, &val2);
30411 if (!SWIG_IsOK(ecode2)) {
30412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30413 }
30414 arg2 = static_cast< long >(val2);
30415 {
30416 PyThreadState* __tstate = wxPyBeginAllowThreads();
30417 (arg1)->RefreshItem(arg2);
30418 wxPyEndAllowThreads(__tstate);
30419 if (PyErr_Occurred()) SWIG_fail;
30420 }
30421 resultobj = SWIG_Py_Void();
30422 return resultobj;
30423fail:
30424 return NULL;
30425}
30426
30427
30428SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30429 PyObject *resultobj = 0;
30430 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30431 long arg2 ;
30432 long arg3 ;
30433 void *argp1 = 0 ;
30434 int res1 = 0 ;
30435 long val2 ;
30436 int ecode2 = 0 ;
30437 long val3 ;
30438 int ecode3 = 0 ;
30439 PyObject * obj0 = 0 ;
30440 PyObject * obj1 = 0 ;
30441 PyObject * obj2 = 0 ;
30442 char * kwnames[] = {
30443 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30444 };
30445
30446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30448 if (!SWIG_IsOK(res1)) {
30449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30450 }
30451 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30452 ecode2 = SWIG_AsVal_long(obj1, &val2);
30453 if (!SWIG_IsOK(ecode2)) {
30454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30455 }
30456 arg2 = static_cast< long >(val2);
30457 ecode3 = SWIG_AsVal_long(obj2, &val3);
30458 if (!SWIG_IsOK(ecode3)) {
30459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30460 }
30461 arg3 = static_cast< long >(val3);
30462 {
30463 PyThreadState* __tstate = wxPyBeginAllowThreads();
30464 (arg1)->RefreshItems(arg2,arg3);
30465 wxPyEndAllowThreads(__tstate);
30466 if (PyErr_Occurred()) SWIG_fail;
30467 }
30468 resultobj = SWIG_Py_Void();
30469 return resultobj;
30470fail:
30471 return NULL;
30472}
30473
30474
30475SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30476 PyObject *resultobj = 0;
30477 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30478 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30479 bool result;
30480 void *argp1 = 0 ;
30481 int res1 = 0 ;
30482 int val2 ;
30483 int ecode2 = 0 ;
30484 PyObject * obj0 = 0 ;
30485 PyObject * obj1 = 0 ;
30486 char * kwnames[] = {
30487 (char *) "self",(char *) "flag", NULL
30488 };
30489
30490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30492 if (!SWIG_IsOK(res1)) {
30493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30494 }
30495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30496 if (obj1) {
30497 ecode2 = SWIG_AsVal_int(obj1, &val2);
30498 if (!SWIG_IsOK(ecode2)) {
30499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30500 }
30501 arg2 = static_cast< int >(val2);
30502 }
30503 {
30504 PyThreadState* __tstate = wxPyBeginAllowThreads();
30505 result = (bool)(arg1)->Arrange(arg2);
30506 wxPyEndAllowThreads(__tstate);
30507 if (PyErr_Occurred()) SWIG_fail;
30508 }
30509 {
30510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30511 }
30512 return resultobj;
30513fail:
30514 return NULL;
30515}
30516
30517
30518SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30519 PyObject *resultobj = 0;
30520 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30521 long arg2 ;
30522 bool result;
30523 void *argp1 = 0 ;
30524 int res1 = 0 ;
30525 long val2 ;
30526 int ecode2 = 0 ;
30527 PyObject * obj0 = 0 ;
30528 PyObject * obj1 = 0 ;
30529 char * kwnames[] = {
30530 (char *) "self",(char *) "item", NULL
30531 };
30532
30533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30535 if (!SWIG_IsOK(res1)) {
30536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30537 }
30538 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30539 ecode2 = SWIG_AsVal_long(obj1, &val2);
30540 if (!SWIG_IsOK(ecode2)) {
30541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30542 }
30543 arg2 = static_cast< long >(val2);
30544 {
30545 PyThreadState* __tstate = wxPyBeginAllowThreads();
30546 result = (bool)(arg1)->DeleteItem(arg2);
30547 wxPyEndAllowThreads(__tstate);
30548 if (PyErr_Occurred()) SWIG_fail;
30549 }
30550 {
30551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30552 }
30553 return resultobj;
30554fail:
30555 return NULL;
7e08d4ef
RD
30556}
30557
30558
0085ce49
RD
30559SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30560 PyObject *resultobj = 0;
30561 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30562 bool result;
30563 void *argp1 = 0 ;
30564 int res1 = 0 ;
30565 PyObject *swig_obj[1] ;
30566
30567 if (!args) SWIG_fail;
30568 swig_obj[0] = args;
30569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30570 if (!SWIG_IsOK(res1)) {
30571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30572 }
30573 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30574 {
30575 PyThreadState* __tstate = wxPyBeginAllowThreads();
30576 result = (bool)(arg1)->DeleteAllItems();
30577 wxPyEndAllowThreads(__tstate);
30578 if (PyErr_Occurred()) SWIG_fail;
30579 }
30580 {
30581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30582 }
30583 return resultobj;
30584fail:
30585 return NULL;
30586}
30587
30588
30589SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30590 PyObject *resultobj = 0;
30591 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30592 int arg2 ;
30593 bool result;
30594 void *argp1 = 0 ;
30595 int res1 = 0 ;
30596 int val2 ;
30597 int ecode2 = 0 ;
30598 PyObject * obj0 = 0 ;
30599 PyObject * obj1 = 0 ;
30600 char * kwnames[] = {
30601 (char *) "self",(char *) "col", NULL
30602 };
30603
30604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30606 if (!SWIG_IsOK(res1)) {
30607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30608 }
30609 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30610 ecode2 = SWIG_AsVal_int(obj1, &val2);
30611 if (!SWIG_IsOK(ecode2)) {
30612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30613 }
30614 arg2 = static_cast< int >(val2);
30615 {
30616 PyThreadState* __tstate = wxPyBeginAllowThreads();
30617 result = (bool)(arg1)->DeleteColumn(arg2);
30618 wxPyEndAllowThreads(__tstate);
30619 if (PyErr_Occurred()) SWIG_fail;
30620 }
30621 {
30622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30623 }
30624 return resultobj;
30625fail:
30626 return NULL;
7e08d4ef
RD
30627}
30628
30629
0085ce49
RD
30630SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30631 PyObject *resultobj = 0;
30632 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30633 bool result;
30634 void *argp1 = 0 ;
30635 int res1 = 0 ;
30636 PyObject *swig_obj[1] ;
30637
30638 if (!args) SWIG_fail;
30639 swig_obj[0] = args;
30640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30641 if (!SWIG_IsOK(res1)) {
30642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30643 }
30644 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30645 {
30646 PyThreadState* __tstate = wxPyBeginAllowThreads();
30647 result = (bool)(arg1)->DeleteAllColumns();
30648 wxPyEndAllowThreads(__tstate);
30649 if (PyErr_Occurred()) SWIG_fail;
30650 }
30651 {
30652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30653 }
30654 return resultobj;
30655fail:
30656 return NULL;
7e08d4ef
RD
30657}
30658
30659
0085ce49
RD
30660SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30661 PyObject *resultobj = 0;
30662 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30663 void *argp1 = 0 ;
30664 int res1 = 0 ;
30665 PyObject *swig_obj[1] ;
30666
30667 if (!args) SWIG_fail;
30668 swig_obj[0] = args;
30669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30670 if (!SWIG_IsOK(res1)) {
30671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30672 }
30673 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30674 {
30675 PyThreadState* __tstate = wxPyBeginAllowThreads();
30676 (arg1)->ClearAll();
30677 wxPyEndAllowThreads(__tstate);
30678 if (PyErr_Occurred()) SWIG_fail;
30679 }
30680 resultobj = SWIG_Py_Void();
30681 return resultobj;
30682fail:
30683 return NULL;
30684}
30685
30686
30687SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30688 PyObject *resultobj = 0;
30689 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30690 long arg2 ;
30691 void *argp1 = 0 ;
30692 int res1 = 0 ;
30693 long val2 ;
30694 int ecode2 = 0 ;
30695 PyObject * obj0 = 0 ;
30696 PyObject * obj1 = 0 ;
30697 char * kwnames[] = {
30698 (char *) "self",(char *) "item", NULL
30699 };
30700
30701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30703 if (!SWIG_IsOK(res1)) {
30704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30705 }
30706 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30707 ecode2 = SWIG_AsVal_long(obj1, &val2);
30708 if (!SWIG_IsOK(ecode2)) {
30709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30710 }
30711 arg2 = static_cast< long >(val2);
30712 {
30713 PyThreadState* __tstate = wxPyBeginAllowThreads();
30714 (arg1)->EditLabel(arg2);
30715 wxPyEndAllowThreads(__tstate);
30716 if (PyErr_Occurred()) SWIG_fail;
30717 }
30718 resultobj = SWIG_Py_Void();
30719 return resultobj;
30720fail:
30721 return NULL;
30722}
30723
30724
30725SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30726 PyObject *resultobj = 0;
30727 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30728 long arg2 ;
30729 bool result;
30730 void *argp1 = 0 ;
30731 int res1 = 0 ;
30732 long val2 ;
30733 int ecode2 = 0 ;
30734 PyObject * obj0 = 0 ;
30735 PyObject * obj1 = 0 ;
30736 char * kwnames[] = {
30737 (char *) "self",(char *) "item", NULL
30738 };
30739
30740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30742 if (!SWIG_IsOK(res1)) {
30743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30744 }
30745 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30746 ecode2 = SWIG_AsVal_long(obj1, &val2);
30747 if (!SWIG_IsOK(ecode2)) {
30748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30749 }
30750 arg2 = static_cast< long >(val2);
30751 {
30752 PyThreadState* __tstate = wxPyBeginAllowThreads();
30753 result = (bool)(arg1)->EnsureVisible(arg2);
30754 wxPyEndAllowThreads(__tstate);
30755 if (PyErr_Occurred()) SWIG_fail;
30756 }
30757 {
30758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30759 }
30760 return resultobj;
30761fail:
30762 return NULL;
30763}
30764
30765
30766SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30767 PyObject *resultobj = 0;
30768 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30769 long arg2 ;
30770 wxString *arg3 = 0 ;
30771 bool arg4 = (bool) false ;
30772 long result;
30773 void *argp1 = 0 ;
30774 int res1 = 0 ;
30775 long val2 ;
30776 int ecode2 = 0 ;
30777 bool temp3 = false ;
30778 bool val4 ;
30779 int ecode4 = 0 ;
30780 PyObject * obj0 = 0 ;
30781 PyObject * obj1 = 0 ;
30782 PyObject * obj2 = 0 ;
30783 PyObject * obj3 = 0 ;
30784 char * kwnames[] = {
30785 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30786 };
30787
30788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30790 if (!SWIG_IsOK(res1)) {
30791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30792 }
30793 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30794 ecode2 = SWIG_AsVal_long(obj1, &val2);
30795 if (!SWIG_IsOK(ecode2)) {
30796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30797 }
30798 arg2 = static_cast< long >(val2);
30799 {
30800 arg3 = wxString_in_helper(obj2);
30801 if (arg3 == NULL) SWIG_fail;
30802 temp3 = true;
30803 }
30804 if (obj3) {
30805 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30806 if (!SWIG_IsOK(ecode4)) {
30807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30808 }
30809 arg4 = static_cast< bool >(val4);
30810 }
30811 {
30812 PyThreadState* __tstate = wxPyBeginAllowThreads();
30813 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30814 wxPyEndAllowThreads(__tstate);
30815 if (PyErr_Occurred()) SWIG_fail;
30816 }
30817 resultobj = SWIG_From_long(static_cast< long >(result));
30818 {
30819 if (temp3)
30820 delete arg3;
30821 }
30822 return resultobj;
30823fail:
30824 {
30825 if (temp3)
30826 delete arg3;
30827 }
30828 return NULL;
30829}
30830
30831
30832SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30833 PyObject *resultobj = 0;
30834 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30835 long arg2 ;
30836 long arg3 ;
30837 long result;
30838 void *argp1 = 0 ;
30839 int res1 = 0 ;
30840 long val2 ;
30841 int ecode2 = 0 ;
30842 long val3 ;
30843 int ecode3 = 0 ;
30844 PyObject * obj0 = 0 ;
30845 PyObject * obj1 = 0 ;
30846 PyObject * obj2 = 0 ;
30847 char * kwnames[] = {
30848 (char *) "self",(char *) "start",(char *) "data", NULL
30849 };
30850
30851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30853 if (!SWIG_IsOK(res1)) {
30854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30855 }
30856 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30857 ecode2 = SWIG_AsVal_long(obj1, &val2);
30858 if (!SWIG_IsOK(ecode2)) {
30859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30860 }
30861 arg2 = static_cast< long >(val2);
30862 ecode3 = SWIG_AsVal_long(obj2, &val3);
30863 if (!SWIG_IsOK(ecode3)) {
30864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30865 }
30866 arg3 = static_cast< long >(val3);
30867 {
30868 PyThreadState* __tstate = wxPyBeginAllowThreads();
30869 result = (long)(arg1)->FindItem(arg2,arg3);
30870 wxPyEndAllowThreads(__tstate);
30871 if (PyErr_Occurred()) SWIG_fail;
30872 }
30873 resultobj = SWIG_From_long(static_cast< long >(result));
30874 return resultobj;
30875fail:
30876 return NULL;
30877}
30878
30879
30880SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30881 PyObject *resultobj = 0;
30882 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30883 long arg2 ;
30884 wxPoint *arg3 = 0 ;
30885 int arg4 ;
30886 long result;
30887 void *argp1 = 0 ;
30888 int res1 = 0 ;
30889 long val2 ;
30890 int ecode2 = 0 ;
30891 wxPoint temp3 ;
30892 int val4 ;
30893 int ecode4 = 0 ;
30894 PyObject * obj0 = 0 ;
30895 PyObject * obj1 = 0 ;
30896 PyObject * obj2 = 0 ;
30897 PyObject * obj3 = 0 ;
30898 char * kwnames[] = {
30899 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30900 };
30901
30902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30904 if (!SWIG_IsOK(res1)) {
30905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30906 }
30907 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30908 ecode2 = SWIG_AsVal_long(obj1, &val2);
30909 if (!SWIG_IsOK(ecode2)) {
30910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30911 }
30912 arg2 = static_cast< long >(val2);
30913 {
30914 arg3 = &temp3;
30915 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30916 }
30917 ecode4 = SWIG_AsVal_int(obj3, &val4);
30918 if (!SWIG_IsOK(ecode4)) {
30919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30920 }
30921 arg4 = static_cast< int >(val4);
30922 {
30923 PyThreadState* __tstate = wxPyBeginAllowThreads();
30924 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30925 wxPyEndAllowThreads(__tstate);
30926 if (PyErr_Occurred()) SWIG_fail;
30927 }
30928 resultobj = SWIG_From_long(static_cast< long >(result));
30929 return resultobj;
30930fail:
30931 return NULL;
30932}
30933
30934
30935SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30936 PyObject *resultobj = 0;
30937 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30938 wxPoint *arg2 = 0 ;
30939 int *arg3 = 0 ;
30940 long result;
30941 void *argp1 = 0 ;
30942 int res1 = 0 ;
30943 wxPoint temp2 ;
30944 int temp3 ;
30945 int res3 = SWIG_TMPOBJ ;
30946 PyObject * obj0 = 0 ;
30947 PyObject * obj1 = 0 ;
30948 char * kwnames[] = {
30949 (char *) "self",(char *) "point", NULL
30950 };
30951
30952 arg3 = &temp3;
30953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30955 if (!SWIG_IsOK(res1)) {
30956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30957 }
30958 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30959 {
30960 arg2 = &temp2;
30961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30962 }
30963 {
30964 PyThreadState* __tstate = wxPyBeginAllowThreads();
30965 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30966 wxPyEndAllowThreads(__tstate);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 }
30969 resultobj = SWIG_From_long(static_cast< long >(result));
30970 if (SWIG_IsTmpObj(res3)) {
30971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30972 } else {
30973 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30975 }
30976 return resultobj;
30977fail:
30978 return NULL;
30979}
30980
30981
704eda0c
RD
30982SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30983 PyObject *resultobj = 0;
30984 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30985 wxPoint *arg2 = 0 ;
30986 int *arg3 = 0 ;
30987 long *arg4 = (long *) 0 ;
30988 long result;
30989 void *argp1 = 0 ;
30990 int res1 = 0 ;
30991 wxPoint temp2 ;
30992 int temp3 ;
30993 int res3 = SWIG_TMPOBJ ;
30994 long temp4 ;
30995 int res4 = SWIG_TMPOBJ ;
30996 PyObject * obj0 = 0 ;
30997 PyObject * obj1 = 0 ;
30998 char * kwnames[] = {
30999 (char *) "self",(char *) "point", NULL
31000 };
31001
31002 arg3 = &temp3;
31003 arg4 = &temp4;
31004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31006 if (!SWIG_IsOK(res1)) {
31007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31008 }
31009 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31010 {
31011 arg2 = &temp2;
31012 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31013 }
31014 {
31015 PyThreadState* __tstate = wxPyBeginAllowThreads();
31016 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31017 wxPyEndAllowThreads(__tstate);
31018 if (PyErr_Occurred()) SWIG_fail;
31019 }
31020 resultobj = SWIG_From_long(static_cast< long >(result));
31021 if (SWIG_IsTmpObj(res3)) {
31022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31023 } else {
31024 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31026 }
31027 if (SWIG_IsTmpObj(res4)) {
31028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31029 } else {
31030 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31032 }
31033 return resultobj;
31034fail:
31035 return NULL;
31036}
31037
31038
0085ce49
RD
31039SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31040 PyObject *resultobj = 0;
31041 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31042 wxListItem *arg2 = 0 ;
31043 long result;
31044 void *argp1 = 0 ;
31045 int res1 = 0 ;
31046 void *argp2 = 0 ;
31047 int res2 = 0 ;
31048 PyObject * obj0 = 0 ;
31049 PyObject * obj1 = 0 ;
31050 char * kwnames[] = {
31051 (char *) "self",(char *) "info", NULL
31052 };
31053
31054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31056 if (!SWIG_IsOK(res1)) {
31057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31058 }
31059 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31061 if (!SWIG_IsOK(res2)) {
31062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31063 }
31064 if (!argp2) {
31065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31066 }
31067 arg2 = reinterpret_cast< wxListItem * >(argp2);
31068 {
31069 PyThreadState* __tstate = wxPyBeginAllowThreads();
31070 result = (long)(arg1)->InsertItem(*arg2);
31071 wxPyEndAllowThreads(__tstate);
31072 if (PyErr_Occurred()) SWIG_fail;
31073 }
31074 resultobj = SWIG_From_long(static_cast< long >(result));
31075 return resultobj;
31076fail:
31077 return NULL;
31078}
31079
31080
31081SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31082 PyObject *resultobj = 0;
31083 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31084 long arg2 ;
31085 wxString *arg3 = 0 ;
31086 int arg4 = (int) -1 ;
31087 long result;
31088 void *argp1 = 0 ;
31089 int res1 = 0 ;
31090 long val2 ;
31091 int ecode2 = 0 ;
31092 bool temp3 = false ;
31093 int val4 ;
31094 int ecode4 = 0 ;
31095 PyObject * obj0 = 0 ;
31096 PyObject * obj1 = 0 ;
31097 PyObject * obj2 = 0 ;
31098 PyObject * obj3 = 0 ;
31099 char * kwnames[] = {
31100 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31101 };
31102
31103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31105 if (!SWIG_IsOK(res1)) {
31106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31107 }
31108 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31109 ecode2 = SWIG_AsVal_long(obj1, &val2);
31110 if (!SWIG_IsOK(ecode2)) {
31111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31112 }
31113 arg2 = static_cast< long >(val2);
31114 {
31115 arg3 = wxString_in_helper(obj2);
31116 if (arg3 == NULL) SWIG_fail;
31117 temp3 = true;
31118 }
31119 if (obj3) {
31120 ecode4 = SWIG_AsVal_int(obj3, &val4);
31121 if (!SWIG_IsOK(ecode4)) {
31122 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31123 }
31124 arg4 = static_cast< int >(val4);
31125 }
31126 {
31127 PyThreadState* __tstate = wxPyBeginAllowThreads();
31128 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31129 wxPyEndAllowThreads(__tstate);
31130 if (PyErr_Occurred()) SWIG_fail;
31131 }
31132 resultobj = SWIG_From_long(static_cast< long >(result));
31133 {
31134 if (temp3)
31135 delete arg3;
31136 }
31137 return resultobj;
31138fail:
31139 {
31140 if (temp3)
31141 delete arg3;
31142 }
31143 return NULL;
31144}
31145
31146
31147SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31148 PyObject *resultobj = 0;
31149 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31150 long arg2 ;
31151 int arg3 ;
31152 long result;
31153 void *argp1 = 0 ;
31154 int res1 = 0 ;
31155 long val2 ;
31156 int ecode2 = 0 ;
31157 int val3 ;
31158 int ecode3 = 0 ;
31159 PyObject * obj0 = 0 ;
31160 PyObject * obj1 = 0 ;
31161 PyObject * obj2 = 0 ;
31162 char * kwnames[] = {
31163 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31164 };
31165
31166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31168 if (!SWIG_IsOK(res1)) {
31169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31170 }
31171 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31172 ecode2 = SWIG_AsVal_long(obj1, &val2);
31173 if (!SWIG_IsOK(ecode2)) {
31174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31175 }
31176 arg2 = static_cast< long >(val2);
31177 ecode3 = SWIG_AsVal_int(obj2, &val3);
31178 if (!SWIG_IsOK(ecode3)) {
31179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31180 }
31181 arg3 = static_cast< int >(val3);
31182 {
31183 PyThreadState* __tstate = wxPyBeginAllowThreads();
31184 result = (long)(arg1)->InsertItem(arg2,arg3);
31185 wxPyEndAllowThreads(__tstate);
31186 if (PyErr_Occurred()) SWIG_fail;
31187 }
31188 resultobj = SWIG_From_long(static_cast< long >(result));
31189 return resultobj;
31190fail:
31191 return NULL;
31192}
31193
31194
31195SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31196 PyObject *resultobj = 0;
31197 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31198 long arg2 ;
31199 wxString *arg3 = 0 ;
31200 int arg4 ;
31201 long result;
31202 void *argp1 = 0 ;
31203 int res1 = 0 ;
31204 long val2 ;
31205 int ecode2 = 0 ;
31206 bool temp3 = false ;
31207 int val4 ;
31208 int ecode4 = 0 ;
31209 PyObject * obj0 = 0 ;
31210 PyObject * obj1 = 0 ;
31211 PyObject * obj2 = 0 ;
31212 PyObject * obj3 = 0 ;
31213 char * kwnames[] = {
31214 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31215 };
31216
31217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31219 if (!SWIG_IsOK(res1)) {
31220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31221 }
31222 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31223 ecode2 = SWIG_AsVal_long(obj1, &val2);
31224 if (!SWIG_IsOK(ecode2)) {
31225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31226 }
31227 arg2 = static_cast< long >(val2);
31228 {
31229 arg3 = wxString_in_helper(obj2);
31230 if (arg3 == NULL) SWIG_fail;
31231 temp3 = true;
31232 }
31233 ecode4 = SWIG_AsVal_int(obj3, &val4);
31234 if (!SWIG_IsOK(ecode4)) {
31235 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31236 }
31237 arg4 = static_cast< int >(val4);
31238 {
31239 PyThreadState* __tstate = wxPyBeginAllowThreads();
31240 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31241 wxPyEndAllowThreads(__tstate);
31242 if (PyErr_Occurred()) SWIG_fail;
31243 }
31244 resultobj = SWIG_From_long(static_cast< long >(result));
31245 {
31246 if (temp3)
31247 delete arg3;
31248 }
31249 return resultobj;
31250fail:
31251 {
31252 if (temp3)
31253 delete arg3;
31254 }
31255 return NULL;
31256}
31257
31258
31259SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31260 PyObject *resultobj = 0;
31261 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31262 long arg2 ;
31263 wxListItem *arg3 = 0 ;
31264 long result;
31265 void *argp1 = 0 ;
31266 int res1 = 0 ;
31267 long val2 ;
31268 int ecode2 = 0 ;
31269 void *argp3 = 0 ;
31270 int res3 = 0 ;
31271 PyObject * obj0 = 0 ;
31272 PyObject * obj1 = 0 ;
31273 PyObject * obj2 = 0 ;
31274 char * kwnames[] = {
31275 (char *) "self",(char *) "col",(char *) "info", NULL
31276 };
31277
31278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31280 if (!SWIG_IsOK(res1)) {
31281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31282 }
31283 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31284 ecode2 = SWIG_AsVal_long(obj1, &val2);
31285 if (!SWIG_IsOK(ecode2)) {
31286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31287 }
31288 arg2 = static_cast< long >(val2);
31289 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31290 if (!SWIG_IsOK(res3)) {
31291 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31292 }
31293 if (!argp3) {
31294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31295 }
31296 arg3 = reinterpret_cast< wxListItem * >(argp3);
31297 {
31298 PyThreadState* __tstate = wxPyBeginAllowThreads();
31299 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31300 wxPyEndAllowThreads(__tstate);
31301 if (PyErr_Occurred()) SWIG_fail;
31302 }
31303 resultobj = SWIG_From_long(static_cast< long >(result));
31304 return resultobj;
31305fail:
31306 return NULL;
31307}
31308
31309
31310SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31311 PyObject *resultobj = 0;
31312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31313 long arg2 ;
31314 wxString *arg3 = 0 ;
31315 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31316 int arg5 = (int) -1 ;
31317 long result;
31318 void *argp1 = 0 ;
31319 int res1 = 0 ;
31320 long val2 ;
31321 int ecode2 = 0 ;
31322 bool temp3 = false ;
31323 int val4 ;
31324 int ecode4 = 0 ;
31325 int val5 ;
31326 int ecode5 = 0 ;
31327 PyObject * obj0 = 0 ;
31328 PyObject * obj1 = 0 ;
31329 PyObject * obj2 = 0 ;
31330 PyObject * obj3 = 0 ;
31331 PyObject * obj4 = 0 ;
31332 char * kwnames[] = {
31333 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31334 };
31335
31336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31338 if (!SWIG_IsOK(res1)) {
31339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31340 }
31341 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31342 ecode2 = SWIG_AsVal_long(obj1, &val2);
31343 if (!SWIG_IsOK(ecode2)) {
31344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31345 }
31346 arg2 = static_cast< long >(val2);
31347 {
31348 arg3 = wxString_in_helper(obj2);
31349 if (arg3 == NULL) SWIG_fail;
31350 temp3 = true;
31351 }
31352 if (obj3) {
31353 ecode4 = SWIG_AsVal_int(obj3, &val4);
31354 if (!SWIG_IsOK(ecode4)) {
31355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31356 }
31357 arg4 = static_cast< int >(val4);
31358 }
31359 if (obj4) {
31360 ecode5 = SWIG_AsVal_int(obj4, &val5);
31361 if (!SWIG_IsOK(ecode5)) {
31362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31363 }
31364 arg5 = static_cast< int >(val5);
31365 }
31366 {
31367 PyThreadState* __tstate = wxPyBeginAllowThreads();
31368 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31369 wxPyEndAllowThreads(__tstate);
31370 if (PyErr_Occurred()) SWIG_fail;
31371 }
31372 resultobj = SWIG_From_long(static_cast< long >(result));
31373 {
31374 if (temp3)
31375 delete arg3;
31376 }
31377 return resultobj;
31378fail:
31379 {
31380 if (temp3)
31381 delete arg3;
31382 }
31383 return NULL;
31384}
31385
31386
31387SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31388 PyObject *resultobj = 0;
31389 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31390 long arg2 ;
31391 void *argp1 = 0 ;
31392 int res1 = 0 ;
31393 long val2 ;
31394 int ecode2 = 0 ;
31395 PyObject * obj0 = 0 ;
31396 PyObject * obj1 = 0 ;
31397 char * kwnames[] = {
31398 (char *) "self",(char *) "count", NULL
31399 };
31400
31401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31403 if (!SWIG_IsOK(res1)) {
31404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31405 }
31406 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31407 ecode2 = SWIG_AsVal_long(obj1, &val2);
31408 if (!SWIG_IsOK(ecode2)) {
31409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31410 }
31411 arg2 = static_cast< long >(val2);
31412 {
31413 PyThreadState* __tstate = wxPyBeginAllowThreads();
31414 (arg1)->SetItemCount(arg2);
31415 wxPyEndAllowThreads(__tstate);
31416 if (PyErr_Occurred()) SWIG_fail;
31417 }
31418 resultobj = SWIG_Py_Void();
31419 return resultobj;
31420fail:
31421 return NULL;
31422}
31423
31424
31425SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31426 PyObject *resultobj = 0;
31427 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31428 int arg2 ;
31429 int arg3 ;
31430 bool result;
31431 void *argp1 = 0 ;
31432 int res1 = 0 ;
31433 int val2 ;
31434 int ecode2 = 0 ;
31435 int val3 ;
31436 int ecode3 = 0 ;
31437 PyObject * obj0 = 0 ;
31438 PyObject * obj1 = 0 ;
31439 PyObject * obj2 = 0 ;
31440 char * kwnames[] = {
31441 (char *) "self",(char *) "dx",(char *) "dy", NULL
31442 };
31443
31444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31446 if (!SWIG_IsOK(res1)) {
31447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31448 }
31449 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31450 ecode2 = SWIG_AsVal_int(obj1, &val2);
31451 if (!SWIG_IsOK(ecode2)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31453 }
31454 arg2 = static_cast< int >(val2);
31455 ecode3 = SWIG_AsVal_int(obj2, &val3);
31456 if (!SWIG_IsOK(ecode3)) {
31457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31458 }
31459 arg3 = static_cast< int >(val3);
31460 {
31461 PyThreadState* __tstate = wxPyBeginAllowThreads();
31462 result = (bool)(arg1)->ScrollList(arg2,arg3);
31463 wxPyEndAllowThreads(__tstate);
31464 if (PyErr_Occurred()) SWIG_fail;
31465 }
31466 {
31467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31468 }
31469 return resultobj;
31470fail:
31471 return NULL;
31472}
31473
31474
31475SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31476 PyObject *resultobj = 0;
31477 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31478 long arg2 ;
31479 wxColour *arg3 = 0 ;
31480 void *argp1 = 0 ;
31481 int res1 = 0 ;
31482 long val2 ;
31483 int ecode2 = 0 ;
31484 wxColour temp3 ;
31485 PyObject * obj0 = 0 ;
31486 PyObject * obj1 = 0 ;
31487 PyObject * obj2 = 0 ;
31488 char * kwnames[] = {
31489 (char *) "self",(char *) "item",(char *) "col", NULL
31490 };
31491
31492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31494 if (!SWIG_IsOK(res1)) {
31495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31496 }
31497 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31498 ecode2 = SWIG_AsVal_long(obj1, &val2);
31499 if (!SWIG_IsOK(ecode2)) {
31500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31501 }
31502 arg2 = static_cast< long >(val2);
31503 {
31504 arg3 = &temp3;
31505 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31506 }
31507 {
31508 PyThreadState* __tstate = wxPyBeginAllowThreads();
31509 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31510 wxPyEndAllowThreads(__tstate);
31511 if (PyErr_Occurred()) SWIG_fail;
31512 }
31513 resultobj = SWIG_Py_Void();
31514 return resultobj;
31515fail:
31516 return NULL;
31517}
31518
31519
31520SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31521 PyObject *resultobj = 0;
31522 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31523 long arg2 ;
31524 wxColour result;
31525 void *argp1 = 0 ;
31526 int res1 = 0 ;
31527 long val2 ;
31528 int ecode2 = 0 ;
31529 PyObject * obj0 = 0 ;
31530 PyObject * obj1 = 0 ;
31531 char * kwnames[] = {
31532 (char *) "self",(char *) "item", NULL
31533 };
31534
31535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31537 if (!SWIG_IsOK(res1)) {
31538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31539 }
31540 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31541 ecode2 = SWIG_AsVal_long(obj1, &val2);
31542 if (!SWIG_IsOK(ecode2)) {
31543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31544 }
31545 arg2 = static_cast< long >(val2);
31546 {
31547 PyThreadState* __tstate = wxPyBeginAllowThreads();
31548 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31549 wxPyEndAllowThreads(__tstate);
31550 if (PyErr_Occurred()) SWIG_fail;
31551 }
31552 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31553 return resultobj;
31554fail:
31555 return NULL;
31556}
31557
31558
31559SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31560 PyObject *resultobj = 0;
31561 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31562 long arg2 ;
31563 wxColour *arg3 = 0 ;
31564 void *argp1 = 0 ;
31565 int res1 = 0 ;
31566 long val2 ;
31567 int ecode2 = 0 ;
31568 wxColour temp3 ;
31569 PyObject * obj0 = 0 ;
31570 PyObject * obj1 = 0 ;
31571 PyObject * obj2 = 0 ;
31572 char * kwnames[] = {
31573 (char *) "self",(char *) "item",(char *) "col", NULL
31574 };
31575
31576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31578 if (!SWIG_IsOK(res1)) {
31579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31580 }
31581 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31582 ecode2 = SWIG_AsVal_long(obj1, &val2);
31583 if (!SWIG_IsOK(ecode2)) {
31584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31585 }
31586 arg2 = static_cast< long >(val2);
31587 {
31588 arg3 = &temp3;
31589 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31590 }
31591 {
31592 PyThreadState* __tstate = wxPyBeginAllowThreads();
31593 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31594 wxPyEndAllowThreads(__tstate);
31595 if (PyErr_Occurred()) SWIG_fail;
31596 }
31597 resultobj = SWIG_Py_Void();
31598 return resultobj;
31599fail:
31600 return NULL;
31601}
31602
31603
31604SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31605 PyObject *resultobj = 0;
31606 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31607 long arg2 ;
31608 wxColour result;
31609 void *argp1 = 0 ;
31610 int res1 = 0 ;
31611 long val2 ;
31612 int ecode2 = 0 ;
31613 PyObject * obj0 = 0 ;
31614 PyObject * obj1 = 0 ;
31615 char * kwnames[] = {
31616 (char *) "self",(char *) "item", NULL
31617 };
31618
31619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31621 if (!SWIG_IsOK(res1)) {
31622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31623 }
31624 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31625 ecode2 = SWIG_AsVal_long(obj1, &val2);
31626 if (!SWIG_IsOK(ecode2)) {
31627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31628 }
31629 arg2 = static_cast< long >(val2);
31630 {
31631 PyThreadState* __tstate = wxPyBeginAllowThreads();
31632 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31633 wxPyEndAllowThreads(__tstate);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31637 return resultobj;
31638fail:
31639 return NULL;
31640}
31641
31642
31643SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31644 PyObject *resultobj = 0;
31645 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31646 long arg2 ;
31647 wxFont *arg3 = 0 ;
31648 void *argp1 = 0 ;
31649 int res1 = 0 ;
31650 long val2 ;
31651 int ecode2 = 0 ;
31652 void *argp3 = 0 ;
31653 int res3 = 0 ;
31654 PyObject * obj0 = 0 ;
31655 PyObject * obj1 = 0 ;
31656 PyObject * obj2 = 0 ;
31657 char * kwnames[] = {
31658 (char *) "self",(char *) "item",(char *) "f", NULL
31659 };
31660
31661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31663 if (!SWIG_IsOK(res1)) {
31664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31665 }
31666 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31667 ecode2 = SWIG_AsVal_long(obj1, &val2);
31668 if (!SWIG_IsOK(ecode2)) {
31669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31670 }
31671 arg2 = static_cast< long >(val2);
31672 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31673 if (!SWIG_IsOK(res3)) {
31674 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31675 }
31676 if (!argp3) {
31677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31678 }
31679 arg3 = reinterpret_cast< wxFont * >(argp3);
31680 {
31681 PyThreadState* __tstate = wxPyBeginAllowThreads();
31682 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31683 wxPyEndAllowThreads(__tstate);
31684 if (PyErr_Occurred()) SWIG_fail;
31685 }
31686 resultobj = SWIG_Py_Void();
31687 return resultobj;
31688fail:
31689 return NULL;
31690}
31691
31692
31693SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31694 PyObject *resultobj = 0;
31695 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31696 long arg2 ;
31697 wxFont result;
31698 void *argp1 = 0 ;
31699 int res1 = 0 ;
31700 long val2 ;
31701 int ecode2 = 0 ;
31702 PyObject * obj0 = 0 ;
31703 PyObject * obj1 = 0 ;
31704 char * kwnames[] = {
31705 (char *) "self",(char *) "item", NULL
31706 };
31707
31708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31710 if (!SWIG_IsOK(res1)) {
31711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31712 }
31713 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31714 ecode2 = SWIG_AsVal_long(obj1, &val2);
31715 if (!SWIG_IsOK(ecode2)) {
31716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31717 }
31718 arg2 = static_cast< long >(val2);
31719 {
31720 PyThreadState* __tstate = wxPyBeginAllowThreads();
31721 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31722 wxPyEndAllowThreads(__tstate);
31723 if (PyErr_Occurred()) SWIG_fail;
31724 }
31725 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31726 return resultobj;
31727fail:
31728 return NULL;
31729}
31730
31731
31732SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31733 PyObject *resultobj = 0;
31734 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31735 PyObject *arg2 = (PyObject *) 0 ;
31736 bool result;
31737 void *argp1 = 0 ;
31738 int res1 = 0 ;
31739 PyObject * obj0 = 0 ;
31740 PyObject * obj1 = 0 ;
31741 char * kwnames[] = {
31742 (char *) "self",(char *) "func", NULL
31743 };
31744
31745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31747 if (!SWIG_IsOK(res1)) {
31748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31749 }
31750 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31751 arg2 = obj1;
31752 {
31753 PyThreadState* __tstate = wxPyBeginAllowThreads();
31754 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31755 wxPyEndAllowThreads(__tstate);
31756 if (PyErr_Occurred()) SWIG_fail;
31757 }
31758 {
31759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31760 }
31761 return resultobj;
31762fail:
31763 return NULL;
7e08d4ef
RD
31764}
31765
31766
0085ce49
RD
31767SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31768 PyObject *resultobj = 0;
31769 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31770 wxWindow *result = 0 ;
31771 void *argp1 = 0 ;
31772 int res1 = 0 ;
31773 PyObject *swig_obj[1] ;
31774
31775 if (!args) SWIG_fail;
31776 swig_obj[0] = args;
31777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31778 if (!SWIG_IsOK(res1)) {
31779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31780 }
31781 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31782 {
31783 PyThreadState* __tstate = wxPyBeginAllowThreads();
31784 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31785 wxPyEndAllowThreads(__tstate);
31786 if (PyErr_Occurred()) SWIG_fail;
31787 }
31788 {
31789 resultobj = wxPyMake_wxObject(result, 0);
31790 }
31791 return resultobj;
31792fail:
31793 return NULL;
31794}
31795
31796
31797SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31798 PyObject *resultobj = 0;
31799 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31800 SwigValueWrapper<wxVisualAttributes > result;
31801 int val1 ;
31802 int ecode1 = 0 ;
31803 PyObject * obj0 = 0 ;
31804 char * kwnames[] = {
31805 (char *) "variant", NULL
31806 };
31807
31808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31809 if (obj0) {
31810 ecode1 = SWIG_AsVal_int(obj0, &val1);
31811 if (!SWIG_IsOK(ecode1)) {
31812 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31813 }
31814 arg1 = static_cast< wxWindowVariant >(val1);
31815 }
31816 {
31817 if (!wxPyCheckForApp()) SWIG_fail;
31818 PyThreadState* __tstate = wxPyBeginAllowThreads();
31819 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31820 wxPyEndAllowThreads(__tstate);
31821 if (PyErr_Occurred()) SWIG_fail;
31822 }
31823 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31824 return resultobj;
31825fail:
31826 return NULL;
31827}
31828
31829
31830SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31831 PyObject *obj;
31832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31833 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31834 return SWIG_Py_Void();
31835}
31836
31837SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31838 return SWIG_Python_InitShadowInstance(args);
31839}
31840
31841SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31842 PyObject *resultobj = 0;
31843 wxWindow *arg1 = (wxWindow *) 0 ;
31844 int arg2 = (int) -1 ;
31845 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31846 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31847 wxSize const &arg4_defvalue = wxDefaultSize ;
31848 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31849 long arg5 = (long) wxLC_REPORT ;
31850 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31851 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31852 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31853 wxString *arg7 = (wxString *) &arg7_defvalue ;
31854 wxListView *result = 0 ;
31855 void *argp1 = 0 ;
31856 int res1 = 0 ;
31857 int val2 ;
31858 int ecode2 = 0 ;
31859 wxPoint temp3 ;
31860 wxSize temp4 ;
31861 long val5 ;
31862 int ecode5 = 0 ;
31863 void *argp6 = 0 ;
31864 int res6 = 0 ;
31865 bool temp7 = false ;
31866 PyObject * obj0 = 0 ;
31867 PyObject * obj1 = 0 ;
31868 PyObject * obj2 = 0 ;
31869 PyObject * obj3 = 0 ;
31870 PyObject * obj4 = 0 ;
31871 PyObject * obj5 = 0 ;
31872 PyObject * obj6 = 0 ;
31873 char * kwnames[] = {
31874 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31875 };
31876
31877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31879 if (!SWIG_IsOK(res1)) {
31880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31881 }
31882 arg1 = reinterpret_cast< wxWindow * >(argp1);
31883 if (obj1) {
31884 ecode2 = SWIG_AsVal_int(obj1, &val2);
31885 if (!SWIG_IsOK(ecode2)) {
31886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31887 }
31888 arg2 = static_cast< int >(val2);
31889 }
31890 if (obj2) {
7e08d4ef 31891 {
0085ce49
RD
31892 arg3 = &temp3;
31893 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 31894 }
0085ce49
RD
31895 }
31896 if (obj3) {
7e08d4ef 31897 {
0085ce49
RD
31898 arg4 = &temp4;
31899 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 31900 }
0085ce49
RD
31901 }
31902 if (obj4) {
31903 ecode5 = SWIG_AsVal_long(obj4, &val5);
31904 if (!SWIG_IsOK(ecode5)) {
31905 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31906 }
31907 arg5 = static_cast< long >(val5);
31908 }
31909 if (obj5) {
31910 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31911 if (!SWIG_IsOK(res6)) {
31912 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31913 }
0085ce49
RD
31914 if (!argp6) {
31915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 31916 }
0085ce49
RD
31917 arg6 = reinterpret_cast< wxValidator * >(argp6);
31918 }
31919 if (obj6) {
7e08d4ef 31920 {
0085ce49
RD
31921 arg7 = wxString_in_helper(obj6);
31922 if (arg7 == NULL) SWIG_fail;
31923 temp7 = true;
7e08d4ef 31924 }
0085ce49
RD
31925 }
31926 {
31927 if (!wxPyCheckForApp()) SWIG_fail;
31928 PyThreadState* __tstate = wxPyBeginAllowThreads();
31929 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31930 wxPyEndAllowThreads(__tstate);
31931 if (PyErr_Occurred()) SWIG_fail;
31932 }
31933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31934 {
31935 if (temp7)
31936 delete arg7;
31937 }
31938 return resultobj;
31939fail:
31940 {
31941 if (temp7)
31942 delete arg7;
31943 }
31944 return NULL;
7e08d4ef
RD
31945}
31946
31947
0085ce49
RD
31948SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31949 PyObject *resultobj = 0;
31950 wxListView *result = 0 ;
31951
31952 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31953 {
31954 if (!wxPyCheckForApp()) SWIG_fail;
31955 PyThreadState* __tstate = wxPyBeginAllowThreads();
31956 result = (wxListView *)new wxListView();
31957 wxPyEndAllowThreads(__tstate);
31958 if (PyErr_Occurred()) SWIG_fail;
31959 }
31960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31961 return resultobj;
31962fail:
31963 return NULL;
31964}
31965
31966
31967SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31968 PyObject *resultobj = 0;
31969 wxListView *arg1 = (wxListView *) 0 ;
31970 wxWindow *arg2 = (wxWindow *) 0 ;
31971 int arg3 = (int) -1 ;
31972 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31973 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31974 wxSize const &arg5_defvalue = wxDefaultSize ;
31975 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31976 long arg6 = (long) wxLC_REPORT ;
31977 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31978 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31979 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31980 wxString *arg8 = (wxString *) &arg8_defvalue ;
31981 bool result;
31982 void *argp1 = 0 ;
31983 int res1 = 0 ;
31984 void *argp2 = 0 ;
31985 int res2 = 0 ;
31986 int val3 ;
31987 int ecode3 = 0 ;
31988 wxPoint temp4 ;
31989 wxSize temp5 ;
31990 long val6 ;
31991 int ecode6 = 0 ;
31992 void *argp7 = 0 ;
31993 int res7 = 0 ;
31994 bool temp8 = false ;
31995 PyObject * obj0 = 0 ;
31996 PyObject * obj1 = 0 ;
31997 PyObject * obj2 = 0 ;
31998 PyObject * obj3 = 0 ;
31999 PyObject * obj4 = 0 ;
32000 PyObject * obj5 = 0 ;
32001 PyObject * obj6 = 0 ;
32002 PyObject * obj7 = 0 ;
32003 char * kwnames[] = {
32004 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32005 };
32006
32007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32009 if (!SWIG_IsOK(res1)) {
32010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32011 }
32012 arg1 = reinterpret_cast< wxListView * >(argp1);
32013 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32014 if (!SWIG_IsOK(res2)) {
32015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32016 }
32017 arg2 = reinterpret_cast< wxWindow * >(argp2);
32018 if (obj2) {
32019 ecode3 = SWIG_AsVal_int(obj2, &val3);
32020 if (!SWIG_IsOK(ecode3)) {
32021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32022 }
32023 arg3 = static_cast< int >(val3);
32024 }
32025 if (obj3) {
7e08d4ef 32026 {
0085ce49
RD
32027 arg4 = &temp4;
32028 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 32029 }
0085ce49
RD
32030 }
32031 if (obj4) {
7e08d4ef 32032 {
0085ce49
RD
32033 arg5 = &temp5;
32034 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 32035 }
0085ce49
RD
32036 }
32037 if (obj5) {
32038 ecode6 = SWIG_AsVal_long(obj5, &val6);
32039 if (!SWIG_IsOK(ecode6)) {
32040 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32041 }
32042 arg6 = static_cast< long >(val6);
32043 }
32044 if (obj6) {
32045 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32046 if (!SWIG_IsOK(res7)) {
32047 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32048 }
0085ce49
RD
32049 if (!argp7) {
32050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32051 }
0085ce49
RD
32052 arg7 = reinterpret_cast< wxValidator * >(argp7);
32053 }
32054 if (obj7) {
7e08d4ef 32055 {
0085ce49
RD
32056 arg8 = wxString_in_helper(obj7);
32057 if (arg8 == NULL) SWIG_fail;
32058 temp8 = true;
7e08d4ef 32059 }
0085ce49
RD
32060 }
32061 {
32062 PyThreadState* __tstate = wxPyBeginAllowThreads();
32063 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32064 wxPyEndAllowThreads(__tstate);
32065 if (PyErr_Occurred()) SWIG_fail;
32066 }
32067 {
32068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32069 }
32070 {
32071 if (temp8)
32072 delete arg8;
32073 }
32074 return resultobj;
32075fail:
32076 {
32077 if (temp8)
32078 delete arg8;
32079 }
32080 return NULL;
32081}
32082
32083
32084SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32085 PyObject *resultobj = 0;
32086 wxListView *arg1 = (wxListView *) 0 ;
32087 long arg2 ;
32088 bool arg3 = (bool) true ;
32089 void *argp1 = 0 ;
32090 int res1 = 0 ;
32091 long val2 ;
32092 int ecode2 = 0 ;
32093 bool val3 ;
32094 int ecode3 = 0 ;
32095 PyObject * obj0 = 0 ;
32096 PyObject * obj1 = 0 ;
32097 PyObject * obj2 = 0 ;
32098 char * kwnames[] = {
32099 (char *) "self",(char *) "n",(char *) "on", NULL
32100 };
32101
32102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32104 if (!SWIG_IsOK(res1)) {
32105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32106 }
32107 arg1 = reinterpret_cast< wxListView * >(argp1);
32108 ecode2 = SWIG_AsVal_long(obj1, &val2);
32109 if (!SWIG_IsOK(ecode2)) {
32110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32111 }
32112 arg2 = static_cast< long >(val2);
32113 if (obj2) {
32114 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32115 if (!SWIG_IsOK(ecode3)) {
32116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32117 }
32118 arg3 = static_cast< bool >(val3);
32119 }
32120 {
32121 PyThreadState* __tstate = wxPyBeginAllowThreads();
32122 (arg1)->Select(arg2,arg3);
32123 wxPyEndAllowThreads(__tstate);
32124 if (PyErr_Occurred()) SWIG_fail;
32125 }
32126 resultobj = SWIG_Py_Void();
32127 return resultobj;
32128fail:
32129 return NULL;
32130}
32131
32132
32133SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32134 PyObject *resultobj = 0;
32135 wxListView *arg1 = (wxListView *) 0 ;
32136 long arg2 ;
32137 void *argp1 = 0 ;
32138 int res1 = 0 ;
32139 long val2 ;
32140 int ecode2 = 0 ;
32141 PyObject * obj0 = 0 ;
32142 PyObject * obj1 = 0 ;
32143 char * kwnames[] = {
32144 (char *) "self",(char *) "index", NULL
32145 };
32146
32147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32149 if (!SWIG_IsOK(res1)) {
32150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32151 }
32152 arg1 = reinterpret_cast< wxListView * >(argp1);
32153 ecode2 = SWIG_AsVal_long(obj1, &val2);
32154 if (!SWIG_IsOK(ecode2)) {
32155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32156 }
32157 arg2 = static_cast< long >(val2);
32158 {
32159 PyThreadState* __tstate = wxPyBeginAllowThreads();
32160 (arg1)->Focus(arg2);
32161 wxPyEndAllowThreads(__tstate);
32162 if (PyErr_Occurred()) SWIG_fail;
32163 }
32164 resultobj = SWIG_Py_Void();
32165 return resultobj;
32166fail:
32167 return NULL;
7e08d4ef
RD
32168}
32169
32170
0085ce49
RD
32171SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32172 PyObject *resultobj = 0;
32173 wxListView *arg1 = (wxListView *) 0 ;
32174 long result;
32175 void *argp1 = 0 ;
32176 int res1 = 0 ;
32177 PyObject *swig_obj[1] ;
32178
32179 if (!args) SWIG_fail;
32180 swig_obj[0] = args;
32181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32182 if (!SWIG_IsOK(res1)) {
32183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32184 }
32185 arg1 = reinterpret_cast< wxListView * >(argp1);
32186 {
32187 PyThreadState* __tstate = wxPyBeginAllowThreads();
32188 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32189 wxPyEndAllowThreads(__tstate);
32190 if (PyErr_Occurred()) SWIG_fail;
32191 }
32192 resultobj = SWIG_From_long(static_cast< long >(result));
32193 return resultobj;
32194fail:
32195 return NULL;
32196}
32197
32198
32199SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32200 PyObject *resultobj = 0;
32201 wxListView *arg1 = (wxListView *) 0 ;
32202 long arg2 ;
32203 long result;
32204 void *argp1 = 0 ;
32205 int res1 = 0 ;
32206 long val2 ;
32207 int ecode2 = 0 ;
32208 PyObject * obj0 = 0 ;
32209 PyObject * obj1 = 0 ;
32210 char * kwnames[] = {
32211 (char *) "self",(char *) "item", NULL
32212 };
32213
32214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32216 if (!SWIG_IsOK(res1)) {
32217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32218 }
32219 arg1 = reinterpret_cast< wxListView * >(argp1);
32220 ecode2 = SWIG_AsVal_long(obj1, &val2);
32221 if (!SWIG_IsOK(ecode2)) {
32222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32223 }
32224 arg2 = static_cast< long >(val2);
32225 {
32226 PyThreadState* __tstate = wxPyBeginAllowThreads();
32227 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32228 wxPyEndAllowThreads(__tstate);
32229 if (PyErr_Occurred()) SWIG_fail;
32230 }
32231 resultobj = SWIG_From_long(static_cast< long >(result));
32232 return resultobj;
32233fail:
32234 return NULL;
7e08d4ef
RD
32235}
32236
32237
0085ce49
RD
32238SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32239 PyObject *resultobj = 0;
32240 wxListView *arg1 = (wxListView *) 0 ;
32241 long result;
32242 void *argp1 = 0 ;
32243 int res1 = 0 ;
32244 PyObject *swig_obj[1] ;
32245
32246 if (!args) SWIG_fail;
32247 swig_obj[0] = args;
32248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32249 if (!SWIG_IsOK(res1)) {
32250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32251 }
32252 arg1 = reinterpret_cast< wxListView * >(argp1);
32253 {
32254 PyThreadState* __tstate = wxPyBeginAllowThreads();
32255 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32256 wxPyEndAllowThreads(__tstate);
32257 if (PyErr_Occurred()) SWIG_fail;
32258 }
32259 resultobj = SWIG_From_long(static_cast< long >(result));
32260 return resultobj;
32261fail:
32262 return NULL;
32263}
32264
32265
32266SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32267 PyObject *resultobj = 0;
32268 wxListView *arg1 = (wxListView *) 0 ;
32269 long arg2 ;
32270 bool result;
32271 void *argp1 = 0 ;
32272 int res1 = 0 ;
32273 long val2 ;
32274 int ecode2 = 0 ;
32275 PyObject * obj0 = 0 ;
32276 PyObject * obj1 = 0 ;
32277 char * kwnames[] = {
32278 (char *) "self",(char *) "index", NULL
32279 };
32280
32281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32283 if (!SWIG_IsOK(res1)) {
32284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32285 }
32286 arg1 = reinterpret_cast< wxListView * >(argp1);
32287 ecode2 = SWIG_AsVal_long(obj1, &val2);
32288 if (!SWIG_IsOK(ecode2)) {
32289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32290 }
32291 arg2 = static_cast< long >(val2);
32292 {
32293 PyThreadState* __tstate = wxPyBeginAllowThreads();
32294 result = (bool)(arg1)->IsSelected(arg2);
32295 wxPyEndAllowThreads(__tstate);
32296 if (PyErr_Occurred()) SWIG_fail;
32297 }
32298 {
32299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32300 }
32301 return resultobj;
32302fail:
32303 return NULL;
32304}
32305
32306
32307SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32308 PyObject *resultobj = 0;
32309 wxListView *arg1 = (wxListView *) 0 ;
32310 int arg2 ;
32311 int arg3 ;
32312 void *argp1 = 0 ;
32313 int res1 = 0 ;
32314 int val2 ;
32315 int ecode2 = 0 ;
32316 int val3 ;
32317 int ecode3 = 0 ;
32318 PyObject * obj0 = 0 ;
32319 PyObject * obj1 = 0 ;
32320 PyObject * obj2 = 0 ;
32321 char * kwnames[] = {
32322 (char *) "self",(char *) "col",(char *) "image", NULL
32323 };
32324
32325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32327 if (!SWIG_IsOK(res1)) {
32328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32329 }
32330 arg1 = reinterpret_cast< wxListView * >(argp1);
32331 ecode2 = SWIG_AsVal_int(obj1, &val2);
32332 if (!SWIG_IsOK(ecode2)) {
32333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32334 }
32335 arg2 = static_cast< int >(val2);
32336 ecode3 = SWIG_AsVal_int(obj2, &val3);
32337 if (!SWIG_IsOK(ecode3)) {
32338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32339 }
32340 arg3 = static_cast< int >(val3);
32341 {
32342 PyThreadState* __tstate = wxPyBeginAllowThreads();
32343 (arg1)->SetColumnImage(arg2,arg3);
32344 wxPyEndAllowThreads(__tstate);
32345 if (PyErr_Occurred()) SWIG_fail;
32346 }
32347 resultobj = SWIG_Py_Void();
32348 return resultobj;
32349fail:
32350 return NULL;
32351}
32352
32353
32354SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32355 PyObject *resultobj = 0;
32356 wxListView *arg1 = (wxListView *) 0 ;
32357 int arg2 ;
32358 void *argp1 = 0 ;
32359 int res1 = 0 ;
32360 int val2 ;
32361 int ecode2 = 0 ;
32362 PyObject * obj0 = 0 ;
32363 PyObject * obj1 = 0 ;
32364 char * kwnames[] = {
32365 (char *) "self",(char *) "col", NULL
32366 };
32367
32368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32370 if (!SWIG_IsOK(res1)) {
32371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32372 }
32373 arg1 = reinterpret_cast< wxListView * >(argp1);
32374 ecode2 = SWIG_AsVal_int(obj1, &val2);
32375 if (!SWIG_IsOK(ecode2)) {
32376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32377 }
32378 arg2 = static_cast< int >(val2);
32379 {
32380 PyThreadState* __tstate = wxPyBeginAllowThreads();
32381 (arg1)->ClearColumnImage(arg2);
32382 wxPyEndAllowThreads(__tstate);
32383 if (PyErr_Occurred()) SWIG_fail;
32384 }
32385 resultobj = SWIG_Py_Void();
32386 return resultobj;
32387fail:
32388 return NULL;
7e08d4ef
RD
32389}
32390
32391
0085ce49
RD
32392SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32393 PyObject *obj;
32394 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32395 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32396 return SWIG_Py_Void();
7e08d4ef
RD
32397}
32398
0085ce49
RD
32399SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32400 return SWIG_Python_InitShadowInstance(args);
32401}
7e08d4ef 32402
0085ce49
RD
32403SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32404 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32405 return 1;
7e08d4ef
RD
32406}
32407
32408
0085ce49
RD
32409SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32410 PyObject *pyobj = 0;
32411
32412 {
32413#if wxUSE_UNICODE
32414 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32415#else
32416 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32417#endif
32418 }
32419 return pyobj;
7e08d4ef
RD
32420}
32421
32422
0085ce49
RD
32423SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32424 PyObject *resultobj = 0;
32425 wxTreeItemId *result = 0 ;
32426
32427 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32428 {
32429 PyThreadState* __tstate = wxPyBeginAllowThreads();
32430 result = (wxTreeItemId *)new wxTreeItemId();
32431 wxPyEndAllowThreads(__tstate);
32432 if (PyErr_Occurred()) SWIG_fail;
32433 }
32434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32435 return resultobj;
32436fail:
32437 return NULL;
d14a1e28
RD
32438}
32439
32440
0085ce49
RD
32441SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32442 PyObject *resultobj = 0;
32443 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32444 void *argp1 = 0 ;
32445 int res1 = 0 ;
32446 PyObject *swig_obj[1] ;
32447
32448 if (!args) SWIG_fail;
32449 swig_obj[0] = args;
32450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32451 if (!SWIG_IsOK(res1)) {
32452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32453 }
32454 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32455 {
32456 PyThreadState* __tstate = wxPyBeginAllowThreads();
32457 delete arg1;
7e08d4ef 32458
0085ce49
RD
32459 wxPyEndAllowThreads(__tstate);
32460 if (PyErr_Occurred()) SWIG_fail;
32461 }
32462 resultobj = SWIG_Py_Void();
32463 return resultobj;
32464fail:
32465 return NULL;
7e08d4ef
RD
32466}
32467
32468
0085ce49
RD
32469SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32470 PyObject *resultobj = 0;
32471 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32472 bool result;
32473 void *argp1 = 0 ;
32474 int res1 = 0 ;
32475 PyObject *swig_obj[1] ;
32476
32477 if (!args) SWIG_fail;
32478 swig_obj[0] = args;
32479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32480 if (!SWIG_IsOK(res1)) {
32481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32482 }
32483 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32484 {
32485 PyThreadState* __tstate = wxPyBeginAllowThreads();
32486 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32487 wxPyEndAllowThreads(__tstate);
32488 if (PyErr_Occurred()) SWIG_fail;
32489 }
32490 {
32491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32492 }
32493 return resultobj;
32494fail:
32495 return NULL;
32496}
32497
32498
32499SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32500 PyObject *resultobj = 0;
32501 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32502 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32503 bool result;
32504 void *argp1 = 0 ;
32505 int res1 = 0 ;
32506 void *argp2 = 0 ;
32507 int res2 = 0 ;
32508 PyObject * obj0 = 0 ;
32509 PyObject * obj1 = 0 ;
32510 char * kwnames[] = {
32511 (char *) "self",(char *) "other", NULL
32512 };
32513
32514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32516 if (!SWIG_IsOK(res1)) {
32517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32518 }
32519 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32520 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32521 if (!SWIG_IsOK(res2)) {
32522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32523 }
32524 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32525 {
32526 PyThreadState* __tstate = wxPyBeginAllowThreads();
32527 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32528 wxPyEndAllowThreads(__tstate);
32529 if (PyErr_Occurred()) SWIG_fail;
32530 }
32531 {
32532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32533 }
32534 return resultobj;
32535fail:
32536 return NULL;
32537}
32538
32539
32540SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32541 PyObject *resultobj = 0;
32542 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32543 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32544 bool result;
32545 void *argp1 = 0 ;
32546 int res1 = 0 ;
32547 void *argp2 = 0 ;
32548 int res2 = 0 ;
32549 PyObject * obj0 = 0 ;
32550 PyObject * obj1 = 0 ;
32551 char * kwnames[] = {
32552 (char *) "self",(char *) "other", NULL
32553 };
32554
32555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32557 if (!SWIG_IsOK(res1)) {
32558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32559 }
32560 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32561 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32562 if (!SWIG_IsOK(res2)) {
32563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32564 }
32565 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32566 {
32567 PyThreadState* __tstate = wxPyBeginAllowThreads();
32568 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32569 wxPyEndAllowThreads(__tstate);
32570 if (PyErr_Occurred()) SWIG_fail;
32571 }
32572 {
32573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32574 }
32575 return resultobj;
32576fail:
32577 return NULL;
7e08d4ef
RD
32578}
32579
32580
0085ce49
RD
32581SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32582 PyObject *resultobj = 0;
32583 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32584 void *arg2 = (void *) 0 ;
32585 void *argp1 = 0 ;
32586 int res1 = 0 ;
32587 int res2 ;
32588 PyObject *swig_obj[2] ;
32589
32590 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32592 if (!SWIG_IsOK(res1)) {
32593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32594 }
32595 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32596 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32597 if (!SWIG_IsOK(res2)) {
32598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32599 }
32600 if (arg1) (arg1)->m_pItem = arg2;
32601
32602 resultobj = SWIG_Py_Void();
32603 return resultobj;
32604fail:
32605 return NULL;
7e08d4ef
RD
32606}
32607
32608
0085ce49
RD
32609SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32610 PyObject *resultobj = 0;
32611 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32612 void *result = 0 ;
32613 void *argp1 = 0 ;
32614 int res1 = 0 ;
32615 PyObject *swig_obj[1] ;
32616
32617 if (!args) SWIG_fail;
32618 swig_obj[0] = args;
32619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32620 if (!SWIG_IsOK(res1)) {
32621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32622 }
32623 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32624 result = (void *) ((arg1)->m_pItem);
32625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32626 return resultobj;
32627fail:
32628 return NULL;
7e08d4ef
RD
32629}
32630
32631
0085ce49
RD
32632SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32633 PyObject *obj;
32634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32635 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32636 return SWIG_Py_Void();
7e08d4ef
RD
32637}
32638
0085ce49
RD
32639SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32640 return SWIG_Python_InitShadowInstance(args);
32641}
7e08d4ef 32642
0085ce49
RD
32643SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32644 PyObject *resultobj = 0;
32645 PyObject *arg1 = (PyObject *) NULL ;
32646 wxPyTreeItemData *result = 0 ;
32647 PyObject * obj0 = 0 ;
32648 char * kwnames[] = {
32649 (char *) "obj", NULL
32650 };
32651
32652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32653 if (obj0) {
32654 arg1 = obj0;
32655 }
32656 {
32657 PyThreadState* __tstate = wxPyBeginAllowThreads();
32658 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32659 wxPyEndAllowThreads(__tstate);
32660 if (PyErr_Occurred()) SWIG_fail;
32661 }
32662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32663 return resultobj;
32664fail:
32665 return NULL;
7e08d4ef
RD
32666}
32667
32668
0085ce49
RD
32669SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32670 PyObject *resultobj = 0;
32671 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32672 void *argp1 = 0 ;
32673 int res1 = 0 ;
32674 PyObject *swig_obj[1] ;
32675
32676 if (!args) SWIG_fail;
32677 swig_obj[0] = args;
32678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32679 if (!SWIG_IsOK(res1)) {
32680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32681 }
32682 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32683 {
32684 PyThreadState* __tstate = wxPyBeginAllowThreads();
32685 delete arg1;
1fbf26be 32686
0085ce49
RD
32687 wxPyEndAllowThreads(__tstate);
32688 if (PyErr_Occurred()) SWIG_fail;
32689 }
32690 resultobj = SWIG_Py_Void();
32691 return resultobj;
32692fail:
32693 return NULL;
1fbf26be
RD
32694}
32695
32696
0085ce49
RD
32697SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32698 PyObject *resultobj = 0;
32699 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32700 PyObject *result = 0 ;
32701 void *argp1 = 0 ;
32702 int res1 = 0 ;
32703 PyObject *swig_obj[1] ;
32704
32705 if (!args) SWIG_fail;
32706 swig_obj[0] = args;
32707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32708 if (!SWIG_IsOK(res1)) {
32709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32710 }
32711 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32712 {
32713 PyThreadState* __tstate = wxPyBeginAllowThreads();
32714 result = (PyObject *)(arg1)->GetData();
32715 wxPyEndAllowThreads(__tstate);
32716 if (PyErr_Occurred()) SWIG_fail;
32717 }
32718 resultobj = result;
32719 return resultobj;
32720fail:
32721 return NULL;
32722}
32723
32724
32725SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32726 PyObject *resultobj = 0;
32727 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32728 PyObject *arg2 = (PyObject *) 0 ;
32729 void *argp1 = 0 ;
32730 int res1 = 0 ;
32731 PyObject * obj0 = 0 ;
32732 PyObject * obj1 = 0 ;
32733 char * kwnames[] = {
32734 (char *) "self",(char *) "obj", NULL
32735 };
32736
32737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32739 if (!SWIG_IsOK(res1)) {
32740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32741 }
32742 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32743 arg2 = obj1;
32744 {
32745 PyThreadState* __tstate = wxPyBeginAllowThreads();
32746 (arg1)->SetData(arg2);
32747 wxPyEndAllowThreads(__tstate);
32748 if (PyErr_Occurred()) SWIG_fail;
32749 }
32750 resultobj = SWIG_Py_Void();
32751 return resultobj;
32752fail:
32753 return NULL;
d14a1e28
RD
32754}
32755
32756
0085ce49
RD
32757SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32758 PyObject *resultobj = 0;
32759 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32760 wxTreeItemId *result = 0 ;
32761 void *argp1 = 0 ;
32762 int res1 = 0 ;
32763 PyObject *swig_obj[1] ;
32764
32765 if (!args) SWIG_fail;
32766 swig_obj[0] = args;
32767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32768 if (!SWIG_IsOK(res1)) {
32769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32770 }
32771 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32772 {
32773 PyThreadState* __tstate = wxPyBeginAllowThreads();
2ef75293 32774 {
0085ce49
RD
32775 wxTreeItemId const &_result_ref = (arg1)->GetId();
32776 result = (wxTreeItemId *) &_result_ref;
2ef75293 32777 }
0085ce49
RD
32778 wxPyEndAllowThreads(__tstate);
32779 if (PyErr_Occurred()) SWIG_fail;
32780 }
32781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32782 return resultobj;
32783fail:
32784 return NULL;
32785}
32786
32787
32788SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32789 PyObject *resultobj = 0;
32790 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32791 wxTreeItemId *arg2 = 0 ;
32792 void *argp1 = 0 ;
32793 int res1 = 0 ;
32794 void *argp2 = 0 ;
32795 int res2 = 0 ;
32796 PyObject * obj0 = 0 ;
32797 PyObject * obj1 = 0 ;
32798 char * kwnames[] = {
32799 (char *) "self",(char *) "id", NULL
32800 };
32801
32802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32804 if (!SWIG_IsOK(res1)) {
32805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32806 }
32807 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32809 if (!SWIG_IsOK(res2)) {
32810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32811 }
32812 if (!argp2) {
32813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32814 }
32815 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32816 {
32817 PyThreadState* __tstate = wxPyBeginAllowThreads();
32818 (arg1)->SetId((wxTreeItemId const &)*arg2);
32819 wxPyEndAllowThreads(__tstate);
32820 if (PyErr_Occurred()) SWIG_fail;
32821 }
32822 resultobj = SWIG_Py_Void();
32823 return resultobj;
32824fail:
32825 return NULL;
2ef75293
RD
32826}
32827
32828
0085ce49
RD
32829SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32830 PyObject *resultobj = 0;
32831 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32832 void *argp1 = 0 ;
32833 int res1 = 0 ;
32834 PyObject *swig_obj[1] ;
32835
32836 if (!args) SWIG_fail;
32837 swig_obj[0] = args;
32838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32839 if (!SWIG_IsOK(res1)) {
32840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32841 }
32842 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32843 {
32844 PyThreadState* __tstate = wxPyBeginAllowThreads();
32845 wxPyTreeItemData_Destroy(arg1);
32846 wxPyEndAllowThreads(__tstate);
32847 if (PyErr_Occurred()) SWIG_fail;
32848 }
32849 resultobj = SWIG_Py_Void();
32850 return resultobj;
32851fail:
32852 return NULL;
2ef75293
RD
32853}
32854
32855
0085ce49
RD
32856SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32857 PyObject *obj;
32858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32859 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32860 return SWIG_Py_Void();
2ef75293
RD
32861}
32862
0085ce49
RD
32863SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32864 return SWIG_Python_InitShadowInstance(args);
32865}
2ef75293 32866
b02396e8
RD
32867SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32868 {
32869 void *argp = 0;
32870 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32871 if (!SWIG_IsOK(res)) {
32872 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32873 }
32874 if (!argp) {
32875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32876 } else {
32877 wxTreeItemId * temp;
32878 temp = reinterpret_cast< wxTreeItemId * >(argp);
32879 wxNullTreeItemId = *temp;
32880 if (SWIG_IsNewObj(res)) delete temp;
32881 }
32882 }
32883 return 0;
32884fail:
32885 return 1;
32886}
32887
32888
32889SWIGINTERN PyObject *NullTreeItemId_get(void) {
32890 PyObject *pyobj = 0;
32891
32892 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32893 return pyobj;
32894}
32895
32896
32897SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
32898 PyObject *resultobj = 0;
32899 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32900 int arg2 = (int) 0 ;
32901 wxTreeEvent *result = 0 ;
32902 int val1 ;
32903 int ecode1 = 0 ;
32904 int val2 ;
32905 int ecode2 = 0 ;
0085ce49 32906
b02396e8
RD
32907 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32908 if (swig_obj[0]) {
32909 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
0085ce49
RD
32910 if (!SWIG_IsOK(ecode1)) {
32911 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32912 }
32913 arg1 = static_cast< wxEventType >(val1);
32914 }
b02396e8
RD
32915 if (swig_obj[1]) {
32916 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
0085ce49
RD
32917 if (!SWIG_IsOK(ecode2)) {
32918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32919 }
32920 arg2 = static_cast< int >(val2);
32921 }
32922 {
32923 PyThreadState* __tstate = wxPyBeginAllowThreads();
32924 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32925 wxPyEndAllowThreads(__tstate);
32926 if (PyErr_Occurred()) SWIG_fail;
32927 }
32928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32929 return resultobj;
32930fail:
32931 return NULL;
70b7a5fe
RD
32932}
32933
32934
b02396e8
RD
32935SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32936 PyObject *resultobj = 0;
32937 wxEventType arg1 ;
32938 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32939 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32940 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32941 wxTreeEvent *result = 0 ;
32942 int val1 ;
32943 int ecode1 = 0 ;
32944 void *argp2 = 0 ;
32945 int res2 = 0 ;
32946 void *argp3 = 0 ;
32947 int res3 = 0 ;
32948
32949 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32950 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32951 if (!SWIG_IsOK(ecode1)) {
32952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32953 }
32954 arg1 = static_cast< wxEventType >(val1);
32955 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32956 if (!SWIG_IsOK(res2)) {
32957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32958 }
32959 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32960 if (swig_obj[2]) {
32961 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32962 if (!SWIG_IsOK(res3)) {
32963 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32964 }
32965 if (!argp3) {
32966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32967 }
32968 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32969 }
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
32972 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
32976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32977 return resultobj;
32978fail:
32979 return NULL;
32980}
32981
32982
32983SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32984 int argc;
32985 PyObject *argv[4];
32986
32987 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32988 --argc;
32989 if ((argc >= 0) && (argc <= 2)) {
32990 int _v = 0;
32991 if (argc > 1) {
32992 {
32993 {
32994 int res = SWIG_AsVal_int(argv[1], NULL);
32995 _v = SWIG_CheckState(res);
32996 }
32997 }
32998 if (!_v) goto check_1;
32999 }
33000 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33001 }
33002check_1:
33003
33004 if ((argc >= 2) && (argc <= 3)) {
33005 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33006 }
33007
33008fail:
33009 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33010 return NULL;
33011}
33012
33013
0085ce49
RD
33014SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33015 PyObject *resultobj = 0;
33016 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33017 wxTreeItemId result;
33018 void *argp1 = 0 ;
33019 int res1 = 0 ;
33020 PyObject *swig_obj[1] ;
33021
33022 if (!args) SWIG_fail;
33023 swig_obj[0] = args;
33024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33025 if (!SWIG_IsOK(res1)) {
33026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33027 }
33028 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33029 {
33030 PyThreadState* __tstate = wxPyBeginAllowThreads();
33031 result = ((wxTreeEvent const *)arg1)->GetItem();
33032 wxPyEndAllowThreads(__tstate);
33033 if (PyErr_Occurred()) SWIG_fail;
33034 }
33035 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33036 return resultobj;
33037fail:
33038 return NULL;
33039}
33040
33041
33042SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33043 PyObject *resultobj = 0;
33044 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33045 wxTreeItemId *arg2 = 0 ;
33046 void *argp1 = 0 ;
33047 int res1 = 0 ;
33048 void *argp2 = 0 ;
33049 int res2 = 0 ;
33050 PyObject * obj0 = 0 ;
33051 PyObject * obj1 = 0 ;
33052 char * kwnames[] = {
33053 (char *) "self",(char *) "item", NULL
33054 };
33055
33056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33058 if (!SWIG_IsOK(res1)) {
33059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33060 }
33061 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33063 if (!SWIG_IsOK(res2)) {
33064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33065 }
33066 if (!argp2) {
33067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33068 }
33069 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33070 {
33071 PyThreadState* __tstate = wxPyBeginAllowThreads();
33072 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33073 wxPyEndAllowThreads(__tstate);
33074 if (PyErr_Occurred()) SWIG_fail;
33075 }
33076 resultobj = SWIG_Py_Void();
33077 return resultobj;
33078fail:
33079 return NULL;
2ef75293
RD
33080}
33081
33082
0085ce49
RD
33083SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33084 PyObject *resultobj = 0;
33085 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33086 wxTreeItemId result;
33087 void *argp1 = 0 ;
33088 int res1 = 0 ;
33089 PyObject *swig_obj[1] ;
33090
33091 if (!args) SWIG_fail;
33092 swig_obj[0] = args;
33093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33094 if (!SWIG_IsOK(res1)) {
33095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33096 }
33097 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33098 {
33099 PyThreadState* __tstate = wxPyBeginAllowThreads();
33100 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33101 wxPyEndAllowThreads(__tstate);
33102 if (PyErr_Occurred()) SWIG_fail;
33103 }
33104 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33105 return resultobj;
33106fail:
33107 return NULL;
33108}
33109
33110
33111SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33112 PyObject *resultobj = 0;
33113 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33114 wxTreeItemId *arg2 = 0 ;
33115 void *argp1 = 0 ;
33116 int res1 = 0 ;
33117 void *argp2 = 0 ;
33118 int res2 = 0 ;
33119 PyObject * obj0 = 0 ;
33120 PyObject * obj1 = 0 ;
33121 char * kwnames[] = {
33122 (char *) "self",(char *) "item", NULL
33123 };
33124
33125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33127 if (!SWIG_IsOK(res1)) {
33128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33129 }
33130 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33131 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33132 if (!SWIG_IsOK(res2)) {
33133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33134 }
33135 if (!argp2) {
33136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33137 }
33138 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33139 {
33140 PyThreadState* __tstate = wxPyBeginAllowThreads();
33141 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33142 wxPyEndAllowThreads(__tstate);
33143 if (PyErr_Occurred()) SWIG_fail;
33144 }
33145 resultobj = SWIG_Py_Void();
33146 return resultobj;
33147fail:
33148 return NULL;
2ef75293
RD
33149}
33150
33151
0085ce49
RD
33152SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33153 PyObject *resultobj = 0;
33154 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33155 wxPoint result;
33156 void *argp1 = 0 ;
33157 int res1 = 0 ;
33158 PyObject *swig_obj[1] ;
33159
33160 if (!args) SWIG_fail;
33161 swig_obj[0] = args;
33162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33163 if (!SWIG_IsOK(res1)) {
33164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33165 }
33166 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33167 {
33168 PyThreadState* __tstate = wxPyBeginAllowThreads();
33169 result = ((wxTreeEvent const *)arg1)->GetPoint();
33170 wxPyEndAllowThreads(__tstate);
33171 if (PyErr_Occurred()) SWIG_fail;
33172 }
33173 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33174 return resultobj;
33175fail:
33176 return NULL;
33177}
33178
33179
33180SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33181 PyObject *resultobj = 0;
33182 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33183 wxPoint *arg2 = 0 ;
33184 void *argp1 = 0 ;
33185 int res1 = 0 ;
33186 wxPoint temp2 ;
33187 PyObject * obj0 = 0 ;
33188 PyObject * obj1 = 0 ;
33189 char * kwnames[] = {
33190 (char *) "self",(char *) "pt", NULL
33191 };
33192
33193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33195 if (!SWIG_IsOK(res1)) {
33196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33197 }
33198 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33199 {
33200 arg2 = &temp2;
33201 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33202 }
33203 {
33204 PyThreadState* __tstate = wxPyBeginAllowThreads();
33205 (arg1)->SetPoint((wxPoint const &)*arg2);
33206 wxPyEndAllowThreads(__tstate);
33207 if (PyErr_Occurred()) SWIG_fail;
33208 }
33209 resultobj = SWIG_Py_Void();
33210 return resultobj;
33211fail:
33212 return NULL;
d14a1e28
RD
33213}
33214
33215
0085ce49
RD
33216SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33217 PyObject *resultobj = 0;
33218 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33219 wxKeyEvent *result = 0 ;
33220 void *argp1 = 0 ;
33221 int res1 = 0 ;
33222 PyObject *swig_obj[1] ;
33223
33224 if (!args) SWIG_fail;
33225 swig_obj[0] = args;
33226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33227 if (!SWIG_IsOK(res1)) {
33228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33229 }
33230 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33231 {
33232 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 33233 {
0085ce49
RD
33234 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33235 result = (wxKeyEvent *) &_result_ref;
d14a1e28 33236 }
0085ce49
RD
33237 wxPyEndAllowThreads(__tstate);
33238 if (PyErr_Occurred()) SWIG_fail;
33239 }
33240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33241 return resultobj;
33242fail:
33243 return NULL;
d14a1e28
RD
33244}
33245
33246
0085ce49
RD
33247SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33248 PyObject *resultobj = 0;
33249 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33250 int result;
33251 void *argp1 = 0 ;
33252 int res1 = 0 ;
33253 PyObject *swig_obj[1] ;
33254
33255 if (!args) SWIG_fail;
33256 swig_obj[0] = args;
33257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33258 if (!SWIG_IsOK(res1)) {
33259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33260 }
33261 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33262 {
33263 PyThreadState* __tstate = wxPyBeginAllowThreads();
33264 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33265 wxPyEndAllowThreads(__tstate);
33266 if (PyErr_Occurred()) SWIG_fail;
33267 }
33268 resultobj = SWIG_From_int(static_cast< int >(result));
33269 return resultobj;
33270fail:
33271 return NULL;
33272}
33273
33274
33275SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33276 PyObject *resultobj = 0;
33277 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33278 wxKeyEvent *arg2 = 0 ;
33279 void *argp1 = 0 ;
33280 int res1 = 0 ;
33281 void *argp2 = 0 ;
33282 int res2 = 0 ;
33283 PyObject * obj0 = 0 ;
33284 PyObject * obj1 = 0 ;
33285 char * kwnames[] = {
33286 (char *) "self",(char *) "evt", NULL
33287 };
33288
33289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33291 if (!SWIG_IsOK(res1)) {
33292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33293 }
33294 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33296 if (!SWIG_IsOK(res2)) {
33297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33298 }
33299 if (!argp2) {
33300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33301 }
33302 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33303 {
33304 PyThreadState* __tstate = wxPyBeginAllowThreads();
33305 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33306 wxPyEndAllowThreads(__tstate);
33307 if (PyErr_Occurred()) SWIG_fail;
33308 }
33309 resultobj = SWIG_Py_Void();
33310 return resultobj;
33311fail:
33312 return NULL;
d14a1e28
RD
33313}
33314
33315
0085ce49
RD
33316SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33317 PyObject *resultobj = 0;
33318 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33319 wxString *result = 0 ;
33320 void *argp1 = 0 ;
33321 int res1 = 0 ;
33322 PyObject *swig_obj[1] ;
33323
33324 if (!args) SWIG_fail;
33325 swig_obj[0] = args;
33326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33327 if (!SWIG_IsOK(res1)) {
33328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33329 }
33330 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33331 {
33332 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 33333 {
0085ce49
RD
33334 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33335 result = (wxString *) &_result_ref;
093d3ff1 33336 }
0085ce49
RD
33337 wxPyEndAllowThreads(__tstate);
33338 if (PyErr_Occurred()) SWIG_fail;
33339 }
33340 {
33341#if wxUSE_UNICODE
33342 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33343#else
33344 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33345#endif
33346 }
33347 return resultobj;
33348fail:
33349 return NULL;
33350}
33351
33352
33353SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33354 PyObject *resultobj = 0;
33355 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33356 wxString *arg2 = 0 ;
33357 void *argp1 = 0 ;
33358 int res1 = 0 ;
33359 bool temp2 = false ;
33360 PyObject * obj0 = 0 ;
33361 PyObject * obj1 = 0 ;
33362 char * kwnames[] = {
33363 (char *) "self",(char *) "label", NULL
33364 };
33365
33366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33368 if (!SWIG_IsOK(res1)) {
33369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33370 }
33371 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33372 {
33373 arg2 = wxString_in_helper(obj1);
33374 if (arg2 == NULL) SWIG_fail;
33375 temp2 = true;
33376 }
33377 {
33378 PyThreadState* __tstate = wxPyBeginAllowThreads();
33379 (arg1)->SetLabel((wxString const &)*arg2);
33380 wxPyEndAllowThreads(__tstate);
33381 if (PyErr_Occurred()) SWIG_fail;
33382 }
33383 resultobj = SWIG_Py_Void();
33384 {
33385 if (temp2)
33386 delete arg2;
33387 }
33388 return resultobj;
33389fail:
33390 {
33391 if (temp2)
33392 delete arg2;
33393 }
33394 return NULL;
d14a1e28
RD
33395}
33396
33397
0085ce49
RD
33398SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33399 PyObject *resultobj = 0;
33400 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33401 bool result;
33402 void *argp1 = 0 ;
33403 int res1 = 0 ;
33404 PyObject *swig_obj[1] ;
33405
33406 if (!args) SWIG_fail;
33407 swig_obj[0] = args;
33408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33409 if (!SWIG_IsOK(res1)) {
33410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33411 }
33412 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33413 {
33414 PyThreadState* __tstate = wxPyBeginAllowThreads();
33415 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33416 wxPyEndAllowThreads(__tstate);
33417 if (PyErr_Occurred()) SWIG_fail;
33418 }
33419 {
33420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33421 }
33422 return resultobj;
33423fail:
33424 return NULL;
33425}
33426
33427
33428SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33429 PyObject *resultobj = 0;
33430 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33431 bool arg2 ;
33432 void *argp1 = 0 ;
33433 int res1 = 0 ;
33434 bool val2 ;
33435 int ecode2 = 0 ;
33436 PyObject * obj0 = 0 ;
33437 PyObject * obj1 = 0 ;
33438 char * kwnames[] = {
33439 (char *) "self",(char *) "editCancelled", NULL
33440 };
33441
33442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33444 if (!SWIG_IsOK(res1)) {
33445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33446 }
33447 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33448 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33449 if (!SWIG_IsOK(ecode2)) {
33450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33451 }
33452 arg2 = static_cast< bool >(val2);
33453 {
33454 PyThreadState* __tstate = wxPyBeginAllowThreads();
33455 (arg1)->SetEditCanceled(arg2);
33456 wxPyEndAllowThreads(__tstate);
33457 if (PyErr_Occurred()) SWIG_fail;
33458 }
33459 resultobj = SWIG_Py_Void();
33460 return resultobj;
33461fail:
33462 return NULL;
33463}
33464
33465
33466SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33467 PyObject *resultobj = 0;
33468 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33469 wxString *arg2 = 0 ;
33470 void *argp1 = 0 ;
33471 int res1 = 0 ;
33472 bool temp2 = false ;
33473 PyObject * obj0 = 0 ;
33474 PyObject * obj1 = 0 ;
33475 char * kwnames[] = {
33476 (char *) "self",(char *) "toolTip", NULL
33477 };
33478
33479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33481 if (!SWIG_IsOK(res1)) {
33482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33483 }
33484 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33485 {
33486 arg2 = wxString_in_helper(obj1);
33487 if (arg2 == NULL) SWIG_fail;
33488 temp2 = true;
33489 }
33490 {
33491 PyThreadState* __tstate = wxPyBeginAllowThreads();
33492 (arg1)->SetToolTip((wxString const &)*arg2);
33493 wxPyEndAllowThreads(__tstate);
33494 if (PyErr_Occurred()) SWIG_fail;
33495 }
33496 resultobj = SWIG_Py_Void();
33497 {
33498 if (temp2)
33499 delete arg2;
33500 }
33501 return resultobj;
33502fail:
33503 {
33504 if (temp2)
33505 delete arg2;
33506 }
33507 return NULL;
d14a1e28
RD
33508}
33509
33510
0085ce49
RD
33511SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33512 PyObject *resultobj = 0;
33513 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33514 wxString result;
33515 void *argp1 = 0 ;
33516 int res1 = 0 ;
33517 PyObject *swig_obj[1] ;
33518
33519 if (!args) SWIG_fail;
33520 swig_obj[0] = args;
33521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33522 if (!SWIG_IsOK(res1)) {
33523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33524 }
33525 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33526 {
33527 PyThreadState* __tstate = wxPyBeginAllowThreads();
33528 result = (arg1)->GetToolTip();
33529 wxPyEndAllowThreads(__tstate);
33530 if (PyErr_Occurred()) SWIG_fail;
33531 }
33532 {
33533#if wxUSE_UNICODE
33534 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33535#else
33536 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33537#endif
33538 }
33539 return resultobj;
33540fail:
33541 return NULL;
33542}
33543
33544
33545SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33546 PyObject *obj;
33547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33548 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33549 return SWIG_Py_Void();
33550}
33551
33552SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33553 return SWIG_Python_InitShadowInstance(args);
33554}
33555
33556SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33557 PyObject *resultobj = 0;
33558 wxWindow *arg1 = (wxWindow *) 0 ;
33559 int arg2 = (int) -1 ;
33560 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33561 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33562 wxSize const &arg4_defvalue = wxDefaultSize ;
33563 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33564 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33565 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33566 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33567 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33568 wxString *arg7 = (wxString *) &arg7_defvalue ;
33569 wxPyTreeCtrl *result = 0 ;
33570 void *argp1 = 0 ;
33571 int res1 = 0 ;
33572 int val2 ;
33573 int ecode2 = 0 ;
33574 wxPoint temp3 ;
33575 wxSize temp4 ;
33576 long val5 ;
33577 int ecode5 = 0 ;
33578 void *argp6 = 0 ;
33579 int res6 = 0 ;
33580 bool temp7 = false ;
33581 PyObject * obj0 = 0 ;
33582 PyObject * obj1 = 0 ;
33583 PyObject * obj2 = 0 ;
33584 PyObject * obj3 = 0 ;
33585 PyObject * obj4 = 0 ;
33586 PyObject * obj5 = 0 ;
33587 PyObject * obj6 = 0 ;
33588 char * kwnames[] = {
33589 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33590 };
33591
33592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33594 if (!SWIG_IsOK(res1)) {
33595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33596 }
33597 arg1 = reinterpret_cast< wxWindow * >(argp1);
33598 if (obj1) {
33599 ecode2 = SWIG_AsVal_int(obj1, &val2);
33600 if (!SWIG_IsOK(ecode2)) {
33601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33602 }
33603 arg2 = static_cast< int >(val2);
33604 }
33605 if (obj2) {
d14a1e28 33606 {
0085ce49
RD
33607 arg3 = &temp3;
33608 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 33609 }
0085ce49
RD
33610 }
33611 if (obj3) {
093d3ff1 33612 {
0085ce49
RD
33613 arg4 = &temp4;
33614 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 33615 }
0085ce49
RD
33616 }
33617 if (obj4) {
33618 ecode5 = SWIG_AsVal_long(obj4, &val5);
33619 if (!SWIG_IsOK(ecode5)) {
33620 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33621 }
33622 arg5 = static_cast< long >(val5);
33623 }
33624 if (obj5) {
33625 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33626 if (!SWIG_IsOK(res6)) {
33627 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33628 }
0085ce49
RD
33629 if (!argp6) {
33630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33631 }
0085ce49
RD
33632 arg6 = reinterpret_cast< wxValidator * >(argp6);
33633 }
33634 if (obj6) {
4f89f6a3 33635 {
0085ce49
RD
33636 arg7 = wxString_in_helper(obj6);
33637 if (arg7 == NULL) SWIG_fail;
33638 temp7 = true;
4f89f6a3 33639 }
0085ce49
RD
33640 }
33641 {
33642 if (!wxPyCheckForApp()) SWIG_fail;
33643 PyThreadState* __tstate = wxPyBeginAllowThreads();
33644 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33645 wxPyEndAllowThreads(__tstate);
33646 if (PyErr_Occurred()) SWIG_fail;
33647 }
33648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33649 {
33650 if (temp7)
33651 delete arg7;
33652 }
33653 return resultobj;
33654fail:
33655 {
33656 if (temp7)
33657 delete arg7;
33658 }
33659 return NULL;
d14a1e28
RD
33660}
33661
33662
0085ce49
RD
33663SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33664 PyObject *resultobj = 0;
33665 wxPyTreeCtrl *result = 0 ;
33666
33667 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33668 {
33669 if (!wxPyCheckForApp()) SWIG_fail;
33670 PyThreadState* __tstate = wxPyBeginAllowThreads();
33671 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33672 wxPyEndAllowThreads(__tstate);
33673 if (PyErr_Occurred()) SWIG_fail;
33674 }
33675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33676 return resultobj;
33677fail:
33678 return NULL;
33679}
33680
33681
33682SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33683 PyObject *resultobj = 0;
33684 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33685 wxWindow *arg2 = (wxWindow *) 0 ;
33686 int arg3 = (int) -1 ;
33687 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33688 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33689 wxSize const &arg5_defvalue = wxDefaultSize ;
33690 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33691 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33692 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33693 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33694 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33695 wxString *arg8 = (wxString *) &arg8_defvalue ;
33696 bool result;
33697 void *argp1 = 0 ;
33698 int res1 = 0 ;
33699 void *argp2 = 0 ;
33700 int res2 = 0 ;
33701 int val3 ;
33702 int ecode3 = 0 ;
33703 wxPoint temp4 ;
33704 wxSize temp5 ;
33705 long val6 ;
33706 int ecode6 = 0 ;
33707 void *argp7 = 0 ;
33708 int res7 = 0 ;
33709 bool temp8 = false ;
33710 PyObject * obj0 = 0 ;
33711 PyObject * obj1 = 0 ;
33712 PyObject * obj2 = 0 ;
33713 PyObject * obj3 = 0 ;
33714 PyObject * obj4 = 0 ;
33715 PyObject * obj5 = 0 ;
33716 PyObject * obj6 = 0 ;
33717 PyObject * obj7 = 0 ;
33718 char * kwnames[] = {
33719 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33720 };
33721
33722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33724 if (!SWIG_IsOK(res1)) {
33725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33726 }
33727 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33729 if (!SWIG_IsOK(res2)) {
33730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33731 }
33732 arg2 = reinterpret_cast< wxWindow * >(argp2);
33733 if (obj2) {
33734 ecode3 = SWIG_AsVal_int(obj2, &val3);
33735 if (!SWIG_IsOK(ecode3)) {
33736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33737 }
33738 arg3 = static_cast< int >(val3);
33739 }
33740 if (obj3) {
4f89f6a3 33741 {
0085ce49
RD
33742 arg4 = &temp4;
33743 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 33744 }
0085ce49
RD
33745 }
33746 if (obj4) {
d14a1e28 33747 {
0085ce49
RD
33748 arg5 = &temp5;
33749 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 33750 }
0085ce49
RD
33751 }
33752 if (obj5) {
33753 ecode6 = SWIG_AsVal_long(obj5, &val6);
33754 if (!SWIG_IsOK(ecode6)) {
33755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33756 }
33757 arg6 = static_cast< long >(val6);
33758 }
33759 if (obj6) {
33760 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33761 if (!SWIG_IsOK(res7)) {
33762 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 33763 }
0085ce49
RD
33764 if (!argp7) {
33765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 33766 }
0085ce49
RD
33767 arg7 = reinterpret_cast< wxValidator * >(argp7);
33768 }
33769 if (obj7) {
4276dc52 33770 {
0085ce49
RD
33771 arg8 = wxString_in_helper(obj7);
33772 if (arg8 == NULL) SWIG_fail;
33773 temp8 = true;
4276dc52 33774 }
0085ce49
RD
33775 }
33776 {
33777 PyThreadState* __tstate = wxPyBeginAllowThreads();
33778 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33779 wxPyEndAllowThreads(__tstate);
33780 if (PyErr_Occurred()) SWIG_fail;
33781 }
33782 {
33783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33784 }
33785 {
33786 if (temp8)
33787 delete arg8;
33788 }
33789 return resultobj;
33790fail:
33791 {
33792 if (temp8)
33793 delete arg8;
33794 }
33795 return NULL;
33796}
33797
33798
33799SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33800 PyObject *resultobj = 0;
33801 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33802 PyObject *arg2 = (PyObject *) 0 ;
33803 PyObject *arg3 = (PyObject *) 0 ;
33804 void *argp1 = 0 ;
33805 int res1 = 0 ;
33806 PyObject * obj0 = 0 ;
33807 PyObject * obj1 = 0 ;
33808 PyObject * obj2 = 0 ;
33809 char * kwnames[] = {
33810 (char *) "self",(char *) "self",(char *) "_class", NULL
33811 };
33812
33813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33815 if (!SWIG_IsOK(res1)) {
33816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33817 }
33818 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33819 arg2 = obj1;
33820 arg3 = obj2;
33821 {
33822 PyThreadState* __tstate = wxPyBeginAllowThreads();
33823 (arg1)->_setCallbackInfo(arg2,arg3);
33824 wxPyEndAllowThreads(__tstate);
33825 if (PyErr_Occurred()) SWIG_fail;
33826 }
33827 resultobj = SWIG_Py_Void();
33828 return resultobj;
33829fail:
33830 return NULL;
d14a1e28
RD
33831}
33832
33833
0085ce49
RD
33834SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33835 PyObject *resultobj = 0;
33836 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33837 unsigned int result;
0085ce49
RD
33838 void *argp1 = 0 ;
33839 int res1 = 0 ;
33840 PyObject *swig_obj[1] ;
33841
33842 if (!args) SWIG_fail;
33843 swig_obj[0] = args;
33844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33845 if (!SWIG_IsOK(res1)) {
33846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33847 }
33848 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33849 {
33850 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33851 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
0085ce49
RD
33852 wxPyEndAllowThreads(__tstate);
33853 if (PyErr_Occurred()) SWIG_fail;
33854 }
e9d6f3a4 33855 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
33856 return resultobj;
33857fail:
33858 return NULL;
d14a1e28
RD
33859}
33860
33861
0085ce49
RD
33862SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33863 PyObject *resultobj = 0;
33864 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33865 unsigned int result;
33866 void *argp1 = 0 ;
33867 int res1 = 0 ;
33868 PyObject *swig_obj[1] ;
33869
33870 if (!args) SWIG_fail;
33871 swig_obj[0] = args;
33872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33873 if (!SWIG_IsOK(res1)) {
33874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33875 }
33876 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33877 {
33878 PyThreadState* __tstate = wxPyBeginAllowThreads();
33879 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33880 wxPyEndAllowThreads(__tstate);
33881 if (PyErr_Occurred()) SWIG_fail;
33882 }
33883 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33884 return resultobj;
33885fail:
33886 return NULL;
33887}
33888
33889
33890SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33891 PyObject *resultobj = 0;
33892 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33893 unsigned int arg2 ;
33894 void *argp1 = 0 ;
33895 int res1 = 0 ;
33896 unsigned int val2 ;
33897 int ecode2 = 0 ;
33898 PyObject * obj0 = 0 ;
33899 PyObject * obj1 = 0 ;
33900 char * kwnames[] = {
33901 (char *) "self",(char *) "indent", NULL
33902 };
33903
33904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33906 if (!SWIG_IsOK(res1)) {
33907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33908 }
33909 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33910 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33911 if (!SWIG_IsOK(ecode2)) {
33912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33913 }
33914 arg2 = static_cast< unsigned int >(val2);
33915 {
33916 PyThreadState* __tstate = wxPyBeginAllowThreads();
33917 (arg1)->SetIndent(arg2);
33918 wxPyEndAllowThreads(__tstate);
33919 if (PyErr_Occurred()) SWIG_fail;
33920 }
33921 resultobj = SWIG_Py_Void();
33922 return resultobj;
33923fail:
33924 return NULL;
d14a1e28
RD
33925}
33926
33927
0085ce49
RD
33928SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33929 PyObject *resultobj = 0;
33930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33931 unsigned int result;
33932 void *argp1 = 0 ;
33933 int res1 = 0 ;
33934 PyObject *swig_obj[1] ;
33935
33936 if (!args) SWIG_fail;
33937 swig_obj[0] = args;
33938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33939 if (!SWIG_IsOK(res1)) {
33940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33941 }
33942 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33943 {
33944 PyThreadState* __tstate = wxPyBeginAllowThreads();
33945 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33946 wxPyEndAllowThreads(__tstate);
33947 if (PyErr_Occurred()) SWIG_fail;
33948 }
33949 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33950 return resultobj;
33951fail:
33952 return NULL;
33953}
33954
33955
33956SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33957 PyObject *resultobj = 0;
33958 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33959 unsigned int arg2 ;
33960 void *argp1 = 0 ;
33961 int res1 = 0 ;
33962 unsigned int val2 ;
33963 int ecode2 = 0 ;
33964 PyObject * obj0 = 0 ;
33965 PyObject * obj1 = 0 ;
33966 char * kwnames[] = {
33967 (char *) "self",(char *) "spacing", NULL
33968 };
33969
33970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33972 if (!SWIG_IsOK(res1)) {
33973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33974 }
33975 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33976 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33977 if (!SWIG_IsOK(ecode2)) {
33978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33979 }
33980 arg2 = static_cast< unsigned int >(val2);
33981 {
33982 PyThreadState* __tstate = wxPyBeginAllowThreads();
33983 (arg1)->SetSpacing(arg2);
33984 wxPyEndAllowThreads(__tstate);
33985 if (PyErr_Occurred()) SWIG_fail;
33986 }
33987 resultobj = SWIG_Py_Void();
33988 return resultobj;
33989fail:
33990 return NULL;
d14a1e28
RD
33991}
33992
33993
0085ce49
RD
33994SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33995 PyObject *resultobj = 0;
33996 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33997 wxImageList *result = 0 ;
33998 void *argp1 = 0 ;
33999 int res1 = 0 ;
34000 PyObject *swig_obj[1] ;
34001
34002 if (!args) SWIG_fail;
34003 swig_obj[0] = args;
34004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34005 if (!SWIG_IsOK(res1)) {
34006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34007 }
34008 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34009 {
34010 PyThreadState* __tstate = wxPyBeginAllowThreads();
34011 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34012 wxPyEndAllowThreads(__tstate);
34013 if (PyErr_Occurred()) SWIG_fail;
34014 }
34015 {
34016 resultobj = wxPyMake_wxObject(result, (bool)0);
34017 }
34018 return resultobj;
34019fail:
34020 return NULL;
d14a1e28
RD
34021}
34022
34023
0085ce49
RD
34024SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34025 PyObject *resultobj = 0;
34026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34027 wxImageList *result = 0 ;
34028 void *argp1 = 0 ;
34029 int res1 = 0 ;
34030 PyObject *swig_obj[1] ;
34031
34032 if (!args) SWIG_fail;
34033 swig_obj[0] = args;
34034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34035 if (!SWIG_IsOK(res1)) {
34036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34037 }
34038 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34039 {
34040 PyThreadState* __tstate = wxPyBeginAllowThreads();
34041 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34042 wxPyEndAllowThreads(__tstate);
34043 if (PyErr_Occurred()) SWIG_fail;
34044 }
34045 {
34046 resultobj = wxPyMake_wxObject(result, (bool)0);
34047 }
34048 return resultobj;
34049fail:
34050 return NULL;
34051}
34052
34053
34054SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34055 PyObject *resultobj = 0;
34056 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34057 wxImageList *arg2 = (wxImageList *) 0 ;
34058 void *argp1 = 0 ;
34059 int res1 = 0 ;
34060 void *argp2 = 0 ;
34061 int res2 = 0 ;
34062 PyObject * obj0 = 0 ;
34063 PyObject * obj1 = 0 ;
34064 char * kwnames[] = {
34065 (char *) "self",(char *) "imageList", NULL
34066 };
34067
34068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34070 if (!SWIG_IsOK(res1)) {
34071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34072 }
34073 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34074 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34075 if (!SWIG_IsOK(res2)) {
34076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34077 }
34078 arg2 = reinterpret_cast< wxImageList * >(argp2);
34079 {
34080 PyThreadState* __tstate = wxPyBeginAllowThreads();
34081 (arg1)->SetImageList(arg2);
34082 wxPyEndAllowThreads(__tstate);
34083 if (PyErr_Occurred()) SWIG_fail;
34084 }
34085 resultobj = SWIG_Py_Void();
34086 return resultobj;
34087fail:
34088 return NULL;
34089}
34090
34091
34092SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34093 PyObject *resultobj = 0;
34094 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34095 wxImageList *arg2 = (wxImageList *) 0 ;
34096 void *argp1 = 0 ;
34097 int res1 = 0 ;
34098 void *argp2 = 0 ;
34099 int res2 = 0 ;
34100 PyObject * obj0 = 0 ;
34101 PyObject * obj1 = 0 ;
34102 char * kwnames[] = {
34103 (char *) "self",(char *) "imageList", NULL
34104 };
34105
34106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34108 if (!SWIG_IsOK(res1)) {
34109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34110 }
34111 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34112 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34113 if (!SWIG_IsOK(res2)) {
34114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34115 }
34116 arg2 = reinterpret_cast< wxImageList * >(argp2);
34117 {
34118 PyThreadState* __tstate = wxPyBeginAllowThreads();
34119 (arg1)->SetStateImageList(arg2);
34120 wxPyEndAllowThreads(__tstate);
34121 if (PyErr_Occurred()) SWIG_fail;
34122 }
34123 resultobj = SWIG_Py_Void();
34124 return resultobj;
34125fail:
34126 return NULL;
34127}
34128
34129
34130SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34131 PyObject *resultobj = 0;
34132 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34133 wxImageList *arg2 = (wxImageList *) 0 ;
34134 void *argp1 = 0 ;
34135 int res1 = 0 ;
34136 int res2 = 0 ;
34137 PyObject * obj0 = 0 ;
34138 PyObject * obj1 = 0 ;
34139 char * kwnames[] = {
34140 (char *) "self",(char *) "imageList", NULL
34141 };
34142
34143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34145 if (!SWIG_IsOK(res1)) {
34146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34147 }
34148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34149 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34150 if (!SWIG_IsOK(res2)) {
34151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34152 }
34153 {
34154 PyThreadState* __tstate = wxPyBeginAllowThreads();
34155 (arg1)->AssignImageList(arg2);
34156 wxPyEndAllowThreads(__tstate);
34157 if (PyErr_Occurred()) SWIG_fail;
34158 }
34159 resultobj = SWIG_Py_Void();
34160 return resultobj;
34161fail:
34162 return NULL;
34163}
34164
34165
34166SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34167 PyObject *resultobj = 0;
34168 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34169 wxImageList *arg2 = (wxImageList *) 0 ;
34170 void *argp1 = 0 ;
34171 int res1 = 0 ;
34172 int res2 = 0 ;
34173 PyObject * obj0 = 0 ;
34174 PyObject * obj1 = 0 ;
34175 char * kwnames[] = {
34176 (char *) "self",(char *) "imageList", NULL
34177 };
34178
34179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34181 if (!SWIG_IsOK(res1)) {
34182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34183 }
34184 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34185 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34186 if (!SWIG_IsOK(res2)) {
34187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34188 }
34189 {
34190 PyThreadState* __tstate = wxPyBeginAllowThreads();
34191 (arg1)->AssignStateImageList(arg2);
34192 wxPyEndAllowThreads(__tstate);
34193 if (PyErr_Occurred()) SWIG_fail;
34194 }
34195 resultobj = SWIG_Py_Void();
34196 return resultobj;
34197fail:
34198 return NULL;
34199}
34200
34201
34202SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34203 PyObject *resultobj = 0;
34204 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34205 wxTreeItemId *arg2 = 0 ;
34206 wxString result;
34207 void *argp1 = 0 ;
34208 int res1 = 0 ;
34209 void *argp2 = 0 ;
34210 int res2 = 0 ;
34211 PyObject * obj0 = 0 ;
34212 PyObject * obj1 = 0 ;
34213 char * kwnames[] = {
34214 (char *) "self",(char *) "item", NULL
34215 };
34216
34217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34219 if (!SWIG_IsOK(res1)) {
34220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34221 }
34222 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34224 if (!SWIG_IsOK(res2)) {
34225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34226 }
34227 if (!argp2) {
34228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34229 }
34230 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34231 {
34232 PyThreadState* __tstate = wxPyBeginAllowThreads();
34233 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34234 wxPyEndAllowThreads(__tstate);
34235 if (PyErr_Occurred()) SWIG_fail;
34236 }
34237 {
d14a1e28 34238#if wxUSE_UNICODE
0085ce49 34239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 34240#else
0085ce49 34241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 34242#endif
0085ce49
RD
34243 }
34244 return resultobj;
34245fail:
34246 return NULL;
34247}
34248
34249
34250SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34251 PyObject *resultobj = 0;
34252 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34253 wxTreeItemId *arg2 = 0 ;
34254 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34255 int result;
34256 void *argp1 = 0 ;
34257 int res1 = 0 ;
34258 void *argp2 = 0 ;
34259 int res2 = 0 ;
34260 int val3 ;
34261 int ecode3 = 0 ;
34262 PyObject * obj0 = 0 ;
34263 PyObject * obj1 = 0 ;
34264 PyObject * obj2 = 0 ;
34265 char * kwnames[] = {
34266 (char *) "self",(char *) "item",(char *) "which", NULL
34267 };
34268
34269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34271 if (!SWIG_IsOK(res1)) {
34272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34273 }
34274 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34275 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34276 if (!SWIG_IsOK(res2)) {
34277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34278 }
34279 if (!argp2) {
34280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34281 }
34282 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34283 if (obj2) {
34284 ecode3 = SWIG_AsVal_int(obj2, &val3);
34285 if (!SWIG_IsOK(ecode3)) {
34286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34287 }
34288 arg3 = static_cast< wxTreeItemIcon >(val3);
34289 }
34290 {
34291 PyThreadState* __tstate = wxPyBeginAllowThreads();
34292 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34293 wxPyEndAllowThreads(__tstate);
34294 if (PyErr_Occurred()) SWIG_fail;
34295 }
34296 resultobj = SWIG_From_int(static_cast< int >(result));
34297 return resultobj;
34298fail:
34299 return NULL;
34300}
34301
34302
34303SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34304 PyObject *resultobj = 0;
34305 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34306 wxTreeItemId *arg2 = 0 ;
34307 wxPyTreeItemData *result = 0 ;
34308 void *argp1 = 0 ;
34309 int res1 = 0 ;
34310 void *argp2 = 0 ;
34311 int res2 = 0 ;
34312 PyObject * obj0 = 0 ;
34313 PyObject * obj1 = 0 ;
34314 char * kwnames[] = {
34315 (char *) "self",(char *) "item", NULL
34316 };
34317
34318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34320 if (!SWIG_IsOK(res1)) {
34321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34322 }
34323 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34325 if (!SWIG_IsOK(res2)) {
34326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34327 }
34328 if (!argp2) {
34329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34330 }
34331 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34332 {
34333 PyThreadState* __tstate = wxPyBeginAllowThreads();
34334 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34335 wxPyEndAllowThreads(__tstate);
34336 if (PyErr_Occurred()) SWIG_fail;
34337 }
34338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34339 return resultobj;
34340fail:
34341 return NULL;
34342}
34343
34344
34345SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34346 PyObject *resultobj = 0;
34347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34348 wxTreeItemId *arg2 = 0 ;
34349 PyObject *result = 0 ;
34350 void *argp1 = 0 ;
34351 int res1 = 0 ;
34352 void *argp2 = 0 ;
34353 int res2 = 0 ;
34354 PyObject * obj0 = 0 ;
34355 PyObject * obj1 = 0 ;
34356 char * kwnames[] = {
34357 (char *) "self",(char *) "item", NULL
34358 };
34359
34360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34362 if (!SWIG_IsOK(res1)) {
34363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34364 }
34365 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34367 if (!SWIG_IsOK(res2)) {
34368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34369 }
34370 if (!argp2) {
34371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34372 }
34373 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34374 {
34375 PyThreadState* __tstate = wxPyBeginAllowThreads();
34376 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34377 wxPyEndAllowThreads(__tstate);
34378 if (PyErr_Occurred()) SWIG_fail;
34379 }
34380 resultobj = result;
34381 return resultobj;
34382fail:
34383 return NULL;
34384}
34385
34386
34387SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34388 PyObject *resultobj = 0;
34389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34390 wxTreeItemId *arg2 = 0 ;
34391 wxColour result;
34392 void *argp1 = 0 ;
34393 int res1 = 0 ;
34394 void *argp2 = 0 ;
34395 int res2 = 0 ;
34396 PyObject * obj0 = 0 ;
34397 PyObject * obj1 = 0 ;
34398 char * kwnames[] = {
34399 (char *) "self",(char *) "item", NULL
34400 };
34401
34402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34404 if (!SWIG_IsOK(res1)) {
34405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34406 }
34407 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34409 if (!SWIG_IsOK(res2)) {
34410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34411 }
34412 if (!argp2) {
34413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34414 }
34415 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34416 {
34417 PyThreadState* __tstate = wxPyBeginAllowThreads();
34418 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34419 wxPyEndAllowThreads(__tstate);
34420 if (PyErr_Occurred()) SWIG_fail;
34421 }
34422 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34423 return resultobj;
34424fail:
34425 return NULL;
34426}
34427
34428
34429SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34430 PyObject *resultobj = 0;
34431 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34432 wxTreeItemId *arg2 = 0 ;
34433 wxColour result;
34434 void *argp1 = 0 ;
34435 int res1 = 0 ;
34436 void *argp2 = 0 ;
34437 int res2 = 0 ;
34438 PyObject * obj0 = 0 ;
34439 PyObject * obj1 = 0 ;
34440 char * kwnames[] = {
34441 (char *) "self",(char *) "item", NULL
34442 };
34443
34444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34446 if (!SWIG_IsOK(res1)) {
34447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34448 }
34449 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34451 if (!SWIG_IsOK(res2)) {
34452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34453 }
34454 if (!argp2) {
34455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34456 }
34457 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34458 {
34459 PyThreadState* __tstate = wxPyBeginAllowThreads();
34460 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34461 wxPyEndAllowThreads(__tstate);
34462 if (PyErr_Occurred()) SWIG_fail;
34463 }
34464 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34465 return resultobj;
34466fail:
34467 return NULL;
34468}
34469
34470
34471SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34472 PyObject *resultobj = 0;
34473 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34474 wxTreeItemId *arg2 = 0 ;
34475 wxFont result;
34476 void *argp1 = 0 ;
34477 int res1 = 0 ;
34478 void *argp2 = 0 ;
34479 int res2 = 0 ;
34480 PyObject * obj0 = 0 ;
34481 PyObject * obj1 = 0 ;
34482 char * kwnames[] = {
34483 (char *) "self",(char *) "item", NULL
34484 };
34485
34486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34488 if (!SWIG_IsOK(res1)) {
34489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34490 }
34491 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34493 if (!SWIG_IsOK(res2)) {
34494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34495 }
34496 if (!argp2) {
34497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34498 }
34499 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34500 {
34501 PyThreadState* __tstate = wxPyBeginAllowThreads();
34502 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34503 wxPyEndAllowThreads(__tstate);
34504 if (PyErr_Occurred()) SWIG_fail;
34505 }
34506 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34507 return resultobj;
34508fail:
34509 return NULL;
34510}
34511
34512
34513SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34514 PyObject *resultobj = 0;
34515 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34516 wxTreeItemId *arg2 = 0 ;
34517 wxString *arg3 = 0 ;
34518 void *argp1 = 0 ;
34519 int res1 = 0 ;
34520 void *argp2 = 0 ;
34521 int res2 = 0 ;
34522 bool temp3 = false ;
34523 PyObject * obj0 = 0 ;
34524 PyObject * obj1 = 0 ;
34525 PyObject * obj2 = 0 ;
34526 char * kwnames[] = {
34527 (char *) "self",(char *) "item",(char *) "text", NULL
34528 };
34529
34530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34532 if (!SWIG_IsOK(res1)) {
34533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34534 }
34535 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34537 if (!SWIG_IsOK(res2)) {
34538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34539 }
34540 if (!argp2) {
34541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34542 }
34543 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34544 {
34545 arg3 = wxString_in_helper(obj2);
34546 if (arg3 == NULL) SWIG_fail;
34547 temp3 = true;
34548 }
34549 {
34550 PyThreadState* __tstate = wxPyBeginAllowThreads();
34551 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34552 wxPyEndAllowThreads(__tstate);
34553 if (PyErr_Occurred()) SWIG_fail;
34554 }
34555 resultobj = SWIG_Py_Void();
34556 {
34557 if (temp3)
34558 delete arg3;
34559 }
34560 return resultobj;
34561fail:
34562 {
34563 if (temp3)
34564 delete arg3;
34565 }
34566 return NULL;
34567}
34568
34569
34570SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34571 PyObject *resultobj = 0;
34572 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34573 wxTreeItemId *arg2 = 0 ;
34574 int arg3 ;
34575 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34576 void *argp1 = 0 ;
34577 int res1 = 0 ;
34578 void *argp2 = 0 ;
34579 int res2 = 0 ;
34580 int val3 ;
34581 int ecode3 = 0 ;
34582 int val4 ;
34583 int ecode4 = 0 ;
34584 PyObject * obj0 = 0 ;
34585 PyObject * obj1 = 0 ;
34586 PyObject * obj2 = 0 ;
34587 PyObject * obj3 = 0 ;
34588 char * kwnames[] = {
34589 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34590 };
34591
34592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34594 if (!SWIG_IsOK(res1)) {
34595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34596 }
34597 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34599 if (!SWIG_IsOK(res2)) {
34600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34601 }
34602 if (!argp2) {
34603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34604 }
34605 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34606 ecode3 = SWIG_AsVal_int(obj2, &val3);
34607 if (!SWIG_IsOK(ecode3)) {
34608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34609 }
34610 arg3 = static_cast< int >(val3);
34611 if (obj3) {
34612 ecode4 = SWIG_AsVal_int(obj3, &val4);
34613 if (!SWIG_IsOK(ecode4)) {
34614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34615 }
34616 arg4 = static_cast< wxTreeItemIcon >(val4);
34617 }
34618 {
34619 PyThreadState* __tstate = wxPyBeginAllowThreads();
34620 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34621 wxPyEndAllowThreads(__tstate);
34622 if (PyErr_Occurred()) SWIG_fail;
34623 }
34624 resultobj = SWIG_Py_Void();
34625 return resultobj;
34626fail:
34627 return NULL;
34628}
34629
34630
34631SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34632 PyObject *resultobj = 0;
34633 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34634 wxTreeItemId *arg2 = 0 ;
34635 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34636 void *argp1 = 0 ;
34637 int res1 = 0 ;
34638 void *argp2 = 0 ;
34639 int res2 = 0 ;
34640 int res3 = 0 ;
34641 PyObject * obj0 = 0 ;
34642 PyObject * obj1 = 0 ;
34643 PyObject * obj2 = 0 ;
34644 char * kwnames[] = {
34645 (char *) "self",(char *) "item",(char *) "data", NULL
34646 };
34647
34648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34650 if (!SWIG_IsOK(res1)) {
34651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34652 }
34653 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34655 if (!SWIG_IsOK(res2)) {
34656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34657 }
34658 if (!argp2) {
34659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34660 }
34661 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34662 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34663 if (!SWIG_IsOK(res3)) {
34664 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34665 }
34666 {
34667 PyThreadState* __tstate = wxPyBeginAllowThreads();
34668 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34669 wxPyEndAllowThreads(__tstate);
34670 if (PyErr_Occurred()) SWIG_fail;
34671 }
34672 resultobj = SWIG_Py_Void();
34673 return resultobj;
34674fail:
34675 return NULL;
34676}
34677
34678
34679SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34680 PyObject *resultobj = 0;
34681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34682 wxTreeItemId *arg2 = 0 ;
34683 PyObject *arg3 = (PyObject *) 0 ;
34684 void *argp1 = 0 ;
34685 int res1 = 0 ;
34686 void *argp2 = 0 ;
34687 int res2 = 0 ;
34688 PyObject * obj0 = 0 ;
34689 PyObject * obj1 = 0 ;
34690 PyObject * obj2 = 0 ;
34691 char * kwnames[] = {
34692 (char *) "self",(char *) "item",(char *) "obj", NULL
34693 };
34694
34695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34697 if (!SWIG_IsOK(res1)) {
34698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34699 }
34700 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34702 if (!SWIG_IsOK(res2)) {
34703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34704 }
34705 if (!argp2) {
34706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34707 }
34708 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34709 arg3 = obj2;
34710 {
34711 PyThreadState* __tstate = wxPyBeginAllowThreads();
34712 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34713 wxPyEndAllowThreads(__tstate);
34714 if (PyErr_Occurred()) SWIG_fail;
34715 }
34716 resultobj = SWIG_Py_Void();
34717 return resultobj;
34718fail:
34719 return NULL;
34720}
34721
34722
34723SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34724 PyObject *resultobj = 0;
34725 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34726 wxTreeItemId *arg2 = 0 ;
34727 bool arg3 = (bool) true ;
34728 void *argp1 = 0 ;
34729 int res1 = 0 ;
34730 void *argp2 = 0 ;
34731 int res2 = 0 ;
34732 bool val3 ;
34733 int ecode3 = 0 ;
34734 PyObject * obj0 = 0 ;
34735 PyObject * obj1 = 0 ;
34736 PyObject * obj2 = 0 ;
34737 char * kwnames[] = {
34738 (char *) "self",(char *) "item",(char *) "has", NULL
34739 };
34740
34741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34743 if (!SWIG_IsOK(res1)) {
34744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34745 }
34746 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34748 if (!SWIG_IsOK(res2)) {
34749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34750 }
34751 if (!argp2) {
34752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34753 }
34754 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34755 if (obj2) {
34756 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34757 if (!SWIG_IsOK(ecode3)) {
34758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34759 }
34760 arg3 = static_cast< bool >(val3);
34761 }
34762 {
34763 PyThreadState* __tstate = wxPyBeginAllowThreads();
34764 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34765 wxPyEndAllowThreads(__tstate);
34766 if (PyErr_Occurred()) SWIG_fail;
34767 }
34768 resultobj = SWIG_Py_Void();
34769 return resultobj;
34770fail:
34771 return NULL;
34772}
34773
34774
34775SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34776 PyObject *resultobj = 0;
34777 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34778 wxTreeItemId *arg2 = 0 ;
34779 bool arg3 = (bool) true ;
34780 void *argp1 = 0 ;
34781 int res1 = 0 ;
34782 void *argp2 = 0 ;
34783 int res2 = 0 ;
34784 bool val3 ;
34785 int ecode3 = 0 ;
34786 PyObject * obj0 = 0 ;
34787 PyObject * obj1 = 0 ;
34788 PyObject * obj2 = 0 ;
34789 char * kwnames[] = {
34790 (char *) "self",(char *) "item",(char *) "bold", NULL
34791 };
34792
34793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34795 if (!SWIG_IsOK(res1)) {
34796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34797 }
34798 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34800 if (!SWIG_IsOK(res2)) {
34801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34802 }
34803 if (!argp2) {
34804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34805 }
34806 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34807 if (obj2) {
34808 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34809 if (!SWIG_IsOK(ecode3)) {
34810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34811 }
34812 arg3 = static_cast< bool >(val3);
34813 }
34814 {
34815 PyThreadState* __tstate = wxPyBeginAllowThreads();
34816 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34817 wxPyEndAllowThreads(__tstate);
34818 if (PyErr_Occurred()) SWIG_fail;
34819 }
34820 resultobj = SWIG_Py_Void();
34821 return resultobj;
34822fail:
34823 return NULL;
34824}
34825
34826
34827SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34828 PyObject *resultobj = 0;
34829 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34830 wxTreeItemId *arg2 = 0 ;
34831 bool arg3 = (bool) true ;
34832 void *argp1 = 0 ;
34833 int res1 = 0 ;
34834 void *argp2 = 0 ;
34835 int res2 = 0 ;
34836 bool val3 ;
34837 int ecode3 = 0 ;
34838 PyObject * obj0 = 0 ;
34839 PyObject * obj1 = 0 ;
34840 PyObject * obj2 = 0 ;
34841 char * kwnames[] = {
34842 (char *) "self",(char *) "item",(char *) "highlight", NULL
34843 };
34844
34845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34847 if (!SWIG_IsOK(res1)) {
34848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34849 }
34850 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34852 if (!SWIG_IsOK(res2)) {
34853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34854 }
34855 if (!argp2) {
34856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34857 }
34858 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34859 if (obj2) {
34860 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34861 if (!SWIG_IsOK(ecode3)) {
34862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34863 }
34864 arg3 = static_cast< bool >(val3);
34865 }
34866 {
34867 PyThreadState* __tstate = wxPyBeginAllowThreads();
34868 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34869 wxPyEndAllowThreads(__tstate);
34870 if (PyErr_Occurred()) SWIG_fail;
34871 }
34872 resultobj = SWIG_Py_Void();
34873 return resultobj;
34874fail:
34875 return NULL;
34876}
34877
34878
34879SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34880 PyObject *resultobj = 0;
34881 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34882 wxTreeItemId *arg2 = 0 ;
34883 wxColour *arg3 = 0 ;
34884 void *argp1 = 0 ;
34885 int res1 = 0 ;
34886 void *argp2 = 0 ;
34887 int res2 = 0 ;
34888 wxColour temp3 ;
34889 PyObject * obj0 = 0 ;
34890 PyObject * obj1 = 0 ;
34891 PyObject * obj2 = 0 ;
34892 char * kwnames[] = {
34893 (char *) "self",(char *) "item",(char *) "col", NULL
34894 };
34895
34896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34898 if (!SWIG_IsOK(res1)) {
34899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34900 }
34901 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34903 if (!SWIG_IsOK(res2)) {
34904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34905 }
34906 if (!argp2) {
34907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34908 }
34909 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34910 {
34911 arg3 = &temp3;
34912 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34913 }
34914 {
34915 PyThreadState* __tstate = wxPyBeginAllowThreads();
34916 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34917 wxPyEndAllowThreads(__tstate);
34918 if (PyErr_Occurred()) SWIG_fail;
34919 }
34920 resultobj = SWIG_Py_Void();
34921 return resultobj;
34922fail:
34923 return NULL;
34924}
34925
34926
34927SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34928 PyObject *resultobj = 0;
34929 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34930 wxTreeItemId *arg2 = 0 ;
34931 wxColour *arg3 = 0 ;
34932 void *argp1 = 0 ;
34933 int res1 = 0 ;
34934 void *argp2 = 0 ;
34935 int res2 = 0 ;
34936 wxColour temp3 ;
34937 PyObject * obj0 = 0 ;
34938 PyObject * obj1 = 0 ;
34939 PyObject * obj2 = 0 ;
34940 char * kwnames[] = {
34941 (char *) "self",(char *) "item",(char *) "col", NULL
34942 };
34943
34944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34946 if (!SWIG_IsOK(res1)) {
34947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34948 }
34949 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34951 if (!SWIG_IsOK(res2)) {
34952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34953 }
34954 if (!argp2) {
34955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34956 }
34957 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34958 {
34959 arg3 = &temp3;
34960 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34961 }
34962 {
34963 PyThreadState* __tstate = wxPyBeginAllowThreads();
34964 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34965 wxPyEndAllowThreads(__tstate);
34966 if (PyErr_Occurred()) SWIG_fail;
34967 }
34968 resultobj = SWIG_Py_Void();
34969 return resultobj;
34970fail:
34971 return NULL;
34972}
34973
34974
34975SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34976 PyObject *resultobj = 0;
34977 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34978 wxTreeItemId *arg2 = 0 ;
34979 wxFont *arg3 = 0 ;
34980 void *argp1 = 0 ;
34981 int res1 = 0 ;
34982 void *argp2 = 0 ;
34983 int res2 = 0 ;
34984 void *argp3 = 0 ;
34985 int res3 = 0 ;
34986 PyObject * obj0 = 0 ;
34987 PyObject * obj1 = 0 ;
34988 PyObject * obj2 = 0 ;
34989 char * kwnames[] = {
34990 (char *) "self",(char *) "item",(char *) "font", NULL
34991 };
34992
34993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34995 if (!SWIG_IsOK(res1)) {
34996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34997 }
34998 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35000 if (!SWIG_IsOK(res2)) {
35001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 if (!argp2) {
35004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35005 }
35006 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35007 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35008 if (!SWIG_IsOK(res3)) {
35009 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35010 }
35011 if (!argp3) {
35012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35013 }
35014 arg3 = reinterpret_cast< wxFont * >(argp3);
35015 {
35016 PyThreadState* __tstate = wxPyBeginAllowThreads();
35017 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35018 wxPyEndAllowThreads(__tstate);
35019 if (PyErr_Occurred()) SWIG_fail;
35020 }
35021 resultobj = SWIG_Py_Void();
35022 return resultobj;
35023fail:
35024 return NULL;
35025}
35026
35027
35028SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35029 PyObject *resultobj = 0;
35030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35031 wxTreeItemId *arg2 = 0 ;
35032 bool result;
35033 void *argp1 = 0 ;
35034 int res1 = 0 ;
35035 void *argp2 = 0 ;
35036 int res2 = 0 ;
35037 PyObject * obj0 = 0 ;
35038 PyObject * obj1 = 0 ;
35039 char * kwnames[] = {
35040 (char *) "self",(char *) "item", NULL
35041 };
35042
35043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35045 if (!SWIG_IsOK(res1)) {
35046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35047 }
35048 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35049 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35050 if (!SWIG_IsOK(res2)) {
35051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35052 }
35053 if (!argp2) {
35054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35055 }
35056 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35057 {
35058 PyThreadState* __tstate = wxPyBeginAllowThreads();
35059 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35060 wxPyEndAllowThreads(__tstate);
35061 if (PyErr_Occurred()) SWIG_fail;
35062 }
35063 {
35064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35065 }
35066 return resultobj;
35067fail:
35068 return NULL;
35069}
35070
35071
35072SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35073 PyObject *resultobj = 0;
35074 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35075 wxTreeItemId *arg2 = 0 ;
35076 bool result;
35077 void *argp1 = 0 ;
35078 int res1 = 0 ;
35079 void *argp2 = 0 ;
35080 int res2 = 0 ;
35081 PyObject * obj0 = 0 ;
35082 PyObject * obj1 = 0 ;
35083 char * kwnames[] = {
35084 (char *) "self",(char *) "item", NULL
35085 };
35086
35087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35089 if (!SWIG_IsOK(res1)) {
35090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35091 }
35092 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35094 if (!SWIG_IsOK(res2)) {
35095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35096 }
35097 if (!argp2) {
35098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35099 }
35100 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35101 {
35102 PyThreadState* __tstate = wxPyBeginAllowThreads();
35103 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35104 wxPyEndAllowThreads(__tstate);
35105 if (PyErr_Occurred()) SWIG_fail;
35106 }
35107 {
35108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35109 }
35110 return resultobj;
35111fail:
35112 return NULL;
35113}
35114
35115
35116SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35117 PyObject *resultobj = 0;
35118 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35119 wxTreeItemId *arg2 = 0 ;
35120 bool result;
35121 void *argp1 = 0 ;
35122 int res1 = 0 ;
35123 void *argp2 = 0 ;
35124 int res2 = 0 ;
35125 PyObject * obj0 = 0 ;
35126 PyObject * obj1 = 0 ;
35127 char * kwnames[] = {
35128 (char *) "self",(char *) "item", NULL
35129 };
35130
35131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35133 if (!SWIG_IsOK(res1)) {
35134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35135 }
35136 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35138 if (!SWIG_IsOK(res2)) {
35139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35140 }
35141 if (!argp2) {
35142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35143 }
35144 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35145 {
35146 PyThreadState* __tstate = wxPyBeginAllowThreads();
35147 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35148 wxPyEndAllowThreads(__tstate);
35149 if (PyErr_Occurred()) SWIG_fail;
35150 }
35151 {
35152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35153 }
35154 return resultobj;
35155fail:
35156 return NULL;
35157}
35158
35159
35160SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35161 PyObject *resultobj = 0;
35162 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35163 wxTreeItemId *arg2 = 0 ;
35164 bool result;
35165 void *argp1 = 0 ;
35166 int res1 = 0 ;
35167 void *argp2 = 0 ;
35168 int res2 = 0 ;
35169 PyObject * obj0 = 0 ;
35170 PyObject * obj1 = 0 ;
35171 char * kwnames[] = {
35172 (char *) "self",(char *) "item", NULL
35173 };
35174
35175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) 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_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35184 }
35185 if (!argp2) {
35186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35187 }
35188 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35189 {
35190 PyThreadState* __tstate = wxPyBeginAllowThreads();
35191 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35192 wxPyEndAllowThreads(__tstate);
35193 if (PyErr_Occurred()) SWIG_fail;
35194 }
35195 {
35196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35197 }
35198 return resultobj;
35199fail:
35200 return NULL;
35201}
35202
35203
35204SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35205 PyObject *resultobj = 0;
35206 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35207 wxTreeItemId *arg2 = 0 ;
35208 bool result;
35209 void *argp1 = 0 ;
35210 int res1 = 0 ;
35211 void *argp2 = 0 ;
35212 int res2 = 0 ;
35213 PyObject * obj0 = 0 ;
35214 PyObject * obj1 = 0 ;
35215 char * kwnames[] = {
35216 (char *) "self",(char *) "item", NULL
35217 };
35218
35219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35221 if (!SWIG_IsOK(res1)) {
35222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35223 }
35224 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35226 if (!SWIG_IsOK(res2)) {
35227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35228 }
35229 if (!argp2) {
35230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35231 }
35232 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35233 {
35234 PyThreadState* __tstate = wxPyBeginAllowThreads();
35235 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35236 wxPyEndAllowThreads(__tstate);
35237 if (PyErr_Occurred()) SWIG_fail;
35238 }
35239 {
35240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35241 }
35242 return resultobj;
35243fail:
35244 return NULL;
35245}
35246
35247
35248SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35249 PyObject *resultobj = 0;
35250 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35251 wxTreeItemId *arg2 = 0 ;
35252 bool arg3 = (bool) true ;
35253 size_t result;
35254 void *argp1 = 0 ;
35255 int res1 = 0 ;
35256 void *argp2 = 0 ;
35257 int res2 = 0 ;
35258 bool val3 ;
35259 int ecode3 = 0 ;
35260 PyObject * obj0 = 0 ;
35261 PyObject * obj1 = 0 ;
35262 PyObject * obj2 = 0 ;
35263 char * kwnames[] = {
35264 (char *) "self",(char *) "item",(char *) "recursively", NULL
35265 };
35266
35267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35269 if (!SWIG_IsOK(res1)) {
35270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35271 }
35272 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35274 if (!SWIG_IsOK(res2)) {
35275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35276 }
35277 if (!argp2) {
35278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35279 }
35280 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35281 if (obj2) {
35282 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35283 if (!SWIG_IsOK(ecode3)) {
35284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35285 }
35286 arg3 = static_cast< bool >(val3);
35287 }
35288 {
35289 PyThreadState* __tstate = wxPyBeginAllowThreads();
35290 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35291 wxPyEndAllowThreads(__tstate);
35292 if (PyErr_Occurred()) SWIG_fail;
35293 }
35294 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35295 return resultobj;
35296fail:
35297 return NULL;
d14a1e28
RD
35298}
35299
35300
0085ce49
RD
35301SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35302 PyObject *resultobj = 0;
35303 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35304 wxTreeItemId result;
35305 void *argp1 = 0 ;
35306 int res1 = 0 ;
35307 PyObject *swig_obj[1] ;
35308
35309 if (!args) SWIG_fail;
35310 swig_obj[0] = args;
35311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35312 if (!SWIG_IsOK(res1)) {
35313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35314 }
35315 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35316 {
35317 PyThreadState* __tstate = wxPyBeginAllowThreads();
35318 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35319 wxPyEndAllowThreads(__tstate);
35320 if (PyErr_Occurred()) SWIG_fail;
35321 }
35322 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35323 return resultobj;
35324fail:
35325 return NULL;
d14a1e28
RD
35326}
35327
35328
0085ce49
RD
35329SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35330 PyObject *resultobj = 0;
35331 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35332 wxTreeItemId result;
35333 void *argp1 = 0 ;
35334 int res1 = 0 ;
35335 PyObject *swig_obj[1] ;
35336
35337 if (!args) SWIG_fail;
35338 swig_obj[0] = args;
35339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35340 if (!SWIG_IsOK(res1)) {
35341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35342 }
35343 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35344 {
35345 PyThreadState* __tstate = wxPyBeginAllowThreads();
35346 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35347 wxPyEndAllowThreads(__tstate);
35348 if (PyErr_Occurred()) SWIG_fail;
35349 }
35350 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35351 return resultobj;
35352fail:
35353 return NULL;
d14a1e28
RD
35354}
35355
35356
0085ce49
RD
35357SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35358 PyObject *resultobj = 0;
35359 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35360 PyObject *result = 0 ;
35361 void *argp1 = 0 ;
35362 int res1 = 0 ;
35363 PyObject *swig_obj[1] ;
35364
35365 if (!args) SWIG_fail;
35366 swig_obj[0] = args;
35367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35368 if (!SWIG_IsOK(res1)) {
35369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35370 }
35371 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35372 {
35373 PyThreadState* __tstate = wxPyBeginAllowThreads();
35374 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35375 wxPyEndAllowThreads(__tstate);
35376 if (PyErr_Occurred()) SWIG_fail;
35377 }
35378 resultobj = result;
35379 return resultobj;
35380fail:
35381 return NULL;
35382}
35383
35384
35385SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35386 PyObject *resultobj = 0;
35387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35388 wxTreeItemId *arg2 = 0 ;
35389 wxTreeItemId result;
35390 void *argp1 = 0 ;
35391 int res1 = 0 ;
35392 void *argp2 = 0 ;
35393 int res2 = 0 ;
35394 PyObject * obj0 = 0 ;
35395 PyObject * obj1 = 0 ;
35396 char * kwnames[] = {
35397 (char *) "self",(char *) "item", NULL
35398 };
35399
35400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35402 if (!SWIG_IsOK(res1)) {
35403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35404 }
35405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35407 if (!SWIG_IsOK(res2)) {
35408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35409 }
35410 if (!argp2) {
35411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35412 }
35413 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35414 {
35415 PyThreadState* __tstate = wxPyBeginAllowThreads();
35416 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35417 wxPyEndAllowThreads(__tstate);
35418 if (PyErr_Occurred()) SWIG_fail;
35419 }
35420 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35421 return resultobj;
35422fail:
35423 return NULL;
35424}
35425
35426
35427SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35428 PyObject *resultobj = 0;
35429 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35430 wxTreeItemId *arg2 = 0 ;
35431 PyObject *result = 0 ;
35432 void *argp1 = 0 ;
35433 int res1 = 0 ;
35434 void *argp2 = 0 ;
35435 int res2 = 0 ;
35436 PyObject * obj0 = 0 ;
35437 PyObject * obj1 = 0 ;
35438 char * kwnames[] = {
35439 (char *) "self",(char *) "item", NULL
35440 };
35441
35442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35444 if (!SWIG_IsOK(res1)) {
35445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35446 }
35447 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35449 if (!SWIG_IsOK(res2)) {
35450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35451 }
35452 if (!argp2) {
35453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35454 }
35455 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35456 {
35457 PyThreadState* __tstate = wxPyBeginAllowThreads();
35458 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35459 wxPyEndAllowThreads(__tstate);
35460 if (PyErr_Occurred()) SWIG_fail;
35461 }
35462 resultobj = result;
35463 return resultobj;
35464fail:
35465 return NULL;
35466}
35467
35468
35469SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35470 PyObject *resultobj = 0;
35471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35472 wxTreeItemId *arg2 = 0 ;
35473 void *arg3 = (void *) 0 ;
35474 PyObject *result = 0 ;
35475 void *argp1 = 0 ;
35476 int res1 = 0 ;
35477 void *argp2 = 0 ;
35478 int res2 = 0 ;
35479 int res3 ;
35480 PyObject * obj0 = 0 ;
35481 PyObject * obj1 = 0 ;
35482 PyObject * obj2 = 0 ;
35483 char * kwnames[] = {
35484 (char *) "self",(char *) "item",(char *) "cookie", NULL
35485 };
35486
35487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35489 if (!SWIG_IsOK(res1)) {
35490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35491 }
35492 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35494 if (!SWIG_IsOK(res2)) {
35495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35496 }
35497 if (!argp2) {
35498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35499 }
35500 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35501 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35502 if (!SWIG_IsOK(res3)) {
35503 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35504 }
35505 {
35506 PyThreadState* __tstate = wxPyBeginAllowThreads();
35507 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35508 wxPyEndAllowThreads(__tstate);
35509 if (PyErr_Occurred()) SWIG_fail;
35510 }
35511 resultobj = result;
35512 return resultobj;
35513fail:
35514 return NULL;
35515}
35516
35517
35518SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35519 PyObject *resultobj = 0;
35520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35521 wxTreeItemId *arg2 = 0 ;
35522 wxTreeItemId result;
35523 void *argp1 = 0 ;
35524 int res1 = 0 ;
35525 void *argp2 = 0 ;
35526 int res2 = 0 ;
35527 PyObject * obj0 = 0 ;
35528 PyObject * obj1 = 0 ;
35529 char * kwnames[] = {
35530 (char *) "self",(char *) "item", NULL
35531 };
35532
35533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35535 if (!SWIG_IsOK(res1)) {
35536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35537 }
35538 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35540 if (!SWIG_IsOK(res2)) {
35541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35542 }
35543 if (!argp2) {
35544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35545 }
35546 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35547 {
35548 PyThreadState* __tstate = wxPyBeginAllowThreads();
35549 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35550 wxPyEndAllowThreads(__tstate);
35551 if (PyErr_Occurred()) SWIG_fail;
35552 }
35553 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35554 return resultobj;
35555fail:
35556 return NULL;
35557}
35558
35559
35560SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35561 PyObject *resultobj = 0;
35562 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35563 wxTreeItemId *arg2 = 0 ;
35564 wxTreeItemId result;
35565 void *argp1 = 0 ;
35566 int res1 = 0 ;
35567 void *argp2 = 0 ;
35568 int res2 = 0 ;
35569 PyObject * obj0 = 0 ;
35570 PyObject * obj1 = 0 ;
35571 char * kwnames[] = {
35572 (char *) "self",(char *) "item", NULL
35573 };
35574
35575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35577 if (!SWIG_IsOK(res1)) {
35578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35579 }
35580 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35582 if (!SWIG_IsOK(res2)) {
35583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35584 }
35585 if (!argp2) {
35586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35587 }
35588 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35589 {
35590 PyThreadState* __tstate = wxPyBeginAllowThreads();
35591 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35592 wxPyEndAllowThreads(__tstate);
35593 if (PyErr_Occurred()) SWIG_fail;
35594 }
35595 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35596 return resultobj;
35597fail:
35598 return NULL;
35599}
35600
35601
35602SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35603 PyObject *resultobj = 0;
35604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35605 wxTreeItemId *arg2 = 0 ;
35606 wxTreeItemId result;
35607 void *argp1 = 0 ;
35608 int res1 = 0 ;
35609 void *argp2 = 0 ;
35610 int res2 = 0 ;
35611 PyObject * obj0 = 0 ;
35612 PyObject * obj1 = 0 ;
35613 char * kwnames[] = {
35614 (char *) "self",(char *) "item", NULL
35615 };
35616
35617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35619 if (!SWIG_IsOK(res1)) {
35620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35621 }
35622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35624 if (!SWIG_IsOK(res2)) {
35625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35626 }
35627 if (!argp2) {
35628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35629 }
35630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35631 {
35632 PyThreadState* __tstate = wxPyBeginAllowThreads();
35633 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35634 wxPyEndAllowThreads(__tstate);
35635 if (PyErr_Occurred()) SWIG_fail;
35636 }
35637 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35638 return resultobj;
35639fail:
35640 return NULL;
d14a1e28
RD
35641}
35642
35643
0085ce49
RD
35644SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35645 PyObject *resultobj = 0;
35646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35647 wxTreeItemId result;
35648 void *argp1 = 0 ;
35649 int res1 = 0 ;
35650 PyObject *swig_obj[1] ;
35651
35652 if (!args) SWIG_fail;
35653 swig_obj[0] = args;
35654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35655 if (!SWIG_IsOK(res1)) {
35656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35657 }
35658 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35659 {
35660 PyThreadState* __tstate = wxPyBeginAllowThreads();
35661 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35662 wxPyEndAllowThreads(__tstate);
35663 if (PyErr_Occurred()) SWIG_fail;
35664 }
35665 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35666 return resultobj;
35667fail:
35668 return NULL;
35669}
35670
35671
35672SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35673 PyObject *resultobj = 0;
35674 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35675 wxTreeItemId *arg2 = 0 ;
35676 wxTreeItemId result;
35677 void *argp1 = 0 ;
35678 int res1 = 0 ;
35679 void *argp2 = 0 ;
35680 int res2 = 0 ;
35681 PyObject * obj0 = 0 ;
35682 PyObject * obj1 = 0 ;
35683 char * kwnames[] = {
35684 (char *) "self",(char *) "item", NULL
35685 };
35686
35687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35689 if (!SWIG_IsOK(res1)) {
35690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35691 }
35692 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35694 if (!SWIG_IsOK(res2)) {
35695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35696 }
35697 if (!argp2) {
35698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35699 }
35700 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35701 {
35702 PyThreadState* __tstate = wxPyBeginAllowThreads();
35703 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35704 wxPyEndAllowThreads(__tstate);
35705 if (PyErr_Occurred()) SWIG_fail;
35706 }
35707 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35708 return resultobj;
35709fail:
35710 return NULL;
35711}
35712
35713
35714SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35715 PyObject *resultobj = 0;
35716 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35717 wxTreeItemId *arg2 = 0 ;
35718 wxTreeItemId result;
35719 void *argp1 = 0 ;
35720 int res1 = 0 ;
35721 void *argp2 = 0 ;
35722 int res2 = 0 ;
35723 PyObject * obj0 = 0 ;
35724 PyObject * obj1 = 0 ;
35725 char * kwnames[] = {
35726 (char *) "self",(char *) "item", NULL
35727 };
35728
35729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35731 if (!SWIG_IsOK(res1)) {
35732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35733 }
35734 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35736 if (!SWIG_IsOK(res2)) {
35737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35738 }
35739 if (!argp2) {
35740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35741 }
35742 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35743 {
35744 PyThreadState* __tstate = wxPyBeginAllowThreads();
35745 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35746 wxPyEndAllowThreads(__tstate);
35747 if (PyErr_Occurred()) SWIG_fail;
35748 }
35749 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35750 return resultobj;
35751fail:
35752 return NULL;
35753}
35754
35755
35756SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35757 PyObject *resultobj = 0;
35758 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35759 wxString *arg2 = 0 ;
35760 int arg3 = (int) -1 ;
35761 int arg4 = (int) -1 ;
35762 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35763 wxTreeItemId result;
35764 void *argp1 = 0 ;
35765 int res1 = 0 ;
35766 bool temp2 = false ;
35767 int val3 ;
35768 int ecode3 = 0 ;
35769 int val4 ;
35770 int ecode4 = 0 ;
35771 int res5 = 0 ;
35772 PyObject * obj0 = 0 ;
35773 PyObject * obj1 = 0 ;
35774 PyObject * obj2 = 0 ;
35775 PyObject * obj3 = 0 ;
35776 PyObject * obj4 = 0 ;
35777 char * kwnames[] = {
35778 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35779 };
35780
35781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35783 if (!SWIG_IsOK(res1)) {
35784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35785 }
35786 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35787 {
35788 arg2 = wxString_in_helper(obj1);
35789 if (arg2 == NULL) SWIG_fail;
35790 temp2 = true;
35791 }
35792 if (obj2) {
35793 ecode3 = SWIG_AsVal_int(obj2, &val3);
35794 if (!SWIG_IsOK(ecode3)) {
35795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35796 }
35797 arg3 = static_cast< int >(val3);
35798 }
35799 if (obj3) {
35800 ecode4 = SWIG_AsVal_int(obj3, &val4);
35801 if (!SWIG_IsOK(ecode4)) {
35802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35803 }
35804 arg4 = static_cast< int >(val4);
35805 }
35806 if (obj4) {
35807 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35808 if (!SWIG_IsOK(res5)) {
35809 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
3a04f143 35810 }
0085ce49
RD
35811 }
35812 {
35813 PyThreadState* __tstate = wxPyBeginAllowThreads();
35814 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35815 wxPyEndAllowThreads(__tstate);
35816 if (PyErr_Occurred()) SWIG_fail;
35817 }
35818 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35819 {
35820 if (temp2)
35821 delete arg2;
35822 }
35823 return resultobj;
35824fail:
35825 {
35826 if (temp2)
35827 delete arg2;
35828 }
35829 return NULL;
35830}
35831
35832
35833SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35834 PyObject *resultobj = 0;
35835 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35836 wxTreeItemId *arg2 = 0 ;
35837 wxString *arg3 = 0 ;
35838 int arg4 = (int) -1 ;
35839 int arg5 = (int) -1 ;
35840 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35841 wxTreeItemId result;
35842 void *argp1 = 0 ;
35843 int res1 = 0 ;
35844 void *argp2 = 0 ;
35845 int res2 = 0 ;
35846 bool temp3 = false ;
35847 int val4 ;
35848 int ecode4 = 0 ;
35849 int val5 ;
35850 int ecode5 = 0 ;
35851 int res6 = 0 ;
35852 PyObject * obj0 = 0 ;
35853 PyObject * obj1 = 0 ;
35854 PyObject * obj2 = 0 ;
35855 PyObject * obj3 = 0 ;
35856 PyObject * obj4 = 0 ;
35857 PyObject * obj5 = 0 ;
35858 char * kwnames[] = {
35859 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35860 };
35861
35862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35864 if (!SWIG_IsOK(res1)) {
35865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35866 }
35867 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35869 if (!SWIG_IsOK(res2)) {
35870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35871 }
35872 if (!argp2) {
35873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35874 }
35875 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35876 {
35877 arg3 = wxString_in_helper(obj2);
35878 if (arg3 == NULL) SWIG_fail;
35879 temp3 = true;
35880 }
35881 if (obj3) {
35882 ecode4 = SWIG_AsVal_int(obj3, &val4);
35883 if (!SWIG_IsOK(ecode4)) {
35884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35885 }
35886 arg4 = static_cast< int >(val4);
35887 }
35888 if (obj4) {
35889 ecode5 = SWIG_AsVal_int(obj4, &val5);
35890 if (!SWIG_IsOK(ecode5)) {
35891 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35892 }
35893 arg5 = static_cast< int >(val5);
35894 }
35895 if (obj5) {
35896 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35897 if (!SWIG_IsOK(res6)) {
35898 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 35899 }
0085ce49
RD
35900 }
35901 {
35902 PyThreadState* __tstate = wxPyBeginAllowThreads();
35903 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35904 wxPyEndAllowThreads(__tstate);
35905 if (PyErr_Occurred()) SWIG_fail;
35906 }
35907 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35908 {
35909 if (temp3)
35910 delete arg3;
35911 }
35912 return resultobj;
35913fail:
35914 {
35915 if (temp3)
35916 delete arg3;
35917 }
35918 return NULL;
35919}
35920
35921
35922SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35923 PyObject *resultobj = 0;
35924 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35925 wxTreeItemId *arg2 = 0 ;
35926 wxTreeItemId *arg3 = 0 ;
35927 wxString *arg4 = 0 ;
35928 int arg5 = (int) -1 ;
35929 int arg6 = (int) -1 ;
35930 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35931 wxTreeItemId result;
35932 void *argp1 = 0 ;
35933 int res1 = 0 ;
35934 void *argp2 = 0 ;
35935 int res2 = 0 ;
35936 void *argp3 = 0 ;
35937 int res3 = 0 ;
35938 bool temp4 = false ;
35939 int val5 ;
35940 int ecode5 = 0 ;
35941 int val6 ;
35942 int ecode6 = 0 ;
35943 int res7 = 0 ;
35944 PyObject * obj0 = 0 ;
35945 PyObject * obj1 = 0 ;
35946 PyObject * obj2 = 0 ;
35947 PyObject * obj3 = 0 ;
35948 PyObject * obj4 = 0 ;
35949 PyObject * obj5 = 0 ;
35950 PyObject * obj6 = 0 ;
35951 char * kwnames[] = {
35952 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35953 };
35954
35955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35957 if (!SWIG_IsOK(res1)) {
35958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35959 }
35960 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35962 if (!SWIG_IsOK(res2)) {
35963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35964 }
35965 if (!argp2) {
35966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35967 }
35968 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35969 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35970 if (!SWIG_IsOK(res3)) {
35971 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35972 }
35973 if (!argp3) {
35974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35975 }
35976 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35977 {
35978 arg4 = wxString_in_helper(obj3);
35979 if (arg4 == NULL) SWIG_fail;
35980 temp4 = true;
35981 }
35982 if (obj4) {
35983 ecode5 = SWIG_AsVal_int(obj4, &val5);
35984 if (!SWIG_IsOK(ecode5)) {
35985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35986 }
35987 arg5 = static_cast< int >(val5);
35988 }
35989 if (obj5) {
35990 ecode6 = SWIG_AsVal_int(obj5, &val6);
35991 if (!SWIG_IsOK(ecode6)) {
35992 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35993 }
35994 arg6 = static_cast< int >(val6);
35995 }
35996 if (obj6) {
35997 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35998 if (!SWIG_IsOK(res7)) {
35999 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36000 }
0085ce49
RD
36001 }
36002 {
36003 PyThreadState* __tstate = wxPyBeginAllowThreads();
36004 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36005 wxPyEndAllowThreads(__tstate);
36006 if (PyErr_Occurred()) SWIG_fail;
36007 }
36008 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36009 {
36010 if (temp4)
36011 delete arg4;
36012 }
36013 return resultobj;
36014fail:
36015 {
36016 if (temp4)
36017 delete arg4;
36018 }
36019 return NULL;
36020}
36021
36022
36023SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36024 PyObject *resultobj = 0;
36025 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36026 wxTreeItemId *arg2 = 0 ;
36027 size_t arg3 ;
36028 wxString *arg4 = 0 ;
36029 int arg5 = (int) -1 ;
36030 int arg6 = (int) -1 ;
36031 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36032 wxTreeItemId result;
36033 void *argp1 = 0 ;
36034 int res1 = 0 ;
36035 void *argp2 = 0 ;
36036 int res2 = 0 ;
36037 size_t val3 ;
36038 int ecode3 = 0 ;
36039 bool temp4 = false ;
36040 int val5 ;
36041 int ecode5 = 0 ;
36042 int val6 ;
36043 int ecode6 = 0 ;
36044 int res7 = 0 ;
36045 PyObject * obj0 = 0 ;
36046 PyObject * obj1 = 0 ;
36047 PyObject * obj2 = 0 ;
36048 PyObject * obj3 = 0 ;
36049 PyObject * obj4 = 0 ;
36050 PyObject * obj5 = 0 ;
36051 PyObject * obj6 = 0 ;
36052 char * kwnames[] = {
36053 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36054 };
36055
36056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36058 if (!SWIG_IsOK(res1)) {
36059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36060 }
36061 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36063 if (!SWIG_IsOK(res2)) {
36064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36065 }
36066 if (!argp2) {
36067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36068 }
36069 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36070 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36071 if (!SWIG_IsOK(ecode3)) {
36072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36073 }
36074 arg3 = static_cast< size_t >(val3);
36075 {
36076 arg4 = wxString_in_helper(obj3);
36077 if (arg4 == NULL) SWIG_fail;
36078 temp4 = true;
36079 }
36080 if (obj4) {
36081 ecode5 = SWIG_AsVal_int(obj4, &val5);
36082 if (!SWIG_IsOK(ecode5)) {
36083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36084 }
36085 arg5 = static_cast< int >(val5);
36086 }
36087 if (obj5) {
36088 ecode6 = SWIG_AsVal_int(obj5, &val6);
36089 if (!SWIG_IsOK(ecode6)) {
36090 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36091 }
36092 arg6 = static_cast< int >(val6);
36093 }
36094 if (obj6) {
36095 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36096 if (!SWIG_IsOK(res7)) {
36097 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
3a04f143 36098 }
0085ce49
RD
36099 }
36100 {
36101 PyThreadState* __tstate = wxPyBeginAllowThreads();
36102 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36103 wxPyEndAllowThreads(__tstate);
36104 if (PyErr_Occurred()) SWIG_fail;
36105 }
36106 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36107 {
36108 if (temp4)
36109 delete arg4;
36110 }
36111 return resultobj;
36112fail:
36113 {
36114 if (temp4)
36115 delete arg4;
36116 }
36117 return NULL;
36118}
36119
36120
36121SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36122 PyObject *resultobj = 0;
36123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36124 wxTreeItemId *arg2 = 0 ;
36125 wxString *arg3 = 0 ;
36126 int arg4 = (int) -1 ;
36127 int arg5 = (int) -1 ;
36128 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36129 wxTreeItemId result;
36130 void *argp1 = 0 ;
36131 int res1 = 0 ;
36132 void *argp2 = 0 ;
36133 int res2 = 0 ;
36134 bool temp3 = false ;
36135 int val4 ;
36136 int ecode4 = 0 ;
36137 int val5 ;
36138 int ecode5 = 0 ;
36139 int res6 = 0 ;
36140 PyObject * obj0 = 0 ;
36141 PyObject * obj1 = 0 ;
36142 PyObject * obj2 = 0 ;
36143 PyObject * obj3 = 0 ;
36144 PyObject * obj4 = 0 ;
36145 PyObject * obj5 = 0 ;
36146 char * kwnames[] = {
36147 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36148 };
36149
36150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36152 if (!SWIG_IsOK(res1)) {
36153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36154 }
36155 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36156 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36157 if (!SWIG_IsOK(res2)) {
36158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36159 }
36160 if (!argp2) {
36161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36162 }
36163 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36164 {
36165 arg3 = wxString_in_helper(obj2);
36166 if (arg3 == NULL) SWIG_fail;
36167 temp3 = true;
36168 }
36169 if (obj3) {
36170 ecode4 = SWIG_AsVal_int(obj3, &val4);
36171 if (!SWIG_IsOK(ecode4)) {
36172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36173 }
36174 arg4 = static_cast< int >(val4);
36175 }
36176 if (obj4) {
36177 ecode5 = SWIG_AsVal_int(obj4, &val5);
36178 if (!SWIG_IsOK(ecode5)) {
36179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36180 }
36181 arg5 = static_cast< int >(val5);
36182 }
36183 if (obj5) {
36184 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36185 if (!SWIG_IsOK(res6)) {
36186 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 36187 }
0085ce49
RD
36188 }
36189 {
36190 PyThreadState* __tstate = wxPyBeginAllowThreads();
36191 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36192 wxPyEndAllowThreads(__tstate);
36193 if (PyErr_Occurred()) SWIG_fail;
36194 }
36195 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36196 {
36197 if (temp3)
36198 delete arg3;
36199 }
36200 return resultobj;
36201fail:
36202 {
36203 if (temp3)
36204 delete arg3;
36205 }
36206 return NULL;
36207}
36208
36209
36210SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36211 PyObject *resultobj = 0;
36212 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36213 wxTreeItemId *arg2 = 0 ;
36214 void *argp1 = 0 ;
36215 int res1 = 0 ;
36216 void *argp2 = 0 ;
36217 int res2 = 0 ;
36218 PyObject * obj0 = 0 ;
36219 PyObject * obj1 = 0 ;
36220 char * kwnames[] = {
36221 (char *) "self",(char *) "item", NULL
36222 };
36223
36224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36226 if (!SWIG_IsOK(res1)) {
36227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36228 }
36229 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36231 if (!SWIG_IsOK(res2)) {
36232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36233 }
36234 if (!argp2) {
36235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36236 }
36237 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36238 {
36239 PyThreadState* __tstate = wxPyBeginAllowThreads();
36240 (arg1)->Delete((wxTreeItemId const &)*arg2);
36241 wxPyEndAllowThreads(__tstate);
36242 if (PyErr_Occurred()) SWIG_fail;
36243 }
36244 resultobj = SWIG_Py_Void();
36245 return resultobj;
36246fail:
36247 return NULL;
36248}
36249
36250
36251SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36252 PyObject *resultobj = 0;
36253 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36254 wxTreeItemId *arg2 = 0 ;
36255 void *argp1 = 0 ;
36256 int res1 = 0 ;
36257 void *argp2 = 0 ;
36258 int res2 = 0 ;
36259 PyObject * obj0 = 0 ;
36260 PyObject * obj1 = 0 ;
36261 char * kwnames[] = {
36262 (char *) "self",(char *) "item", NULL
36263 };
36264
36265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36267 if (!SWIG_IsOK(res1)) {
36268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36269 }
36270 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36272 if (!SWIG_IsOK(res2)) {
36273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36274 }
36275 if (!argp2) {
36276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36277 }
36278 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36279 {
36280 PyThreadState* __tstate = wxPyBeginAllowThreads();
36281 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36282 wxPyEndAllowThreads(__tstate);
36283 if (PyErr_Occurred()) SWIG_fail;
36284 }
36285 resultobj = SWIG_Py_Void();
36286 return resultobj;
36287fail:
36288 return NULL;
3a04f143
RD
36289}
36290
36291
0085ce49
RD
36292SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36293 PyObject *resultobj = 0;
36294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36295 void *argp1 = 0 ;
36296 int res1 = 0 ;
36297 PyObject *swig_obj[1] ;
36298
36299 if (!args) SWIG_fail;
36300 swig_obj[0] = args;
36301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36302 if (!SWIG_IsOK(res1)) {
36303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36304 }
36305 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36306 {
36307 PyThreadState* __tstate = wxPyBeginAllowThreads();
36308 (arg1)->DeleteAllItems();
36309 wxPyEndAllowThreads(__tstate);
36310 if (PyErr_Occurred()) SWIG_fail;
36311 }
36312 resultobj = SWIG_Py_Void();
36313 return resultobj;
36314fail:
36315 return NULL;
36316}
36317
36318
36319SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36320 PyObject *resultobj = 0;
36321 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36322 wxTreeItemId *arg2 = 0 ;
36323 void *argp1 = 0 ;
36324 int res1 = 0 ;
36325 void *argp2 = 0 ;
36326 int res2 = 0 ;
36327 PyObject * obj0 = 0 ;
36328 PyObject * obj1 = 0 ;
36329 char * kwnames[] = {
36330 (char *) "self",(char *) "item", NULL
36331 };
36332
36333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36335 if (!SWIG_IsOK(res1)) {
36336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36337 }
36338 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36340 if (!SWIG_IsOK(res2)) {
36341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36342 }
36343 if (!argp2) {
36344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36345 }
36346 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36347 {
36348 PyThreadState* __tstate = wxPyBeginAllowThreads();
36349 (arg1)->Expand((wxTreeItemId const &)*arg2);
36350 wxPyEndAllowThreads(__tstate);
36351 if (PyErr_Occurred()) SWIG_fail;
36352 }
36353 resultobj = SWIG_Py_Void();
36354 return resultobj;
36355fail:
36356 return NULL;
36357}
36358
36359
453fb36b
RD
36360SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36361 PyObject *resultobj = 0;
36362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36363 wxTreeItemId *arg2 = 0 ;
36364 void *argp1 = 0 ;
36365 int res1 = 0 ;
36366 void *argp2 = 0 ;
36367 int res2 = 0 ;
36368 PyObject * obj0 = 0 ;
36369 PyObject * obj1 = 0 ;
36370 char * kwnames[] = {
36371 (char *) "self",(char *) "item", NULL
36372 };
36373
36374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36376 if (!SWIG_IsOK(res1)) {
36377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36378 }
36379 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36381 if (!SWIG_IsOK(res2)) {
36382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36383 }
36384 if (!argp2) {
36385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36386 }
36387 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36388 {
36389 PyThreadState* __tstate = wxPyBeginAllowThreads();
36390 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36391 wxPyEndAllowThreads(__tstate);
36392 if (PyErr_Occurred()) SWIG_fail;
36393 }
36394 resultobj = SWIG_Py_Void();
36395 return resultobj;
36396fail:
36397 return NULL;
36398}
36399
36400
36401SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36402 PyObject *resultobj = 0;
36403 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36404 void *argp1 = 0 ;
36405 int res1 = 0 ;
36406 PyObject *swig_obj[1] ;
36407
36408 if (!args) SWIG_fail;
36409 swig_obj[0] = args;
36410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36411 if (!SWIG_IsOK(res1)) {
36412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36413 }
36414 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36415 {
36416 PyThreadState* __tstate = wxPyBeginAllowThreads();
36417 (arg1)->ExpandAll();
36418 wxPyEndAllowThreads(__tstate);
36419 if (PyErr_Occurred()) SWIG_fail;
36420 }
36421 resultobj = SWIG_Py_Void();
36422 return resultobj;
36423fail:
36424 return NULL;
36425}
36426
36427
0085ce49
RD
36428SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36429 PyObject *resultobj = 0;
36430 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36431 wxTreeItemId *arg2 = 0 ;
36432 void *argp1 = 0 ;
36433 int res1 = 0 ;
36434 void *argp2 = 0 ;
36435 int res2 = 0 ;
36436 PyObject * obj0 = 0 ;
36437 PyObject * obj1 = 0 ;
36438 char * kwnames[] = {
36439 (char *) "self",(char *) "item", NULL
36440 };
36441
36442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36444 if (!SWIG_IsOK(res1)) {
36445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36446 }
36447 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36449 if (!SWIG_IsOK(res2)) {
36450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36451 }
36452 if (!argp2) {
36453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36454 }
36455 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36456 {
36457 PyThreadState* __tstate = wxPyBeginAllowThreads();
36458 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36459 wxPyEndAllowThreads(__tstate);
36460 if (PyErr_Occurred()) SWIG_fail;
36461 }
36462 resultobj = SWIG_Py_Void();
36463 return resultobj;
36464fail:
36465 return NULL;
36466}
36467
36468
36469SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36470 PyObject *resultobj = 0;
36471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36472 wxTreeItemId *arg2 = 0 ;
36473 void *argp1 = 0 ;
36474 int res1 = 0 ;
36475 void *argp2 = 0 ;
36476 int res2 = 0 ;
36477 PyObject * obj0 = 0 ;
36478 PyObject * obj1 = 0 ;
36479 char * kwnames[] = {
36480 (char *) "self",(char *) "item", NULL
36481 };
36482
36483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36485 if (!SWIG_IsOK(res1)) {
36486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36487 }
36488 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36490 if (!SWIG_IsOK(res2)) {
36491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36492 }
36493 if (!argp2) {
36494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36495 }
36496 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36497 {
36498 PyThreadState* __tstate = wxPyBeginAllowThreads();
36499 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36500 wxPyEndAllowThreads(__tstate);
36501 if (PyErr_Occurred()) SWIG_fail;
36502 }
36503 resultobj = SWIG_Py_Void();
36504 return resultobj;
36505fail:
36506 return NULL;
36507}
36508
36509
36510SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36511 PyObject *resultobj = 0;
36512 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36513 wxTreeItemId *arg2 = 0 ;
36514 void *argp1 = 0 ;
36515 int res1 = 0 ;
36516 void *argp2 = 0 ;
36517 int res2 = 0 ;
36518 PyObject * obj0 = 0 ;
36519 PyObject * obj1 = 0 ;
36520 char * kwnames[] = {
36521 (char *) "self",(char *) "item", NULL
36522 };
36523
36524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36526 if (!SWIG_IsOK(res1)) {
36527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36528 }
36529 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36531 if (!SWIG_IsOK(res2)) {
36532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36533 }
36534 if (!argp2) {
36535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36536 }
36537 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36538 {
36539 PyThreadState* __tstate = wxPyBeginAllowThreads();
36540 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36541 wxPyEndAllowThreads(__tstate);
36542 if (PyErr_Occurred()) SWIG_fail;
36543 }
36544 resultobj = SWIG_Py_Void();
36545 return resultobj;
36546fail:
36547 return NULL;
d14a1e28
RD
36548}
36549
36550
0085ce49
RD
36551SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36552 PyObject *resultobj = 0;
36553 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36554 void *argp1 = 0 ;
36555 int res1 = 0 ;
36556 PyObject *swig_obj[1] ;
36557
36558 if (!args) SWIG_fail;
36559 swig_obj[0] = args;
36560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36561 if (!SWIG_IsOK(res1)) {
36562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36563 }
36564 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36565 {
36566 PyThreadState* __tstate = wxPyBeginAllowThreads();
36567 (arg1)->Unselect();
36568 wxPyEndAllowThreads(__tstate);
36569 if (PyErr_Occurred()) SWIG_fail;
36570 }
36571 resultobj = SWIG_Py_Void();
36572 return resultobj;
36573fail:
36574 return NULL;
36575}
36576
36577
36578SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36579 PyObject *resultobj = 0;
36580 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36581 wxTreeItemId *arg2 = 0 ;
36582 void *argp1 = 0 ;
36583 int res1 = 0 ;
36584 void *argp2 = 0 ;
36585 int res2 = 0 ;
36586 PyObject * obj0 = 0 ;
36587 PyObject * obj1 = 0 ;
36588 char * kwnames[] = {
36589 (char *) "self",(char *) "item", NULL
36590 };
36591
36592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36594 if (!SWIG_IsOK(res1)) {
36595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36596 }
36597 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36599 if (!SWIG_IsOK(res2)) {
36600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36601 }
36602 if (!argp2) {
36603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36604 }
36605 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36606 {
36607 PyThreadState* __tstate = wxPyBeginAllowThreads();
36608 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36609 wxPyEndAllowThreads(__tstate);
36610 if (PyErr_Occurred()) SWIG_fail;
36611 }
36612 resultobj = SWIG_Py_Void();
36613 return resultobj;
36614fail:
36615 return NULL;
d14a1e28
RD
36616}
36617
36618
0085ce49
RD
36619SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36620 PyObject *resultobj = 0;
36621 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36622 void *argp1 = 0 ;
36623 int res1 = 0 ;
36624 PyObject *swig_obj[1] ;
36625
36626 if (!args) SWIG_fail;
36627 swig_obj[0] = args;
36628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36629 if (!SWIG_IsOK(res1)) {
36630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36631 }
36632 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36633 {
36634 PyThreadState* __tstate = wxPyBeginAllowThreads();
36635 (arg1)->UnselectAll();
36636 wxPyEndAllowThreads(__tstate);
36637 if (PyErr_Occurred()) SWIG_fail;
36638 }
36639 resultobj = SWIG_Py_Void();
36640 return resultobj;
36641fail:
36642 return NULL;
36643}
36644
36645
36646SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36647 PyObject *resultobj = 0;
36648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36649 wxTreeItemId *arg2 = 0 ;
36650 bool arg3 = (bool) true ;
36651 void *argp1 = 0 ;
36652 int res1 = 0 ;
36653 void *argp2 = 0 ;
36654 int res2 = 0 ;
36655 bool val3 ;
36656 int ecode3 = 0 ;
36657 PyObject * obj0 = 0 ;
36658 PyObject * obj1 = 0 ;
36659 PyObject * obj2 = 0 ;
36660 char * kwnames[] = {
36661 (char *) "self",(char *) "item",(char *) "select", NULL
36662 };
36663
36664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36666 if (!SWIG_IsOK(res1)) {
36667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36668 }
36669 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36671 if (!SWIG_IsOK(res2)) {
36672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36673 }
36674 if (!argp2) {
36675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36676 }
36677 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36678 if (obj2) {
36679 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36680 if (!SWIG_IsOK(ecode3)) {
36681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36682 }
36683 arg3 = static_cast< bool >(val3);
36684 }
36685 {
36686 PyThreadState* __tstate = wxPyBeginAllowThreads();
36687 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36688 wxPyEndAllowThreads(__tstate);
36689 if (PyErr_Occurred()) SWIG_fail;
36690 }
36691 resultobj = SWIG_Py_Void();
36692 return resultobj;
36693fail:
36694 return NULL;
36695}
36696
36697
36698SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36699 PyObject *resultobj = 0;
36700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36701 wxTreeItemId *arg2 = 0 ;
36702 void *argp1 = 0 ;
36703 int res1 = 0 ;
36704 void *argp2 = 0 ;
36705 int res2 = 0 ;
36706 PyObject * obj0 = 0 ;
36707 PyObject * obj1 = 0 ;
36708 char * kwnames[] = {
36709 (char *) "self",(char *) "item", NULL
36710 };
36711
36712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36714 if (!SWIG_IsOK(res1)) {
36715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36716 }
36717 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36719 if (!SWIG_IsOK(res2)) {
36720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36721 }
36722 if (!argp2) {
36723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36724 }
36725 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36726 {
36727 PyThreadState* __tstate = wxPyBeginAllowThreads();
36728 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36729 wxPyEndAllowThreads(__tstate);
36730 if (PyErr_Occurred()) SWIG_fail;
36731 }
36732 resultobj = SWIG_Py_Void();
36733 return resultobj;
36734fail:
36735 return NULL;
36736}
36737
36738
36739SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36740 PyObject *resultobj = 0;
36741 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36742 wxTreeItemId *arg2 = 0 ;
36743 void *argp1 = 0 ;
36744 int res1 = 0 ;
36745 void *argp2 = 0 ;
36746 int res2 = 0 ;
36747 PyObject * obj0 = 0 ;
36748 PyObject * obj1 = 0 ;
36749 char * kwnames[] = {
36750 (char *) "self",(char *) "item", NULL
36751 };
36752
36753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36755 if (!SWIG_IsOK(res1)) {
36756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36757 }
36758 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36759 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36760 if (!SWIG_IsOK(res2)) {
36761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36762 }
36763 if (!argp2) {
36764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36765 }
36766 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36767 {
36768 PyThreadState* __tstate = wxPyBeginAllowThreads();
36769 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36770 wxPyEndAllowThreads(__tstate);
36771 if (PyErr_Occurred()) SWIG_fail;
36772 }
36773 resultobj = SWIG_Py_Void();
36774 return resultobj;
36775fail:
36776 return NULL;
36777}
36778
36779
36780SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36781 PyObject *resultobj = 0;
36782 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36783 wxTreeItemId *arg2 = 0 ;
36784 void *argp1 = 0 ;
36785 int res1 = 0 ;
36786 void *argp2 = 0 ;
36787 int res2 = 0 ;
36788 PyObject * obj0 = 0 ;
36789 PyObject * obj1 = 0 ;
36790 char * kwnames[] = {
36791 (char *) "self",(char *) "item", NULL
36792 };
36793
36794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36796 if (!SWIG_IsOK(res1)) {
36797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36798 }
36799 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36801 if (!SWIG_IsOK(res2)) {
36802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36803 }
36804 if (!argp2) {
36805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36806 }
36807 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36808 {
36809 PyThreadState* __tstate = wxPyBeginAllowThreads();
36810 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36811 wxPyEndAllowThreads(__tstate);
36812 if (PyErr_Occurred()) SWIG_fail;
36813 }
36814 resultobj = SWIG_Py_Void();
36815 return resultobj;
36816fail:
36817 return NULL;
36818}
36819
36820
36821SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36822 PyObject *resultobj = 0;
36823 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36824 wxTreeItemId *arg2 = 0 ;
36825 void *argp1 = 0 ;
36826 int res1 = 0 ;
36827 void *argp2 = 0 ;
36828 int res2 = 0 ;
36829 PyObject * obj0 = 0 ;
36830 PyObject * obj1 = 0 ;
36831 char * kwnames[] = {
36832 (char *) "self",(char *) "item", NULL
36833 };
36834
36835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36837 if (!SWIG_IsOK(res1)) {
36838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36839 }
36840 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36841 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36842 if (!SWIG_IsOK(res2)) {
36843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36844 }
36845 if (!argp2) {
36846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36847 }
36848 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36849 {
36850 PyThreadState* __tstate = wxPyBeginAllowThreads();
36851 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36852 wxPyEndAllowThreads(__tstate);
36853 if (PyErr_Occurred()) SWIG_fail;
36854 }
36855 resultobj = SWIG_Py_Void();
36856 return resultobj;
36857fail:
36858 return NULL;
d14a1e28
RD
36859}
36860
36861
0085ce49
RD
36862SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36863 PyObject *resultobj = 0;
36864 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36865 wxTextCtrl *result = 0 ;
36866 void *argp1 = 0 ;
36867 int res1 = 0 ;
36868 PyObject *swig_obj[1] ;
36869
36870 if (!args) SWIG_fail;
36871 swig_obj[0] = args;
36872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36873 if (!SWIG_IsOK(res1)) {
36874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36875 }
36876 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36877 {
36878 PyThreadState* __tstate = wxPyBeginAllowThreads();
36879 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36880 wxPyEndAllowThreads(__tstate);
36881 if (PyErr_Occurred()) SWIG_fail;
36882 }
36883 {
36884 resultobj = wxPyMake_wxObject(result, 0);
36885 }
36886 return resultobj;
36887fail:
36888 return NULL;
36889}
36890
36891
36892SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36893 PyObject *resultobj = 0;
36894 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36895 wxTreeItemId *arg2 = 0 ;
36896 void *argp1 = 0 ;
36897 int res1 = 0 ;
36898 void *argp2 = 0 ;
36899 int res2 = 0 ;
36900 PyObject * obj0 = 0 ;
36901 PyObject * obj1 = 0 ;
36902 char * kwnames[] = {
36903 (char *) "self",(char *) "item", NULL
36904 };
36905
36906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36908 if (!SWIG_IsOK(res1)) {
36909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36910 }
36911 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36913 if (!SWIG_IsOK(res2)) {
36914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36915 }
36916 if (!argp2) {
36917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36918 }
36919 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36920 {
36921 PyThreadState* __tstate = wxPyBeginAllowThreads();
36922 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36923 wxPyEndAllowThreads(__tstate);
36924 if (PyErr_Occurred()) SWIG_fail;
36925 }
36926 resultobj = SWIG_Py_Void();
36927 return resultobj;
36928fail:
36929 return NULL;
36930}
36931
36932
36933SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36934 PyObject *resultobj = 0;
36935 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36936 wxPoint *arg2 = 0 ;
36937 int *arg3 = 0 ;
36938 wxTreeItemId result;
36939 void *argp1 = 0 ;
36940 int res1 = 0 ;
36941 wxPoint temp2 ;
36942 int temp3 ;
36943 int res3 = SWIG_TMPOBJ ;
36944 PyObject * obj0 = 0 ;
36945 PyObject * obj1 = 0 ;
36946 char * kwnames[] = {
36947 (char *) "self",(char *) "point", NULL
36948 };
36949
36950 arg3 = &temp3;
36951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36953 if (!SWIG_IsOK(res1)) {
36954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36955 }
36956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36957 {
36958 arg2 = &temp2;
36959 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36960 }
36961 {
36962 PyThreadState* __tstate = wxPyBeginAllowThreads();
36963 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36964 wxPyEndAllowThreads(__tstate);
36965 if (PyErr_Occurred()) SWIG_fail;
36966 }
36967 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36968 if (SWIG_IsTmpObj(res3)) {
36969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36970 } else {
36971 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36973 }
36974 return resultobj;
36975fail:
36976 return NULL;
36977}
36978
36979
36980SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36981 PyObject *resultobj = 0;
36982 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36983 wxTreeItemId *arg2 = 0 ;
36984 bool arg3 = (bool) false ;
36985 PyObject *result = 0 ;
36986 void *argp1 = 0 ;
36987 int res1 = 0 ;
36988 void *argp2 = 0 ;
36989 int res2 = 0 ;
36990 bool val3 ;
36991 int ecode3 = 0 ;
36992 PyObject * obj0 = 0 ;
36993 PyObject * obj1 = 0 ;
36994 PyObject * obj2 = 0 ;
36995 char * kwnames[] = {
36996 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36997 };
36998
36999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37001 if (!SWIG_IsOK(res1)) {
37002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37003 }
37004 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37006 if (!SWIG_IsOK(res2)) {
37007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37008 }
37009 if (!argp2) {
37010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37011 }
37012 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37013 if (obj2) {
37014 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37015 if (!SWIG_IsOK(ecode3)) {
37016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37017 }
37018 arg3 = static_cast< bool >(val3);
37019 }
37020 {
37021 PyThreadState* __tstate = wxPyBeginAllowThreads();
37022 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37023 wxPyEndAllowThreads(__tstate);
37024 if (PyErr_Occurred()) SWIG_fail;
37025 }
37026 resultobj = result;
37027 return resultobj;
37028fail:
37029 return NULL;
37030}
37031
37032
37033SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37034 PyObject *resultobj = 0;
37035 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37036 SwigValueWrapper<wxVisualAttributes > result;
37037 int val1 ;
37038 int ecode1 = 0 ;
37039 PyObject * obj0 = 0 ;
37040 char * kwnames[] = {
37041 (char *) "variant", NULL
37042 };
37043
37044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37045 if (obj0) {
37046 ecode1 = SWIG_AsVal_int(obj0, &val1);
37047 if (!SWIG_IsOK(ecode1)) {
37048 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37049 }
37050 arg1 = static_cast< wxWindowVariant >(val1);
37051 }
37052 {
37053 if (!wxPyCheckForApp()) SWIG_fail;
37054 PyThreadState* __tstate = wxPyBeginAllowThreads();
37055 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37056 wxPyEndAllowThreads(__tstate);
37057 if (PyErr_Occurred()) SWIG_fail;
37058 }
37059 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37060 return resultobj;
37061fail:
37062 return NULL;
d14a1e28
RD
37063}
37064
37065
2131d850
RD
37066SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37067 PyObject *resultobj = 0;
37068 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37069 bool arg2 ;
37070 void *argp1 = 0 ;
37071 int res1 = 0 ;
37072 bool val2 ;
37073 int ecode2 = 0 ;
37074 PyObject * obj0 = 0 ;
37075 PyObject * obj1 = 0 ;
37076 char * kwnames[] = {
37077 (char *) "self",(char *) "q", NULL
37078 };
37079
37080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37082 if (!SWIG_IsOK(res1)) {
37083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37084 }
37085 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37086 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37087 if (!SWIG_IsOK(ecode2)) {
37088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37089 }
37090 arg2 = static_cast< bool >(val2);
37091 {
37092 PyThreadState* __tstate = wxPyBeginAllowThreads();
37093 (arg1)->SetQuickBestSize(arg2);
37094 wxPyEndAllowThreads(__tstate);
37095 if (PyErr_Occurred()) SWIG_fail;
37096 }
37097 resultobj = SWIG_Py_Void();
37098 return resultobj;
37099fail:
37100 return NULL;
37101}
37102
37103
37104SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37105 PyObject *resultobj = 0;
37106 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37107 bool result;
37108 void *argp1 = 0 ;
37109 int res1 = 0 ;
37110 PyObject *swig_obj[1] ;
37111
37112 if (!args) SWIG_fail;
37113 swig_obj[0] = args;
37114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37115 if (!SWIG_IsOK(res1)) {
37116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37117 }
37118 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37119 {
37120 PyThreadState* __tstate = wxPyBeginAllowThreads();
37121 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37122 wxPyEndAllowThreads(__tstate);
37123 if (PyErr_Occurred()) SWIG_fail;
37124 }
37125 {
37126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37127 }
37128 return resultobj;
37129fail:
37130 return NULL;
37131}
37132
37133
0085ce49
RD
37134SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37135 PyObject *obj;
37136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37137 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37138 return SWIG_Py_Void();
d14a1e28
RD
37139}
37140
0085ce49
RD
37141SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37142 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
37143}
37144
0085ce49
RD
37145SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37146 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37147 return 1;
d14a1e28
RD
37148}
37149
37150
0085ce49
RD
37151SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37152 PyObject *pyobj = 0;
37153
37154 {
37155#if wxUSE_UNICODE
37156 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37157#else
37158 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37159#endif
37160 }
37161 return pyobj;
37162}
37163
37164
37165SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37166 PyObject *resultobj = 0;
37167 wxWindow *arg1 = (wxWindow *) 0 ;
37168 int arg2 = (int) (int)-1 ;
37169 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37170 wxString *arg3 = (wxString *) &arg3_defvalue ;
37171 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37172 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37173 wxSize const &arg5_defvalue = wxDefaultSize ;
37174 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37175 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37176 wxString const &arg7_defvalue = wxPyEmptyString ;
37177 wxString *arg7 = (wxString *) &arg7_defvalue ;
37178 int arg8 = (int) 0 ;
37179 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37180 wxString *arg9 = (wxString *) &arg9_defvalue ;
37181 wxGenericDirCtrl *result = 0 ;
37182 void *argp1 = 0 ;
37183 int res1 = 0 ;
37184 int val2 ;
37185 int ecode2 = 0 ;
37186 bool temp3 = false ;
37187 wxPoint temp4 ;
37188 wxSize temp5 ;
37189 long val6 ;
37190 int ecode6 = 0 ;
37191 bool temp7 = false ;
37192 int val8 ;
37193 int ecode8 = 0 ;
37194 bool temp9 = false ;
37195 PyObject * obj0 = 0 ;
37196 PyObject * obj1 = 0 ;
37197 PyObject * obj2 = 0 ;
37198 PyObject * obj3 = 0 ;
37199 PyObject * obj4 = 0 ;
37200 PyObject * obj5 = 0 ;
37201 PyObject * obj6 = 0 ;
37202 PyObject * obj7 = 0 ;
37203 PyObject * obj8 = 0 ;
37204 char * kwnames[] = {
37205 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37206 };
37207
37208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37210 if (!SWIG_IsOK(res1)) {
37211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37212 }
37213 arg1 = reinterpret_cast< wxWindow * >(argp1);
37214 if (obj1) {
37215 ecode2 = SWIG_AsVal_int(obj1, &val2);
37216 if (!SWIG_IsOK(ecode2)) {
37217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37218 }
37219 arg2 = static_cast< int >(val2);
37220 }
37221 if (obj2) {
d14a1e28 37222 {
0085ce49
RD
37223 arg3 = wxString_in_helper(obj2);
37224 if (arg3 == NULL) SWIG_fail;
37225 temp3 = true;
d14a1e28 37226 }
0085ce49
RD
37227 }
37228 if (obj3) {
4f89f6a3 37229 {
0085ce49
RD
37230 arg4 = &temp4;
37231 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 37232 }
0085ce49
RD
37233 }
37234 if (obj4) {
093d3ff1 37235 {
0085ce49
RD
37236 arg5 = &temp5;
37237 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37238 }
0085ce49
RD
37239 }
37240 if (obj5) {
37241 ecode6 = SWIG_AsVal_long(obj5, &val6);
37242 if (!SWIG_IsOK(ecode6)) {
37243 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37244 }
37245 arg6 = static_cast< long >(val6);
37246 }
37247 if (obj6) {
093d3ff1 37248 {
0085ce49
RD
37249 arg7 = wxString_in_helper(obj6);
37250 if (arg7 == NULL) SWIG_fail;
37251 temp7 = true;
093d3ff1 37252 }
0085ce49
RD
37253 }
37254 if (obj7) {
37255 ecode8 = SWIG_AsVal_int(obj7, &val8);
37256 if (!SWIG_IsOK(ecode8)) {
37257 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37258 }
37259 arg8 = static_cast< int >(val8);
37260 }
37261 if (obj8) {
d14a1e28 37262 {
0085ce49
RD
37263 arg9 = wxString_in_helper(obj8);
37264 if (arg9 == NULL) SWIG_fail;
37265 temp9 = true;
d14a1e28 37266 }
0085ce49
RD
37267 }
37268 {
37269 if (!wxPyCheckForApp()) SWIG_fail;
37270 PyThreadState* __tstate = wxPyBeginAllowThreads();
37271 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37272 wxPyEndAllowThreads(__tstate);
37273 if (PyErr_Occurred()) SWIG_fail;
37274 }
37275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37276 {
37277 if (temp3)
37278 delete arg3;
37279 }
37280 {
37281 if (temp7)
37282 delete arg7;
37283 }
37284 {
37285 if (temp9)
37286 delete arg9;
37287 }
37288 return resultobj;
37289fail:
37290 {
37291 if (temp3)
37292 delete arg3;
37293 }
37294 {
37295 if (temp7)
37296 delete arg7;
37297 }
37298 {
37299 if (temp9)
37300 delete arg9;
37301 }
37302 return NULL;
d14a1e28
RD
37303}
37304
37305
0085ce49
RD
37306SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37307 PyObject *resultobj = 0;
37308 wxGenericDirCtrl *result = 0 ;
37309
37310 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37311 {
37312 if (!wxPyCheckForApp()) SWIG_fail;
37313 PyThreadState* __tstate = wxPyBeginAllowThreads();
37314 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37315 wxPyEndAllowThreads(__tstate);
37316 if (PyErr_Occurred()) SWIG_fail;
37317 }
37318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37319 return resultobj;
37320fail:
37321 return NULL;
37322}
37323
37324
37325SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37326 PyObject *resultobj = 0;
37327 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37328 wxWindow *arg2 = (wxWindow *) 0 ;
37329 int arg3 = (int) (int)-1 ;
37330 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37331 wxString *arg4 = (wxString *) &arg4_defvalue ;
37332 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37333 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37334 wxSize const &arg6_defvalue = wxDefaultSize ;
37335 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37336 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37337 wxString const &arg8_defvalue = wxPyEmptyString ;
37338 wxString *arg8 = (wxString *) &arg8_defvalue ;
37339 int arg9 = (int) 0 ;
37340 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37341 wxString *arg10 = (wxString *) &arg10_defvalue ;
37342 bool result;
37343 void *argp1 = 0 ;
37344 int res1 = 0 ;
37345 void *argp2 = 0 ;
37346 int res2 = 0 ;
37347 int val3 ;
37348 int ecode3 = 0 ;
37349 bool temp4 = false ;
37350 wxPoint temp5 ;
37351 wxSize temp6 ;
37352 long val7 ;
37353 int ecode7 = 0 ;
37354 bool temp8 = false ;
37355 int val9 ;
37356 int ecode9 = 0 ;
37357 bool temp10 = false ;
37358 PyObject * obj0 = 0 ;
37359 PyObject * obj1 = 0 ;
37360 PyObject * obj2 = 0 ;
37361 PyObject * obj3 = 0 ;
37362 PyObject * obj4 = 0 ;
37363 PyObject * obj5 = 0 ;
37364 PyObject * obj6 = 0 ;
37365 PyObject * obj7 = 0 ;
37366 PyObject * obj8 = 0 ;
37367 PyObject * obj9 = 0 ;
37368 char * kwnames[] = {
37369 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37370 };
37371
37372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37374 if (!SWIG_IsOK(res1)) {
37375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37376 }
37377 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37378 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37379 if (!SWIG_IsOK(res2)) {
37380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37381 }
37382 arg2 = reinterpret_cast< wxWindow * >(argp2);
37383 if (obj2) {
37384 ecode3 = SWIG_AsVal_int(obj2, &val3);
37385 if (!SWIG_IsOK(ecode3)) {
37386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37387 }
37388 arg3 = static_cast< int >(val3);
37389 }
37390 if (obj3) {
093d3ff1 37391 {
0085ce49
RD
37392 arg4 = wxString_in_helper(obj3);
37393 if (arg4 == NULL) SWIG_fail;
37394 temp4 = true;
093d3ff1 37395 }
0085ce49
RD
37396 }
37397 if (obj4) {
093d3ff1 37398 {
0085ce49
RD
37399 arg5 = &temp5;
37400 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37401 }
0085ce49
RD
37402 }
37403 if (obj5) {
d14a1e28 37404 {
0085ce49
RD
37405 arg6 = &temp6;
37406 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 37407 }
0085ce49
RD
37408 }
37409 if (obj6) {
37410 ecode7 = SWIG_AsVal_long(obj6, &val7);
37411 if (!SWIG_IsOK(ecode7)) {
37412 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37413 }
37414 arg7 = static_cast< long >(val7);
37415 }
37416 if (obj7) {
093d3ff1 37417 {
0085ce49
RD
37418 arg8 = wxString_in_helper(obj7);
37419 if (arg8 == NULL) SWIG_fail;
37420 temp8 = true;
093d3ff1 37421 }
0085ce49
RD
37422 }
37423 if (obj8) {
37424 ecode9 = SWIG_AsVal_int(obj8, &val9);
37425 if (!SWIG_IsOK(ecode9)) {
37426 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37427 }
37428 arg9 = static_cast< int >(val9);
37429 }
37430 if (obj9) {
093d3ff1 37431 {
0085ce49
RD
37432 arg10 = wxString_in_helper(obj9);
37433 if (arg10 == NULL) SWIG_fail;
37434 temp10 = true;
093d3ff1 37435 }
0085ce49
RD
37436 }
37437 {
37438 PyThreadState* __tstate = wxPyBeginAllowThreads();
37439 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37440 wxPyEndAllowThreads(__tstate);
37441 if (PyErr_Occurred()) SWIG_fail;
37442 }
37443 {
37444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37445 }
37446 {
37447 if (temp4)
37448 delete arg4;
37449 }
37450 {
37451 if (temp8)
37452 delete arg8;
37453 }
37454 {
37455 if (temp10)
37456 delete arg10;
37457 }
37458 return resultobj;
37459fail:
37460 {
37461 if (temp4)
37462 delete arg4;
37463 }
37464 {
37465 if (temp8)
37466 delete arg8;
37467 }
37468 {
37469 if (temp10)
37470 delete arg10;
37471 }
37472 return NULL;
37473}
37474
37475
37476SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37477 PyObject *resultobj = 0;
37478 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37479 wxString *arg2 = 0 ;
37480 bool result;
37481 void *argp1 = 0 ;
37482 int res1 = 0 ;
37483 bool temp2 = false ;
37484 PyObject * obj0 = 0 ;
37485 PyObject * obj1 = 0 ;
37486 char * kwnames[] = {
37487 (char *) "self",(char *) "path", NULL
37488 };
37489
37490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37492 if (!SWIG_IsOK(res1)) {
37493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37494 }
37495 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37496 {
37497 arg2 = wxString_in_helper(obj1);
37498 if (arg2 == NULL) SWIG_fail;
37499 temp2 = true;
37500 }
37501 {
37502 PyThreadState* __tstate = wxPyBeginAllowThreads();
37503 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37504 wxPyEndAllowThreads(__tstate);
37505 if (PyErr_Occurred()) SWIG_fail;
37506 }
37507 {
37508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37509 }
37510 {
37511 if (temp2)
37512 delete arg2;
37513 }
37514 return resultobj;
37515fail:
37516 {
37517 if (temp2)
37518 delete arg2;
37519 }
37520 return NULL;
d14a1e28
RD
37521}
37522
37523
704eda0c
RD
37524SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37525 PyObject *resultobj = 0;
37526 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37527 wxString *arg2 = 0 ;
37528 bool result;
37529 void *argp1 = 0 ;
37530 int res1 = 0 ;
37531 bool temp2 = false ;
37532 PyObject * obj0 = 0 ;
37533 PyObject * obj1 = 0 ;
37534 char * kwnames[] = {
37535 (char *) "self",(char *) "path", NULL
37536 };
37537
37538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37540 if (!SWIG_IsOK(res1)) {
37541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37542 }
37543 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37544 {
37545 arg2 = wxString_in_helper(obj1);
37546 if (arg2 == NULL) SWIG_fail;
37547 temp2 = true;
37548 }
37549 {
37550 PyThreadState* __tstate = wxPyBeginAllowThreads();
37551 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37552 wxPyEndAllowThreads(__tstate);
37553 if (PyErr_Occurred()) SWIG_fail;
37554 }
37555 {
37556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37557 }
37558 {
37559 if (temp2)
37560 delete arg2;
37561 }
37562 return resultobj;
37563fail:
37564 {
37565 if (temp2)
37566 delete arg2;
37567 }
37568 return NULL;
37569}
37570
37571
0085ce49
RD
37572SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37573 PyObject *resultobj = 0;
37574 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37575 wxString result;
37576 void *argp1 = 0 ;
37577 int res1 = 0 ;
37578 PyObject *swig_obj[1] ;
37579
37580 if (!args) SWIG_fail;
37581 swig_obj[0] = args;
37582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37583 if (!SWIG_IsOK(res1)) {
37584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37585 }
37586 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37587 {
37588 PyThreadState* __tstate = wxPyBeginAllowThreads();
37589 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37590 wxPyEndAllowThreads(__tstate);
37591 if (PyErr_Occurred()) SWIG_fail;
37592 }
37593 {
37594#if wxUSE_UNICODE
37595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37596#else
37597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37598#endif
37599 }
37600 return resultobj;
37601fail:
37602 return NULL;
37603}
37604
37605
37606SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37607 PyObject *resultobj = 0;
37608 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37609 wxString *arg2 = 0 ;
37610 void *argp1 = 0 ;
37611 int res1 = 0 ;
37612 bool temp2 = false ;
37613 PyObject * obj0 = 0 ;
37614 PyObject * obj1 = 0 ;
37615 char * kwnames[] = {
37616 (char *) "self",(char *) "path", NULL
37617 };
37618
37619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37621 if (!SWIG_IsOK(res1)) {
37622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37623 }
37624 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37625 {
37626 arg2 = wxString_in_helper(obj1);
37627 if (arg2 == NULL) SWIG_fail;
37628 temp2 = true;
37629 }
37630 {
37631 PyThreadState* __tstate = wxPyBeginAllowThreads();
37632 (arg1)->SetDefaultPath((wxString const &)*arg2);
37633 wxPyEndAllowThreads(__tstate);
37634 if (PyErr_Occurred()) SWIG_fail;
37635 }
37636 resultobj = SWIG_Py_Void();
37637 {
37638 if (temp2)
37639 delete arg2;
37640 }
37641 return resultobj;
37642fail:
37643 {
37644 if (temp2)
37645 delete arg2;
37646 }
37647 return NULL;
d14a1e28
RD
37648}
37649
37650
0085ce49
RD
37651SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37652 PyObject *resultobj = 0;
37653 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37654 wxString result;
37655 void *argp1 = 0 ;
37656 int res1 = 0 ;
37657 PyObject *swig_obj[1] ;
37658
37659 if (!args) SWIG_fail;
37660 swig_obj[0] = args;
37661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37662 if (!SWIG_IsOK(res1)) {
37663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37664 }
37665 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37666 {
37667 PyThreadState* __tstate = wxPyBeginAllowThreads();
37668 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37669 wxPyEndAllowThreads(__tstate);
37670 if (PyErr_Occurred()) SWIG_fail;
37671 }
37672 {
37673#if wxUSE_UNICODE
37674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37675#else
37676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37677#endif
37678 }
37679 return resultobj;
37680fail:
37681 return NULL;
d14a1e28
RD
37682}
37683
37684
0085ce49
RD
37685SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37686 PyObject *resultobj = 0;
37687 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37688 wxString result;
37689 void *argp1 = 0 ;
37690 int res1 = 0 ;
37691 PyObject *swig_obj[1] ;
37692
37693 if (!args) SWIG_fail;
37694 swig_obj[0] = args;
37695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37696 if (!SWIG_IsOK(res1)) {
37697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37698 }
37699 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37700 {
37701 PyThreadState* __tstate = wxPyBeginAllowThreads();
37702 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37703 wxPyEndAllowThreads(__tstate);
37704 if (PyErr_Occurred()) SWIG_fail;
37705 }
37706 {
37707#if wxUSE_UNICODE
37708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37709#else
37710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37711#endif
37712 }
37713 return resultobj;
37714fail:
37715 return NULL;
37716}
37717
37718
37719SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37720 PyObject *resultobj = 0;
37721 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37722 wxString *arg2 = 0 ;
37723 void *argp1 = 0 ;
37724 int res1 = 0 ;
37725 bool temp2 = false ;
37726 PyObject * obj0 = 0 ;
37727 PyObject * obj1 = 0 ;
37728 char * kwnames[] = {
37729 (char *) "self",(char *) "path", NULL
37730 };
37731
37732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37734 if (!SWIG_IsOK(res1)) {
37735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37736 }
37737 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37738 {
37739 arg2 = wxString_in_helper(obj1);
37740 if (arg2 == NULL) SWIG_fail;
37741 temp2 = true;
37742 }
37743 {
37744 PyThreadState* __tstate = wxPyBeginAllowThreads();
37745 (arg1)->SetPath((wxString const &)*arg2);
37746 wxPyEndAllowThreads(__tstate);
37747 if (PyErr_Occurred()) SWIG_fail;
37748 }
37749 resultobj = SWIG_Py_Void();
37750 {
37751 if (temp2)
37752 delete arg2;
37753 }
37754 return resultobj;
37755fail:
37756 {
37757 if (temp2)
37758 delete arg2;
37759 }
37760 return NULL;
37761}
37762
37763
37764SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37765 PyObject *resultobj = 0;
37766 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37767 bool arg2 ;
37768 void *argp1 = 0 ;
37769 int res1 = 0 ;
37770 bool val2 ;
37771 int ecode2 = 0 ;
37772 PyObject * obj0 = 0 ;
37773 PyObject * obj1 = 0 ;
37774 char * kwnames[] = {
37775 (char *) "self",(char *) "show", NULL
37776 };
37777
37778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37780 if (!SWIG_IsOK(res1)) {
37781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37782 }
37783 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37784 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37785 if (!SWIG_IsOK(ecode2)) {
37786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37787 }
37788 arg2 = static_cast< bool >(val2);
37789 {
37790 PyThreadState* __tstate = wxPyBeginAllowThreads();
37791 (arg1)->ShowHidden(arg2);
37792 wxPyEndAllowThreads(__tstate);
37793 if (PyErr_Occurred()) SWIG_fail;
37794 }
37795 resultobj = SWIG_Py_Void();
37796 return resultobj;
37797fail:
37798 return NULL;
d14a1e28
RD
37799}
37800
37801
0085ce49
RD
37802SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37803 PyObject *resultobj = 0;
37804 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37805 bool result;
37806 void *argp1 = 0 ;
37807 int res1 = 0 ;
37808 PyObject *swig_obj[1] ;
37809
37810 if (!args) SWIG_fail;
37811 swig_obj[0] = args;
37812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37813 if (!SWIG_IsOK(res1)) {
37814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37815 }
37816 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37817 {
37818 PyThreadState* __tstate = wxPyBeginAllowThreads();
37819 result = (bool)(arg1)->GetShowHidden();
37820 wxPyEndAllowThreads(__tstate);
37821 if (PyErr_Occurred()) SWIG_fail;
37822 }
37823 {
37824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37825 }
37826 return resultobj;
37827fail:
37828 return NULL;
d14a1e28
RD
37829}
37830
37831
0085ce49
RD
37832SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37833 PyObject *resultobj = 0;
37834 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37835 wxString result;
37836 void *argp1 = 0 ;
37837 int res1 = 0 ;
37838 PyObject *swig_obj[1] ;
37839
37840 if (!args) SWIG_fail;
37841 swig_obj[0] = args;
37842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37843 if (!SWIG_IsOK(res1)) {
37844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37845 }
37846 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37847 {
37848 PyThreadState* __tstate = wxPyBeginAllowThreads();
37849 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37850 wxPyEndAllowThreads(__tstate);
37851 if (PyErr_Occurred()) SWIG_fail;
37852 }
37853 {
37854#if wxUSE_UNICODE
37855 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37856#else
37857 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37858#endif
37859 }
37860 return resultobj;
37861fail:
37862 return NULL;
37863}
37864
37865
37866SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37867 PyObject *resultobj = 0;
37868 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37869 wxString *arg2 = 0 ;
37870 void *argp1 = 0 ;
37871 int res1 = 0 ;
37872 bool temp2 = false ;
37873 PyObject * obj0 = 0 ;
37874 PyObject * obj1 = 0 ;
37875 char * kwnames[] = {
37876 (char *) "self",(char *) "filter", NULL
37877 };
37878
37879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37881 if (!SWIG_IsOK(res1)) {
37882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37883 }
37884 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37885 {
37886 arg2 = wxString_in_helper(obj1);
37887 if (arg2 == NULL) SWIG_fail;
37888 temp2 = true;
37889 }
37890 {
37891 PyThreadState* __tstate = wxPyBeginAllowThreads();
37892 (arg1)->SetFilter((wxString const &)*arg2);
37893 wxPyEndAllowThreads(__tstate);
37894 if (PyErr_Occurred()) SWIG_fail;
37895 }
37896 resultobj = SWIG_Py_Void();
37897 {
37898 if (temp2)
37899 delete arg2;
37900 }
37901 return resultobj;
37902fail:
37903 {
37904 if (temp2)
37905 delete arg2;
37906 }
37907 return NULL;
d14a1e28
RD
37908}
37909
37910
0085ce49
RD
37911SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37912 PyObject *resultobj = 0;
37913 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37914 int result;
37915 void *argp1 = 0 ;
37916 int res1 = 0 ;
37917 PyObject *swig_obj[1] ;
37918
37919 if (!args) SWIG_fail;
37920 swig_obj[0] = args;
37921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37922 if (!SWIG_IsOK(res1)) {
37923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37924 }
37925 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37926 {
37927 PyThreadState* __tstate = wxPyBeginAllowThreads();
37928 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37929 wxPyEndAllowThreads(__tstate);
37930 if (PyErr_Occurred()) SWIG_fail;
37931 }
37932 resultobj = SWIG_From_int(static_cast< int >(result));
37933 return resultobj;
37934fail:
37935 return NULL;
37936}
37937
37938
37939SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37940 PyObject *resultobj = 0;
37941 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37942 int arg2 ;
37943 void *argp1 = 0 ;
37944 int res1 = 0 ;
37945 int val2 ;
37946 int ecode2 = 0 ;
37947 PyObject * obj0 = 0 ;
37948 PyObject * obj1 = 0 ;
37949 char * kwnames[] = {
37950 (char *) "self",(char *) "n", NULL
37951 };
37952
37953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37955 if (!SWIG_IsOK(res1)) {
37956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37957 }
37958 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37959 ecode2 = SWIG_AsVal_int(obj1, &val2);
37960 if (!SWIG_IsOK(ecode2)) {
37961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37962 }
37963 arg2 = static_cast< int >(val2);
37964 {
37965 PyThreadState* __tstate = wxPyBeginAllowThreads();
37966 (arg1)->SetFilterIndex(arg2);
37967 wxPyEndAllowThreads(__tstate);
37968 if (PyErr_Occurred()) SWIG_fail;
37969 }
37970 resultobj = SWIG_Py_Void();
37971 return resultobj;
37972fail:
37973 return NULL;
d14a1e28
RD
37974}
37975
37976
0085ce49
RD
37977SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37978 PyObject *resultobj = 0;
37979 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37980 wxTreeItemId result;
37981 void *argp1 = 0 ;
37982 int res1 = 0 ;
37983 PyObject *swig_obj[1] ;
37984
37985 if (!args) SWIG_fail;
37986 swig_obj[0] = args;
37987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37988 if (!SWIG_IsOK(res1)) {
37989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37990 }
37991 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37992 {
37993 PyThreadState* __tstate = wxPyBeginAllowThreads();
37994 result = (arg1)->GetRootId();
37995 wxPyEndAllowThreads(__tstate);
37996 if (PyErr_Occurred()) SWIG_fail;
37997 }
37998 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37999 return resultobj;
38000fail:
38001 return NULL;
d14a1e28
RD
38002}
38003
38004
0085ce49
RD
38005SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38006 PyObject *resultobj = 0;
38007 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38008 wxPyTreeCtrl *result = 0 ;
38009 void *argp1 = 0 ;
38010 int res1 = 0 ;
38011 PyObject *swig_obj[1] ;
38012
38013 if (!args) SWIG_fail;
38014 swig_obj[0] = args;
38015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38016 if (!SWIG_IsOK(res1)) {
38017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38018 }
38019 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38020 {
38021 PyThreadState* __tstate = wxPyBeginAllowThreads();
38022 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38023 wxPyEndAllowThreads(__tstate);
38024 if (PyErr_Occurred()) SWIG_fail;
38025 }
38026 {
38027 resultobj = wxPyMake_wxObject(result, 0);
38028 }
38029 return resultobj;
38030fail:
38031 return NULL;
d14a1e28
RD
38032}
38033
38034
0085ce49
RD
38035SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38036 PyObject *resultobj = 0;
38037 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38038 wxDirFilterListCtrl *result = 0 ;
38039 void *argp1 = 0 ;
38040 int res1 = 0 ;
38041 PyObject *swig_obj[1] ;
38042
38043 if (!args) SWIG_fail;
38044 swig_obj[0] = args;
38045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38046 if (!SWIG_IsOK(res1)) {
38047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38048 }
38049 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38050 {
38051 PyThreadState* __tstate = wxPyBeginAllowThreads();
38052 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38053 wxPyEndAllowThreads(__tstate);
38054 if (PyErr_Occurred()) SWIG_fail;
38055 }
38056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38057 return resultobj;
38058fail:
38059 return NULL;
38060}
38061
38062
38063SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38064 PyObject *resultobj = 0;
38065 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38066 wxTreeItemId arg2 ;
38067 wxString *arg3 = 0 ;
38068 bool *arg4 = 0 ;
38069 wxTreeItemId result;
38070 void *argp1 = 0 ;
38071 int res1 = 0 ;
38072 void *argp2 ;
38073 int res2 = 0 ;
38074 bool temp3 = false ;
38075 bool temp4 ;
38076 int res4 = SWIG_TMPOBJ ;
38077 PyObject * obj0 = 0 ;
38078 PyObject * obj1 = 0 ;
38079 PyObject * obj2 = 0 ;
38080 char * kwnames[] = {
38081 (char *) "self",(char *) "parentId",(char *) "path", NULL
38082 };
38083
38084 arg4 = &temp4;
38085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38087 if (!SWIG_IsOK(res1)) {
38088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38089 }
38090 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38091 {
38092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38093 if (!SWIG_IsOK(res2)) {
38094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38095 }
38096 if (!argp2) {
38097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38098 } else {
38099 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38100 arg2 = *temp;
38101 if (SWIG_IsNewObj(res2)) delete temp;
d14a1e28 38102 }
0085ce49
RD
38103 }
38104 {
38105 arg3 = wxString_in_helper(obj2);
38106 if (arg3 == NULL) SWIG_fail;
38107 temp3 = true;
38108 }
38109 {
38110 PyThreadState* __tstate = wxPyBeginAllowThreads();
38111 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38112 wxPyEndAllowThreads(__tstate);
38113 if (PyErr_Occurred()) SWIG_fail;
38114 }
38115 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38116 if (SWIG_IsTmpObj(res4)) {
38117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38118 } else {
38119 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38121 }
38122 {
38123 if (temp3)
38124 delete arg3;
38125 }
38126 return resultobj;
38127fail:
38128 {
38129 if (temp3)
38130 delete arg3;
38131 }
38132 return NULL;
d14a1e28
RD
38133}
38134
38135
0085ce49
RD
38136SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38137 PyObject *resultobj = 0;
38138 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38139 void *argp1 = 0 ;
38140 int res1 = 0 ;
38141 PyObject *swig_obj[1] ;
38142
38143 if (!args) SWIG_fail;
38144 swig_obj[0] = args;
38145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38146 if (!SWIG_IsOK(res1)) {
38147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38148 }
38149 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38150 {
38151 PyThreadState* __tstate = wxPyBeginAllowThreads();
38152 (arg1)->DoResize();
38153 wxPyEndAllowThreads(__tstate);
38154 if (PyErr_Occurred()) SWIG_fail;
38155 }
38156 resultobj = SWIG_Py_Void();
38157 return resultobj;
38158fail:
38159 return NULL;
d14a1e28
RD
38160}
38161
38162
0085ce49
RD
38163SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38164 PyObject *resultobj = 0;
38165 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38166 void *argp1 = 0 ;
38167 int res1 = 0 ;
38168 PyObject *swig_obj[1] ;
38169
38170 if (!args) SWIG_fail;
38171 swig_obj[0] = args;
38172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38173 if (!SWIG_IsOK(res1)) {
38174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38175 }
38176 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38177 {
38178 PyThreadState* __tstate = wxPyBeginAllowThreads();
38179 (arg1)->ReCreateTree();
38180 wxPyEndAllowThreads(__tstate);
38181 if (PyErr_Occurred()) SWIG_fail;
38182 }
38183 resultobj = SWIG_Py_Void();
38184 return resultobj;
38185fail:
38186 return NULL;
38187}
38188
38189
38190SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38191 PyObject *obj;
38192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38193 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38194 return SWIG_Py_Void();
38195}
38196
38197SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38198 return SWIG_Python_InitShadowInstance(args);
38199}
38200
38201SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38202 PyObject *resultobj = 0;
38203 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38204 int arg2 = (int) (int)-1 ;
38205 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38206 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38207 wxSize const &arg4_defvalue = wxDefaultSize ;
38208 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38209 long arg5 = (long) 0 ;
38210 wxDirFilterListCtrl *result = 0 ;
38211 void *argp1 = 0 ;
38212 int res1 = 0 ;
38213 int val2 ;
38214 int ecode2 = 0 ;
38215 wxPoint temp3 ;
38216 wxSize temp4 ;
38217 long val5 ;
38218 int ecode5 = 0 ;
38219 PyObject * obj0 = 0 ;
38220 PyObject * obj1 = 0 ;
38221 PyObject * obj2 = 0 ;
38222 PyObject * obj3 = 0 ;
38223 PyObject * obj4 = 0 ;
38224 char * kwnames[] = {
38225 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38226 };
38227
38228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38230 if (!SWIG_IsOK(res1)) {
38231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38232 }
38233 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38234 if (obj1) {
38235 ecode2 = SWIG_AsVal_int(obj1, &val2);
38236 if (!SWIG_IsOK(ecode2)) {
38237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38238 }
38239 arg2 = static_cast< int >(val2);
38240 }
38241 if (obj2) {
d14a1e28 38242 {
0085ce49
RD
38243 arg3 = &temp3;
38244 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38245 }
0085ce49
RD
38246 }
38247 if (obj3) {
d14a1e28 38248 {
0085ce49
RD
38249 arg4 = &temp4;
38250 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38251 }
0085ce49
RD
38252 }
38253 if (obj4) {
38254 ecode5 = SWIG_AsVal_long(obj4, &val5);
38255 if (!SWIG_IsOK(ecode5)) {
38256 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38257 }
38258 arg5 = static_cast< long >(val5);
38259 }
38260 {
38261 if (!wxPyCheckForApp()) SWIG_fail;
38262 PyThreadState* __tstate = wxPyBeginAllowThreads();
38263 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38264 wxPyEndAllowThreads(__tstate);
38265 if (PyErr_Occurred()) SWIG_fail;
38266 }
38267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38268 return resultobj;
38269fail:
38270 return NULL;
d14a1e28
RD
38271}
38272
38273
0085ce49
RD
38274SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38275 PyObject *resultobj = 0;
38276 wxDirFilterListCtrl *result = 0 ;
38277
38278 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38279 {
38280 if (!wxPyCheckForApp()) SWIG_fail;
38281 PyThreadState* __tstate = wxPyBeginAllowThreads();
38282 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38283 wxPyEndAllowThreads(__tstate);
38284 if (PyErr_Occurred()) SWIG_fail;
38285 }
38286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38287 return resultobj;
38288fail:
38289 return NULL;
38290}
38291
38292
38293SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38294 PyObject *resultobj = 0;
38295 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38296 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38297 int arg3 = (int) (int)-1 ;
38298 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38299 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38300 wxSize const &arg5_defvalue = wxDefaultSize ;
38301 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38302 long arg6 = (long) 0 ;
38303 bool result;
38304 void *argp1 = 0 ;
38305 int res1 = 0 ;
38306 void *argp2 = 0 ;
38307 int res2 = 0 ;
38308 int val3 ;
38309 int ecode3 = 0 ;
38310 wxPoint temp4 ;
38311 wxSize temp5 ;
38312 long val6 ;
38313 int ecode6 = 0 ;
38314 PyObject * obj0 = 0 ;
38315 PyObject * obj1 = 0 ;
38316 PyObject * obj2 = 0 ;
38317 PyObject * obj3 = 0 ;
38318 PyObject * obj4 = 0 ;
38319 PyObject * obj5 = 0 ;
38320 char * kwnames[] = {
38321 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38322 };
38323
38324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38326 if (!SWIG_IsOK(res1)) {
38327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38328 }
38329 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38330 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38331 if (!SWIG_IsOK(res2)) {
38332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38333 }
38334 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38335 if (obj2) {
38336 ecode3 = SWIG_AsVal_int(obj2, &val3);
38337 if (!SWIG_IsOK(ecode3)) {
38338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38339 }
38340 arg3 = static_cast< int >(val3);
38341 }
38342 if (obj3) {
093d3ff1 38343 {
0085ce49
RD
38344 arg4 = &temp4;
38345 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38346 }
0085ce49
RD
38347 }
38348 if (obj4) {
d14a1e28 38349 {
0085ce49
RD
38350 arg5 = &temp5;
38351 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 38352 }
0085ce49
RD
38353 }
38354 if (obj5) {
38355 ecode6 = SWIG_AsVal_long(obj5, &val6);
38356 if (!SWIG_IsOK(ecode6)) {
38357 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38358 }
38359 arg6 = static_cast< long >(val6);
38360 }
38361 {
38362 PyThreadState* __tstate = wxPyBeginAllowThreads();
38363 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38364 wxPyEndAllowThreads(__tstate);
38365 if (PyErr_Occurred()) SWIG_fail;
38366 }
38367 {
38368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38369 }
38370 return resultobj;
38371fail:
38372 return NULL;
38373}
38374
38375
38376SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38377 PyObject *resultobj = 0;
38378 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38379 wxString *arg2 = 0 ;
38380 int arg3 ;
38381 void *argp1 = 0 ;
38382 int res1 = 0 ;
38383 bool temp2 = false ;
38384 int val3 ;
38385 int ecode3 = 0 ;
38386 PyObject * obj0 = 0 ;
38387 PyObject * obj1 = 0 ;
38388 PyObject * obj2 = 0 ;
38389 char * kwnames[] = {
38390 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38391 };
38392
38393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38395 if (!SWIG_IsOK(res1)) {
38396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38397 }
38398 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38399 {
38400 arg2 = wxString_in_helper(obj1);
38401 if (arg2 == NULL) SWIG_fail;
38402 temp2 = true;
38403 }
38404 ecode3 = SWIG_AsVal_int(obj2, &val3);
38405 if (!SWIG_IsOK(ecode3)) {
38406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38407 }
38408 arg3 = static_cast< int >(val3);
38409 {
38410 PyThreadState* __tstate = wxPyBeginAllowThreads();
38411 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38412 wxPyEndAllowThreads(__tstate);
38413 if (PyErr_Occurred()) SWIG_fail;
38414 }
38415 resultobj = SWIG_Py_Void();
38416 {
38417 if (temp2)
38418 delete arg2;
38419 }
38420 return resultobj;
38421fail:
38422 {
38423 if (temp2)
38424 delete arg2;
38425 }
38426 return NULL;
38427}
38428
38429
38430SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38431 PyObject *obj;
38432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38433 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38434 return SWIG_Py_Void();
38435}
38436
38437SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38438 return SWIG_Python_InitShadowInstance(args);
38439}
38440
38441SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38442 PyObject *resultobj = 0;
38443 wxWindow *arg1 = (wxWindow *) 0 ;
38444 int arg2 = (int) (int)-1 ;
38445 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38446 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38447 wxSize const &arg4_defvalue = wxDefaultSize ;
38448 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38449 long arg5 = (long) 0 ;
38450 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38451 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38452 wxString const &arg7_defvalue = wxPyControlNameStr ;
38453 wxString *arg7 = (wxString *) &arg7_defvalue ;
38454 wxPyControl *result = 0 ;
38455 void *argp1 = 0 ;
38456 int res1 = 0 ;
38457 int val2 ;
38458 int ecode2 = 0 ;
38459 wxPoint temp3 ;
38460 wxSize temp4 ;
38461 long val5 ;
38462 int ecode5 = 0 ;
38463 void *argp6 = 0 ;
38464 int res6 = 0 ;
38465 bool temp7 = false ;
38466 PyObject * obj0 = 0 ;
38467 PyObject * obj1 = 0 ;
38468 PyObject * obj2 = 0 ;
38469 PyObject * obj3 = 0 ;
38470 PyObject * obj4 = 0 ;
38471 PyObject * obj5 = 0 ;
38472 PyObject * obj6 = 0 ;
38473 char * kwnames[] = {
38474 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38475 };
38476
38477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38479 if (!SWIG_IsOK(res1)) {
38480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38481 }
38482 arg1 = reinterpret_cast< wxWindow * >(argp1);
38483 if (obj1) {
38484 ecode2 = SWIG_AsVal_int(obj1, &val2);
38485 if (!SWIG_IsOK(ecode2)) {
38486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38487 }
38488 arg2 = static_cast< int >(val2);
38489 }
38490 if (obj2) {
093d3ff1 38491 {
0085ce49
RD
38492 arg3 = &temp3;
38493 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 38494 }
0085ce49
RD
38495 }
38496 if (obj3) {
d14a1e28 38497 {
0085ce49
RD
38498 arg4 = &temp4;
38499 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38500 }
0085ce49
RD
38501 }
38502 if (obj4) {
38503 ecode5 = SWIG_AsVal_long(obj4, &val5);
38504 if (!SWIG_IsOK(ecode5)) {
38505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38506 }
38507 arg5 = static_cast< long >(val5);
38508 }
38509 if (obj5) {
38510 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38511 if (!SWIG_IsOK(res6)) {
38512 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38513 }
38514 if (!argp6) {
38515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 38516 }
0085ce49
RD
38517 arg6 = reinterpret_cast< wxValidator * >(argp6);
38518 }
38519 if (obj6) {
d14a1e28 38520 {
0085ce49
RD
38521 arg7 = wxString_in_helper(obj6);
38522 if (arg7 == NULL) SWIG_fail;
38523 temp7 = true;
d14a1e28 38524 }
0085ce49
RD
38525 }
38526 {
38527 if (!wxPyCheckForApp()) SWIG_fail;
38528 PyThreadState* __tstate = wxPyBeginAllowThreads();
38529 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38530 wxPyEndAllowThreads(__tstate);
38531 if (PyErr_Occurred()) SWIG_fail;
38532 }
38533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38534 {
38535 if (temp7)
38536 delete arg7;
38537 }
38538 return resultobj;
38539fail:
38540 {
38541 if (temp7)
38542 delete arg7;
38543 }
38544 return NULL;
d14a1e28
RD
38545}
38546
38547
0085ce49
RD
38548SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38549 PyObject *resultobj = 0;
38550 wxPyControl *result = 0 ;
38551
38552 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38553 {
38554 if (!wxPyCheckForApp()) SWIG_fail;
38555 PyThreadState* __tstate = wxPyBeginAllowThreads();
38556 result = (wxPyControl *)new wxPyControl();
38557 wxPyEndAllowThreads(__tstate);
38558 if (PyErr_Occurred()) SWIG_fail;
38559 }
38560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38561 return resultobj;
38562fail:
38563 return NULL;
38564}
38565
38566
38567SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38568 PyObject *resultobj = 0;
38569 wxPyControl *arg1 = (wxPyControl *) 0 ;
38570 PyObject *arg2 = (PyObject *) 0 ;
38571 PyObject *arg3 = (PyObject *) 0 ;
38572 void *argp1 = 0 ;
38573 int res1 = 0 ;
38574 PyObject * obj0 = 0 ;
38575 PyObject * obj1 = 0 ;
38576 PyObject * obj2 = 0 ;
38577 char * kwnames[] = {
38578 (char *) "self",(char *) "self",(char *) "_class", NULL
38579 };
38580
38581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38583 if (!SWIG_IsOK(res1)) {
38584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38585 }
38586 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38587 arg2 = obj1;
38588 arg3 = obj2;
38589 {
38590 PyThreadState* __tstate = wxPyBeginAllowThreads();
38591 (arg1)->_setCallbackInfo(arg2,arg3);
38592 wxPyEndAllowThreads(__tstate);
38593 if (PyErr_Occurred()) SWIG_fail;
38594 }
38595 resultobj = SWIG_Py_Void();
38596 return resultobj;
38597fail:
38598 return NULL;
38599}
38600
38601
38602SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38603 PyObject *resultobj = 0;
38604 wxPyControl *arg1 = (wxPyControl *) 0 ;
38605 wxSize *arg2 = 0 ;
38606 void *argp1 = 0 ;
38607 int res1 = 0 ;
38608 wxSize temp2 ;
38609 PyObject * obj0 = 0 ;
38610 PyObject * obj1 = 0 ;
38611 char * kwnames[] = {
38612 (char *) "self",(char *) "size", NULL
38613 };
38614
38615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38617 if (!SWIG_IsOK(res1)) {
38618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38619 }
38620 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38621 {
38622 arg2 = &temp2;
38623 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38624 }
38625 {
38626 PyThreadState* __tstate = wxPyBeginAllowThreads();
38627 (arg1)->SetBestSize((wxSize const &)*arg2);
38628 wxPyEndAllowThreads(__tstate);
38629 if (PyErr_Occurred()) SWIG_fail;
38630 }
38631 resultobj = SWIG_Py_Void();
38632 return resultobj;
38633fail:
38634 return NULL;
38635}
38636
38637
38638SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38639 PyObject *resultobj = 0;
38640 wxPyControl *arg1 = (wxPyControl *) 0 ;
38641 wxDC *arg2 = (wxDC *) 0 ;
38642 bool result;
38643 void *argp1 = 0 ;
38644 int res1 = 0 ;
38645 void *argp2 = 0 ;
38646 int res2 = 0 ;
38647 PyObject * obj0 = 0 ;
38648 PyObject * obj1 = 0 ;
38649 char * kwnames[] = {
38650 (char *) "self",(char *) "dc", NULL
38651 };
38652
38653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38655 if (!SWIG_IsOK(res1)) {
38656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38657 }
38658 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38660 if (!SWIG_IsOK(res2)) {
38661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38662 }
38663 arg2 = reinterpret_cast< wxDC * >(argp2);
38664 {
38665 PyThreadState* __tstate = wxPyBeginAllowThreads();
38666 result = (bool)(arg1)->DoEraseBackground(arg2);
38667 wxPyEndAllowThreads(__tstate);
38668 if (PyErr_Occurred()) SWIG_fail;
38669 }
38670 {
38671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38672 }
38673 return resultobj;
38674fail:
38675 return NULL;
38676}
38677
38678
38679SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38680 PyObject *resultobj = 0;
38681 wxPyControl *arg1 = (wxPyControl *) 0 ;
38682 int arg2 ;
38683 int arg3 ;
38684 int arg4 ;
38685 int arg5 ;
38686 void *argp1 = 0 ;
38687 int res1 = 0 ;
38688 int val2 ;
38689 int ecode2 = 0 ;
38690 int val3 ;
38691 int ecode3 = 0 ;
38692 int val4 ;
38693 int ecode4 = 0 ;
38694 int val5 ;
38695 int ecode5 = 0 ;
38696 PyObject * obj0 = 0 ;
38697 PyObject * obj1 = 0 ;
38698 PyObject * obj2 = 0 ;
38699 PyObject * obj3 = 0 ;
38700 PyObject * obj4 = 0 ;
38701 char * kwnames[] = {
38702 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38703 };
38704
38705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38707 if (!SWIG_IsOK(res1)) {
38708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38709 }
38710 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38711 ecode2 = SWIG_AsVal_int(obj1, &val2);
38712 if (!SWIG_IsOK(ecode2)) {
38713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38714 }
38715 arg2 = static_cast< int >(val2);
38716 ecode3 = SWIG_AsVal_int(obj2, &val3);
38717 if (!SWIG_IsOK(ecode3)) {
38718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38719 }
38720 arg3 = static_cast< int >(val3);
38721 ecode4 = SWIG_AsVal_int(obj3, &val4);
38722 if (!SWIG_IsOK(ecode4)) {
38723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38724 }
38725 arg4 = static_cast< int >(val4);
38726 ecode5 = SWIG_AsVal_int(obj4, &val5);
38727 if (!SWIG_IsOK(ecode5)) {
38728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38729 }
38730 arg5 = static_cast< int >(val5);
38731 {
38732 PyThreadState* __tstate = wxPyBeginAllowThreads();
38733 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38734 wxPyEndAllowThreads(__tstate);
38735 if (PyErr_Occurred()) SWIG_fail;
38736 }
38737 resultobj = SWIG_Py_Void();
38738 return resultobj;
38739fail:
38740 return NULL;
38741}
38742
38743
38744SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38745 PyObject *resultobj = 0;
38746 wxPyControl *arg1 = (wxPyControl *) 0 ;
38747 int arg2 ;
38748 int arg3 ;
38749 int arg4 ;
38750 int arg5 ;
38751 int arg6 = (int) wxSIZE_AUTO ;
38752 void *argp1 = 0 ;
38753 int res1 = 0 ;
38754 int val2 ;
38755 int ecode2 = 0 ;
38756 int val3 ;
38757 int ecode3 = 0 ;
38758 int val4 ;
38759 int ecode4 = 0 ;
38760 int val5 ;
38761 int ecode5 = 0 ;
38762 int val6 ;
38763 int ecode6 = 0 ;
38764 PyObject * obj0 = 0 ;
38765 PyObject * obj1 = 0 ;
38766 PyObject * obj2 = 0 ;
38767 PyObject * obj3 = 0 ;
38768 PyObject * obj4 = 0 ;
38769 PyObject * obj5 = 0 ;
38770 char * kwnames[] = {
38771 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38772 };
38773
38774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38776 if (!SWIG_IsOK(res1)) {
38777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38778 }
38779 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38780 ecode2 = SWIG_AsVal_int(obj1, &val2);
38781 if (!SWIG_IsOK(ecode2)) {
38782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38783 }
38784 arg2 = static_cast< int >(val2);
38785 ecode3 = SWIG_AsVal_int(obj2, &val3);
38786 if (!SWIG_IsOK(ecode3)) {
38787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38788 }
38789 arg3 = static_cast< int >(val3);
38790 ecode4 = SWIG_AsVal_int(obj3, &val4);
38791 if (!SWIG_IsOK(ecode4)) {
38792 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38793 }
38794 arg4 = static_cast< int >(val4);
38795 ecode5 = SWIG_AsVal_int(obj4, &val5);
38796 if (!SWIG_IsOK(ecode5)) {
38797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38798 }
38799 arg5 = static_cast< int >(val5);
38800 if (obj5) {
38801 ecode6 = SWIG_AsVal_int(obj5, &val6);
38802 if (!SWIG_IsOK(ecode6)) {
38803 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38804 }
38805 arg6 = static_cast< int >(val6);
38806 }
38807 {
38808 PyThreadState* __tstate = wxPyBeginAllowThreads();
38809 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38810 wxPyEndAllowThreads(__tstate);
38811 if (PyErr_Occurred()) SWIG_fail;
38812 }
38813 resultobj = SWIG_Py_Void();
38814 return resultobj;
38815fail:
38816 return NULL;
38817}
38818
38819
38820SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38821 PyObject *resultobj = 0;
38822 wxPyControl *arg1 = (wxPyControl *) 0 ;
38823 int arg2 ;
38824 int arg3 ;
38825 void *argp1 = 0 ;
38826 int res1 = 0 ;
38827 int val2 ;
38828 int ecode2 = 0 ;
38829 int val3 ;
38830 int ecode3 = 0 ;
38831 PyObject * obj0 = 0 ;
38832 PyObject * obj1 = 0 ;
38833 PyObject * obj2 = 0 ;
38834 char * kwnames[] = {
38835 (char *) "self",(char *) "width",(char *) "height", NULL
38836 };
38837
38838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38840 if (!SWIG_IsOK(res1)) {
38841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38842 }
38843 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38844 ecode2 = SWIG_AsVal_int(obj1, &val2);
38845 if (!SWIG_IsOK(ecode2)) {
38846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38847 }
38848 arg2 = static_cast< int >(val2);
38849 ecode3 = SWIG_AsVal_int(obj2, &val3);
38850 if (!SWIG_IsOK(ecode3)) {
38851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38852 }
38853 arg3 = static_cast< int >(val3);
38854 {
38855 PyThreadState* __tstate = wxPyBeginAllowThreads();
38856 (arg1)->DoSetClientSize(arg2,arg3);
38857 wxPyEndAllowThreads(__tstate);
38858 if (PyErr_Occurred()) SWIG_fail;
38859 }
38860 resultobj = SWIG_Py_Void();
38861 return resultobj;
38862fail:
38863 return NULL;
38864}
38865
38866
38867SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38868 PyObject *resultobj = 0;
38869 wxPyControl *arg1 = (wxPyControl *) 0 ;
38870 int arg2 ;
38871 int arg3 ;
38872 void *argp1 = 0 ;
38873 int res1 = 0 ;
38874 int val2 ;
38875 int ecode2 = 0 ;
38876 int val3 ;
38877 int ecode3 = 0 ;
38878 PyObject * obj0 = 0 ;
38879 PyObject * obj1 = 0 ;
38880 PyObject * obj2 = 0 ;
38881 char * kwnames[] = {
38882 (char *) "self",(char *) "x",(char *) "y", NULL
38883 };
38884
38885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38887 if (!SWIG_IsOK(res1)) {
38888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38889 }
38890 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38891 ecode2 = SWIG_AsVal_int(obj1, &val2);
38892 if (!SWIG_IsOK(ecode2)) {
38893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38894 }
38895 arg2 = static_cast< int >(val2);
38896 ecode3 = SWIG_AsVal_int(obj2, &val3);
38897 if (!SWIG_IsOK(ecode3)) {
38898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38899 }
38900 arg3 = static_cast< int >(val3);
38901 {
38902 PyThreadState* __tstate = wxPyBeginAllowThreads();
38903 (arg1)->DoSetVirtualSize(arg2,arg3);
38904 wxPyEndAllowThreads(__tstate);
38905 if (PyErr_Occurred()) SWIG_fail;
38906 }
38907 resultobj = SWIG_Py_Void();
38908 return resultobj;
38909fail:
38910 return NULL;
38911}
38912
38913
38914SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38915 PyObject *resultobj = 0;
38916 wxPyControl *arg1 = (wxPyControl *) 0 ;
38917 int *arg2 = (int *) 0 ;
38918 int *arg3 = (int *) 0 ;
38919 void *argp1 = 0 ;
38920 int res1 = 0 ;
38921 int temp2 ;
38922 int res2 = SWIG_TMPOBJ ;
38923 int temp3 ;
38924 int res3 = SWIG_TMPOBJ ;
38925 PyObject *swig_obj[1] ;
38926
38927 arg2 = &temp2;
38928 arg3 = &temp3;
38929 if (!args) SWIG_fail;
38930 swig_obj[0] = args;
38931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38932 if (!SWIG_IsOK(res1)) {
38933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38934 }
38935 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38936 {
38937 PyThreadState* __tstate = wxPyBeginAllowThreads();
38938 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38939 wxPyEndAllowThreads(__tstate);
38940 if (PyErr_Occurred()) SWIG_fail;
38941 }
38942 resultobj = SWIG_Py_Void();
38943 if (SWIG_IsTmpObj(res2)) {
38944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38945 } else {
38946 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38948 }
38949 if (SWIG_IsTmpObj(res3)) {
38950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38951 } else {
38952 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38954 }
38955 return resultobj;
38956fail:
38957 return NULL;
38958}
38959
38960
38961SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38962 PyObject *resultobj = 0;
38963 wxPyControl *arg1 = (wxPyControl *) 0 ;
38964 int *arg2 = (int *) 0 ;
38965 int *arg3 = (int *) 0 ;
38966 void *argp1 = 0 ;
38967 int res1 = 0 ;
38968 int temp2 ;
38969 int res2 = SWIG_TMPOBJ ;
38970 int temp3 ;
38971 int res3 = SWIG_TMPOBJ ;
38972 PyObject *swig_obj[1] ;
38973
38974 arg2 = &temp2;
38975 arg3 = &temp3;
38976 if (!args) SWIG_fail;
38977 swig_obj[0] = args;
38978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38979 if (!SWIG_IsOK(res1)) {
38980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38981 }
38982 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38983 {
38984 PyThreadState* __tstate = wxPyBeginAllowThreads();
38985 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38986 wxPyEndAllowThreads(__tstate);
38987 if (PyErr_Occurred()) SWIG_fail;
38988 }
38989 resultobj = SWIG_Py_Void();
38990 if (SWIG_IsTmpObj(res2)) {
38991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38992 } else {
38993 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38995 }
38996 if (SWIG_IsTmpObj(res3)) {
38997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38998 } else {
38999 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39001 }
39002 return resultobj;
39003fail:
39004 return NULL;
39005}
39006
39007
39008SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39009 PyObject *resultobj = 0;
39010 wxPyControl *arg1 = (wxPyControl *) 0 ;
39011 int *arg2 = (int *) 0 ;
39012 int *arg3 = (int *) 0 ;
39013 void *argp1 = 0 ;
39014 int res1 = 0 ;
39015 int temp2 ;
39016 int res2 = SWIG_TMPOBJ ;
39017 int temp3 ;
39018 int res3 = SWIG_TMPOBJ ;
39019 PyObject *swig_obj[1] ;
39020
39021 arg2 = &temp2;
39022 arg3 = &temp3;
39023 if (!args) SWIG_fail;
39024 swig_obj[0] = args;
39025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39026 if (!SWIG_IsOK(res1)) {
39027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39028 }
39029 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39030 {
39031 PyThreadState* __tstate = wxPyBeginAllowThreads();
39032 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39033 wxPyEndAllowThreads(__tstate);
39034 if (PyErr_Occurred()) SWIG_fail;
39035 }
39036 resultobj = SWIG_Py_Void();
39037 if (SWIG_IsTmpObj(res2)) {
39038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39039 } else {
39040 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39042 }
39043 if (SWIG_IsTmpObj(res3)) {
39044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39045 } else {
39046 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39048 }
39049 return resultobj;
39050fail:
39051 return NULL;
d14a1e28
RD
39052}
39053
39054
0085ce49
RD
39055SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39056 PyObject *resultobj = 0;
39057 wxPyControl *arg1 = (wxPyControl *) 0 ;
39058 wxSize result;
39059 void *argp1 = 0 ;
39060 int res1 = 0 ;
39061 PyObject *swig_obj[1] ;
39062
39063 if (!args) SWIG_fail;
39064 swig_obj[0] = args;
39065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39066 if (!SWIG_IsOK(res1)) {
39067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39068 }
39069 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39070 {
39071 PyThreadState* __tstate = wxPyBeginAllowThreads();
39072 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39073 wxPyEndAllowThreads(__tstate);
39074 if (PyErr_Occurred()) SWIG_fail;
39075 }
39076 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39077 return resultobj;
39078fail:
39079 return NULL;
d14a1e28
RD
39080}
39081
39082
0085ce49
RD
39083SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39084 PyObject *resultobj = 0;
39085 wxPyControl *arg1 = (wxPyControl *) 0 ;
39086 wxSize result;
39087 void *argp1 = 0 ;
39088 int res1 = 0 ;
39089 PyObject *swig_obj[1] ;
39090
39091 if (!args) SWIG_fail;
39092 swig_obj[0] = args;
39093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39094 if (!SWIG_IsOK(res1)) {
39095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39096 }
39097 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39098 {
39099 PyThreadState* __tstate = wxPyBeginAllowThreads();
39100 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39101 wxPyEndAllowThreads(__tstate);
39102 if (PyErr_Occurred()) SWIG_fail;
39103 }
39104 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39105 return resultobj;
39106fail:
39107 return NULL;
d14a1e28
RD
39108}
39109
39110
0085ce49
RD
39111SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39112 PyObject *resultobj = 0;
39113 wxPyControl *arg1 = (wxPyControl *) 0 ;
39114 SwigValueWrapper<wxVisualAttributes > result;
39115 void *argp1 = 0 ;
39116 int res1 = 0 ;
39117 PyObject *swig_obj[1] ;
39118
39119 if (!args) SWIG_fail;
39120 swig_obj[0] = args;
39121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39122 if (!SWIG_IsOK(res1)) {
39123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39124 }
39125 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39126 {
39127 PyThreadState* __tstate = wxPyBeginAllowThreads();
39128 result = (arg1)->GetDefaultAttributes();
39129 wxPyEndAllowThreads(__tstate);
39130 if (PyErr_Occurred()) SWIG_fail;
39131 }
39132 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39133 return resultobj;
39134fail:
39135 return NULL;
d14a1e28
RD
39136}
39137
39138
0085ce49
RD
39139SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39140 PyObject *resultobj = 0;
39141 wxPyControl *arg1 = (wxPyControl *) 0 ;
39142 void *argp1 = 0 ;
39143 int res1 = 0 ;
39144 PyObject *swig_obj[1] ;
39145
39146 if (!args) SWIG_fail;
39147 swig_obj[0] = args;
39148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39149 if (!SWIG_IsOK(res1)) {
39150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39151 }
39152 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39153 {
39154 PyThreadState* __tstate = wxPyBeginAllowThreads();
39155 (arg1)->OnInternalIdle();
39156 wxPyEndAllowThreads(__tstate);
39157 if (PyErr_Occurred()) SWIG_fail;
39158 }
39159 resultobj = SWIG_Py_Void();
39160 return resultobj;
39161fail:
39162 return NULL;
39163}
39164
39165
39166SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39167 PyObject *obj;
39168 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39169 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39170 return SWIG_Py_Void();
39171}
39172
39173SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39174 return SWIG_Python_InitShadowInstance(args);
39175}
39176
39177SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39178 PyObject *resultobj = 0;
39179 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39180 int arg2 = (int) 0 ;
39181 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39182 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39183 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
0085ce49
RD
39184 wxHelpEvent *result = 0 ;
39185 int val1 ;
39186 int ecode1 = 0 ;
39187 int val2 ;
39188 int ecode2 = 0 ;
39189 wxPoint temp3 ;
704eda0c
RD
39190 int val4 ;
39191 int ecode4 = 0 ;
0085ce49
RD
39192 PyObject * obj0 = 0 ;
39193 PyObject * obj1 = 0 ;
39194 PyObject * obj2 = 0 ;
704eda0c 39195 PyObject * obj3 = 0 ;
0085ce49 39196 char * kwnames[] = {
704eda0c 39197 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
0085ce49
RD
39198 };
39199
704eda0c 39200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
39201 if (obj0) {
39202 ecode1 = SWIG_AsVal_int(obj0, &val1);
39203 if (!SWIG_IsOK(ecode1)) {
39204 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39205 }
39206 arg1 = static_cast< wxEventType >(val1);
39207 }
39208 if (obj1) {
39209 ecode2 = SWIG_AsVal_int(obj1, &val2);
39210 if (!SWIG_IsOK(ecode2)) {
39211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39212 }
39213 arg2 = static_cast< int >(val2);
39214 }
39215 if (obj2) {
d14a1e28 39216 {
0085ce49
RD
39217 arg3 = &temp3;
39218 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39219 }
0085ce49 39220 }
704eda0c
RD
39221 if (obj3) {
39222 ecode4 = SWIG_AsVal_int(obj3, &val4);
39223 if (!SWIG_IsOK(ecode4)) {
39224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39225 }
39226 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39227 }
0085ce49
RD
39228 {
39229 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39230 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
0085ce49
RD
39231 wxPyEndAllowThreads(__tstate);
39232 if (PyErr_Occurred()) SWIG_fail;
39233 }
39234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39235 return resultobj;
39236fail:
39237 return NULL;
d14a1e28
RD
39238}
39239
39240
0085ce49
RD
39241SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39242 PyObject *resultobj = 0;
39243 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39244 wxPoint result;
39245 void *argp1 = 0 ;
39246 int res1 = 0 ;
39247 PyObject *swig_obj[1] ;
39248
39249 if (!args) SWIG_fail;
39250 swig_obj[0] = args;
39251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39252 if (!SWIG_IsOK(res1)) {
39253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39254 }
39255 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39256 {
39257 PyThreadState* __tstate = wxPyBeginAllowThreads();
39258 result = ((wxHelpEvent const *)arg1)->GetPosition();
39259 wxPyEndAllowThreads(__tstate);
39260 if (PyErr_Occurred()) SWIG_fail;
39261 }
39262 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39263 return resultobj;
39264fail:
39265 return NULL;
39266}
39267
39268
39269SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39270 PyObject *resultobj = 0;
39271 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39272 wxPoint *arg2 = 0 ;
39273 void *argp1 = 0 ;
39274 int res1 = 0 ;
39275 wxPoint temp2 ;
39276 PyObject * obj0 = 0 ;
39277 PyObject * obj1 = 0 ;
39278 char * kwnames[] = {
39279 (char *) "self",(char *) "pos", NULL
39280 };
39281
39282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39284 if (!SWIG_IsOK(res1)) {
39285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39286 }
39287 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39288 {
39289 arg2 = &temp2;
39290 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39291 }
39292 {
39293 PyThreadState* __tstate = wxPyBeginAllowThreads();
39294 (arg1)->SetPosition((wxPoint const &)*arg2);
39295 wxPyEndAllowThreads(__tstate);
39296 if (PyErr_Occurred()) SWIG_fail;
39297 }
39298 resultobj = SWIG_Py_Void();
39299 return resultobj;
39300fail:
39301 return NULL;
d14a1e28
RD
39302}
39303
39304
0085ce49
RD
39305SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39306 PyObject *resultobj = 0;
39307 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39308 wxString *result = 0 ;
39309 void *argp1 = 0 ;
39310 int res1 = 0 ;
39311 PyObject *swig_obj[1] ;
39312
39313 if (!args) SWIG_fail;
39314 swig_obj[0] = args;
39315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39316 if (!SWIG_IsOK(res1)) {
39317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39318 }
39319 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39320 {
39321 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 39322 {
0085ce49
RD
39323 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39324 result = (wxString *) &_result_ref;
093d3ff1 39325 }
0085ce49
RD
39326 wxPyEndAllowThreads(__tstate);
39327 if (PyErr_Occurred()) SWIG_fail;
39328 }
39329 {
39330#if wxUSE_UNICODE
39331 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39332#else
39333 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39334#endif
39335 }
39336 return resultobj;
39337fail:
39338 return NULL;
39339}
39340
39341
39342SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39343 PyObject *resultobj = 0;
39344 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39345 wxString *arg2 = 0 ;
39346 void *argp1 = 0 ;
39347 int res1 = 0 ;
39348 bool temp2 = false ;
39349 PyObject * obj0 = 0 ;
39350 PyObject * obj1 = 0 ;
39351 char * kwnames[] = {
39352 (char *) "self",(char *) "link", NULL
39353 };
39354
39355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39357 if (!SWIG_IsOK(res1)) {
39358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39359 }
39360 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39361 {
39362 arg2 = wxString_in_helper(obj1);
39363 if (arg2 == NULL) SWIG_fail;
39364 temp2 = true;
39365 }
39366 {
39367 PyThreadState* __tstate = wxPyBeginAllowThreads();
39368 (arg1)->SetLink((wxString const &)*arg2);
39369 wxPyEndAllowThreads(__tstate);
39370 if (PyErr_Occurred()) SWIG_fail;
39371 }
39372 resultobj = SWIG_Py_Void();
39373 {
39374 if (temp2)
39375 delete arg2;
39376 }
39377 return resultobj;
39378fail:
39379 {
39380 if (temp2)
39381 delete arg2;
39382 }
39383 return NULL;
d14a1e28
RD
39384}
39385
39386
0085ce49
RD
39387SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39388 PyObject *resultobj = 0;
39389 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39390 wxString *result = 0 ;
39391 void *argp1 = 0 ;
39392 int res1 = 0 ;
39393 PyObject *swig_obj[1] ;
39394
39395 if (!args) SWIG_fail;
39396 swig_obj[0] = args;
39397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39398 if (!SWIG_IsOK(res1)) {
39399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39400 }
39401 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39402 {
39403 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 39404 {
0085ce49
RD
39405 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39406 result = (wxString *) &_result_ref;
d14a1e28 39407 }
0085ce49
RD
39408 wxPyEndAllowThreads(__tstate);
39409 if (PyErr_Occurred()) SWIG_fail;
39410 }
39411 {
39412#if wxUSE_UNICODE
39413 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39414#else
39415 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39416#endif
39417 }
39418 return resultobj;
39419fail:
39420 return NULL;
39421}
39422
39423
39424SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39425 PyObject *resultobj = 0;
39426 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39427 wxString *arg2 = 0 ;
39428 void *argp1 = 0 ;
39429 int res1 = 0 ;
39430 bool temp2 = false ;
39431 PyObject * obj0 = 0 ;
39432 PyObject * obj1 = 0 ;
39433 char * kwnames[] = {
39434 (char *) "self",(char *) "target", NULL
39435 };
39436
39437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39439 if (!SWIG_IsOK(res1)) {
39440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39441 }
39442 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39443 {
39444 arg2 = wxString_in_helper(obj1);
39445 if (arg2 == NULL) SWIG_fail;
39446 temp2 = true;
39447 }
39448 {
39449 PyThreadState* __tstate = wxPyBeginAllowThreads();
39450 (arg1)->SetTarget((wxString const &)*arg2);
39451 wxPyEndAllowThreads(__tstate);
39452 if (PyErr_Occurred()) SWIG_fail;
39453 }
39454 resultobj = SWIG_Py_Void();
39455 {
39456 if (temp2)
39457 delete arg2;
39458 }
39459 return resultobj;
39460fail:
39461 {
39462 if (temp2)
39463 delete arg2;
39464 }
39465 return NULL;
d14a1e28
RD
39466}
39467
39468
704eda0c
RD
39469SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39470 PyObject *resultobj = 0;
39471 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39472 wxHelpEvent::Origin result;
39473 void *argp1 = 0 ;
39474 int res1 = 0 ;
39475 PyObject *swig_obj[1] ;
39476
39477 if (!args) SWIG_fail;
39478 swig_obj[0] = args;
39479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39480 if (!SWIG_IsOK(res1)) {
39481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39482 }
39483 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39484 {
39485 PyThreadState* __tstate = wxPyBeginAllowThreads();
39486 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39487 wxPyEndAllowThreads(__tstate);
39488 if (PyErr_Occurred()) SWIG_fail;
39489 }
39490 resultobj = SWIG_From_int(static_cast< int >(result));
39491 return resultobj;
39492fail:
39493 return NULL;
39494}
39495
39496
39497SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39498 PyObject *resultobj = 0;
39499 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39500 wxHelpEvent::Origin arg2 ;
39501 void *argp1 = 0 ;
39502 int res1 = 0 ;
39503 int val2 ;
39504 int ecode2 = 0 ;
39505 PyObject * obj0 = 0 ;
39506 PyObject * obj1 = 0 ;
39507 char * kwnames[] = {
39508 (char *) "self",(char *) "origin", NULL
39509 };
39510
39511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39513 if (!SWIG_IsOK(res1)) {
39514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39515 }
39516 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39517 ecode2 = SWIG_AsVal_int(obj1, &val2);
39518 if (!SWIG_IsOK(ecode2)) {
39519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39520 }
39521 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39522 {
39523 PyThreadState* __tstate = wxPyBeginAllowThreads();
39524 (arg1)->SetOrigin(arg2);
39525 wxPyEndAllowThreads(__tstate);
39526 if (PyErr_Occurred()) SWIG_fail;
39527 }
39528 resultobj = SWIG_Py_Void();
39529 return resultobj;
39530fail:
39531 return NULL;
39532}
39533
39534
0085ce49
RD
39535SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39536 PyObject *obj;
39537 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39538 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39539 return SWIG_Py_Void();
d14a1e28
RD
39540}
39541
0085ce49
RD
39542SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39543 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39544}
39545
0085ce49
RD
39546SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39547 PyObject *resultobj = 0;
39548 wxWindow *arg1 = (wxWindow *) NULL ;
39549 bool arg2 = (bool) true ;
39550 wxContextHelp *result = 0 ;
39551 void *argp1 = 0 ;
39552 int res1 = 0 ;
39553 bool val2 ;
39554 int ecode2 = 0 ;
39555 PyObject * obj0 = 0 ;
39556 PyObject * obj1 = 0 ;
39557 char * kwnames[] = {
39558 (char *) "window",(char *) "doNow", NULL
39559 };
39560
39561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39562 if (obj0) {
39563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39564 if (!SWIG_IsOK(res1)) {
39565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d14a1e28 39566 }
0085ce49
RD
39567 arg1 = reinterpret_cast< wxWindow * >(argp1);
39568 }
39569 if (obj1) {
39570 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39571 if (!SWIG_IsOK(ecode2)) {
39572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39573 }
39574 arg2 = static_cast< bool >(val2);
39575 }
39576 {
39577 if (!wxPyCheckForApp()) SWIG_fail;
39578 PyThreadState* __tstate = wxPyBeginAllowThreads();
39579 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39580 wxPyEndAllowThreads(__tstate);
39581 if (PyErr_Occurred()) SWIG_fail;
39582 }
39583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39584 return resultobj;
39585fail:
39586 return NULL;
d14a1e28
RD
39587}
39588
39589
0085ce49
RD
39590SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39591 PyObject *resultobj = 0;
39592 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39593 void *argp1 = 0 ;
39594 int res1 = 0 ;
39595 PyObject *swig_obj[1] ;
39596
39597 if (!args) SWIG_fail;
39598 swig_obj[0] = args;
39599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39600 if (!SWIG_IsOK(res1)) {
39601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39602 }
39603 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39604 {
39605 PyThreadState* __tstate = wxPyBeginAllowThreads();
39606 delete arg1;
3a04f143 39607
0085ce49
RD
39608 wxPyEndAllowThreads(__tstate);
39609 if (PyErr_Occurred()) SWIG_fail;
39610 }
39611 resultobj = SWIG_Py_Void();
39612 return resultobj;
39613fail:
39614 return NULL;
39615}
39616
39617
39618SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39619 PyObject *resultobj = 0;
39620 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39621 wxWindow *arg2 = (wxWindow *) NULL ;
39622 bool result;
39623 void *argp1 = 0 ;
39624 int res1 = 0 ;
39625 void *argp2 = 0 ;
39626 int res2 = 0 ;
39627 PyObject * obj0 = 0 ;
39628 PyObject * obj1 = 0 ;
39629 char * kwnames[] = {
39630 (char *) "self",(char *) "window", NULL
39631 };
39632
39633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39635 if (!SWIG_IsOK(res1)) {
39636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39637 }
39638 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39639 if (obj1) {
39640 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39641 if (!SWIG_IsOK(res2)) {
39642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
3a04f143 39643 }
0085ce49
RD
39644 arg2 = reinterpret_cast< wxWindow * >(argp2);
39645 }
39646 {
39647 PyThreadState* __tstate = wxPyBeginAllowThreads();
39648 result = (bool)(arg1)->BeginContextHelp(arg2);
39649 wxPyEndAllowThreads(__tstate);
39650 if (PyErr_Occurred()) SWIG_fail;
39651 }
39652 {
39653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39654 }
39655 return resultobj;
39656fail:
39657 return NULL;
3a04f143
RD
39658}
39659
39660
0085ce49
RD
39661SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39662 PyObject *resultobj = 0;
39663 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39664 bool result;
39665 void *argp1 = 0 ;
39666 int res1 = 0 ;
39667 PyObject *swig_obj[1] ;
39668
39669 if (!args) SWIG_fail;
39670 swig_obj[0] = args;
39671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39672 if (!SWIG_IsOK(res1)) {
39673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39674 }
39675 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39676 {
39677 PyThreadState* __tstate = wxPyBeginAllowThreads();
39678 result = (bool)(arg1)->EndContextHelp();
39679 wxPyEndAllowThreads(__tstate);
39680 if (PyErr_Occurred()) SWIG_fail;
39681 }
39682 {
39683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39684 }
39685 return resultobj;
39686fail:
39687 return NULL;
39688}
39689
39690
39691SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39692 PyObject *obj;
39693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39694 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39695 return SWIG_Py_Void();
39696}
39697
39698SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39699 return SWIG_Python_InitShadowInstance(args);
39700}
39701
39702SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39703 PyObject *resultobj = 0;
39704 wxWindow *arg1 = (wxWindow *) 0 ;
39705 int arg2 = (int) wxID_CONTEXT_HELP ;
39706 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39707 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39708 wxSize const &arg4_defvalue = wxDefaultSize ;
39709 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39710 long arg5 = (long) wxBU_AUTODRAW ;
39711 wxContextHelpButton *result = 0 ;
39712 void *argp1 = 0 ;
39713 int res1 = 0 ;
39714 int val2 ;
39715 int ecode2 = 0 ;
39716 wxPoint temp3 ;
39717 wxSize temp4 ;
39718 long val5 ;
39719 int ecode5 = 0 ;
39720 PyObject * obj0 = 0 ;
39721 PyObject * obj1 = 0 ;
39722 PyObject * obj2 = 0 ;
39723 PyObject * obj3 = 0 ;
39724 PyObject * obj4 = 0 ;
39725 char * kwnames[] = {
39726 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39727 };
39728
39729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39731 if (!SWIG_IsOK(res1)) {
39732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39733 }
39734 arg1 = reinterpret_cast< wxWindow * >(argp1);
39735 if (obj1) {
39736 ecode2 = SWIG_AsVal_int(obj1, &val2);
39737 if (!SWIG_IsOK(ecode2)) {
39738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39739 }
39740 arg2 = static_cast< int >(val2);
39741 }
39742 if (obj2) {
d14a1e28 39743 {
0085ce49
RD
39744 arg3 = &temp3;
39745 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39746 }
0085ce49
RD
39747 }
39748 if (obj3) {
4f89f6a3 39749 {
0085ce49
RD
39750 arg4 = &temp4;
39751 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 39752 }
0085ce49
RD
39753 }
39754 if (obj4) {
39755 ecode5 = SWIG_AsVal_long(obj4, &val5);
39756 if (!SWIG_IsOK(ecode5)) {
39757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39758 }
39759 arg5 = static_cast< long >(val5);
39760 }
39761 {
39762 if (!wxPyCheckForApp()) SWIG_fail;
39763 PyThreadState* __tstate = wxPyBeginAllowThreads();
39764 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39765 wxPyEndAllowThreads(__tstate);
39766 if (PyErr_Occurred()) SWIG_fail;
39767 }
39768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39769 return resultobj;
39770fail:
39771 return NULL;
d14a1e28
RD
39772}
39773
39774
0085ce49
RD
39775SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39776 PyObject *obj;
39777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39778 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39779 return SWIG_Py_Void();
d14a1e28
RD
39780}
39781
0085ce49
RD
39782SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39783 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39784}
39785
f52cbe90
RD
39786SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39787 PyObject *resultobj = 0;
39788 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39789 void *argp1 = 0 ;
39790 int res1 = 0 ;
39791 PyObject *swig_obj[1] ;
39792
39793 if (!args) SWIG_fail;
39794 swig_obj[0] = args;
39795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39796 if (!SWIG_IsOK(res1)) {
39797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39798 }
39799 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39800 {
39801 PyThreadState* __tstate = wxPyBeginAllowThreads();
39802 delete arg1;
39803
39804 wxPyEndAllowThreads(__tstate);
39805 if (PyErr_Occurred()) SWIG_fail;
39806 }
39807 resultobj = SWIG_Py_Void();
39808 return resultobj;
39809fail:
39810 return NULL;
39811}
39812
39813
0085ce49
RD
39814SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39815 PyObject *resultobj = 0;
39816 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39817 wxHelpProvider *result = 0 ;
39818 int res1 = 0 ;
39819 PyObject * obj0 = 0 ;
39820 char * kwnames[] = {
39821 (char *) "helpProvider", NULL
39822 };
39823
39824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39825 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39826 if (!SWIG_IsOK(res1)) {
39827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39828 }
39829 {
39830 PyThreadState* __tstate = wxPyBeginAllowThreads();
39831 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39832 wxPyEndAllowThreads(__tstate);
39833 if (PyErr_Occurred()) SWIG_fail;
39834 }
39835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39836 return resultobj;
39837fail:
39838 return NULL;
d14a1e28
RD
39839}
39840
39841
0085ce49
RD
39842SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39843 PyObject *resultobj = 0;
39844 wxHelpProvider *result = 0 ;
39845
39846 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39847 {
39848 PyThreadState* __tstate = wxPyBeginAllowThreads();
39849 result = (wxHelpProvider *)wxHelpProvider::Get();
39850 wxPyEndAllowThreads(__tstate);
39851 if (PyErr_Occurred()) SWIG_fail;
39852 }
39853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39854 return resultobj;
39855fail:
39856 return NULL;
39857}
39858
39859
39860SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39861 PyObject *resultobj = 0;
39862 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39863 wxWindow *arg2 = (wxWindow *) 0 ;
39864 wxString result;
39865 void *argp1 = 0 ;
39866 int res1 = 0 ;
39867 void *argp2 = 0 ;
39868 int res2 = 0 ;
39869 PyObject * obj0 = 0 ;
39870 PyObject * obj1 = 0 ;
39871 char * kwnames[] = {
39872 (char *) "self",(char *) "window", NULL
39873 };
39874
39875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39877 if (!SWIG_IsOK(res1)) {
39878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39879 }
39880 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39882 if (!SWIG_IsOK(res2)) {
39883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39884 }
39885 arg2 = reinterpret_cast< wxWindow * >(argp2);
39886 {
39887 PyThreadState* __tstate = wxPyBeginAllowThreads();
39888 result = (arg1)->GetHelp((wxWindow const *)arg2);
39889 wxPyEndAllowThreads(__tstate);
39890 if (PyErr_Occurred()) SWIG_fail;
39891 }
39892 {
39893#if wxUSE_UNICODE
39894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39895#else
39896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39897#endif
39898 }
39899 return resultobj;
39900fail:
39901 return NULL;
39902}
39903
39904
39905SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39906 PyObject *resultobj = 0;
39907 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39908 wxWindow *arg2 = (wxWindow *) 0 ;
39909 bool result;
39910 void *argp1 = 0 ;
39911 int res1 = 0 ;
39912 void *argp2 = 0 ;
39913 int res2 = 0 ;
39914 PyObject * obj0 = 0 ;
39915 PyObject * obj1 = 0 ;
39916 char * kwnames[] = {
39917 (char *) "self",(char *) "window", NULL
39918 };
39919
39920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39922 if (!SWIG_IsOK(res1)) {
39923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39924 }
39925 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39926 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39927 if (!SWIG_IsOK(res2)) {
39928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39929 }
39930 arg2 = reinterpret_cast< wxWindow * >(argp2);
39931 {
39932 PyThreadState* __tstate = wxPyBeginAllowThreads();
39933 result = (bool)(arg1)->ShowHelp(arg2);
39934 wxPyEndAllowThreads(__tstate);
39935 if (PyErr_Occurred()) SWIG_fail;
39936 }
39937 {
39938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39939 }
39940 return resultobj;
39941fail:
39942 return NULL;
39943}
39944
39945
b850e7f3
RD
39946SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39947 PyObject *resultobj = 0;
39948 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39949 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39950 wxPoint *arg3 = 0 ;
39951 wxHelpEvent::Origin arg4 ;
39952 bool result;
39953 void *argp1 = 0 ;
39954 int res1 = 0 ;
39955 void *argp2 = 0 ;
39956 int res2 = 0 ;
39957 wxPoint temp3 ;
39958 int val4 ;
39959 int ecode4 = 0 ;
39960 PyObject * obj0 = 0 ;
39961 PyObject * obj1 = 0 ;
39962 PyObject * obj2 = 0 ;
39963 PyObject * obj3 = 0 ;
39964 char * kwnames[] = {
39965 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39966 };
39967
39968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39970 if (!SWIG_IsOK(res1)) {
39971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39972 }
39973 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39975 if (!SWIG_IsOK(res2)) {
39976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39977 }
39978 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39979 {
39980 arg3 = &temp3;
39981 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39982 }
39983 ecode4 = SWIG_AsVal_int(obj3, &val4);
39984 if (!SWIG_IsOK(ecode4)) {
39985 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39986 }
39987 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39988 {
39989 PyThreadState* __tstate = wxPyBeginAllowThreads();
39990 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39991 wxPyEndAllowThreads(__tstate);
39992 if (PyErr_Occurred()) SWIG_fail;
39993 }
39994 {
39995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39996 }
39997 return resultobj;
39998fail:
39999 return NULL;
40000}
40001
40002
0085ce49
RD
40003SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40004 PyObject *resultobj = 0;
40005 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40006 wxWindow *arg2 = (wxWindow *) 0 ;
40007 wxString *arg3 = 0 ;
40008 void *argp1 = 0 ;
40009 int res1 = 0 ;
40010 void *argp2 = 0 ;
40011 int res2 = 0 ;
40012 bool temp3 = false ;
40013 PyObject * obj0 = 0 ;
40014 PyObject * obj1 = 0 ;
40015 PyObject * obj2 = 0 ;
40016 char * kwnames[] = {
40017 (char *) "self",(char *) "window",(char *) "text", NULL
40018 };
40019
40020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40022 if (!SWIG_IsOK(res1)) {
40023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40024 }
40025 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40027 if (!SWIG_IsOK(res2)) {
40028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40029 }
40030 arg2 = reinterpret_cast< wxWindow * >(argp2);
40031 {
40032 arg3 = wxString_in_helper(obj2);
40033 if (arg3 == NULL) SWIG_fail;
40034 temp3 = true;
40035 }
40036 {
40037 PyThreadState* __tstate = wxPyBeginAllowThreads();
40038 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40039 wxPyEndAllowThreads(__tstate);
40040 if (PyErr_Occurred()) SWIG_fail;
40041 }
40042 resultobj = SWIG_Py_Void();
40043 {
40044 if (temp3)
40045 delete arg3;
40046 }
40047 return resultobj;
40048fail:
40049 {
40050 if (temp3)
40051 delete arg3;
40052 }
40053 return NULL;
40054}
40055
40056
40057SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40058 PyObject *resultobj = 0;
40059 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40060 int arg2 ;
40061 wxString *arg3 = 0 ;
40062 void *argp1 = 0 ;
40063 int res1 = 0 ;
40064 int val2 ;
40065 int ecode2 = 0 ;
40066 bool temp3 = false ;
40067 PyObject * obj0 = 0 ;
40068 PyObject * obj1 = 0 ;
40069 PyObject * obj2 = 0 ;
40070 char * kwnames[] = {
40071 (char *) "self",(char *) "id",(char *) "text", NULL
40072 };
40073
40074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40076 if (!SWIG_IsOK(res1)) {
40077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40078 }
40079 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40080 ecode2 = SWIG_AsVal_int(obj1, &val2);
40081 if (!SWIG_IsOK(ecode2)) {
40082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40083 }
40084 arg2 = static_cast< int >(val2);
40085 {
40086 arg3 = wxString_in_helper(obj2);
40087 if (arg3 == NULL) SWIG_fail;
40088 temp3 = true;
40089 }
40090 {
40091 PyThreadState* __tstate = wxPyBeginAllowThreads();
40092 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40093 wxPyEndAllowThreads(__tstate);
40094 if (PyErr_Occurred()) SWIG_fail;
40095 }
40096 resultobj = SWIG_Py_Void();
40097 {
40098 if (temp3)
40099 delete arg3;
40100 }
40101 return resultobj;
40102fail:
40103 {
40104 if (temp3)
40105 delete arg3;
40106 }
40107 return NULL;
40108}
40109
40110
40111SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40112 PyObject *resultobj = 0;
40113 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40114 wxWindow *arg2 = (wxWindow *) 0 ;
40115 void *argp1 = 0 ;
40116 int res1 = 0 ;
40117 void *argp2 = 0 ;
40118 int res2 = 0 ;
40119 PyObject * obj0 = 0 ;
40120 PyObject * obj1 = 0 ;
40121 char * kwnames[] = {
40122 (char *) "self",(char *) "window", NULL
40123 };
40124
40125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40127 if (!SWIG_IsOK(res1)) {
40128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40129 }
40130 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40131 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40132 if (!SWIG_IsOK(res2)) {
40133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40134 }
40135 arg2 = reinterpret_cast< wxWindow * >(argp2);
40136 {
40137 PyThreadState* __tstate = wxPyBeginAllowThreads();
40138 (arg1)->RemoveHelp(arg2);
40139 wxPyEndAllowThreads(__tstate);
40140 if (PyErr_Occurred()) SWIG_fail;
40141 }
40142 resultobj = SWIG_Py_Void();
40143 return resultobj;
40144fail:
40145 return NULL;
d14a1e28
RD
40146}
40147
40148
0085ce49
RD
40149SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40150 PyObject *resultobj = 0;
40151 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40152 void *argp1 = 0 ;
40153 int res1 = 0 ;
40154 PyObject *swig_obj[1] ;
40155
40156 if (!args) SWIG_fail;
40157 swig_obj[0] = args;
40158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40159 if (!SWIG_IsOK(res1)) {
40160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40161 }
40162 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40163 {
40164 PyThreadState* __tstate = wxPyBeginAllowThreads();
40165 wxHelpProvider_Destroy(arg1);
40166 wxPyEndAllowThreads(__tstate);
40167 if (PyErr_Occurred()) SWIG_fail;
40168 }
40169 resultobj = SWIG_Py_Void();
40170 return resultobj;
40171fail:
40172 return NULL;
22bfe96c
RD
40173}
40174
40175
0085ce49
RD
40176SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40177 PyObject *obj;
40178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40179 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40180 return SWIG_Py_Void();
b2dc1044
RD
40181}
40182
0085ce49
RD
40183SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40184 PyObject *resultobj = 0;
40185 wxSimpleHelpProvider *result = 0 ;
40186
40187 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40188 {
40189 PyThreadState* __tstate = wxPyBeginAllowThreads();
40190 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40191 wxPyEndAllowThreads(__tstate);
40192 if (PyErr_Occurred()) SWIG_fail;
40193 }
40194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40195 return resultobj;
40196fail:
40197 return NULL;
40198}
40199
40200
40201SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40202 PyObject *obj;
40203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40204 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40205 return SWIG_Py_Void();
40206}
40207
40208SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40209 return SWIG_Python_InitShadowInstance(args);
40210}
40211
40212SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40213 PyObject *resultobj = 0;
40214 wxBitmap *arg1 = 0 ;
40215 wxCursor const &arg2_defvalue = wxNullCursor ;
40216 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40217 wxGenericDragImage *result = 0 ;
40218 void *argp1 = 0 ;
40219 int res1 = 0 ;
40220 void *argp2 = 0 ;
40221 int res2 = 0 ;
40222 PyObject * obj0 = 0 ;
40223 PyObject * obj1 = 0 ;
40224 char * kwnames[] = {
40225 (char *) "image",(char *) "cursor", NULL
40226 };
40227
40228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40229 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40230 if (!SWIG_IsOK(res1)) {
40231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40232 }
40233 if (!argp1) {
40234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40235 }
40236 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40237 if (obj1) {
40238 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40239 if (!SWIG_IsOK(res2)) {
40240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40241 }
0085ce49
RD
40242 if (!argp2) {
40243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40244 }
0085ce49
RD
40245 arg2 = reinterpret_cast< wxCursor * >(argp2);
40246 }
40247 {
40248 if (!wxPyCheckForApp()) SWIG_fail;
40249 PyThreadState* __tstate = wxPyBeginAllowThreads();
40250 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40251 wxPyEndAllowThreads(__tstate);
40252 if (PyErr_Occurred()) SWIG_fail;
40253 }
40254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40255 return resultobj;
40256fail:
40257 return NULL;
40258}
40259
40260
40261SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40262 PyObject *resultobj = 0;
40263 wxIcon *arg1 = 0 ;
40264 wxCursor const &arg2_defvalue = wxNullCursor ;
40265 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40266 wxGenericDragImage *result = 0 ;
40267 void *argp1 = 0 ;
40268 int res1 = 0 ;
40269 void *argp2 = 0 ;
40270 int res2 = 0 ;
40271 PyObject * obj0 = 0 ;
40272 PyObject * obj1 = 0 ;
40273 char * kwnames[] = {
40274 (char *) "image",(char *) "cursor", NULL
40275 };
40276
40277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40278 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40279 if (!SWIG_IsOK(res1)) {
40280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40281 }
40282 if (!argp1) {
40283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40284 }
40285 arg1 = reinterpret_cast< wxIcon * >(argp1);
40286 if (obj1) {
40287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40288 if (!SWIG_IsOK(res2)) {
40289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40290 }
0085ce49
RD
40291 if (!argp2) {
40292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40293 }
0085ce49
RD
40294 arg2 = reinterpret_cast< wxCursor * >(argp2);
40295 }
40296 {
40297 if (!wxPyCheckForApp()) SWIG_fail;
40298 PyThreadState* __tstate = wxPyBeginAllowThreads();
40299 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40300 wxPyEndAllowThreads(__tstate);
40301 if (PyErr_Occurred()) SWIG_fail;
40302 }
40303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40304 return resultobj;
40305fail:
40306 return NULL;
40307}
40308
40309
40310SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40311 PyObject *resultobj = 0;
40312 wxString *arg1 = 0 ;
40313 wxCursor const &arg2_defvalue = wxNullCursor ;
40314 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40315 wxGenericDragImage *result = 0 ;
40316 bool temp1 = false ;
40317 void *argp2 = 0 ;
40318 int res2 = 0 ;
40319 PyObject * obj0 = 0 ;
40320 PyObject * obj1 = 0 ;
40321 char * kwnames[] = {
40322 (char *) "str",(char *) "cursor", NULL
40323 };
40324
40325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40326 {
40327 arg1 = wxString_in_helper(obj0);
40328 if (arg1 == NULL) SWIG_fail;
40329 temp1 = true;
40330 }
40331 if (obj1) {
40332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40333 if (!SWIG_IsOK(res2)) {
40334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40335 }
0085ce49
RD
40336 if (!argp2) {
40337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40338 }
40339 arg2 = reinterpret_cast< wxCursor * >(argp2);
40340 }
40341 {
40342 if (!wxPyCheckForApp()) SWIG_fail;
40343 PyThreadState* __tstate = wxPyBeginAllowThreads();
40344 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40345 wxPyEndAllowThreads(__tstate);
40346 if (PyErr_Occurred()) SWIG_fail;
40347 }
40348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40349 {
40350 if (temp1)
40351 delete arg1;
40352 }
40353 return resultobj;
40354fail:
40355 {
40356 if (temp1)
40357 delete arg1;
40358 }
40359 return NULL;
40360}
40361
40362
40363SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40364 PyObject *resultobj = 0;
40365 wxPyTreeCtrl *arg1 = 0 ;
40366 wxTreeItemId *arg2 = 0 ;
40367 wxGenericDragImage *result = 0 ;
40368 void *argp1 = 0 ;
40369 int res1 = 0 ;
40370 void *argp2 = 0 ;
40371 int res2 = 0 ;
40372 PyObject * obj0 = 0 ;
40373 PyObject * obj1 = 0 ;
40374 char * kwnames[] = {
40375 (char *) "treeCtrl",(char *) "id", NULL
40376 };
40377
40378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40379 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40380 if (!SWIG_IsOK(res1)) {
40381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40382 }
40383 if (!argp1) {
40384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40385 }
40386 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40387 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40388 if (!SWIG_IsOK(res2)) {
40389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40390 }
40391 if (!argp2) {
40392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40393 }
40394 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40395 {
40396 if (!wxPyCheckForApp()) SWIG_fail;
40397 PyThreadState* __tstate = wxPyBeginAllowThreads();
40398 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40399 wxPyEndAllowThreads(__tstate);
40400 if (PyErr_Occurred()) SWIG_fail;
40401 }
40402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40403 return resultobj;
40404fail:
40405 return NULL;
40406}
40407
40408
40409SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40410 PyObject *resultobj = 0;
40411 wxPyListCtrl *arg1 = 0 ;
40412 long arg2 ;
40413 wxGenericDragImage *result = 0 ;
40414 void *argp1 = 0 ;
40415 int res1 = 0 ;
40416 long val2 ;
40417 int ecode2 = 0 ;
40418 PyObject * obj0 = 0 ;
40419 PyObject * obj1 = 0 ;
40420 char * kwnames[] = {
40421 (char *) "listCtrl",(char *) "id", NULL
40422 };
40423
40424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40425 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40426 if (!SWIG_IsOK(res1)) {
40427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40428 }
40429 if (!argp1) {
40430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40431 }
40432 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40433 ecode2 = SWIG_AsVal_long(obj1, &val2);
40434 if (!SWIG_IsOK(ecode2)) {
40435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40436 }
40437 arg2 = static_cast< long >(val2);
40438 {
40439 if (!wxPyCheckForApp()) SWIG_fail;
40440 PyThreadState* __tstate = wxPyBeginAllowThreads();
40441 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40442 wxPyEndAllowThreads(__tstate);
40443 if (PyErr_Occurred()) SWIG_fail;
40444 }
40445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40446 return resultobj;
40447fail:
40448 return NULL;
7e08d4ef
RD
40449}
40450
40451
0085ce49
RD
40452SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40453 PyObject *resultobj = 0;
40454 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40455 void *argp1 = 0 ;
40456 int res1 = 0 ;
40457 PyObject *swig_obj[1] ;
40458
40459 if (!args) SWIG_fail;
40460 swig_obj[0] = args;
40461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40462 if (!SWIG_IsOK(res1)) {
40463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40464 }
40465 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40466 {
40467 PyThreadState* __tstate = wxPyBeginAllowThreads();
40468 delete arg1;
d14a1e28 40469
0085ce49
RD
40470 wxPyEndAllowThreads(__tstate);
40471 if (PyErr_Occurred()) SWIG_fail;
40472 }
40473 resultobj = SWIG_Py_Void();
40474 return resultobj;
40475fail:
40476 return NULL;
40477}
40478
40479
40480SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40481 PyObject *resultobj = 0;
40482 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40483 wxBitmap *arg2 = (wxBitmap *) 0 ;
40484 void *argp1 = 0 ;
40485 int res1 = 0 ;
40486 void *argp2 = 0 ;
40487 int res2 = 0 ;
40488 PyObject * obj0 = 0 ;
40489 PyObject * obj1 = 0 ;
40490 char * kwnames[] = {
40491 (char *) "self",(char *) "bitmap", NULL
40492 };
40493
40494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40496 if (!SWIG_IsOK(res1)) {
40497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40498 }
40499 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40500 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40501 if (!SWIG_IsOK(res2)) {
40502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40503 }
40504 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40505 {
40506 PyThreadState* __tstate = wxPyBeginAllowThreads();
40507 (arg1)->SetBackingBitmap(arg2);
40508 wxPyEndAllowThreads(__tstate);
40509 if (PyErr_Occurred()) SWIG_fail;
40510 }
40511 resultobj = SWIG_Py_Void();
40512 return resultobj;
40513fail:
40514 return NULL;
40515}
40516
40517
40518SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40519 PyObject *resultobj = 0;
40520 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40521 wxPoint *arg2 = 0 ;
40522 wxWindow *arg3 = (wxWindow *) 0 ;
40523 bool arg4 = (bool) false ;
40524 wxRect *arg5 = (wxRect *) NULL ;
40525 bool result;
40526 void *argp1 = 0 ;
40527 int res1 = 0 ;
40528 wxPoint temp2 ;
40529 void *argp3 = 0 ;
40530 int res3 = 0 ;
40531 bool val4 ;
40532 int ecode4 = 0 ;
40533 void *argp5 = 0 ;
40534 int res5 = 0 ;
40535 PyObject * obj0 = 0 ;
40536 PyObject * obj1 = 0 ;
40537 PyObject * obj2 = 0 ;
40538 PyObject * obj3 = 0 ;
40539 PyObject * obj4 = 0 ;
40540 char * kwnames[] = {
40541 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40542 };
40543
40544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40546 if (!SWIG_IsOK(res1)) {
40547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40548 }
40549 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40550 {
40551 arg2 = &temp2;
40552 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40553 }
40554 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40555 if (!SWIG_IsOK(res3)) {
40556 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40557 }
40558 arg3 = reinterpret_cast< wxWindow * >(argp3);
40559 if (obj3) {
40560 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40561 if (!SWIG_IsOK(ecode4)) {
40562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40563 }
40564 arg4 = static_cast< bool >(val4);
40565 }
40566 if (obj4) {
40567 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40568 if (!SWIG_IsOK(res5)) {
40569 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d14a1e28 40570 }
0085ce49
RD
40571 arg5 = reinterpret_cast< wxRect * >(argp5);
40572 }
40573 {
40574 PyThreadState* __tstate = wxPyBeginAllowThreads();
40575 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40576 wxPyEndAllowThreads(__tstate);
40577 if (PyErr_Occurred()) SWIG_fail;
40578 }
40579 {
40580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40581 }
40582 return resultobj;
40583fail:
40584 return NULL;
40585}
40586
40587
40588SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40589 PyObject *resultobj = 0;
40590 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40591 wxPoint *arg2 = 0 ;
40592 wxWindow *arg3 = (wxWindow *) 0 ;
40593 wxWindow *arg4 = (wxWindow *) 0 ;
40594 bool result;
40595 void *argp1 = 0 ;
40596 int res1 = 0 ;
40597 wxPoint temp2 ;
40598 void *argp3 = 0 ;
40599 int res3 = 0 ;
40600 void *argp4 = 0 ;
40601 int res4 = 0 ;
40602 PyObject * obj0 = 0 ;
40603 PyObject * obj1 = 0 ;
40604 PyObject * obj2 = 0 ;
40605 PyObject * obj3 = 0 ;
40606 char * kwnames[] = {
40607 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40608 };
40609
40610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40612 if (!SWIG_IsOK(res1)) {
40613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40614 }
40615 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40616 {
40617 arg2 = &temp2;
40618 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40619 }
40620 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40621 if (!SWIG_IsOK(res3)) {
40622 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40623 }
40624 arg3 = reinterpret_cast< wxWindow * >(argp3);
40625 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40626 if (!SWIG_IsOK(res4)) {
40627 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40628 }
40629 arg4 = reinterpret_cast< wxWindow * >(argp4);
40630 {
40631 PyThreadState* __tstate = wxPyBeginAllowThreads();
40632 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40633 wxPyEndAllowThreads(__tstate);
40634 if (PyErr_Occurred()) SWIG_fail;
40635 }
40636 {
40637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40638 }
40639 return resultobj;
40640fail:
40641 return NULL;
d14a1e28
RD
40642}
40643
40644
0085ce49
RD
40645SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40646 PyObject *resultobj = 0;
40647 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40648 bool result;
40649 void *argp1 = 0 ;
40650 int res1 = 0 ;
40651 PyObject *swig_obj[1] ;
40652
40653 if (!args) SWIG_fail;
40654 swig_obj[0] = args;
40655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40656 if (!SWIG_IsOK(res1)) {
40657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40658 }
40659 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40660 {
40661 PyThreadState* __tstate = wxPyBeginAllowThreads();
40662 result = (bool)(arg1)->EndDrag();
40663 wxPyEndAllowThreads(__tstate);
40664 if (PyErr_Occurred()) SWIG_fail;
40665 }
40666 {
40667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40668 }
40669 return resultobj;
40670fail:
40671 return NULL;
40672}
40673
40674
40675SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40676 PyObject *resultobj = 0;
40677 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40678 wxPoint *arg2 = 0 ;
40679 bool result;
40680 void *argp1 = 0 ;
40681 int res1 = 0 ;
40682 wxPoint temp2 ;
40683 PyObject * obj0 = 0 ;
40684 PyObject * obj1 = 0 ;
40685 char * kwnames[] = {
40686 (char *) "self",(char *) "pt", NULL
40687 };
40688
40689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40691 if (!SWIG_IsOK(res1)) {
40692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40693 }
40694 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40695 {
40696 arg2 = &temp2;
40697 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40698 }
40699 {
40700 PyThreadState* __tstate = wxPyBeginAllowThreads();
40701 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40702 wxPyEndAllowThreads(__tstate);
40703 if (PyErr_Occurred()) SWIG_fail;
40704 }
40705 {
40706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40707 }
40708 return resultobj;
40709fail:
40710 return NULL;
d14a1e28
RD
40711}
40712
40713
0085ce49
RD
40714SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40715 PyObject *resultobj = 0;
40716 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40717 bool result;
40718 void *argp1 = 0 ;
40719 int res1 = 0 ;
40720 PyObject *swig_obj[1] ;
40721
40722 if (!args) SWIG_fail;
40723 swig_obj[0] = args;
40724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40725 if (!SWIG_IsOK(res1)) {
40726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40727 }
40728 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40729 {
40730 PyThreadState* __tstate = wxPyBeginAllowThreads();
40731 result = (bool)(arg1)->Show();
40732 wxPyEndAllowThreads(__tstate);
40733 if (PyErr_Occurred()) SWIG_fail;
40734 }
40735 {
40736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40737 }
40738 return resultobj;
40739fail:
40740 return NULL;
d14a1e28
RD
40741}
40742
40743
0085ce49
RD
40744SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40745 PyObject *resultobj = 0;
40746 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40747 bool result;
40748 void *argp1 = 0 ;
40749 int res1 = 0 ;
40750 PyObject *swig_obj[1] ;
40751
40752 if (!args) SWIG_fail;
40753 swig_obj[0] = args;
40754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40755 if (!SWIG_IsOK(res1)) {
40756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40757 }
40758 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40759 {
40760 PyThreadState* __tstate = wxPyBeginAllowThreads();
40761 result = (bool)(arg1)->Hide();
40762 wxPyEndAllowThreads(__tstate);
40763 if (PyErr_Occurred()) SWIG_fail;
40764 }
40765 {
40766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40767 }
40768 return resultobj;
40769fail:
40770 return NULL;
40771}
40772
40773
40774SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40775 PyObject *resultobj = 0;
40776 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40777 wxPoint *arg2 = 0 ;
40778 wxRect result;
40779 void *argp1 = 0 ;
40780 int res1 = 0 ;
40781 wxPoint temp2 ;
40782 PyObject * obj0 = 0 ;
40783 PyObject * obj1 = 0 ;
40784 char * kwnames[] = {
40785 (char *) "self",(char *) "pos", NULL
40786 };
40787
40788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40790 if (!SWIG_IsOK(res1)) {
40791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40792 }
40793 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40794 {
40795 arg2 = &temp2;
40796 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40797 }
40798 {
40799 PyThreadState* __tstate = wxPyBeginAllowThreads();
40800 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40801 wxPyEndAllowThreads(__tstate);
40802 if (PyErr_Occurred()) SWIG_fail;
40803 }
40804 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40805 return resultobj;
40806fail:
40807 return NULL;
40808}
40809
40810
40811SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40812 PyObject *resultobj = 0;
40813 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40814 wxDC *arg2 = 0 ;
40815 wxPoint *arg3 = 0 ;
40816 bool result;
40817 void *argp1 = 0 ;
40818 int res1 = 0 ;
40819 void *argp2 = 0 ;
40820 int res2 = 0 ;
40821 wxPoint temp3 ;
40822 PyObject * obj0 = 0 ;
40823 PyObject * obj1 = 0 ;
40824 PyObject * obj2 = 0 ;
40825 char * kwnames[] = {
40826 (char *) "self",(char *) "dc",(char *) "pos", NULL
40827 };
40828
40829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40831 if (!SWIG_IsOK(res1)) {
40832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40833 }
40834 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40836 if (!SWIG_IsOK(res2)) {
40837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40838 }
40839 if (!argp2) {
40840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40841 }
40842 arg2 = reinterpret_cast< wxDC * >(argp2);
40843 {
40844 arg3 = &temp3;
40845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40846 }
40847 {
40848 PyThreadState* __tstate = wxPyBeginAllowThreads();
40849 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40850 wxPyEndAllowThreads(__tstate);
40851 if (PyErr_Occurred()) SWIG_fail;
40852 }
40853 {
40854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40855 }
40856 return resultobj;
40857fail:
40858 return NULL;
40859}
40860
40861
40862SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40863 PyObject *resultobj = 0;
40864 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40865 wxDC *arg2 = 0 ;
40866 wxMemoryDC *arg3 = 0 ;
40867 wxRect *arg4 = 0 ;
40868 wxRect *arg5 = 0 ;
40869 bool result;
40870 void *argp1 = 0 ;
40871 int res1 = 0 ;
40872 void *argp2 = 0 ;
40873 int res2 = 0 ;
40874 void *argp3 = 0 ;
40875 int res3 = 0 ;
40876 wxRect temp4 ;
40877 wxRect temp5 ;
40878 PyObject * obj0 = 0 ;
40879 PyObject * obj1 = 0 ;
40880 PyObject * obj2 = 0 ;
40881 PyObject * obj3 = 0 ;
40882 PyObject * obj4 = 0 ;
40883 char * kwnames[] = {
40884 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40885 };
40886
40887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40889 if (!SWIG_IsOK(res1)) {
40890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40891 }
40892 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40894 if (!SWIG_IsOK(res2)) {
40895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40896 }
40897 if (!argp2) {
40898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40899 }
40900 arg2 = reinterpret_cast< wxDC * >(argp2);
40901 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40902 if (!SWIG_IsOK(res3)) {
40903 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40904 }
40905 if (!argp3) {
40906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40907 }
40908 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40909 {
40910 arg4 = &temp4;
40911 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40912 }
40913 {
40914 arg5 = &temp5;
40915 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40916 }
40917 {
40918 PyThreadState* __tstate = wxPyBeginAllowThreads();
40919 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40920 wxPyEndAllowThreads(__tstate);
40921 if (PyErr_Occurred()) SWIG_fail;
40922 }
40923 {
40924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40925 }
40926 return resultobj;
40927fail:
40928 return NULL;
40929}
40930
40931
40932SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40933 PyObject *resultobj = 0;
40934 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40935 wxPoint *arg2 = 0 ;
40936 wxPoint *arg3 = 0 ;
40937 bool arg4 ;
40938 bool arg5 ;
40939 bool result;
40940 void *argp1 = 0 ;
40941 int res1 = 0 ;
40942 wxPoint temp2 ;
40943 wxPoint temp3 ;
40944 bool val4 ;
40945 int ecode4 = 0 ;
40946 bool val5 ;
40947 int ecode5 = 0 ;
40948 PyObject * obj0 = 0 ;
40949 PyObject * obj1 = 0 ;
40950 PyObject * obj2 = 0 ;
40951 PyObject * obj3 = 0 ;
40952 PyObject * obj4 = 0 ;
40953 char * kwnames[] = {
40954 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40955 };
40956
40957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40959 if (!SWIG_IsOK(res1)) {
40960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40961 }
40962 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40963 {
40964 arg2 = &temp2;
40965 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40966 }
40967 {
40968 arg3 = &temp3;
40969 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40970 }
40971 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40972 if (!SWIG_IsOK(ecode4)) {
40973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40974 }
40975 arg4 = static_cast< bool >(val4);
40976 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40977 if (!SWIG_IsOK(ecode5)) {
40978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40979 }
40980 arg5 = static_cast< bool >(val5);
40981 {
40982 PyThreadState* __tstate = wxPyBeginAllowThreads();
40983 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40984 wxPyEndAllowThreads(__tstate);
40985 if (PyErr_Occurred()) SWIG_fail;
40986 }
40987 {
40988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40989 }
40990 return resultobj;
40991fail:
40992 return NULL;
d14a1e28
RD
40993}
40994
40995
0085ce49
RD
40996SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40997 PyObject *obj;
40998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40999 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41000 return SWIG_Py_Void();
d14a1e28
RD
41001}
41002
0085ce49
RD
41003SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41004 return SWIG_Python_InitShadowInstance(args);
41005}
d14a1e28 41006
0085ce49
RD
41007SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41008 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41009 return 1;
d14a1e28
RD
41010}
41011
41012
0085ce49
RD
41013SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41014 PyObject *pyobj = 0;
41015
41016 {
41017#if wxUSE_UNICODE
41018 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41019#else
41020 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41021#endif
41022 }
41023 return pyobj;
41024}
41025
41026
41027SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41028 PyObject *resultobj = 0;
41029 wxWindow *arg1 = (wxWindow *) 0 ;
41030 int arg2 = (int) -1 ;
41031 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41032 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41033 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41034 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41035 wxSize const &arg5_defvalue = wxDefaultSize ;
41036 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41037 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41038 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41039 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41040 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41041 wxString *arg8 = (wxString *) &arg8_defvalue ;
41042 wxDatePickerCtrl *result = 0 ;
41043 void *argp1 = 0 ;
41044 int res1 = 0 ;
41045 int val2 ;
41046 int ecode2 = 0 ;
41047 void *argp3 = 0 ;
41048 int res3 = 0 ;
41049 wxPoint temp4 ;
41050 wxSize temp5 ;
41051 long val6 ;
41052 int ecode6 = 0 ;
41053 void *argp7 = 0 ;
41054 int res7 = 0 ;
41055 bool temp8 = false ;
41056 PyObject * obj0 = 0 ;
41057 PyObject * obj1 = 0 ;
41058 PyObject * obj2 = 0 ;
41059 PyObject * obj3 = 0 ;
41060 PyObject * obj4 = 0 ;
41061 PyObject * obj5 = 0 ;
41062 PyObject * obj6 = 0 ;
41063 PyObject * obj7 = 0 ;
41064 char * kwnames[] = {
41065 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41066 };
41067
41068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41070 if (!SWIG_IsOK(res1)) {
41071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41072 }
41073 arg1 = reinterpret_cast< wxWindow * >(argp1);
41074 if (obj1) {
41075 ecode2 = SWIG_AsVal_int(obj1, &val2);
41076 if (!SWIG_IsOK(ecode2)) {
41077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41078 }
41079 arg2 = static_cast< int >(val2);
41080 }
41081 if (obj2) {
41082 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41083 if (!SWIG_IsOK(res3)) {
41084 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41085 }
0085ce49
RD
41086 if (!argp3) {
41087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41088 }
0085ce49
RD
41089 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41090 }
41091 if (obj3) {
d14a1e28 41092 {
0085ce49
RD
41093 arg4 = &temp4;
41094 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 41095 }
0085ce49
RD
41096 }
41097 if (obj4) {
d14a1e28 41098 {
0085ce49
RD
41099 arg5 = &temp5;
41100 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41101 }
0085ce49
RD
41102 }
41103 if (obj5) {
41104 ecode6 = SWIG_AsVal_long(obj5, &val6);
41105 if (!SWIG_IsOK(ecode6)) {
41106 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41107 }
41108 arg6 = static_cast< long >(val6);
41109 }
41110 if (obj6) {
41111 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41112 if (!SWIG_IsOK(res7)) {
41113 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41114 }
41115 if (!argp7) {
41116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 41117 }
0085ce49
RD
41118 arg7 = reinterpret_cast< wxValidator * >(argp7);
41119 }
41120 if (obj7) {
d14a1e28 41121 {
0085ce49
RD
41122 arg8 = wxString_in_helper(obj7);
41123 if (arg8 == NULL) SWIG_fail;
41124 temp8 = true;
d14a1e28 41125 }
0085ce49
RD
41126 }
41127 {
41128 if (!wxPyCheckForApp()) SWIG_fail;
41129 PyThreadState* __tstate = wxPyBeginAllowThreads();
41130 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41131 wxPyEndAllowThreads(__tstate);
41132 if (PyErr_Occurred()) SWIG_fail;
41133 }
41134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41135 {
41136 if (temp8)
41137 delete arg8;
41138 }
41139 return resultobj;
41140fail:
41141 {
41142 if (temp8)
41143 delete arg8;
41144 }
41145 return NULL;
d14a1e28
RD
41146}
41147
41148
0085ce49
RD
41149SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41150 PyObject *resultobj = 0;
41151 wxDatePickerCtrl *result = 0 ;
41152
41153 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41154 {
41155 if (!wxPyCheckForApp()) SWIG_fail;
41156 PyThreadState* __tstate = wxPyBeginAllowThreads();
41157 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41158 wxPyEndAllowThreads(__tstate);
41159 if (PyErr_Occurred()) SWIG_fail;
41160 }
41161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41162 return resultobj;
41163fail:
41164 return NULL;
41165}
41166
41167
41168SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41169 PyObject *resultobj = 0;
41170 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41171 wxWindow *arg2 = (wxWindow *) 0 ;
41172 int arg3 = (int) -1 ;
41173 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41174 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41175 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41176 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41177 wxSize const &arg6_defvalue = wxDefaultSize ;
41178 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41179 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41180 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41181 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41182 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41183 wxString *arg9 = (wxString *) &arg9_defvalue ;
41184 bool result;
41185 void *argp1 = 0 ;
41186 int res1 = 0 ;
41187 void *argp2 = 0 ;
41188 int res2 = 0 ;
41189 int val3 ;
41190 int ecode3 = 0 ;
41191 void *argp4 = 0 ;
41192 int res4 = 0 ;
41193 wxPoint temp5 ;
41194 wxSize temp6 ;
41195 long val7 ;
41196 int ecode7 = 0 ;
41197 void *argp8 = 0 ;
41198 int res8 = 0 ;
41199 bool temp9 = false ;
41200 PyObject * obj0 = 0 ;
41201 PyObject * obj1 = 0 ;
41202 PyObject * obj2 = 0 ;
41203 PyObject * obj3 = 0 ;
41204 PyObject * obj4 = 0 ;
41205 PyObject * obj5 = 0 ;
41206 PyObject * obj6 = 0 ;
41207 PyObject * obj7 = 0 ;
41208 PyObject * obj8 = 0 ;
41209 char * kwnames[] = {
41210 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41211 };
41212
41213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41215 if (!SWIG_IsOK(res1)) {
41216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41217 }
41218 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41219 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41220 if (!SWIG_IsOK(res2)) {
41221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41222 }
41223 arg2 = reinterpret_cast< wxWindow * >(argp2);
41224 if (obj2) {
41225 ecode3 = SWIG_AsVal_int(obj2, &val3);
41226 if (!SWIG_IsOK(ecode3)) {
41227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41228 }
41229 arg3 = static_cast< int >(val3);
41230 }
41231 if (obj3) {
41232 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41233 if (!SWIG_IsOK(res4)) {
41234 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41235 }
0085ce49
RD
41236 if (!argp4) {
41237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41238 }
0085ce49
RD
41239 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41240 }
41241 if (obj4) {
d14a1e28 41242 {
0085ce49
RD
41243 arg5 = &temp5;
41244 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41245 }
0085ce49
RD
41246 }
41247 if (obj5) {
d14a1e28 41248 {
0085ce49
RD
41249 arg6 = &temp6;
41250 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41251 }
41252 }
41253 if (obj6) {
41254 ecode7 = SWIG_AsVal_long(obj6, &val7);
41255 if (!SWIG_IsOK(ecode7)) {
41256 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41257 }
41258 arg7 = static_cast< long >(val7);
41259 }
41260 if (obj7) {
41261 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41262 if (!SWIG_IsOK(res8)) {
41263 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41264 }
41265 if (!argp8) {
41266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 41267 }
0085ce49
RD
41268 arg8 = reinterpret_cast< wxValidator * >(argp8);
41269 }
41270 if (obj8) {
d14a1e28 41271 {
0085ce49
RD
41272 arg9 = wxString_in_helper(obj8);
41273 if (arg9 == NULL) SWIG_fail;
41274 temp9 = true;
d14a1e28 41275 }
0085ce49
RD
41276 }
41277 {
41278 PyThreadState* __tstate = wxPyBeginAllowThreads();
41279 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41280 wxPyEndAllowThreads(__tstate);
41281 if (PyErr_Occurred()) SWIG_fail;
41282 }
41283 {
41284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41285 }
41286 {
41287 if (temp9)
41288 delete arg9;
41289 }
41290 return resultobj;
41291fail:
41292 {
41293 if (temp9)
41294 delete arg9;
41295 }
41296 return NULL;
41297}
41298
41299
41300SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41301 PyObject *resultobj = 0;
41302 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41303 wxDateTime *arg2 = 0 ;
41304 void *argp1 = 0 ;
41305 int res1 = 0 ;
41306 void *argp2 = 0 ;
41307 int res2 = 0 ;
41308 PyObject * obj0 = 0 ;
41309 PyObject * obj1 = 0 ;
41310 char * kwnames[] = {
41311 (char *) "self",(char *) "dt", NULL
41312 };
41313
41314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41316 if (!SWIG_IsOK(res1)) {
41317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41318 }
41319 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41321 if (!SWIG_IsOK(res2)) {
41322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41323 }
41324 if (!argp2) {
41325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41326 }
41327 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41328 {
41329 PyThreadState* __tstate = wxPyBeginAllowThreads();
41330 (arg1)->SetValue((wxDateTime const &)*arg2);
41331 wxPyEndAllowThreads(__tstate);
41332 if (PyErr_Occurred()) SWIG_fail;
41333 }
41334 resultobj = SWIG_Py_Void();
41335 return resultobj;
41336fail:
41337 return NULL;
d14a1e28
RD
41338}
41339
41340
0085ce49
RD
41341SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41342 PyObject *resultobj = 0;
41343 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41344 wxDateTime result;
41345 void *argp1 = 0 ;
41346 int res1 = 0 ;
41347 PyObject *swig_obj[1] ;
41348
41349 if (!args) SWIG_fail;
41350 swig_obj[0] = args;
41351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41352 if (!SWIG_IsOK(res1)) {
41353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41354 }
41355 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41356 {
41357 PyThreadState* __tstate = wxPyBeginAllowThreads();
41358 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41359 wxPyEndAllowThreads(__tstate);
41360 if (PyErr_Occurred()) SWIG_fail;
41361 }
41362 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41363 return resultobj;
41364fail:
41365 return NULL;
41366}
41367
41368
41369SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41370 PyObject *resultobj = 0;
41371 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41372 wxDateTime *arg2 = 0 ;
41373 wxDateTime *arg3 = 0 ;
41374 void *argp1 = 0 ;
41375 int res1 = 0 ;
41376 void *argp2 = 0 ;
41377 int res2 = 0 ;
41378 void *argp3 = 0 ;
41379 int res3 = 0 ;
41380 PyObject * obj0 = 0 ;
41381 PyObject * obj1 = 0 ;
41382 PyObject * obj2 = 0 ;
41383 char * kwnames[] = {
41384 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41385 };
41386
41387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41389 if (!SWIG_IsOK(res1)) {
41390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41391 }
41392 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41394 if (!SWIG_IsOK(res2)) {
41395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41396 }
41397 if (!argp2) {
41398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41399 }
41400 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41401 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41402 if (!SWIG_IsOK(res3)) {
41403 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41404 }
41405 if (!argp3) {
41406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41407 }
41408 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41409 {
41410 PyThreadState* __tstate = wxPyBeginAllowThreads();
41411 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41412 wxPyEndAllowThreads(__tstate);
41413 if (PyErr_Occurred()) SWIG_fail;
41414 }
41415 resultobj = SWIG_Py_Void();
41416 return resultobj;
41417fail:
41418 return NULL;
d14a1e28
RD
41419}
41420
41421
0085ce49
RD
41422SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41423 PyObject *resultobj = 0;
41424 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41425 wxDateTime result;
41426 void *argp1 = 0 ;
41427 int res1 = 0 ;
41428 PyObject *swig_obj[1] ;
41429
41430 if (!args) SWIG_fail;
41431 swig_obj[0] = args;
41432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41433 if (!SWIG_IsOK(res1)) {
41434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41435 }
41436 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41437 {
41438 PyThreadState* __tstate = wxPyBeginAllowThreads();
41439 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41440 wxPyEndAllowThreads(__tstate);
41441 if (PyErr_Occurred()) SWIG_fail;
41442 }
41443 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41444 return resultobj;
41445fail:
41446 return NULL;
d14a1e28
RD
41447}
41448
41449
0085ce49
RD
41450SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41451 PyObject *resultobj = 0;
41452 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41453 wxDateTime result;
41454 void *argp1 = 0 ;
41455 int res1 = 0 ;
41456 PyObject *swig_obj[1] ;
41457
41458 if (!args) SWIG_fail;
41459 swig_obj[0] = args;
41460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41461 if (!SWIG_IsOK(res1)) {
41462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41463 }
41464 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41465 {
41466 PyThreadState* __tstate = wxPyBeginAllowThreads();
41467 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41468 wxPyEndAllowThreads(__tstate);
41469 if (PyErr_Occurred()) SWIG_fail;
41470 }
41471 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41472 return resultobj;
41473fail:
41474 return NULL;
d14a1e28
RD
41475}
41476
41477
0085ce49
RD
41478SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41479 PyObject *obj;
41480 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41481 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41482 return SWIG_Py_Void();
d14a1e28
RD
41483}
41484
0085ce49
RD
41485SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41486 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
41487}
41488
704eda0c
RD
41489SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41490 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41491 return 1;
41492}
41493
41494
41495SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41496 PyObject *pyobj = 0;
41497
41498 {
41499#if wxUSE_UNICODE
41500 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41501#else
41502 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41503#endif
41504 }
41505 return pyobj;
41506}
41507
41508
41509SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41510 PyObject *resultobj = 0;
41511 wxWindow *arg1 = (wxWindow *) 0 ;
41512 int arg2 ;
41513 wxString *arg3 = 0 ;
41514 wxString *arg4 = 0 ;
41515 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41516 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41517 wxSize const &arg6_defvalue = wxDefaultSize ;
41518 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41519 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41520 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41521 wxString *arg8 = (wxString *) &arg8_defvalue ;
41522 wxHyperlinkCtrl *result = 0 ;
41523 void *argp1 = 0 ;
41524 int res1 = 0 ;
41525 int val2 ;
41526 int ecode2 = 0 ;
41527 bool temp3 = false ;
41528 bool temp4 = false ;
41529 wxPoint temp5 ;
41530 wxSize temp6 ;
41531 long val7 ;
41532 int ecode7 = 0 ;
41533 bool temp8 = false ;
41534 PyObject * obj0 = 0 ;
41535 PyObject * obj1 = 0 ;
41536 PyObject * obj2 = 0 ;
41537 PyObject * obj3 = 0 ;
41538 PyObject * obj4 = 0 ;
41539 PyObject * obj5 = 0 ;
41540 PyObject * obj6 = 0 ;
41541 PyObject * obj7 = 0 ;
41542 char * kwnames[] = {
41543 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41544 };
41545
41546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41548 if (!SWIG_IsOK(res1)) {
41549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41550 }
41551 arg1 = reinterpret_cast< wxWindow * >(argp1);
41552 ecode2 = SWIG_AsVal_int(obj1, &val2);
41553 if (!SWIG_IsOK(ecode2)) {
41554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41555 }
41556 arg2 = static_cast< int >(val2);
41557 {
41558 arg3 = wxString_in_helper(obj2);
41559 if (arg3 == NULL) SWIG_fail;
41560 temp3 = true;
41561 }
41562 {
41563 arg4 = wxString_in_helper(obj3);
41564 if (arg4 == NULL) SWIG_fail;
41565 temp4 = true;
41566 }
41567 if (obj4) {
41568 {
41569 arg5 = &temp5;
41570 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41571 }
41572 }
41573 if (obj5) {
41574 {
41575 arg6 = &temp6;
41576 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41577 }
41578 }
41579 if (obj6) {
41580 ecode7 = SWIG_AsVal_long(obj6, &val7);
41581 if (!SWIG_IsOK(ecode7)) {
41582 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41583 }
41584 arg7 = static_cast< long >(val7);
41585 }
41586 if (obj7) {
41587 {
41588 arg8 = wxString_in_helper(obj7);
41589 if (arg8 == NULL) SWIG_fail;
41590 temp8 = true;
41591 }
41592 }
41593 {
41594 if (!wxPyCheckForApp()) SWIG_fail;
41595 PyThreadState* __tstate = wxPyBeginAllowThreads();
41596 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41597 wxPyEndAllowThreads(__tstate);
41598 if (PyErr_Occurred()) SWIG_fail;
41599 }
41600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41601 {
41602 if (temp3)
41603 delete arg3;
41604 }
41605 {
41606 if (temp4)
41607 delete arg4;
41608 }
41609 {
41610 if (temp8)
41611 delete arg8;
41612 }
41613 return resultobj;
41614fail:
41615 {
41616 if (temp3)
41617 delete arg3;
41618 }
41619 {
41620 if (temp4)
41621 delete arg4;
41622 }
41623 {
41624 if (temp8)
41625 delete arg8;
41626 }
41627 return NULL;
41628}
41629
41630
41631SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41632 PyObject *resultobj = 0;
41633 wxHyperlinkCtrl *result = 0 ;
41634
41635 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41636 {
41637 if (!wxPyCheckForApp()) SWIG_fail;
41638 PyThreadState* __tstate = wxPyBeginAllowThreads();
41639 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41640 wxPyEndAllowThreads(__tstate);
41641 if (PyErr_Occurred()) SWIG_fail;
41642 }
41643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41644 return resultobj;
41645fail:
41646 return NULL;
41647}
41648
41649
41650SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41651 PyObject *resultobj = 0;
41652 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41653 wxWindow *arg2 = (wxWindow *) 0 ;
41654 int arg3 ;
41655 wxString *arg4 = 0 ;
41656 wxString *arg5 = 0 ;
41657 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41658 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41659 wxSize const &arg7_defvalue = wxDefaultSize ;
41660 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41661 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41662 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41663 wxString *arg9 = (wxString *) &arg9_defvalue ;
41664 bool result;
41665 void *argp1 = 0 ;
41666 int res1 = 0 ;
41667 void *argp2 = 0 ;
41668 int res2 = 0 ;
41669 int val3 ;
41670 int ecode3 = 0 ;
41671 bool temp4 = false ;
41672 bool temp5 = false ;
41673 wxPoint temp6 ;
41674 wxSize temp7 ;
41675 long val8 ;
41676 int ecode8 = 0 ;
41677 bool temp9 = false ;
41678 PyObject * obj0 = 0 ;
41679 PyObject * obj1 = 0 ;
41680 PyObject * obj2 = 0 ;
41681 PyObject * obj3 = 0 ;
41682 PyObject * obj4 = 0 ;
41683 PyObject * obj5 = 0 ;
41684 PyObject * obj6 = 0 ;
41685 PyObject * obj7 = 0 ;
41686 PyObject * obj8 = 0 ;
41687 char * kwnames[] = {
41688 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41689 };
41690
41691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41693 if (!SWIG_IsOK(res1)) {
41694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41695 }
41696 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41697 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41698 if (!SWIG_IsOK(res2)) {
41699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41700 }
41701 arg2 = reinterpret_cast< wxWindow * >(argp2);
41702 ecode3 = SWIG_AsVal_int(obj2, &val3);
41703 if (!SWIG_IsOK(ecode3)) {
41704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41705 }
41706 arg3 = static_cast< int >(val3);
41707 {
41708 arg4 = wxString_in_helper(obj3);
41709 if (arg4 == NULL) SWIG_fail;
41710 temp4 = true;
41711 }
41712 {
41713 arg5 = wxString_in_helper(obj4);
41714 if (arg5 == NULL) SWIG_fail;
41715 temp5 = true;
41716 }
41717 if (obj5) {
41718 {
41719 arg6 = &temp6;
41720 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41721 }
41722 }
41723 if (obj6) {
41724 {
41725 arg7 = &temp7;
41726 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41727 }
41728 }
41729 if (obj7) {
41730 ecode8 = SWIG_AsVal_long(obj7, &val8);
41731 if (!SWIG_IsOK(ecode8)) {
41732 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41733 }
41734 arg8 = static_cast< long >(val8);
41735 }
41736 if (obj8) {
41737 {
41738 arg9 = wxString_in_helper(obj8);
41739 if (arg9 == NULL) SWIG_fail;
41740 temp9 = true;
41741 }
41742 }
41743 {
41744 PyThreadState* __tstate = wxPyBeginAllowThreads();
41745 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41746 wxPyEndAllowThreads(__tstate);
41747 if (PyErr_Occurred()) SWIG_fail;
41748 }
41749 {
41750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41751 }
41752 {
41753 if (temp4)
41754 delete arg4;
41755 }
41756 {
41757 if (temp5)
41758 delete arg5;
41759 }
41760 {
41761 if (temp9)
41762 delete arg9;
41763 }
41764 return resultobj;
41765fail:
41766 {
41767 if (temp4)
41768 delete arg4;
41769 }
41770 {
41771 if (temp5)
41772 delete arg5;
41773 }
41774 {
41775 if (temp9)
41776 delete arg9;
41777 }
41778 return NULL;
41779}
41780
41781
41782SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41783 PyObject *resultobj = 0;
41784 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41785 wxColour result;
41786 void *argp1 = 0 ;
41787 int res1 = 0 ;
41788 PyObject *swig_obj[1] ;
41789
41790 if (!args) SWIG_fail;
41791 swig_obj[0] = args;
41792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41793 if (!SWIG_IsOK(res1)) {
41794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41795 }
41796 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41797 {
41798 PyThreadState* __tstate = wxPyBeginAllowThreads();
41799 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41800 wxPyEndAllowThreads(__tstate);
41801 if (PyErr_Occurred()) SWIG_fail;
41802 }
41803 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41804 return resultobj;
41805fail:
41806 return NULL;
41807}
41808
41809
41810SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41811 PyObject *resultobj = 0;
41812 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41813 wxColour *arg2 = 0 ;
41814 void *argp1 = 0 ;
41815 int res1 = 0 ;
41816 wxColour temp2 ;
41817 PyObject * obj0 = 0 ;
41818 PyObject * obj1 = 0 ;
41819 char * kwnames[] = {
41820 (char *) "self",(char *) "colour", NULL
41821 };
41822
41823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41825 if (!SWIG_IsOK(res1)) {
41826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41827 }
41828 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41829 {
41830 arg2 = &temp2;
41831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41832 }
41833 {
41834 PyThreadState* __tstate = wxPyBeginAllowThreads();
41835 (arg1)->SetHoverColour((wxColour const &)*arg2);
41836 wxPyEndAllowThreads(__tstate);
41837 if (PyErr_Occurred()) SWIG_fail;
41838 }
41839 resultobj = SWIG_Py_Void();
41840 return resultobj;
41841fail:
41842 return NULL;
41843}
41844
41845
41846SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41847 PyObject *resultobj = 0;
41848 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41849 wxColour result;
41850 void *argp1 = 0 ;
41851 int res1 = 0 ;
41852 PyObject *swig_obj[1] ;
41853
41854 if (!args) SWIG_fail;
41855 swig_obj[0] = args;
41856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41857 if (!SWIG_IsOK(res1)) {
41858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41859 }
41860 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41861 {
41862 PyThreadState* __tstate = wxPyBeginAllowThreads();
41863 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41864 wxPyEndAllowThreads(__tstate);
41865 if (PyErr_Occurred()) SWIG_fail;
41866 }
41867 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41868 return resultobj;
41869fail:
41870 return NULL;
41871}
41872
41873
41874SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41875 PyObject *resultobj = 0;
41876 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41877 wxColour *arg2 = 0 ;
41878 void *argp1 = 0 ;
41879 int res1 = 0 ;
41880 wxColour temp2 ;
41881 PyObject * obj0 = 0 ;
41882 PyObject * obj1 = 0 ;
41883 char * kwnames[] = {
41884 (char *) "self",(char *) "colour", NULL
41885 };
41886
41887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41889 if (!SWIG_IsOK(res1)) {
41890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41891 }
41892 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41893 {
41894 arg2 = &temp2;
41895 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41896 }
41897 {
41898 PyThreadState* __tstate = wxPyBeginAllowThreads();
41899 (arg1)->SetNormalColour((wxColour const &)*arg2);
41900 wxPyEndAllowThreads(__tstate);
41901 if (PyErr_Occurred()) SWIG_fail;
41902 }
41903 resultobj = SWIG_Py_Void();
41904 return resultobj;
41905fail:
41906 return NULL;
41907}
41908
41909
41910SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41911 PyObject *resultobj = 0;
41912 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41913 wxColour result;
41914 void *argp1 = 0 ;
41915 int res1 = 0 ;
41916 PyObject *swig_obj[1] ;
41917
41918 if (!args) SWIG_fail;
41919 swig_obj[0] = args;
41920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41921 if (!SWIG_IsOK(res1)) {
41922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41923 }
41924 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41925 {
41926 PyThreadState* __tstate = wxPyBeginAllowThreads();
41927 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41928 wxPyEndAllowThreads(__tstate);
41929 if (PyErr_Occurred()) SWIG_fail;
41930 }
41931 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41932 return resultobj;
41933fail:
41934 return NULL;
41935}
41936
41937
41938SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41939 PyObject *resultobj = 0;
41940 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41941 wxColour *arg2 = 0 ;
41942 void *argp1 = 0 ;
41943 int res1 = 0 ;
41944 wxColour temp2 ;
41945 PyObject * obj0 = 0 ;
41946 PyObject * obj1 = 0 ;
41947 char * kwnames[] = {
41948 (char *) "self",(char *) "colour", NULL
41949 };
41950
41951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41953 if (!SWIG_IsOK(res1)) {
41954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41955 }
41956 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41957 {
41958 arg2 = &temp2;
41959 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41960 }
41961 {
41962 PyThreadState* __tstate = wxPyBeginAllowThreads();
41963 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41964 wxPyEndAllowThreads(__tstate);
41965 if (PyErr_Occurred()) SWIG_fail;
41966 }
41967 resultobj = SWIG_Py_Void();
41968 return resultobj;
41969fail:
41970 return NULL;
41971}
41972
41973
41974SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41975 PyObject *resultobj = 0;
41976 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41977 wxString result;
41978 void *argp1 = 0 ;
41979 int res1 = 0 ;
41980 PyObject *swig_obj[1] ;
41981
41982 if (!args) SWIG_fail;
41983 swig_obj[0] = args;
41984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41985 if (!SWIG_IsOK(res1)) {
41986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41987 }
41988 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41989 {
41990 PyThreadState* __tstate = wxPyBeginAllowThreads();
41991 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41992 wxPyEndAllowThreads(__tstate);
41993 if (PyErr_Occurred()) SWIG_fail;
41994 }
41995 {
41996#if wxUSE_UNICODE
41997 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41998#else
41999 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42000#endif
42001 }
42002 return resultobj;
42003fail:
42004 return NULL;
42005}
42006
42007
42008SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42009 PyObject *resultobj = 0;
42010 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42011 wxString *arg2 = 0 ;
42012 void *argp1 = 0 ;
42013 int res1 = 0 ;
42014 bool temp2 = false ;
42015 PyObject * obj0 = 0 ;
42016 PyObject * obj1 = 0 ;
42017 char * kwnames[] = {
42018 (char *) "self",(char *) "url", NULL
42019 };
42020
42021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42023 if (!SWIG_IsOK(res1)) {
42024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42025 }
42026 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42027 {
42028 arg2 = wxString_in_helper(obj1);
42029 if (arg2 == NULL) SWIG_fail;
42030 temp2 = true;
42031 }
42032 {
42033 PyThreadState* __tstate = wxPyBeginAllowThreads();
42034 (arg1)->SetURL((wxString const &)*arg2);
42035 wxPyEndAllowThreads(__tstate);
42036 if (PyErr_Occurred()) SWIG_fail;
42037 }
42038 resultobj = SWIG_Py_Void();
42039 {
42040 if (temp2)
42041 delete arg2;
42042 }
42043 return resultobj;
42044fail:
42045 {
42046 if (temp2)
42047 delete arg2;
42048 }
42049 return NULL;
42050}
42051
42052
42053SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42054 PyObject *resultobj = 0;
42055 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42056 bool arg2 = (bool) true ;
42057 void *argp1 = 0 ;
42058 int res1 = 0 ;
42059 bool val2 ;
42060 int ecode2 = 0 ;
42061 PyObject * obj0 = 0 ;
42062 PyObject * obj1 = 0 ;
42063 char * kwnames[] = {
42064 (char *) "self",(char *) "visited", NULL
42065 };
42066
42067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42069 if (!SWIG_IsOK(res1)) {
42070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42071 }
42072 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42073 if (obj1) {
42074 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42075 if (!SWIG_IsOK(ecode2)) {
42076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42077 }
42078 arg2 = static_cast< bool >(val2);
42079 }
42080 {
42081 PyThreadState* __tstate = wxPyBeginAllowThreads();
42082 (arg1)->SetVisited(arg2);
42083 wxPyEndAllowThreads(__tstate);
42084 if (PyErr_Occurred()) SWIG_fail;
42085 }
42086 resultobj = SWIG_Py_Void();
42087 return resultobj;
42088fail:
42089 return NULL;
42090}
42091
42092
42093SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42094 PyObject *resultobj = 0;
42095 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42096 bool result;
42097 void *argp1 = 0 ;
42098 int res1 = 0 ;
42099 PyObject *swig_obj[1] ;
42100
42101 if (!args) SWIG_fail;
42102 swig_obj[0] = args;
42103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42104 if (!SWIG_IsOK(res1)) {
42105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42106 }
42107 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42108 {
42109 PyThreadState* __tstate = wxPyBeginAllowThreads();
42110 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42111 wxPyEndAllowThreads(__tstate);
42112 if (PyErr_Occurred()) SWIG_fail;
42113 }
42114 {
42115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42116 }
42117 return resultobj;
42118fail:
42119 return NULL;
42120}
42121
42122
42123SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42124 PyObject *obj;
42125 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42126 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42127 return SWIG_Py_Void();
42128}
42129
42130SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42131 return SWIG_Python_InitShadowInstance(args);
42132}
42133
42134SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42135 PyObject *resultobj = 0;
42136 wxObject *arg1 = (wxObject *) 0 ;
42137 int arg2 ;
42138 wxString *arg3 = 0 ;
42139 wxHyperlinkEvent *result = 0 ;
42140 void *argp1 = 0 ;
42141 int res1 = 0 ;
42142 int val2 ;
42143 int ecode2 = 0 ;
42144 bool temp3 = false ;
42145 PyObject * obj0 = 0 ;
42146 PyObject * obj1 = 0 ;
42147 PyObject * obj2 = 0 ;
42148 char * kwnames[] = {
42149 (char *) "generator",(char *) "id",(char *) "url", NULL
42150 };
42151
42152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42154 if (!SWIG_IsOK(res1)) {
42155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42156 }
42157 arg1 = reinterpret_cast< wxObject * >(argp1);
42158 ecode2 = SWIG_AsVal_int(obj1, &val2);
42159 if (!SWIG_IsOK(ecode2)) {
42160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42161 }
42162 arg2 = static_cast< int >(val2);
42163 {
42164 arg3 = wxString_in_helper(obj2);
42165 if (arg3 == NULL) SWIG_fail;
42166 temp3 = true;
42167 }
42168 {
42169 PyThreadState* __tstate = wxPyBeginAllowThreads();
42170 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42171 wxPyEndAllowThreads(__tstate);
42172 if (PyErr_Occurred()) SWIG_fail;
42173 }
42174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42175 {
42176 if (temp3)
42177 delete arg3;
42178 }
42179 return resultobj;
42180fail:
42181 {
42182 if (temp3)
42183 delete arg3;
42184 }
42185 return NULL;
42186}
42187
42188
42189SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42190 PyObject *resultobj = 0;
42191 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42192 wxString result;
42193 void *argp1 = 0 ;
42194 int res1 = 0 ;
42195 PyObject *swig_obj[1] ;
42196
42197 if (!args) SWIG_fail;
42198 swig_obj[0] = args;
42199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42200 if (!SWIG_IsOK(res1)) {
42201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42202 }
42203 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42204 {
42205 PyThreadState* __tstate = wxPyBeginAllowThreads();
42206 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42207 wxPyEndAllowThreads(__tstate);
42208 if (PyErr_Occurred()) SWIG_fail;
42209 }
42210 {
42211#if wxUSE_UNICODE
42212 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42213#else
42214 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42215#endif
42216 }
42217 return resultobj;
42218fail:
42219 return NULL;
42220}
42221
42222
42223SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42224 PyObject *resultobj = 0;
42225 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42226 wxString *arg2 = 0 ;
42227 void *argp1 = 0 ;
42228 int res1 = 0 ;
42229 bool temp2 = false ;
42230 PyObject * obj0 = 0 ;
42231 PyObject * obj1 = 0 ;
42232 char * kwnames[] = {
42233 (char *) "self",(char *) "url", NULL
42234 };
42235
42236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42238 if (!SWIG_IsOK(res1)) {
42239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42240 }
42241 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42242 {
42243 arg2 = wxString_in_helper(obj1);
42244 if (arg2 == NULL) SWIG_fail;
42245 temp2 = true;
42246 }
42247 {
42248 PyThreadState* __tstate = wxPyBeginAllowThreads();
42249 (arg1)->SetURL((wxString const &)*arg2);
42250 wxPyEndAllowThreads(__tstate);
42251 if (PyErr_Occurred()) SWIG_fail;
42252 }
42253 resultobj = SWIG_Py_Void();
42254 {
42255 if (temp2)
42256 delete arg2;
42257 }
42258 return resultobj;
42259fail:
42260 {
42261 if (temp2)
42262 delete arg2;
42263 }
42264 return NULL;
42265}
42266
42267
42268SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42269 PyObject *obj;
42270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42271 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42272 return SWIG_Py_Void();
42273}
42274
42275SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42276 return SWIG_Python_InitShadowInstance(args);
42277}
42278
b850e7f3
RD
42279SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42280 PyObject *resultobj = 0;
42281 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42282 wxWindow *arg2 = (wxWindow *) 0 ;
42283 int arg3 ;
42284 wxString const &arg4_defvalue = wxEmptyString ;
42285 wxString *arg4 = (wxString *) &arg4_defvalue ;
42286 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42287 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42288 wxSize const &arg6_defvalue = wxDefaultSize ;
42289 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42290 long arg7 = (long) 0 ;
42291 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42292 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42293 wxString const &arg9_defvalue = wxButtonNameStr ;
42294 wxString *arg9 = (wxString *) &arg9_defvalue ;
42295 bool result;
42296 void *argp1 = 0 ;
42297 int res1 = 0 ;
42298 void *argp2 = 0 ;
42299 int res2 = 0 ;
42300 int val3 ;
42301 int ecode3 = 0 ;
42302 bool temp4 = false ;
42303 wxPoint temp5 ;
42304 wxSize temp6 ;
42305 long val7 ;
42306 int ecode7 = 0 ;
42307 void *argp8 = 0 ;
42308 int res8 = 0 ;
42309 bool temp9 = false ;
42310 PyObject * obj0 = 0 ;
42311 PyObject * obj1 = 0 ;
42312 PyObject * obj2 = 0 ;
42313 PyObject * obj3 = 0 ;
42314 PyObject * obj4 = 0 ;
42315 PyObject * obj5 = 0 ;
42316 PyObject * obj6 = 0 ;
42317 PyObject * obj7 = 0 ;
42318 PyObject * obj8 = 0 ;
42319 char * kwnames[] = {
42320 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42321 };
42322
42323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42325 if (!SWIG_IsOK(res1)) {
42326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42327 }
42328 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42329 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42330 if (!SWIG_IsOK(res2)) {
42331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42332 }
42333 arg2 = reinterpret_cast< wxWindow * >(argp2);
42334 ecode3 = SWIG_AsVal_int(obj2, &val3);
42335 if (!SWIG_IsOK(ecode3)) {
42336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42337 }
42338 arg3 = static_cast< int >(val3);
42339 if (obj3) {
42340 {
42341 arg4 = wxString_in_helper(obj3);
42342 if (arg4 == NULL) SWIG_fail;
42343 temp4 = true;
42344 }
42345 }
42346 if (obj4) {
42347 {
42348 arg5 = &temp5;
42349 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42350 }
42351 }
42352 if (obj5) {
42353 {
42354 arg6 = &temp6;
42355 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42356 }
42357 }
42358 if (obj6) {
42359 ecode7 = SWIG_AsVal_long(obj6, &val7);
42360 if (!SWIG_IsOK(ecode7)) {
42361 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42362 }
42363 arg7 = static_cast< long >(val7);
42364 }
42365 if (obj7) {
42366 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42367 if (!SWIG_IsOK(res8)) {
42368 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42369 }
42370 if (!argp8) {
42371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42372 }
42373 arg8 = reinterpret_cast< wxValidator * >(argp8);
42374 }
42375 if (obj8) {
42376 {
42377 arg9 = wxString_in_helper(obj8);
42378 if (arg9 == NULL) SWIG_fail;
42379 temp9 = true;
42380 }
42381 }
42382 {
42383 PyThreadState* __tstate = wxPyBeginAllowThreads();
42384 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42385 wxPyEndAllowThreads(__tstate);
42386 if (PyErr_Occurred()) SWIG_fail;
42387 }
42388 {
42389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42390 }
42391 {
42392 if (temp4)
42393 delete arg4;
42394 }
42395 {
42396 if (temp9)
42397 delete arg9;
42398 }
42399 return resultobj;
42400fail:
42401 {
42402 if (temp4)
42403 delete arg4;
42404 }
42405 {
42406 if (temp9)
42407 delete arg9;
42408 }
42409 return NULL;
42410}
42411
42412
42413SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42414 PyObject *resultobj = 0;
42415 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42416 int arg2 ;
42417 void *argp1 = 0 ;
42418 int res1 = 0 ;
42419 int val2 ;
42420 int ecode2 = 0 ;
42421 PyObject * obj0 = 0 ;
42422 PyObject * obj1 = 0 ;
42423 char * kwnames[] = {
42424 (char *) "self",(char *) "newmargin", NULL
42425 };
42426
42427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42429 if (!SWIG_IsOK(res1)) {
42430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42431 }
42432 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42433 ecode2 = SWIG_AsVal_int(obj1, &val2);
42434 if (!SWIG_IsOK(ecode2)) {
42435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42436 }
42437 arg2 = static_cast< int >(val2);
42438 {
42439 PyThreadState* __tstate = wxPyBeginAllowThreads();
42440 (arg1)->SetInternalMargin(arg2);
42441 wxPyEndAllowThreads(__tstate);
42442 if (PyErr_Occurred()) SWIG_fail;
42443 }
42444 resultobj = SWIG_Py_Void();
42445 return resultobj;
42446fail:
42447 return NULL;
42448}
42449
42450
42451SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42452 PyObject *resultobj = 0;
42453 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42454 int result;
42455 void *argp1 = 0 ;
42456 int res1 = 0 ;
42457 PyObject *swig_obj[1] ;
42458
42459 if (!args) SWIG_fail;
42460 swig_obj[0] = args;
42461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42462 if (!SWIG_IsOK(res1)) {
42463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42464 }
42465 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42466 {
42467 PyThreadState* __tstate = wxPyBeginAllowThreads();
42468 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42469 wxPyEndAllowThreads(__tstate);
42470 if (PyErr_Occurred()) SWIG_fail;
42471 }
42472 resultobj = SWIG_From_int(static_cast< int >(result));
42473 return resultobj;
42474fail:
42475 return NULL;
42476}
42477
42478
42479SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42480 PyObject *resultobj = 0;
42481 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42482 int arg2 ;
42483 void *argp1 = 0 ;
42484 int res1 = 0 ;
42485 int val2 ;
42486 int ecode2 = 0 ;
42487 PyObject * obj0 = 0 ;
42488 PyObject * obj1 = 0 ;
42489 char * kwnames[] = {
42490 (char *) "self",(char *) "prop", NULL
42491 };
42492
42493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42495 if (!SWIG_IsOK(res1)) {
42496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42497 }
42498 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42499 ecode2 = SWIG_AsVal_int(obj1, &val2);
42500 if (!SWIG_IsOK(ecode2)) {
42501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42502 }
42503 arg2 = static_cast< int >(val2);
42504 {
42505 PyThreadState* __tstate = wxPyBeginAllowThreads();
42506 (arg1)->SetTextCtrlProportion(arg2);
42507 wxPyEndAllowThreads(__tstate);
42508 if (PyErr_Occurred()) SWIG_fail;
42509 }
42510 resultobj = SWIG_Py_Void();
42511 return resultobj;
42512fail:
42513 return NULL;
42514}
42515
42516
42517SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42518 PyObject *resultobj = 0;
42519 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42520 int result;
42521 void *argp1 = 0 ;
42522 int res1 = 0 ;
42523 PyObject *swig_obj[1] ;
42524
42525 if (!args) SWIG_fail;
42526 swig_obj[0] = args;
42527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42528 if (!SWIG_IsOK(res1)) {
42529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42530 }
42531 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42532 {
42533 PyThreadState* __tstate = wxPyBeginAllowThreads();
42534 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42535 wxPyEndAllowThreads(__tstate);
42536 if (PyErr_Occurred()) SWIG_fail;
42537 }
42538 resultobj = SWIG_From_int(static_cast< int >(result));
42539 return resultobj;
42540fail:
42541 return NULL;
42542}
42543
42544
10044bf1
RD
42545SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42546 PyObject *resultobj = 0;
42547 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42548 int arg2 ;
42549 void *argp1 = 0 ;
42550 int res1 = 0 ;
42551 int val2 ;
42552 int ecode2 = 0 ;
42553 PyObject * obj0 = 0 ;
42554 PyObject * obj1 = 0 ;
42555 char * kwnames[] = {
42556 (char *) "self",(char *) "prop", NULL
42557 };
42558
42559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42561 if (!SWIG_IsOK(res1)) {
42562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42563 }
42564 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42565 ecode2 = SWIG_AsVal_int(obj1, &val2);
42566 if (!SWIG_IsOK(ecode2)) {
42567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42568 }
42569 arg2 = static_cast< int >(val2);
42570 {
42571 PyThreadState* __tstate = wxPyBeginAllowThreads();
42572 (arg1)->SetPickerCtrlProportion(arg2);
42573 wxPyEndAllowThreads(__tstate);
42574 if (PyErr_Occurred()) SWIG_fail;
42575 }
42576 resultobj = SWIG_Py_Void();
42577 return resultobj;
42578fail:
42579 return NULL;
42580}
42581
42582
42583SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42584 PyObject *resultobj = 0;
42585 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42586 int result;
42587 void *argp1 = 0 ;
42588 int res1 = 0 ;
42589 PyObject *swig_obj[1] ;
42590
42591 if (!args) SWIG_fail;
42592 swig_obj[0] = args;
42593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42594 if (!SWIG_IsOK(res1)) {
42595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42596 }
42597 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42598 {
42599 PyThreadState* __tstate = wxPyBeginAllowThreads();
42600 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42601 wxPyEndAllowThreads(__tstate);
42602 if (PyErr_Occurred()) SWIG_fail;
42603 }
42604 resultobj = SWIG_From_int(static_cast< int >(result));
42605 return resultobj;
42606fail:
42607 return NULL;
42608}
42609
42610
b02396e8
RD
42611SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42612 PyObject *resultobj = 0;
42613 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42614 bool result;
42615 void *argp1 = 0 ;
42616 int res1 = 0 ;
42617 PyObject *swig_obj[1] ;
42618
42619 if (!args) SWIG_fail;
42620 swig_obj[0] = args;
42621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42622 if (!SWIG_IsOK(res1)) {
42623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42624 }
42625 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42626 {
42627 PyThreadState* __tstate = wxPyBeginAllowThreads();
42628 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42629 wxPyEndAllowThreads(__tstate);
42630 if (PyErr_Occurred()) SWIG_fail;
42631 }
42632 {
42633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42634 }
42635 return resultobj;
42636fail:
42637 return NULL;
42638}
42639
42640
42641SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42642 PyObject *resultobj = 0;
42643 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42644 bool arg2 = (bool) true ;
42645 void *argp1 = 0 ;
42646 int res1 = 0 ;
42647 bool val2 ;
42648 int ecode2 = 0 ;
42649 PyObject * obj0 = 0 ;
42650 PyObject * obj1 = 0 ;
42651 char * kwnames[] = {
42652 (char *) "self",(char *) "grow", NULL
42653 };
42654
42655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42657 if (!SWIG_IsOK(res1)) {
42658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42659 }
42660 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42661 if (obj1) {
42662 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42663 if (!SWIG_IsOK(ecode2)) {
42664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42665 }
42666 arg2 = static_cast< bool >(val2);
42667 }
42668 {
42669 PyThreadState* __tstate = wxPyBeginAllowThreads();
42670 (arg1)->SetTextCtrlGrowable(arg2);
42671 wxPyEndAllowThreads(__tstate);
42672 if (PyErr_Occurred()) SWIG_fail;
42673 }
42674 resultobj = SWIG_Py_Void();
42675 return resultobj;
42676fail:
42677 return NULL;
42678}
42679
42680
42681SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42682 PyObject *resultobj = 0;
42683 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42684 bool result;
42685 void *argp1 = 0 ;
42686 int res1 = 0 ;
42687 PyObject *swig_obj[1] ;
42688
42689 if (!args) SWIG_fail;
42690 swig_obj[0] = args;
42691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42692 if (!SWIG_IsOK(res1)) {
42693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42694 }
42695 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42696 {
42697 PyThreadState* __tstate = wxPyBeginAllowThreads();
42698 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42699 wxPyEndAllowThreads(__tstate);
42700 if (PyErr_Occurred()) SWIG_fail;
42701 }
42702 {
42703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42704 }
42705 return resultobj;
42706fail:
42707 return NULL;
42708}
42709
42710
42711SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42712 PyObject *resultobj = 0;
42713 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42714 bool arg2 = (bool) true ;
42715 void *argp1 = 0 ;
42716 int res1 = 0 ;
42717 bool val2 ;
42718 int ecode2 = 0 ;
42719 PyObject * obj0 = 0 ;
42720 PyObject * obj1 = 0 ;
42721 char * kwnames[] = {
42722 (char *) "self",(char *) "grow", NULL
42723 };
42724
42725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42727 if (!SWIG_IsOK(res1)) {
42728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42729 }
42730 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42731 if (obj1) {
42732 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42733 if (!SWIG_IsOK(ecode2)) {
42734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42735 }
42736 arg2 = static_cast< bool >(val2);
42737 }
42738 {
42739 PyThreadState* __tstate = wxPyBeginAllowThreads();
42740 (arg1)->SetPickerCtrlGrowable(arg2);
42741 wxPyEndAllowThreads(__tstate);
42742 if (PyErr_Occurred()) SWIG_fail;
42743 }
42744 resultobj = SWIG_Py_Void();
42745 return resultobj;
42746fail:
42747 return NULL;
42748}
42749
42750
b850e7f3
RD
42751SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42752 PyObject *resultobj = 0;
42753 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42754 bool result;
42755 void *argp1 = 0 ;
42756 int res1 = 0 ;
42757 PyObject *swig_obj[1] ;
42758
42759 if (!args) SWIG_fail;
42760 swig_obj[0] = args;
42761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42762 if (!SWIG_IsOK(res1)) {
42763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42764 }
42765 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42766 {
42767 PyThreadState* __tstate = wxPyBeginAllowThreads();
42768 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42769 wxPyEndAllowThreads(__tstate);
42770 if (PyErr_Occurred()) SWIG_fail;
42771 }
42772 {
42773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42774 }
42775 return resultobj;
42776fail:
42777 return NULL;
42778}
42779
42780
42781SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42782 PyObject *resultobj = 0;
42783 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42784 wxTextCtrl *result = 0 ;
42785 void *argp1 = 0 ;
42786 int res1 = 0 ;
42787 PyObject *swig_obj[1] ;
42788
42789 if (!args) SWIG_fail;
42790 swig_obj[0] = args;
42791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42792 if (!SWIG_IsOK(res1)) {
42793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42794 }
42795 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42796 {
42797 PyThreadState* __tstate = wxPyBeginAllowThreads();
42798 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42799 wxPyEndAllowThreads(__tstate);
42800 if (PyErr_Occurred()) SWIG_fail;
42801 }
42802 {
42803 resultobj = wxPyMake_wxObject(result, 0);
42804 }
42805 return resultobj;
42806fail:
42807 return NULL;
42808}
42809
42810
42811SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42812 PyObject *resultobj = 0;
42813 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42814 wxControl *result = 0 ;
42815 void *argp1 = 0 ;
42816 int res1 = 0 ;
42817 PyObject *swig_obj[1] ;
42818
42819 if (!args) SWIG_fail;
42820 swig_obj[0] = args;
42821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42822 if (!SWIG_IsOK(res1)) {
42823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42824 }
42825 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42826 {
42827 PyThreadState* __tstate = wxPyBeginAllowThreads();
42828 result = (wxControl *)(arg1)->GetPickerCtrl();
42829 wxPyEndAllowThreads(__tstate);
42830 if (PyErr_Occurred()) SWIG_fail;
42831 }
42832 {
42833 resultobj = wxPyMake_wxObject(result, 0);
42834 }
42835 return resultobj;
42836fail:
42837 return NULL;
42838}
42839
42840
42841SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42842 PyObject *obj;
42843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42844 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42845 return SWIG_Py_Void();
42846}
42847
42848SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42849 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42850 return 1;
42851}
42852
42853
42854SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42855 PyObject *pyobj = 0;
42856
42857 {
42858#if wxUSE_UNICODE
42859 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42860#else
42861 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42862#endif
42863 }
42864 return pyobj;
42865}
42866
42867
42868SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42869 PyObject *resultobj = 0;
42870 wxWindow *arg1 = (wxWindow *) 0 ;
42871 int arg2 = (int) -1 ;
42872 wxColour const &arg3_defvalue = *wxBLACK ;
42873 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42874 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42875 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42876 wxSize const &arg5_defvalue = wxDefaultSize ;
42877 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42878 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42879 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42880 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42881 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42882 wxString *arg8 = (wxString *) &arg8_defvalue ;
42883 wxColourPickerCtrl *result = 0 ;
42884 void *argp1 = 0 ;
42885 int res1 = 0 ;
42886 int val2 ;
42887 int ecode2 = 0 ;
42888 wxColour temp3 ;
42889 wxPoint temp4 ;
42890 wxSize temp5 ;
42891 long val6 ;
42892 int ecode6 = 0 ;
42893 void *argp7 = 0 ;
42894 int res7 = 0 ;
42895 bool temp8 = false ;
42896 PyObject * obj0 = 0 ;
42897 PyObject * obj1 = 0 ;
42898 PyObject * obj2 = 0 ;
42899 PyObject * obj3 = 0 ;
42900 PyObject * obj4 = 0 ;
42901 PyObject * obj5 = 0 ;
42902 PyObject * obj6 = 0 ;
42903 PyObject * obj7 = 0 ;
42904 char * kwnames[] = {
42905 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42906 };
42907
42908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42910 if (!SWIG_IsOK(res1)) {
42911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42912 }
42913 arg1 = reinterpret_cast< wxWindow * >(argp1);
42914 if (obj1) {
42915 ecode2 = SWIG_AsVal_int(obj1, &val2);
42916 if (!SWIG_IsOK(ecode2)) {
42917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42918 }
42919 arg2 = static_cast< int >(val2);
42920 }
42921 if (obj2) {
42922 {
42923 arg3 = &temp3;
42924 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42925 }
42926 }
42927 if (obj3) {
42928 {
42929 arg4 = &temp4;
42930 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42931 }
42932 }
42933 if (obj4) {
42934 {
42935 arg5 = &temp5;
42936 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42937 }
42938 }
42939 if (obj5) {
42940 ecode6 = SWIG_AsVal_long(obj5, &val6);
42941 if (!SWIG_IsOK(ecode6)) {
42942 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42943 }
42944 arg6 = static_cast< long >(val6);
42945 }
42946 if (obj6) {
42947 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42948 if (!SWIG_IsOK(res7)) {
42949 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42950 }
42951 if (!argp7) {
42952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42953 }
42954 arg7 = reinterpret_cast< wxValidator * >(argp7);
42955 }
42956 if (obj7) {
42957 {
42958 arg8 = wxString_in_helper(obj7);
42959 if (arg8 == NULL) SWIG_fail;
42960 temp8 = true;
42961 }
42962 }
42963 {
42964 if (!wxPyCheckForApp()) SWIG_fail;
42965 PyThreadState* __tstate = wxPyBeginAllowThreads();
42966 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42967 wxPyEndAllowThreads(__tstate);
42968 if (PyErr_Occurred()) SWIG_fail;
42969 }
42970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42971 {
42972 if (temp8)
42973 delete arg8;
42974 }
42975 return resultobj;
42976fail:
42977 {
42978 if (temp8)
42979 delete arg8;
42980 }
42981 return NULL;
42982}
42983
42984
42985SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42986 PyObject *resultobj = 0;
42987 wxColourPickerCtrl *result = 0 ;
42988
42989 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42990 {
42991 if (!wxPyCheckForApp()) SWIG_fail;
42992 PyThreadState* __tstate = wxPyBeginAllowThreads();
42993 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42994 wxPyEndAllowThreads(__tstate);
42995 if (PyErr_Occurred()) SWIG_fail;
42996 }
42997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42998 return resultobj;
42999fail:
43000 return NULL;
43001}
43002
43003
43004SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43005 PyObject *resultobj = 0;
43006 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43007 wxWindow *arg2 = (wxWindow *) 0 ;
43008 int arg3 ;
43009 wxColour const &arg4_defvalue = *wxBLACK ;
43010 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43011 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43012 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43013 wxSize const &arg6_defvalue = wxDefaultSize ;
43014 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43015 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43016 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43017 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43018 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43019 wxString *arg9 = (wxString *) &arg9_defvalue ;
43020 bool result;
43021 void *argp1 = 0 ;
43022 int res1 = 0 ;
43023 void *argp2 = 0 ;
43024 int res2 = 0 ;
43025 int val3 ;
43026 int ecode3 = 0 ;
43027 wxColour temp4 ;
43028 wxPoint temp5 ;
43029 wxSize temp6 ;
43030 long val7 ;
43031 int ecode7 = 0 ;
43032 void *argp8 = 0 ;
43033 int res8 = 0 ;
43034 bool temp9 = false ;
43035 PyObject * obj0 = 0 ;
43036 PyObject * obj1 = 0 ;
43037 PyObject * obj2 = 0 ;
43038 PyObject * obj3 = 0 ;
43039 PyObject * obj4 = 0 ;
43040 PyObject * obj5 = 0 ;
43041 PyObject * obj6 = 0 ;
43042 PyObject * obj7 = 0 ;
43043 PyObject * obj8 = 0 ;
43044 char * kwnames[] = {
43045 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43046 };
43047
43048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43050 if (!SWIG_IsOK(res1)) {
43051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43052 }
43053 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43054 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43055 if (!SWIG_IsOK(res2)) {
43056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43057 }
43058 arg2 = reinterpret_cast< wxWindow * >(argp2);
43059 ecode3 = SWIG_AsVal_int(obj2, &val3);
43060 if (!SWIG_IsOK(ecode3)) {
43061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43062 }
43063 arg3 = static_cast< int >(val3);
43064 if (obj3) {
43065 {
43066 arg4 = &temp4;
43067 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43068 }
43069 }
43070 if (obj4) {
43071 {
43072 arg5 = &temp5;
43073 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43074 }
43075 }
43076 if (obj5) {
43077 {
43078 arg6 = &temp6;
43079 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43080 }
43081 }
43082 if (obj6) {
43083 ecode7 = SWIG_AsVal_long(obj6, &val7);
43084 if (!SWIG_IsOK(ecode7)) {
43085 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43086 }
43087 arg7 = static_cast< long >(val7);
43088 }
43089 if (obj7) {
43090 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43091 if (!SWIG_IsOK(res8)) {
43092 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43093 }
43094 if (!argp8) {
43095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43096 }
43097 arg8 = reinterpret_cast< wxValidator * >(argp8);
43098 }
43099 if (obj8) {
43100 {
43101 arg9 = wxString_in_helper(obj8);
43102 if (arg9 == NULL) SWIG_fail;
43103 temp9 = true;
43104 }
43105 }
43106 {
43107 PyThreadState* __tstate = wxPyBeginAllowThreads();
43108 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43109 wxPyEndAllowThreads(__tstate);
43110 if (PyErr_Occurred()) SWIG_fail;
43111 }
43112 {
43113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43114 }
43115 {
43116 if (temp9)
43117 delete arg9;
43118 }
43119 return resultobj;
43120fail:
43121 {
43122 if (temp9)
43123 delete arg9;
43124 }
43125 return NULL;
43126}
43127
43128
43129SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43130 PyObject *resultobj = 0;
43131 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43132 wxColour result;
43133 void *argp1 = 0 ;
43134 int res1 = 0 ;
43135 PyObject *swig_obj[1] ;
43136
43137 if (!args) SWIG_fail;
43138 swig_obj[0] = args;
43139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43140 if (!SWIG_IsOK(res1)) {
43141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43142 }
43143 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43144 {
43145 PyThreadState* __tstate = wxPyBeginAllowThreads();
43146 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43147 wxPyEndAllowThreads(__tstate);
43148 if (PyErr_Occurred()) SWIG_fail;
43149 }
43150 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43151 return resultobj;
43152fail:
43153 return NULL;
43154}
43155
43156
43157SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43158 PyObject *resultobj = 0;
43159 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43160 wxColour *arg2 = 0 ;
43161 void *argp1 = 0 ;
43162 int res1 = 0 ;
43163 wxColour temp2 ;
43164 PyObject * obj0 = 0 ;
43165 PyObject * obj1 = 0 ;
43166 char * kwnames[] = {
43167 (char *) "self",(char *) "col", NULL
43168 };
43169
43170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43172 if (!SWIG_IsOK(res1)) {
43173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43174 }
43175 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43176 {
43177 arg2 = &temp2;
43178 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43179 }
43180 {
43181 PyThreadState* __tstate = wxPyBeginAllowThreads();
43182 (arg1)->SetColour((wxColour const &)*arg2);
43183 wxPyEndAllowThreads(__tstate);
43184 if (PyErr_Occurred()) SWIG_fail;
43185 }
43186 resultobj = SWIG_Py_Void();
43187 return resultobj;
43188fail:
43189 return NULL;
43190}
43191
43192
43193SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43194 PyObject *obj;
43195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43196 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43197 return SWIG_Py_Void();
43198}
43199
43200SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43201 return SWIG_Python_InitShadowInstance(args);
43202}
43203
43204SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43205 PyObject *resultobj = 0;
43206 wxObject *arg1 = (wxObject *) 0 ;
43207 int arg2 ;
43208 wxColour *arg3 = 0 ;
43209 wxColourPickerEvent *result = 0 ;
43210 void *argp1 = 0 ;
43211 int res1 = 0 ;
43212 int val2 ;
43213 int ecode2 = 0 ;
43214 wxColour temp3 ;
43215 PyObject * obj0 = 0 ;
43216 PyObject * obj1 = 0 ;
43217 PyObject * obj2 = 0 ;
43218 char * kwnames[] = {
43219 (char *) "generator",(char *) "id",(char *) "col", NULL
43220 };
43221
43222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43224 if (!SWIG_IsOK(res1)) {
43225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43226 }
43227 arg1 = reinterpret_cast< wxObject * >(argp1);
43228 ecode2 = SWIG_AsVal_int(obj1, &val2);
43229 if (!SWIG_IsOK(ecode2)) {
43230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43231 }
43232 arg2 = static_cast< int >(val2);
43233 {
43234 arg3 = &temp3;
43235 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43236 }
43237 {
43238 PyThreadState* __tstate = wxPyBeginAllowThreads();
43239 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43240 wxPyEndAllowThreads(__tstate);
43241 if (PyErr_Occurred()) SWIG_fail;
43242 }
43243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43244 return resultobj;
43245fail:
43246 return NULL;
43247}
43248
43249
43250SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43251 PyObject *resultobj = 0;
43252 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43253 wxColour result;
43254 void *argp1 = 0 ;
43255 int res1 = 0 ;
43256 PyObject *swig_obj[1] ;
43257
43258 if (!args) SWIG_fail;
43259 swig_obj[0] = args;
43260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43261 if (!SWIG_IsOK(res1)) {
43262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43263 }
43264 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43265 {
43266 PyThreadState* __tstate = wxPyBeginAllowThreads();
43267 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43268 wxPyEndAllowThreads(__tstate);
43269 if (PyErr_Occurred()) SWIG_fail;
43270 }
43271 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43272 return resultobj;
43273fail:
43274 return NULL;
43275}
43276
43277
43278SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43279 PyObject *resultobj = 0;
43280 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43281 wxColour *arg2 = 0 ;
43282 void *argp1 = 0 ;
43283 int res1 = 0 ;
43284 wxColour temp2 ;
43285 PyObject * obj0 = 0 ;
43286 PyObject * obj1 = 0 ;
43287 char * kwnames[] = {
43288 (char *) "self",(char *) "c", NULL
43289 };
43290
43291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43293 if (!SWIG_IsOK(res1)) {
43294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43295 }
43296 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43297 {
43298 arg2 = &temp2;
43299 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43300 }
43301 {
43302 PyThreadState* __tstate = wxPyBeginAllowThreads();
43303 (arg1)->SetColour((wxColour const &)*arg2);
43304 wxPyEndAllowThreads(__tstate);
43305 if (PyErr_Occurred()) SWIG_fail;
43306 }
43307 resultobj = SWIG_Py_Void();
43308 return resultobj;
43309fail:
43310 return NULL;
43311}
43312
43313
43314SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43315 PyObject *obj;
43316 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43317 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43318 return SWIG_Py_Void();
43319}
43320
43321SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43322 return SWIG_Python_InitShadowInstance(args);
43323}
43324
43325SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43326 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43327 return 1;
43328}
43329
43330
43331SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43332 PyObject *pyobj = 0;
43333
43334 {
43335#if wxUSE_UNICODE
43336 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43337#else
43338 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43339#endif
43340 }
43341 return pyobj;
43342}
43343
43344
43345SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43346 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43347 return 1;
43348}
43349
43350
43351SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43352 PyObject *pyobj = 0;
43353
43354 {
43355#if wxUSE_UNICODE
43356 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43357#else
43358 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43359#endif
43360 }
43361 return pyobj;
43362}
43363
43364
43365SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43366 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43367 return 1;
43368}
43369
43370
43371SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43372 PyObject *pyobj = 0;
43373
43374 {
43375#if wxUSE_UNICODE
43376 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43377#else
43378 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43379#endif
43380 }
43381 return pyobj;
43382}
43383
43384
43385SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43386 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43387 return 1;
43388}
43389
43390
43391SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43392 PyObject *pyobj = 0;
43393
43394 {
43395#if wxUSE_UNICODE
43396 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43397#else
43398 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43399#endif
43400 }
43401 return pyobj;
43402}
43403
43404
43405SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43406 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43407 return 1;
43408}
43409
43410
43411SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43412 PyObject *pyobj = 0;
43413
43414 {
43415#if wxUSE_UNICODE
43416 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43417#else
43418 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43419#endif
43420 }
43421 return pyobj;
43422}
43423
43424
43425SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43426 PyObject *resultobj = 0;
43427 wxWindow *arg1 = (wxWindow *) 0 ;
43428 int arg2 = (int) -1 ;
43429 wxString const &arg3_defvalue = wxPyEmptyString ;
43430 wxString *arg3 = (wxString *) &arg3_defvalue ;
43431 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43432 wxString *arg4 = (wxString *) &arg4_defvalue ;
43433 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43434 wxString *arg5 = (wxString *) &arg5_defvalue ;
43435 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43436 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43437 wxSize const &arg7_defvalue = wxDefaultSize ;
43438 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43439 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43440 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43441 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43442 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43443 wxString *arg10 = (wxString *) &arg10_defvalue ;
43444 wxFilePickerCtrl *result = 0 ;
43445 void *argp1 = 0 ;
43446 int res1 = 0 ;
43447 int val2 ;
43448 int ecode2 = 0 ;
43449 bool temp3 = false ;
43450 bool temp4 = false ;
43451 bool temp5 = false ;
43452 wxPoint temp6 ;
43453 wxSize temp7 ;
43454 long val8 ;
43455 int ecode8 = 0 ;
43456 void *argp9 = 0 ;
43457 int res9 = 0 ;
43458 bool temp10 = false ;
43459 PyObject * obj0 = 0 ;
43460 PyObject * obj1 = 0 ;
43461 PyObject * obj2 = 0 ;
43462 PyObject * obj3 = 0 ;
43463 PyObject * obj4 = 0 ;
43464 PyObject * obj5 = 0 ;
43465 PyObject * obj6 = 0 ;
43466 PyObject * obj7 = 0 ;
43467 PyObject * obj8 = 0 ;
43468 PyObject * obj9 = 0 ;
43469 char * kwnames[] = {
43470 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43471 };
43472
43473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43475 if (!SWIG_IsOK(res1)) {
43476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43477 }
43478 arg1 = reinterpret_cast< wxWindow * >(argp1);
43479 if (obj1) {
43480 ecode2 = SWIG_AsVal_int(obj1, &val2);
43481 if (!SWIG_IsOK(ecode2)) {
43482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43483 }
43484 arg2 = static_cast< int >(val2);
43485 }
43486 if (obj2) {
43487 {
43488 arg3 = wxString_in_helper(obj2);
43489 if (arg3 == NULL) SWIG_fail;
43490 temp3 = true;
43491 }
43492 }
43493 if (obj3) {
43494 {
43495 arg4 = wxString_in_helper(obj3);
43496 if (arg4 == NULL) SWIG_fail;
43497 temp4 = true;
43498 }
43499 }
43500 if (obj4) {
43501 {
43502 arg5 = wxString_in_helper(obj4);
43503 if (arg5 == NULL) SWIG_fail;
43504 temp5 = true;
43505 }
43506 }
43507 if (obj5) {
43508 {
43509 arg6 = &temp6;
43510 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43511 }
43512 }
43513 if (obj6) {
43514 {
43515 arg7 = &temp7;
43516 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43517 }
43518 }
43519 if (obj7) {
43520 ecode8 = SWIG_AsVal_long(obj7, &val8);
43521 if (!SWIG_IsOK(ecode8)) {
43522 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43523 }
43524 arg8 = static_cast< long >(val8);
43525 }
43526 if (obj8) {
43527 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43528 if (!SWIG_IsOK(res9)) {
43529 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43530 }
43531 if (!argp9) {
43532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43533 }
43534 arg9 = reinterpret_cast< wxValidator * >(argp9);
43535 }
43536 if (obj9) {
43537 {
43538 arg10 = wxString_in_helper(obj9);
43539 if (arg10 == NULL) SWIG_fail;
43540 temp10 = true;
43541 }
43542 }
43543 {
43544 if (!wxPyCheckForApp()) SWIG_fail;
43545 PyThreadState* __tstate = wxPyBeginAllowThreads();
43546 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);
43547 wxPyEndAllowThreads(__tstate);
43548 if (PyErr_Occurred()) SWIG_fail;
43549 }
43550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43551 {
43552 if (temp3)
43553 delete arg3;
43554 }
43555 {
43556 if (temp4)
43557 delete arg4;
43558 }
43559 {
43560 if (temp5)
43561 delete arg5;
43562 }
43563 {
43564 if (temp10)
43565 delete arg10;
43566 }
43567 return resultobj;
43568fail:
43569 {
43570 if (temp3)
43571 delete arg3;
43572 }
43573 {
43574 if (temp4)
43575 delete arg4;
43576 }
43577 {
43578 if (temp5)
43579 delete arg5;
43580 }
43581 {
43582 if (temp10)
43583 delete arg10;
43584 }
43585 return NULL;
43586}
43587
43588
43589SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43590 PyObject *resultobj = 0;
43591 wxFilePickerCtrl *result = 0 ;
43592
43593 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43594 {
43595 if (!wxPyCheckForApp()) SWIG_fail;
43596 PyThreadState* __tstate = wxPyBeginAllowThreads();
43597 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43598 wxPyEndAllowThreads(__tstate);
43599 if (PyErr_Occurred()) SWIG_fail;
43600 }
43601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43602 return resultobj;
43603fail:
43604 return NULL;
43605}
43606
43607
43608SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43609 PyObject *resultobj = 0;
43610 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43611 wxWindow *arg2 = (wxWindow *) 0 ;
43612 int arg3 = (int) -1 ;
43613 wxString const &arg4_defvalue = wxPyEmptyString ;
43614 wxString *arg4 = (wxString *) &arg4_defvalue ;
43615 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43616 wxString *arg5 = (wxString *) &arg5_defvalue ;
43617 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43618 wxString *arg6 = (wxString *) &arg6_defvalue ;
43619 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43620 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43621 wxSize const &arg8_defvalue = wxDefaultSize ;
43622 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43623 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43624 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43625 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43626 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43627 wxString *arg11 = (wxString *) &arg11_defvalue ;
43628 bool result;
43629 void *argp1 = 0 ;
43630 int res1 = 0 ;
43631 void *argp2 = 0 ;
43632 int res2 = 0 ;
43633 int val3 ;
43634 int ecode3 = 0 ;
43635 bool temp4 = false ;
43636 bool temp5 = false ;
43637 bool temp6 = false ;
43638 wxPoint temp7 ;
43639 wxSize temp8 ;
43640 long val9 ;
43641 int ecode9 = 0 ;
43642 void *argp10 = 0 ;
43643 int res10 = 0 ;
43644 bool temp11 = false ;
43645 PyObject * obj0 = 0 ;
43646 PyObject * obj1 = 0 ;
43647 PyObject * obj2 = 0 ;
43648 PyObject * obj3 = 0 ;
43649 PyObject * obj4 = 0 ;
43650 PyObject * obj5 = 0 ;
43651 PyObject * obj6 = 0 ;
43652 PyObject * obj7 = 0 ;
43653 PyObject * obj8 = 0 ;
43654 PyObject * obj9 = 0 ;
43655 PyObject * obj10 = 0 ;
43656 char * kwnames[] = {
43657 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43658 };
43659
43660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43662 if (!SWIG_IsOK(res1)) {
43663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43664 }
43665 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43666 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43667 if (!SWIG_IsOK(res2)) {
43668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43669 }
43670 arg2 = reinterpret_cast< wxWindow * >(argp2);
43671 if (obj2) {
43672 ecode3 = SWIG_AsVal_int(obj2, &val3);
43673 if (!SWIG_IsOK(ecode3)) {
43674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43675 }
43676 arg3 = static_cast< int >(val3);
43677 }
43678 if (obj3) {
43679 {
43680 arg4 = wxString_in_helper(obj3);
43681 if (arg4 == NULL) SWIG_fail;
43682 temp4 = true;
43683 }
43684 }
43685 if (obj4) {
43686 {
43687 arg5 = wxString_in_helper(obj4);
43688 if (arg5 == NULL) SWIG_fail;
43689 temp5 = true;
43690 }
43691 }
43692 if (obj5) {
43693 {
43694 arg6 = wxString_in_helper(obj5);
43695 if (arg6 == NULL) SWIG_fail;
43696 temp6 = true;
43697 }
43698 }
43699 if (obj6) {
43700 {
43701 arg7 = &temp7;
43702 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43703 }
43704 }
43705 if (obj7) {
43706 {
43707 arg8 = &temp8;
43708 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43709 }
43710 }
43711 if (obj8) {
43712 ecode9 = SWIG_AsVal_long(obj8, &val9);
43713 if (!SWIG_IsOK(ecode9)) {
43714 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43715 }
43716 arg9 = static_cast< long >(val9);
43717 }
43718 if (obj9) {
43719 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43720 if (!SWIG_IsOK(res10)) {
43721 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43722 }
43723 if (!argp10) {
43724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43725 }
43726 arg10 = reinterpret_cast< wxValidator * >(argp10);
43727 }
43728 if (obj10) {
43729 {
43730 arg11 = wxString_in_helper(obj10);
43731 if (arg11 == NULL) SWIG_fail;
43732 temp11 = true;
43733 }
43734 }
43735 {
43736 PyThreadState* __tstate = wxPyBeginAllowThreads();
43737 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);
43738 wxPyEndAllowThreads(__tstate);
43739 if (PyErr_Occurred()) SWIG_fail;
43740 }
43741 {
43742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43743 }
43744 {
43745 if (temp4)
43746 delete arg4;
43747 }
43748 {
43749 if (temp5)
43750 delete arg5;
43751 }
43752 {
43753 if (temp6)
43754 delete arg6;
43755 }
43756 {
43757 if (temp11)
43758 delete arg11;
43759 }
43760 return resultobj;
43761fail:
43762 {
43763 if (temp4)
43764 delete arg4;
43765 }
43766 {
43767 if (temp5)
43768 delete arg5;
43769 }
43770 {
43771 if (temp6)
43772 delete arg6;
43773 }
43774 {
43775 if (temp11)
43776 delete arg11;
43777 }
43778 return NULL;
43779}
43780
43781
43782SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43783 PyObject *resultobj = 0;
43784 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43785 wxString result;
43786 void *argp1 = 0 ;
43787 int res1 = 0 ;
43788 PyObject *swig_obj[1] ;
43789
43790 if (!args) SWIG_fail;
43791 swig_obj[0] = args;
43792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43793 if (!SWIG_IsOK(res1)) {
43794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43795 }
43796 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43797 {
43798 PyThreadState* __tstate = wxPyBeginAllowThreads();
43799 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43800 wxPyEndAllowThreads(__tstate);
43801 if (PyErr_Occurred()) SWIG_fail;
43802 }
43803 {
43804#if wxUSE_UNICODE
43805 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43806#else
43807 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43808#endif
43809 }
43810 return resultobj;
43811fail:
43812 return NULL;
43813}
43814
43815
43816SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43817 PyObject *resultobj = 0;
43818 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43819 wxString *arg2 = 0 ;
43820 void *argp1 = 0 ;
43821 int res1 = 0 ;
43822 bool temp2 = false ;
43823 PyObject * obj0 = 0 ;
43824 PyObject * obj1 = 0 ;
43825 char * kwnames[] = {
43826 (char *) "self",(char *) "str", NULL
43827 };
43828
43829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43831 if (!SWIG_IsOK(res1)) {
43832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43833 }
43834 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43835 {
43836 arg2 = wxString_in_helper(obj1);
43837 if (arg2 == NULL) SWIG_fail;
43838 temp2 = true;
43839 }
43840 {
43841 PyThreadState* __tstate = wxPyBeginAllowThreads();
43842 (arg1)->SetPath((wxString const &)*arg2);
43843 wxPyEndAllowThreads(__tstate);
43844 if (PyErr_Occurred()) SWIG_fail;
43845 }
43846 resultobj = SWIG_Py_Void();
43847 {
43848 if (temp2)
43849 delete arg2;
43850 }
43851 return resultobj;
43852fail:
43853 {
43854 if (temp2)
43855 delete arg2;
43856 }
43857 return NULL;
43858}
43859
43860
b02396e8
RD
43861SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43862 PyObject *resultobj = 0;
43863 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43864 wxString *arg2 = 0 ;
43865 bool result;
43866 void *argp1 = 0 ;
43867 int res1 = 0 ;
43868 bool temp2 = false ;
43869 PyObject * obj0 = 0 ;
43870 PyObject * obj1 = 0 ;
43871 char * kwnames[] = {
43872 (char *) "self",(char *) "path", NULL
43873 };
43874
43875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43877 if (!SWIG_IsOK(res1)) {
43878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43879 }
43880 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43881 {
43882 arg2 = wxString_in_helper(obj1);
43883 if (arg2 == NULL) SWIG_fail;
43884 temp2 = true;
43885 }
43886 {
43887 PyThreadState* __tstate = wxPyBeginAllowThreads();
43888 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43889 wxPyEndAllowThreads(__tstate);
43890 if (PyErr_Occurred()) SWIG_fail;
43891 }
43892 {
43893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43894 }
43895 {
43896 if (temp2)
43897 delete arg2;
43898 }
43899 return resultobj;
43900fail:
43901 {
43902 if (temp2)
43903 delete arg2;
43904 }
43905 return NULL;
43906}
43907
43908
43909SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43910 PyObject *resultobj = 0;
43911 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43912 wxString result;
43913 void *argp1 = 0 ;
43914 int res1 = 0 ;
43915 PyObject *swig_obj[1] ;
43916
43917 if (!args) SWIG_fail;
43918 swig_obj[0] = args;
43919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43920 if (!SWIG_IsOK(res1)) {
43921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43922 }
43923 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43924 {
43925 PyThreadState* __tstate = wxPyBeginAllowThreads();
43926 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43927 wxPyEndAllowThreads(__tstate);
43928 if (PyErr_Occurred()) SWIG_fail;
43929 }
43930 {
43931#if wxUSE_UNICODE
43932 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43933#else
43934 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43935#endif
43936 }
43937 return resultobj;
43938fail:
43939 return NULL;
43940}
43941
43942
b850e7f3
RD
43943SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43944 PyObject *obj;
43945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43946 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43947 return SWIG_Py_Void();
43948}
43949
43950SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43951 return SWIG_Python_InitShadowInstance(args);
43952}
43953
43954SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43955 PyObject *resultobj = 0;
43956 wxWindow *arg1 = (wxWindow *) 0 ;
43957 int arg2 = (int) -1 ;
43958 wxString const &arg3_defvalue = wxPyEmptyString ;
43959 wxString *arg3 = (wxString *) &arg3_defvalue ;
43960 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43961 wxString *arg4 = (wxString *) &arg4_defvalue ;
43962 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43963 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43964 wxSize const &arg6_defvalue = wxDefaultSize ;
43965 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43966 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43967 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43968 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43969 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43970 wxString *arg9 = (wxString *) &arg9_defvalue ;
43971 wxDirPickerCtrl *result = 0 ;
43972 void *argp1 = 0 ;
43973 int res1 = 0 ;
43974 int val2 ;
43975 int ecode2 = 0 ;
43976 bool temp3 = false ;
43977 bool temp4 = false ;
43978 wxPoint temp5 ;
43979 wxSize temp6 ;
43980 long val7 ;
43981 int ecode7 = 0 ;
43982 void *argp8 = 0 ;
43983 int res8 = 0 ;
43984 bool temp9 = false ;
43985 PyObject * obj0 = 0 ;
43986 PyObject * obj1 = 0 ;
43987 PyObject * obj2 = 0 ;
43988 PyObject * obj3 = 0 ;
43989 PyObject * obj4 = 0 ;
43990 PyObject * obj5 = 0 ;
43991 PyObject * obj6 = 0 ;
43992 PyObject * obj7 = 0 ;
43993 PyObject * obj8 = 0 ;
43994 char * kwnames[] = {
43995 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43996 };
43997
43998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44000 if (!SWIG_IsOK(res1)) {
44001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44002 }
44003 arg1 = reinterpret_cast< wxWindow * >(argp1);
44004 if (obj1) {
44005 ecode2 = SWIG_AsVal_int(obj1, &val2);
44006 if (!SWIG_IsOK(ecode2)) {
44007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44008 }
44009 arg2 = static_cast< int >(val2);
44010 }
44011 if (obj2) {
44012 {
44013 arg3 = wxString_in_helper(obj2);
44014 if (arg3 == NULL) SWIG_fail;
44015 temp3 = true;
44016 }
44017 }
44018 if (obj3) {
44019 {
44020 arg4 = wxString_in_helper(obj3);
44021 if (arg4 == NULL) SWIG_fail;
44022 temp4 = true;
44023 }
44024 }
44025 if (obj4) {
44026 {
44027 arg5 = &temp5;
44028 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44029 }
44030 }
44031 if (obj5) {
44032 {
44033 arg6 = &temp6;
44034 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44035 }
44036 }
44037 if (obj6) {
44038 ecode7 = SWIG_AsVal_long(obj6, &val7);
44039 if (!SWIG_IsOK(ecode7)) {
44040 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44041 }
44042 arg7 = static_cast< long >(val7);
44043 }
44044 if (obj7) {
44045 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44046 if (!SWIG_IsOK(res8)) {
44047 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44048 }
44049 if (!argp8) {
44050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44051 }
44052 arg8 = reinterpret_cast< wxValidator * >(argp8);
44053 }
44054 if (obj8) {
44055 {
44056 arg9 = wxString_in_helper(obj8);
44057 if (arg9 == NULL) SWIG_fail;
44058 temp9 = true;
44059 }
44060 }
44061 {
44062 if (!wxPyCheckForApp()) SWIG_fail;
44063 PyThreadState* __tstate = wxPyBeginAllowThreads();
44064 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);
44065 wxPyEndAllowThreads(__tstate);
44066 if (PyErr_Occurred()) SWIG_fail;
44067 }
44068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44069 {
44070 if (temp3)
44071 delete arg3;
44072 }
44073 {
44074 if (temp4)
44075 delete arg4;
44076 }
44077 {
44078 if (temp9)
44079 delete arg9;
44080 }
44081 return resultobj;
44082fail:
44083 {
44084 if (temp3)
44085 delete arg3;
44086 }
44087 {
44088 if (temp4)
44089 delete arg4;
44090 }
44091 {
44092 if (temp9)
44093 delete arg9;
44094 }
44095 return NULL;
44096}
44097
44098
44099SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44100 PyObject *resultobj = 0;
44101 wxDirPickerCtrl *result = 0 ;
44102
44103 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44104 {
44105 if (!wxPyCheckForApp()) SWIG_fail;
44106 PyThreadState* __tstate = wxPyBeginAllowThreads();
44107 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44108 wxPyEndAllowThreads(__tstate);
44109 if (PyErr_Occurred()) SWIG_fail;
44110 }
44111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44112 return resultobj;
44113fail:
44114 return NULL;
44115}
44116
44117
44118SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44119 PyObject *resultobj = 0;
44120 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44121 wxWindow *arg2 = (wxWindow *) 0 ;
44122 int arg3 = (int) -1 ;
44123 wxString const &arg4_defvalue = wxPyEmptyString ;
44124 wxString *arg4 = (wxString *) &arg4_defvalue ;
44125 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44126 wxString *arg5 = (wxString *) &arg5_defvalue ;
44127 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44128 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44129 wxSize const &arg7_defvalue = wxDefaultSize ;
44130 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44131 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44132 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44133 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44134 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44135 wxString *arg10 = (wxString *) &arg10_defvalue ;
44136 bool result;
44137 void *argp1 = 0 ;
44138 int res1 = 0 ;
44139 void *argp2 = 0 ;
44140 int res2 = 0 ;
44141 int val3 ;
44142 int ecode3 = 0 ;
44143 bool temp4 = false ;
44144 bool temp5 = false ;
44145 wxPoint temp6 ;
44146 wxSize temp7 ;
44147 long val8 ;
44148 int ecode8 = 0 ;
44149 void *argp9 = 0 ;
44150 int res9 = 0 ;
44151 bool temp10 = false ;
44152 PyObject * obj0 = 0 ;
44153 PyObject * obj1 = 0 ;
44154 PyObject * obj2 = 0 ;
44155 PyObject * obj3 = 0 ;
44156 PyObject * obj4 = 0 ;
44157 PyObject * obj5 = 0 ;
44158 PyObject * obj6 = 0 ;
44159 PyObject * obj7 = 0 ;
44160 PyObject * obj8 = 0 ;
44161 PyObject * obj9 = 0 ;
44162 char * kwnames[] = {
44163 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44164 };
44165
44166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44168 if (!SWIG_IsOK(res1)) {
44169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44170 }
44171 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44172 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44173 if (!SWIG_IsOK(res2)) {
44174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44175 }
44176 arg2 = reinterpret_cast< wxWindow * >(argp2);
44177 if (obj2) {
44178 ecode3 = SWIG_AsVal_int(obj2, &val3);
44179 if (!SWIG_IsOK(ecode3)) {
44180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44181 }
44182 arg3 = static_cast< int >(val3);
44183 }
44184 if (obj3) {
44185 {
44186 arg4 = wxString_in_helper(obj3);
44187 if (arg4 == NULL) SWIG_fail;
44188 temp4 = true;
44189 }
44190 }
44191 if (obj4) {
44192 {
44193 arg5 = wxString_in_helper(obj4);
44194 if (arg5 == NULL) SWIG_fail;
44195 temp5 = true;
44196 }
44197 }
44198 if (obj5) {
44199 {
44200 arg6 = &temp6;
44201 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44202 }
44203 }
44204 if (obj6) {
44205 {
44206 arg7 = &temp7;
44207 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44208 }
44209 }
44210 if (obj7) {
44211 ecode8 = SWIG_AsVal_long(obj7, &val8);
44212 if (!SWIG_IsOK(ecode8)) {
44213 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44214 }
44215 arg8 = static_cast< long >(val8);
44216 }
44217 if (obj8) {
44218 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44219 if (!SWIG_IsOK(res9)) {
44220 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44221 }
44222 if (!argp9) {
44223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44224 }
44225 arg9 = reinterpret_cast< wxValidator * >(argp9);
44226 }
44227 if (obj9) {
44228 {
44229 arg10 = wxString_in_helper(obj9);
44230 if (arg10 == NULL) SWIG_fail;
44231 temp10 = true;
44232 }
44233 }
44234 {
44235 PyThreadState* __tstate = wxPyBeginAllowThreads();
44236 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);
44237 wxPyEndAllowThreads(__tstate);
44238 if (PyErr_Occurred()) SWIG_fail;
44239 }
44240 {
44241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44242 }
44243 {
44244 if (temp4)
44245 delete arg4;
44246 }
44247 {
44248 if (temp5)
44249 delete arg5;
44250 }
44251 {
44252 if (temp10)
44253 delete arg10;
44254 }
44255 return resultobj;
44256fail:
44257 {
44258 if (temp4)
44259 delete arg4;
44260 }
44261 {
44262 if (temp5)
44263 delete arg5;
44264 }
44265 {
44266 if (temp10)
44267 delete arg10;
44268 }
44269 return NULL;
44270}
44271
44272
44273SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44274 PyObject *resultobj = 0;
44275 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44276 wxString result;
44277 void *argp1 = 0 ;
44278 int res1 = 0 ;
44279 PyObject *swig_obj[1] ;
44280
44281 if (!args) SWIG_fail;
44282 swig_obj[0] = args;
44283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44284 if (!SWIG_IsOK(res1)) {
44285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44286 }
44287 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44288 {
44289 PyThreadState* __tstate = wxPyBeginAllowThreads();
44290 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44291 wxPyEndAllowThreads(__tstate);
44292 if (PyErr_Occurred()) SWIG_fail;
44293 }
44294 {
44295#if wxUSE_UNICODE
44296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44297#else
44298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44299#endif
44300 }
44301 return resultobj;
44302fail:
44303 return NULL;
44304}
44305
44306
44307SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44308 PyObject *resultobj = 0;
44309 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44310 wxString *arg2 = 0 ;
44311 void *argp1 = 0 ;
44312 int res1 = 0 ;
44313 bool temp2 = false ;
44314 PyObject * obj0 = 0 ;
44315 PyObject * obj1 = 0 ;
44316 char * kwnames[] = {
44317 (char *) "self",(char *) "str", NULL
44318 };
44319
44320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44322 if (!SWIG_IsOK(res1)) {
44323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44324 }
44325 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44326 {
44327 arg2 = wxString_in_helper(obj1);
44328 if (arg2 == NULL) SWIG_fail;
44329 temp2 = true;
44330 }
44331 {
44332 PyThreadState* __tstate = wxPyBeginAllowThreads();
44333 (arg1)->SetPath((wxString const &)*arg2);
44334 wxPyEndAllowThreads(__tstate);
44335 if (PyErr_Occurred()) SWIG_fail;
44336 }
44337 resultobj = SWIG_Py_Void();
44338 {
44339 if (temp2)
44340 delete arg2;
44341 }
44342 return resultobj;
44343fail:
44344 {
44345 if (temp2)
44346 delete arg2;
44347 }
44348 return NULL;
44349}
44350
44351
b02396e8
RD
44352SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44353 PyObject *resultobj = 0;
44354 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44355 wxString *arg2 = 0 ;
44356 bool result;
44357 void *argp1 = 0 ;
44358 int res1 = 0 ;
44359 bool temp2 = false ;
44360 PyObject * obj0 = 0 ;
44361 PyObject * obj1 = 0 ;
44362 char * kwnames[] = {
44363 (char *) "self",(char *) "path", NULL
44364 };
44365
44366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44368 if (!SWIG_IsOK(res1)) {
44369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44370 }
44371 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44372 {
44373 arg2 = wxString_in_helper(obj1);
44374 if (arg2 == NULL) SWIG_fail;
44375 temp2 = true;
44376 }
44377 {
44378 PyThreadState* __tstate = wxPyBeginAllowThreads();
44379 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44380 wxPyEndAllowThreads(__tstate);
44381 if (PyErr_Occurred()) SWIG_fail;
44382 }
44383 {
44384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44385 }
44386 {
44387 if (temp2)
44388 delete arg2;
44389 }
44390 return resultobj;
44391fail:
44392 {
44393 if (temp2)
44394 delete arg2;
44395 }
44396 return NULL;
44397}
44398
44399
44400SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44401 PyObject *resultobj = 0;
44402 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44403 wxString result;
44404 void *argp1 = 0 ;
44405 int res1 = 0 ;
44406 PyObject *swig_obj[1] ;
44407
44408 if (!args) SWIG_fail;
44409 swig_obj[0] = args;
44410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44411 if (!SWIG_IsOK(res1)) {
44412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44413 }
44414 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44415 {
44416 PyThreadState* __tstate = wxPyBeginAllowThreads();
44417 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44418 wxPyEndAllowThreads(__tstate);
44419 if (PyErr_Occurred()) SWIG_fail;
44420 }
44421 {
44422#if wxUSE_UNICODE
44423 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44424#else
44425 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44426#endif
44427 }
44428 return resultobj;
44429fail:
44430 return NULL;
44431}
44432
44433
b850e7f3
RD
44434SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44435 PyObject *obj;
44436 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44437 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44438 return SWIG_Py_Void();
44439}
44440
44441SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44442 return SWIG_Python_InitShadowInstance(args);
44443}
44444
44445SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44446 PyObject *resultobj = 0;
44447 wxEventType arg1 ;
44448 wxObject *arg2 = (wxObject *) 0 ;
44449 int arg3 ;
44450 wxString *arg4 = 0 ;
44451 wxFileDirPickerEvent *result = 0 ;
44452 int val1 ;
44453 int ecode1 = 0 ;
44454 void *argp2 = 0 ;
44455 int res2 = 0 ;
44456 int val3 ;
44457 int ecode3 = 0 ;
44458 bool temp4 = false ;
44459 PyObject * obj0 = 0 ;
44460 PyObject * obj1 = 0 ;
44461 PyObject * obj2 = 0 ;
44462 PyObject * obj3 = 0 ;
44463 char * kwnames[] = {
44464 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44465 };
44466
44467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44468 ecode1 = SWIG_AsVal_int(obj0, &val1);
44469 if (!SWIG_IsOK(ecode1)) {
44470 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44471 }
44472 arg1 = static_cast< wxEventType >(val1);
44473 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44474 if (!SWIG_IsOK(res2)) {
44475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44476 }
44477 arg2 = reinterpret_cast< wxObject * >(argp2);
44478 ecode3 = SWIG_AsVal_int(obj2, &val3);
44479 if (!SWIG_IsOK(ecode3)) {
44480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44481 }
44482 arg3 = static_cast< int >(val3);
44483 {
44484 arg4 = wxString_in_helper(obj3);
44485 if (arg4 == NULL) SWIG_fail;
44486 temp4 = true;
44487 }
44488 {
44489 PyThreadState* __tstate = wxPyBeginAllowThreads();
44490 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44491 wxPyEndAllowThreads(__tstate);
44492 if (PyErr_Occurred()) SWIG_fail;
44493 }
44494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44495 {
44496 if (temp4)
44497 delete arg4;
44498 }
44499 return resultobj;
44500fail:
44501 {
44502 if (temp4)
44503 delete arg4;
44504 }
44505 return NULL;
44506}
44507
44508
44509SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44510 PyObject *resultobj = 0;
44511 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44512 wxString result;
44513 void *argp1 = 0 ;
44514 int res1 = 0 ;
44515 PyObject *swig_obj[1] ;
44516
44517 if (!args) SWIG_fail;
44518 swig_obj[0] = args;
44519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44520 if (!SWIG_IsOK(res1)) {
44521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44522 }
44523 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44524 {
44525 PyThreadState* __tstate = wxPyBeginAllowThreads();
44526 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44527 wxPyEndAllowThreads(__tstate);
44528 if (PyErr_Occurred()) SWIG_fail;
44529 }
44530 {
44531#if wxUSE_UNICODE
44532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44533#else
44534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44535#endif
44536 }
44537 return resultobj;
44538fail:
44539 return NULL;
44540}
44541
44542
44543SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44544 PyObject *resultobj = 0;
44545 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44546 wxString *arg2 = 0 ;
44547 void *argp1 = 0 ;
44548 int res1 = 0 ;
44549 bool temp2 = false ;
44550 PyObject * obj0 = 0 ;
44551 PyObject * obj1 = 0 ;
44552 char * kwnames[] = {
44553 (char *) "self",(char *) "p", NULL
44554 };
44555
44556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44558 if (!SWIG_IsOK(res1)) {
44559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44560 }
44561 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44562 {
44563 arg2 = wxString_in_helper(obj1);
44564 if (arg2 == NULL) SWIG_fail;
44565 temp2 = true;
44566 }
44567 {
44568 PyThreadState* __tstate = wxPyBeginAllowThreads();
44569 (arg1)->SetPath((wxString const &)*arg2);
44570 wxPyEndAllowThreads(__tstate);
44571 if (PyErr_Occurred()) SWIG_fail;
44572 }
44573 resultobj = SWIG_Py_Void();
44574 {
44575 if (temp2)
44576 delete arg2;
44577 }
44578 return resultobj;
44579fail:
44580 {
44581 if (temp2)
44582 delete arg2;
44583 }
44584 return NULL;
44585}
44586
44587
44588SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44589 PyObject *obj;
44590 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44591 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44592 return SWIG_Py_Void();
44593}
44594
44595SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44596 return SWIG_Python_InitShadowInstance(args);
44597}
44598
44599SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44600 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44601 return 1;
44602}
44603
44604
44605SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44606 PyObject *pyobj = 0;
44607
44608 {
44609#if wxUSE_UNICODE
44610 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44611#else
44612 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44613#endif
44614 }
44615 return pyobj;
44616}
44617
44618
44619SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44620 PyObject *resultobj = 0;
44621 wxWindow *arg1 = (wxWindow *) 0 ;
44622 int arg2 = (int) -1 ;
44623 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44624 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44625 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44626 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44627 wxSize const &arg5_defvalue = wxDefaultSize ;
44628 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44629 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44630 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44631 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44632 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44633 wxString *arg8 = (wxString *) &arg8_defvalue ;
44634 wxFontPickerCtrl *result = 0 ;
44635 void *argp1 = 0 ;
44636 int res1 = 0 ;
44637 int val2 ;
44638 int ecode2 = 0 ;
44639 void *argp3 = 0 ;
44640 int res3 = 0 ;
44641 wxPoint temp4 ;
44642 wxSize temp5 ;
44643 long val6 ;
44644 int ecode6 = 0 ;
44645 void *argp7 = 0 ;
44646 int res7 = 0 ;
44647 bool temp8 = false ;
44648 PyObject * obj0 = 0 ;
44649 PyObject * obj1 = 0 ;
44650 PyObject * obj2 = 0 ;
44651 PyObject * obj3 = 0 ;
44652 PyObject * obj4 = 0 ;
44653 PyObject * obj5 = 0 ;
44654 PyObject * obj6 = 0 ;
44655 PyObject * obj7 = 0 ;
44656 char * kwnames[] = {
44657 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44658 };
44659
44660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44662 if (!SWIG_IsOK(res1)) {
44663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44664 }
44665 arg1 = reinterpret_cast< wxWindow * >(argp1);
44666 if (obj1) {
44667 ecode2 = SWIG_AsVal_int(obj1, &val2);
44668 if (!SWIG_IsOK(ecode2)) {
44669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44670 }
44671 arg2 = static_cast< int >(val2);
44672 }
44673 if (obj2) {
44674 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44675 if (!SWIG_IsOK(res3)) {
44676 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44677 }
44678 if (!argp3) {
44679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44680 }
44681 arg3 = reinterpret_cast< wxFont * >(argp3);
44682 }
44683 if (obj3) {
44684 {
44685 arg4 = &temp4;
44686 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44687 }
44688 }
44689 if (obj4) {
44690 {
44691 arg5 = &temp5;
44692 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44693 }
44694 }
44695 if (obj5) {
44696 ecode6 = SWIG_AsVal_long(obj5, &val6);
44697 if (!SWIG_IsOK(ecode6)) {
44698 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44699 }
44700 arg6 = static_cast< long >(val6);
44701 }
44702 if (obj6) {
44703 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44704 if (!SWIG_IsOK(res7)) {
44705 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44706 }
44707 if (!argp7) {
44708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44709 }
44710 arg7 = reinterpret_cast< wxValidator * >(argp7);
44711 }
44712 if (obj7) {
44713 {
44714 arg8 = wxString_in_helper(obj7);
44715 if (arg8 == NULL) SWIG_fail;
44716 temp8 = true;
44717 }
44718 }
44719 {
44720 if (!wxPyCheckForApp()) SWIG_fail;
44721 PyThreadState* __tstate = wxPyBeginAllowThreads();
44722 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44723 wxPyEndAllowThreads(__tstate);
44724 if (PyErr_Occurred()) SWIG_fail;
44725 }
44726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44727 {
44728 if (temp8)
44729 delete arg8;
44730 }
44731 return resultobj;
44732fail:
44733 {
44734 if (temp8)
44735 delete arg8;
44736 }
44737 return NULL;
44738}
44739
44740
44741SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44742 PyObject *resultobj = 0;
44743 wxFontPickerCtrl *result = 0 ;
44744
44745 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44746 {
44747 if (!wxPyCheckForApp()) SWIG_fail;
44748 PyThreadState* __tstate = wxPyBeginAllowThreads();
44749 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44750 wxPyEndAllowThreads(__tstate);
44751 if (PyErr_Occurred()) SWIG_fail;
44752 }
44753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44754 return resultobj;
44755fail:
44756 return NULL;
44757}
44758
44759
44760SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44761 PyObject *resultobj = 0;
44762 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44763 wxWindow *arg2 = (wxWindow *) 0 ;
44764 int arg3 = (int) -1 ;
44765 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44766 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44767 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44768 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44769 wxSize const &arg6_defvalue = wxDefaultSize ;
44770 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44771 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44772 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44773 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44774 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44775 wxString *arg9 = (wxString *) &arg9_defvalue ;
44776 bool result;
44777 void *argp1 = 0 ;
44778 int res1 = 0 ;
44779 void *argp2 = 0 ;
44780 int res2 = 0 ;
44781 int val3 ;
44782 int ecode3 = 0 ;
44783 void *argp4 = 0 ;
44784 int res4 = 0 ;
44785 wxPoint temp5 ;
44786 wxSize temp6 ;
44787 long val7 ;
44788 int ecode7 = 0 ;
44789 void *argp8 = 0 ;
44790 int res8 = 0 ;
44791 bool temp9 = false ;
44792 PyObject * obj0 = 0 ;
44793 PyObject * obj1 = 0 ;
44794 PyObject * obj2 = 0 ;
44795 PyObject * obj3 = 0 ;
44796 PyObject * obj4 = 0 ;
44797 PyObject * obj5 = 0 ;
44798 PyObject * obj6 = 0 ;
44799 PyObject * obj7 = 0 ;
44800 PyObject * obj8 = 0 ;
44801 char * kwnames[] = {
44802 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44803 };
44804
44805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44807 if (!SWIG_IsOK(res1)) {
44808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44809 }
44810 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44811 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44812 if (!SWIG_IsOK(res2)) {
44813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44814 }
44815 arg2 = reinterpret_cast< wxWindow * >(argp2);
44816 if (obj2) {
44817 ecode3 = SWIG_AsVal_int(obj2, &val3);
44818 if (!SWIG_IsOK(ecode3)) {
44819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44820 }
44821 arg3 = static_cast< int >(val3);
44822 }
44823 if (obj3) {
44824 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44825 if (!SWIG_IsOK(res4)) {
44826 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44827 }
44828 if (!argp4) {
44829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44830 }
44831 arg4 = reinterpret_cast< wxFont * >(argp4);
44832 }
44833 if (obj4) {
44834 {
44835 arg5 = &temp5;
44836 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44837 }
44838 }
44839 if (obj5) {
44840 {
44841 arg6 = &temp6;
44842 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44843 }
44844 }
44845 if (obj6) {
44846 ecode7 = SWIG_AsVal_long(obj6, &val7);
44847 if (!SWIG_IsOK(ecode7)) {
44848 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44849 }
44850 arg7 = static_cast< long >(val7);
44851 }
44852 if (obj7) {
44853 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44854 if (!SWIG_IsOK(res8)) {
44855 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44856 }
44857 if (!argp8) {
44858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44859 }
44860 arg8 = reinterpret_cast< wxValidator * >(argp8);
44861 }
44862 if (obj8) {
44863 {
44864 arg9 = wxString_in_helper(obj8);
44865 if (arg9 == NULL) SWIG_fail;
44866 temp9 = true;
44867 }
44868 }
44869 {
44870 PyThreadState* __tstate = wxPyBeginAllowThreads();
44871 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44872 wxPyEndAllowThreads(__tstate);
44873 if (PyErr_Occurred()) SWIG_fail;
44874 }
44875 {
44876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44877 }
44878 {
44879 if (temp9)
44880 delete arg9;
44881 }
44882 return resultobj;
44883fail:
44884 {
44885 if (temp9)
44886 delete arg9;
44887 }
44888 return NULL;
44889}
44890
44891
44892SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44893 PyObject *resultobj = 0;
44894 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44895 wxFont result;
44896 void *argp1 = 0 ;
44897 int res1 = 0 ;
44898 PyObject *swig_obj[1] ;
44899
44900 if (!args) SWIG_fail;
44901 swig_obj[0] = args;
44902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44903 if (!SWIG_IsOK(res1)) {
44904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44905 }
44906 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44907 {
44908 PyThreadState* __tstate = wxPyBeginAllowThreads();
44909 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44910 wxPyEndAllowThreads(__tstate);
44911 if (PyErr_Occurred()) SWIG_fail;
44912 }
44913 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44914 return resultobj;
44915fail:
44916 return NULL;
44917}
44918
44919
44920SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44921 PyObject *resultobj = 0;
44922 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44923 wxFont *arg2 = 0 ;
44924 void *argp1 = 0 ;
44925 int res1 = 0 ;
44926 void *argp2 = 0 ;
44927 int res2 = 0 ;
44928 PyObject * obj0 = 0 ;
44929 PyObject * obj1 = 0 ;
44930 char * kwnames[] = {
44931 (char *) "self",(char *) "f", NULL
44932 };
44933
44934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44936 if (!SWIG_IsOK(res1)) {
44937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44938 }
44939 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44941 if (!SWIG_IsOK(res2)) {
44942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44943 }
44944 if (!argp2) {
44945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44946 }
44947 arg2 = reinterpret_cast< wxFont * >(argp2);
44948 {
44949 PyThreadState* __tstate = wxPyBeginAllowThreads();
44950 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44951 wxPyEndAllowThreads(__tstate);
44952 if (PyErr_Occurred()) SWIG_fail;
44953 }
44954 resultobj = SWIG_Py_Void();
44955 return resultobj;
44956fail:
44957 return NULL;
44958}
44959
44960
44961SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44962 PyObject *resultobj = 0;
44963 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44964 unsigned int arg2 ;
44965 void *argp1 = 0 ;
44966 int res1 = 0 ;
44967 unsigned int val2 ;
44968 int ecode2 = 0 ;
44969 PyObject * obj0 = 0 ;
44970 PyObject * obj1 = 0 ;
44971 char * kwnames[] = {
44972 (char *) "self",(char *) "max", NULL
44973 };
44974
44975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44977 if (!SWIG_IsOK(res1)) {
44978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44979 }
44980 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44981 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44982 if (!SWIG_IsOK(ecode2)) {
44983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44984 }
44985 arg2 = static_cast< unsigned int >(val2);
44986 {
44987 PyThreadState* __tstate = wxPyBeginAllowThreads();
44988 (arg1)->SetMaxPointSize(arg2);
44989 wxPyEndAllowThreads(__tstate);
44990 if (PyErr_Occurred()) SWIG_fail;
44991 }
44992 resultobj = SWIG_Py_Void();
44993 return resultobj;
44994fail:
44995 return NULL;
44996}
44997
44998
44999SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45000 PyObject *resultobj = 0;
45001 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45002 unsigned int result;
45003 void *argp1 = 0 ;
45004 int res1 = 0 ;
45005 PyObject *swig_obj[1] ;
45006
45007 if (!args) SWIG_fail;
45008 swig_obj[0] = args;
45009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45010 if (!SWIG_IsOK(res1)) {
45011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45012 }
45013 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45014 {
45015 PyThreadState* __tstate = wxPyBeginAllowThreads();
45016 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45017 wxPyEndAllowThreads(__tstate);
45018 if (PyErr_Occurred()) SWIG_fail;
45019 }
45020 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45021 return resultobj;
45022fail:
45023 return NULL;
45024}
45025
45026
45027SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45028 PyObject *obj;
45029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45030 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45031 return SWIG_Py_Void();
45032}
45033
45034SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45035 return SWIG_Python_InitShadowInstance(args);
45036}
45037
45038SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45039 PyObject *resultobj = 0;
45040 wxObject *arg1 = (wxObject *) 0 ;
45041 int arg2 ;
45042 wxFont *arg3 = 0 ;
45043 wxFontPickerEvent *result = 0 ;
45044 void *argp1 = 0 ;
45045 int res1 = 0 ;
45046 int val2 ;
45047 int ecode2 = 0 ;
45048 void *argp3 = 0 ;
45049 int res3 = 0 ;
45050 PyObject * obj0 = 0 ;
45051 PyObject * obj1 = 0 ;
45052 PyObject * obj2 = 0 ;
45053 char * kwnames[] = {
45054 (char *) "generator",(char *) "id",(char *) "f", NULL
45055 };
45056
45057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45059 if (!SWIG_IsOK(res1)) {
45060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45061 }
45062 arg1 = reinterpret_cast< wxObject * >(argp1);
45063 ecode2 = SWIG_AsVal_int(obj1, &val2);
45064 if (!SWIG_IsOK(ecode2)) {
45065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45066 }
45067 arg2 = static_cast< int >(val2);
45068 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45069 if (!SWIG_IsOK(res3)) {
45070 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45071 }
45072 if (!argp3) {
45073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45074 }
45075 arg3 = reinterpret_cast< wxFont * >(argp3);
45076 {
45077 PyThreadState* __tstate = wxPyBeginAllowThreads();
45078 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45079 wxPyEndAllowThreads(__tstate);
45080 if (PyErr_Occurred()) SWIG_fail;
45081 }
45082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45083 return resultobj;
45084fail:
45085 return NULL;
45086}
45087
45088
45089SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45090 PyObject *resultobj = 0;
45091 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45092 wxFont result;
45093 void *argp1 = 0 ;
45094 int res1 = 0 ;
45095 PyObject *swig_obj[1] ;
45096
45097 if (!args) SWIG_fail;
45098 swig_obj[0] = args;
45099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45100 if (!SWIG_IsOK(res1)) {
45101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45102 }
45103 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45104 {
45105 PyThreadState* __tstate = wxPyBeginAllowThreads();
45106 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45107 wxPyEndAllowThreads(__tstate);
45108 if (PyErr_Occurred()) SWIG_fail;
45109 }
45110 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45111 return resultobj;
45112fail:
45113 return NULL;
45114}
45115
45116
45117SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45118 PyObject *resultobj = 0;
45119 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45120 wxFont *arg2 = 0 ;
45121 void *argp1 = 0 ;
45122 int res1 = 0 ;
45123 void *argp2 = 0 ;
45124 int res2 = 0 ;
45125 PyObject * obj0 = 0 ;
45126 PyObject * obj1 = 0 ;
45127 char * kwnames[] = {
45128 (char *) "self",(char *) "c", NULL
45129 };
45130
45131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45133 if (!SWIG_IsOK(res1)) {
45134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45135 }
45136 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45138 if (!SWIG_IsOK(res2)) {
45139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45140 }
45141 if (!argp2) {
45142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45143 }
45144 arg2 = reinterpret_cast< wxFont * >(argp2);
45145 {
45146 PyThreadState* __tstate = wxPyBeginAllowThreads();
45147 (arg1)->SetFont((wxFont const &)*arg2);
45148 wxPyEndAllowThreads(__tstate);
45149 if (PyErr_Occurred()) SWIG_fail;
45150 }
45151 resultobj = SWIG_Py_Void();
45152 return resultobj;
45153fail:
45154 return NULL;
45155}
45156
45157
45158SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45159 PyObject *obj;
45160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45161 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45162 return SWIG_Py_Void();
45163}
45164
45165SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45166 return SWIG_Python_InitShadowInstance(args);
45167}
45168
45169static PyMethodDef SwigMethods[] = {
45170 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45171 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45172 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45173 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45174 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45175 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45176 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45177 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45178 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45179 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45180 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45181 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45182 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45183 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45184 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45185 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45186 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45187 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45188 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45189 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45190 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45191 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45192 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45193 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45194 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45195 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45196 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45197 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45198 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45199 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45200 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45201 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45202 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45203 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45204 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45205 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45206 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45207 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45208 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45209 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45210 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45211 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45212 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45213 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45214 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45215 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45216 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45217 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45218 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45219 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45220 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45221 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45222 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45223 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45224 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45225 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45226 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45227 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45228 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45229 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45230 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45231 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45232 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45233 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45234 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45235 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45236 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45237 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45238 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45239 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45240 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45241 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45242 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45243 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45244 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45245 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45247 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45248 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45249 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45250 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45251 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45252 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45253 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45254 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45255 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45256 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45257 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45258 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45260 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45261 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45262 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45263 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45264 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45265 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45266 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45267 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45268 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45269 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45270 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45271 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45272 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45273 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45274 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45275 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45276 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45277 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45278 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45279 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45280 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45281 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45282 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45283 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45284 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45285 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45286 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45287 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45288 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45290 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45291 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45292 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45293 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45294 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45295 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45296 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45297 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45298 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45299 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45300 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45301 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45302 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45303 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45304 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45305 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45306 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45307 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45308 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45309 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45311 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45312 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45313 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45314 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45315 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45317 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45318 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45319 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45320 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45321 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45322 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45323 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45324 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45325 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45326 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45327 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45328 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45329 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45330 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45331 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45334 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45338 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45339 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45340 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45341 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45342 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45343 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45344 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45345 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45347 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45348 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45349 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45350 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45351 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45352 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45353 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45354 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45355 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45356 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45358 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45359 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45361 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45363 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45367 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45368 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45369 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45370 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45371 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45372 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45373 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45374 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45375 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45376 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45378 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45380 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45381 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45382 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45383 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45387 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45389 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45390 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45395 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45396 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45397 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45398 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45399 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45400 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45401 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45402 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45403 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45404 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45405 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45407 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45408 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45409 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45411 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45413 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45416 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45417 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45419 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45420 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45421 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45422 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45423 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45424 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45425 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45427 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45428 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45429 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45430 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45431 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45434 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45435 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45437 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45439 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45440 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45441 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45445 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45446 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45448 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45449 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45451 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45453 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45457 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45458 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45461 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45462 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45464 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45466 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45467 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45469 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45472 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45473 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45474 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45475 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45481 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45483 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45484 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45485 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45486 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45489 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45490 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45491 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45492 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45494 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45495 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45496 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45499 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45500 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45502 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45503 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45504 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45505 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45507 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45508 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45513 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45514 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45516 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45517 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45518 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45519 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45521 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45522 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45523 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45526 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45527 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45529 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45532 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45534 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45535 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45536 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45538 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45539 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45541 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45544 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45546 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45549 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 45550 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
45551 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
0085ce49
RD
45553 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45555 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
0085ce49
RD
45556 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45558 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45559 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45563 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45564 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45565 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45566 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45567 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45568 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45570 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45572 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45573 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45575 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45577 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45579 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45580 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45581 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45582 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45583 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45585 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45586 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45588 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45590 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45591 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45592 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45594 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45595 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45597 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45599 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45600 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45601 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45603 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45604 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45606 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45608 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45609 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45613 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45614 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45615 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45616 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45618 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45619 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45620 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45621 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45623 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45624 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45625 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45626 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45628 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45629 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45630 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45631 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45632 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45633 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45634 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45635 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45636 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45637 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45638 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45639 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45640 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45641 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45642 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45643 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45644 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45645 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45646 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45647 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45648 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45649 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45650 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45651 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45654 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45655 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45657 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45659 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45666 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45667 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45668 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45669 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45670 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45671 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45672 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45673 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45676 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45681 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45686 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45690 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45691 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45692 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45693 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45695 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45696 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45697 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45698 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45699 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45700 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45703 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45704 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45705 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45706 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45707 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45708 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45710 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45711 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45713 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45717 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45718 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45719 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45720 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45721 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45722 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45724 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45725 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45726 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45727 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45728 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45729 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45730 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45741 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45744 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45745 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45746 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45747 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45748 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45749 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45750 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45751 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45752 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45753 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45754 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45755 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45756 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45757 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45758 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45759 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45760 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45761 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45762 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45763 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45764 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45765 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45766 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45767 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45768 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45769 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45770 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45771 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45772 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45773 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45774 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45775 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45776 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45777 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45778 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45779 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45781 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45782 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45783 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45784 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45785 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45786 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45787 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45788 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45789 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45790 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45791 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45792 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45793 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45794 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45795 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45796 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45797 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45798 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45799 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45800 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45801 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45802 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45803 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45804 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45806 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45807 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45809 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45816 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45817 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45818 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45833 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45834 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45835 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45837 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45838 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45840 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45843 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45846 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45847 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45852 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45854 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45855 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45861 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
45862 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45866 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45878 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45880 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45881 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45883 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45887 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45889 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45891 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45892 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45893 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45894 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45895 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45896 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45897 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45900 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45901 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45902 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45903 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45905 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45906 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45908 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45910 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45911 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 45912 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
0085ce49
RD
45913 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45914 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45916 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45918 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45920 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45921 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45923 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45925 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45928 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45929 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45930 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45932 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45933 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45935 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45936 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45938 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45940 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45941 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45942 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45951 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45963 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45964 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45969 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45970 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45971 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45975 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45978 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45986 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45988 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
45989 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
0085ce49
RD
45991 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45995 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45997 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46003 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46007 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
0085ce49
RD
46009 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46010 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46011 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46013 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46015 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46016 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46017 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46019 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46020 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46023 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46024 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46026 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46028 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46029 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46030 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46032 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46033 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46034 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46035 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46037 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46040 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46041 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46043 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46051 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46052 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46053 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46054 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46055 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46056 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46057 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46058 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46059 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46061 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46063 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46065 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46066 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46067 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46068 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46069 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46070 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46072 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46074 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46075 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46076 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46078 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46079 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
0085ce49
RD
46080 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46082 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46084 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
46085 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46087 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46089 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46090 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46091 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46092 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46093 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46099 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46103 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46105 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46106 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46108 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46111 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46112 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46114 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46117 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46119 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46120 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46121 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46122 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46124 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46126 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46128 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46130 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46132 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46135 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46136 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46137 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46139 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46141 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46142 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46144 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46145 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
10044bf1
RD
46147 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46149 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46150 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46152 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46153 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46154 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46155 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46156 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46157 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46159 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46160 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46161 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46163 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46164 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46166 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46167 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46168 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46169 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46171 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46173 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46174 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46176 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46177 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46178 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46179 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46180 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46182 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46183 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46185 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46186 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46187 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46189 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46191 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46192 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46194 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46196 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46198 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46199 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46200 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46201 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46203 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46204 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46205 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
0085ce49
RD
46206 { NULL, NULL, 0, NULL }
46207};
46208
46209
46210/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46211
46212static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46213 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46214}
46215static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46216 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46217}
46218static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46219 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46220}
46221static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46222 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46223}
46224static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46225 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46226}
46227static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46228 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46229}
46230static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46231 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46232}
46233static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46234 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46235}
b850e7f3
RD
46236static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46237 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46238}
46239static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46240 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46241}
46242static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46243 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46244}
0085ce49
RD
46245static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46246 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46247}
46248static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46249 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46250}
46251static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46252 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46253}
0085ce49
RD
46254static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46255 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46256}
34e0a3bb
RD
46257static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
46258 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
46259}
2131d850
RD
46260static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46261 return (void *)((wxEvent *) ((wxPyEvent *) x));
46262}
0085ce49
RD
46263static void *_p_wxListEventTo_p_wxEvent(void *x) {
46264 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46265}
46266static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46267 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46268}
46269static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46270 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46271}
46272static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46273 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46274}
46275static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46276 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46277}
46278static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46279 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46280}
46281static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46282 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46283}
46284static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46285 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46286}
46287static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46288 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46289}
46290static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46291 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46292}
46293static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46294 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46295}
46296static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46297 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46298}
46299static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46300 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46301}
46302static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46303 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46304}
46305static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46306 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46307}
46308static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46309 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46310}
46311static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46312 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46313}
46314static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46315 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46316}
34e0a3bb
RD
46317static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46318 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46319}
0085ce49
RD
46320static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46321 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46322}
46323static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46324 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46325}
46326static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46327 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46328}
46329static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46330 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46331}
46332static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46333 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46334}
704eda0c
RD
46335static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46336 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46337}
0085ce49
RD
46338static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46339 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46340}
46341static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46342 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46343}
46344static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46345 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46346}
46347static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46348 return (void *)((wxEvent *) ((wxShowEvent *) x));
46349}
46350static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46351 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46352}
46353static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46354 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46355}
46356static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46357 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46358}
46359static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46360 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46361}
46362static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46363 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46364}
46365static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46366 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46367}
46368static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46369 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46370}
b850e7f3
RD
46371static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46372 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46373}
46374static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46375 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46376}
46377static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46378 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46379}
46380static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46381 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46382}
0085ce49
RD
46383static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46384 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46385}
46386static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46387 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46388}
46389static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46390 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46391}
46392static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46393 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46394}
46395static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46396 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46397}
46398static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46399 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46400}
46401static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46402 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46403}
46404static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46405 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46406}
46407static void *_p_wxToolBarTo_p_wxControl(void *x) {
46408 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46409}
b850e7f3
RD
46410static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46411 return (void *)((wxControl *) ((wxPickerBase *) x));
46412}
0085ce49
RD
46413static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46414 return (void *)((wxControl *) ((wxToggleButton *) x));
46415}
46416static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46417 return (void *)((wxControl *) ((wxRadioButton *) x));
46418}
46419static void *_p_wxToolbookTo_p_wxControl(void *x) {
46420 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46421}
46422static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46423 return (void *)((wxControl *) ((wxToolBarBase *) x));
46424}
46425static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46426 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46427}
46428static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46429 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46430}
46431static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46432 return (void *)((wxControl *) ((wxComboBox *) x));
46433}
46434static void *_p_wxPyControlTo_p_wxControl(void *x) {
46435 return (void *)((wxControl *) ((wxPyControl *) x));
46436}
46437static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46438 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46439}
46440static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46441 return (void *)((wxControl *) ((wxScrollBar *) x));
46442}
46443static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46444 return (void *)((wxControl *) ((wxControlWithItems *) x));
46445}
46446static void *_p_wxGaugeTo_p_wxControl(void *x) {
46447 return (void *)((wxControl *) ((wxGauge *) x));
46448}
46449static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46450 return (void *)((wxControl *) ((wxStaticLine *) x));
46451}
46452static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46453 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46454}
46455static void *_p_wxListbookTo_p_wxControl(void *x) {
46456 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46457}
704eda0c
RD
46458static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46459 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46460}
0085ce49
RD
46461static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46462 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46463}
46464static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46465 return (void *)((wxControl *) ((wxCheckBox *) x));
46466}
46467static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46468 return (void *)((wxControl *) ((wxRadioBox *) x));
46469}
46470static void *_p_wxChoiceTo_p_wxControl(void *x) {
46471 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46472}
46473static void *_p_wxListBoxTo_p_wxControl(void *x) {
46474 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46475}
46476static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46477 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46478}
46479static void *_p_wxListViewTo_p_wxControl(void *x) {
46480 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46481}
46482static void *_p_wxNotebookTo_p_wxControl(void *x) {
46483 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46484}
46485static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46486 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46487}
46488static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46489 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46490}
46491static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46492 return (void *)((wxControl *) ((wxStaticText *) x));
46493}
46494static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46495 return (void *)((wxControl *) ((wxStaticBox *) x));
46496}
46497static void *_p_wxSliderTo_p_wxControl(void *x) {
46498 return (void *)((wxControl *) ((wxSlider *) x));
46499}
46500static void *_p_wxTreebookTo_p_wxControl(void *x) {
46501 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46502}
46503static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46504 return (void *)((wxControl *) ((wxSpinButton *) x));
46505}
46506static void *_p_wxButtonTo_p_wxControl(void *x) {
46507 return (void *)((wxControl *) ((wxButton *) x));
46508}
46509static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46510 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46511}
46512static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46513 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46514}
46515static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46516 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46517}
b850e7f3
RD
46518static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46519 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46520}
46521static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46522 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46523}
46524static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46525 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46526}
46527static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46528 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46529}
0085ce49
RD
46530static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46531 return (void *)((wxControl *) ((wxTextCtrl *) x));
46532}
46533static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46534 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46535}
46536static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46537 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46538}
46539static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46540 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46541}
46542static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46543 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46544}
46545static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46546 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46547}
46548static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46549 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46550}
46551static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46552 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46553}
46554static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46555 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46556}
46557static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46558 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46559}
46560static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46561 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46562}
46563static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46564 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46565}
46566static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46567 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46568}
46569static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46570 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46571}
46572static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46573 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46574}
46575static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46576 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46577}
46578static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46579 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46580}
46581static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46582 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46583}
46584static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46585 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46586}
46587static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46588 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46589}
46590static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46591 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46592}
46593static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46594 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46595}
b850e7f3
RD
46596static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46597 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46598}
0085ce49
RD
46599static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46600 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46601}
46602static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46603 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46604}
46605static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46606 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46607}
46608static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46609 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46610}
46611static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46612 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46613}
46614static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46615 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46616}
46617static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46618 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46619}
46620static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46621 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46622}
46623static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46624 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46625}
46626static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46627 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46628}
46629static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46630 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46631}
46632static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46633 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46634}
46635static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46636 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46637}
46638static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46639 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46640}
46641static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46642 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46643}
46644static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46645 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46646}
46647static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46648 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46649}
46650static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46651 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46652}
46653static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46654 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46655}
704eda0c
RD
46656static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46657 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46658}
0085ce49
RD
46659static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46660 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46661}
46662static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46663 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46664}
46665static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46666 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46667}
46668static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46669 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46670}
46671static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46672 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46673}
46674static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46675 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46676}
46677static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46678 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46679}
46680static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46681 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46682}
46683static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46684 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46685}
46686static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46687 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46688}
46689static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46690 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46691}
46692static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46693 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46694}
46695static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46696 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46697}
46698static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46699 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46700}
46701static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46702 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46703}
46704static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46705 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46706}
46707static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46708 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46709}
46710static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46711 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46712}
46713static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46714 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46715}
b850e7f3
RD
46716static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46717 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46718}
46719static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46720 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46721}
46722static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46723 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46724}
46725static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46726 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46727}
0085ce49
RD
46728static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46729 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46730}
46731static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46732 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46733}
46734static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46735 return (void *)((wxButton *) ((wxBitmapButton *) x));
46736}
46737static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46738 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46739}
46740static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46741 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46742}
46743static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46744 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46745}
46746static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46747 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46748}
46749static void *_p_wxToolbookTo_p_wxObject(void *x) {
46750 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46751}
0085ce49
RD
46752static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46753 return (void *)((wxObject *) ((wxSizerItem *) x));
46754}
34e0a3bb
RD
46755static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46756 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46757}
0085ce49
RD
46758static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46759 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46760}
46761static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46762 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46763}
46764static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46765 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46766}
46767static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46768 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46769}
46770static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46771 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46772}
46773static void *_p_wxSizerTo_p_wxObject(void *x) {
46774 return (void *)((wxObject *) ((wxSizer *) x));
46775}
46776static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46777 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46778}
46779static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46780 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46781}
46782static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46783 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46784}
46785static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46786 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46787}
46788static void *_p_wxEventTo_p_wxObject(void *x) {
46789 return (void *)((wxObject *) ((wxEvent *) x));
46790}
46791static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46792 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46793}
46794static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46795 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46796}
46797static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46798 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46799}
46800static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46802}
b850e7f3
RD
46803static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46804 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46805}
0085ce49
RD
46806static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46807 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46808}
46809static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46810 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46811}
2131d850
RD
46812static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46813 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46814}
0085ce49
RD
46815static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46816 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46817}
46818static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46819 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46820}
46821static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46822 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46823}
46824static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46825 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46826}
46827static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46828 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46829}
46830static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46831 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46832}
46833static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46834 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46835}
46836static void *_p_wxControlTo_p_wxObject(void *x) {
46837 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46838}
46839static void *_p_wxPyControlTo_p_wxObject(void *x) {
46840 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46841}
46842static void *_p_wxGaugeTo_p_wxObject(void *x) {
46843 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46844}
46845static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46846 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46847}
46848static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46850}
46851static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46853}
46854static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46855 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46856}
b850e7f3
RD
46857static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46858 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46859}
46860static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46861 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46862}
46863static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46864 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46865}
0085ce49
RD
46866static void *_p_wxChoiceTo_p_wxObject(void *x) {
46867 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46868}
46869static void *_p_wxFSFileTo_p_wxObject(void *x) {
46870 return (void *)((wxObject *) ((wxFSFile *) x));
46871}
46872static void *_p_wxPySizerTo_p_wxObject(void *x) {
46873 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46874}
46875static void *_p_wxTreebookTo_p_wxObject(void *x) {
46876 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46877}
46878static void *_p_wxListViewTo_p_wxObject(void *x) {
46879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46880}
704eda0c
RD
46881static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46882 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46883}
0085ce49
RD
46884static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46885 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46886}
46887static void *_p_wxNotebookTo_p_wxObject(void *x) {
46888 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46889}
46890static void *_p_wxPyEventTo_p_wxObject(void *x) {
46891 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46892}
46893static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46894 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46895}
46896static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46897 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46898}
46899static void *_p_wxListbookTo_p_wxObject(void *x) {
46900 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46901}
46902static void *_p_wxShowEventTo_p_wxObject(void *x) {
46903 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46904}
46905static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46906 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46907}
46908static void *_p_wxSliderTo_p_wxObject(void *x) {
46909 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46910}
46911static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46912 return (void *)((wxObject *) ((wxMenuItem *) x));
46913}
46914static void *_p_wxDateEventTo_p_wxObject(void *x) {
46915 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46916}
46917static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46918 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46919}
46920static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46921 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46922}
46923static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46924 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46925}
46926static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46927 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46928}
46929static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46930 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46931}
46932static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46933 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46934}
46935static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46936 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46937}
46938static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46939 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46940}
46941static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46942 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46943}
46944static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46945 return (void *)((wxObject *) ((wxContextHelp *) x));
46946}
46947static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46948 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46949}
46950static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46951 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46952}
46953static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46954 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46955}
46956static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46957 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46958}
46959static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46960 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46961}
46962static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46963 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46964}
46965static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46966 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46967}
46968static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46969 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46970}
46971static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46972 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46973}
46974static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46975 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46976}
46977static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46978 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46979}
46980static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46981 return (void *)((wxObject *) ((wxImageHandler *) x));
46982}
46983static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46984 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46985}
46986static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46987 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46988}
46989static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46990 return (void *)((wxObject *) ((wxEvtHandler *) x));
46991}
34e0a3bb
RD
46992static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
46993 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
46994}
0085ce49
RD
46995static void *_p_wxListEventTo_p_wxObject(void *x) {
46996 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46997}
46998static void *_p_wxListBoxTo_p_wxObject(void *x) {
46999 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47000}
47001static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47002 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47003}
47004static void *_p_wxButtonTo_p_wxObject(void *x) {
47005 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47006}
47007static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47008 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47009}
47010static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47011 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47012}
47013static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47014 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47015}
47016static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47017 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47018}
47019static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47020 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47021}
47022static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47023 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47024}
47025static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47026 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47027}
47028static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47029 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47030}
47031static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47032 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47033}
47034static void *_p_wxListItemTo_p_wxObject(void *x) {
47035 return (void *)((wxObject *) ((wxListItem *) x));
47036}
47037static void *_p_wxImageTo_p_wxObject(void *x) {
47038 return (void *)((wxObject *) ((wxImage *) x));
47039}
47040static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47041 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47042}
47043static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47044 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47045}
47046static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47047 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47048}
47049static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47051}
47052static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47053 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47054}
47055static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47056 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47057}
47058static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47059 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47060}
47061static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47062 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47063}
47064static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47065 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47066}
47067static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47068 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47069}
47070static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47071 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47072}
47073static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47074 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47075}
47076static void *_p_wxWindowTo_p_wxObject(void *x) {
47077 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47078}
47079static void *_p_wxMenuTo_p_wxObject(void *x) {
47080 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47081}
47082static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47083 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47084}
47085static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47086 return (void *)((wxObject *) ((wxFileSystem *) x));
47087}
47088static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47089 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47090}
47091static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47092 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47093}
47094static void *_p_wxPyAppTo_p_wxObject(void *x) {
47095 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47096}
47097static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47098 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47099}
47100static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47101 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47102}
47103static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47104 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47105}
47106static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47107 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47108}
47109static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47111}
47112static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47113 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47114}
47115static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47116 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47117}
47118static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47119 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47120}
47121static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47122 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47123}
47124static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47125 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47126}
47127static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47128 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47129}
47130static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47131 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47132}
b850e7f3
RD
47133static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47134 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47135}
47136static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47137 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47138}
47139static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47140 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47141}
47142static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47143 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47144}
0085ce49
RD
47145static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47146 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47147}
704eda0c
RD
47148static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47149 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47150}
0085ce49
RD
47151static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47152 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47153}
47154static void *_p_wxToolBarTo_p_wxObject(void *x) {
47155 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47156}
47157static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47158 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47159}
47160static void *_p_wxValidatorTo_p_wxObject(void *x) {
47161 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47162}
47163static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47164 return (void *)((wxWindow *) ((wxMenuBar *) x));
47165}
47166static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47167 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47168}
47169static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47170 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47171}
b850e7f3
RD
47172static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47173 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47174}
0085ce49
RD
47175static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47176 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47177}
47178static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47179 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47180}
47181static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47182 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47183}
47184static void *_p_wxControlTo_p_wxWindow(void *x) {
47185 return (void *)((wxWindow *) ((wxControl *) x));
47186}
47187static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47188 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47189}
47190static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47191 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47192}
47193static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47194 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47195}
47196static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47197 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47198}
47199static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47200 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47201}
47202static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47203 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47204}
47205static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47206 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47207}
47208static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47209 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47210}
47211static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47212 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47213}
47214static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47215 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47216}
47217static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47218 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47219}
47220static void *_p_wxListbookTo_p_wxWindow(void *x) {
47221 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47222}
704eda0c
RD
47223static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47224 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47225}
0085ce49
RD
47226static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47227 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47228}
47229static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47230 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47231}
47232static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47233 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47234}
47235static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47236 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47237}
47238static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47239 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47240}
47241static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47242 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47243}
47244static void *_p_wxListViewTo_p_wxWindow(void *x) {
47245 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47246}
47247static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47248 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47249}
47250static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47251 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47252}
47253static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47254 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47255}
47256static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47257 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47258}
47259static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47260 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47261}
47262static void *_p_wxSliderTo_p_wxWindow(void *x) {
47263 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47264}
47265static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47266 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47267}
47268static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47269 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47270}
47271static void *_p_wxButtonTo_p_wxWindow(void *x) {
47272 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47273}
47274static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47275 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47276}
47277static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47278 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47279}
47280static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47281 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47282}
b850e7f3
RD
47283static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47284 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47285}
47286static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47287 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47288}
47289static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47290 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47291}
47292static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47293 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47294}
0085ce49
RD
47295static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47296 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47297}
47298static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47299 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47300}
47301static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47302 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47303}
47304static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47305 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47306}
47307static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47308 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47309}
47310static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47311 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47312}
47313static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47314 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47315}
704eda0c
RD
47316static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47317 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47318}
2131d850
RD
47319static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47320 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47321}
b850e7f3
RD
47322static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47323 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47324}
47325static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47326 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47327}
47328static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47329 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47330}
0085ce49
RD
47331static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47332 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47333}
47334static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47335 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47336}
47337static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47338 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47339}
47340static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47341 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47342}
47343static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47344 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47345}
0085ce49
RD
47346static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47347 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47348}
2131d850
RD
47349static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47350 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47351}
0085ce49
RD
47352static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47353 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47354}
47355static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47356 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47357}
47358static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47359 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47360}
47361static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47362 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47363}
47364static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47365 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47366}
47367static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47368 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47369}
47370static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47371 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47372}
47373static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47374 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47375}
47376static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47377 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47378}
47379static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47380 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47381}
47382static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47383 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47384}
47385static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47386 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47387}
47388static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47389 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47390}
47391static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47392 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47393}
47394static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47395 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47396}
47397static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47398 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47399}
47400static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47401 return (void *)((wxValidator *) ((wxPyValidator *) x));
47402}
47403static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47404static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47405static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47406static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47407static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47408static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47409static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47410static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47411static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47412static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47413static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47414static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47415static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47416static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47417static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47418static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47419static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47420static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47421static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47422static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47423static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47424static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47425static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47426static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47427static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47428static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47429static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47430static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47431static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47432static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47433static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47434static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47435static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47436static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47437static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47438static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47439static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47440static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47441static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47442static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47443static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47444static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47445static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47446static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47447static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
0085ce49
RD
47448static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47449static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47450static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47451static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47452static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47453static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47454static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47455static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 47456static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47457static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47458static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47459static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47460static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47461static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47462static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 47463static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
0085ce49
RD
47464static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47465static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47466static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47467static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47468static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47469static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47470static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47471static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47472static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47473static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47474static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47475static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47476static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47477static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47478static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47479static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47480static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47481static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
0085ce49 47482static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47483static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47484static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47485static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47486static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47487static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47488static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47489static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47490static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47491static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47492static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47493static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47494static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47495static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47496static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47497static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47498static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47499static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47500static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47501static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47502static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47503static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47504static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47505static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47506static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47507static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47508static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47509static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 47510static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 47511static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
47512static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47513static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47514static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47515static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47516static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47517static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47518static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47519static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47520static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47521static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
0085ce49
RD
47522static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47523static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47524static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47525static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47526static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47527static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47528static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47529static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47530static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47531static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47532static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
0085ce49
RD
47533static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47534static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47535static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47536static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47537static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47538static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47539static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47540static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
0085ce49
RD
47541static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47542static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47543static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47544static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47545static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47546static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47547static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47548static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47549static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47550static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47551static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47552static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47553static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47554static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47555static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47556static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47557static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47558static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47559static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47560static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47561static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47562static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47563static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47564static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47565static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47566static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47567static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47568static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47569static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
47570static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47571static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47572static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47573static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47574static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47575static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47576static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47577static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
0085ce49
RD
47578
47579static swig_type_info *swig_type_initial[] = {
47580 &_swigt__p_bool,
47581 &_swigt__p_char,
47582 &_swigt__p_form_ops_t,
47583 &_swigt__p_int,
47584 &_swigt__p_long,
47585 &_swigt__p_unsigned_char,
47586 &_swigt__p_unsigned_int,
47587 &_swigt__p_unsigned_long,
47588 &_swigt__p_void,
47589 &_swigt__p_wxANIHandler,
47590 &_swigt__p_wxAcceleratorTable,
47591 &_swigt__p_wxActivateEvent,
47592 &_swigt__p_wxArrayInt,
47593 &_swigt__p_wxArrayString,
47594 &_swigt__p_wxBMPHandler,
47595 &_swigt__p_wxBitmap,
47596 &_swigt__p_wxBitmapButton,
47597 &_swigt__p_wxBookCtrlBase,
47598 &_swigt__p_wxBookCtrlBaseEvent,
47599 &_swigt__p_wxBoxSizer,
47600 &_swigt__p_wxButton,
47601 &_swigt__p_wxCURHandler,
47602 &_swigt__p_wxCheckBox,
47603 &_swigt__p_wxCheckListBox,
47604 &_swigt__p_wxChildFocusEvent,
47605 &_swigt__p_wxChoice,
47606 &_swigt__p_wxChoicebook,
47607 &_swigt__p_wxChoicebookEvent,
2131d850 47608 &_swigt__p_wxClipboardTextEvent,
0085ce49
RD
47609 &_swigt__p_wxCloseEvent,
47610 &_swigt__p_wxColour,
b850e7f3
RD
47611 &_swigt__p_wxColourPickerCtrl,
47612 &_swigt__p_wxColourPickerEvent,
0085ce49
RD
47613 &_swigt__p_wxComboBox,
47614 &_swigt__p_wxCommandEvent,
47615 &_swigt__p_wxContextHelp,
47616 &_swigt__p_wxContextHelpButton,
47617 &_swigt__p_wxContextMenuEvent,
47618 &_swigt__p_wxControl,
47619 &_swigt__p_wxControlWithItems,
47620 &_swigt__p_wxCursor,
47621 &_swigt__p_wxDC,
47622 &_swigt__p_wxDateEvent,
47623 &_swigt__p_wxDatePickerCtrl,
47624 &_swigt__p_wxDateTime,
47625 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47626 &_swigt__p_wxDirPickerCtrl,
0085ce49
RD
47627 &_swigt__p_wxDisplayChangedEvent,
47628 &_swigt__p_wxDropFilesEvent,
47629 &_swigt__p_wxDuplexMode,
47630 &_swigt__p_wxEraseEvent,
47631 &_swigt__p_wxEvent,
47632 &_swigt__p_wxEvtHandler,
47633 &_swigt__p_wxFSFile,
b850e7f3
RD
47634 &_swigt__p_wxFileDirPickerEvent,
47635 &_swigt__p_wxFilePickerCtrl,
0085ce49
RD
47636 &_swigt__p_wxFileSystem,
47637 &_swigt__p_wxFlexGridSizer,
47638 &_swigt__p_wxFocusEvent,
47639 &_swigt__p_wxFont,
b850e7f3
RD
47640 &_swigt__p_wxFontPickerCtrl,
47641 &_swigt__p_wxFontPickerEvent,
0085ce49
RD
47642 &_swigt__p_wxGBSizerItem,
47643 &_swigt__p_wxGIFHandler,
47644 &_swigt__p_wxGauge,
47645 &_swigt__p_wxGenericDirCtrl,
47646 &_swigt__p_wxGenericDragImage,
47647 &_swigt__p_wxGridBagSizer,
47648 &_swigt__p_wxGridSizer,
47649 &_swigt__p_wxHelpEvent,
47650 &_swigt__p_wxHelpProvider,
704eda0c
RD
47651 &_swigt__p_wxHyperlinkCtrl,
47652 &_swigt__p_wxHyperlinkEvent,
0085ce49
RD
47653 &_swigt__p_wxICOHandler,
47654 &_swigt__p_wxIcon,
47655 &_swigt__p_wxIconizeEvent,
47656 &_swigt__p_wxIdleEvent,
47657 &_swigt__p_wxImage,
47658 &_swigt__p_wxImageHandler,
47659 &_swigt__p_wxImageList,
47660 &_swigt__p_wxIndividualLayoutConstraint,
47661 &_swigt__p_wxInitDialogEvent,
47662 &_swigt__p_wxItemContainer,
47663 &_swigt__p_wxJPEGHandler,
47664 &_swigt__p_wxKeyEvent,
47665 &_swigt__p_wxLayoutConstraints,
47666 &_swigt__p_wxListBox,
47667 &_swigt__p_wxListEvent,
47668 &_swigt__p_wxListItem,
47669 &_swigt__p_wxListItemAttr,
47670 &_swigt__p_wxListView,
47671 &_swigt__p_wxListbook,
47672 &_swigt__p_wxListbookEvent,
47673 &_swigt__p_wxMaximizeEvent,
47674 &_swigt__p_wxMemoryDC,
47675 &_swigt__p_wxMenu,
47676 &_swigt__p_wxMenuBar,
47677 &_swigt__p_wxMenuEvent,
47678 &_swigt__p_wxMenuItem,
47679 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 47680 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
47681 &_swigt__p_wxMouseEvent,
47682 &_swigt__p_wxMoveEvent,
47683 &_swigt__p_wxNavigationKeyEvent,
47684 &_swigt__p_wxNcPaintEvent,
47685 &_swigt__p_wxNotebook,
47686 &_swigt__p_wxNotebookEvent,
47687 &_swigt__p_wxNotifyEvent,
47688 &_swigt__p_wxObject,
47689 &_swigt__p_wxPCXHandler,
47690 &_swigt__p_wxPNGHandler,
47691 &_swigt__p_wxPNMHandler,
47692 &_swigt__p_wxPaintEvent,
47693 &_swigt__p_wxPaletteChangedEvent,
47694 &_swigt__p_wxPaperSize,
b850e7f3 47695 &_swigt__p_wxPickerBase,
0085ce49
RD
47696 &_swigt__p_wxPoint,
47697 &_swigt__p_wxPyApp,
47698 &_swigt__p_wxPyCommandEvent,
47699 &_swigt__p_wxPyControl,
47700 &_swigt__p_wxPyEvent,
47701 &_swigt__p_wxPyImageHandler,
47702 &_swigt__p_wxPyListCtrl,
47703 &_swigt__p_wxPySizer,
47704 &_swigt__p_wxPyTreeCtrl,
47705 &_swigt__p_wxPyTreeItemData,
47706 &_swigt__p_wxPyValidator,
47707 &_swigt__p_wxQueryNewPaletteEvent,
47708 &_swigt__p_wxRadioBox,
47709 &_swigt__p_wxRadioButton,
47710 &_swigt__p_wxRect,
47711 &_swigt__p_wxScrollBar,
47712 &_swigt__p_wxScrollEvent,
47713 &_swigt__p_wxScrollWinEvent,
47714 &_swigt__p_wxSetCursorEvent,
47715 &_swigt__p_wxShowEvent,
47716 &_swigt__p_wxSimpleHelpProvider,
47717 &_swigt__p_wxSize,
47718 &_swigt__p_wxSizeEvent,
47719 &_swigt__p_wxSizer,
47720 &_swigt__p_wxSizerItem,
47721 &_swigt__p_wxSlider,
47722 &_swigt__p_wxSpinButton,
47723 &_swigt__p_wxSpinCtrl,
47724 &_swigt__p_wxSpinEvent,
47725 &_swigt__p_wxStaticBitmap,
47726 &_swigt__p_wxStaticBox,
47727 &_swigt__p_wxStaticBoxSizer,
47728 &_swigt__p_wxStaticLine,
47729 &_swigt__p_wxStaticText,
47730 &_swigt__p_wxStdDialogButtonSizer,
47731 &_swigt__p_wxString,
47732 &_swigt__p_wxSysColourChangedEvent,
47733 &_swigt__p_wxTIFFHandler,
47734 &_swigt__p_wxTextAttr,
47735 &_swigt__p_wxTextCtrl,
47736 &_swigt__p_wxTextUrlEvent,
47737 &_swigt__p_wxToggleButton,
47738 &_swigt__p_wxToolBar,
47739 &_swigt__p_wxToolBarBase,
47740 &_swigt__p_wxToolBarToolBase,
47741 &_swigt__p_wxToolbook,
47742 &_swigt__p_wxToolbookEvent,
0085ce49
RD
47743 &_swigt__p_wxTreeEvent,
47744 &_swigt__p_wxTreeItemId,
47745 &_swigt__p_wxTreebook,
47746 &_swigt__p_wxTreebookEvent,
47747 &_swigt__p_wxUpdateUIEvent,
47748 &_swigt__p_wxValidator,
47749 &_swigt__p_wxVisualAttributes,
47750 &_swigt__p_wxWindow,
b850e7f3 47751 &_swigt__p_wxWindowBase,
0085ce49
RD
47752 &_swigt__p_wxWindowCreateEvent,
47753 &_swigt__p_wxWindowDestroyEvent,
47754 &_swigt__p_wxXPMHandler,
47755};
47756
47757static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47758static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47759static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47760static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47761static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47762static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47763static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47764static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47765static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47766static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47767static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47768static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47769static 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}};
47770static 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}};
47771static 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}};
47772static 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}};
47773static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47774static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47775static 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}};
47776static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47777static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47778static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47779static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47780static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47781static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47782static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47783static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47784static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47785static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47786static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47787static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47788static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47789static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47790static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47791static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47792static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47793static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47794static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47795static 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}};
47796static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47797static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47798static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47799static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47800static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47801static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47802static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47803static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47804static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47805static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47806static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47807static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47808static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47809static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47810static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47811static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47812static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47813static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47814static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47815static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47816static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47817static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47818static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47819static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47820static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47821static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47822static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47823static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47824static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47825static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47826static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47827static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47828static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47829static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47830static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47831static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47832static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47833static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47834static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47835static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 47836static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47837static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47838static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47839static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47840static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47841static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47842static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47843static 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
47844static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47845static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47846static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47847static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47848static 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}};
47849static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47850static 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}};
47851static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47852static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47853static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47854static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47855static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47856static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47857static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47858static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47859static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47860static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47861static 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}};
47862static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 47863static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47864static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47865static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47866static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47867static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47868static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47869static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47870static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47871static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47872static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47873static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47874static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47875static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47876static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47877static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47878static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47879static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47880static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47881static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47882static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47883static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 47884static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47885static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47886static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47887static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47888static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47889static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47890static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47891static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 47892static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
0085ce49 47893static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47894static 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
47895static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47896static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47897static 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}};
47898static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47899static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47900static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47901static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47902static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47903static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47904static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47905static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47906static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47907static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47908static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47909static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47910static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47911static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47912static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47913static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47914static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47915static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47916static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47917static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47918static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47919static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47920static 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}};
47921static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47922static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47923static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47924static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47925static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47926static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47927static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47928static 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}};
47929static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47930static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
47931static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
47932
47933static swig_cast_info *swig_cast_initial[] = {
47934 _swigc__p_bool,
47935 _swigc__p_char,
47936 _swigc__p_form_ops_t,
47937 _swigc__p_int,
47938 _swigc__p_long,
47939 _swigc__p_unsigned_char,
47940 _swigc__p_unsigned_int,
47941 _swigc__p_unsigned_long,
47942 _swigc__p_void,
47943 _swigc__p_wxANIHandler,
47944 _swigc__p_wxAcceleratorTable,
47945 _swigc__p_wxActivateEvent,
47946 _swigc__p_wxArrayInt,
47947 _swigc__p_wxArrayString,
47948 _swigc__p_wxBMPHandler,
47949 _swigc__p_wxBitmap,
47950 _swigc__p_wxBitmapButton,
47951 _swigc__p_wxBookCtrlBase,
47952 _swigc__p_wxBookCtrlBaseEvent,
47953 _swigc__p_wxBoxSizer,
47954 _swigc__p_wxButton,
47955 _swigc__p_wxCURHandler,
47956 _swigc__p_wxCheckBox,
47957 _swigc__p_wxCheckListBox,
47958 _swigc__p_wxChildFocusEvent,
47959 _swigc__p_wxChoice,
47960 _swigc__p_wxChoicebook,
47961 _swigc__p_wxChoicebookEvent,
2131d850 47962 _swigc__p_wxClipboardTextEvent,
0085ce49
RD
47963 _swigc__p_wxCloseEvent,
47964 _swigc__p_wxColour,
b850e7f3
RD
47965 _swigc__p_wxColourPickerCtrl,
47966 _swigc__p_wxColourPickerEvent,
0085ce49
RD
47967 _swigc__p_wxComboBox,
47968 _swigc__p_wxCommandEvent,
47969 _swigc__p_wxContextHelp,
47970 _swigc__p_wxContextHelpButton,
47971 _swigc__p_wxContextMenuEvent,
47972 _swigc__p_wxControl,
47973 _swigc__p_wxControlWithItems,
47974 _swigc__p_wxCursor,
47975 _swigc__p_wxDC,
47976 _swigc__p_wxDateEvent,
47977 _swigc__p_wxDatePickerCtrl,
47978 _swigc__p_wxDateTime,
47979 _swigc__p_wxDirFilterListCtrl,
b850e7f3 47980 _swigc__p_wxDirPickerCtrl,
0085ce49
RD
47981 _swigc__p_wxDisplayChangedEvent,
47982 _swigc__p_wxDropFilesEvent,
47983 _swigc__p_wxDuplexMode,
47984 _swigc__p_wxEraseEvent,
47985 _swigc__p_wxEvent,
47986 _swigc__p_wxEvtHandler,
47987 _swigc__p_wxFSFile,
b850e7f3
RD
47988 _swigc__p_wxFileDirPickerEvent,
47989 _swigc__p_wxFilePickerCtrl,
0085ce49
RD
47990 _swigc__p_wxFileSystem,
47991 _swigc__p_wxFlexGridSizer,
47992 _swigc__p_wxFocusEvent,
47993 _swigc__p_wxFont,
b850e7f3
RD
47994 _swigc__p_wxFontPickerCtrl,
47995 _swigc__p_wxFontPickerEvent,
0085ce49
RD
47996 _swigc__p_wxGBSizerItem,
47997 _swigc__p_wxGIFHandler,
47998 _swigc__p_wxGauge,
47999 _swigc__p_wxGenericDirCtrl,
48000 _swigc__p_wxGenericDragImage,
48001 _swigc__p_wxGridBagSizer,
48002 _swigc__p_wxGridSizer,
48003 _swigc__p_wxHelpEvent,
48004 _swigc__p_wxHelpProvider,
704eda0c
RD
48005 _swigc__p_wxHyperlinkCtrl,
48006 _swigc__p_wxHyperlinkEvent,
0085ce49
RD
48007 _swigc__p_wxICOHandler,
48008 _swigc__p_wxIcon,
48009 _swigc__p_wxIconizeEvent,
48010 _swigc__p_wxIdleEvent,
48011 _swigc__p_wxImage,
48012 _swigc__p_wxImageHandler,
48013 _swigc__p_wxImageList,
48014 _swigc__p_wxIndividualLayoutConstraint,
48015 _swigc__p_wxInitDialogEvent,
48016 _swigc__p_wxItemContainer,
48017 _swigc__p_wxJPEGHandler,
48018 _swigc__p_wxKeyEvent,
48019 _swigc__p_wxLayoutConstraints,
48020 _swigc__p_wxListBox,
48021 _swigc__p_wxListEvent,
48022 _swigc__p_wxListItem,
48023 _swigc__p_wxListItemAttr,
48024 _swigc__p_wxListView,
48025 _swigc__p_wxListbook,
48026 _swigc__p_wxListbookEvent,
48027 _swigc__p_wxMaximizeEvent,
48028 _swigc__p_wxMemoryDC,
48029 _swigc__p_wxMenu,
48030 _swigc__p_wxMenuBar,
48031 _swigc__p_wxMenuEvent,
48032 _swigc__p_wxMenuItem,
48033 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 48034 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
48035 _swigc__p_wxMouseEvent,
48036 _swigc__p_wxMoveEvent,
48037 _swigc__p_wxNavigationKeyEvent,
48038 _swigc__p_wxNcPaintEvent,
48039 _swigc__p_wxNotebook,
48040 _swigc__p_wxNotebookEvent,
48041 _swigc__p_wxNotifyEvent,
48042 _swigc__p_wxObject,
48043 _swigc__p_wxPCXHandler,
48044 _swigc__p_wxPNGHandler,
48045 _swigc__p_wxPNMHandler,
48046 _swigc__p_wxPaintEvent,
48047 _swigc__p_wxPaletteChangedEvent,
48048 _swigc__p_wxPaperSize,
b850e7f3 48049 _swigc__p_wxPickerBase,
0085ce49
RD
48050 _swigc__p_wxPoint,
48051 _swigc__p_wxPyApp,
48052 _swigc__p_wxPyCommandEvent,
48053 _swigc__p_wxPyControl,
48054 _swigc__p_wxPyEvent,
48055 _swigc__p_wxPyImageHandler,
48056 _swigc__p_wxPyListCtrl,
48057 _swigc__p_wxPySizer,
48058 _swigc__p_wxPyTreeCtrl,
48059 _swigc__p_wxPyTreeItemData,
48060 _swigc__p_wxPyValidator,
48061 _swigc__p_wxQueryNewPaletteEvent,
48062 _swigc__p_wxRadioBox,
48063 _swigc__p_wxRadioButton,
48064 _swigc__p_wxRect,
48065 _swigc__p_wxScrollBar,
48066 _swigc__p_wxScrollEvent,
48067 _swigc__p_wxScrollWinEvent,
48068 _swigc__p_wxSetCursorEvent,
48069 _swigc__p_wxShowEvent,
48070 _swigc__p_wxSimpleHelpProvider,
48071 _swigc__p_wxSize,
48072 _swigc__p_wxSizeEvent,
48073 _swigc__p_wxSizer,
48074 _swigc__p_wxSizerItem,
48075 _swigc__p_wxSlider,
48076 _swigc__p_wxSpinButton,
48077 _swigc__p_wxSpinCtrl,
48078 _swigc__p_wxSpinEvent,
48079 _swigc__p_wxStaticBitmap,
48080 _swigc__p_wxStaticBox,
48081 _swigc__p_wxStaticBoxSizer,
48082 _swigc__p_wxStaticLine,
48083 _swigc__p_wxStaticText,
48084 _swigc__p_wxStdDialogButtonSizer,
48085 _swigc__p_wxString,
48086 _swigc__p_wxSysColourChangedEvent,
48087 _swigc__p_wxTIFFHandler,
48088 _swigc__p_wxTextAttr,
48089 _swigc__p_wxTextCtrl,
48090 _swigc__p_wxTextUrlEvent,
48091 _swigc__p_wxToggleButton,
48092 _swigc__p_wxToolBar,
48093 _swigc__p_wxToolBarBase,
48094 _swigc__p_wxToolBarToolBase,
48095 _swigc__p_wxToolbook,
48096 _swigc__p_wxToolbookEvent,
0085ce49
RD
48097 _swigc__p_wxTreeEvent,
48098 _swigc__p_wxTreeItemId,
48099 _swigc__p_wxTreebook,
48100 _swigc__p_wxTreebookEvent,
48101 _swigc__p_wxUpdateUIEvent,
48102 _swigc__p_wxValidator,
48103 _swigc__p_wxVisualAttributes,
48104 _swigc__p_wxWindow,
b850e7f3 48105 _swigc__p_wxWindowBase,
0085ce49
RD
48106 _swigc__p_wxWindowCreateEvent,
48107 _swigc__p_wxWindowDestroyEvent,
48108 _swigc__p_wxXPMHandler,
48109};
48110
48111
48112/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48113
48114static swig_const_info swig_const_table[] = {
48115{0, 0, 0, 0.0, 0, 0}};
48116
48117#ifdef __cplusplus
48118}
48119#endif
48120/* -----------------------------------------------------------------------------
48121 * Type initialization:
48122 * This problem is tough by the requirement that no dynamic
48123 * memory is used. Also, since swig_type_info structures store pointers to
48124 * swig_cast_info structures and swig_cast_info structures store pointers back
48125 * to swig_type_info structures, we need some lookup code at initialization.
48126 * The idea is that swig generates all the structures that are needed.
48127 * The runtime then collects these partially filled structures.
48128 * The SWIG_InitializeModule function takes these initial arrays out of
48129 * swig_module, and does all the lookup, filling in the swig_module.types
48130 * array with the correct data and linking the correct swig_cast_info
48131 * structures together.
48132 *
48133 * The generated swig_type_info structures are assigned staticly to an initial
48134 * array. We just loop though that array, and handle each type individually.
48135 * First we lookup if this type has been already loaded, and if so, use the
48136 * loaded structure instead of the generated one. Then we have to fill in the
48137 * cast linked list. The cast data is initially stored in something like a
48138 * two-dimensional array. Each row corresponds to a type (there are the same
48139 * number of rows as there are in the swig_type_initial array). Each entry in
48140 * a column is one of the swig_cast_info structures for that type.
48141 * The cast_initial array is actually an array of arrays, because each row has
48142 * a variable number of columns. So to actually build the cast linked list,
48143 * we find the array of casts associated with the type, and loop through it
48144 * adding the casts to the list. The one last trick we need to do is making
48145 * sure the type pointer in the swig_cast_info struct is correct.
48146 *
48147 * First off, we lookup the cast->type name to see if it is already loaded.
48148 * There are three cases to handle:
48149 * 1) If the cast->type has already been loaded AND the type we are adding
48150 * casting info to has not been loaded (it is in this module), THEN we
48151 * replace the cast->type pointer with the type pointer that has already
48152 * been loaded.
48153 * 2) If BOTH types (the one we are adding casting info to, and the
48154 * cast->type) are loaded, THEN the cast info has already been loaded by
48155 * the previous module so we just ignore it.
48156 * 3) Finally, if cast->type has not already been loaded, then we add that
48157 * swig_cast_info to the linked list (because the cast->type) pointer will
48158 * be correct.
48159 * ----------------------------------------------------------------------------- */
48160
48161#ifdef __cplusplus
48162extern "C" {
48163#if 0
48164} /* c-mode */
48165#endif
48166#endif
48167
48168#if 0
48169#define SWIGRUNTIME_DEBUG
48170#endif
48171
48172SWIGRUNTIME void
48173SWIG_InitializeModule(void *clientdata) {
48174 size_t i;
48175 swig_module_info *module_head;
48176 static int init_run = 0;
48177
48178 clientdata = clientdata;
48179
48180 if (init_run) return;
48181 init_run = 1;
48182
48183 /* Initialize the swig_module */
48184 swig_module.type_initial = swig_type_initial;
48185 swig_module.cast_initial = swig_cast_initial;
48186
48187 /* Try and load any already created modules */
48188 module_head = SWIG_GetModule(clientdata);
48189 if (module_head) {
48190 swig_module.next = module_head->next;
48191 module_head->next = &swig_module;
48192 } else {
48193 /* This is the first module loaded */
48194 swig_module.next = &swig_module;
48195 SWIG_SetModule(clientdata, &swig_module);
48196 }
48197
48198 /* Now work on filling in swig_module.types */
48199#ifdef SWIGRUNTIME_DEBUG
48200 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48201#endif
48202 for (i = 0; i < swig_module.size; ++i) {
48203 swig_type_info *type = 0;
48204 swig_type_info *ret;
48205 swig_cast_info *cast;
d14a1e28 48206
0085ce49
RD
48207#ifdef SWIGRUNTIME_DEBUG
48208 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48209#endif
d14a1e28 48210
0085ce49
RD
48211 /* if there is another module already loaded */
48212 if (swig_module.next != &swig_module) {
48213 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 48214 }
0085ce49
RD
48215 if (type) {
48216 /* Overwrite clientdata field */
48217#ifdef SWIGRUNTIME_DEBUG
48218 printf("SWIG_InitializeModule: found type %s\n", type->name);
48219#endif
48220 if (swig_module.type_initial[i]->clientdata) {
48221 type->clientdata = swig_module.type_initial[i]->clientdata;
48222#ifdef SWIGRUNTIME_DEBUG
48223 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48224#endif
48225 }
48226 } else {
48227 type = swig_module.type_initial[i];
093d3ff1 48228 }
d14a1e28 48229
0085ce49
RD
48230 /* Insert casting types */
48231 cast = swig_module.cast_initial[i];
48232 while (cast->type) {
48233 /* Don't need to add information already in the list */
48234 ret = 0;
48235#ifdef SWIGRUNTIME_DEBUG
48236 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48237#endif
48238 if (swig_module.next != &swig_module) {
48239 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48240#ifdef SWIGRUNTIME_DEBUG
48241 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48242#endif
48243 }
48244 if (ret) {
48245 if (type == swig_module.type_initial[i]) {
48246#ifdef SWIGRUNTIME_DEBUG
48247 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48248#endif
48249 cast->type = ret;
48250 ret = 0;
48251 } else {
48252 /* Check for casting already in the list */
48253 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48254#ifdef SWIGRUNTIME_DEBUG
48255 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48256#endif
48257 if (!ocast) ret = 0;
48258 }
48259 }
48260
48261 if (!ret) {
48262#ifdef SWIGRUNTIME_DEBUG
48263 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48264#endif
48265 if (type->cast) {
48266 type->cast->prev = cast;
48267 cast->next = type->cast;
48268 }
48269 type->cast = cast;
48270 }
48271 cast++;
093d3ff1 48272 }
0085ce49
RD
48273 /* Set entry in modules->types array equal to the type */
48274 swig_module.types[i] = type;
48275 }
48276 swig_module.types[i] = 0;
48277
48278#ifdef SWIGRUNTIME_DEBUG
48279 printf("**** SWIG_InitializeModule: Cast List ******\n");
48280 for (i = 0; i < swig_module.size; ++i) {
48281 int j = 0;
48282 swig_cast_info *cast = swig_module.cast_initial[i];
48283 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48284 while (cast->type) {
48285 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48286 cast++;
48287 ++j;
48288 }
48289 printf("---- Total casts: %d\n",j);
48290 }
48291 printf("**** SWIG_InitializeModule: Cast List ******\n");
48292#endif
48293}
48294
48295/* This function will propagate the clientdata field of type to
48296* any new swig_type_info structures that have been added into the list
48297* of equivalent types. It is like calling
48298* SWIG_TypeClientData(type, clientdata) a second time.
48299*/
48300SWIGRUNTIME void
48301SWIG_PropagateClientData(void) {
48302 size_t i;
48303 swig_cast_info *equiv;
48304 static int init_run = 0;
48305
48306 if (init_run) return;
48307 init_run = 1;
48308
48309 for (i = 0; i < swig_module.size; i++) {
48310 if (swig_module.types[i]->clientdata) {
48311 equiv = swig_module.types[i]->cast;
48312 while (equiv) {
48313 if (!equiv->converter) {
48314 if (equiv->type && !equiv->type->clientdata)
48315 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48316 }
48317 equiv = equiv->next;
48318 }
093d3ff1 48319 }
0085ce49
RD
48320 }
48321}
48322
48323#ifdef __cplusplus
48324#if 0
48325{
48326 /* c-mode */
48327#endif
48328}
48329#endif
48330
48331
48332
48333#ifdef __cplusplus
48334extern "C" {
48335#endif
48336
48337 /* Python-specific SWIG API */
48338#define SWIG_newvarlink() SWIG_Python_newvarlink()
48339#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48340#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48341
48342 /* -----------------------------------------------------------------------------
48343 * global variable support code.
48344 * ----------------------------------------------------------------------------- */
48345
48346 typedef struct swig_globalvar {
48347 char *name; /* Name of global variable */
48348 PyObject *(*get_attr)(void); /* Return the current value */
48349 int (*set_attr)(PyObject *); /* Set the value */
48350 struct swig_globalvar *next;
48351 } swig_globalvar;
48352
48353 typedef struct swig_varlinkobject {
48354 PyObject_HEAD
48355 swig_globalvar *vars;
48356 } swig_varlinkobject;
48357
48358 SWIGINTERN PyObject *
48359 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48360 return PyString_FromString("<Swig global variables>");
48361 }
48362
48363 SWIGINTERN PyObject *
48364 swig_varlink_str(swig_varlinkobject *v) {
48365 PyObject *str = PyString_FromString("(");
48366 swig_globalvar *var;
48367 for (var = v->vars; var; var=var->next) {
48368 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48369 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48370 }
48371 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48372 return str;
48373 }
48374
48375 SWIGINTERN int
48376 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48377 PyObject *str = swig_varlink_str(v);
48378 fprintf(fp,"Swig global variables ");
48379 fprintf(fp,"%s\n", PyString_AsString(str));
48380 Py_DECREF(str);
48381 return 0;
48382 }
48383
48384 SWIGINTERN void
48385 swig_varlink_dealloc(swig_varlinkobject *v) {
48386 swig_globalvar *var = v->vars;
48387 while (var) {
48388 swig_globalvar *n = var->next;
48389 free(var->name);
48390 free(var);
48391 var = n;
093d3ff1 48392 }
0085ce49
RD
48393 }
48394
48395 SWIGINTERN PyObject *
48396 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48397 PyObject *res = NULL;
48398 swig_globalvar *var = v->vars;
48399 while (var) {
48400 if (strcmp(var->name,n) == 0) {
48401 res = (*var->get_attr)();
48402 break;
48403 }
48404 var = var->next;
093d3ff1 48405 }
0085ce49
RD
48406 if (res == NULL && !PyErr_Occurred()) {
48407 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 48408 }
0085ce49
RD
48409 return res;
48410 }
48411
48412 SWIGINTERN int
48413 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48414 int res = 1;
48415 swig_globalvar *var = v->vars;
48416 while (var) {
48417 if (strcmp(var->name,n) == 0) {
48418 res = (*var->set_attr)(p);
48419 break;
48420 }
48421 var = var->next;
093d3ff1 48422 }
0085ce49
RD
48423 if (res == 1 && !PyErr_Occurred()) {
48424 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48425 }
0085ce49
RD
48426 return res;
48427 }
48428
48429 SWIGINTERN PyTypeObject*
48430 swig_varlink_type(void) {
48431 static char varlink__doc__[] = "Swig var link object";
48432 static PyTypeObject varlink_type;
48433 static int type_init = 0;
48434 if (!type_init) {
48435 const PyTypeObject tmp
48436 = {
48437 PyObject_HEAD_INIT(NULL)
48438 0, /* Number of items in variable part (ob_size) */
48439 (char *)"swigvarlink", /* Type name (tp_name) */
48440 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48441 0, /* Itemsize (tp_itemsize) */
48442 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48443 (printfunc) swig_varlink_print, /* Print (tp_print) */
48444 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48445 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48446 0, /* tp_compare */
48447 (reprfunc) swig_varlink_repr, /* tp_repr */
48448 0, /* tp_as_number */
48449 0, /* tp_as_sequence */
48450 0, /* tp_as_mapping */
48451 0, /* tp_hash */
48452 0, /* tp_call */
48453 (reprfunc)swig_varlink_str, /* tp_str */
48454 0, /* tp_getattro */
48455 0, /* tp_setattro */
48456 0, /* tp_as_buffer */
48457 0, /* tp_flags */
48458 varlink__doc__, /* tp_doc */
48459 0, /* tp_traverse */
48460 0, /* tp_clear */
48461 0, /* tp_richcompare */
48462 0, /* tp_weaklistoffset */
48463#if PY_VERSION_HEX >= 0x02020000
48464 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48465#endif
48466#if PY_VERSION_HEX >= 0x02030000
48467 0, /* tp_del */
48468#endif
48469#ifdef COUNT_ALLOCS
48470 0,0,0,0 /* tp_alloc -> tp_next */
48471#endif
48472 };
48473 varlink_type = tmp;
48474 varlink_type.ob_type = &PyType_Type;
48475 type_init = 1;
53aa7709 48476 }
0085ce49
RD
48477 return &varlink_type;
48478 }
48479
48480 /* Create a variable linking object for use later */
48481 SWIGINTERN PyObject *
48482 SWIG_Python_newvarlink(void) {
48483 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48484 if (result) {
48485 result->vars = 0;
48486 }
48487 return ((PyObject*) result);
48488 }
48489
48490 SWIGINTERN void
48491 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48492 swig_varlinkobject *v = (swig_varlinkobject *) p;
48493 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48494 if (gv) {
48495 size_t size = strlen(name)+1;
48496 gv->name = (char *)malloc(size);
48497 if (gv->name) {
48498 strncpy(gv->name,name,size);
48499 gv->get_attr = get_attr;
48500 gv->set_attr = set_attr;
48501 gv->next = v->vars;
48502 }
53aa7709 48503 }
0085ce49
RD
48504 v->vars = gv;
48505 }
48506
48507 SWIGINTERN PyObject *
48508 SWIG_globals() {
48509 static PyObject *_SWIG_globals = 0;
48510 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48511 return _SWIG_globals;
48512 }
48513
48514 /* -----------------------------------------------------------------------------
48515 * constants/methods manipulation
48516 * ----------------------------------------------------------------------------- */
48517
48518 /* Install Constants */
48519 SWIGINTERN void
48520 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48521 PyObject *obj = 0;
48522 size_t i;
48523 for (i = 0; constants[i].type; ++i) {
48524 switch(constants[i].type) {
48525 case SWIG_PY_POINTER:
48526 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48527 break;
48528 case SWIG_PY_BINARY:
48529 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48530 break;
48531 default:
48532 obj = 0;
48533 break;
48534 }
48535 if (obj) {
48536 PyDict_SetItemString(d, constants[i].name, obj);
48537 Py_DECREF(obj);
48538 }
53aa7709 48539 }
0085ce49
RD
48540 }
48541
48542 /* -----------------------------------------------------------------------------*/
48543 /* Fix SwigMethods to carry the callback ptrs when needed */
48544 /* -----------------------------------------------------------------------------*/
48545
48546 SWIGINTERN void
48547 SWIG_Python_FixMethods(PyMethodDef *methods,
48548 swig_const_info *const_table,
48549 swig_type_info **types,
48550 swig_type_info **types_initial) {
48551 size_t i;
48552 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 48553 const char *c = methods[i].ml_doc;
0085ce49
RD
48554 if (c && (c = strstr(c, "swig_ptr: "))) {
48555 int j;
48556 swig_const_info *ci = 0;
453fb36b 48557 const char *name = c + 10;
0085ce49
RD
48558 for (j = 0; const_table[j].type; ++j) {
48559 if (strncmp(const_table[j].name, name,
48560 strlen(const_table[j].name)) == 0) {
48561 ci = &(const_table[j]);
48562 break;
48563 }
48564 }
48565 if (ci) {
48566 size_t shift = (ci->ptype) - types;
48567 swig_type_info *ty = types_initial[shift];
48568 size_t ldoc = (c - methods[i].ml_doc);
48569 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48570 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48571 if (ndoc) {
48572 char *buff = ndoc;
48573 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48574 if (ptr) {
48575 strncpy(buff, methods[i].ml_doc, ldoc);
48576 buff += ldoc;
48577 strncpy(buff, "swig_ptr: ", 10);
48578 buff += 10;
48579 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48580 methods[i].ml_doc = ndoc;
48581 }
48582 }
48583 }
48584 }
53aa7709 48585 }
0085ce49
RD
48586 }
48587
48588#ifdef __cplusplus
48589}
48590#endif
48591
48592/* -----------------------------------------------------------------------------*
48593 * Partial Init method
48594 * -----------------------------------------------------------------------------*/
48595
48596#ifdef __cplusplus
48597extern "C"
48598#endif
48599SWIGEXPORT void SWIG_init(void) {
48600 PyObject *m, *d;
48601
48602 /* Fix SwigMethods to carry the callback ptrs when needed */
48603 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48604
48605 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48606 d = PyModule_GetDict(m);
48607
48608 SWIG_InitializeModule(0);
48609 SWIG_InstallConstants(d,swig_const_table);
48610
48611
48612 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48613 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48614 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48615 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48616 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48617 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48618 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48619 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48620 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48621 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48622 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48623 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48624 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48625 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48626 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48627 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48628 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48629 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48630 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48631 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48632 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48633 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
0085ce49
RD
48634 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48635 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48636 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48637 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48638 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48639 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48640 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48641 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48642 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48643 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48644 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48645 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48646 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48647 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48648 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48649 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48650 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48651 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48652 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48653 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48654 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48655 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48656 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
0085ce49
RD
48657 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48658 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48659 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48660 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48661 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48662 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48663 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48664 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48665 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48666 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48667 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48668 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48669 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48670 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48671 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48672 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48673 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48674 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48675 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48676 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48677 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48678 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48679 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48680 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48681 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48682 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48683 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48684 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48685 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48686 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48687 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48688 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48689 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48690 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48691 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48692 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48693 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48694 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48695 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48696 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48697 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48698 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48699 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48700 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48701 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48702 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48703 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48704 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48705 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48706 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48707 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48708 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48709 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48710 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48711 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48712 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48713 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48714 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48715 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48716 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48717 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48718 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48719 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48720 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
48721 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48722 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48723 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48724 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48725 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
0085ce49
RD
48726 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48727 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48728 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48729 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48730 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48731 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48732 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48733 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48734 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48735 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48736 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48737 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
0085ce49
RD
48738 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48739 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48740 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48741 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48742 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48743 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48744 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48745 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48746 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48747 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48748 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48749 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48750 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48751 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48752 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48753 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48754 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48755 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48756 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48757 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48758 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48759 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48760 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48761 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48762 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48763 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48764 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48765 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48766 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48767 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48768 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48769 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48770 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48771 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48772 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48773 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48774 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48775 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48776 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
0085ce49
RD
48777 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48778 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48779 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48780 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48781 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48782 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48783 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48784 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48785 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48786 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48787 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48788 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48789 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48790 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48791 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48792 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48793 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48794 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48795 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48796 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48797 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48798 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48799 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48800 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48801 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48802 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48803 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48804 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48805 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48806 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48807 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48808 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48809 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48810 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48811 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48812 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48813 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48814 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48815 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48816 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48817 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48818 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48819 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48820 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48821 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48822 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48823 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 48824 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
0085ce49
RD
48825 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48826 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48827 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48828 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48829 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48830 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48831 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48832 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48833 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48834 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48835 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48836 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48837 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48838 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48839 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48840 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48841 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48842 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48843 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48844 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48845 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48846 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48847 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48848 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48849 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48850 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48851 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48852 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48853 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48854 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48855 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48856 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48857 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48858 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48859 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48860 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48861 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48862 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48863 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48864 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48865 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48866 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48867
48868 // Map renamed classes back to their common name for OOR
48869 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48870
48871 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48872 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48873 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48874 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48875 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48876 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48877 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48878 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48879 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48880 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48881 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48882 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48883 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48884 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48885 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
0085ce49
RD
48886 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48887 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48888 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48889 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48890 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48891 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48892 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48893 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48894 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48895 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48896 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48897 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48898 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48899 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48900 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48901 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48902 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48903 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48904 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48905 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48906 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48907 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48908 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48909 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48910 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48911 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48912 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48913 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48914 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48915 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48916 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48917 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48918 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48919 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48920 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48921 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48922 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48923 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48924 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48925 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 48926 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
0085ce49
RD
48927
48928 // Map renamed classes back to their common name for OOR
48929 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48930 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48931
48932 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48933 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48934 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48935 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48936 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48937 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48938 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
48939 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
48940 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48941 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
48942 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48943 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48944 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
0085ce49
RD
48945
48946 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48947
48948 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48949 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48950 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48951 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48952 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48953 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
48954 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48955 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48956 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48957 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
48958 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48959 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48960 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48961 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48962 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48963 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48964 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48965 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48966 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48967 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48968 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48969 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48970 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48971 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48972 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48973 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48974 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48975 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48976 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48977 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48978 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48979 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48980 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48981 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48982 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48983 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48984 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48985 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48986 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48987 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d14a1e28
RD
48988}
48989