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