1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
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 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
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
; }
25 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
29 /***********************************************************************
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
34 ************************************************************************/
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
41 # define SWIGTEMPLATEDISAMBIGUATOR
45 /* inline attribute */
47 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48 # define SWIGINLINE inline
54 /* attribute recognised by some compilers to avoid 'unused' warnings */
56 # if defined(__GNUC__) || defined(__ICC)
57 # define SWIGUNUSED __attribute__ ((unused))
63 /* internal SWIG method */
65 # define SWIGINTERN static SWIGUNUSED
68 /* internal inline SWIG method */
69 #ifndef SWIGINTERNINLINE
70 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
73 /* exporting methods for Windows DLLs */
75 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76 # if defined(STATIC_LINKED)
79 # define SWIGEXPORT __declspec(dllexport)
86 /* calling conventions for Windows */
88 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89 # define SWIGSTDCALL __stdcall
99 /***********************************************************************
102 * This file contains generic CAPI SWIG runtime support for pointer
105 ************************************************************************/
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"
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)
117 # define SWIG_TYPE_TABLE_NAME
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'.
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
130 # define SWIGRUNTIME SWIGINTERN
133 #ifndef SWIGRUNTIMEINLINE
134 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
143 typedef void *(*swig_converter_func
)(void *);
144 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
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 */
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 */
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 */
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
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
);
191 return (l1
- f1
) - (l2
- f2
);
195 Check type equivalence in a name list like <name1>|<name2>|...
196 Return 0 if not equal, 1 if equal
199 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
201 const char* te
= tb
+ strlen(tb
);
203 while (!equiv
&& *ne
) {
204 for (nb
= ne
; *ne
; ++ne
) {
205 if (*ne
== '|') break;
207 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
218 SWIG_TypeCompare(const char *nb
, const char *tb
) {
220 const char* te
= tb
+ strlen(tb
);
222 while (!equiv
&& *ne
) {
223 for (nb
= ne
; *ne
; ++ne
) {
224 if (*ne
== '|') break;
226 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
233 /* think of this as a c++ template<> or a scheme macro */
234 #define SWIG_TypeCheck_Template(comparison, ty) \
236 swig_cast_info *iter = ty->cast; \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
246 if (ty->cast) ty->cast->prev = iter; \
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
);
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
);
270 Cast a pointer up an inheritance hierarchy
272 SWIGRUNTIMEINLINE
void *
273 SWIG_TypeCast(swig_cast_info
*ty
, void *ptr
) {
274 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
278 Dynamic pointer casting. Down an inheritance hierarchy
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
);
292 Return the name associated with this type
294 SWIGRUNTIMEINLINE
const char *
295 SWIG_TypeName(const swig_type_info
*ty
) {
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
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
309 if (type
->str
!= NULL
) {
310 const char *last_name
= type
->str
;
312 for (s
= type
->str
; *s
; s
++)
313 if (*s
== '|') last_name
= s
+1;
321 Set the clientdata field for a type
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
;
330 if (!cast
->converter
) {
331 swig_type_info
*tc
= cast
->type
;
332 if (!tc
->clientdata
) {
333 SWIG_TypeClientData(tc
, clientdata
);
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
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
348 SWIGRUNTIME swig_type_info
*
349 SWIG_MangledTypeQueryModule(swig_module_info
*start
,
350 swig_module_info
*end
,
352 swig_module_info
*iter
= start
;
355 register size_t l
= 0;
356 register size_t r
= iter
->size
- 1;
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
;
362 register int compare
= strcmp(name
, iname
);
364 return iter
->types
[i
];
365 } else if (compare
< 0) {
371 } else if (compare
> 0) {
375 break; /* should never happen */
380 } while (iter
!= end
);
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).
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
393 SWIGRUNTIME swig_type_info
*
394 SWIG_TypeQueryModule(swig_module_info
*start
,
395 swig_module_info
*end
,
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info
*ret
= SWIG_MangledTypeQueryModule(start
, end
, name
);
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
;
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
];
412 } while (iter
!= end
);
415 /* neither found a match */
421 Pack binary data into a string
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];
437 Unpack binary data from a string
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);
453 if ((d
>= '0') && (d
<= '9'))
455 else if ((d
>= 'a') && (d
<= 'f'))
456 uu
|= (d
- ('a'-10));
465 Pack 'void *' into a string buffer.
468 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
470 if ((2*sizeof(void *) + 2) > bsz
) return 0;
472 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
473 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
478 SWIGRUNTIME
const char *
479 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
481 if (strcmp(c
,"NULL") == 0) {
488 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
492 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
494 size_t lname
= (name
? strlen(name
) : 0);
495 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
497 r
= SWIG_PackData(r
,ptr
,sz
);
499 strncpy(r
,name
,lname
+1);
506 SWIGRUNTIME
const char *
507 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
509 if (strcmp(c
,"NULL") == 0) {
516 return SWIG_UnpackData(++c
,ptr
,sz
);
523 /* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
531 /* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
536 # define SWIGINTERN static SWIGUNUSED
539 #ifndef SWIGINTERNINLINE
540 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
544 Exception handling in wrappers
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)
556 #define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
559 /* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
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
570 /* Constant information structure */
571 typedef struct swig_const_info
{
577 swig_type_info
**ptype
;
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
593 /***********************************************************************
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
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)
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)
614 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
617 /* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
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
625 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626 # define SWIG_COBJECT_TYPES
629 /* Flags for pointer conversion */
630 #define SWIG_POINTER_EXCEPTION 0x1
631 #define SWIG_POINTER_DISOWN 0x2
634 /* Add PyOS_snprintf for old Pythons */
635 #if PY_VERSION_HEX < 0x02020000
636 #define PyOS_snprintf snprintf
643 /* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
646 #ifndef SWIG_BUFFER_SIZE
647 #define SWIG_BUFFER_SIZE 1024
650 /* A crude PyString_FromFormat implementation for old Pythons */
651 #if PY_VERSION_HEX < 0x02020000
653 PyString_FromFormat(const char *fmt
, ...) {
655 char buf
[SWIG_BUFFER_SIZE
* 2];
658 res
= vsnprintf(buf
, sizeof(buf
), fmt
, ap
);
660 return (res
< 0 || res
>= sizeof(buf
)) ? 0 : PyString_FromString(buf
);
664 #if PY_VERSION_HEX < 0x01060000
665 #define PyObject_Del(op) PyMem_DEL((op))
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 * ----------------------------------------------------------------------------- */
680 /* Declarations for objects of type PySwigObject */
683 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
685 char result
[SWIG_BUFFER_SIZE
];
687 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
688 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
695 SWIGRUNTIME PyObject
*
696 PySwigObject_repr(PySwigObject
*v
)
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;
703 SWIGRUNTIME PyObject
*
704 PySwigObject_str(PySwigObject
*v
)
706 char result
[SWIG_BUFFER_SIZE
];
707 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
708 PyString_FromString(result
) : 0;
711 SWIGRUNTIME PyObject
*
712 PySwigObject_long(PySwigObject
*v
)
714 return PyLong_FromVoidPtr(v
->ptr
);
717 SWIGRUNTIME PyObject
*
718 PySwigObject_format(const char* fmt
, PySwigObject
*v
)
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
);
725 res
= PyString_Format(ofmt
,args
);
733 SWIGRUNTIME PyObject
*
734 PySwigObject_oct(PySwigObject
*v
)
736 return PySwigObject_format("%o",v
);
739 SWIGRUNTIME PyObject
*
740 PySwigObject_hex(PySwigObject
*v
)
742 return PySwigObject_format("%x",v
);
746 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
748 int c
= strcmp(v
->desc
, w
->desc
);
750 return (c
> 0) ? 1 : -1;
754 return (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
759 PySwigObject_dealloc(PySwigObject
*self
)
764 SWIGRUNTIME PyTypeObject
*
765 PySwigObject_type(void) {
766 static char pyswigobject_type__doc__
[] =
767 "Swig object carries a C/C++ instance pointer";
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*/
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 */
800 static PyTypeObject pyswigobject_type
801 #if !defined(__cplusplus)
803 static int type_init
= 0;
808 PyObject_HEAD_INIT(&PyType_Type
)
810 (char *)"PySwigObject", /*tp_name*/
811 sizeof(PySwigObject
), /*tp_basicsize*/
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*/
823 (hashfunc
)0, /*tp_hash*/
824 (ternaryfunc
)0, /*tp_call*/
825 (reprfunc
)PySwigObject_str
, /*tp_str*/
826 /* Space for future expansion */
828 pyswigobject_type__doc__
, /* Documentation string */
829 #if PY_VERSION_HEX >= 0x02000000
833 #if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
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 */
840 #if PY_VERSION_HEX >= 0x02030000
844 0,0,0,0 /* tp_alloc -> tp_next */
847 #if !defined(__cplusplus)
848 pyswigobject_type
= tmp
;
852 return &pyswigobject_type
;
855 SWIGRUNTIME PyObject
*
856 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
858 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_type());
863 return (PyObject
*)self
;
866 SWIGRUNTIMEINLINE
void *
867 PySwigObject_AsVoidPtr(PyObject
*self
)
869 return ((PySwigObject
*)self
)->ptr
;
872 SWIGRUNTIMEINLINE
const char *
873 PySwigObject_GetDesc(PyObject
*self
)
875 return ((PySwigObject
*)self
)->desc
;
878 SWIGRUNTIMEINLINE
int
879 PySwigObject_Check(PyObject
*op
) {
880 return ((op
)->ob_type
== PySwigObject_type())
881 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
884 /* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
896 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
898 char result
[SWIG_BUFFER_SIZE
];
900 fputs("<Swig Packed ", fp
);
901 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
910 SWIGRUNTIME PyObject
*
911 PySwigPacked_repr(PySwigPacked
*v
)
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
);
917 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
921 SWIGRUNTIME PyObject
*
922 PySwigPacked_str(PySwigPacked
*v
)
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
);
928 return PyString_FromString(v
->desc
);
933 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
935 int c
= strcmp(v
->desc
, w
->desc
);
937 return (c
> 0) ? 1 : -1;
941 int s
= (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
942 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
947 PySwigPacked_dealloc(PySwigPacked
*self
)
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)
960 static int type_init
= 0;
965 PyObject_HEAD_INIT(&PyType_Type
)
967 (char *)"PySwigPacked", /*tp_name*/
968 sizeof(PySwigPacked
), /*tp_basicsize*/
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*/
978 0, /*tp_as_sequence*/
980 (hashfunc
)0, /*tp_hash*/
981 (ternaryfunc
)0, /*tp_call*/
982 (reprfunc
)PySwigPacked_str
, /*tp_str*/
983 /* Space for future expansion */
985 pyswigpacked_type__doc__
, /* Documentation string */
986 #if PY_VERSION_HEX >= 0x02000000
990 #if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
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 */
997 #if PY_VERSION_HEX >= 0x02030000
1001 0,0,0,0 /* tp_alloc -> tp_next */
1004 #if !defined(__cplusplus)
1005 pyswigpacked_type
= tmp
;
1009 return &pyswigpacked_type
;
1012 SWIGRUNTIME PyObject
*
1013 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
1015 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_type());
1019 void *pack
= malloc(size
);
1021 memcpy(pack
, ptr
, size
);
1025 return (PyObject
*) self
;
1031 SWIGRUNTIMEINLINE
const char *
1032 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
1034 PySwigPacked
*self
= (PySwigPacked
*)obj
;
1035 if (self
->size
!= size
) return 0;
1036 memcpy(ptr
, self
->pack
, size
);
1040 SWIGRUNTIMEINLINE
const char *
1041 PySwigPacked_GetDesc(PyObject
*self
)
1043 return ((PySwigPacked
*)self
)->desc
;
1046 SWIGRUNTIMEINLINE
int
1047 PySwigPacked_Check(PyObject
*op
) {
1048 return ((op
)->ob_type
== PySwigPacked_type())
1049 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
1053 /* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
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)
1066 /* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1071 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1074 #if defined(SWIG_COBJECT_TYPES)
1075 if (obj
&& PySwigObject_Check(obj
)) {
1076 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1078 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1085 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1087 PyObject
*str
= PyObject_Str(obj
);
1088 const char *cstr
= str
? PyString_AsString(str
) : 0;
1090 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1093 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1100 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1102 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1106 SWIGRUNTIMEINLINE
void
1107 SWIG_Python_NullRef(const char *type
)
1110 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1112 PyErr_Format(PyExc_TypeError
, "null reference was received");
1117 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1119 if (PyErr_Occurred()) {
1121 PyObject
*value
= 0;
1122 PyObject
*traceback
= 0;
1123 PyErr_Fetch(&type
, &value
, &traceback
);
1125 PyObject
*old_str
= PyObject_Str(value
);
1129 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1131 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1142 SWIG_Python_ArgFail(int argnum
)
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1147 PyOS_snprintf(mesg
, sizeof(mesg
), "argument number %d:", argnum
);
1148 return SWIG_Python_AddErrMesg(mesg
, 1);
1155 /* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1159 /* Convert a pointer value */
1161 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1164 static PyObject
*SWIG_this
= 0;
1166 PyObject
*pyobj
= 0;
1170 if (obj
== Py_None
) {
1175 #ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj
))) {
1178 SWIG_this
= PyString_FromString("this");
1180 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1182 if (!obj
) goto type_error
;
1183 if (!PySwigObject_Check(obj
)) {
1188 vptr
= PySwigObject_AsVoidPtr(obj
);
1189 c
= (const char *) PySwigObject_GetDesc(obj
);
1190 if (newref
) { Py_DECREF(obj
); }
1193 if (!(PyString_Check(obj
))) {
1195 SWIG_this
= PyString_FromString("this");
1197 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1199 if (!obj
) goto type_error
;
1200 if (!PyString_Check(obj
)) {
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
;
1214 tc
= SWIG_TypeCheck(c
,ty
);
1215 if (!tc
) goto type_error
;
1216 *ptr
= SWIG_TypeCast(tc
,vptr
);
1220 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1221 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1227 if (pyobj
&& !obj
) {
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;
1234 c
= ty
? SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
) : 0;
1235 if (!c
) goto type_error
;
1240 if (flags
& SWIG_POINTER_EXCEPTION
) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1244 SWIG_Python_TypeError("C/C++ pointer", obj
);
1250 /* Convert a pointer value, signal an exception on a type mismatch */
1252 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1254 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1256 if (flags
& SWIG_POINTER_EXCEPTION
) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1258 SWIG_Python_ArgFail(argnum
);
1264 /* Convert a packed value value */
1266 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1270 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
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
);
1278 if (!c
) goto type_error
;
1280 tc
= SWIG_TypeCheck(c
,ty
);
1281 if (!tc
) goto type_error
;
1287 if (flags
& SWIG_POINTER_EXCEPTION
) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1291 SWIG_Python_TypeError("C/C++ packed data", obj
);
1297 /* Create a new array object */
1298 SWIGRUNTIME PyObject
*
1299 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError
, "Swig: null type passed to NewPointerObj");
1311 #ifdef SWIG_COBJECT_TYPES
1312 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1315 char result
[SWIG_BUFFER_SIZE
];
1316 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1317 PyString_FromString(result
) : 0;
1320 if (!robj
|| (robj
== Py_None
)) return robj
;
1321 if (type
->clientdata
) {
1323 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1325 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1329 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1337 SWIGRUNTIME PyObject
*
1338 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1344 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1348 char result
[SWIG_BUFFER_SIZE
];
1349 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1350 PyString_FromString(result
) : 0;
1356 /* -----------------------------------------------------------------------------*
1358 * -----------------------------------------------------------------------------*/
1360 #ifdef SWIG_LINK_RUNTIME
1361 void *SWIG_ReturnGlobalTypeList(void *);
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);
1372 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1374 if (PyErr_Occurred()) {
1376 type_pointer
= (void *)0;
1380 return (swig_module_info
*) type_pointer
;
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 */
1387 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
1390 if (!PyModule_Check(m
)) {
1391 PyErr_SetString(PyExc_TypeError
,
1392 "PyModule_AddObject() needs module as first arg");
1396 PyErr_SetString(PyExc_TypeError
,
1397 "PyModule_AddObject() needs non-NULL value");
1401 dict
= PyModule_GetDict(m
);
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
1405 PyModule_GetName(m
));
1408 if (PyDict_SetItemString(dict
, name
, o
))
1416 SWIG_Python_SetModule(swig_module_info
*swig_module
) {
1417 static PyMethodDef swig_empty_runtime_method_table
[] = { {NULL
, NULL
, 0, NULL
} };/* Sentinel */
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
);
1432 /* -------- TYPES TABLE (BEGIN) -------- */
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)
1544 /* -------- TYPES TABLE (END) -------- */
1547 /*-----------------------------------------------
1548 @(target):= _calendar.so
1549 ------------------------------------------------*/
1550 #define SWIG_init init_calendar
1552 #define SWIG_name "_calendar"
1554 #include "wx/wxPython/wxPython.h"
1555 #include "wx/wxPython/pyclasses.h"
1557 #include <wx/calctrl.h>
1560 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1561 #define SWIG_From_int PyInt_FromLong
1569 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1572 if (value
< min_value
) {
1574 PyErr_Format(PyExc_OverflowError
,
1575 "value %ld is less than '%s' minimum %ld",
1576 value
, errmsg
, min_value
);
1579 } else if (value
> max_value
) {
1581 PyErr_Format(PyExc_OverflowError
,
1582 "value %ld is greater than '%s' maximum %ld",
1583 value
, errmsg
, max_value
);
1592 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1594 if (PyNumber_Check(obj
)) {
1595 if (val
) *val
= PyInt_AsLong(obj
);
1599 SWIG_Python_TypeError("number", obj
);
1605 #if INT_MAX != LONG_MAX
1607 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1609 const char* errmsg
= val
? "int" : (char*)0;
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
);
1622 SWIG_type_error(errmsg
, obj
);
1627 SWIGINTERNINLINE
int
1628 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1630 return SWIG_AsVal_long(obj
,(long*)val
);
1635 SWIGINTERNINLINE
int
1636 SWIG_As_int(PyObject
* obj
)
1639 if (!SWIG_AsVal_int(obj
, &v
)) {
1641 this is needed to make valgrind/purify happier.
1643 memset((void*)&v
, 0, sizeof(int));
1649 SWIGINTERNINLINE
int
1650 SWIG_Check_int(PyObject
* obj
)
1652 return SWIG_AsVal_int(obj
, (int*)0);
1657 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
1659 if (obj
== Py_True
) {
1660 if (val
) *val
= true;
1663 if (obj
== Py_False
) {
1664 if (val
) *val
= false;
1668 if (SWIG_AsVal_int(obj
, &res
)) {
1669 if (val
) *val
= res
? true : false;
1675 SWIG_type_error("bool", obj
);
1681 SWIGINTERNINLINE
bool
1682 SWIG_As_bool(PyObject
* obj
)
1685 if (!SWIG_AsVal_bool(obj
, &v
)) {
1687 this is needed to make valgrind/purify happier.
1689 memset((void*)&v
, 0, sizeof(bool));
1695 SWIGINTERNINLINE
int
1696 SWIG_Check_bool(PyObject
* obj
)
1698 return SWIG_AsVal_bool(obj
, (bool*)0);
1701 static const wxString
wxPyCalendarNameStr(wxCalendarNameStr
);
1703 SWIGINTERNINLINE
long
1704 SWIG_As_long(PyObject
* obj
)
1707 if (!SWIG_AsVal_long(obj
, &v
)) {
1709 this is needed to make valgrind/purify happier.
1711 memset((void*)&v
, 0, sizeof(long));
1717 SWIGINTERNINLINE
int
1718 SWIG_Check_long(PyObject
* obj
)
1720 return SWIG_AsVal_long(obj
, (long*)0);
1725 SWIG_AsVal_unsigned_SS_long(PyObject
* obj
, unsigned long* val
)
1728 if (SWIG_AsVal_long(obj
, &v
) && v
< 0) {
1729 SWIG_Python_TypeError("unsigned number", obj
);
1732 *val
= (unsigned long)v
;
1737 SWIGINTERNINLINE
unsigned long
1738 SWIG_As_unsigned_SS_long(PyObject
* obj
)
1741 if (!SWIG_AsVal_unsigned_SS_long(obj
, &v
)) {
1743 this is needed to make valgrind/purify happier.
1745 memset((void*)&v
, 0, sizeof(unsigned long));
1751 SWIGINTERNINLINE
int
1752 SWIG_Check_unsigned_SS_long(PyObject
* obj
)
1754 return SWIG_AsVal_unsigned_SS_long(obj
, (unsigned long*)0);
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
);
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
;
1787 PyObject
* obj0
= 0 ;
1788 PyObject
* obj1
= 0 ;
1789 PyObject
* obj2
= 0 ;
1790 PyObject
* obj3
= 0 ;
1791 PyObject
* obj4
= 0 ;
1793 (char *) "colText",(char *) "colBack",(char *) "colBorder",(char *) "font",(char *) "border", NULL
1796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOO:new_CalendarDateAttr",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1800 if ( ! wxColour_helper(obj0
, &arg1
)) SWIG_fail
;
1806 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
1812 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
1817 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxFont
, SWIG_POINTER_EXCEPTION
| 0);
1818 if (SWIG_arg_fail(4)) SWIG_fail
;
1820 SWIG_null_ref("wxFont");
1822 if (SWIG_arg_fail(4)) SWIG_fail
;
1827 arg5
= static_cast<wxCalendarDateBorder
>(SWIG_As_int(obj4
));
1828 if (SWIG_arg_fail(5)) SWIG_fail
;
1832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1833 result
= (wxCalendarDateAttr
*)new wxCalendarDateAttr((wxColour
const &)*arg1
,(wxColour
const &)*arg2
,(wxColour
const &)*arg3
,(wxFont
const &)*arg4
,arg5
);
1835 wxPyEndAllowThreads(__tstate
);
1836 if (PyErr_Occurred()) SWIG_fail
;
1838 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarDateAttr
, 1);
1845 static PyObject
*_wrap_CalendarDateAttr_SetTextColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1846 PyObject
*resultobj
= NULL
;
1847 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1848 wxColour
*arg2
= 0 ;
1850 PyObject
* obj0
= 0 ;
1851 PyObject
* obj1
= 0 ;
1853 (char *) "self",(char *) "colText", NULL
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
;
1861 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
1864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1865 (arg1
)->SetTextColour((wxColour
const &)*arg2
);
1867 wxPyEndAllowThreads(__tstate
);
1868 if (PyErr_Occurred()) SWIG_fail
;
1870 Py_INCREF(Py_None
); resultobj
= Py_None
;
1877 static PyObject
*_wrap_CalendarDateAttr_SetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1878 PyObject
*resultobj
= NULL
;
1879 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1880 wxColour
*arg2
= 0 ;
1882 PyObject
* obj0
= 0 ;
1883 PyObject
* obj1
= 0 ;
1885 (char *) "self",(char *) "colBack", NULL
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
;
1893 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
1896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1897 (arg1
)->SetBackgroundColour((wxColour
const &)*arg2
);
1899 wxPyEndAllowThreads(__tstate
);
1900 if (PyErr_Occurred()) SWIG_fail
;
1902 Py_INCREF(Py_None
); resultobj
= Py_None
;
1909 static PyObject
*_wrap_CalendarDateAttr_SetBorderColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1910 PyObject
*resultobj
= NULL
;
1911 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1912 wxColour
*arg2
= 0 ;
1914 PyObject
* obj0
= 0 ;
1915 PyObject
* obj1
= 0 ;
1917 (char *) "self",(char *) "col", NULL
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
;
1925 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
1928 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1929 (arg1
)->SetBorderColour((wxColour
const &)*arg2
);
1931 wxPyEndAllowThreads(__tstate
);
1932 if (PyErr_Occurred()) SWIG_fail
;
1934 Py_INCREF(Py_None
); resultobj
= Py_None
;
1941 static PyObject
*_wrap_CalendarDateAttr_SetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1942 PyObject
*resultobj
= NULL
;
1943 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1945 PyObject
* obj0
= 0 ;
1946 PyObject
* obj1
= 0 ;
1948 (char *) "self",(char *) "font", NULL
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
;
1955 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxFont
, SWIG_POINTER_EXCEPTION
| 0);
1956 if (SWIG_arg_fail(2)) SWIG_fail
;
1958 SWIG_null_ref("wxFont");
1960 if (SWIG_arg_fail(2)) SWIG_fail
;
1963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1964 (arg1
)->SetFont((wxFont
const &)*arg2
);
1966 wxPyEndAllowThreads(__tstate
);
1967 if (PyErr_Occurred()) SWIG_fail
;
1969 Py_INCREF(Py_None
); resultobj
= Py_None
;
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 ;
1983 (char *) "self",(char *) "border", NULL
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
;
1990 arg2
= static_cast<wxCalendarDateBorder
>(SWIG_As_int(obj1
));
1991 if (SWIG_arg_fail(2)) SWIG_fail
;
1994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1995 (arg1
)->SetBorder(arg2
);
1997 wxPyEndAllowThreads(__tstate
);
1998 if (PyErr_Occurred()) SWIG_fail
;
2000 Py_INCREF(Py_None
); resultobj
= Py_None
;
2007 static PyObject
*_wrap_CalendarDateAttr_SetHoliday(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2008 PyObject
*resultobj
= NULL
;
2009 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2011 PyObject
* obj0
= 0 ;
2012 PyObject
* obj1
= 0 ;
2014 (char *) "self",(char *) "holiday", NULL
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
;
2021 arg2
= static_cast<bool >(SWIG_As_bool(obj1
));
2022 if (SWIG_arg_fail(2)) SWIG_fail
;
2025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2026 (arg1
)->SetHoliday(arg2
);
2028 wxPyEndAllowThreads(__tstate
);
2029 if (PyErr_Occurred()) SWIG_fail
;
2031 Py_INCREF(Py_None
); resultobj
= Py_None
;
2038 static PyObject
*_wrap_CalendarDateAttr_HasTextColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2039 PyObject
*resultobj
= NULL
;
2040 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2042 PyObject
* obj0
= 0 ;
2044 (char *) "self", NULL
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
;
2051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2052 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasTextColour();
2054 wxPyEndAllowThreads(__tstate
);
2055 if (PyErr_Occurred()) SWIG_fail
;
2058 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2066 static PyObject
*_wrap_CalendarDateAttr_HasBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2067 PyObject
*resultobj
= NULL
;
2068 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2070 PyObject
* obj0
= 0 ;
2072 (char *) "self", NULL
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
;
2079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2080 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasBackgroundColour();
2082 wxPyEndAllowThreads(__tstate
);
2083 if (PyErr_Occurred()) SWIG_fail
;
2086 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2094 static PyObject
*_wrap_CalendarDateAttr_HasBorderColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2095 PyObject
*resultobj
= NULL
;
2096 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2098 PyObject
* obj0
= 0 ;
2100 (char *) "self", NULL
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
;
2107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2108 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasBorderColour();
2110 wxPyEndAllowThreads(__tstate
);
2111 if (PyErr_Occurred()) SWIG_fail
;
2114 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2122 static PyObject
*_wrap_CalendarDateAttr_HasFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2123 PyObject
*resultobj
= NULL
;
2124 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2126 PyObject
* obj0
= 0 ;
2128 (char *) "self", NULL
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
;
2135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2136 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasFont();
2138 wxPyEndAllowThreads(__tstate
);
2139 if (PyErr_Occurred()) SWIG_fail
;
2142 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2150 static PyObject
*_wrap_CalendarDateAttr_HasBorder(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2151 PyObject
*resultobj
= NULL
;
2152 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2154 PyObject
* obj0
= 0 ;
2156 (char *) "self", NULL
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
;
2163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2164 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasBorder();
2166 wxPyEndAllowThreads(__tstate
);
2167 if (PyErr_Occurred()) SWIG_fail
;
2170 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2178 static PyObject
*_wrap_CalendarDateAttr_IsHoliday(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2179 PyObject
*resultobj
= NULL
;
2180 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2182 PyObject
* obj0
= 0 ;
2184 (char *) "self", NULL
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
;
2191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2192 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->IsHoliday();
2194 wxPyEndAllowThreads(__tstate
);
2195 if (PyErr_Occurred()) SWIG_fail
;
2198 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2206 static PyObject
*_wrap_CalendarDateAttr_GetTextColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2207 PyObject
*resultobj
= NULL
;
2208 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2210 PyObject
* obj0
= 0 ;
2212 (char *) "self", NULL
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
;
2219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2220 result
= ((wxCalendarDateAttr
const *)arg1
)->GetTextColour();
2222 wxPyEndAllowThreads(__tstate
);
2223 if (PyErr_Occurred()) SWIG_fail
;
2226 wxColour
* resultptr
;
2227 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
2228 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
2236 static PyObject
*_wrap_CalendarDateAttr_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2237 PyObject
*resultobj
= NULL
;
2238 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2240 PyObject
* obj0
= 0 ;
2242 (char *) "self", NULL
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
;
2249 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2250 result
= ((wxCalendarDateAttr
const *)arg1
)->GetBackgroundColour();
2252 wxPyEndAllowThreads(__tstate
);
2253 if (PyErr_Occurred()) SWIG_fail
;
2256 wxColour
* resultptr
;
2257 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
2258 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
2266 static PyObject
*_wrap_CalendarDateAttr_GetBorderColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2267 PyObject
*resultobj
= NULL
;
2268 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2270 PyObject
* obj0
= 0 ;
2272 (char *) "self", NULL
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
;
2279 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2280 result
= ((wxCalendarDateAttr
const *)arg1
)->GetBorderColour();
2282 wxPyEndAllowThreads(__tstate
);
2283 if (PyErr_Occurred()) SWIG_fail
;
2286 wxColour
* resultptr
;
2287 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
2288 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
2296 static PyObject
*_wrap_CalendarDateAttr_GetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2297 PyObject
*resultobj
= NULL
;
2298 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2300 PyObject
* obj0
= 0 ;
2302 (char *) "self", NULL
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
;
2309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2310 result
= ((wxCalendarDateAttr
const *)arg1
)->GetFont();
2312 wxPyEndAllowThreads(__tstate
);
2313 if (PyErr_Occurred()) SWIG_fail
;
2317 resultptr
= new wxFont(static_cast<wxFont
& >(result
));
2318 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
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 ;
2332 (char *) "self", NULL
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
;
2339 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2340 result
= (wxCalendarDateBorder
)((wxCalendarDateAttr
const *)arg1
)->GetBorder();
2342 wxPyEndAllowThreads(__tstate
);
2343 if (PyErr_Occurred()) SWIG_fail
;
2345 resultobj
= SWIG_From_int((result
));
2352 static PyObject
* CalendarDateAttr_swigregister(PyObject
*, PyObject
*args
) {
2354 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2355 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarDateAttr
, obj
);
2357 return Py_BuildValue((char *)"");
2359 static PyObject
*_wrap_new_CalendarEvent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2360 PyObject
*resultobj
= NULL
;
2361 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2363 wxCalendarEvent
*result
;
2364 PyObject
* obj0
= 0 ;
2365 PyObject
* obj1
= 0 ;
2367 (char *) "cal",(char *) "type", NULL
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
;
2374 arg2
= static_cast<wxEventType
>(SWIG_As_int(obj1
));
2375 if (SWIG_arg_fail(2)) SWIG_fail
;
2378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2379 result
= (wxCalendarEvent
*)new wxCalendarEvent(arg1
,arg2
);
2381 wxPyEndAllowThreads(__tstate
);
2382 if (PyErr_Occurred()) SWIG_fail
;
2384 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarEvent
, 1);
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 ;
2398 (char *) "self",(char *) "wd", NULL
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
;
2405 arg2
= static_cast<wxDateTime::WeekDay
const >(SWIG_As_int(obj1
));
2406 if (SWIG_arg_fail(2)) SWIG_fail
;
2409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2410 (arg1
)->SetWeekDay(arg2
);
2412 wxPyEndAllowThreads(__tstate
);
2413 if (PyErr_Occurred()) SWIG_fail
;
2415 Py_INCREF(Py_None
); resultobj
= Py_None
;
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 ;
2428 (char *) "self", NULL
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
;
2435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2436 result
= (wxDateTime::WeekDay
)((wxCalendarEvent
const *)arg1
)->GetWeekDay();
2438 wxPyEndAllowThreads(__tstate
);
2439 if (PyErr_Occurred()) SWIG_fail
;
2441 resultobj
= SWIG_From_int((result
));
2448 static PyObject
* CalendarEvent_swigregister(PyObject
*, PyObject
*args
) {
2450 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2451 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent
, obj
);
2453 return Py_BuildValue((char *)"");
2455 static int _wrap_CalendarNameStr_set(PyObject
*) {
2456 PyErr_SetString(PyExc_TypeError
,"Variable CalendarNameStr is read-only.");
2461 static PyObject
*_wrap_CalendarNameStr_get(void) {
2462 PyObject
*pyobj
= NULL
;
2466 pyobj
= PyUnicode_FromWideChar((&wxPyCalendarNameStr
)->c_str(), (&wxPyCalendarNameStr
)->Len());
2468 pyobj
= PyString_FromStringAndSize((&wxPyCalendarNameStr
)->c_str(), (&wxPyCalendarNameStr
)->Len());
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
;
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 ;
2500 (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
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
;
2508 arg2
= static_cast<int >(SWIG_As_int(obj1
));
2509 if (SWIG_arg_fail(2)) SWIG_fail
;
2514 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2515 if (SWIG_arg_fail(3)) SWIG_fail
;
2517 SWIG_null_ref("wxDateTime");
2519 if (SWIG_arg_fail(3)) SWIG_fail
;
2525 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2531 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
2536 arg6
= static_cast<long >(SWIG_As_long(obj5
));
2537 if (SWIG_arg_fail(6)) SWIG_fail
;
2542 arg7
= wxString_in_helper(obj6
);
2543 if (arg7
== NULL
) SWIG_fail
;
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
);
2552 wxPyEndAllowThreads(__tstate
);
2553 if (PyErr_Occurred()) SWIG_fail
;
2555 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarCtrl
, 1);
2570 static PyObject
*_wrap_new_PreCalendarCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2571 PyObject
*resultobj
= NULL
;
2572 wxCalendarCtrl
*result
;
2577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_PreCalendarCtrl",kwnames
)) goto fail
;
2579 if (!wxPyCheckForApp()) SWIG_fail
;
2580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2581 result
= (wxCalendarCtrl
*)new wxCalendarCtrl();
2583 wxPyEndAllowThreads(__tstate
);
2584 if (PyErr_Occurred()) SWIG_fail
;
2586 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarCtrl
, 1);
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 ;
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
;
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 ;
2620 (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
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
;
2629 arg3
= static_cast<int >(SWIG_As_int(obj2
));
2630 if (SWIG_arg_fail(3)) SWIG_fail
;
2634 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2635 if (SWIG_arg_fail(4)) SWIG_fail
;
2637 SWIG_null_ref("wxDateTime");
2639 if (SWIG_arg_fail(4)) SWIG_fail
;
2645 if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
;
2651 if ( ! wxSize_helper(obj5
, &arg6
)) SWIG_fail
;
2656 arg7
= static_cast<long >(SWIG_As_long(obj6
));
2657 if (SWIG_arg_fail(7)) SWIG_fail
;
2662 arg8
= wxString_in_helper(obj7
);
2663 if (arg8
== NULL
) SWIG_fail
;
2668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2669 result
= (bool)(arg1
)->Create(arg2
,arg3
,(wxDateTime
const &)*arg4
,(wxPoint
const &)*arg5
,(wxSize
const &)*arg6
,arg7
,(wxString
const &)*arg8
);
2671 wxPyEndAllowThreads(__tstate
);
2672 if (PyErr_Occurred()) SWIG_fail
;
2675 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
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 ;
2698 (char *) "self",(char *) "date", NULL
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
;
2705 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2706 if (SWIG_arg_fail(2)) SWIG_fail
;
2708 SWIG_null_ref("wxDateTime");
2710 if (SWIG_arg_fail(2)) SWIG_fail
;
2713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2714 (arg1
)->SetDate((wxDateTime
const &)*arg2
);
2716 wxPyEndAllowThreads(__tstate
);
2717 if (PyErr_Occurred()) SWIG_fail
;
2719 Py_INCREF(Py_None
); resultobj
= Py_None
;
2726 static PyObject
*_wrap_CalendarCtrl_GetDate(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2727 PyObject
*resultobj
= NULL
;
2728 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2730 PyObject
* obj0
= 0 ;
2732 (char *) "self", NULL
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
;
2739 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2741 wxDateTime
const &_result_ref
= ((wxCalendarCtrl
const *)arg1
)->GetDate();
2742 result
= (wxDateTime
*) &_result_ref
;
2745 wxPyEndAllowThreads(__tstate
);
2746 if (PyErr_Occurred()) SWIG_fail
;
2748 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0);
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
;
2761 PyObject
* obj0
= 0 ;
2762 PyObject
* obj1
= 0 ;
2764 (char *) "self",(char *) "date", NULL
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
;
2772 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2773 if (SWIG_arg_fail(2)) SWIG_fail
;
2775 SWIG_null_ref("wxDateTime");
2777 if (SWIG_arg_fail(2)) SWIG_fail
;
2781 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2782 result
= (bool)(arg1
)->SetLowerDateLimit((wxDateTime
const &)*arg2
);
2784 wxPyEndAllowThreads(__tstate
);
2785 if (PyErr_Occurred()) SWIG_fail
;
2788 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
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
;
2802 PyObject
* obj0
= 0 ;
2803 PyObject
* obj1
= 0 ;
2805 (char *) "self",(char *) "date", NULL
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
;
2813 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2814 if (SWIG_arg_fail(2)) SWIG_fail
;
2816 SWIG_null_ref("wxDateTime");
2818 if (SWIG_arg_fail(2)) SWIG_fail
;
2822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2823 result
= (bool)(arg1
)->SetUpperDateLimit((wxDateTime
const &)*arg2
);
2825 wxPyEndAllowThreads(__tstate
);
2826 if (PyErr_Occurred()) SWIG_fail
;
2829 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2837 static PyObject
*_wrap_CalendarCtrl_GetLowerDateLimit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2838 PyObject
*resultobj
= NULL
;
2839 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2841 PyObject
* obj0
= 0 ;
2843 (char *) "self", NULL
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
;
2850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2852 wxDateTime
const &_result_ref
= ((wxCalendarCtrl
const *)arg1
)->GetLowerDateLimit();
2853 result
= (wxDateTime
*) &_result_ref
;
2856 wxPyEndAllowThreads(__tstate
);
2857 if (PyErr_Occurred()) SWIG_fail
;
2859 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0);
2866 static PyObject
*_wrap_CalendarCtrl_GetUpperDateLimit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2867 PyObject
*resultobj
= NULL
;
2868 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2870 PyObject
* obj0
= 0 ;
2872 (char *) "self", NULL
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
;
2879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2881 wxDateTime
const &_result_ref
= ((wxCalendarCtrl
const *)arg1
)->GetUpperDateLimit();
2882 result
= (wxDateTime
*) &_result_ref
;
2885 wxPyEndAllowThreads(__tstate
);
2886 if (PyErr_Occurred()) SWIG_fail
;
2888 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0);
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
;
2903 PyObject
* obj0
= 0 ;
2904 PyObject
* obj1
= 0 ;
2905 PyObject
* obj2
= 0 ;
2907 (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL
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
;
2915 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2916 if (SWIG_arg_fail(2)) SWIG_fail
;
2918 SWIG_null_ref("wxDateTime");
2920 if (SWIG_arg_fail(2)) SWIG_fail
;
2925 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2926 if (SWIG_arg_fail(3)) SWIG_fail
;
2928 SWIG_null_ref("wxDateTime");
2930 if (SWIG_arg_fail(3)) SWIG_fail
;
2934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2935 result
= (bool)(arg1
)->SetDateRange((wxDateTime
const &)*arg2
,(wxDateTime
const &)*arg3
);
2937 wxPyEndAllowThreads(__tstate
);
2938 if (PyErr_Occurred()) SWIG_fail
;
2941 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
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 ;
2956 (char *) "self",(char *) "enable", NULL
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
;
2964 arg2
= static_cast<bool >(SWIG_As_bool(obj1
));
2965 if (SWIG_arg_fail(2)) SWIG_fail
;
2969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2970 (arg1
)->EnableYearChange(arg2
);
2972 wxPyEndAllowThreads(__tstate
);
2973 if (PyErr_Occurred()) SWIG_fail
;
2975 Py_INCREF(Py_None
); resultobj
= Py_None
;
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 ;
2989 (char *) "self",(char *) "enable", NULL
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
;
2997 arg2
= static_cast<bool >(SWIG_As_bool(obj1
));
2998 if (SWIG_arg_fail(2)) SWIG_fail
;
3002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3003 (arg1
)->EnableMonthChange(arg2
);
3005 wxPyEndAllowThreads(__tstate
);
3006 if (PyErr_Occurred()) SWIG_fail
;
3008 Py_INCREF(Py_None
); resultobj
= Py_None
;
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 ;
3022 (char *) "self",(char *) "display", NULL
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
;
3030 arg2
= static_cast<bool >(SWIG_As_bool(obj1
));
3031 if (SWIG_arg_fail(2)) SWIG_fail
;
3035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3036 (arg1
)->EnableHolidayDisplay(arg2
);
3038 wxPyEndAllowThreads(__tstate
);
3039 if (PyErr_Occurred()) SWIG_fail
;
3041 Py_INCREF(Py_None
); resultobj
= Py_None
;
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 ;
3055 PyObject
* obj0
= 0 ;
3056 PyObject
* obj1
= 0 ;
3057 PyObject
* obj2
= 0 ;
3059 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
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
;
3067 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3071 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
3074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3075 (arg1
)->SetHeaderColours((wxColour
const &)*arg2
,(wxColour
const &)*arg3
);
3077 wxPyEndAllowThreads(__tstate
);
3078 if (PyErr_Occurred()) SWIG_fail
;
3080 Py_INCREF(Py_None
); resultobj
= Py_None
;
3087 static PyObject
*_wrap_CalendarCtrl_GetHeaderColourFg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3088 PyObject
*resultobj
= NULL
;
3089 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3091 PyObject
* obj0
= 0 ;
3093 (char *) "self", NULL
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
;
3100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3101 result
= ((wxCalendarCtrl
const *)arg1
)->GetHeaderColourFg();
3103 wxPyEndAllowThreads(__tstate
);
3104 if (PyErr_Occurred()) SWIG_fail
;
3107 wxColour
* resultptr
;
3108 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
3109 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
3117 static PyObject
*_wrap_CalendarCtrl_GetHeaderColourBg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3118 PyObject
*resultobj
= NULL
;
3119 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3121 PyObject
* obj0
= 0 ;
3123 (char *) "self", NULL
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
;
3130 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3131 result
= ((wxCalendarCtrl
const *)arg1
)->GetHeaderColourBg();
3133 wxPyEndAllowThreads(__tstate
);
3134 if (PyErr_Occurred()) SWIG_fail
;
3137 wxColour
* resultptr
;
3138 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
3139 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
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 ;
3154 PyObject
* obj0
= 0 ;
3155 PyObject
* obj1
= 0 ;
3156 PyObject
* obj2
= 0 ;
3158 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
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
;
3166 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3170 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
3173 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3174 (arg1
)->SetHighlightColours((wxColour
const &)*arg2
,(wxColour
const &)*arg3
);
3176 wxPyEndAllowThreads(__tstate
);
3177 if (PyErr_Occurred()) SWIG_fail
;
3179 Py_INCREF(Py_None
); resultobj
= Py_None
;
3186 static PyObject
*_wrap_CalendarCtrl_GetHighlightColourFg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3187 PyObject
*resultobj
= NULL
;
3188 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3190 PyObject
* obj0
= 0 ;
3192 (char *) "self", NULL
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
;
3199 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3200 result
= ((wxCalendarCtrl
const *)arg1
)->GetHighlightColourFg();
3202 wxPyEndAllowThreads(__tstate
);
3203 if (PyErr_Occurred()) SWIG_fail
;
3206 wxColour
* resultptr
;
3207 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
3208 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
3216 static PyObject
*_wrap_CalendarCtrl_GetHighlightColourBg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3217 PyObject
*resultobj
= NULL
;
3218 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3220 PyObject
* obj0
= 0 ;
3222 (char *) "self", NULL
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
;
3229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3230 result
= ((wxCalendarCtrl
const *)arg1
)->GetHighlightColourBg();
3232 wxPyEndAllowThreads(__tstate
);
3233 if (PyErr_Occurred()) SWIG_fail
;
3236 wxColour
* resultptr
;
3237 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
3238 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
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 ;
3253 PyObject
* obj0
= 0 ;
3254 PyObject
* obj1
= 0 ;
3255 PyObject
* obj2
= 0 ;
3257 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
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
;
3265 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3269 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
3272 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3273 (arg1
)->SetHolidayColours((wxColour
const &)*arg2
,(wxColour
const &)*arg3
);
3275 wxPyEndAllowThreads(__tstate
);
3276 if (PyErr_Occurred()) SWIG_fail
;
3278 Py_INCREF(Py_None
); resultobj
= Py_None
;
3285 static PyObject
*_wrap_CalendarCtrl_GetHolidayColourFg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3286 PyObject
*resultobj
= NULL
;
3287 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3289 PyObject
* obj0
= 0 ;
3291 (char *) "self", NULL
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
;
3298 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3299 result
= ((wxCalendarCtrl
const *)arg1
)->GetHolidayColourFg();
3301 wxPyEndAllowThreads(__tstate
);
3302 if (PyErr_Occurred()) SWIG_fail
;
3305 wxColour
* resultptr
;
3306 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
3307 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
3315 static PyObject
*_wrap_CalendarCtrl_GetHolidayColourBg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3316 PyObject
*resultobj
= NULL
;
3317 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3319 PyObject
* obj0
= 0 ;
3321 (char *) "self", NULL
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
;
3328 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3329 result
= ((wxCalendarCtrl
const *)arg1
)->GetHolidayColourBg();
3331 wxPyEndAllowThreads(__tstate
);
3332 if (PyErr_Occurred()) SWIG_fail
;
3335 wxColour
* resultptr
;
3336 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
3337 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
3345 static PyObject
*_wrap_CalendarCtrl_GetAttr(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3346 PyObject
*resultobj
= NULL
;
3347 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3349 wxCalendarDateAttr
*result
;
3350 PyObject
* obj0
= 0 ;
3351 PyObject
* obj1
= 0 ;
3353 (char *) "self",(char *) "day", NULL
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
;
3360 arg2
= static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1
));
3361 if (SWIG_arg_fail(2)) SWIG_fail
;
3364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3365 result
= (wxCalendarDateAttr
*)((wxCalendarCtrl
const *)arg1
)->GetAttr(arg2
);
3367 wxPyEndAllowThreads(__tstate
);
3368 if (PyErr_Occurred()) SWIG_fail
;
3370 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarDateAttr
, 0);
3377 static PyObject
*_wrap_CalendarCtrl_SetAttr(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3378 PyObject
*resultobj
= NULL
;
3379 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3381 wxCalendarDateAttr
*arg3
= (wxCalendarDateAttr
*) 0 ;
3382 PyObject
* obj0
= 0 ;
3383 PyObject
* obj1
= 0 ;
3384 PyObject
* obj2
= 0 ;
3386 (char *) "self",(char *) "day",(char *) "attr", NULL
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
;
3393 arg2
= static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1
));
3394 if (SWIG_arg_fail(2)) SWIG_fail
;
3396 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
3397 if (SWIG_arg_fail(3)) SWIG_fail
;
3399 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3400 (arg1
)->SetAttr(arg2
,arg3
);
3402 wxPyEndAllowThreads(__tstate
);
3403 if (PyErr_Occurred()) SWIG_fail
;
3405 Py_INCREF(Py_None
); resultobj
= Py_None
;
3412 static PyObject
*_wrap_CalendarCtrl_SetHoliday(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3413 PyObject
*resultobj
= NULL
;
3414 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3416 PyObject
* obj0
= 0 ;
3417 PyObject
* obj1
= 0 ;
3419 (char *) "self",(char *) "day", NULL
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
;
3426 arg2
= static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1
));
3427 if (SWIG_arg_fail(2)) SWIG_fail
;
3430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3431 (arg1
)->SetHoliday(arg2
);
3433 wxPyEndAllowThreads(__tstate
);
3434 if (PyErr_Occurred()) SWIG_fail
;
3436 Py_INCREF(Py_None
); resultobj
= Py_None
;
3443 static PyObject
*_wrap_CalendarCtrl_ResetAttr(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3444 PyObject
*resultobj
= NULL
;
3445 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3447 PyObject
* obj0
= 0 ;
3448 PyObject
* obj1
= 0 ;
3450 (char *) "self",(char *) "day", NULL
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
;
3457 arg2
= static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1
));
3458 if (SWIG_arg_fail(2)) SWIG_fail
;
3461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3462 (arg1
)->ResetAttr(arg2
);
3464 wxPyEndAllowThreads(__tstate
);
3465 if (PyErr_Occurred()) SWIG_fail
;
3467 Py_INCREF(Py_None
); resultobj
= Py_None
;
3474 static PyObject
*_wrap_CalendarCtrl_HitTest(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3475 PyObject
*resultobj
= NULL
;
3476 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3480 PyObject
* obj0
= 0 ;
3481 PyObject
* obj1
= 0 ;
3483 (char *) "self",(char *) "pos", NULL
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
;
3491 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
3494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3495 result
= (PyObject
*)wxCalendarCtrl_HitTest(arg1
,(wxPoint
const &)*arg2
);
3497 wxPyEndAllowThreads(__tstate
);
3498 if (PyErr_Occurred()) SWIG_fail
;
3507 static PyObject
*_wrap_CalendarCtrl_GetMonthControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3508 PyObject
*resultobj
= NULL
;
3509 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3511 PyObject
* obj0
= 0 ;
3513 (char *) "self", NULL
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
;
3520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3521 result
= (wxControl
*)((wxCalendarCtrl
const *)arg1
)->GetMonthControl();
3523 wxPyEndAllowThreads(__tstate
);
3524 if (PyErr_Occurred()) SWIG_fail
;
3527 resultobj
= wxPyMake_wxObject(result
, 0);
3535 static PyObject
*_wrap_CalendarCtrl_GetYearControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3536 PyObject
*resultobj
= NULL
;
3537 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3539 PyObject
* obj0
= 0 ;
3541 (char *) "self", NULL
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
;
3548 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3549 result
= (wxControl
*)((wxCalendarCtrl
const *)arg1
)->GetYearControl();
3551 wxPyEndAllowThreads(__tstate
);
3552 if (PyErr_Occurred()) SWIG_fail
;
3555 resultobj
= wxPyMake_wxObject(result
, 0);
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 ;
3569 (char *) "variant", NULL
3572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:CalendarCtrl_GetClassDefaultAttributes",kwnames
,&obj0
)) goto fail
;
3575 arg1
= static_cast<wxWindowVariant
>(SWIG_As_int(obj0
));
3576 if (SWIG_arg_fail(1)) SWIG_fail
;
3580 if (!wxPyCheckForApp()) SWIG_fail
;
3581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3582 result
= wxCalendarCtrl::GetClassDefaultAttributes(arg1
);
3584 wxPyEndAllowThreads(__tstate
);
3585 if (PyErr_Occurred()) SWIG_fail
;
3588 wxVisualAttributes
* resultptr
;
3589 resultptr
= new wxVisualAttributes(static_cast<wxVisualAttributes
& >(result
));
3590 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxVisualAttributes
, 1);
3598 static PyObject
* CalendarCtrl_swigregister(PyObject
*, PyObject
*args
) {
3600 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3601 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl
, obj
);
3603 return Py_BuildValue((char *)"");
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
}
3664 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3666 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
3667 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
3669 static void *_p_wxCalendarCtrlTo_p_wxObject(void *x
) {
3670 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxCalendarCtrl
*) x
));
3672 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
3673 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
3675 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
3676 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
3678 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
3679 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
3681 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
3682 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
3684 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
3685 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
3687 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
3688 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
3690 static void *_p_wxSizerTo_p_wxObject(void *x
) {
3691 return (void *)((wxObject
*) ((wxSizer
*) x
));
3693 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
3694 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
3696 static void *_p_wxFileHistoryTo_p_wxObject(void *x
) {
3697 return (void *)((wxObject
*) ((wxFileHistory
*) x
));
3699 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
3700 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
3702 static void *_p_wxEventTo_p_wxObject(void *x
) {
3703 return (void *)((wxObject
*) ((wxEvent
*) x
));
3705 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
3706 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
3708 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
3709 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
3711 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
3712 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
3714 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
3715 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
3717 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
3718 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
3720 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
3721 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
3723 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
3724 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
3726 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
3727 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
3729 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
3730 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
3732 static void *_p_wxControlTo_p_wxObject(void *x
) {
3733 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
3735 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
3736 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
3738 static void *_p_wxTimerEventTo_p_wxObject(void *x
) {
3739 return (void *)((wxObject
*) (wxEvent
*) ((wxTimerEvent
*) x
));
3741 static void *_p_wxCalendarEventTo_p_wxObject(void *x
) {
3742 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*)(wxDateEvent
*) ((wxCalendarEvent
*) x
));
3744 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
3745 return (void *)((wxObject
*) ((wxFSFile
*) x
));
3747 static void *_p_wxClipboardTo_p_wxObject(void *x
) {
3748 return (void *)((wxObject
*) ((wxClipboard
*) x
));
3750 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
3751 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
3753 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
3754 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
3756 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
3757 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
3759 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
3760 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
3762 static void *_p_wxToolTipTo_p_wxObject(void *x
) {
3763 return (void *)((wxObject
*) ((wxToolTip
*) x
));
3765 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
3766 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
3768 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
3769 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
3771 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
3772 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
3774 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
3775 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
3777 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
3778 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
3780 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
3781 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
3783 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
3784 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
3786 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
3787 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
3789 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
3790 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
3792 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
3793 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
3795 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
3796 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
3798 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
3799 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
3801 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
3802 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
3804 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
3805 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
3807 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
3808 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
3810 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
3811 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
3813 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
3814 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
3816 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
3817 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
3819 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
3820 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
3822 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
3823 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
3825 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
3826 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
3828 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
3829 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
3831 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
3832 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
3834 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
3835 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
3837 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
3838 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
3840 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
3841 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
3843 static void *_p_wxImageTo_p_wxObject(void *x
) {
3844 return (void *)((wxObject
*) ((wxImage
*) x
));
3846 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
3847 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
3849 static void *_p_wxSystemOptionsTo_p_wxObject(void *x
) {
3850 return (void *)((wxObject
*) ((wxSystemOptions
*) x
));
3852 static void *_p_wxJoystickEventTo_p_wxObject(void *x
) {
3853 return (void *)((wxObject
*) (wxEvent
*) ((wxJoystickEvent
*) x
));
3855 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
3856 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
3858 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
3859 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
3861 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
3862 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
3864 static void *_p_wxWindowTo_p_wxObject(void *x
) {
3865 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
3867 static void *_p_wxMenuTo_p_wxObject(void *x
) {
3868 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
3870 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
3871 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
3873 static void *_p_wxPyProcessTo_p_wxObject(void *x
) {
3874 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyProcess
*) x
));
3876 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
3877 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
3879 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
3880 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
3882 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
3883 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
3885 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
3886 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
3888 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
3889 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
3891 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
3892 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
3894 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
3895 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
3897 static void *_p_wxBusyInfoTo_p_wxObject(void *x
) {
3898 return (void *)((wxObject
*) ((wxBusyInfo
*) x
));
3900 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
3901 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
3903 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
3904 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
3906 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
3907 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
3909 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
3910 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
3912 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
3913 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
3915 static void *_p_wxProcessEventTo_p_wxObject(void *x
) {
3916 return (void *)((wxObject
*) (wxEvent
*) ((wxProcessEvent
*) x
));
3918 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
3919 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
3921 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
3922 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
3924 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
3925 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
3927 static void *_p_wxPyTimerTo_p_wxObject(void *x
) {
3928 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyTimer
*) x
));
3930 static void *_p_wxControlTo_p_wxWindow(void *x
) {
3931 return (void *)((wxWindow
*) ((wxControl
*) x
));
3933 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
3934 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
3936 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
3937 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
3939 static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x
) {
3940 return (void *)((wxWindow
*) (wxControl
*) ((wxCalendarCtrl
*) x
));
3942 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) {
3943 return (void *)((wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
3945 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) {
3946 return (void *)((wxCommandEvent
*) ((wxScrollEvent
*) x
));
3948 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) {
3949 return (void *)((wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
3951 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x
) {
3952 return (void *)((wxCommandEvent
*) ((wxDateEvent
*) x
));
3954 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) {
3955 return (void *)((wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
3957 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) {
3958 return (void *)((wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
3960 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) {
3961 return (void *)((wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
3963 static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x
) {
3964 return (void *)((wxCommandEvent
*) (wxDateEvent
*) ((wxCalendarEvent
*) x
));
3966 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) {
3967 return (void *)((wxCommandEvent
*) ((wxNotifyEvent
*) x
));
3969 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) {
3970 return (void *)((wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
3972 static void *_p_wxCalendarEventTo_p_wxDateEvent(void *x
) {
3973 return (void *)((wxDateEvent
*) ((wxCalendarEvent
*) x
));
3975 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
3976 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
3978 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
3979 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
3981 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
3982 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
3984 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
3985 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
3987 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x
) {
3988 return (void *)((wxEvtHandler
*) ((wxPyTimer
*) x
));
3990 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
3991 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
3993 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
3994 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
3996 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
3997 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
3999 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
4000 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
4002 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x
) {
4003 return (void *)((wxEvtHandler
*) ((wxPyProcess
*) x
));
4005 static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x
) {
4006 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxCalendarCtrl
*) x
));
4008 static void *_p_wxControlWithItemsTo_p_wxControl(void *x
) {
4009 return (void *)((wxControl
*) ((wxControlWithItems
*) x
));
4011 static void *_p_wxCalendarCtrlTo_p_wxControl(void *x
) {
4012 return (void *)((wxControl
*) ((wxCalendarCtrl
*) x
));
4014 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) {
4015 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4017 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) {
4018 return (void *)((wxEvent
*) ((wxMenuEvent
*) x
));
4020 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) {
4021 return (void *)((wxEvent
*) ((wxCloseEvent
*) x
));
4023 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) {
4024 return (void *)((wxEvent
*) ((wxMouseEvent
*) x
));
4026 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) {
4027 return (void *)((wxEvent
*) ((wxEraseEvent
*) x
));
4029 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) {
4030 return (void *)((wxEvent
*) ((wxSetCursorEvent
*) x
));
4032 static void *_p_wxTimerEventTo_p_wxEvent(void *x
) {
4033 return (void *)((wxEvent
*) ((wxTimerEvent
*) x
));
4035 static void *_p_wxCalendarEventTo_p_wxEvent(void *x
) {
4036 return (void *)((wxEvent
*) (wxCommandEvent
*)(wxDateEvent
*) ((wxCalendarEvent
*) x
));
4038 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) {
4039 return (void *)((wxEvent
*) ((wxInitDialogEvent
*) x
));
4041 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) {
4042 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxScrollEvent
*) x
));
4044 static void *_p_wxPyEventTo_p_wxEvent(void *x
) {
4045 return (void *)((wxEvent
*) ((wxPyEvent
*) x
));
4047 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) {
4048 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4050 static void *_p_wxJoystickEventTo_p_wxEvent(void *x
) {
4051 return (void *)((wxEvent
*) ((wxJoystickEvent
*) x
));
4053 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) {
4054 return (void *)((wxEvent
*) ((wxIdleEvent
*) x
));
4056 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) {
4057 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4059 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) {
4060 return (void *)((wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4062 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) {
4063 return (void *)((wxEvent
*) ((wxMaximizeEvent
*) x
));
4065 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) {
4066 return (void *)((wxEvent
*) ((wxIconizeEvent
*) x
));
4068 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) {
4069 return (void *)((wxEvent
*) ((wxActivateEvent
*) x
));
4071 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) {
4072 return (void *)((wxEvent
*) ((wxSizeEvent
*) x
));
4074 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) {
4075 return (void *)((wxEvent
*) ((wxMoveEvent
*) x
));
4077 static void *_p_wxDateEventTo_p_wxEvent(void *x
) {
4078 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxDateEvent
*) x
));
4080 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) {
4081 return (void *)((wxEvent
*) ((wxPaintEvent
*) x
));
4083 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) {
4084 return (void *)((wxEvent
*) ((wxNcPaintEvent
*) x
));
4086 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) {
4087 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4089 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) {
4090 return (void *)((wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4092 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) {
4093 return (void *)((wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4095 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) {
4096 return (void *)((wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4098 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) {
4099 return (void *)((wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4101 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) {
4102 return (void *)((wxEvent
*) ((wxDropFilesEvent
*) x
));
4104 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) {
4105 return (void *)((wxEvent
*) ((wxFocusEvent
*) x
));
4107 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) {
4108 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4110 static void *_p_wxProcessEventTo_p_wxEvent(void *x
) {
4111 return (void *)((wxEvent
*) ((wxProcessEvent
*) x
));
4113 static void *_p_wxShowEventTo_p_wxEvent(void *x
) {
4114 return (void *)((wxEvent
*) ((wxShowEvent
*) x
));
4116 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) {
4117 return (void *)((wxEvent
*) ((wxCommandEvent
*) x
));
4119 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) {
4120 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4122 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) {
4123 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4125 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) {
4126 return (void *)((wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4128 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) {
4129 return (void *)((wxEvent
*) ((wxKeyEvent
*) x
));
4131 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) {
4132 return (void *)((wxEvent
*) ((wxScrollWinEvent
*) x
));
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};
4240 static swig_type_info
*swig_type_initial
[] = {
4242 &_swigt__p_form_ops_t
,
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
,
4272 &_swigt__p_wxEvtHandler
,
4273 &_swigt__p_wxFSFile
,
4274 &_swigt__p_wxFileHistory
,
4275 &_swigt__p_wxFileSystem
,
4276 &_swigt__p_wxFlexGridSizer
,
4277 &_swigt__p_wxFocusEvent
,
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
,
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
,
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
,
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
,
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
,
4344 &_swigt__std__ptrdiff_t
,
4345 &_swigt__unsigned_int
,
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}};
4454 static swig_cast_info
*swig_cast_initial
[] = {
4456 _swigc__p_form_ops_t
,
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
,
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
,
4486 _swigc__p_wxEvtHandler
,
4488 _swigc__p_wxFileHistory
,
4489 _swigc__p_wxFileSystem
,
4490 _swigc__p_wxFlexGridSizer
,
4491 _swigc__p_wxFocusEvent
,
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
,
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
,
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
,
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
,
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
,
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
,
4554 _swigc__p_wxWindowCreateEvent
,
4555 _swigc__p_wxWindowDestroyEvent
,
4556 _swigc__p_wxXPMHandler
,
4558 _swigc__std__ptrdiff_t
,
4559 _swigc__unsigned_int
,
4563 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4565 static swig_const_info swig_const_table
[] = {
4566 {0, 0, 0, 0.0, 0, 0}};
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.
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.
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
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
4620 #define SWIGRUNTIME_DEBUG
4624 SWIG_InitializeModule(void *clientdata
) {
4626 swig_module_info
*module_head
;
4627 static int init_run
= 0;
4629 clientdata
= clientdata
;
4631 if (init_run
) return;
4634 /* Initialize the swig_module */
4635 swig_module
.type_initial
= swig_type_initial
;
4636 swig_module
.cast_initial
= swig_cast_initial
;
4638 /* Try and load any already created modules */
4639 module_head
= SWIG_GetModule(clientdata
);
4641 swig_module
.next
= module_head
->next
;
4642 module_head
->next
= &swig_module
;
4644 /* This is the first module loaded */
4645 swig_module
.next
= &swig_module
;
4646 SWIG_SetModule(clientdata
, &swig_module
);
4649 /* Now work on filling in swig_module.types */
4650 #ifdef SWIGRUNTIME_DEBUG
4651 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
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
;
4658 #ifdef SWIGRUNTIME_DEBUG
4659 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
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
);
4667 /* Overwrite clientdata field */
4668 #ifdef SWIGRUNTIME_DEBUG
4669 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
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
);
4678 type
= swig_module
.type_initial
[i
];
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 */
4686 #ifdef SWIGRUNTIME_DEBUG
4687 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
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
);
4696 if (type
== swig_module
.type_initial
[i
]) {
4697 #ifdef SWIGRUNTIME_DEBUG
4698 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
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
);
4708 if (!ocast
) ret
= 0;
4713 #ifdef SWIGRUNTIME_DEBUG
4714 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
4717 type
->cast
->prev
= cast
;
4718 cast
->next
= type
->cast
;
4724 /* Set entry in modules->types array equal to the type */
4725 swig_module
.types
[i
] = type
;
4727 swig_module
.types
[i
] = 0;
4729 #ifdef SWIGRUNTIME_DEBUG
4730 printf("**** SWIG_InitializeModule: Cast List ******\n");
4731 for (i
= 0; i
< swig_module
.size
; ++i
) {
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
);
4740 printf("---- Total casts: %d\n",j
);
4742 printf("**** SWIG_InitializeModule: Cast List ******\n");
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.
4752 SWIG_PropagateClientData(void) {
4754 swig_cast_info
*equiv
;
4755 static int init_run
= 0;
4757 if (init_run
) return;
4760 for (i
= 0; i
< swig_module
.size
; i
++) {
4761 if (swig_module
.types
[i
]->clientdata
) {
4762 equiv
= swig_module
.types
[i
]->cast
;
4764 if (!equiv
->converter
) {
4765 if (equiv
->type
&& !equiv
->type
->clientdata
)
4766 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
4768 equiv
= equiv
->next
;
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)
4793 /* -----------------------------------------------------------------------------
4794 * global variable support code.
4795 * ----------------------------------------------------------------------------- */
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
;
4804 typedef struct swig_varlinkobject
{
4806 swig_globalvar
*vars
;
4807 } swig_varlinkobject
;
4809 SWIGINTERN PyObject
*
4810 swig_varlink_repr(swig_varlinkobject
*v
) {
4812 return PyString_FromString("<Swig global variables>");
4816 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
4817 swig_globalvar
*var
;
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
,", ");
4828 SWIGINTERN PyObject
*
4829 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
4830 swig_globalvar
*var
= v
->vars
;
4832 if (strcmp(var
->name
,n
) == 0) {
4833 return (*var
->get_attr
)();
4837 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4842 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
4843 swig_globalvar
*var
= v
->vars
;
4845 if (strcmp(var
->name
,n
) == 0) {
4846 return (*var
->set_attr
)(p
);
4850 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
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)
4860 static int type_init
= 0;
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) */
4875 (reprfunc
) swig_varlink_repr
, /* tp_repr */
4876 0, /* tp_as_number */
4877 0, /* tp_as_sequence */
4878 0, /* tp_as_mapping */
4882 0, /* tp_getattro */
4883 0, /* tp_setattro */
4884 0, /* tp_as_buffer */
4886 varlink__doc__
, /* tp_doc */
4887 #if PY_VERSION_HEX >= 0x02000000
4888 0, /* tp_traverse */
4891 #if PY_VERSION_HEX >= 0x02010000
4892 0, /* tp_richcompare */
4893 0, /* tp_weaklistoffset */
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 */
4898 #if PY_VERSION_HEX >= 0x02030000
4902 0,0,0,0 /* tp_alloc -> tp_next */
4905 #if !defined(__cplusplus)
4910 return &varlink_type
;
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());
4920 return ((PyObject
*) result
);
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
));
4928 size_t size
= strlen(name
)+1;
4929 gv
->name
= (char *)malloc(size
);
4931 strncpy(gv
->name
,name
,size
);
4932 gv
->get_attr
= get_attr
;
4933 gv
->set_attr
= set_attr
;
4940 /* -----------------------------------------------------------------------------
4941 * constants/methods manipulation
4942 * ----------------------------------------------------------------------------- */
4944 /* Install Constants */
4946 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
4949 for (i
= 0; constants
[i
].type
; ++i
) {
4950 switch(constants
[i
].type
) {
4952 obj
= PyInt_FromLong(constants
[i
].lvalue
);
4955 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
4957 case SWIG_PY_STRING
:
4958 if (constants
[i
].pvalue
) {
4959 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
4965 case SWIG_PY_POINTER
:
4966 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
4968 case SWIG_PY_BINARY
:
4969 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
4976 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
4982 /* -----------------------------------------------------------------------------*/
4983 /* Fix SwigMethods to carry the callback ptrs when needed */
4984 /* -----------------------------------------------------------------------------*/
4987 SWIG_Python_FixMethods(PyMethodDef
*methods
,
4988 swig_const_info
*const_table
,
4989 swig_type_info
**types
,
4990 swig_type_info
**types_initial
) {
4992 for (i
= 0; methods
[i
].ml_name
; ++i
) {
4993 char *c
= methods
[i
].ml_doc
;
4994 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
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
]);
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);
5013 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: 0;
5015 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
5017 strncpy(buff
, "swig_ptr: ", 10);
5019 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
5020 methods
[i
].ml_doc
= ndoc
;
5028 /* -----------------------------------------------------------------------------*
5029 * Initialize type list
5030 * -----------------------------------------------------------------------------*/
5036 /* -----------------------------------------------------------------------------*
5037 * Partial Init method
5038 * -----------------------------------------------------------------------------*/
5043 SWIGEXPORT
void SWIG_init(void) {
5044 static PyObject
*SWIG_globals
= 0;
5046 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5048 /* Fix SwigMethods to carry the callback ptrs when needed */
5049 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_type_initial
);
5051 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5052 d
= PyModule_GetDict(m
);
5054 SWIG_InitializeModule(0);
5055 SWIG_InstallConstants(d
,swig_const_table
);
5058 PyDict_SetItemString(d
,"CAL_SUNDAY_FIRST", SWIG_From_int(static_cast<int >(wxCAL_SUNDAY_FIRST
)));
5061 PyDict_SetItemString(d
,"CAL_MONDAY_FIRST", SWIG_From_int(static_cast<int >(wxCAL_MONDAY_FIRST
)));
5064 PyDict_SetItemString(d
,"CAL_SHOW_HOLIDAYS", SWIG_From_int(static_cast<int >(wxCAL_SHOW_HOLIDAYS
)));
5067 PyDict_SetItemString(d
,"CAL_NO_YEAR_CHANGE", SWIG_From_int(static_cast<int >(wxCAL_NO_YEAR_CHANGE
)));
5070 PyDict_SetItemString(d
,"CAL_NO_MONTH_CHANGE", SWIG_From_int(static_cast<int >(wxCAL_NO_MONTH_CHANGE
)));
5073 PyDict_SetItemString(d
,"CAL_SEQUENTIAL_MONTH_SELECTION", SWIG_From_int(static_cast<int >(wxCAL_SEQUENTIAL_MONTH_SELECTION
)));
5076 PyDict_SetItemString(d
,"CAL_SHOW_SURROUNDING_WEEKS", SWIG_From_int(static_cast<int >(wxCAL_SHOW_SURROUNDING_WEEKS
)));
5079 PyDict_SetItemString(d
,"CAL_HITTEST_NOWHERE", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_NOWHERE
)));
5082 PyDict_SetItemString(d
,"CAL_HITTEST_HEADER", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_HEADER
)));
5085 PyDict_SetItemString(d
,"CAL_HITTEST_DAY", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_DAY
)));
5088 PyDict_SetItemString(d
,"CAL_HITTEST_INCMONTH", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_INCMONTH
)));
5091 PyDict_SetItemString(d
,"CAL_HITTEST_DECMONTH", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_DECMONTH
)));
5094 PyDict_SetItemString(d
,"CAL_HITTEST_SURROUNDING_WEEK", SWIG_From_int(static_cast<int >(wxCAL_HITTEST_SURROUNDING_WEEK
)));
5097 PyDict_SetItemString(d
,"CAL_BORDER_NONE", SWIG_From_int(static_cast<int >(wxCAL_BORDER_NONE
)));
5100 PyDict_SetItemString(d
,"CAL_BORDER_SQUARE", SWIG_From_int(static_cast<int >(wxCAL_BORDER_SQUARE
)));
5103 PyDict_SetItemString(d
,"CAL_BORDER_ROUND", SWIG_From_int(static_cast<int >(wxCAL_BORDER_ROUND
)));
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
);