]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/calendar_wrap.cpp
log wxChoice events in the same format as wxComboBox ones to make it simpler to compa...
[wxWidgets.git] / wxPython / src / mac / calendar_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
32fe5131 3 * Version 1.3.27
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
d14a1e28
RD
12
13#ifdef __cplusplus
14template<class T> class SwigValueWrapper {
15 T *tt;
16public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 26};
d14a1e28
RD
27#endif
28
32fe5131
RD
29/***********************************************************************
30 *
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 *
34 ************************************************************************/
d14a1e28 35
32fe5131
RD
36/* template workaround for compilers that cannot correctly implement the C++ standard */
37#ifndef SWIGTEMPLATEDISAMBIGUATOR
38# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
36ed4f51 40# else
32fe5131 41# define SWIGTEMPLATEDISAMBIGUATOR
36ed4f51
RD
42# endif
43#endif
d14a1e28 44
32fe5131
RD
45/* inline attribute */
46#ifndef SWIGINLINE
47# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48# define SWIGINLINE inline
49# else
50# define SWIGINLINE
51# endif
52#endif
53
54/* attribute recognised by some compilers to avoid 'unused' warnings */
55#ifndef SWIGUNUSED
56# if defined(__GNUC__) || defined(__ICC)
57# define SWIGUNUSED __attribute__ ((unused))
58# else
59# define SWIGUNUSED
60# endif
61#endif
62
63/* internal SWIG method */
64#ifndef SWIGINTERN
65# define SWIGINTERN static SWIGUNUSED
66#endif
67
68/* internal inline SWIG method */
69#ifndef SWIGINTERNINLINE
70# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
71#endif
72
73/* exporting methods for Windows DLLs */
74#ifndef SWIGEXPORT
75# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76# if defined(STATIC_LINKED)
77# define SWIGEXPORT
78# else
79# define SWIGEXPORT __declspec(dllexport)
80# endif
81# else
82# define SWIGEXPORT
83# endif
84#endif
85
86/* calling conventions for Windows */
87#ifndef SWIGSTDCALL
88# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89# define SWIGSTDCALL __stdcall
90# else
91# define SWIGSTDCALL
92# endif
93#endif
94
95
9fd4be55 96
36ed4f51 97#include <Python.h>
d14a1e28
RD
98
99/***********************************************************************
36ed4f51 100 * swigrun.swg
d14a1e28 101 *
36ed4f51
RD
102 * This file contains generic CAPI SWIG runtime support for pointer
103 * type checking.
d14a1e28
RD
104 *
105 ************************************************************************/
106
36ed4f51
RD
107/* This should only be incremented when either the layout of swig_type_info changes,
108 or for whatever reason, the runtime changes incompatibly */
32fe5131 109#define SWIG_RUNTIME_VERSION "2"
d14a1e28 110
36ed4f51
RD
111/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
112#ifdef SWIG_TYPE_TABLE
32fe5131
RD
113# define SWIG_QUOTE_STRING(x) #x
114# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
115# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 116#else
32fe5131 117# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
118#endif
119
120/*
121 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
122 creating a static or dynamic library from the swig runtime code.
123 In 99.9% of the cases, swig just needs to declare them as 'static'.
124
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
127*/
32fe5131 128
36ed4f51 129#ifndef SWIGRUNTIME
32fe5131 130# define SWIGRUNTIME SWIGINTERN
36ed4f51 131#endif
32fe5131 132
36ed4f51 133#ifndef SWIGRUNTIMEINLINE
32fe5131 134# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
135#endif
136
32fe5131
RD
137#include <string.h>
138
d14a1e28
RD
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143typedef void *(*swig_converter_func)(void *);
144typedef struct swig_type_info *(*swig_dycast_func)(void **);
145
32fe5131 146/* Structure to store inforomation on one type */
d14a1e28 147typedef struct swig_type_info {
32fe5131
RD
148 const char *name; /* mangled name of this type */
149 const char *str; /* human readable name of this type */
150 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
151 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
152 void *clientdata; /* language specific type data */
d14a1e28
RD
153} swig_type_info;
154
32fe5131
RD
155/* Structure to store a type and conversion function used for casting */
156typedef struct swig_cast_info {
157 swig_type_info *type; /* pointer to type that is equivalent to this type */
158 swig_converter_func converter; /* function to cast the void pointers */
159 struct swig_cast_info *next; /* pointer to next cast in linked list */
160 struct swig_cast_info *prev; /* pointer to the previous cast */
161} swig_cast_info;
162
163/* Structure used to store module information
164 * Each module generates one structure like this, and the runtime collects
165 * all of these structures and stores them in a circularly linked list.*/
166typedef struct swig_module_info {
167 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
168 size_t size; /* Number of types in this module */
169 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
170 swig_type_info **type_initial; /* Array of initially generated type structures */
171 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
172 void *clientdata; /* Language specific module data */
173} swig_module_info;
174
175
36ed4f51
RD
176/*
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
179
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
182*/
183SWIGRUNTIME int
184SWIG_TypeNameComp(const char *f1, const char *l1,
185 const char *f2, const char *l2) {
186 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
187 while ((*f1 == ' ') && (f1 != l1)) ++f1;
188 while ((*f2 == ' ') && (f2 != l2)) ++f2;
32fe5131 189 if (*f1 != *f2) return (int)(*f1 - *f2);
36ed4f51
RD
190 }
191 return (l1 - f1) - (l2 - f2);
192}
193
194/*
195 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 196 Return 0 if not equal, 1 if equal
36ed4f51
RD
197*/
198SWIGRUNTIME int
199SWIG_TypeEquiv(const char *nb, const char *tb) {
200 int equiv = 0;
201 const char* te = tb + strlen(tb);
202 const char* ne = nb;
203 while (!equiv && *ne) {
204 for (nb = ne; *ne; ++ne) {
205 if (*ne == '|') break;
206 }
32fe5131 207 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
208 if (*ne) ++ne;
209 }
210 return equiv;
211}
212
213/*
32fe5131
RD
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 216*/
32fe5131
RD
217SWIGRUNTIME int
218SWIG_TypeCompare(const char *nb, const char *tb) {
219 int equiv = 0;
220 const char* te = tb + strlen(tb);
221 const char* ne = nb;
222 while (!equiv && *ne) {
223 for (nb = ne; *ne; ++ne) {
224 if (*ne == '|') break;
36ed4f51 225 }
32fe5131
RD
226 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
227 if (*ne) ++ne;
36ed4f51 228 }
32fe5131 229 return equiv;
36ed4f51
RD
230}
231
32fe5131
RD
232
233/* think of this as a c++ template<> or a scheme macro */
234#define SWIG_TypeCheck_Template(comparison, ty) \
235 if (ty) { \
236 swig_cast_info *iter = ty->cast; \
237 while (iter) { \
238 if (comparison) { \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
242 if (iter->next) \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
245 iter->prev = 0; \
246 if (ty->cast) ty->cast->prev = iter; \
247 ty->cast = iter; \
248 return iter; \
249 } \
250 iter = iter->next; \
251 } \
252 } \
253 return 0
254
36ed4f51
RD
255/*
256 Check the typename
257*/
32fe5131 258SWIGRUNTIME swig_cast_info *
36ed4f51 259SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
260 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
261}
262
263/* Same as previous function, except strcmp is replaced with a pointer comparison */
264SWIGRUNTIME swig_cast_info *
265SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
266 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
267}
268
269/*
270 Cast a pointer up an inheritance hierarchy
271*/
272SWIGRUNTIMEINLINE void *
32fe5131 273SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
274 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
275}
276
277/*
278 Dynamic pointer casting. Down an inheritance hierarchy
279*/
280SWIGRUNTIME swig_type_info *
281SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
282 swig_type_info *lastty = ty;
283 if (!ty || !ty->dcast) return ty;
284 while (ty && (ty->dcast)) {
285 ty = (*ty->dcast)(ptr);
286 if (ty) lastty = ty;
287 }
288 return lastty;
289}
290
291/*
292 Return the name associated with this type
293*/
294SWIGRUNTIMEINLINE const char *
295SWIG_TypeName(const swig_type_info *ty) {
296 return ty->name;
297}
298
299/*
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
302*/
303SWIGRUNTIME const char *
304SWIG_TypePrettyName(const swig_type_info *type) {
305 /* The "str" field contains the equivalent pretty names of the
306 type, separated by vertical-bar characters. We choose
307 to print the last name, as it is often (?) the most
308 specific. */
309 if (type->str != NULL) {
310 const char *last_name = type->str;
311 const char *s;
312 for (s = type->str; *s; s++)
313 if (*s == '|') last_name = s+1;
314 return last_name;
315 }
316 else
317 return type->name;
318}
319
36ed4f51
RD
320/*
321 Set the clientdata field for a type
322*/
323SWIGRUNTIME void
32fe5131
RD
324SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
325 swig_cast_info *cast = ti->cast;
36ed4f51
RD
326 /* if (ti->clientdata == clientdata) return; */
327 ti->clientdata = clientdata;
32fe5131
RD
328
329 while (cast) {
330 if (!cast->converter) {
331 swig_type_info *tc = cast->type;
332 if (!tc->clientdata) {
333 SWIG_TypeClientData(tc, clientdata);
36ed4f51 334 }
32fe5131
RD
335 }
336 cast = cast->next;
337 }
338}
339
340/*
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
343
344 We start searching at module start, and finish searching when start == end.
345 Note: if start == end at the beginning of the function, we go all the way around
346 the circular list.
347*/
348SWIGRUNTIME swig_type_info *
349SWIG_MangledTypeQueryModule(swig_module_info *start,
350 swig_module_info *end,
351 const char *name) {
352 swig_module_info *iter = start;
353 do {
354 if (iter->size) {
355 register size_t l = 0;
356 register size_t r = iter->size - 1;
357 do {
358 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
359 register size_t i = (l + r) >> 1;
360 const char *iname = iter->types[i]->name;
361 if (iname) {
362 register int compare = strcmp(name, iname);
363 if (compare == 0) {
364 return iter->types[i];
365 } else if (compare < 0) {
366 if (i) {
367 r = i - 1;
368 } else {
369 break;
370 }
371 } else if (compare > 0) {
372 l = i + 1;
373 }
374 } else {
375 break; /* should never happen */
376 }
377 } while (l <= r);
36ed4f51 378 }
32fe5131
RD
379 iter = iter->next;
380 } while (iter != end);
381 return 0;
382}
383
384/*
385 Search for a swig_type_info structure for either a mangled name or a human readable name.
386 It first searches the mangled names of the types, which is a O(log #types)
387 If a type is not found it then searches the human readable names, which is O(#types).
388
389 We start searching at module start, and finish searching when start == end.
390 Note: if start == end at the beginning of the function, we go all the way around
391 the circular list.
392*/
393SWIGRUNTIME swig_type_info *
394SWIG_TypeQueryModule(swig_module_info *start,
395 swig_module_info *end,
396 const char *name) {
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
399 if (ret) {
400 return ret;
401 } else {
402 /* STEP 2: If the type hasn't been found, do a complete search
403 of the str field (the human readable name) */
404 swig_module_info *iter = start;
405 do {
406 register size_t i = 0;
407 for (; i < iter->size; ++i) {
408 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
409 return iter->types[i];
410 }
411 iter = iter->next;
412 } while (iter != end);
36ed4f51 413 }
32fe5131
RD
414
415 /* neither found a match */
416 return 0;
36ed4f51
RD
417}
418
32fe5131 419
36ed4f51
RD
420/*
421 Pack binary data into a string
422*/
423SWIGRUNTIME char *
424SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
425 static const char hex[17] = "0123456789abcdef";
426 register const unsigned char *u = (unsigned char *) ptr;
427 register const unsigned char *eu = u + sz;
36ed4f51 428 for (; u != eu; ++u) {
32fe5131 429 register unsigned char uu = *u;
36ed4f51
RD
430 *(c++) = hex[(uu & 0xf0) >> 4];
431 *(c++) = hex[uu & 0xf];
432 }
433 return c;
434}
435
436/*
437 Unpack binary data from a string
438*/
439SWIGRUNTIME const char *
440SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
441 register unsigned char *u = (unsigned char *) ptr;
32fe5131 442 register const unsigned char *eu = u + sz;
36ed4f51 443 for (; u != eu; ++u) {
32fe5131 444 register char d = *(c++);
36ed4f51
RD
445 register unsigned char uu = 0;
446 if ((d >= '0') && (d <= '9'))
447 uu = ((d - '0') << 4);
448 else if ((d >= 'a') && (d <= 'f'))
449 uu = ((d - ('a'-10)) << 4);
450 else
451 return (char *) 0;
452 d = *(c++);
453 if ((d >= '0') && (d <= '9'))
454 uu |= (d - '0');
455 else if ((d >= 'a') && (d <= 'f'))
456 uu |= (d - ('a'-10));
457 else
458 return (char *) 0;
459 *u = uu;
460 }
461 return c;
462}
463
36ed4f51
RD
464/*
465 Pack 'void *' into a string buffer.
466*/
467SWIGRUNTIME char *
468SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
469 char *r = buff;
470 if ((2*sizeof(void *) + 2) > bsz) return 0;
471 *(r++) = '_';
472 r = SWIG_PackData(r,&ptr,sizeof(void *));
473 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
474 strcpy(r,name);
475 return buff;
476}
477
478SWIGRUNTIME const char *
479SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
480 if (*c != '_') {
481 if (strcmp(c,"NULL") == 0) {
482 *ptr = (void *) 0;
483 return name;
484 } else {
485 return 0;
486 }
487 }
488 return SWIG_UnpackData(++c,ptr,sizeof(void *));
489}
490
491SWIGRUNTIME char *
492SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
493 char *r = buff;
494 size_t lname = (name ? strlen(name) : 0);
495 if ((2*sz + 2 + lname) > bsz) return 0;
496 *(r++) = '_';
497 r = SWIG_PackData(r,ptr,sz);
498 if (lname) {
499 strncpy(r,name,lname+1);
500 } else {
501 *r = 0;
502 }
503 return buff;
504}
d14a1e28 505
36ed4f51
RD
506SWIGRUNTIME const char *
507SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
508 if (*c != '_') {
509 if (strcmp(c,"NULL") == 0) {
510 memset(ptr,0,sz);
511 return name;
512 } else {
513 return 0;
514 }
515 }
516 return SWIG_UnpackData(++c,ptr,sz);
517}
d14a1e28
RD
518
519#ifdef __cplusplus
520}
521#endif
522
36ed4f51
RD
523/* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
526
d14a1e28
RD
527#ifdef __cplusplus
528extern "C" {
529#endif
530
36ed4f51
RD
531/* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
534
535#ifndef SWIGINTERN
32fe5131 536# define SWIGINTERN static SWIGUNUSED
36ed4f51
RD
537#endif
538
32fe5131
RD
539#ifndef SWIGINTERNINLINE
540# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
36ed4f51
RD
541#endif
542
36ed4f51
RD
543/*
544 Exception handling in wrappers
545*/
546#define SWIG_fail goto fail
547#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
548#define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
549#define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
550#define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
551#define SWIG_null_ref(type) SWIG_Python_NullRef(type)
552
553/*
554 Contract support
555*/
556#define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
558
559/* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
562
563/* Constant Types */
d14a1e28
RD
564#define SWIG_PY_INT 1
565#define SWIG_PY_FLOAT 2
566#define SWIG_PY_STRING 3
567#define SWIG_PY_POINTER 4
568#define SWIG_PY_BINARY 5
569
36ed4f51
RD
570/* Constant information structure */
571typedef struct swig_const_info {
572 int type;
573 char *name;
574 long lvalue;
575 double dvalue;
576 void *pvalue;
577 swig_type_info **ptype;
578} swig_const_info;
579
580
581/* -----------------------------------------------------------------------------
582 * Alloc. memory flags
583 * ----------------------------------------------------------------------------- */
584#define SWIG_OLDOBJ 1
585#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
586#define SWIG_PYSTR SWIG_NEWOBJ + 1
587
588#ifdef __cplusplus
589}
590#endif
591
592
593/***********************************************************************
594 * pyrun.swg
595 *
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
598 * type checking.
599 *
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
602
603/* Common SWIG API */
604#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
605#define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
606#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
607
608
609/* Python-specific SWIG API */
610#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
611#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
612
32fe5131
RD
613/* Runtime API */
614#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
36ed4f51
RD
616
617/* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
620/*
621 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
622 C/C++ pointers in the python side. Very useful for debugging, but
623 not always safe.
624*/
625#if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626# define SWIG_COBJECT_TYPES
627#endif
628
d14a1e28 629/* Flags for pointer conversion */
36ed4f51
RD
630#define SWIG_POINTER_EXCEPTION 0x1
631#define SWIG_POINTER_DISOWN 0x2
632
633
32fe5131
RD
634/* Add PyOS_snprintf for old Pythons */
635#if PY_VERSION_HEX < 0x02020000
636#define PyOS_snprintf snprintf
637#endif
638
36ed4f51
RD
639#ifdef __cplusplus
640extern "C" {
641#endif
642
643/* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
36ed4f51
RD
646#ifndef SWIG_BUFFER_SIZE
647#define SWIG_BUFFER_SIZE 1024
648#endif
649
32fe5131
RD
650/* A crude PyString_FromFormat implementation for old Pythons */
651#if PY_VERSION_HEX < 0x02020000
652static PyObject *
653PyString_FromFormat(const char *fmt, ...) {
654 va_list ap;
655 char buf[SWIG_BUFFER_SIZE * 2];
656 int res;
657 va_start(ap, fmt);
658 res = vsnprintf(buf, sizeof(buf), fmt, ap);
659 va_end(ap);
660 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
661}
662#endif
663
664#if PY_VERSION_HEX < 0x01060000
665#define PyObject_Del(op) PyMem_DEL((op))
666#endif
667
36ed4f51
RD
668#if defined(SWIG_COBJECT_TYPES)
669#if !defined(SWIG_COBJECT_PYTHON)
670/* -----------------------------------------------------------------------------
671 * Implements a simple Swig Object type, and use it instead of PyCObject
672 * ----------------------------------------------------------------------------- */
673
674typedef struct {
675 PyObject_HEAD
676 void *ptr;
677 const char *desc;
678} PySwigObject;
679
680/* Declarations for objects of type PySwigObject */
681
682SWIGRUNTIME int
683PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
684{
685 char result[SWIG_BUFFER_SIZE];
32fe5131 686 flags = flags;
36ed4f51
RD
687 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
688 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
689 return 0;
690 } else {
691 return 1;
692 }
693}
694
695SWIGRUNTIME PyObject *
696PySwigObject_repr(PySwigObject *v)
697{
698 char result[SWIG_BUFFER_SIZE];
699 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
700 PyString_FromFormat("<Swig Object at %s>", result) : 0;
701}
702
703SWIGRUNTIME PyObject *
704PySwigObject_str(PySwigObject *v)
705{
706 char result[SWIG_BUFFER_SIZE];
707 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
708 PyString_FromString(result) : 0;
709}
710
711SWIGRUNTIME PyObject *
712PySwigObject_long(PySwigObject *v)
713{
32fe5131
RD
714 return PyLong_FromVoidPtr(v->ptr);
715}
716
717SWIGRUNTIME PyObject *
718PySwigObject_format(const char* fmt, PySwigObject *v)
719{
720 PyObject *res = NULL;
721 PyObject *args = PyTuple_New(1);
722 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
723 PyObject *ofmt = PyString_FromString(fmt);
724 if (ofmt) {
725 res = PyString_Format(ofmt,args);
726 Py_DECREF(ofmt);
727 }
728 Py_DECREF(args);
729 }
730 return res;
36ed4f51
RD
731}
732
733SWIGRUNTIME PyObject *
734PySwigObject_oct(PySwigObject *v)
735{
32fe5131 736 return PySwigObject_format("%o",v);
36ed4f51
RD
737}
738
739SWIGRUNTIME PyObject *
740PySwigObject_hex(PySwigObject *v)
741{
32fe5131 742 return PySwigObject_format("%x",v);
36ed4f51
RD
743}
744
745SWIGRUNTIME int
746PySwigObject_compare(PySwigObject *v, PySwigObject *w)
747{
748 int c = strcmp(v->desc, w->desc);
749 if (c) {
32fe5131 750 return (c > 0) ? 1 : -1;
36ed4f51
RD
751 } else {
752 void *i = v->ptr;
753 void *j = w->ptr;
32fe5131 754 return (i < j) ? -1 : ((i > j) ? 1 : 0);
36ed4f51
RD
755 }
756}
757
758SWIGRUNTIME void
759PySwigObject_dealloc(PySwigObject *self)
760{
32fe5131 761 PyObject_Del(self);
36ed4f51
RD
762}
763
764SWIGRUNTIME PyTypeObject*
32fe5131
RD
765PySwigObject_type(void) {
766 static char pyswigobject_type__doc__[] =
36ed4f51
RD
767 "Swig object carries a C/C++ instance pointer";
768
769 static PyNumberMethods PySwigObject_as_number = {
770 (binaryfunc)0, /*nb_add*/
771 (binaryfunc)0, /*nb_subtract*/
772 (binaryfunc)0, /*nb_multiply*/
773 (binaryfunc)0, /*nb_divide*/
774 (binaryfunc)0, /*nb_remainder*/
775 (binaryfunc)0, /*nb_divmod*/
776 (ternaryfunc)0,/*nb_power*/
777 (unaryfunc)0, /*nb_negative*/
778 (unaryfunc)0, /*nb_positive*/
779 (unaryfunc)0, /*nb_absolute*/
780 (inquiry)0, /*nb_nonzero*/
781 0, /*nb_invert*/
782 0, /*nb_lshift*/
783 0, /*nb_rshift*/
784 0, /*nb_and*/
785 0, /*nb_xor*/
786 0, /*nb_or*/
787 (coercion)0, /*nb_coerce*/
788 (unaryfunc)PySwigObject_long, /*nb_int*/
789 (unaryfunc)PySwigObject_long, /*nb_long*/
790 (unaryfunc)0, /*nb_float*/
791 (unaryfunc)PySwigObject_oct, /*nb_oct*/
792 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 793#if PY_VERSION_HEX >= 0x02020000
36ed4f51 794 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
795#elif PY_VERSION_HEX >= 0x02000000
796 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
797#endif
798 };
799
32fe5131
RD
800 static PyTypeObject pyswigobject_type
801#if !defined(__cplusplus)
802 ;
803 static int type_init = 0;
36ed4f51 804 if (!type_init) {
32fe5131
RD
805 PyTypeObject tmp
806#endif
807 = {
36ed4f51
RD
808 PyObject_HEAD_INIT(&PyType_Type)
809 0, /*ob_size*/
32fe5131 810 (char *)"PySwigObject", /*tp_name*/
36ed4f51
RD
811 sizeof(PySwigObject), /*tp_basicsize*/
812 0, /*tp_itemsize*/
813 /* methods */
814 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
815 (printfunc)PySwigObject_print, /*tp_print*/
816 (getattrfunc)0, /*tp_getattr*/
817 (setattrfunc)0, /*tp_setattr*/
818 (cmpfunc)PySwigObject_compare, /*tp_compare*/
819 (reprfunc)PySwigObject_repr, /*tp_repr*/
820 &PySwigObject_as_number, /*tp_as_number*/
821 0, /*tp_as_sequence*/
822 0, /*tp_as_mapping*/
823 (hashfunc)0, /*tp_hash*/
824 (ternaryfunc)0, /*tp_call*/
825 (reprfunc)PySwigObject_str, /*tp_str*/
826 /* Space for future expansion */
32fe5131
RD
827 0,0,0,0,
828 pyswigobject_type__doc__, /* Documentation string */
36ed4f51
RD
829#if PY_VERSION_HEX >= 0x02000000
830 0, /* tp_traverse */
831 0, /* tp_clear */
832#endif
833#if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
836#endif
837#if PY_VERSION_HEX >= 0x02020000
838 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
839#endif
840#if PY_VERSION_HEX >= 0x02030000
841 0, /* tp_del */
842#endif
843#ifdef COUNT_ALLOCS
844 0,0,0,0 /* tp_alloc -> tp_next */
845#endif
846 };
32fe5131
RD
847#if !defined(__cplusplus)
848 pyswigobject_type = tmp;
36ed4f51
RD
849 type_init = 1;
850 }
32fe5131
RD
851#endif
852 return &pyswigobject_type;
36ed4f51
RD
853}
854
855SWIGRUNTIME PyObject *
856PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
857{
32fe5131
RD
858 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
859 if (self) {
860 self->ptr = ptr;
861 self->desc = desc;
862 }
36ed4f51
RD
863 return (PyObject *)self;
864}
865
866SWIGRUNTIMEINLINE void *
867PySwigObject_AsVoidPtr(PyObject *self)
868{
869 return ((PySwigObject *)self)->ptr;
870}
871
872SWIGRUNTIMEINLINE const char *
873PySwigObject_GetDesc(PyObject *self)
874{
875 return ((PySwigObject *)self)->desc;
876}
877
878SWIGRUNTIMEINLINE int
879PySwigObject_Check(PyObject *op) {
32fe5131 880 return ((op)->ob_type == PySwigObject_type())
36ed4f51
RD
881 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
882}
883
884/* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
887
888typedef struct {
889 PyObject_HEAD
890 void *pack;
891 const char *desc;
892 size_t size;
893} PySwigPacked;
894
895SWIGRUNTIME int
896PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
897{
898 char result[SWIG_BUFFER_SIZE];
32fe5131 899 flags = flags;
36ed4f51
RD
900 fputs("<Swig Packed ", fp);
901 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
902 fputs("at ", fp);
903 fputs(result, fp);
904 }
905 fputs(v->desc,fp);
906 fputs(">", fp);
907 return 0;
908}
909
910SWIGRUNTIME PyObject *
911PySwigPacked_repr(PySwigPacked *v)
912{
913 char result[SWIG_BUFFER_SIZE];
914 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
915 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
916 } else {
917 return PyString_FromFormat("<Swig Packed %s>", v->desc);
918 }
919}
920
921SWIGRUNTIME PyObject *
922PySwigPacked_str(PySwigPacked *v)
923{
924 char result[SWIG_BUFFER_SIZE];
925 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
926 return PyString_FromFormat("%s%s", result, v->desc);
927 } else {
32fe5131 928 return PyString_FromString(v->desc);
36ed4f51
RD
929 }
930}
931
932SWIGRUNTIME int
933PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
934{
935 int c = strcmp(v->desc, w->desc);
936 if (c) {
32fe5131 937 return (c > 0) ? 1 : -1;
36ed4f51
RD
938 } else {
939 size_t i = v->size;
940 size_t j = w->size;
32fe5131 941 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
36ed4f51
RD
942 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
943 }
944}
945
946SWIGRUNTIME void
947PySwigPacked_dealloc(PySwigPacked *self)
948{
949 free(self->pack);
32fe5131 950 PyObject_Del(self);
36ed4f51
RD
951}
952
953SWIGRUNTIME PyTypeObject*
32fe5131
RD
954PySwigPacked_type(void) {
955 static char pyswigpacked_type__doc__[] =
36ed4f51 956 "Swig object carries a C/C++ instance pointer";
32fe5131
RD
957 static PyTypeObject pyswigpacked_type
958#if !defined(__cplusplus)
959 ;
960 static int type_init = 0;
36ed4f51 961 if (!type_init) {
32fe5131
RD
962 PyTypeObject tmp
963#endif
964 = {
36ed4f51
RD
965 PyObject_HEAD_INIT(&PyType_Type)
966 0, /*ob_size*/
32fe5131 967 (char *)"PySwigPacked", /*tp_name*/
36ed4f51
RD
968 sizeof(PySwigPacked), /*tp_basicsize*/
969 0, /*tp_itemsize*/
970 /* methods */
971 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
972 (printfunc)PySwigPacked_print, /*tp_print*/
973 (getattrfunc)0, /*tp_getattr*/
974 (setattrfunc)0, /*tp_setattr*/
975 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
976 (reprfunc)PySwigPacked_repr, /*tp_repr*/
977 0, /*tp_as_number*/
978 0, /*tp_as_sequence*/
979 0, /*tp_as_mapping*/
980 (hashfunc)0, /*tp_hash*/
981 (ternaryfunc)0, /*tp_call*/
982 (reprfunc)PySwigPacked_str, /*tp_str*/
983 /* Space for future expansion */
32fe5131
RD
984 0,0,0,0,
985 pyswigpacked_type__doc__, /* Documentation string */
36ed4f51
RD
986#if PY_VERSION_HEX >= 0x02000000
987 0, /* tp_traverse */
988 0, /* tp_clear */
989#endif
990#if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
993#endif
994#if PY_VERSION_HEX >= 0x02020000
995 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
996#endif
997#if PY_VERSION_HEX >= 0x02030000
998 0, /* tp_del */
999#endif
1000#ifdef COUNT_ALLOCS
1001 0,0,0,0 /* tp_alloc -> tp_next */
1002#endif
1003 };
32fe5131
RD
1004#if !defined(__cplusplus)
1005 pyswigpacked_type = tmp;
36ed4f51
RD
1006 type_init = 1;
1007 }
32fe5131
RD
1008#endif
1009 return &pyswigpacked_type;
36ed4f51
RD
1010}
1011
1012SWIGRUNTIME PyObject *
1013PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1014{
32fe5131 1015 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
36ed4f51
RD
1016 if (self == NULL) {
1017 return NULL;
1018 } else {
1019 void *pack = malloc(size);
32fe5131
RD
1020 if (pack) {
1021 memcpy(pack, ptr, size);
1022 self->pack = pack;
1023 self->desc = desc;
1024 self->size = size;
1025 return (PyObject *) self;
1026 }
1027 return NULL;
36ed4f51
RD
1028 }
1029}
1030
1031SWIGRUNTIMEINLINE const char *
1032PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1033{
1034 PySwigPacked *self = (PySwigPacked *)obj;
1035 if (self->size != size) return 0;
1036 memcpy(ptr, self->pack, size);
1037 return self->desc;
1038}
1039
1040SWIGRUNTIMEINLINE const char *
1041PySwigPacked_GetDesc(PyObject *self)
1042{
1043 return ((PySwigPacked *)self)->desc;
1044}
1045
1046SWIGRUNTIMEINLINE int
1047PySwigPacked_Check(PyObject *op) {
32fe5131 1048 return ((op)->ob_type == PySwigPacked_type())
36ed4f51
RD
1049 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1050}
1051
1052#else
1053/* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
1056
1057#define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1058#define PySwigObject_Check(obj) PyCObject_Check(obj)
1059#define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1060#define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1061
1062#endif
1063
1064#endif
1065
1066/* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1069
1070SWIGRUNTIME void
1071SWIG_Python_TypeError(const char *type, PyObject *obj)
1072{
1073 if (type) {
1074#if defined(SWIG_COBJECT_TYPES)
32fe5131 1075 if (obj && PySwigObject_Check(obj)) {
36ed4f51
RD
1076 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1077 if (otype) {
1078 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1079 type, otype);
1080 return;
1081 }
1082 } else
1083#endif
1084 {
1085 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1086 if (otype) {
1087 PyObject *str = PyObject_Str(obj);
1088 const char *cstr = str ? PyString_AsString(str) : 0;
1089 if (cstr) {
1090 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1091 type, otype, cstr);
1092 } else {
1093 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1094 type, otype);
1095 }
32fe5131 1096 Py_XDECREF(str);
36ed4f51
RD
1097 return;
1098 }
1099 }
1100 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1101 } else {
1102 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1103 }
1104}
1105
1106SWIGRUNTIMEINLINE void
1107SWIG_Python_NullRef(const char *type)
1108{
1109 if (type) {
1110 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1111 } else {
1112 PyErr_Format(PyExc_TypeError, "null reference was received");
1113 }
1114}
1115
1116SWIGRUNTIME int
1117SWIG_Python_AddErrMesg(const char* mesg, int infront)
1118{
1119 if (PyErr_Occurred()) {
1120 PyObject *type = 0;
1121 PyObject *value = 0;
1122 PyObject *traceback = 0;
1123 PyErr_Fetch(&type, &value, &traceback);
1124 if (value) {
1125 PyObject *old_str = PyObject_Str(value);
1126 Py_XINCREF(type);
1127 PyErr_Clear();
1128 if (infront) {
1129 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1130 } else {
1131 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1132 }
1133 Py_DECREF(old_str);
1134 }
1135 return 1;
1136 } else {
1137 return 0;
1138 }
1139}
1140
1141SWIGRUNTIME int
1142SWIG_Python_ArgFail(int argnum)
1143{
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1146 char mesg[256];
32fe5131 1147 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
36ed4f51
RD
1148 return SWIG_Python_AddErrMesg(mesg, 1);
1149 } else {
1150 return 0;
1151 }
1152}
1153
1154
1155/* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1158
1159/* Convert a pointer value */
1160SWIGRUNTIME int
1161SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
32fe5131 1162 swig_cast_info *tc;
36ed4f51
RD
1163 const char *c = 0;
1164 static PyObject *SWIG_this = 0;
1165 int newref = 0;
1166 PyObject *pyobj = 0;
1167 void *vptr;
1168
1169 if (!obj) return 0;
1170 if (obj == Py_None) {
1171 *ptr = 0;
1172 return 0;
1173 }
1174
1175#ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj))) {
1177 if (!SWIG_this)
1178 SWIG_this = PyString_FromString("this");
1179 pyobj = obj;
1180 obj = PyObject_GetAttr(obj,SWIG_this);
1181 newref = 1;
1182 if (!obj) goto type_error;
1183 if (!PySwigObject_Check(obj)) {
1184 Py_DECREF(obj);
1185 goto type_error;
1186 }
1187 }
1188 vptr = PySwigObject_AsVoidPtr(obj);
1189 c = (const char *) PySwigObject_GetDesc(obj);
1190 if (newref) { Py_DECREF(obj); }
1191 goto type_check;
1192#else
1193 if (!(PyString_Check(obj))) {
1194 if (!SWIG_this)
1195 SWIG_this = PyString_FromString("this");
1196 pyobj = obj;
1197 obj = PyObject_GetAttr(obj,SWIG_this);
1198 newref = 1;
1199 if (!obj) goto type_error;
1200 if (!PyString_Check(obj)) {
1201 Py_DECREF(obj);
1202 goto type_error;
1203 }
1204 }
32fe5131 1205 c = PyString_AsString(obj);
36ed4f51
RD
1206 /* Pointer values must start with leading underscore */
1207 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1208 if (newref) { Py_DECREF(obj); }
1209 if (!c) goto type_error;
1210#endif
1211
1212type_check:
36ed4f51
RD
1213 if (ty) {
1214 tc = SWIG_TypeCheck(c,ty);
1215 if (!tc) goto type_error;
1216 *ptr = SWIG_TypeCast(tc,vptr);
1217 } else {
1218 *ptr = vptr;
1219 }
36ed4f51
RD
1220 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1221 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1222 }
1223 return 0;
1224
1225type_error:
1226 PyErr_Clear();
1227 if (pyobj && !obj) {
1228 obj = pyobj;
1229 if (PyCFunction_Check(obj)) {
1230 /* here we get the method pointer for callbacks */
1231 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1232 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1233 if (c) {
32fe5131 1234 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
36ed4f51
RD
1235 if (!c) goto type_error;
1236 goto type_check;
1237 }
1238 }
1239 }
1240 if (flags & SWIG_POINTER_EXCEPTION) {
1241 if (ty) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1243 } else {
1244 SWIG_Python_TypeError("C/C++ pointer", obj);
1245 }
1246 }
1247 return -1;
1248}
1249
1250/* Convert a pointer value, signal an exception on a type mismatch */
1251SWIGRUNTIME void *
1252SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1253 void *result;
1254 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1255 PyErr_Clear();
1256 if (flags & SWIG_POINTER_EXCEPTION) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1258 SWIG_Python_ArgFail(argnum);
1259 }
1260 }
1261 return result;
1262}
d14a1e28 1263
36ed4f51
RD
1264/* Convert a packed value value */
1265SWIGRUNTIME int
1266SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
32fe5131 1267 swig_cast_info *tc;
36ed4f51 1268 const char *c = 0;
d14a1e28 1269
36ed4f51
RD
1270#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c = PySwigPacked_UnpackData(obj, ptr, sz);
1272#else
1273 if ((!obj) || (!PyString_Check(obj))) goto type_error;
32fe5131 1274 c = PyString_AsString(obj);
36ed4f51
RD
1275 /* Pointer values must start with leading underscore */
1276 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1277#endif
1278 if (!c) goto type_error;
1279 if (ty) {
1280 tc = SWIG_TypeCheck(c,ty);
1281 if (!tc) goto type_error;
1282 }
1283 return 0;
d14a1e28 1284
36ed4f51
RD
1285type_error:
1286 PyErr_Clear();
1287 if (flags & SWIG_POINTER_EXCEPTION) {
1288 if (ty) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1290 } else {
1291 SWIG_Python_TypeError("C/C++ packed data", obj);
1292 }
1293 }
1294 return -1;
1295}
1296
1297/* Create a new array object */
1298SWIGRUNTIME PyObject *
1299SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1300 PyObject *robj = 0;
32fe5131
RD
1301 if (!type) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1304 }
1305 return robj;
1306 }
36ed4f51
RD
1307 if (!ptr) {
1308 Py_INCREF(Py_None);
1309 return Py_None;
1310 }
1311#ifdef SWIG_COBJECT_TYPES
1312 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1313#else
1314 {
1315 char result[SWIG_BUFFER_SIZE];
1316 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1317 PyString_FromString(result) : 0;
1318 }
1319#endif
1320 if (!robj || (robj == Py_None)) return robj;
1321 if (type->clientdata) {
1322 PyObject *inst;
1323 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1324 Py_DECREF(robj);
1325 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1326 Py_DECREF(args);
1327 if (inst) {
1328 if (own) {
1329 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1330 }
1331 robj = inst;
1332 }
1333 }
1334 return robj;
1335}
d14a1e28 1336
36ed4f51
RD
1337SWIGRUNTIME PyObject *
1338SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1339 PyObject *robj = 0;
1340 if (!ptr) {
1341 Py_INCREF(Py_None);
1342 return Py_None;
1343 }
1344#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1346#else
1347 {
1348 char result[SWIG_BUFFER_SIZE];
1349 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1350 PyString_FromString(result) : 0;
1351 }
1352#endif
1353 return robj;
1354}
d14a1e28 1355
36ed4f51
RD
1356/* -----------------------------------------------------------------------------*
1357 * Get type list
1358 * -----------------------------------------------------------------------------*/
d14a1e28 1359
36ed4f51
RD
1360#ifdef SWIG_LINK_RUNTIME
1361void *SWIG_ReturnGlobalTypeList(void *);
1362#endif
d14a1e28 1363
32fe5131
RD
1364SWIGRUNTIME swig_module_info *
1365SWIG_Python_GetModule(void) {
36ed4f51
RD
1366 static void *type_pointer = (void *)0;
1367 /* first check if module already created */
1368 if (!type_pointer) {
1369#ifdef SWIG_LINK_RUNTIME
1370 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1371#else
1372 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1374 if (PyErr_Occurred()) {
1375 PyErr_Clear();
1376 type_pointer = (void *)0;
1377 }
36ed4f51 1378#endif
32fe5131
RD
1379 }
1380 return (swig_module_info *) type_pointer;
36ed4f51 1381}
d14a1e28 1382
32fe5131
RD
1383#if PY_MAJOR_VERSION < 2
1384/* PyModule_AddObject function was introduced in Python 2.0. The following function
1385is copied out of Python/modsupport.c in python version 2.3.4 */
1386SWIGINTERN int
1387PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1388{
1389 PyObject *dict;
1390 if (!PyModule_Check(m)) {
1391 PyErr_SetString(PyExc_TypeError,
1392 "PyModule_AddObject() needs module as first arg");
1393 return -1;
1394 }
1395 if (!o) {
1396 PyErr_SetString(PyExc_TypeError,
1397 "PyModule_AddObject() needs non-NULL value");
1398 return -1;
1399 }
1400
1401 dict = PyModule_GetDict(m);
1402 if (dict == NULL) {
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1405 PyModule_GetName(m));
1406 return -1;
1407 }
1408 if (PyDict_SetItemString(dict, name, o))
1409 return -1;
1410 Py_DECREF(o);
1411 return 0;
36ed4f51 1412}
32fe5131 1413#endif
d14a1e28 1414
32fe5131
RD
1415SWIGRUNTIME void
1416SWIG_Python_SetModule(swig_module_info *swig_module) {
1417 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1418
1419 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1420 swig_empty_runtime_method_table);
1421 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1422 if (pointer && module) {
1423 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1424 }
1425}
d14a1e28 1426
d14a1e28
RD
1427#ifdef __cplusplus
1428}
1429#endif
1430
1431
d14a1e28
RD
1432/* -------- TYPES TABLE (BEGIN) -------- */
1433
32fe5131
RD
1434#define SWIGTYPE_p_char swig_types[0]
1435#define SWIGTYPE_p_form_ops_t swig_types[1]
1436#define SWIGTYPE_p_int swig_types[2]
1437#define SWIGTYPE_p_unsigned_char swig_types[3]
1438#define SWIGTYPE_p_unsigned_int swig_types[4]
1439#define SWIGTYPE_p_unsigned_long swig_types[5]
1440#define SWIGTYPE_p_wxANIHandler swig_types[6]
1441#define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
1442#define SWIGTYPE_p_wxActivateEvent swig_types[8]
1443#define SWIGTYPE_p_wxBMPHandler swig_types[9]
1444#define SWIGTYPE_p_wxBoxSizer swig_types[10]
1445#define SWIGTYPE_p_wxBusyInfo swig_types[11]
1446#define SWIGTYPE_p_wxCURHandler swig_types[12]
1447#define SWIGTYPE_p_wxCalendarCtrl swig_types[13]
1448#define SWIGTYPE_p_wxCalendarDateAttr swig_types[14]
1449#define SWIGTYPE_p_wxCalendarEvent swig_types[15]
1450#define SWIGTYPE_p_wxChildFocusEvent swig_types[16]
1451#define SWIGTYPE_p_wxClipboard swig_types[17]
1452#define SWIGTYPE_p_wxCloseEvent swig_types[18]
1453#define SWIGTYPE_p_wxColour swig_types[19]
1454#define SWIGTYPE_p_wxCommandEvent swig_types[20]
1455#define SWIGTYPE_p_wxContextMenuEvent swig_types[21]
1456#define SWIGTYPE_p_wxControl swig_types[22]
1457#define SWIGTYPE_p_wxControlWithItems swig_types[23]
1458#define SWIGTYPE_p_wxDateEvent swig_types[24]
1459#define SWIGTYPE_p_wxDateTime swig_types[25]
1460#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[26]
1461#define SWIGTYPE_p_wxDropFilesEvent swig_types[27]
1462#define SWIGTYPE_p_wxDuplexMode swig_types[28]
1463#define SWIGTYPE_p_wxEraseEvent swig_types[29]
1464#define SWIGTYPE_p_wxEvent swig_types[30]
1465#define SWIGTYPE_p_wxEvtHandler swig_types[31]
1466#define SWIGTYPE_p_wxFSFile swig_types[32]
1467#define SWIGTYPE_p_wxFileHistory swig_types[33]
1468#define SWIGTYPE_p_wxFileSystem swig_types[34]
1469#define SWIGTYPE_p_wxFlexGridSizer swig_types[35]
1470#define SWIGTYPE_p_wxFocusEvent swig_types[36]
1471#define SWIGTYPE_p_wxFont swig_types[37]
1472#define SWIGTYPE_p_wxGBSizerItem swig_types[38]
1473#define SWIGTYPE_p_wxGIFHandler swig_types[39]
1474#define SWIGTYPE_p_wxGridBagSizer swig_types[40]
1475#define SWIGTYPE_p_wxGridSizer swig_types[41]
1476#define SWIGTYPE_p_wxICOHandler swig_types[42]
1477#define SWIGTYPE_p_wxIconizeEvent swig_types[43]
1478#define SWIGTYPE_p_wxIdleEvent swig_types[44]
1479#define SWIGTYPE_p_wxImage swig_types[45]
1480#define SWIGTYPE_p_wxImageHandler swig_types[46]
1481#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[47]
1482#define SWIGTYPE_p_wxInitDialogEvent swig_types[48]
1483#define SWIGTYPE_p_wxJPEGHandler swig_types[49]
1484#define SWIGTYPE_p_wxJoystickEvent swig_types[50]
1485#define SWIGTYPE_p_wxKeyEvent swig_types[51]
1486#define SWIGTYPE_p_wxLayoutConstraints swig_types[52]
1487#define SWIGTYPE_p_wxMaximizeEvent swig_types[53]
1488#define SWIGTYPE_p_wxMenu swig_types[54]
1489#define SWIGTYPE_p_wxMenuBar swig_types[55]
1490#define SWIGTYPE_p_wxMenuEvent swig_types[56]
1491#define SWIGTYPE_p_wxMenuItem swig_types[57]
1492#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[58]
1493#define SWIGTYPE_p_wxMouseEvent swig_types[59]
1494#define SWIGTYPE_p_wxMoveEvent swig_types[60]
1495#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[61]
1496#define SWIGTYPE_p_wxNcPaintEvent swig_types[62]
1497#define SWIGTYPE_p_wxNotifyEvent swig_types[63]
1498#define SWIGTYPE_p_wxObject swig_types[64]
1499#define SWIGTYPE_p_wxPCXHandler swig_types[65]
1500#define SWIGTYPE_p_wxPNGHandler swig_types[66]
1501#define SWIGTYPE_p_wxPNMHandler swig_types[67]
1502#define SWIGTYPE_p_wxPaintEvent swig_types[68]
1503#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[69]
1504#define SWIGTYPE_p_wxPaperSize swig_types[70]
1505#define SWIGTYPE_p_wxProcessEvent swig_types[71]
1506#define SWIGTYPE_p_wxPyApp swig_types[72]
1507#define SWIGTYPE_p_wxPyCommandEvent swig_types[73]
1508#define SWIGTYPE_p_wxPyEvent swig_types[74]
1509#define SWIGTYPE_p_wxPyImageHandler swig_types[75]
1510#define SWIGTYPE_p_wxPyProcess swig_types[76]
1511#define SWIGTYPE_p_wxPySizer swig_types[77]
1512#define SWIGTYPE_p_wxPyTimer swig_types[78]
1513#define SWIGTYPE_p_wxPyValidator swig_types[79]
1514#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[80]
1515#define SWIGTYPE_p_wxScrollEvent swig_types[81]
1516#define SWIGTYPE_p_wxScrollWinEvent swig_types[82]
1517#define SWIGTYPE_p_wxSetCursorEvent swig_types[83]
1518#define SWIGTYPE_p_wxShowEvent swig_types[84]
1519#define SWIGTYPE_p_wxSizeEvent swig_types[85]
1520#define SWIGTYPE_p_wxSizer swig_types[86]
1521#define SWIGTYPE_p_wxSizerItem swig_types[87]
1522#define SWIGTYPE_p_wxStaticBoxSizer swig_types[88]
1523#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[89]
1524#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[90]
1525#define SWIGTYPE_p_wxSystemOptions swig_types[91]
1526#define SWIGTYPE_p_wxTIFFHandler swig_types[92]
1527#define SWIGTYPE_p_wxTimerEvent swig_types[93]
1528#define SWIGTYPE_p_wxToolTip swig_types[94]
1529#define SWIGTYPE_p_wxUpdateUIEvent swig_types[95]
1530#define SWIGTYPE_p_wxValidator swig_types[96]
1531#define SWIGTYPE_p_wxVisualAttributes swig_types[97]
1532#define SWIGTYPE_p_wxWindow swig_types[98]
1533#define SWIGTYPE_p_wxWindowCreateEvent swig_types[99]
1534#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[100]
1535#define SWIGTYPE_p_wxXPMHandler swig_types[101]
1536#define SWIGTYPE_ptrdiff_t swig_types[102]
1537#define SWIGTYPE_std__ptrdiff_t swig_types[103]
1538#define SWIGTYPE_unsigned_int swig_types[104]
1539static swig_type_info *swig_types[106];
1540static swig_module_info swig_module = {swig_types, 105, 0, 0, 0, 0};
1541#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1542#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28
RD
1543
1544/* -------- TYPES TABLE (END) -------- */
1545
1546
1547/*-----------------------------------------------
1548 @(target):= _calendar.so
1549 ------------------------------------------------*/
1550#define SWIG_init init_calendar
1551
1552#define SWIG_name "_calendar"
1553
36ed4f51
RD
1554#include "wx/wxPython/wxPython.h"
1555#include "wx/wxPython/pyclasses.h"
2f4c0a16 1556
36ed4f51 1557#include <wx/calctrl.h>
8edf1c75
RD
1558
1559
32fe5131 1560 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
c370783e
RD
1561#define SWIG_From_int PyInt_FromLong
1562/*@@*/
d14a1e28 1563
8edf1c75 1564
2f4c0a16
RD
1565#include <limits.h>
1566
1567
36ed4f51 1568SWIGINTERN int
c370783e
RD
1569 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1570 const char *errmsg)
2f4c0a16 1571{
c370783e
RD
1572 if (value < min_value) {
1573 if (errmsg) {
1574 PyErr_Format(PyExc_OverflowError,
1575 "value %ld is less than '%s' minimum %ld",
1576 value, errmsg, min_value);
1577 }
1578 return 0;
1579 } else if (value > max_value) {
1580 if (errmsg) {
1581 PyErr_Format(PyExc_OverflowError,
1582 "value %ld is greater than '%s' maximum %ld",
1583 value, errmsg, max_value);
2f4c0a16 1584 }
c370783e 1585 return 0;
2f4c0a16 1586 }
c370783e 1587 return 1;
2f4c0a16
RD
1588}
1589
1590
36ed4f51 1591SWIGINTERN int
c370783e 1592SWIG_AsVal_long(PyObject* obj, long* val)
2f4c0a16 1593{
c370783e
RD
1594 if (PyNumber_Check(obj)) {
1595 if (val) *val = PyInt_AsLong(obj);
1596 return 1;
1597 }
69223c70 1598 else {
7e08d4ef 1599 SWIG_Python_TypeError("number", obj);
69223c70 1600 }
c370783e 1601 return 0;
2f4c0a16
RD
1602}
1603
1604
1605#if INT_MAX != LONG_MAX
36ed4f51 1606SWIGINTERN int
c370783e 1607 SWIG_AsVal_int(PyObject *obj, int *val)
8edf1c75 1608{
36ed4f51 1609 const char* errmsg = val ? "int" : (char*)0;
c370783e
RD
1610 long v;
1611 if (SWIG_AsVal_long(obj, &v)) {
1612 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
32fe5131 1613 if (val) *val = static_cast<int >(v);
c370783e
RD
1614 return 1;
1615 } else {
1616 return 0;
1617 }
1618 } else {
1619 PyErr_Clear();
1620 }
1621 if (val) {
36ed4f51 1622 SWIG_type_error(errmsg, obj);
c370783e
RD
1623 }
1624 return 0;
2f4c0a16
RD
1625}
1626#else
32fe5131 1627SWIGINTERNINLINE int
c370783e
RD
1628 SWIG_AsVal_int(PyObject *obj, int *val)
1629{
1630 return SWIG_AsVal_long(obj,(long*)val);
1631}
2f4c0a16
RD
1632#endif
1633
1634
32fe5131 1635SWIGINTERNINLINE int
c370783e 1636SWIG_As_int(PyObject* obj)
2f4c0a16 1637{
c370783e
RD
1638 int v;
1639 if (!SWIG_AsVal_int(obj, &v)) {
1640 /*
36ed4f51 1641 this is needed to make valgrind/purify happier.
c370783e
RD
1642 */
1643 memset((void*)&v, 0, sizeof(int));
2f4c0a16 1644 }
c370783e 1645 return v;
8edf1c75
RD
1646}
1647
c370783e 1648
32fe5131 1649SWIGINTERNINLINE int
c370783e 1650SWIG_Check_int(PyObject* obj)
8edf1c75 1651{
c370783e 1652 return SWIG_AsVal_int(obj, (int*)0);
8edf1c75
RD
1653}
1654
2f4c0a16 1655
36ed4f51 1656SWIGINTERN int
c370783e 1657 SWIG_AsVal_bool(PyObject *obj, bool *val)
2f4c0a16 1658{
c370783e
RD
1659 if (obj == Py_True) {
1660 if (val) *val = true;
1661 return 1;
1662 }
1663 if (obj == Py_False) {
1664 if (val) *val = false;
2f4c0a16
RD
1665 return 1;
1666 }
c370783e
RD
1667 int res = 0;
1668 if (SWIG_AsVal_int(obj, &res)) {
36ed4f51 1669 if (val) *val = res ? true : false;
c370783e 1670 return 1;
36ed4f51
RD
1671 } else {
1672 PyErr_Clear();
1673 }
c370783e 1674 if (val) {
36ed4f51 1675 SWIG_type_error("bool", obj);
c370783e
RD
1676 }
1677 return 0;
2f4c0a16
RD
1678}
1679
8edf1c75 1680
32fe5131 1681SWIGINTERNINLINE bool
c370783e 1682SWIG_As_bool(PyObject* obj)
8edf1c75 1683{
c370783e
RD
1684 bool v;
1685 if (!SWIG_AsVal_bool(obj, &v)) {
1686 /*
36ed4f51 1687 this is needed to make valgrind/purify happier.
c370783e
RD
1688 */
1689 memset((void*)&v, 0, sizeof(bool));
2f4c0a16 1690 }
c370783e 1691 return v;
2f4c0a16
RD
1692}
1693
c370783e 1694
32fe5131 1695SWIGINTERNINLINE int
c370783e
RD
1696SWIG_Check_bool(PyObject* obj)
1697{
1698 return SWIG_AsVal_bool(obj, (bool*)0);
1699}
2f4c0a16 1700
c370783e
RD
1701 static const wxString wxPyCalendarNameStr(wxCalendarNameStr);
1702
32fe5131 1703SWIGINTERNINLINE long
c370783e 1704SWIG_As_long(PyObject* obj)
2f4c0a16 1705{
c370783e
RD
1706 long v;
1707 if (!SWIG_AsVal_long(obj, &v)) {
1708 /*
36ed4f51 1709 this is needed to make valgrind/purify happier.
c370783e
RD
1710 */
1711 memset((void*)&v, 0, sizeof(long));
2f4c0a16 1712 }
c370783e 1713 return v;
2f4c0a16
RD
1714}
1715
c370783e 1716
32fe5131 1717SWIGINTERNINLINE int
c370783e
RD
1718SWIG_Check_long(PyObject* obj)
1719{
1720 return SWIG_AsVal_long(obj, (long*)0);
1721}
2f4c0a16 1722
c370783e 1723
36ed4f51 1724SWIGINTERN int
c370783e 1725SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
2f4c0a16 1726{
c370783e
RD
1727 long v = 0;
1728 if (SWIG_AsVal_long(obj, &v) && v < 0) {
7e08d4ef 1729 SWIG_Python_TypeError("unsigned number", obj);
c370783e
RD
1730 }
1731 else if (val)
1732 *val = (unsigned long)v;
2f4c0a16 1733 return 1;
c370783e
RD
1734}
1735
1736
32fe5131 1737SWIGINTERNINLINE unsigned long
c370783e
RD
1738SWIG_As_unsigned_SS_long(PyObject* obj)
1739{
1740 unsigned long v;
1741 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1742 /*
36ed4f51 1743 this is needed to make valgrind/purify happier.
c370783e
RD
1744 */
1745 memset((void*)&v, 0, sizeof(unsigned long));
2f4c0a16 1746 }
c370783e
RD
1747 return v;
1748}
1749
1750
32fe5131 1751SWIGINTERNINLINE int
c370783e
RD
1752SWIG_Check_unsigned_SS_long(PyObject* obj)
1753{
1754 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
8edf1c75
RD
1755}
1756
36ed4f51 1757static PyObject *wxCalendarCtrl_HitTest(wxCalendarCtrl *self,wxPoint const &pos){
98e665d3
RD
1758 wxDateTime* date = new wxDateTime;
1759 wxDateTime::WeekDay wd;
1760 wxCalendarHitTestResult result = self->HitTest(pos, date, &wd);
5a446332 1761 wxPyBlock_t blocked = wxPyBeginBlockThreads();
98e665d3
RD
1762 PyObject* tup = PyTuple_New(3);
1763 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(result));
1764 PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(date, wxT("wxDateTime"), 1));
1765 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(wd));
fbc46b20 1766 wxPyEndBlockThreads(blocked);
98e665d3
RD
1767 return tup;
1768 }
d14a1e28
RD
1769#ifdef __cplusplus
1770extern "C" {
1771#endif
c370783e 1772static PyObject *_wrap_new_CalendarDateAttr(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1773 PyObject *resultobj = NULL;
98e665d3
RD
1774 wxColour const &arg1_defvalue = wxNullColour ;
1775 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
d14a1e28
RD
1776 wxColour const &arg2_defvalue = wxNullColour ;
1777 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
1778 wxColour const &arg3_defvalue = wxNullColour ;
1779 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
1780 wxFont const &arg4_defvalue = wxNullFont ;
1781 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
36ed4f51 1782 wxCalendarDateBorder arg5 = (wxCalendarDateBorder) wxCAL_BORDER_NONE ;
d14a1e28
RD
1783 wxCalendarDateAttr *result;
1784 wxColour temp1 ;
1785 wxColour temp2 ;
1786 wxColour temp3 ;
1787 PyObject * obj0 = 0 ;
1788 PyObject * obj1 = 0 ;
1789 PyObject * obj2 = 0 ;
1790 PyObject * obj3 = 0 ;
8edf1c75 1791 PyObject * obj4 = 0 ;
d14a1e28
RD
1792 char *kwnames[] = {
1793 (char *) "colText",(char *) "colBack",(char *) "colBorder",(char *) "font",(char *) "border", NULL
1794 };
1795
98e665d3
RD
1796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_CalendarDateAttr",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
1797 if (obj0) {
1798 {
1799 arg1 = &temp1;
1800 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1801 }
d14a1e28
RD
1802 }
1803 if (obj1) {
1804 {
1805 arg2 = &temp2;
1806 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1807 }
1808 }
1809 if (obj2) {
1810 {
1811 arg3 = &temp3;
1812 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1813 }
1814 }
1815 if (obj3) {
36ed4f51
RD
1816 {
1817 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
1818 if (SWIG_arg_fail(4)) SWIG_fail;
1819 if (arg4 == NULL) {
1820 SWIG_null_ref("wxFont");
1821 }
1822 if (SWIG_arg_fail(4)) SWIG_fail;
d14a1e28
RD
1823 }
1824 }
8edf1c75 1825 if (obj4) {
36ed4f51 1826 {
32fe5131 1827 arg5 = static_cast<wxCalendarDateBorder >(SWIG_As_int(obj4));
36ed4f51
RD
1828 if (SWIG_arg_fail(5)) SWIG_fail;
1829 }
8edf1c75 1830 }
d14a1e28
RD
1831 {
1832 PyThreadState* __tstate = wxPyBeginAllowThreads();
32fe5131 1833 result = (wxCalendarDateAttr *)new wxCalendarDateAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxColour const &)*arg3,(wxFont const &)*arg4,arg5);
d14a1e28
RD
1834
1835 wxPyEndAllowThreads(__tstate);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 }
2f4c0a16 1838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarDateAttr, 1);
d14a1e28
RD
1839 return resultobj;
1840 fail:
1841 return NULL;
1842}
1843
1844
c370783e 1845static PyObject *_wrap_CalendarDateAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1846 PyObject *resultobj = NULL;
d14a1e28
RD
1847 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
1848 wxColour *arg2 = 0 ;
1849 wxColour temp2 ;
1850 PyObject * obj0 = 0 ;
1851 PyObject * obj1 = 0 ;
1852 char *kwnames[] = {
1853 (char *) "self",(char *) "colText", NULL
1854 };
1855
1856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
1857 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
1858 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
1859 {
1860 arg2 = &temp2;
1861 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1862 }
1863 {
1864 PyThreadState* __tstate = wxPyBeginAllowThreads();
1865 (arg1)->SetTextColour((wxColour const &)*arg2);
1866
1867 wxPyEndAllowThreads(__tstate);
1868 if (PyErr_Occurred()) SWIG_fail;
1869 }
1870 Py_INCREF(Py_None); resultobj = Py_None;
1871 return resultobj;
1872 fail:
1873 return NULL;
1874}
1875
1876
c370783e 1877static PyObject *_wrap_CalendarDateAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1878 PyObject *resultobj = NULL;
d14a1e28
RD
1879 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
1880 wxColour *arg2 = 0 ;
1881 wxColour temp2 ;
1882 PyObject * obj0 = 0 ;
1883 PyObject * obj1 = 0 ;
1884 char *kwnames[] = {
1885 (char *) "self",(char *) "colBack", NULL
1886 };
1887
1888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
1889 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
1890 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
1891 {
1892 arg2 = &temp2;
1893 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1894 }
1895 {
1896 PyThreadState* __tstate = wxPyBeginAllowThreads();
1897 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
1898
1899 wxPyEndAllowThreads(__tstate);
1900 if (PyErr_Occurred()) SWIG_fail;
1901 }
1902 Py_INCREF(Py_None); resultobj = Py_None;
1903 return resultobj;
1904 fail:
1905 return NULL;
1906}
1907
1908
c370783e 1909static PyObject *_wrap_CalendarDateAttr_SetBorderColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1910 PyObject *resultobj = NULL;
d14a1e28
RD
1911 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
1912 wxColour *arg2 = 0 ;
1913 wxColour temp2 ;
1914 PyObject * obj0 = 0 ;
1915 PyObject * obj1 = 0 ;
1916 char *kwnames[] = {
1917 (char *) "self",(char *) "col", NULL
1918 };
1919
1920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBorderColour",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
1921 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
1922 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
1923 {
1924 arg2 = &temp2;
1925 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1926 }
1927 {
1928 PyThreadState* __tstate = wxPyBeginAllowThreads();
1929 (arg1)->SetBorderColour((wxColour const &)*arg2);
1930
1931 wxPyEndAllowThreads(__tstate);
1932 if (PyErr_Occurred()) SWIG_fail;
1933 }
1934 Py_INCREF(Py_None); resultobj = Py_None;
1935 return resultobj;
1936 fail:
1937 return NULL;
1938}
1939
1940
c370783e 1941static PyObject *_wrap_CalendarDateAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1942 PyObject *resultobj = NULL;
d14a1e28
RD
1943 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
1944 wxFont *arg2 = 0 ;
1945 PyObject * obj0 = 0 ;
1946 PyObject * obj1 = 0 ;
1947 char *kwnames[] = {
1948 (char *) "self",(char *) "font", NULL
1949 };
1950
1951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
1952 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
1953 if (SWIG_arg_fail(1)) SWIG_fail;
1954 {
1955 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
1956 if (SWIG_arg_fail(2)) SWIG_fail;
1957 if (arg2 == NULL) {
1958 SWIG_null_ref("wxFont");
1959 }
1960 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
1961 }
1962 {
1963 PyThreadState* __tstate = wxPyBeginAllowThreads();
1964 (arg1)->SetFont((wxFont const &)*arg2);
1965
1966 wxPyEndAllowThreads(__tstate);
1967 if (PyErr_Occurred()) SWIG_fail;
1968 }
1969 Py_INCREF(Py_None); resultobj = Py_None;
1970 return resultobj;
1971 fail:
1972 return NULL;
1973}
1974
1975
c370783e 1976static PyObject *_wrap_CalendarDateAttr_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1977 PyObject *resultobj = NULL;
d14a1e28 1978 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
36ed4f51 1979 wxCalendarDateBorder arg2 ;
d14a1e28 1980 PyObject * obj0 = 0 ;
8edf1c75 1981 PyObject * obj1 = 0 ;
d14a1e28
RD
1982 char *kwnames[] = {
1983 (char *) "self",(char *) "border", NULL
1984 };
1985
8edf1c75 1986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBorder",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
1987 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
1988 if (SWIG_arg_fail(1)) SWIG_fail;
1989 {
32fe5131 1990 arg2 = static_cast<wxCalendarDateBorder >(SWIG_As_int(obj1));
36ed4f51
RD
1991 if (SWIG_arg_fail(2)) SWIG_fail;
1992 }
d14a1e28
RD
1993 {
1994 PyThreadState* __tstate = wxPyBeginAllowThreads();
32fe5131 1995 (arg1)->SetBorder(arg2);
d14a1e28
RD
1996
1997 wxPyEndAllowThreads(__tstate);
1998 if (PyErr_Occurred()) SWIG_fail;
1999 }
2000 Py_INCREF(Py_None); resultobj = Py_None;
2001 return resultobj;
2002 fail:
2003 return NULL;
2004}
2005
2006
c370783e 2007static PyObject *_wrap_CalendarDateAttr_SetHoliday(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2008 PyObject *resultobj = NULL;
d14a1e28
RD
2009 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2010 bool arg2 ;
2011 PyObject * obj0 = 0 ;
2012 PyObject * obj1 = 0 ;
2013 char *kwnames[] = {
2014 (char *) "self",(char *) "holiday", NULL
2015 };
2016
2017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetHoliday",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2018 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2019 if (SWIG_arg_fail(1)) SWIG_fail;
2020 {
32fe5131 2021 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
36ed4f51
RD
2022 if (SWIG_arg_fail(2)) SWIG_fail;
2023 }
d14a1e28
RD
2024 {
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
2026 (arg1)->SetHoliday(arg2);
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) SWIG_fail;
2030 }
2031 Py_INCREF(Py_None); resultobj = Py_None;
2032 return resultobj;
2033 fail:
2034 return NULL;
2035}
2036
2037
c370783e 2038static PyObject *_wrap_CalendarDateAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2039 PyObject *resultobj = NULL;
d14a1e28
RD
2040 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2041 bool result;
2042 PyObject * obj0 = 0 ;
2043 char *kwnames[] = {
2044 (char *) "self", NULL
2045 };
2046
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasTextColour",kwnames,&obj0)) goto fail;
36ed4f51
RD
2048 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2049 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2050 {
2051 PyThreadState* __tstate = wxPyBeginAllowThreads();
2052 result = (bool)((wxCalendarDateAttr const *)arg1)->HasTextColour();
2053
2054 wxPyEndAllowThreads(__tstate);
2055 if (PyErr_Occurred()) SWIG_fail;
2056 }
fbc46b20
RD
2057 {
2058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2059 }
d14a1e28
RD
2060 return resultobj;
2061 fail:
2062 return NULL;
2063}
2064
2065
c370783e 2066static PyObject *_wrap_CalendarDateAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2067 PyObject *resultobj = NULL;
d14a1e28
RD
2068 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2069 bool result;
2070 PyObject * obj0 = 0 ;
2071 char *kwnames[] = {
2072 (char *) "self", NULL
2073 };
2074
2075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
36ed4f51
RD
2076 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2077 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2078 {
2079 PyThreadState* __tstate = wxPyBeginAllowThreads();
2080 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBackgroundColour();
2081
2082 wxPyEndAllowThreads(__tstate);
2083 if (PyErr_Occurred()) SWIG_fail;
2084 }
fbc46b20
RD
2085 {
2086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2087 }
d14a1e28
RD
2088 return resultobj;
2089 fail:
2090 return NULL;
2091}
2092
2093
c370783e 2094static PyObject *_wrap_CalendarDateAttr_HasBorderColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2095 PyObject *resultobj = NULL;
d14a1e28
RD
2096 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2097 bool result;
2098 PyObject * obj0 = 0 ;
2099 char *kwnames[] = {
2100 (char *) "self", NULL
2101 };
2102
2103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorderColour",kwnames,&obj0)) goto fail;
36ed4f51
RD
2104 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2105 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2106 {
2107 PyThreadState* __tstate = wxPyBeginAllowThreads();
2108 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorderColour();
2109
2110 wxPyEndAllowThreads(__tstate);
2111 if (PyErr_Occurred()) SWIG_fail;
2112 }
fbc46b20
RD
2113 {
2114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2115 }
d14a1e28
RD
2116 return resultobj;
2117 fail:
2118 return NULL;
2119}
2120
2121
c370783e 2122static PyObject *_wrap_CalendarDateAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2123 PyObject *resultobj = NULL;
d14a1e28
RD
2124 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2125 bool result;
2126 PyObject * obj0 = 0 ;
2127 char *kwnames[] = {
2128 (char *) "self", NULL
2129 };
2130
2131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasFont",kwnames,&obj0)) goto fail;
36ed4f51
RD
2132 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2133 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2134 {
2135 PyThreadState* __tstate = wxPyBeginAllowThreads();
2136 result = (bool)((wxCalendarDateAttr const *)arg1)->HasFont();
2137
2138 wxPyEndAllowThreads(__tstate);
2139 if (PyErr_Occurred()) SWIG_fail;
2140 }
fbc46b20
RD
2141 {
2142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2143 }
d14a1e28
RD
2144 return resultobj;
2145 fail:
2146 return NULL;
2147}
2148
2149
c370783e 2150static PyObject *_wrap_CalendarDateAttr_HasBorder(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2151 PyObject *resultobj = NULL;
d14a1e28
RD
2152 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2153 bool result;
2154 PyObject * obj0 = 0 ;
2155 char *kwnames[] = {
2156 (char *) "self", NULL
2157 };
2158
2159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorder",kwnames,&obj0)) goto fail;
36ed4f51
RD
2160 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2161 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorder();
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
fbc46b20
RD
2169 {
2170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2171 }
d14a1e28
RD
2172 return resultobj;
2173 fail:
2174 return NULL;
2175}
2176
2177
c370783e 2178static PyObject *_wrap_CalendarDateAttr_IsHoliday(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2179 PyObject *resultobj = NULL;
d14a1e28
RD
2180 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2181 bool result;
2182 PyObject * obj0 = 0 ;
2183 char *kwnames[] = {
2184 (char *) "self", NULL
2185 };
2186
2187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_IsHoliday",kwnames,&obj0)) goto fail;
36ed4f51
RD
2188 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2189 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2190 {
2191 PyThreadState* __tstate = wxPyBeginAllowThreads();
2192 result = (bool)((wxCalendarDateAttr const *)arg1)->IsHoliday();
2193
2194 wxPyEndAllowThreads(__tstate);
2195 if (PyErr_Occurred()) SWIG_fail;
2196 }
fbc46b20
RD
2197 {
2198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2199 }
d14a1e28
RD
2200 return resultobj;
2201 fail:
2202 return NULL;
2203}
2204
2205
c370783e 2206static PyObject *_wrap_CalendarDateAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2207 PyObject *resultobj = NULL;
d14a1e28
RD
2208 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2209 wxColour result;
2210 PyObject * obj0 = 0 ;
2211 char *kwnames[] = {
2212 (char *) "self", NULL
2213 };
2214
2215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetTextColour",kwnames,&obj0)) goto fail;
36ed4f51
RD
2216 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2217 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2218 {
2219 PyThreadState* __tstate = wxPyBeginAllowThreads();
2220 result = ((wxCalendarDateAttr const *)arg1)->GetTextColour();
2221
2222 wxPyEndAllowThreads(__tstate);
2223 if (PyErr_Occurred()) SWIG_fail;
2224 }
2225 {
2226 wxColour * resultptr;
32fe5131 2227 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 2228 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2229 }
2230 return resultobj;
2231 fail:
2232 return NULL;
2233}
2234
2235
c370783e 2236static PyObject *_wrap_CalendarDateAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2237 PyObject *resultobj = NULL;
d14a1e28
RD
2238 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2239 wxColour result;
2240 PyObject * obj0 = 0 ;
2241 char *kwnames[] = {
2242 (char *) "self", NULL
2243 };
2244
2245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
36ed4f51
RD
2246 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2247 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2248 {
2249 PyThreadState* __tstate = wxPyBeginAllowThreads();
2250 result = ((wxCalendarDateAttr const *)arg1)->GetBackgroundColour();
2251
2252 wxPyEndAllowThreads(__tstate);
2253 if (PyErr_Occurred()) SWIG_fail;
2254 }
2255 {
2256 wxColour * resultptr;
32fe5131 2257 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 2258 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2259 }
2260 return resultobj;
2261 fail:
2262 return NULL;
2263}
2264
2265
c370783e 2266static PyObject *_wrap_CalendarDateAttr_GetBorderColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2267 PyObject *resultobj = NULL;
d14a1e28
RD
2268 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2269 wxColour result;
2270 PyObject * obj0 = 0 ;
2271 char *kwnames[] = {
2272 (char *) "self", NULL
2273 };
2274
2275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorderColour",kwnames,&obj0)) goto fail;
36ed4f51
RD
2276 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2277 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2278 {
2279 PyThreadState* __tstate = wxPyBeginAllowThreads();
2280 result = ((wxCalendarDateAttr const *)arg1)->GetBorderColour();
2281
2282 wxPyEndAllowThreads(__tstate);
2283 if (PyErr_Occurred()) SWIG_fail;
2284 }
2285 {
2286 wxColour * resultptr;
32fe5131 2287 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 2288 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
2289 }
2290 return resultobj;
2291 fail:
2292 return NULL;
2293}
2294
2295
c370783e 2296static PyObject *_wrap_CalendarDateAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2297 PyObject *resultobj = NULL;
d14a1e28
RD
2298 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
2299 wxFont result;
2300 PyObject * obj0 = 0 ;
2301 char *kwnames[] = {
2302 (char *) "self", NULL
2303 };
2304
2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetFont",kwnames,&obj0)) goto fail;
36ed4f51
RD
2306 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2307 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2308 {
2309 PyThreadState* __tstate = wxPyBeginAllowThreads();
2310 result = ((wxCalendarDateAttr const *)arg1)->GetFont();
2311
2312 wxPyEndAllowThreads(__tstate);
2313 if (PyErr_Occurred()) SWIG_fail;
2314 }
2315 {
2316 wxFont * resultptr;
32fe5131 2317 resultptr = new wxFont(static_cast<wxFont & >(result));
2f4c0a16 2318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
2319 }
2320 return resultobj;
2321 fail:
2322 return NULL;
2323}
2324
2325
c370783e 2326static PyObject *_wrap_CalendarDateAttr_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2327 PyObject *resultobj = NULL;
d14a1e28 2328 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
36ed4f51 2329 wxCalendarDateBorder result;
d14a1e28
RD
2330 PyObject * obj0 = 0 ;
2331 char *kwnames[] = {
2332 (char *) "self", NULL
2333 };
2334
2335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorder",kwnames,&obj0)) goto fail;
36ed4f51
RD
2336 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
2337 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2338 {
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 2340 result = (wxCalendarDateBorder)((wxCalendarDateAttr const *)arg1)->GetBorder();
d14a1e28
RD
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
36ed4f51 2345 resultobj = SWIG_From_int((result));
d14a1e28
RD
2346 return resultobj;
2347 fail:
2348 return NULL;
2349}
2350
2351
c370783e 2352static PyObject * CalendarDateAttr_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
2353 PyObject *obj;
2354 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2355 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarDateAttr, obj);
2356 Py_INCREF(obj);
2357 return Py_BuildValue((char *)"");
2358}
c370783e 2359static PyObject *_wrap_new_CalendarEvent(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2360 PyObject *resultobj = NULL;
d14a1e28
RD
2361 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2362 wxEventType arg2 ;
2363 wxCalendarEvent *result;
2364 PyObject * obj0 = 0 ;
8edf1c75 2365 PyObject * obj1 = 0 ;
d14a1e28
RD
2366 char *kwnames[] = {
2367 (char *) "cal",(char *) "type", NULL
2368 };
2369
8edf1c75 2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_CalendarEvent",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2371 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2372 if (SWIG_arg_fail(1)) SWIG_fail;
2373 {
32fe5131 2374 arg2 = static_cast<wxEventType >(SWIG_As_int(obj1));
36ed4f51
RD
2375 if (SWIG_arg_fail(2)) SWIG_fail;
2376 }
d14a1e28
RD
2377 {
2378 PyThreadState* __tstate = wxPyBeginAllowThreads();
2379 result = (wxCalendarEvent *)new wxCalendarEvent(arg1,arg2);
2380
2381 wxPyEndAllowThreads(__tstate);
2382 if (PyErr_Occurred()) SWIG_fail;
2383 }
2f4c0a16 2384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarEvent, 1);
d14a1e28
RD
2385 return resultobj;
2386 fail:
2387 return NULL;
2388}
2389
2390
c370783e 2391static PyObject *_wrap_CalendarEvent_SetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2392 PyObject *resultobj = NULL;
9fd4be55 2393 wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
36ed4f51 2394 wxDateTime::WeekDay arg2 ;
9fd4be55 2395 PyObject * obj0 = 0 ;
8edf1c75 2396 PyObject * obj1 = 0 ;
9fd4be55
RD
2397 char *kwnames[] = {
2398 (char *) "self",(char *) "wd", NULL
2399 };
2400
8edf1c75 2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarEvent_SetWeekDay",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2402 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarEvent, SWIG_POINTER_EXCEPTION | 0);
2403 if (SWIG_arg_fail(1)) SWIG_fail;
2404 {
32fe5131 2405 arg2 = static_cast<wxDateTime::WeekDay const >(SWIG_As_int(obj1));
36ed4f51
RD
2406 if (SWIG_arg_fail(2)) SWIG_fail;
2407 }
9fd4be55
RD
2408 {
2409 PyThreadState* __tstate = wxPyBeginAllowThreads();
32fe5131 2410 (arg1)->SetWeekDay(arg2);
9fd4be55
RD
2411
2412 wxPyEndAllowThreads(__tstate);
2413 if (PyErr_Occurred()) SWIG_fail;
2414 }
2415 Py_INCREF(Py_None); resultobj = Py_None;
2416 return resultobj;
2417 fail:
2418 return NULL;
2419}
2420
2421
c370783e 2422static PyObject *_wrap_CalendarEvent_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2423 PyObject *resultobj = NULL;
d14a1e28 2424 wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
36ed4f51 2425 wxDateTime::WeekDay result;
d14a1e28
RD
2426 PyObject * obj0 = 0 ;
2427 char *kwnames[] = {
2428 (char *) "self", NULL
2429 };
2430
2431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetWeekDay",kwnames,&obj0)) goto fail;
36ed4f51
RD
2432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarEvent, SWIG_POINTER_EXCEPTION | 0);
2433 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2434 {
2435 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 2436 result = (wxDateTime::WeekDay)((wxCalendarEvent const *)arg1)->GetWeekDay();
d14a1e28
RD
2437
2438 wxPyEndAllowThreads(__tstate);
2439 if (PyErr_Occurred()) SWIG_fail;
2440 }
36ed4f51 2441 resultobj = SWIG_From_int((result));
d14a1e28
RD
2442 return resultobj;
2443 fail:
2444 return NULL;
2445}
2446
2447
c370783e 2448static PyObject * CalendarEvent_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
2449 PyObject *obj;
2450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2451 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent, obj);
2452 Py_INCREF(obj);
2453 return Py_BuildValue((char *)"");
2454}
c370783e 2455static int _wrap_CalendarNameStr_set(PyObject *) {
cbd72d4f
RD
2456 PyErr_SetString(PyExc_TypeError,"Variable CalendarNameStr is read-only.");
2457 return 1;
2458}
2459
2460
36ed4f51 2461static PyObject *_wrap_CalendarNameStr_get(void) {
32fe5131 2462 PyObject *pyobj = NULL;
cbd72d4f
RD
2463
2464 {
2465#if wxUSE_UNICODE
2466 pyobj = PyUnicode_FromWideChar((&wxPyCalendarNameStr)->c_str(), (&wxPyCalendarNameStr)->Len());
2467#else
2468 pyobj = PyString_FromStringAndSize((&wxPyCalendarNameStr)->c_str(), (&wxPyCalendarNameStr)->Len());
2469#endif
2470 }
2471 return pyobj;
2472}
2473
2474
c370783e 2475static PyObject *_wrap_new_CalendarCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2476 PyObject *resultobj = NULL;
d14a1e28 2477 wxWindow *arg1 = (wxWindow *) 0 ;
a95a7133 2478 int arg2 = (int) -1 ;
d14a1e28
RD
2479 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
2480 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
2481 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2482 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2483 wxSize const &arg5_defvalue = wxDefaultSize ;
2484 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2485 long arg6 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
2486 wxString const &arg7_defvalue = wxPyCalendarNameStr ;
2487 wxString *arg7 = (wxString *) &arg7_defvalue ;
2488 wxCalendarCtrl *result;
2489 wxPoint temp4 ;
2490 wxSize temp5 ;
b411df4a 2491 bool temp7 = false ;
d14a1e28 2492 PyObject * obj0 = 0 ;
8edf1c75 2493 PyObject * obj1 = 0 ;
d14a1e28
RD
2494 PyObject * obj2 = 0 ;
2495 PyObject * obj3 = 0 ;
2496 PyObject * obj4 = 0 ;
8edf1c75 2497 PyObject * obj5 = 0 ;
d14a1e28
RD
2498 PyObject * obj6 = 0 ;
2499 char *kwnames[] = {
2500 (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
2501 };
2502
a95a7133 2503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_CalendarCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
36ed4f51
RD
2504 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2505 if (SWIG_arg_fail(1)) SWIG_fail;
a95a7133 2506 if (obj1) {
36ed4f51 2507 {
32fe5131 2508 arg2 = static_cast<int >(SWIG_As_int(obj1));
36ed4f51
RD
2509 if (SWIG_arg_fail(2)) SWIG_fail;
2510 }
a95a7133 2511 }
d14a1e28 2512 if (obj2) {
36ed4f51
RD
2513 {
2514 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
2515 if (SWIG_arg_fail(3)) SWIG_fail;
2516 if (arg3 == NULL) {
2517 SWIG_null_ref("wxDateTime");
2518 }
2519 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
2520 }
2521 }
2522 if (obj3) {
2523 {
2524 arg4 = &temp4;
2525 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2526 }
2527 }
2528 if (obj4) {
2529 {
2530 arg5 = &temp5;
2531 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2532 }
2533 }
8edf1c75 2534 if (obj5) {
36ed4f51 2535 {
32fe5131 2536 arg6 = static_cast<long >(SWIG_As_long(obj5));
36ed4f51
RD
2537 if (SWIG_arg_fail(6)) SWIG_fail;
2538 }
8edf1c75 2539 }
d14a1e28
RD
2540 if (obj6) {
2541 {
2542 arg7 = wxString_in_helper(obj6);
2543 if (arg7 == NULL) SWIG_fail;
b411df4a 2544 temp7 = true;
d14a1e28
RD
2545 }
2546 }
2547 {
0439c23b 2548 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2549 PyThreadState* __tstate = wxPyBeginAllowThreads();
2550 result = (wxCalendarCtrl *)new wxCalendarCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
2551
2552 wxPyEndAllowThreads(__tstate);
110da5b0 2553 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2554 }
2f4c0a16 2555 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarCtrl, 1);
d14a1e28
RD
2556 {
2557 if (temp7)
2558 delete arg7;
2559 }
2560 return resultobj;
2561 fail:
2562 {
2563 if (temp7)
2564 delete arg7;
2565 }
2566 return NULL;
2567}
2568
2569
c370783e 2570static PyObject *_wrap_new_PreCalendarCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2571 PyObject *resultobj = NULL;
d14a1e28
RD
2572 wxCalendarCtrl *result;
2573 char *kwnames[] = {
2574 NULL
2575 };
2576
2577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCalendarCtrl",kwnames)) goto fail;
2578 {
0439c23b 2579 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2580 PyThreadState* __tstate = wxPyBeginAllowThreads();
2581 result = (wxCalendarCtrl *)new wxCalendarCtrl();
2582
2583 wxPyEndAllowThreads(__tstate);
110da5b0 2584 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2585 }
2f4c0a16 2586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarCtrl, 1);
d14a1e28
RD
2587 return resultobj;
2588 fail:
2589 return NULL;
2590}
2591
2592
c370783e 2593static PyObject *_wrap_CalendarCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2594 PyObject *resultobj = NULL;
d14a1e28
RD
2595 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2596 wxWindow *arg2 = (wxWindow *) 0 ;
423f194a 2597 int arg3 ;
d14a1e28
RD
2598 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
2599 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
2600 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2601 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2602 wxSize const &arg6_defvalue = wxDefaultSize ;
2603 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2604 long arg7 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
2605 wxString const &arg8_defvalue = wxPyCalendarNameStr ;
2606 wxString *arg8 = (wxString *) &arg8_defvalue ;
2607 bool result;
2608 wxPoint temp5 ;
2609 wxSize temp6 ;
b411df4a 2610 bool temp8 = false ;
d14a1e28
RD
2611 PyObject * obj0 = 0 ;
2612 PyObject * obj1 = 0 ;
8edf1c75 2613 PyObject * obj2 = 0 ;
d14a1e28
RD
2614 PyObject * obj3 = 0 ;
2615 PyObject * obj4 = 0 ;
2616 PyObject * obj5 = 0 ;
8edf1c75 2617 PyObject * obj6 = 0 ;
d14a1e28
RD
2618 PyObject * obj7 = 0 ;
2619 char *kwnames[] = {
2620 (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
2621 };
2622
8edf1c75 2623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:CalendarCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
36ed4f51
RD
2624 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2625 if (SWIG_arg_fail(1)) SWIG_fail;
2626 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2627 if (SWIG_arg_fail(2)) SWIG_fail;
2628 {
32fe5131 2629 arg3 = static_cast<int >(SWIG_As_int(obj2));
36ed4f51
RD
2630 if (SWIG_arg_fail(3)) SWIG_fail;
2631 }
d14a1e28 2632 if (obj3) {
36ed4f51
RD
2633 {
2634 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
2635 if (SWIG_arg_fail(4)) SWIG_fail;
2636 if (arg4 == NULL) {
2637 SWIG_null_ref("wxDateTime");
2638 }
2639 if (SWIG_arg_fail(4)) SWIG_fail;
d14a1e28
RD
2640 }
2641 }
2642 if (obj4) {
2643 {
2644 arg5 = &temp5;
2645 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2646 }
2647 }
2648 if (obj5) {
2649 {
2650 arg6 = &temp6;
2651 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2652 }
2653 }
8edf1c75 2654 if (obj6) {
36ed4f51 2655 {
32fe5131 2656 arg7 = static_cast<long >(SWIG_As_long(obj6));
36ed4f51
RD
2657 if (SWIG_arg_fail(7)) SWIG_fail;
2658 }
8edf1c75 2659 }
d14a1e28
RD
2660 if (obj7) {
2661 {
2662 arg8 = wxString_in_helper(obj7);
2663 if (arg8 == NULL) SWIG_fail;
b411df4a 2664 temp8 = true;
d14a1e28
RD
2665 }
2666 }
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 }
fbc46b20
RD
2674 {
2675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2676 }
d14a1e28
RD
2677 {
2678 if (temp8)
2679 delete arg8;
2680 }
2681 return resultobj;
2682 fail:
2683 {
2684 if (temp8)
2685 delete arg8;
2686 }
2687 return NULL;
2688}
2689
2690
c370783e 2691static PyObject *_wrap_CalendarCtrl_SetDate(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2692 PyObject *resultobj = NULL;
d14a1e28
RD
2693 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2694 wxDateTime *arg2 = 0 ;
2695 PyObject * obj0 = 0 ;
2696 PyObject * obj1 = 0 ;
2697 char *kwnames[] = {
2698 (char *) "self",(char *) "date", NULL
2699 };
2700
2701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetDate",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2702 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2703 if (SWIG_arg_fail(1)) SWIG_fail;
2704 {
2705 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
2706 if (SWIG_arg_fail(2)) SWIG_fail;
2707 if (arg2 == NULL) {
2708 SWIG_null_ref("wxDateTime");
2709 }
2710 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
2711 }
2712 {
2713 PyThreadState* __tstate = wxPyBeginAllowThreads();
2714 (arg1)->SetDate((wxDateTime const &)*arg2);
2715
2716 wxPyEndAllowThreads(__tstate);
2717 if (PyErr_Occurred()) SWIG_fail;
2718 }
2719 Py_INCREF(Py_None); resultobj = Py_None;
2720 return resultobj;
2721 fail:
2722 return NULL;
2723}
2724
2725
c370783e 2726static PyObject *_wrap_CalendarCtrl_GetDate(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2727 PyObject *resultobj = NULL;
d14a1e28
RD
2728 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2729 wxDateTime *result;
2730 PyObject * obj0 = 0 ;
2731 char *kwnames[] = {
2732 (char *) "self", NULL
2733 };
2734
2735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetDate",kwnames,&obj0)) goto fail;
36ed4f51
RD
2736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2737 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2738 {
2739 PyThreadState* __tstate = wxPyBeginAllowThreads();
2740 {
2741 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetDate();
2742 result = (wxDateTime *) &_result_ref;
2743 }
2744
2745 wxPyEndAllowThreads(__tstate);
2746 if (PyErr_Occurred()) SWIG_fail;
2747 }
2f4c0a16 2748 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
2749 return resultobj;
2750 fail:
2751 return NULL;
2752}
2753
2754
c370783e 2755static PyObject *_wrap_CalendarCtrl_SetLowerDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2756 PyObject *resultobj = NULL;
d14a1e28
RD
2757 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2758 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
2759 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
2760 bool result;
2761 PyObject * obj0 = 0 ;
2762 PyObject * obj1 = 0 ;
2763 char *kwnames[] = {
2764 (char *) "self",(char *) "date", NULL
2765 };
2766
2767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2769 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 2770 if (obj1) {
36ed4f51
RD
2771 {
2772 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
2773 if (SWIG_arg_fail(2)) SWIG_fail;
2774 if (arg2 == NULL) {
2775 SWIG_null_ref("wxDateTime");
2776 }
2777 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
2778 }
2779 }
2780 {
2781 PyThreadState* __tstate = wxPyBeginAllowThreads();
2782 result = (bool)(arg1)->SetLowerDateLimit((wxDateTime const &)*arg2);
2783
2784 wxPyEndAllowThreads(__tstate);
2785 if (PyErr_Occurred()) SWIG_fail;
2786 }
fbc46b20
RD
2787 {
2788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2789 }
d14a1e28
RD
2790 return resultobj;
2791 fail:
2792 return NULL;
2793}
2794
2795
c370783e 2796static PyObject *_wrap_CalendarCtrl_SetUpperDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2797 PyObject *resultobj = NULL;
d14a1e28 2798 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
98e665d3
RD
2799 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
2800 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
2801 bool result;
d14a1e28 2802 PyObject * obj0 = 0 ;
98e665d3 2803 PyObject * obj1 = 0 ;
d14a1e28 2804 char *kwnames[] = {
98e665d3 2805 (char *) "self",(char *) "date", NULL
d14a1e28
RD
2806 };
2807
98e665d3 2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2809 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2810 if (SWIG_arg_fail(1)) SWIG_fail;
98e665d3 2811 if (obj1) {
36ed4f51
RD
2812 {
2813 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
2814 if (SWIG_arg_fail(2)) SWIG_fail;
2815 if (arg2 == NULL) {
2816 SWIG_null_ref("wxDateTime");
2817 }
2818 if (SWIG_arg_fail(2)) SWIG_fail;
98e665d3
RD
2819 }
2820 }
d14a1e28
RD
2821 {
2822 PyThreadState* __tstate = wxPyBeginAllowThreads();
98e665d3 2823 result = (bool)(arg1)->SetUpperDateLimit((wxDateTime const &)*arg2);
d14a1e28
RD
2824
2825 wxPyEndAllowThreads(__tstate);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
fbc46b20
RD
2828 {
2829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2830 }
d14a1e28
RD
2831 return resultobj;
2832 fail:
2833 return NULL;
2834}
2835
2836
c370783e 2837static PyObject *_wrap_CalendarCtrl_GetLowerDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2838 PyObject *resultobj = NULL;
d14a1e28 2839 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
98e665d3 2840 wxDateTime *result;
d14a1e28 2841 PyObject * obj0 = 0 ;
d14a1e28 2842 char *kwnames[] = {
98e665d3 2843 (char *) "self", NULL
d14a1e28
RD
2844 };
2845
98e665d3 2846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames,&obj0)) goto fail;
36ed4f51
RD
2847 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2848 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2849 {
2850 PyThreadState* __tstate = wxPyBeginAllowThreads();
98e665d3
RD
2851 {
2852 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetLowerDateLimit();
2853 result = (wxDateTime *) &_result_ref;
2854 }
d14a1e28
RD
2855
2856 wxPyEndAllowThreads(__tstate);
2857 if (PyErr_Occurred()) SWIG_fail;
2858 }
2f4c0a16 2859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
2860 return resultobj;
2861 fail:
2862 return NULL;
2863}
2864
2865
c370783e 2866static PyObject *_wrap_CalendarCtrl_GetUpperDateLimit(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2867 PyObject *resultobj = NULL;
d14a1e28
RD
2868 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2869 wxDateTime *result;
2870 PyObject * obj0 = 0 ;
2871 char *kwnames[] = {
2872 (char *) "self", NULL
2873 };
2874
2875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames,&obj0)) goto fail;
36ed4f51
RD
2876 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2877 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2878 {
2879 PyThreadState* __tstate = wxPyBeginAllowThreads();
2880 {
2881 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetUpperDateLimit();
2882 result = (wxDateTime *) &_result_ref;
2883 }
2884
2885 wxPyEndAllowThreads(__tstate);
2886 if (PyErr_Occurred()) SWIG_fail;
2887 }
2f4c0a16 2888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
2889 return resultobj;
2890 fail:
2891 return NULL;
2892}
2893
2894
c370783e 2895static PyObject *_wrap_CalendarCtrl_SetDateRange(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2896 PyObject *resultobj = NULL;
d14a1e28
RD
2897 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2898 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
2899 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
2900 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
2901 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
2902 bool result;
2903 PyObject * obj0 = 0 ;
2904 PyObject * obj1 = 0 ;
2905 PyObject * obj2 = 0 ;
2906 char *kwnames[] = {
2907 (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL
2908 };
2909
2910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
36ed4f51
RD
2911 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2912 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 2913 if (obj1) {
36ed4f51
RD
2914 {
2915 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
2916 if (SWIG_arg_fail(2)) SWIG_fail;
2917 if (arg2 == NULL) {
2918 SWIG_null_ref("wxDateTime");
2919 }
2920 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28
RD
2921 }
2922 }
2923 if (obj2) {
36ed4f51
RD
2924 {
2925 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
2926 if (SWIG_arg_fail(3)) SWIG_fail;
2927 if (arg3 == NULL) {
2928 SWIG_null_ref("wxDateTime");
2929 }
2930 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
2931 }
2932 }
2933 {
2934 PyThreadState* __tstate = wxPyBeginAllowThreads();
2935 result = (bool)(arg1)->SetDateRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
2936
2937 wxPyEndAllowThreads(__tstate);
2938 if (PyErr_Occurred()) SWIG_fail;
2939 }
fbc46b20
RD
2940 {
2941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2942 }
d14a1e28
RD
2943 return resultobj;
2944 fail:
2945 return NULL;
2946}
2947
2948
c370783e 2949static PyObject *_wrap_CalendarCtrl_EnableYearChange(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2950 PyObject *resultobj = NULL;
d14a1e28 2951 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
b411df4a 2952 bool arg2 = (bool) true ;
d14a1e28
RD
2953 PyObject * obj0 = 0 ;
2954 PyObject * obj1 = 0 ;
2955 char *kwnames[] = {
2956 (char *) "self",(char *) "enable", NULL
2957 };
2958
2959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2960 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2961 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 2962 if (obj1) {
36ed4f51 2963 {
32fe5131 2964 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
36ed4f51
RD
2965 if (SWIG_arg_fail(2)) SWIG_fail;
2966 }
d14a1e28
RD
2967 }
2968 {
2969 PyThreadState* __tstate = wxPyBeginAllowThreads();
2970 (arg1)->EnableYearChange(arg2);
2971
2972 wxPyEndAllowThreads(__tstate);
2973 if (PyErr_Occurred()) SWIG_fail;
2974 }
2975 Py_INCREF(Py_None); resultobj = Py_None;
2976 return resultobj;
2977 fail:
2978 return NULL;
2979}
2980
2981
c370783e 2982static PyObject *_wrap_CalendarCtrl_EnableMonthChange(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2983 PyObject *resultobj = NULL;
d14a1e28 2984 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
b411df4a 2985 bool arg2 = (bool) true ;
d14a1e28
RD
2986 PyObject * obj0 = 0 ;
2987 PyObject * obj1 = 0 ;
2988 char *kwnames[] = {
2989 (char *) "self",(char *) "enable", NULL
2990 };
2991
2992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
2994 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 2995 if (obj1) {
36ed4f51 2996 {
32fe5131 2997 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
36ed4f51
RD
2998 if (SWIG_arg_fail(2)) SWIG_fail;
2999 }
d14a1e28
RD
3000 }
3001 {
3002 PyThreadState* __tstate = wxPyBeginAllowThreads();
3003 (arg1)->EnableMonthChange(arg2);
3004
3005 wxPyEndAllowThreads(__tstate);
3006 if (PyErr_Occurred()) SWIG_fail;
3007 }
3008 Py_INCREF(Py_None); resultobj = Py_None;
3009 return resultobj;
3010 fail:
3011 return NULL;
3012}
3013
3014
c370783e 3015static PyObject *_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3016 PyObject *resultobj = NULL;
d14a1e28 3017 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
b411df4a 3018 bool arg2 = (bool) true ;
d14a1e28
RD
3019 PyObject * obj0 = 0 ;
3020 PyObject * obj1 = 0 ;
3021 char *kwnames[] = {
3022 (char *) "self",(char *) "display", NULL
3023 };
3024
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
3026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3027 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 3028 if (obj1) {
36ed4f51 3029 {
32fe5131 3030 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
36ed4f51
RD
3031 if (SWIG_arg_fail(2)) SWIG_fail;
3032 }
d14a1e28
RD
3033 }
3034 {
3035 PyThreadState* __tstate = wxPyBeginAllowThreads();
3036 (arg1)->EnableHolidayDisplay(arg2);
3037
3038 wxPyEndAllowThreads(__tstate);
3039 if (PyErr_Occurred()) SWIG_fail;
3040 }
3041 Py_INCREF(Py_None); resultobj = Py_None;
3042 return resultobj;
3043 fail:
3044 return NULL;
3045}
3046
3047
c370783e 3048static PyObject *_wrap_CalendarCtrl_SetHeaderColours(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3049 PyObject *resultobj = NULL;
d14a1e28
RD
3050 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3051 wxColour *arg2 = 0 ;
3052 wxColour *arg3 = 0 ;
3053 wxColour temp2 ;
3054 wxColour temp3 ;
3055 PyObject * obj0 = 0 ;
3056 PyObject * obj1 = 0 ;
3057 PyObject * obj2 = 0 ;
3058 char *kwnames[] = {
3059 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
3060 };
3061
3062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHeaderColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
36ed4f51
RD
3063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3064 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3065 {
3066 arg2 = &temp2;
3067 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3068 }
3069 {
3070 arg3 = &temp3;
3071 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
3072 }
3073 {
3074 PyThreadState* __tstate = wxPyBeginAllowThreads();
3075 (arg1)->SetHeaderColours((wxColour const &)*arg2,(wxColour const &)*arg3);
3076
3077 wxPyEndAllowThreads(__tstate);
3078 if (PyErr_Occurred()) SWIG_fail;
3079 }
3080 Py_INCREF(Py_None); resultobj = Py_None;
3081 return resultobj;
3082 fail:
3083 return NULL;
3084}
3085
3086
c370783e 3087static PyObject *_wrap_CalendarCtrl_GetHeaderColourFg(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3088 PyObject *resultobj = NULL;
d14a1e28
RD
3089 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3090 wxColour result;
3091 PyObject * obj0 = 0 ;
3092 char *kwnames[] = {
3093 (char *) "self", NULL
3094 };
3095
3096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourFg",kwnames,&obj0)) goto fail;
36ed4f51
RD
3097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3098 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3099 {
3100 PyThreadState* __tstate = wxPyBeginAllowThreads();
3101 result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourFg();
3102
3103 wxPyEndAllowThreads(__tstate);
3104 if (PyErr_Occurred()) SWIG_fail;
3105 }
3106 {
3107 wxColour * resultptr;
32fe5131 3108 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 3109 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
3110 }
3111 return resultobj;
3112 fail:
3113 return NULL;
3114}
3115
3116
c370783e 3117static PyObject *_wrap_CalendarCtrl_GetHeaderColourBg(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3118 PyObject *resultobj = NULL;
d14a1e28
RD
3119 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3120 wxColour result;
3121 PyObject * obj0 = 0 ;
3122 char *kwnames[] = {
3123 (char *) "self", NULL
3124 };
3125
3126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourBg",kwnames,&obj0)) goto fail;
36ed4f51
RD
3127 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3128 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3129 {
3130 PyThreadState* __tstate = wxPyBeginAllowThreads();
3131 result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourBg();
3132
3133 wxPyEndAllowThreads(__tstate);
3134 if (PyErr_Occurred()) SWIG_fail;
3135 }
3136 {
3137 wxColour * resultptr;
32fe5131 3138 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 3139 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
3140 }
3141 return resultobj;
3142 fail:
3143 return NULL;
3144}
3145
3146
c370783e 3147static PyObject *_wrap_CalendarCtrl_SetHighlightColours(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3148 PyObject *resultobj = NULL;
d14a1e28
RD
3149 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3150 wxColour *arg2 = 0 ;
3151 wxColour *arg3 = 0 ;
3152 wxColour temp2 ;
3153 wxColour temp3 ;
3154 PyObject * obj0 = 0 ;
3155 PyObject * obj1 = 0 ;
3156 PyObject * obj2 = 0 ;
3157 char *kwnames[] = {
3158 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
3159 };
3160
3161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHighlightColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
36ed4f51
RD
3162 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3163 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3164 {
3165 arg2 = &temp2;
3166 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3167 }
3168 {
3169 arg3 = &temp3;
3170 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
3171 }
3172 {
3173 PyThreadState* __tstate = wxPyBeginAllowThreads();
3174 (arg1)->SetHighlightColours((wxColour const &)*arg2,(wxColour const &)*arg3);
3175
3176 wxPyEndAllowThreads(__tstate);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 Py_INCREF(Py_None); resultobj = Py_None;
3180 return resultobj;
3181 fail:
3182 return NULL;
3183}
3184
3185
c370783e 3186static PyObject *_wrap_CalendarCtrl_GetHighlightColourFg(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3187 PyObject *resultobj = NULL;
d14a1e28
RD
3188 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3189 wxColour result;
3190 PyObject * obj0 = 0 ;
3191 char *kwnames[] = {
3192 (char *) "self", NULL
3193 };
3194
3195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourFg",kwnames,&obj0)) goto fail;
36ed4f51
RD
3196 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3197 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3198 {
3199 PyThreadState* __tstate = wxPyBeginAllowThreads();
3200 result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourFg();
3201
3202 wxPyEndAllowThreads(__tstate);
3203 if (PyErr_Occurred()) SWIG_fail;
3204 }
3205 {
3206 wxColour * resultptr;
32fe5131 3207 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 3208 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
3209 }
3210 return resultobj;
3211 fail:
3212 return NULL;
3213}
3214
3215
c370783e 3216static PyObject *_wrap_CalendarCtrl_GetHighlightColourBg(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3217 PyObject *resultobj = NULL;
d14a1e28
RD
3218 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3219 wxColour result;
3220 PyObject * obj0 = 0 ;
3221 char *kwnames[] = {
3222 (char *) "self", NULL
3223 };
3224
3225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourBg",kwnames,&obj0)) goto fail;
36ed4f51
RD
3226 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3227 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourBg();
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
3235 {
3236 wxColour * resultptr;
32fe5131 3237 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 3238 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
3239 }
3240 return resultobj;
3241 fail:
3242 return NULL;
3243}
3244
3245
c370783e 3246static PyObject *_wrap_CalendarCtrl_SetHolidayColours(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3247 PyObject *resultobj = NULL;
d14a1e28
RD
3248 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3249 wxColour *arg2 = 0 ;
3250 wxColour *arg3 = 0 ;
3251 wxColour temp2 ;
3252 wxColour temp3 ;
3253 PyObject * obj0 = 0 ;
3254 PyObject * obj1 = 0 ;
3255 PyObject * obj2 = 0 ;
3256 char *kwnames[] = {
3257 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
3258 };
3259
3260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHolidayColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
36ed4f51
RD
3261 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3262 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3263 {
3264 arg2 = &temp2;
3265 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3266 }
3267 {
3268 arg3 = &temp3;
3269 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
3270 }
3271 {
3272 PyThreadState* __tstate = wxPyBeginAllowThreads();
3273 (arg1)->SetHolidayColours((wxColour const &)*arg2,(wxColour const &)*arg3);
3274
3275 wxPyEndAllowThreads(__tstate);
3276 if (PyErr_Occurred()) SWIG_fail;
3277 }
3278 Py_INCREF(Py_None); resultobj = Py_None;
3279 return resultobj;
3280 fail:
3281 return NULL;
3282}
3283
3284
c370783e 3285static PyObject *_wrap_CalendarCtrl_GetHolidayColourFg(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3286 PyObject *resultobj = NULL;
d14a1e28
RD
3287 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3288 wxColour result;
3289 PyObject * obj0 = 0 ;
3290 char *kwnames[] = {
3291 (char *) "self", NULL
3292 };
3293
3294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourFg",kwnames,&obj0)) goto fail;
36ed4f51
RD
3295 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3296 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3297 {
3298 PyThreadState* __tstate = wxPyBeginAllowThreads();
3299 result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourFg();
3300
3301 wxPyEndAllowThreads(__tstate);
3302 if (PyErr_Occurred()) SWIG_fail;
3303 }
3304 {
3305 wxColour * resultptr;
32fe5131 3306 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 3307 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
3308 }
3309 return resultobj;
3310 fail:
3311 return NULL;
3312}
3313
3314
c370783e 3315static PyObject *_wrap_CalendarCtrl_GetHolidayColourBg(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3316 PyObject *resultobj = NULL;
d14a1e28
RD
3317 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3318 wxColour result;
3319 PyObject * obj0 = 0 ;
3320 char *kwnames[] = {
3321 (char *) "self", NULL
3322 };
3323
3324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourBg",kwnames,&obj0)) goto fail;
36ed4f51
RD
3325 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3326 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3327 {
3328 PyThreadState* __tstate = wxPyBeginAllowThreads();
3329 result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourBg();
3330
3331 wxPyEndAllowThreads(__tstate);
3332 if (PyErr_Occurred()) SWIG_fail;
3333 }
3334 {
3335 wxColour * resultptr;
32fe5131 3336 resultptr = new wxColour(static_cast<wxColour & >(result));
2f4c0a16 3337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
3338 }
3339 return resultobj;
3340 fail:
3341 return NULL;
3342}
3343
3344
c370783e 3345static PyObject *_wrap_CalendarCtrl_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3346 PyObject *resultobj = NULL;
d14a1e28
RD
3347 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3348 size_t arg2 ;
3349 wxCalendarDateAttr *result;
3350 PyObject * obj0 = 0 ;
3351 PyObject * obj1 = 0 ;
3352 char *kwnames[] = {
3353 (char *) "self",(char *) "day", NULL
3354 };
3355
3356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_GetAttr",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
3357 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3358 if (SWIG_arg_fail(1)) SWIG_fail;
3359 {
32fe5131 3360 arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1));
36ed4f51
RD
3361 if (SWIG_arg_fail(2)) SWIG_fail;
3362 }
d14a1e28
RD
3363 {
3364 PyThreadState* __tstate = wxPyBeginAllowThreads();
3365 result = (wxCalendarDateAttr *)((wxCalendarCtrl const *)arg1)->GetAttr(arg2);
3366
3367 wxPyEndAllowThreads(__tstate);
3368 if (PyErr_Occurred()) SWIG_fail;
3369 }
2f4c0a16 3370 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarDateAttr, 0);
d14a1e28
RD
3371 return resultobj;
3372 fail:
3373 return NULL;
3374}
3375
3376
c370783e 3377static PyObject *_wrap_CalendarCtrl_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3378 PyObject *resultobj = NULL;
d14a1e28
RD
3379 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3380 size_t arg2 ;
3381 wxCalendarDateAttr *arg3 = (wxCalendarDateAttr *) 0 ;
3382 PyObject * obj0 = 0 ;
3383 PyObject * obj1 = 0 ;
3384 PyObject * obj2 = 0 ;
3385 char *kwnames[] = {
3386 (char *) "self",(char *) "day",(char *) "attr", NULL
3387 };
3388
3389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
36ed4f51
RD
3390 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3391 if (SWIG_arg_fail(1)) SWIG_fail;
3392 {
32fe5131 3393 arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1));
36ed4f51
RD
3394 if (SWIG_arg_fail(2)) SWIG_fail;
3395 }
3396 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0);
3397 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
3398 {
3399 PyThreadState* __tstate = wxPyBeginAllowThreads();
3400 (arg1)->SetAttr(arg2,arg3);
3401
3402 wxPyEndAllowThreads(__tstate);
3403 if (PyErr_Occurred()) SWIG_fail;
3404 }
3405 Py_INCREF(Py_None); resultobj = Py_None;
3406 return resultobj;
3407 fail:
3408 return NULL;
3409}
3410
3411
c370783e 3412static PyObject *_wrap_CalendarCtrl_SetHoliday(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3413 PyObject *resultobj = NULL;
d14a1e28
RD
3414 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3415 size_t arg2 ;
3416 PyObject * obj0 = 0 ;
3417 PyObject * obj1 = 0 ;
3418 char *kwnames[] = {
3419 (char *) "self",(char *) "day", NULL
3420 };
3421
3422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetHoliday",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
3423 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3424 if (SWIG_arg_fail(1)) SWIG_fail;
3425 {
32fe5131 3426 arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1));
36ed4f51
RD
3427 if (SWIG_arg_fail(2)) SWIG_fail;
3428 }
d14a1e28
RD
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 (arg1)->SetHoliday(arg2);
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 Py_INCREF(Py_None); resultobj = Py_None;
3437 return resultobj;
3438 fail:
3439 return NULL;
3440}
3441
3442
c370783e 3443static PyObject *_wrap_CalendarCtrl_ResetAttr(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3444 PyObject *resultobj = NULL;
d14a1e28
RD
3445 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3446 size_t arg2 ;
3447 PyObject * obj0 = 0 ;
3448 PyObject * obj1 = 0 ;
3449 char *kwnames[] = {
3450 (char *) "self",(char *) "day", NULL
3451 };
3452
3453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_ResetAttr",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
3454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3455 if (SWIG_arg_fail(1)) SWIG_fail;
3456 {
32fe5131 3457 arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1));
36ed4f51
RD
3458 if (SWIG_arg_fail(2)) SWIG_fail;
3459 }
d14a1e28
RD
3460 {
3461 PyThreadState* __tstate = wxPyBeginAllowThreads();
3462 (arg1)->ResetAttr(arg2);
3463
3464 wxPyEndAllowThreads(__tstate);
3465 if (PyErr_Occurred()) SWIG_fail;
3466 }
3467 Py_INCREF(Py_None); resultobj = Py_None;
3468 return resultobj;
3469 fail:
3470 return NULL;
3471}
3472
3473
c370783e 3474static PyObject *_wrap_CalendarCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3475 PyObject *resultobj = NULL;
d14a1e28
RD
3476 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3477 wxPoint *arg2 = 0 ;
98e665d3 3478 PyObject *result;
d14a1e28
RD
3479 wxPoint temp2 ;
3480 PyObject * obj0 = 0 ;
3481 PyObject * obj1 = 0 ;
d14a1e28 3482 char *kwnames[] = {
98e665d3 3483 (char *) "self",(char *) "pos", NULL
d14a1e28
RD
3484 };
3485
98e665d3 3486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
3487 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3488 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
3489 {
3490 arg2 = &temp2;
3491 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3492 }
d14a1e28
RD
3493 {
3494 PyThreadState* __tstate = wxPyBeginAllowThreads();
98e665d3 3495 result = (PyObject *)wxCalendarCtrl_HitTest(arg1,(wxPoint const &)*arg2);
d14a1e28
RD
3496
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
98e665d3 3500 resultobj = result;
d14a1e28
RD
3501 return resultobj;
3502 fail:
3503 return NULL;
3504}
3505
3506
c370783e 3507static PyObject *_wrap_CalendarCtrl_GetMonthControl(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3508 PyObject *resultobj = NULL;
9fd4be55
RD
3509 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3510 wxControl *result;
3511 PyObject * obj0 = 0 ;
3512 char *kwnames[] = {
3513 (char *) "self", NULL
3514 };
3515
3516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetMonthControl",kwnames,&obj0)) goto fail;
36ed4f51
RD
3517 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3518 if (SWIG_arg_fail(1)) SWIG_fail;
9fd4be55
RD
3519 {
3520 PyThreadState* __tstate = wxPyBeginAllowThreads();
3521 result = (wxControl *)((wxCalendarCtrl const *)arg1)->GetMonthControl();
3522
3523 wxPyEndAllowThreads(__tstate);
3524 if (PyErr_Occurred()) SWIG_fail;
3525 }
3526 {
412d302d 3527 resultobj = wxPyMake_wxObject(result, 0);
9fd4be55
RD
3528 }
3529 return resultobj;
3530 fail:
3531 return NULL;
3532}
3533
3534
c370783e 3535static PyObject *_wrap_CalendarCtrl_GetYearControl(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3536 PyObject *resultobj = NULL;
9fd4be55
RD
3537 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
3538 wxControl *result;
3539 PyObject * obj0 = 0 ;
3540 char *kwnames[] = {
3541 (char *) "self", NULL
3542 };
3543
3544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetYearControl",kwnames,&obj0)) goto fail;
36ed4f51
RD
3545 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0);
3546 if (SWIG_arg_fail(1)) SWIG_fail;
9fd4be55
RD
3547 {
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 result = (wxControl *)((wxCalendarCtrl const *)arg1)->GetYearControl();
3550
3551 wxPyEndAllowThreads(__tstate);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 {
412d302d 3555 resultobj = wxPyMake_wxObject(result, 0);
9fd4be55
RD
3556 }
3557 return resultobj;
3558 fail:
3559 return NULL;
3560}
3561
3562
c370783e 3563static PyObject *_wrap_CalendarCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 3564 PyObject *resultobj = NULL;
36ed4f51 3565 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
f20a2e1f
RD
3566 wxVisualAttributes result;
3567 PyObject * obj0 = 0 ;
3568 char *kwnames[] = {
3569 (char *) "variant", NULL
3570 };
3571
3572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CalendarCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3573 if (obj0) {
36ed4f51 3574 {
32fe5131 3575 arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0));
36ed4f51
RD
3576 if (SWIG_arg_fail(1)) SWIG_fail;
3577 }
f20a2e1f
RD
3578 }
3579 {
0439c23b 3580 if (!wxPyCheckForApp()) SWIG_fail;
f20a2e1f 3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
32fe5131 3582 result = wxCalendarCtrl::GetClassDefaultAttributes(arg1);
f20a2e1f
RD
3583
3584 wxPyEndAllowThreads(__tstate);
110da5b0 3585 if (PyErr_Occurred()) SWIG_fail;
f20a2e1f
RD
3586 }
3587 {
3588 wxVisualAttributes * resultptr;
32fe5131 3589 resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result));
f20a2e1f
RD
3590 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3591 }
3592 return resultobj;
3593 fail:
3594 return NULL;
3595}
3596
3597
c370783e 3598static PyObject * CalendarCtrl_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
3599 PyObject *obj;
3600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3601 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl, obj);
3602 Py_INCREF(obj);
3603 return Py_BuildValue((char *)"");
3604}
3605static PyMethodDef SwigMethods[] = {
36ed4f51
RD
3606 { (char *)"new_CalendarDateAttr", (PyCFunction) _wrap_new_CalendarDateAttr, METH_VARARGS | METH_KEYWORDS, NULL},
3607 { (char *)"CalendarDateAttr_SetTextColour", (PyCFunction) _wrap_CalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
3608 { (char *)"CalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
3609 { (char *)"CalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS, NULL},
3610 { (char *)"CalendarDateAttr_SetFont", (PyCFunction) _wrap_CalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
3611 { (char *)"CalendarDateAttr_SetBorder", (PyCFunction) _wrap_CalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
3612 { (char *)"CalendarDateAttr_SetHoliday", (PyCFunction) _wrap_CalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS, NULL},
3613 { (char *)"CalendarDateAttr_HasTextColour", (PyCFunction) _wrap_CalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
3614 { (char *)"CalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
3615 { (char *)"CalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_CalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS, NULL},
3616 { (char *)"CalendarDateAttr_HasFont", (PyCFunction) _wrap_CalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL},
3617 { (char *)"CalendarDateAttr_HasBorder", (PyCFunction) _wrap_CalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL},
3618 { (char *)"CalendarDateAttr_IsHoliday", (PyCFunction) _wrap_CalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS, NULL},
3619 { (char *)"CalendarDateAttr_GetTextColour", (PyCFunction) _wrap_CalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
3620 { (char *)"CalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
3621 { (char *)"CalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS, NULL},
3622 { (char *)"CalendarDateAttr_GetFont", (PyCFunction) _wrap_CalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
3623 { (char *)"CalendarDateAttr_GetBorder", (PyCFunction) _wrap_CalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
3624 { (char *)"CalendarDateAttr_swigregister", CalendarDateAttr_swigregister, METH_VARARGS, NULL},
3625 { (char *)"new_CalendarEvent", (PyCFunction) _wrap_new_CalendarEvent, METH_VARARGS | METH_KEYWORDS, NULL},
36ed4f51
RD
3626 { (char *)"CalendarEvent_SetWeekDay", (PyCFunction) _wrap_CalendarEvent_SetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
3627 { (char *)"CalendarEvent_GetWeekDay", (PyCFunction) _wrap_CalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL},
3628 { (char *)"CalendarEvent_swigregister", CalendarEvent_swigregister, METH_VARARGS, NULL},
3629 { (char *)"new_CalendarCtrl", (PyCFunction) _wrap_new_CalendarCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
3630 { (char *)"new_PreCalendarCtrl", (PyCFunction) _wrap_new_PreCalendarCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
3631 { (char *)"CalendarCtrl_Create", (PyCFunction) _wrap_CalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
3632 { (char *)"CalendarCtrl_SetDate", (PyCFunction) _wrap_CalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS, NULL},
3633 { (char *)"CalendarCtrl_GetDate", (PyCFunction) _wrap_CalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS, NULL},
3634 { (char *)"CalendarCtrl_SetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetLowerDateLimit, METH_VARARGS | METH_KEYWORDS, NULL},
3635 { (char *)"CalendarCtrl_SetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetUpperDateLimit, METH_VARARGS | METH_KEYWORDS, NULL},
3636 { (char *)"CalendarCtrl_GetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetLowerDateLimit, METH_VARARGS | METH_KEYWORDS, NULL},
3637 { (char *)"CalendarCtrl_GetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetUpperDateLimit, METH_VARARGS | METH_KEYWORDS, NULL},
3638 { (char *)"CalendarCtrl_SetDateRange", (PyCFunction) _wrap_CalendarCtrl_SetDateRange, METH_VARARGS | METH_KEYWORDS, NULL},
3639 { (char *)"CalendarCtrl_EnableYearChange", (PyCFunction) _wrap_CalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS, NULL},
3640 { (char *)"CalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_CalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS, NULL},
3641 { (char *)"CalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_CalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS, NULL},
3642 { (char *)"CalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_CalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS, NULL},
3643 { (char *)"CalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS, NULL},
3644 { (char *)"CalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS, NULL},
3645 { (char *)"CalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_CalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS, NULL},
3646 { (char *)"CalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS, NULL},
3647 { (char *)"CalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS, NULL},
3648 { (char *)"CalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_CalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS, NULL},
3649 { (char *)"CalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS, NULL},
3650 { (char *)"CalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS, NULL},
3651 { (char *)"CalendarCtrl_GetAttr", (PyCFunction) _wrap_CalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL},
3652 { (char *)"CalendarCtrl_SetAttr", (PyCFunction) _wrap_CalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL},
3653 { (char *)"CalendarCtrl_SetHoliday", (PyCFunction) _wrap_CalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS, NULL},
3654 { (char *)"CalendarCtrl_ResetAttr", (PyCFunction) _wrap_CalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS, NULL},
3655 { (char *)"CalendarCtrl_HitTest", (PyCFunction) _wrap_CalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
3656 { (char *)"CalendarCtrl_GetMonthControl", (PyCFunction) _wrap_CalendarCtrl_GetMonthControl, METH_VARARGS | METH_KEYWORDS, NULL},
3657 { (char *)"CalendarCtrl_GetYearControl", (PyCFunction) _wrap_CalendarCtrl_GetYearControl, METH_VARARGS | METH_KEYWORDS, NULL},
3658 { (char *)"CalendarCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_CalendarCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
3659 { (char *)"CalendarCtrl_swigregister", CalendarCtrl_swigregister, METH_VARARGS, NULL},
c370783e 3660 { NULL, NULL, 0, NULL }
d14a1e28
RD
3661};
3662
3663
3664/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3665
3666static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
3667 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
3668}
3669static void *_p_wxCalendarCtrlTo_p_wxObject(void *x) {
3670 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCalendarCtrl *) x));
3671}
3672static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
3673 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
3674}
3675static void *_p_wxSizerItemTo_p_wxObject(void *x) {
3676 return (void *)((wxObject *) ((wxSizerItem *) x));
3677}
3678static void *_p_wxScrollEventTo_p_wxObject(void *x) {
3679 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
3680}
3681static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
3682 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
3683}
3684static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
3685 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
3686}
3687static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
3688 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
3689}
3690static void *_p_wxSizerTo_p_wxObject(void *x) {
3691 return (void *)((wxObject *) ((wxSizer *) x));
3692}
3693static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
3694 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
3695}
3696static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
3697 return (void *)((wxObject *) ((wxFileHistory *) x));
3698}
3699static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
3700 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
3701}
3702static void *_p_wxEventTo_p_wxObject(void *x) {
3703 return (void *)((wxObject *) ((wxEvent *) x));
3704}
3705static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
3706 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
3707}
3708static void *_p_wxGridSizerTo_p_wxObject(void *x) {
3709 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
3710}
3711static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
3712 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
3713}
3714static void *_p_wxPaintEventTo_p_wxObject(void *x) {
3715 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
3716}
3717static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
3718 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
3719}
3720static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
3721 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
3722}
3723static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
3724 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
3725}
3726static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
3727 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
3728}
3729static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
3730 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
3731}
3732static void *_p_wxControlTo_p_wxObject(void *x) {
3733 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
3734}
3735static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
3736 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
3737}
3738static void *_p_wxTimerEventTo_p_wxObject(void *x) {
3739 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
3740}
3741static void *_p_wxCalendarEventTo_p_wxObject(void *x) {
53aa7709 3742 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxDateEvent *) ((wxCalendarEvent *) x));
d14a1e28
RD
3743}
3744static void *_p_wxFSFileTo_p_wxObject(void *x) {
3745 return (void *)((wxObject *) ((wxFSFile *) x));
3746}
3747static void *_p_wxClipboardTo_p_wxObject(void *x) {
3748 return (void *)((wxObject *) ((wxClipboard *) x));
3749}
3750static void *_p_wxPySizerTo_p_wxObject(void *x) {
3751 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
3752}
3753static void *_p_wxPyEventTo_p_wxObject(void *x) {
3754 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
3755}
3756static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
3757 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
3758}
3759static void *_p_wxShowEventTo_p_wxObject(void *x) {
3760 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
3761}
3762static void *_p_wxToolTipTo_p_wxObject(void *x) {
3763 return (void *)((wxObject *) ((wxToolTip *) x));
3764}
3765static void *_p_wxMenuItemTo_p_wxObject(void *x) {
3766 return (void *)((wxObject *) ((wxMenuItem *) x));
3767}
53aa7709
RD
3768static void *_p_wxDateEventTo_p_wxObject(void *x) {
3769 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
3770}
d14a1e28
RD
3771static void *_p_wxIdleEventTo_p_wxObject(void *x) {
3772 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
3773}
3774static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
3775 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
3776}
3777static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
3778 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
3779}
3780static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
3781 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
3782}
3783static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
3784 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
3785}
3786static void *_p_wxSizeEventTo_p_wxObject(void *x) {
3787 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
3788}
3789static void *_p_wxMoveEventTo_p_wxObject(void *x) {
3790 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
3791}
3792static void *_p_wxActivateEventTo_p_wxObject(void *x) {
3793 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
3794}
d14a1e28
RD
3795static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
3796 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
3797}
3798static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
3799 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
3800}
3801static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
3802 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
3803}
3804static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
3805 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
3806}
3807static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
3808 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
3809}
3810static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
3811 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
3812}
3813static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
3814 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
3815}
3816static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
3817 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
3818}
3819static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
3820 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
3821}
943e8dfd
RD
3822static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
3823 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
3824}
d14a1e28
RD
3825static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
3826 return (void *)((wxObject *) ((wxImageHandler *) x));
3827}
943e8dfd
RD
3828static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
3829 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
3830}
d14a1e28
RD
3831static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
3832 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
3833}
3834static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
3835 return (void *)((wxObject *) ((wxEvtHandler *) x));
3836}
51b83b37
RD
3837static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
3838 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
3839}
41f1cec7
RD
3840static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
3841 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
3842}
d14a1e28
RD
3843static void *_p_wxImageTo_p_wxObject(void *x) {
3844 return (void *)((wxObject *) ((wxImage *) x));
3845}
3846static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
3847 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
3848}
3849static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
3850 return (void *)((wxObject *) ((wxSystemOptions *) x));
3851}
3852static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
3853 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
3854}
3855static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
3856 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
3857}
3858static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
3859 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
3860}
3861static void *_p_wxKeyEventTo_p_wxObject(void *x) {
3862 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
3863}
3864static void *_p_wxWindowTo_p_wxObject(void *x) {
3865 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
3866}
3867static void *_p_wxMenuTo_p_wxObject(void *x) {
3868 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
3869}
3870static void *_p_wxMenuBarTo_p_wxObject(void *x) {
3871 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
3872}
3873static void *_p_wxPyProcessTo_p_wxObject(void *x) {
3874 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
3875}
3876static void *_p_wxFileSystemTo_p_wxObject(void *x) {
3877 return (void *)((wxObject *) ((wxFileSystem *) x));
3878}
3879static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
3880 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
3881}
3882static void *_p_wxMenuEventTo_p_wxObject(void *x) {
3883 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
3884}
3885static void *_p_wxPyAppTo_p_wxObject(void *x) {
3886 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
3887}
3888static void *_p_wxCloseEventTo_p_wxObject(void *x) {
3889 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
3890}
3891static void *_p_wxMouseEventTo_p_wxObject(void *x) {
3892 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
3893}
3894static void *_p_wxEraseEventTo_p_wxObject(void *x) {
3895 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
3896}
3897static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
3898 return (void *)((wxObject *) ((wxBusyInfo *) x));
3899}
3900static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
3901 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
3902}
3903static void *_p_wxCommandEventTo_p_wxObject(void *x) {
3904 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
3905}
3906static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
3907 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
3908}
3909static void *_p_wxFocusEventTo_p_wxObject(void *x) {
3910 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
3911}
3912static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
3913 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
3914}
3915static void *_p_wxProcessEventTo_p_wxObject(void *x) {
3916 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
3917}
3918static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
3919 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
3920}
3921static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
3922 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
3923}
3924static void *_p_wxValidatorTo_p_wxObject(void *x) {
3925 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
3926}
3927static void *_p_wxPyTimerTo_p_wxObject(void *x) {
3928 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
3929}
3930static void *_p_wxControlTo_p_wxWindow(void *x) {
3931 return (void *)((wxWindow *) ((wxControl *) x));
3932}
3933static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
3934 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
3935}
3936static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
3937 return (void *)((wxWindow *) ((wxMenuBar *) x));
3938}
3939static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x) {
3940 return (void *)((wxWindow *) (wxControl *) ((wxCalendarCtrl *) x));
3941}
3942static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
3943 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
3944}
3945static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
3946 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
3947}
3948static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
3949 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
3950}
53aa7709
RD
3951static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
3952 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
3953}
d14a1e28
RD
3954static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
3955 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
3956}
3957static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
3958 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
3959}
3960static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
3961 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
3962}
3963static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x) {
53aa7709 3964 return (void *)((wxCommandEvent *) (wxDateEvent *) ((wxCalendarEvent *) x));
d14a1e28
RD
3965}
3966static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
3967 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
3968}
3969static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
3970 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
3971}
53aa7709
RD
3972static void *_p_wxCalendarEventTo_p_wxDateEvent(void *x) {
3973 return (void *)((wxDateEvent *) ((wxCalendarEvent *) x));
3974}
d14a1e28
RD
3975static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
3976 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
3977}
3978static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
3979 return (void *)((wxEvtHandler *) ((wxWindow *) x));
3980}
3981static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
3982 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
3983}
3984static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
3985 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
3986}
3987static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
3988 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
3989}
3990static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
3991 return (void *)((wxEvtHandler *) ((wxValidator *) x));
3992}
3993static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
3994 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
3995}
3996static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
3997 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
3998}
3999static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
4000 return (void *)((wxEvtHandler *) ((wxMenu *) x));
4001}
4002static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
4003 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
4004}
4005static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x) {
4006 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCalendarCtrl *) x));
4007}
4008static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
4009 return (void *)((wxControl *) ((wxControlWithItems *) x));
4010}
4011static void *_p_wxCalendarCtrlTo_p_wxControl(void *x) {
4012 return (void *)((wxControl *) ((wxCalendarCtrl *) x));
4013}
4014static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
4015 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
4016}
4017static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
4018 return (void *)((wxEvent *) ((wxMenuEvent *) x));
4019}
4020static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
4021 return (void *)((wxEvent *) ((wxCloseEvent *) x));
4022}
4023static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
4024 return (void *)((wxEvent *) ((wxMouseEvent *) x));
4025}
4026static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
4027 return (void *)((wxEvent *) ((wxEraseEvent *) x));
4028}
4029static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
4030 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
4031}
4032static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
4033 return (void *)((wxEvent *) ((wxTimerEvent *) x));
4034}
4035static void *_p_wxCalendarEventTo_p_wxEvent(void *x) {
53aa7709 4036 return (void *)((wxEvent *) (wxCommandEvent *)(wxDateEvent *) ((wxCalendarEvent *) x));
d14a1e28
RD
4037}
4038static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
4039 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
4040}
4041static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
4042 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
4043}
4044static void *_p_wxPyEventTo_p_wxEvent(void *x) {
4045 return (void *)((wxEvent *) ((wxPyEvent *) x));
4046}
4047static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
4048 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
4049}
4050static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
4051 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
4052}
4053static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
4054 return (void *)((wxEvent *) ((wxIdleEvent *) x));
4055}
4056static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
4057 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
4058}
4059static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
4060 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
4061}
4062static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
4063 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
4064}
4065static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
4066 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
4067}
4068static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
4069 return (void *)((wxEvent *) ((wxActivateEvent *) x));
4070}
4071static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
4072 return (void *)((wxEvent *) ((wxSizeEvent *) x));
4073}
4074static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
4075 return (void *)((wxEvent *) ((wxMoveEvent *) x));
4076}
53aa7709
RD
4077static void *_p_wxDateEventTo_p_wxEvent(void *x) {
4078 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
4079}
d14a1e28
RD
4080static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
4081 return (void *)((wxEvent *) ((wxPaintEvent *) x));
4082}
4083static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
4084 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
4085}
4086static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
4087 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
4088}
4089static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
4090 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
4091}
4092static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
4093 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
4094}
4095static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
4096 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
4097}
4098static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
4099 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
4100}
4101static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
4102 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
4103}
4104static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
4105 return (void *)((wxEvent *) ((wxFocusEvent *) x));
4106}
4107static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
4108 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
4109}
4110static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
4111 return (void *)((wxEvent *) ((wxProcessEvent *) x));
4112}
4113static void *_p_wxShowEventTo_p_wxEvent(void *x) {
4114 return (void *)((wxEvent *) ((wxShowEvent *) x));
4115}
4116static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
4117 return (void *)((wxEvent *) ((wxCommandEvent *) x));
4118}
4119static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
4120 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
4121}
4122static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
4123 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
4124}
4125static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
4126 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
4127}
4128static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
4129 return (void *)((wxEvent *) ((wxKeyEvent *) x));
4130}
4131static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
4132 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
4133}
32fe5131
RD
4134static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
4135static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
4136static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, 0};
4137static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
4138static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
4139static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxLogLevel *", 0, 0, 0};
4140static swig_type_info _swigt__p_wxCalendarCtrl = {"_p_wxCalendarCtrl", "wxCalendarCtrl *", 0, 0, 0};
4141static swig_type_info _swigt__p_wxCalendarDateAttr = {"_p_wxCalendarDateAttr", "wxCalendarDateAttr *", 0, 0, 0};
4142static swig_type_info _swigt__p_wxCalendarEvent = {"_p_wxCalendarEvent", "wxCalendarEvent *", 0, 0, 0};
4143static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
4144static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0};
4145static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
4146static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
4147static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
4148static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
4149static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
4150static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
4151static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
4152static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
4153static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, 0};
4154static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
4155static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", "wxDateEvent *", 0, 0, 0};
4156static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, 0};
4157static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
4158static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0};
4159static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
4160static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
4161static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
4162static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
4163static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
4164static swig_type_info _swigt__p_wxTimerEvent = {"_p_wxTimerEvent", 0, 0, 0, 0};
4165static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
4166static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
4167static swig_type_info _swigt__p_wxJoystickEvent = {"_p_wxJoystickEvent", 0, 0, 0, 0};
4168static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
4169static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
4170static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
4171static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
4172static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
4173static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
4174static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
4175static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
4176static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
4177static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
4178static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
4179static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
4180static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
4181static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
4182static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
4183static swig_type_info _swigt__p_wxProcessEvent = {"_p_wxProcessEvent", 0, 0, 0, 0};
4184static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
4185static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
4186static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
4187static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
4188static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
4189static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
4190static swig_type_info _swigt__p_wxPyTimer = {"_p_wxPyTimer", 0, 0, 0, 0};
4191static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
4192static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
4193static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
4194static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
4195static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", 0, 0, 0, 0};
4196static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
4197static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
4198static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
4199static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
4200static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
4201static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
4202static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
4203static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
4204static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
4205static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
4206static swig_type_info _swigt__p_wxFileHistory = {"_p_wxFileHistory", 0, 0, 0, 0};
4207static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
4208static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
4209static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
4210static swig_type_info _swigt__p_wxClipboard = {"_p_wxClipboard", 0, 0, 0, 0};
4211static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
4212static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", 0, 0, 0, 0};
4213static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
4214static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
4215static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
4216static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
4217static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
4218static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
4219static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
4220static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
4221static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
4222static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
4223static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
4224static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
4225static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
4226static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
4227static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
4228static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
4229static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0};
4230static swig_type_info _swigt__p_wxSystemOptions = {"_p_wxSystemOptions", 0, 0, 0, 0};
4231static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
4232static swig_type_info _swigt__p_wxBusyInfo = {"_p_wxBusyInfo", 0, 0, 0, 0};
4233static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
4234static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, 0};
4235static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
4236static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
4237static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
4238static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
4239
4240static swig_type_info *swig_type_initial[] = {
4241 &_swigt__p_char,
4242 &_swigt__p_form_ops_t,
4243 &_swigt__p_int,
4244 &_swigt__p_unsigned_char,
4245 &_swigt__p_unsigned_int,
4246 &_swigt__p_unsigned_long,
4247 &_swigt__p_wxANIHandler,
4248 &_swigt__p_wxAcceleratorTable,
4249 &_swigt__p_wxActivateEvent,
4250 &_swigt__p_wxBMPHandler,
4251 &_swigt__p_wxBoxSizer,
4252 &_swigt__p_wxBusyInfo,
4253 &_swigt__p_wxCURHandler,
4254 &_swigt__p_wxCalendarCtrl,
4255 &_swigt__p_wxCalendarDateAttr,
4256 &_swigt__p_wxCalendarEvent,
4257 &_swigt__p_wxChildFocusEvent,
4258 &_swigt__p_wxClipboard,
4259 &_swigt__p_wxCloseEvent,
4260 &_swigt__p_wxColour,
4261 &_swigt__p_wxCommandEvent,
4262 &_swigt__p_wxContextMenuEvent,
4263 &_swigt__p_wxControl,
4264 &_swigt__p_wxControlWithItems,
4265 &_swigt__p_wxDateEvent,
4266 &_swigt__p_wxDateTime,
4267 &_swigt__p_wxDisplayChangedEvent,
4268 &_swigt__p_wxDropFilesEvent,
4269 &_swigt__p_wxDuplexMode,
4270 &_swigt__p_wxEraseEvent,
4271 &_swigt__p_wxEvent,
4272 &_swigt__p_wxEvtHandler,
4273 &_swigt__p_wxFSFile,
4274 &_swigt__p_wxFileHistory,
4275 &_swigt__p_wxFileSystem,
4276 &_swigt__p_wxFlexGridSizer,
4277 &_swigt__p_wxFocusEvent,
4278 &_swigt__p_wxFont,
4279 &_swigt__p_wxGBSizerItem,
4280 &_swigt__p_wxGIFHandler,
4281 &_swigt__p_wxGridBagSizer,
4282 &_swigt__p_wxGridSizer,
4283 &_swigt__p_wxICOHandler,
4284 &_swigt__p_wxIconizeEvent,
4285 &_swigt__p_wxIdleEvent,
4286 &_swigt__p_wxImage,
4287 &_swigt__p_wxImageHandler,
4288 &_swigt__p_wxIndividualLayoutConstraint,
4289 &_swigt__p_wxInitDialogEvent,
4290 &_swigt__p_wxJPEGHandler,
4291 &_swigt__p_wxJoystickEvent,
4292 &_swigt__p_wxKeyEvent,
4293 &_swigt__p_wxLayoutConstraints,
4294 &_swigt__p_wxMaximizeEvent,
4295 &_swigt__p_wxMenu,
4296 &_swigt__p_wxMenuBar,
4297 &_swigt__p_wxMenuEvent,
4298 &_swigt__p_wxMenuItem,
4299 &_swigt__p_wxMouseCaptureChangedEvent,
4300 &_swigt__p_wxMouseEvent,
4301 &_swigt__p_wxMoveEvent,
4302 &_swigt__p_wxNavigationKeyEvent,
4303 &_swigt__p_wxNcPaintEvent,
4304 &_swigt__p_wxNotifyEvent,
4305 &_swigt__p_wxObject,
4306 &_swigt__p_wxPCXHandler,
4307 &_swigt__p_wxPNGHandler,
4308 &_swigt__p_wxPNMHandler,
4309 &_swigt__p_wxPaintEvent,
4310 &_swigt__p_wxPaletteChangedEvent,
4311 &_swigt__p_wxPaperSize,
4312 &_swigt__p_wxProcessEvent,
4313 &_swigt__p_wxPyApp,
4314 &_swigt__p_wxPyCommandEvent,
4315 &_swigt__p_wxPyEvent,
4316 &_swigt__p_wxPyImageHandler,
4317 &_swigt__p_wxPyProcess,
4318 &_swigt__p_wxPySizer,
4319 &_swigt__p_wxPyTimer,
4320 &_swigt__p_wxPyValidator,
4321 &_swigt__p_wxQueryNewPaletteEvent,
4322 &_swigt__p_wxScrollEvent,
4323 &_swigt__p_wxScrollWinEvent,
4324 &_swigt__p_wxSetCursorEvent,
4325 &_swigt__p_wxShowEvent,
4326 &_swigt__p_wxSizeEvent,
4327 &_swigt__p_wxSizer,
4328 &_swigt__p_wxSizerItem,
4329 &_swigt__p_wxStaticBoxSizer,
4330 &_swigt__p_wxStdDialogButtonSizer,
4331 &_swigt__p_wxSysColourChangedEvent,
4332 &_swigt__p_wxSystemOptions,
4333 &_swigt__p_wxTIFFHandler,
4334 &_swigt__p_wxTimerEvent,
4335 &_swigt__p_wxToolTip,
4336 &_swigt__p_wxUpdateUIEvent,
4337 &_swigt__p_wxValidator,
4338 &_swigt__p_wxVisualAttributes,
4339 &_swigt__p_wxWindow,
4340 &_swigt__p_wxWindowCreateEvent,
4341 &_swigt__p_wxWindowDestroyEvent,
4342 &_swigt__p_wxXPMHandler,
4343 &_swigt__ptrdiff_t,
4344 &_swigt__std__ptrdiff_t,
4345 &_swigt__unsigned_int,
4346};
4347
4348static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
4349static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
4350static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
4351static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
4352static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
4353static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
4354static swig_cast_info _swigc__p_wxCalendarCtrl[] = { {&_swigt__p_wxCalendarCtrl, 0, 0, 0},{0, 0, 0, 0}};
4355static swig_cast_info _swigc__p_wxCalendarDateAttr[] = { {&_swigt__p_wxCalendarDateAttr, 0, 0, 0},{0, 0, 0, 0}};
4356static swig_cast_info _swigc__p_wxCalendarEvent[] = { {&_swigt__p_wxCalendarEvent, 0, 0, 0},{0, 0, 0, 0}};
4357static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
4358static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
4359static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
4360static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
4361static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
4362static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
4363static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
4364static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
4365static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
4366static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCalendarEvent, _p_wxCalendarEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
4367static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
4368static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxCalendarCtrl, _p_wxCalendarCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
4369static swig_cast_info _swigc__p_wxDateEvent[] = { {&_swigt__p_wxDateEvent, 0, 0, 0}, {&_swigt__p_wxCalendarEvent, _p_wxCalendarEventTo_p_wxDateEvent, 0, 0},{0, 0, 0, 0}};
4370static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
4371static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
4372static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
4373static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
4374static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
4375static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
4376static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
4377static swig_cast_info _swigc__p_wxTimerEvent[] = {{&_swigt__p_wxTimerEvent, 0, 0, 0},{0, 0, 0, 0}};
4378static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
4379static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
4380static swig_cast_info _swigc__p_wxJoystickEvent[] = {{&_swigt__p_wxJoystickEvent, 0, 0, 0},{0, 0, 0, 0}};
4381static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
4382static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
4383static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
4384static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
4385static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
4386static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
4387static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
4388static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
4389static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
4390static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
4391static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
4392static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
4393static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
4394static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
4395static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
4396static swig_cast_info _swigc__p_wxProcessEvent[] = {{&_swigt__p_wxProcessEvent, 0, 0, 0},{0, 0, 0, 0}};
4397static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
4398static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
4399static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
4400static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
4401static 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_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTimerEvent, _p_wxTimerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalendarEvent, _p_wxCalendarEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxJoystickEvent, _p_wxJoystickEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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_wxProcessEvent, _p_wxProcessEventTo_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_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
4402static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
4403static swig_cast_info _swigc__p_wxPyTimer[] = {{&_swigt__p_wxPyTimer, 0, 0, 0},{0, 0, 0, 0}};
4404static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
4405static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
4406static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
4407static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
4408static swig_cast_info _swigc__p_wxPyProcess[] = {{&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}};
4409static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCalendarCtrl, _p_wxCalendarCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
4410static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
4411static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
4412static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
4413static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
4414static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
4415static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
4416static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
4417static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
4418static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
4419static swig_cast_info _swigc__p_wxFileHistory[] = {{&_swigt__p_wxFileHistory, 0, 0, 0},{0, 0, 0, 0}};
4420static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
4421static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
4422static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
4423static swig_cast_info _swigc__p_wxClipboard[] = {{&_swigt__p_wxClipboard, 0, 0, 0},{0, 0, 0, 0}};
4424static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
4425static swig_cast_info _swigc__p_wxToolTip[] = {{&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
4426static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
4427static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
4428static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
4429static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
4430static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
4431static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
4432static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
4433static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
4434static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
4435static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
4436static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
4437static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
4438static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
4439static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
4440static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
4441static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
4442static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
4443static swig_cast_info _swigc__p_wxSystemOptions[] = {{&_swigt__p_wxSystemOptions, 0, 0, 0},{0, 0, 0, 0}};
4444static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
4445static swig_cast_info _swigc__p_wxBusyInfo[] = {{&_swigt__p_wxBusyInfo, 0, 0, 0},{0, 0, 0, 0}};
4446static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalendarCtrl, _p_wxCalendarCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxFileHistory, _p_wxFileHistoryTo_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_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTimerEvent, _p_wxTimerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalendarEvent, _p_wxCalendarEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboard, _p_wxClipboardTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolTip, _p_wxToolTipTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_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_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSystemOptions, _p_wxSystemOptionsTo_p_wxObject, 0, 0}, {&_swigt__p_wxJoystickEvent, _p_wxJoystickEventTo_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_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_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_wxPyApp, _p_wxPyAppTo_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_wxBusyInfo, _p_wxBusyInfoTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxProcessEvent, _p_wxProcessEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
4447static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
4448static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
4449static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCalendarCtrl, _p_wxCalendarCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
4450static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
4451static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
4452static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
4453
4454static swig_cast_info *swig_cast_initial[] = {
4455 _swigc__p_char,
4456 _swigc__p_form_ops_t,
4457 _swigc__p_int,
4458 _swigc__p_unsigned_char,
4459 _swigc__p_unsigned_int,
4460 _swigc__p_unsigned_long,
4461 _swigc__p_wxANIHandler,
4462 _swigc__p_wxAcceleratorTable,
4463 _swigc__p_wxActivateEvent,
4464 _swigc__p_wxBMPHandler,
4465 _swigc__p_wxBoxSizer,
4466 _swigc__p_wxBusyInfo,
4467 _swigc__p_wxCURHandler,
4468 _swigc__p_wxCalendarCtrl,
4469 _swigc__p_wxCalendarDateAttr,
4470 _swigc__p_wxCalendarEvent,
4471 _swigc__p_wxChildFocusEvent,
4472 _swigc__p_wxClipboard,
4473 _swigc__p_wxCloseEvent,
4474 _swigc__p_wxColour,
4475 _swigc__p_wxCommandEvent,
4476 _swigc__p_wxContextMenuEvent,
4477 _swigc__p_wxControl,
4478 _swigc__p_wxControlWithItems,
4479 _swigc__p_wxDateEvent,
4480 _swigc__p_wxDateTime,
4481 _swigc__p_wxDisplayChangedEvent,
4482 _swigc__p_wxDropFilesEvent,
4483 _swigc__p_wxDuplexMode,
4484 _swigc__p_wxEraseEvent,
4485 _swigc__p_wxEvent,
4486 _swigc__p_wxEvtHandler,
4487 _swigc__p_wxFSFile,
4488 _swigc__p_wxFileHistory,
4489 _swigc__p_wxFileSystem,
4490 _swigc__p_wxFlexGridSizer,
4491 _swigc__p_wxFocusEvent,
4492 _swigc__p_wxFont,
4493 _swigc__p_wxGBSizerItem,
4494 _swigc__p_wxGIFHandler,
4495 _swigc__p_wxGridBagSizer,
4496 _swigc__p_wxGridSizer,
4497 _swigc__p_wxICOHandler,
4498 _swigc__p_wxIconizeEvent,
4499 _swigc__p_wxIdleEvent,
4500 _swigc__p_wxImage,
4501 _swigc__p_wxImageHandler,
4502 _swigc__p_wxIndividualLayoutConstraint,
4503 _swigc__p_wxInitDialogEvent,
4504 _swigc__p_wxJPEGHandler,
4505 _swigc__p_wxJoystickEvent,
4506 _swigc__p_wxKeyEvent,
4507 _swigc__p_wxLayoutConstraints,
4508 _swigc__p_wxMaximizeEvent,
4509 _swigc__p_wxMenu,
4510 _swigc__p_wxMenuBar,
4511 _swigc__p_wxMenuEvent,
4512 _swigc__p_wxMenuItem,
4513 _swigc__p_wxMouseCaptureChangedEvent,
4514 _swigc__p_wxMouseEvent,
4515 _swigc__p_wxMoveEvent,
4516 _swigc__p_wxNavigationKeyEvent,
4517 _swigc__p_wxNcPaintEvent,
4518 _swigc__p_wxNotifyEvent,
4519 _swigc__p_wxObject,
4520 _swigc__p_wxPCXHandler,
4521 _swigc__p_wxPNGHandler,
4522 _swigc__p_wxPNMHandler,
4523 _swigc__p_wxPaintEvent,
4524 _swigc__p_wxPaletteChangedEvent,
4525 _swigc__p_wxPaperSize,
4526 _swigc__p_wxProcessEvent,
4527 _swigc__p_wxPyApp,
4528 _swigc__p_wxPyCommandEvent,
4529 _swigc__p_wxPyEvent,
4530 _swigc__p_wxPyImageHandler,
4531 _swigc__p_wxPyProcess,
4532 _swigc__p_wxPySizer,
4533 _swigc__p_wxPyTimer,
4534 _swigc__p_wxPyValidator,
4535 _swigc__p_wxQueryNewPaletteEvent,
4536 _swigc__p_wxScrollEvent,
4537 _swigc__p_wxScrollWinEvent,
4538 _swigc__p_wxSetCursorEvent,
4539 _swigc__p_wxShowEvent,
4540 _swigc__p_wxSizeEvent,
4541 _swigc__p_wxSizer,
4542 _swigc__p_wxSizerItem,
4543 _swigc__p_wxStaticBoxSizer,
4544 _swigc__p_wxStdDialogButtonSizer,
4545 _swigc__p_wxSysColourChangedEvent,
4546 _swigc__p_wxSystemOptions,
4547 _swigc__p_wxTIFFHandler,
4548 _swigc__p_wxTimerEvent,
4549 _swigc__p_wxToolTip,
4550 _swigc__p_wxUpdateUIEvent,
4551 _swigc__p_wxValidator,
4552 _swigc__p_wxVisualAttributes,
4553 _swigc__p_wxWindow,
4554 _swigc__p_wxWindowCreateEvent,
4555 _swigc__p_wxWindowDestroyEvent,
4556 _swigc__p_wxXPMHandler,
4557 _swigc__ptrdiff_t,
4558 _swigc__std__ptrdiff_t,
4559 _swigc__unsigned_int,
d14a1e28
RD
4560};
4561
4562
4563/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4564
4565static swig_const_info swig_const_table[] = {
c370783e 4566{0, 0, 0, 0.0, 0, 0}};
d14a1e28
RD
4567
4568#ifdef __cplusplus
4569}
4570#endif
32fe5131
RD
4571/*************************************************************************
4572 * Type initialization:
4573 * This problem is tough by the requirement that no dynamic
4574 * memory is used. Also, since swig_type_info structures store pointers to
4575 * swig_cast_info structures and swig_cast_info structures store pointers back
4576 * to swig_type_info structures, we need some lookup code at initialization.
4577 * The idea is that swig generates all the structures that are needed.
4578 * The runtime then collects these partially filled structures.
4579 * The SWIG_InitializeModule function takes these initial arrays out of
4580 * swig_module, and does all the lookup, filling in the swig_module.types
4581 * array with the correct data and linking the correct swig_cast_info
4582 * structures together.
4583
4584 * The generated swig_type_info structures are assigned staticly to an initial
4585 * array. We just loop though that array, and handle each type individually.
4586 * First we lookup if this type has been already loaded, and if so, use the
4587 * loaded structure instead of the generated one. Then we have to fill in the
4588 * cast linked list. The cast data is initially stored in something like a
4589 * two-dimensional array. Each row corresponds to a type (there are the same
4590 * number of rows as there are in the swig_type_initial array). Each entry in
4591 * a column is one of the swig_cast_info structures for that type.
4592 * The cast_initial array is actually an array of arrays, because each row has
4593 * a variable number of columns. So to actually build the cast linked list,
4594 * we find the array of casts associated with the type, and loop through it
4595 * adding the casts to the list. The one last trick we need to do is making
4596 * sure the type pointer in the swig_cast_info struct is correct.
4597
4598 * First off, we lookup the cast->type name to see if it is already loaded.
4599 * There are three cases to handle:
4600 * 1) If the cast->type has already been loaded AND the type we are adding
4601 * casting info to has not been loaded (it is in this module), THEN we
4602 * replace the cast->type pointer with the type pointer that has already
4603 * been loaded.
4604 * 2) If BOTH types (the one we are adding casting info to, and the
4605 * cast->type) are loaded, THEN the cast info has already been loaded by
4606 * the previous module so we just ignore it.
4607 * 3) Finally, if cast->type has not already been loaded, then we add that
4608 * swig_cast_info to the linked list (because the cast->type) pointer will
4609 * be correct.
4610**/
4611
4612#ifdef __cplusplus
4613extern "C" {
4614#if 0
4615} /* c-mode */
4616#endif
4617#endif
4618
4619#if 0
4620#define SWIGRUNTIME_DEBUG
4621#endif
4622
4623SWIGRUNTIME void
4624SWIG_InitializeModule(void *clientdata) {
4625 size_t i;
4626 swig_module_info *module_head;
4627 static int init_run = 0;
4628
4629 clientdata = clientdata;
4630
4631 if (init_run) return;
4632 init_run = 1;
4633
4634 /* Initialize the swig_module */
4635 swig_module.type_initial = swig_type_initial;
4636 swig_module.cast_initial = swig_cast_initial;
4637
4638 /* Try and load any already created modules */
4639 module_head = SWIG_GetModule(clientdata);
4640 if (module_head) {
4641 swig_module.next = module_head->next;
4642 module_head->next = &swig_module;
4643 } else {
4644 /* This is the first module loaded */
4645 swig_module.next = &swig_module;
4646 SWIG_SetModule(clientdata, &swig_module);
4647 }
4648
4649 /* Now work on filling in swig_module.types */
4650#ifdef SWIGRUNTIME_DEBUG
4651 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
4652#endif
4653 for (i = 0; i < swig_module.size; ++i) {
4654 swig_type_info *type = 0;
4655 swig_type_info *ret;
4656 swig_cast_info *cast;
4657
4658#ifdef SWIGRUNTIME_DEBUG
4659 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
4660#endif
4661
4662 /* if there is another module already loaded */
4663 if (swig_module.next != &swig_module) {
4664 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
4665 }
4666 if (type) {
4667 /* Overwrite clientdata field */
4668#ifdef SWIGRUNTIME_DEBUG
4669 printf("SWIG_InitializeModule: found type %s\n", type->name);
4670#endif
4671 if (swig_module.type_initial[i]->clientdata) {
4672 type->clientdata = swig_module.type_initial[i]->clientdata;
4673#ifdef SWIGRUNTIME_DEBUG
4674 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
4675#endif
4676 }
4677 } else {
4678 type = swig_module.type_initial[i];
4679 }
4680
4681 /* Insert casting types */
4682 cast = swig_module.cast_initial[i];
4683 while (cast->type) {
4684 /* Don't need to add information already in the list */
4685 ret = 0;
4686#ifdef SWIGRUNTIME_DEBUG
4687 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
4688#endif
4689 if (swig_module.next != &swig_module) {
4690 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
4691#ifdef SWIGRUNTIME_DEBUG
4692 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
4693#endif
4694 }
4695 if (ret) {
4696 if (type == swig_module.type_initial[i]) {
4697#ifdef SWIGRUNTIME_DEBUG
4698 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
4699#endif
4700 cast->type = ret;
4701 ret = 0;
4702 } else {
4703 /* Check for casting already in the list */
4704 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
4705#ifdef SWIGRUNTIME_DEBUG
4706 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
4707#endif
4708 if (!ocast) ret = 0;
4709 }
4710 }
4711
4712 if (!ret) {
4713#ifdef SWIGRUNTIME_DEBUG
4714 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
4715#endif
4716 if (type->cast) {
4717 type->cast->prev = cast;
4718 cast->next = type->cast;
4719 }
4720 type->cast = cast;
4721 }
4722 cast++;
4723 }
4724 /* Set entry in modules->types array equal to the type */
4725 swig_module.types[i] = type;
4726 }
4727 swig_module.types[i] = 0;
4728
4729#ifdef SWIGRUNTIME_DEBUG
4730 printf("**** SWIG_InitializeModule: Cast List ******\n");
4731 for (i = 0; i < swig_module.size; ++i) {
4732 int j = 0;
4733 swig_cast_info *cast = swig_module.cast_initial[i];
4734 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
4735 while (cast->type) {
4736 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
4737 cast++;
4738 ++j;
4739 }
4740 printf("---- Total casts: %d\n",j);
4741 }
4742 printf("**** SWIG_InitializeModule: Cast List ******\n");
4743#endif
4744}
4745
4746/* This function will propagate the clientdata field of type to
4747* any new swig_type_info structures that have been added into the list
4748* of equivalent types. It is like calling
4749* SWIG_TypeClientData(type, clientdata) a second time.
4750*/
4751SWIGRUNTIME void
4752SWIG_PropagateClientData(void) {
4753 size_t i;
4754 swig_cast_info *equiv;
4755 static int init_run = 0;
4756
4757 if (init_run) return;
4758 init_run = 1;
4759
4760 for (i = 0; i < swig_module.size; i++) {
4761 if (swig_module.types[i]->clientdata) {
4762 equiv = swig_module.types[i]->cast;
4763 while (equiv) {
4764 if (!equiv->converter) {
4765 if (equiv->type && !equiv->type->clientdata)
4766 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
4767 }
4768 equiv = equiv->next;
4769 }
4770 }
4771 }
4772}
4773
4774#ifdef __cplusplus
4775#if 0
4776{
4777 /* c-mode */
4778#endif
4779}
4780#endif
4781
d14a1e28 4782
36ed4f51
RD
4783
4784#ifdef __cplusplus
4785extern "C" {
4786#endif
4787
4788 /* Python-specific SWIG API */
4789#define SWIG_newvarlink() SWIG_Python_newvarlink()
4790#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
4791#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
4792
4793 /* -----------------------------------------------------------------------------
4794 * global variable support code.
4795 * ----------------------------------------------------------------------------- */
4796
4797 typedef struct swig_globalvar {
4798 char *name; /* Name of global variable */
32fe5131 4799 PyObject *(*get_attr)(void); /* Return the current value */
36ed4f51
RD
4800 int (*set_attr)(PyObject *); /* Set the value */
4801 struct swig_globalvar *next;
4802 } swig_globalvar;
4803
4804 typedef struct swig_varlinkobject {
4805 PyObject_HEAD
4806 swig_globalvar *vars;
4807 } swig_varlinkobject;
4808
32fe5131 4809 SWIGINTERN PyObject *
36ed4f51
RD
4810 swig_varlink_repr(swig_varlinkobject *v) {
4811 v = v;
4812 return PyString_FromString("<Swig global variables>");
4813 }
4814
32fe5131 4815 SWIGINTERN int
36ed4f51
RD
4816 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
4817 swig_globalvar *var;
4818 flags = flags;
4819 fprintf(fp,"Swig global variables { ");
4820 for (var = v->vars; var; var=var->next) {
4821 fprintf(fp,"%s", var->name);
4822 if (var->next) fprintf(fp,", ");
4823 }
4824 fprintf(fp," }\n");
4825 return 0;
4826 }
4827
32fe5131 4828 SWIGINTERN PyObject *
36ed4f51
RD
4829 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
4830 swig_globalvar *var = v->vars;
4831 while (var) {
4832 if (strcmp(var->name,n) == 0) {
4833 return (*var->get_attr)();
4834 }
4835 var = var->next;
4836 }
4837 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
4838 return NULL;
4839 }
4840
32fe5131 4841 SWIGINTERN int
36ed4f51
RD
4842 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
4843 swig_globalvar *var = v->vars;
4844 while (var) {
4845 if (strcmp(var->name,n) == 0) {
4846 return (*var->set_attr)(p);
4847 }
4848 var = var->next;
4849 }
4850 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
4851 return 1;
4852 }
4853
32fe5131
RD
4854 SWIGINTERN PyTypeObject*
4855 swig_varlink_type(void) {
4856 static char varlink__doc__[] = "Swig var link object";
4857 static PyTypeObject varlink_type
4858#if !defined(__cplusplus)
4859 ;
4860 static int type_init = 0;
4861 if (!type_init) {
4862 PyTypeObject tmp
4863#endif
4864 = {
4865 PyObject_HEAD_INIT(&PyType_Type)
4866 0, /* Number of items in variable part (ob_size) */
4867 (char *)"swigvarlink", /* Type name (tp_name) */
4868 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
4869 0, /* Itemsize (tp_itemsize) */
4870 0, /* Deallocator (tp_dealloc) */
4871 (printfunc) swig_varlink_print, /* Print (tp_print) */
4872 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
4873 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
4874 0, /* tp_compare */
4875 (reprfunc) swig_varlink_repr, /* tp_repr */
4876 0, /* tp_as_number */
4877 0, /* tp_as_sequence */
4878 0, /* tp_as_mapping */
4879 0, /* tp_hash */
4880 0, /* tp_call */
4881 0, /* tp_str */
4882 0, /* tp_getattro */
4883 0, /* tp_setattro */
4884 0, /* tp_as_buffer */
4885 0, /* tp_flags */
4886 varlink__doc__, /* tp_doc */
36ed4f51 4887#if PY_VERSION_HEX >= 0x02000000
32fe5131
RD
4888 0, /* tp_traverse */
4889 0, /* tp_clear */
36ed4f51
RD
4890#endif
4891#if PY_VERSION_HEX >= 0x02010000
32fe5131
RD
4892 0, /* tp_richcompare */
4893 0, /* tp_weaklistoffset */
36ed4f51
RD
4894#endif
4895#if PY_VERSION_HEX >= 0x02020000
32fe5131 4896 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36ed4f51
RD
4897#endif
4898#if PY_VERSION_HEX >= 0x02030000
32fe5131 4899 0, /* tp_del */
36ed4f51
RD
4900#endif
4901#ifdef COUNT_ALLOCS
32fe5131 4902 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 4903#endif
32fe5131
RD
4904 };
4905#if !defined(__cplusplus)
4906 varlink_type = tmp;
4907 type_init = 1;
4908 }
4909#endif
4910 return &varlink_type;
4911 }
36ed4f51
RD
4912
4913 /* Create a variable linking object for use later */
32fe5131 4914 SWIGINTERN PyObject *
36ed4f51 4915 SWIG_Python_newvarlink(void) {
32fe5131
RD
4916 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
4917 if (result) {
4918 result->vars = 0;
4919 }
36ed4f51
RD
4920 return ((PyObject*) result);
4921 }
4922
32fe5131 4923 SWIGINTERN void
36ed4f51 4924 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
32fe5131
RD
4925 swig_varlinkobject *v = (swig_varlinkobject *) p;
4926 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
4927 if (gv) {
4928 size_t size = strlen(name)+1;
4929 gv->name = (char *)malloc(size);
4930 if (gv->name) {
4931 strncpy(gv->name,name,size);
4932 gv->get_attr = get_attr;
4933 gv->set_attr = set_attr;
4934 gv->next = v->vars;
4935 }
4936 }
36ed4f51
RD
4937 v->vars = gv;
4938 }
4939
4940 /* -----------------------------------------------------------------------------
4941 * constants/methods manipulation
4942 * ----------------------------------------------------------------------------- */
4943
4944 /* Install Constants */
32fe5131 4945 SWIGINTERN void
36ed4f51
RD
4946 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
4947 PyObject *obj = 0;
4948 size_t i;
32fe5131 4949 for (i = 0; constants[i].type; ++i) {
36ed4f51
RD
4950 switch(constants[i].type) {
4951 case SWIG_PY_INT:
4952 obj = PyInt_FromLong(constants[i].lvalue);
4953 break;
4954 case SWIG_PY_FLOAT:
4955 obj = PyFloat_FromDouble(constants[i].dvalue);
4956 break;
4957 case SWIG_PY_STRING:
4958 if (constants[i].pvalue) {
4959 obj = PyString_FromString((char *) constants[i].pvalue);
4960 } else {
4961 Py_INCREF(Py_None);
4962 obj = Py_None;
4963 }
4964 break;
4965 case SWIG_PY_POINTER:
4966 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
4967 break;
4968 case SWIG_PY_BINARY:
4969 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
4970 break;
4971 default:
4972 obj = 0;
4973 break;
4974 }
4975 if (obj) {
4976 PyDict_SetItemString(d,constants[i].name,obj);
4977 Py_DECREF(obj);
4978 }
4979 }
4980 }
4981
4982 /* -----------------------------------------------------------------------------*/
4983 /* Fix SwigMethods to carry the callback ptrs when needed */
4984 /* -----------------------------------------------------------------------------*/
4985
32fe5131 4986 SWIGINTERN void
36ed4f51
RD
4987 SWIG_Python_FixMethods(PyMethodDef *methods,
4988 swig_const_info *const_table,
4989 swig_type_info **types,
4990 swig_type_info **types_initial) {
4991 size_t i;
4992 for (i = 0; methods[i].ml_name; ++i) {
4993 char *c = methods[i].ml_doc;
4994 if (c && (c = strstr(c, "swig_ptr: "))) {
4995 int j;
4996 swig_const_info *ci = 0;
4997 char *name = c + 10;
32fe5131 4998 for (j = 0; const_table[j].type; ++j) {
36ed4f51
RD
4999 if (strncmp(const_table[j].name, name,
5000 strlen(const_table[j].name)) == 0) {
5001 ci = &(const_table[j]);
5002 break;
5003 }
5004 }
5005 if (ci) {
5006 size_t shift = (ci->ptype) - types;
5007 swig_type_info *ty = types_initial[shift];
5008 size_t ldoc = (c - methods[i].ml_doc);
5009 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
5010 char *ndoc = (char*)malloc(ldoc + lptr + 10);
32fe5131
RD
5011 if (ndoc) {
5012 char *buff = ndoc;
5013 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
5014 if (ptr) {
5015 strncpy(buff, methods[i].ml_doc, ldoc);
5016 buff += ldoc;
5017 strncpy(buff, "swig_ptr: ", 10);
5018 buff += 10;
5019 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
5020 methods[i].ml_doc = ndoc;
5021 }
5022 }
36ed4f51
RD
5023 }
5024 }
5025 }
5026 }
5027
5028 /* -----------------------------------------------------------------------------*
5029 * Initialize type list
5030 * -----------------------------------------------------------------------------*/
5031
36ed4f51
RD
5032#ifdef __cplusplus
5033}
5034#endif
5035
5036/* -----------------------------------------------------------------------------*
5037 * Partial Init method
5038 * -----------------------------------------------------------------------------*/
5039
36ed4f51
RD
5040#ifdef __cplusplus
5041extern "C"
5042#endif
32fe5131 5043SWIGEXPORT void SWIG_init(void) {
d14a1e28 5044 static PyObject *SWIG_globals = 0;
d14a1e28 5045 PyObject *m, *d;
d14a1e28 5046 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
36ed4f51
RD
5047
5048 /* Fix SwigMethods to carry the callback ptrs when needed */
32fe5131 5049 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36ed4f51 5050
d14a1e28
RD
5051 m = Py_InitModule((char *) SWIG_name, SwigMethods);
5052 d = PyModule_GetDict(m);
5053
32fe5131 5054 SWIG_InitializeModule(0);
d14a1e28
RD
5055 SWIG_InstallConstants(d,swig_const_table);
5056
36ed4f51 5057 {
32fe5131 5058 PyDict_SetItemString(d,"CAL_SUNDAY_FIRST", SWIG_From_int(static_cast<int >(wxCAL_SUNDAY_FIRST)));
36ed4f51
RD
5059 }
5060 {
32fe5131 5061 PyDict_SetItemString(d,"CAL_MONDAY_FIRST", SWIG_From_int(static_cast<int >(wxCAL_MONDAY_FIRST)));
36ed4f51
RD
5062 }
5063 {
32fe5131 5064 PyDict_SetItemString(d,"CAL_SHOW_HOLIDAYS", SWIG_From_int(static_cast<int >(wxCAL_SHOW_HOLIDAYS)));
36ed4f51
RD
5065 }
5066 {
32fe5131 5067 PyDict_SetItemString(d,"CAL_NO_YEAR_CHANGE", SWIG_From_int(static_cast<int >(wxCAL_NO_YEAR_CHANGE)));
36ed4f51
RD
5068 }
5069 {
32fe5131 5070 PyDict_SetItemString(d,"CAL_NO_MONTH_CHANGE", SWIG_From_int(static_cast<int >(wxCAL_NO_MONTH_CHANGE)));
36ed4f51
RD
5071 }
5072 {
32fe5131 5073 PyDict_SetItemString(d,"CAL_SEQUENTIAL_MONTH_SELECTION", SWIG_From_int(static_cast<int >(wxCAL_SEQUENTIAL_MONTH_SELECTION)));
36ed4f51
RD
5074 }
5075 {
32fe5131 5076 PyDict_SetItemString(d,"CAL_SHOW_SURROUNDING_WEEKS", SWIG_From_int(static_cast<int >(wxCAL_SHOW_SURROUNDING_WEEKS)));
36ed4f51
RD
5077 }
5078 {
32fe5131 5079 PyDict_SetItemString(d,"CAL_HITTEST_NOWHERE", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_NOWHERE)));
36ed4f51
RD
5080 }
5081 {
32fe5131 5082 PyDict_SetItemString(d,"CAL_HITTEST_HEADER", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_HEADER)));
36ed4f51
RD
5083 }
5084 {
32fe5131 5085 PyDict_SetItemString(d,"CAL_HITTEST_DAY", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_DAY)));
36ed4f51
RD
5086 }
5087 {
32fe5131 5088 PyDict_SetItemString(d,"CAL_HITTEST_INCMONTH", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_INCMONTH)));
36ed4f51
RD
5089 }
5090 {
32fe5131 5091 PyDict_SetItemString(d,"CAL_HITTEST_DECMONTH", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_DECMONTH)));
36ed4f51
RD
5092 }
5093 {
32fe5131 5094 PyDict_SetItemString(d,"CAL_HITTEST_SURROUNDING_WEEK", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_SURROUNDING_WEEK)));
36ed4f51
RD
5095 }
5096 {
32fe5131 5097 PyDict_SetItemString(d,"CAL_BORDER_NONE", SWIG_From_int(static_cast<int >(wxCAL_BORDER_NONE)));
36ed4f51
RD
5098 }
5099 {
32fe5131 5100 PyDict_SetItemString(d,"CAL_BORDER_SQUARE", SWIG_From_int(static_cast<int >(wxCAL_BORDER_SQUARE)));
36ed4f51
RD
5101 }
5102 {
32fe5131 5103 PyDict_SetItemString(d,"CAL_BORDER_ROUND", SWIG_From_int(static_cast<int >(wxCAL_BORDER_ROUND)));
36ed4f51 5104 }
d14a1e28
RD
5105 PyDict_SetItemString(d, "wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong(wxEVT_CALENDAR_DOUBLECLICKED));
5106 PyDict_SetItemString(d, "wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_SEL_CHANGED));
5107 PyDict_SetItemString(d, "wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_DAY_CHANGED));
5108 PyDict_SetItemString(d, "wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_MONTH_CHANGED));
5109 PyDict_SetItemString(d, "wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_YEAR_CHANGED));
5110 PyDict_SetItemString(d, "wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong(wxEVT_CALENDAR_WEEKDAY_CLICKED));
cbd72d4f
RD
5111 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
5112 SWIG_addvarlink(SWIG_globals,(char*)"CalendarNameStr",_wrap_CalendarNameStr_get, _wrap_CalendarNameStr_set);
d14a1e28
RD
5113
5114
5115}
5116