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