]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/calendar_wrap.cpp
Script updates
[wxWidgets.git] / wxPython / src / gtk / calendar_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
a41e16b6 3 * Version 1.3.22
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
c9c7117a
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
d14a1e28
RD
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
cc6dd355
RD
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
d14a1e28 82#else
cc6dd355
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
cc6dd355 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
cc6dd355 90# define SWIGRUNTIME(a) static a
d14a1e28
RD
91#endif
92
d14a1e28
RD
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
cc6dd355 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
cc6dd355 104 void *clientdata;
d14a1e28
RD
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
cc6dd355
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
124#endif
125
cc6dd355 126
d14a1e28
RD
127/***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
d14a1e28
RD
137#include "Python.h"
138
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
d14a1e28
RD
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
a41e16b6 174
d14a1e28
RD
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
994141e6 187typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 188
cc6dd355
RD
189SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 197
994141e6
RD
198/* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201/* basic types */
202/*
203 utilities
204*/
205SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
d14a1e28
RD
219
220
221/* Contract support */
222
9d1d5697 223#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 224
d14a1e28
RD
225#ifdef __cplusplus
226}
227#endif
228
229
230
231/* -------- TYPES TABLE (BEGIN) -------- */
232
98e665d3
RD
233#define SWIGTYPE_p_wxControl swig_types[0]
234#define SWIGTYPE_p_wxDateTime swig_types[1]
235#define SWIGTYPE_p_wxWindow swig_types[2]
236#define SWIGTYPE_p_wxFont swig_types[3]
237#define SWIGTYPE_p_wxEvent swig_types[4]
238#define SWIGTYPE_p_wxObject swig_types[5]
239#define SWIGTYPE_p_wxEvtHandler swig_types[6]
994141e6 240#define SWIGTYPE_p_char swig_types[7]
98e665d3
RD
241#define SWIGTYPE_p_wxCalendarDateAttr swig_types[8]
242#define SWIGTYPE_p_wxColour swig_types[9]
243#define SWIGTYPE_p_wxCalendarEvent swig_types[10]
244#define SWIGTYPE_p_wxCommandEvent swig_types[11]
4d5c3d91 245#define SWIGTYPE_p_wxCalendarCtrl swig_types[12]
98e665d3 246static swig_type_info *swig_types[14];
d14a1e28
RD
247
248/* -------- TYPES TABLE (END) -------- */
249
250
251/*-----------------------------------------------
252 @(target):= _calendar.so
253 ------------------------------------------------*/
254#define SWIG_init init_calendar
255
256#define SWIG_name "_calendar"
257
994141e6
RD
258#include <limits.h>
259#include <float.h>
260#include <string.h>
261
262#ifndef SWIGSTATIC
263#ifdef __cplusplus
264#define SWIGSTATIC(a) static inline a
265#else
266#define SWIGSTATIC(a) static a
267#endif
268#endif
269
270#ifndef numeric_cast
271#ifdef __cplusplus
272#ifdef HAVE_NUMERIC_CAST
273#define numeric_cast(type,a) numeric_cast<type>(a)
274#else
275#define numeric_cast(type,a) static_cast<type>(a)
276#endif
277#else
278#define numeric_cast(type,a) (type)(a)
279#endif
280#endif
281
282
283
284#define SWIG_PyObj_FromSignedChar PyInt_FromLong
285#define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
286#define SWIG_PyObj_FromShort PyInt_FromLong
287#define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
288#define SWIG_PyObj_FromInt PyInt_FromLong
289#define SWIG_PyObj_FromLong PyInt_FromLong
290#define SWIG_PyObj_FromFloat PyFloat_FromDouble
291#define SWIG_PyObj_FromDouble PyFloat_FromDouble
292#define SWIG_PyObj_FromFloat PyFloat_FromDouble
293#define SWIG_PyObj_FromDouble PyFloat_FromDouble
294
295
d14a1e28
RD
296#include "wx/wxPython/wxPython.h"
297#include "wx/wxPython/pyclasses.h"
298
299#include <wx/calctrl.h>
300
994141e6
RD
301
302SWIGSTATIC(int)
303SWIG_PyObj_AsInt(PyObject *obj)
304{
305 return numeric_cast(int,
306 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
307}
308
309
310SWIGSTATIC(bool)
311SWIG_PyObj_AsBool(PyObject *obj)
312{
313 return PyObject_IsTrue(obj) ? true : false;
314}
315
b2dc1044 316 static const wxString wxPyCalendarNameStr(wxCalendarNameStr);
994141e6
RD
317
318SWIGSTATIC(long)
319SWIG_PyObj_AsLong(PyObject * obj)
320{
321 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
322}
323
98e665d3
RD
324PyObject *wxCalendarCtrl_HitTest(wxCalendarCtrl *self,wxPoint const &pos){
325 wxDateTime* date = new wxDateTime;
326 wxDateTime::WeekDay wd;
327 wxCalendarHitTestResult result = self->HitTest(pos, date, &wd);
328 wxPyBeginBlockThreads();
329 PyObject* tup = PyTuple_New(3);
330 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(result));
331 PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(date, wxT("wxDateTime"), 1));
332 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(wd));
333 wxPyEndBlockThreads();
334 return tup;
335 }
d14a1e28
RD
336#ifdef __cplusplus
337extern "C" {
338#endif
339static PyObject *_wrap_new_CalendarDateAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
340 PyObject *resultobj;
98e665d3
RD
341 wxColour const &arg1_defvalue = wxNullColour ;
342 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
d14a1e28
RD
343 wxColour const &arg2_defvalue = wxNullColour ;
344 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
345 wxColour const &arg3_defvalue = wxNullColour ;
346 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
347 wxFont const &arg4_defvalue = wxNullFont ;
348 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
349 int arg5 = (int) wxCAL_BORDER_NONE ;
350 wxCalendarDateAttr *result;
351 wxColour temp1 ;
352 wxColour temp2 ;
353 wxColour temp3 ;
354 PyObject * obj0 = 0 ;
355 PyObject * obj1 = 0 ;
356 PyObject * obj2 = 0 ;
357 PyObject * obj3 = 0 ;
994141e6 358 PyObject * obj4 = 0 ;
d14a1e28
RD
359 char *kwnames[] = {
360 (char *) "colText",(char *) "colBack",(char *) "colBorder",(char *) "font",(char *) "border", NULL
361 };
362
98e665d3
RD
363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_CalendarDateAttr",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
364 if (obj0) {
365 {
366 arg1 = &temp1;
367 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
368 }
d14a1e28
RD
369 }
370 if (obj1) {
371 {
372 arg2 = &temp2;
373 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
374 }
375 }
376 if (obj2) {
377 {
378 arg3 = &temp3;
379 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
380 }
381 }
382 if (obj3) {
383 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
384 if (arg4 == NULL) {
385 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
386 }
387 }
994141e6
RD
388 if (obj4) {
389 {
390 arg5 = (wxCalendarDateBorder) SWIG_PyObj_AsInt(obj4);
391 if (PyErr_Occurred()) SWIG_fail;
392 }
393 }
d14a1e28
RD
394 {
395 PyThreadState* __tstate = wxPyBeginAllowThreads();
396 result = (wxCalendarDateAttr *)new wxCalendarDateAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxColour const &)*arg3,(wxFont const &)*arg4,(wxCalendarDateBorder )arg5);
397
398 wxPyEndAllowThreads(__tstate);
399 if (PyErr_Occurred()) SWIG_fail;
400 }
401 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarDateAttr, 1);
402 return resultobj;
403 fail:
404 return NULL;
405}
406
407
d14a1e28
RD
408static PyObject *_wrap_CalendarDateAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
409 PyObject *resultobj;
410 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
411 wxColour *arg2 = 0 ;
412 wxColour temp2 ;
413 PyObject * obj0 = 0 ;
414 PyObject * obj1 = 0 ;
415 char *kwnames[] = {
416 (char *) "self",(char *) "colText", NULL
417 };
418
419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
421 {
422 arg2 = &temp2;
423 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
424 }
425 {
426 PyThreadState* __tstate = wxPyBeginAllowThreads();
427 (arg1)->SetTextColour((wxColour const &)*arg2);
428
429 wxPyEndAllowThreads(__tstate);
430 if (PyErr_Occurred()) SWIG_fail;
431 }
432 Py_INCREF(Py_None); resultobj = Py_None;
433 return resultobj;
434 fail:
435 return NULL;
436}
437
438
439static PyObject *_wrap_CalendarDateAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
440 PyObject *resultobj;
441 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
442 wxColour *arg2 = 0 ;
443 wxColour temp2 ;
444 PyObject * obj0 = 0 ;
445 PyObject * obj1 = 0 ;
446 char *kwnames[] = {
447 (char *) "self",(char *) "colBack", NULL
448 };
449
450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
452 {
453 arg2 = &temp2;
454 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
455 }
456 {
457 PyThreadState* __tstate = wxPyBeginAllowThreads();
458 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
459
460 wxPyEndAllowThreads(__tstate);
461 if (PyErr_Occurred()) SWIG_fail;
462 }
463 Py_INCREF(Py_None); resultobj = Py_None;
464 return resultobj;
465 fail:
466 return NULL;
467}
468
469
470static PyObject *_wrap_CalendarDateAttr_SetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
471 PyObject *resultobj;
472 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
473 wxColour *arg2 = 0 ;
474 wxColour temp2 ;
475 PyObject * obj0 = 0 ;
476 PyObject * obj1 = 0 ;
477 char *kwnames[] = {
478 (char *) "self",(char *) "col", NULL
479 };
480
481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBorderColour",kwnames,&obj0,&obj1)) goto fail;
482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
483 {
484 arg2 = &temp2;
485 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
486 }
487 {
488 PyThreadState* __tstate = wxPyBeginAllowThreads();
489 (arg1)->SetBorderColour((wxColour const &)*arg2);
490
491 wxPyEndAllowThreads(__tstate);
492 if (PyErr_Occurred()) SWIG_fail;
493 }
494 Py_INCREF(Py_None); resultobj = Py_None;
495 return resultobj;
496 fail:
497 return NULL;
498}
499
500
501static PyObject *_wrap_CalendarDateAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
502 PyObject *resultobj;
503 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
504 wxFont *arg2 = 0 ;
505 PyObject * obj0 = 0 ;
506 PyObject * obj1 = 0 ;
507 char *kwnames[] = {
508 (char *) "self",(char *) "font", NULL
509 };
510
511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
513 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
514 if (arg2 == NULL) {
515 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
516 }
517 {
518 PyThreadState* __tstate = wxPyBeginAllowThreads();
519 (arg1)->SetFont((wxFont const &)*arg2);
520
521 wxPyEndAllowThreads(__tstate);
522 if (PyErr_Occurred()) SWIG_fail;
523 }
524 Py_INCREF(Py_None); resultobj = Py_None;
525 return resultobj;
526 fail:
527 return NULL;
528}
529
530
531static PyObject *_wrap_CalendarDateAttr_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
532 PyObject *resultobj;
533 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
534 int arg2 ;
535 PyObject * obj0 = 0 ;
994141e6 536 PyObject * obj1 = 0 ;
d14a1e28
RD
537 char *kwnames[] = {
538 (char *) "self",(char *) "border", NULL
539 };
540
994141e6 541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBorder",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
994141e6
RD
543 {
544 arg2 = (wxCalendarDateBorder) SWIG_PyObj_AsInt(obj1);
545 if (PyErr_Occurred()) SWIG_fail;
546 }
d14a1e28
RD
547 {
548 PyThreadState* __tstate = wxPyBeginAllowThreads();
549 (arg1)->SetBorder((wxCalendarDateBorder )arg2);
550
551 wxPyEndAllowThreads(__tstate);
552 if (PyErr_Occurred()) SWIG_fail;
553 }
554 Py_INCREF(Py_None); resultobj = Py_None;
555 return resultobj;
556 fail:
557 return NULL;
558}
559
560
561static PyObject *_wrap_CalendarDateAttr_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
562 PyObject *resultobj;
563 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
564 bool arg2 ;
565 PyObject * obj0 = 0 ;
566 PyObject * obj1 = 0 ;
567 char *kwnames[] = {
568 (char *) "self",(char *) "holiday", NULL
569 };
570
571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetHoliday",kwnames,&obj0,&obj1)) goto fail;
572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
a41e16b6 573 {
994141e6 574 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
a41e16b6
RD
575 if (PyErr_Occurred()) SWIG_fail;
576 }
d14a1e28
RD
577 {
578 PyThreadState* __tstate = wxPyBeginAllowThreads();
579 (arg1)->SetHoliday(arg2);
580
581 wxPyEndAllowThreads(__tstate);
582 if (PyErr_Occurred()) SWIG_fail;
583 }
584 Py_INCREF(Py_None); resultobj = Py_None;
585 return resultobj;
586 fail:
587 return NULL;
588}
589
590
591static PyObject *_wrap_CalendarDateAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
592 PyObject *resultobj;
593 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
594 bool result;
595 PyObject * obj0 = 0 ;
596 char *kwnames[] = {
597 (char *) "self", NULL
598 };
599
600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasTextColour",kwnames,&obj0)) goto fail;
601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
602 {
603 PyThreadState* __tstate = wxPyBeginAllowThreads();
604 result = (bool)((wxCalendarDateAttr const *)arg1)->HasTextColour();
605
606 wxPyEndAllowThreads(__tstate);
607 if (PyErr_Occurred()) SWIG_fail;
608 }
4d5c3d91 609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
610 return resultobj;
611 fail:
612 return NULL;
613}
614
615
616static PyObject *_wrap_CalendarDateAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
617 PyObject *resultobj;
618 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
619 bool result;
620 PyObject * obj0 = 0 ;
621 char *kwnames[] = {
622 (char *) "self", NULL
623 };
624
625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
627 {
628 PyThreadState* __tstate = wxPyBeginAllowThreads();
629 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBackgroundColour();
630
631 wxPyEndAllowThreads(__tstate);
632 if (PyErr_Occurred()) SWIG_fail;
633 }
4d5c3d91 634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
635 return resultobj;
636 fail:
637 return NULL;
638}
639
640
641static PyObject *_wrap_CalendarDateAttr_HasBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
642 PyObject *resultobj;
643 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
644 bool result;
645 PyObject * obj0 = 0 ;
646 char *kwnames[] = {
647 (char *) "self", NULL
648 };
649
650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorderColour",kwnames,&obj0)) goto fail;
651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
652 {
653 PyThreadState* __tstate = wxPyBeginAllowThreads();
654 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorderColour();
655
656 wxPyEndAllowThreads(__tstate);
657 if (PyErr_Occurred()) SWIG_fail;
658 }
4d5c3d91 659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
660 return resultobj;
661 fail:
662 return NULL;
663}
664
665
666static PyObject *_wrap_CalendarDateAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
667 PyObject *resultobj;
668 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
669 bool result;
670 PyObject * obj0 = 0 ;
671 char *kwnames[] = {
672 (char *) "self", NULL
673 };
674
675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasFont",kwnames,&obj0)) goto fail;
676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
677 {
678 PyThreadState* __tstate = wxPyBeginAllowThreads();
679 result = (bool)((wxCalendarDateAttr const *)arg1)->HasFont();
680
681 wxPyEndAllowThreads(__tstate);
682 if (PyErr_Occurred()) SWIG_fail;
683 }
4d5c3d91 684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
685 return resultobj;
686 fail:
687 return NULL;
688}
689
690
691static PyObject *_wrap_CalendarDateAttr_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
692 PyObject *resultobj;
693 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
694 bool result;
695 PyObject * obj0 = 0 ;
696 char *kwnames[] = {
697 (char *) "self", NULL
698 };
699
700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorder",kwnames,&obj0)) goto fail;
701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
702 {
703 PyThreadState* __tstate = wxPyBeginAllowThreads();
704 result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorder();
705
706 wxPyEndAllowThreads(__tstate);
707 if (PyErr_Occurred()) SWIG_fail;
708 }
4d5c3d91 709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
710 return resultobj;
711 fail:
712 return NULL;
713}
714
715
716static PyObject *_wrap_CalendarDateAttr_IsHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
717 PyObject *resultobj;
718 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
719 bool result;
720 PyObject * obj0 = 0 ;
721 char *kwnames[] = {
722 (char *) "self", NULL
723 };
724
725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_IsHoliday",kwnames,&obj0)) goto fail;
726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
727 {
728 PyThreadState* __tstate = wxPyBeginAllowThreads();
729 result = (bool)((wxCalendarDateAttr const *)arg1)->IsHoliday();
730
731 wxPyEndAllowThreads(__tstate);
732 if (PyErr_Occurred()) SWIG_fail;
733 }
4d5c3d91 734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
735 return resultobj;
736 fail:
737 return NULL;
738}
739
740
741static PyObject *_wrap_CalendarDateAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
742 PyObject *resultobj;
743 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
744 wxColour result;
745 PyObject * obj0 = 0 ;
746 char *kwnames[] = {
747 (char *) "self", NULL
748 };
749
750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetTextColour",kwnames,&obj0)) goto fail;
751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
752 {
753 PyThreadState* __tstate = wxPyBeginAllowThreads();
754 result = ((wxCalendarDateAttr const *)arg1)->GetTextColour();
755
756 wxPyEndAllowThreads(__tstate);
757 if (PyErr_Occurred()) SWIG_fail;
758 }
759 {
760 wxColour * resultptr;
761 resultptr = new wxColour((wxColour &) result);
762 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
763 }
764 return resultobj;
765 fail:
766 return NULL;
767}
768
769
770static PyObject *_wrap_CalendarDateAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
771 PyObject *resultobj;
772 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
773 wxColour result;
774 PyObject * obj0 = 0 ;
775 char *kwnames[] = {
776 (char *) "self", NULL
777 };
778
779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
781 {
782 PyThreadState* __tstate = wxPyBeginAllowThreads();
783 result = ((wxCalendarDateAttr const *)arg1)->GetBackgroundColour();
784
785 wxPyEndAllowThreads(__tstate);
786 if (PyErr_Occurred()) SWIG_fail;
787 }
788 {
789 wxColour * resultptr;
790 resultptr = new wxColour((wxColour &) result);
791 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
792 }
793 return resultobj;
794 fail:
795 return NULL;
796}
797
798
799static PyObject *_wrap_CalendarDateAttr_GetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) {
800 PyObject *resultobj;
801 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
802 wxColour result;
803 PyObject * obj0 = 0 ;
804 char *kwnames[] = {
805 (char *) "self", NULL
806 };
807
808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorderColour",kwnames,&obj0)) goto fail;
809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
810 {
811 PyThreadState* __tstate = wxPyBeginAllowThreads();
812 result = ((wxCalendarDateAttr const *)arg1)->GetBorderColour();
813
814 wxPyEndAllowThreads(__tstate);
815 if (PyErr_Occurred()) SWIG_fail;
816 }
817 {
818 wxColour * resultptr;
819 resultptr = new wxColour((wxColour &) result);
820 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
821 }
822 return resultobj;
823 fail:
824 return NULL;
825}
826
827
828static PyObject *_wrap_CalendarDateAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
829 PyObject *resultobj;
830 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
831 wxFont result;
832 PyObject * obj0 = 0 ;
833 char *kwnames[] = {
834 (char *) "self", NULL
835 };
836
837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetFont",kwnames,&obj0)) goto fail;
838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
839 {
840 PyThreadState* __tstate = wxPyBeginAllowThreads();
841 result = ((wxCalendarDateAttr const *)arg1)->GetFont();
842
843 wxPyEndAllowThreads(__tstate);
844 if (PyErr_Occurred()) SWIG_fail;
845 }
846 {
847 wxFont * resultptr;
848 resultptr = new wxFont((wxFont &) result);
849 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
850 }
851 return resultobj;
852 fail:
853 return NULL;
854}
855
856
857static PyObject *_wrap_CalendarDateAttr_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
858 PyObject *resultobj;
859 wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ;
860 int result;
861 PyObject * obj0 = 0 ;
862 char *kwnames[] = {
863 (char *) "self", NULL
864 };
865
866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorder",kwnames,&obj0)) goto fail;
867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
868 {
869 PyThreadState* __tstate = wxPyBeginAllowThreads();
870 result = (int)((wxCalendarDateAttr const *)arg1)->GetBorder();
871
872 wxPyEndAllowThreads(__tstate);
873 if (PyErr_Occurred()) SWIG_fail;
874 }
994141e6 875 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
876 return resultobj;
877 fail:
878 return NULL;
879}
880
881
882static PyObject * CalendarDateAttr_swigregister(PyObject *self, PyObject *args) {
883 PyObject *obj;
884 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
885 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarDateAttr, obj);
886 Py_INCREF(obj);
887 return Py_BuildValue((char *)"");
888}
889static PyObject *_wrap_new_CalendarEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
890 PyObject *resultobj;
891 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
892 wxEventType arg2 ;
893 wxCalendarEvent *result;
894 PyObject * obj0 = 0 ;
994141e6 895 PyObject * obj1 = 0 ;
d14a1e28
RD
896 char *kwnames[] = {
897 (char *) "cal",(char *) "type", NULL
898 };
899
994141e6 900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_CalendarEvent",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
994141e6
RD
902 {
903 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
904 if (PyErr_Occurred()) SWIG_fail;
905 }
d14a1e28
RD
906 {
907 PyThreadState* __tstate = wxPyBeginAllowThreads();
908 result = (wxCalendarEvent *)new wxCalendarEvent(arg1,arg2);
909
910 wxPyEndAllowThreads(__tstate);
911 if (PyErr_Occurred()) SWIG_fail;
912 }
913 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarEvent, 1);
914 return resultobj;
915 fail:
916 return NULL;
917}
918
919
920static PyObject *_wrap_CalendarEvent_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
921 PyObject *resultobj;
922 wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
58203fa6 923 wxDateTime result;
d14a1e28
RD
924 PyObject * obj0 = 0 ;
925 char *kwnames[] = {
926 (char *) "self", NULL
927 };
928
929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetDate",kwnames,&obj0)) goto fail;
930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
931 {
932 PyThreadState* __tstate = wxPyBeginAllowThreads();
58203fa6 933 result = ((wxCalendarEvent const *)arg1)->GetDate();
d14a1e28
RD
934
935 wxPyEndAllowThreads(__tstate);
936 if (PyErr_Occurred()) SWIG_fail;
937 }
58203fa6
RD
938 {
939 wxDateTime * resultptr;
940 resultptr = new wxDateTime((wxDateTime &) result);
941 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
942 }
d14a1e28
RD
943 return resultobj;
944 fail:
945 return NULL;
946}
947
948
c9c7117a
RD
949static PyObject *_wrap_CalendarEvent_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
950 PyObject *resultobj;
951 wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
952 wxDateTime *arg2 = 0 ;
953 PyObject * obj0 = 0 ;
954 PyObject * obj1 = 0 ;
955 char *kwnames[] = {
956 (char *) "self",(char *) "date", NULL
957 };
958
959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarEvent_SetDate",kwnames,&obj0,&obj1)) goto fail;
960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
961 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
962 if (arg2 == NULL) {
963 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
964 }
965 {
966 PyThreadState* __tstate = wxPyBeginAllowThreads();
967 (arg1)->SetDate((wxDateTime const &)*arg2);
968
969 wxPyEndAllowThreads(__tstate);
970 if (PyErr_Occurred()) SWIG_fail;
971 }
972 Py_INCREF(Py_None); resultobj = Py_None;
973 return resultobj;
974 fail:
975 return NULL;
976}
977
978
979static PyObject *_wrap_CalendarEvent_SetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
980 PyObject *resultobj;
981 wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
982 int arg2 ;
983 PyObject * obj0 = 0 ;
994141e6 984 PyObject * obj1 = 0 ;
c9c7117a
RD
985 char *kwnames[] = {
986 (char *) "self",(char *) "wd", NULL
987 };
988
994141e6 989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarEvent_SetWeekDay",kwnames,&obj0,&obj1)) goto fail;
c9c7117a 990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
994141e6
RD
991 {
992 arg2 = (wxDateTime::WeekDay const) SWIG_PyObj_AsInt(obj1);
993 if (PyErr_Occurred()) SWIG_fail;
994 }
c9c7117a
RD
995 {
996 PyThreadState* __tstate = wxPyBeginAllowThreads();
997 (arg1)->SetWeekDay((wxDateTime::WeekDay )arg2);
998
999 wxPyEndAllowThreads(__tstate);
1000 if (PyErr_Occurred()) SWIG_fail;
1001 }
1002 Py_INCREF(Py_None); resultobj = Py_None;
1003 return resultobj;
1004 fail:
1005 return NULL;
1006}
1007
1008
d14a1e28
RD
1009static PyObject *_wrap_CalendarEvent_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
1010 PyObject *resultobj;
1011 wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ;
1012 int result;
1013 PyObject * obj0 = 0 ;
1014 char *kwnames[] = {
1015 (char *) "self", NULL
1016 };
1017
1018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetWeekDay",kwnames,&obj0)) goto fail;
1019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1020 {
1021 PyThreadState* __tstate = wxPyBeginAllowThreads();
1022 result = (int)((wxCalendarEvent const *)arg1)->GetWeekDay();
1023
1024 wxPyEndAllowThreads(__tstate);
1025 if (PyErr_Occurred()) SWIG_fail;
1026 }
994141e6 1027 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
1028 return resultobj;
1029 fail:
1030 return NULL;
1031}
1032
1033
1034static PyObject * CalendarEvent_swigregister(PyObject *self, PyObject *args) {
1035 PyObject *obj;
1036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1037 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent, obj);
1038 Py_INCREF(obj);
1039 return Py_BuildValue((char *)"");
1040}
b2dc1044
RD
1041static int _wrap_CalendarNameStr_set(PyObject *_val) {
1042 PyErr_SetString(PyExc_TypeError,"Variable CalendarNameStr is read-only.");
1043 return 1;
1044}
1045
1046
1047static PyObject *_wrap_CalendarNameStr_get() {
1048 PyObject *pyobj;
1049
1050 {
1051#if wxUSE_UNICODE
1052 pyobj = PyUnicode_FromWideChar((&wxPyCalendarNameStr)->c_str(), (&wxPyCalendarNameStr)->Len());
1053#else
1054 pyobj = PyString_FromStringAndSize((&wxPyCalendarNameStr)->c_str(), (&wxPyCalendarNameStr)->Len());
1055#endif
1056 }
1057 return pyobj;
1058}
1059
1060
d14a1e28
RD
1061static PyObject *_wrap_new_CalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
1062 PyObject *resultobj;
1063 wxWindow *arg1 = (wxWindow *) 0 ;
e811c8ce 1064 int arg2 ;
d14a1e28
RD
1065 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
1066 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
1067 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1068 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1069 wxSize const &arg5_defvalue = wxDefaultSize ;
1070 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1071 long arg6 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
1072 wxString const &arg7_defvalue = wxPyCalendarNameStr ;
1073 wxString *arg7 = (wxString *) &arg7_defvalue ;
1074 wxCalendarCtrl *result;
1075 wxPoint temp4 ;
1076 wxSize temp5 ;
e811c8ce 1077 bool temp7 = False ;
d14a1e28 1078 PyObject * obj0 = 0 ;
994141e6 1079 PyObject * obj1 = 0 ;
d14a1e28
RD
1080 PyObject * obj2 = 0 ;
1081 PyObject * obj3 = 0 ;
1082 PyObject * obj4 = 0 ;
994141e6 1083 PyObject * obj5 = 0 ;
d14a1e28
RD
1084 PyObject * obj6 = 0 ;
1085 char *kwnames[] = {
1086 (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
1087 };
1088
994141e6 1089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_CalendarCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d14a1e28 1090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
994141e6
RD
1091 {
1092 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1093 if (PyErr_Occurred()) SWIG_fail;
1094 }
d14a1e28
RD
1095 if (obj2) {
1096 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1097 if (arg3 == NULL) {
1098 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1099 }
1100 }
1101 if (obj3) {
1102 {
1103 arg4 = &temp4;
1104 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1105 }
1106 }
1107 if (obj4) {
1108 {
1109 arg5 = &temp5;
1110 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1111 }
1112 }
994141e6
RD
1113 if (obj5) {
1114 {
1115 arg6 = (long) SWIG_PyObj_AsLong(obj5);
1116 if (PyErr_Occurred()) SWIG_fail;
1117 }
1118 }
d14a1e28
RD
1119 if (obj6) {
1120 {
1121 arg7 = wxString_in_helper(obj6);
1122 if (arg7 == NULL) SWIG_fail;
e811c8ce 1123 temp7 = True;
d14a1e28
RD
1124 }
1125 }
1126 {
1127 PyThreadState* __tstate = wxPyBeginAllowThreads();
1128 result = (wxCalendarCtrl *)new wxCalendarCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
1129
1130 wxPyEndAllowThreads(__tstate);
1131 if (PyErr_Occurred()) SWIG_fail;
1132 }
1133 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarCtrl, 1);
1134 {
1135 if (temp7)
1136 delete arg7;
1137 }
1138 return resultobj;
1139 fail:
1140 {
1141 if (temp7)
1142 delete arg7;
1143 }
1144 return NULL;
1145}
1146
1147
1148static PyObject *_wrap_new_PreCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
1149 PyObject *resultobj;
1150 wxCalendarCtrl *result;
1151 char *kwnames[] = {
1152 NULL
1153 };
1154
1155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCalendarCtrl",kwnames)) goto fail;
1156 {
1157 PyThreadState* __tstate = wxPyBeginAllowThreads();
1158 result = (wxCalendarCtrl *)new wxCalendarCtrl();
1159
1160 wxPyEndAllowThreads(__tstate);
1161 if (PyErr_Occurred()) SWIG_fail;
1162 }
1163 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarCtrl, 1);
1164 return resultobj;
1165 fail:
1166 return NULL;
1167}
1168
1169
1170static PyObject *_wrap_CalendarCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1171 PyObject *resultobj;
1172 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1173 wxWindow *arg2 = (wxWindow *) 0 ;
e811c8ce 1174 int arg3 ;
d14a1e28
RD
1175 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
1176 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
1177 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1178 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1179 wxSize const &arg6_defvalue = wxDefaultSize ;
1180 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1181 long arg7 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ;
1182 wxString const &arg8_defvalue = wxPyCalendarNameStr ;
1183 wxString *arg8 = (wxString *) &arg8_defvalue ;
1184 bool result;
1185 wxPoint temp5 ;
1186 wxSize temp6 ;
e811c8ce 1187 bool temp8 = False ;
d14a1e28
RD
1188 PyObject * obj0 = 0 ;
1189 PyObject * obj1 = 0 ;
994141e6 1190 PyObject * obj2 = 0 ;
d14a1e28
RD
1191 PyObject * obj3 = 0 ;
1192 PyObject * obj4 = 0 ;
1193 PyObject * obj5 = 0 ;
994141e6 1194 PyObject * obj6 = 0 ;
d14a1e28
RD
1195 PyObject * obj7 = 0 ;
1196 char *kwnames[] = {
1197 (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
1198 };
1199
994141e6 1200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:CalendarCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d14a1e28
RD
1201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1202 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
994141e6
RD
1203 {
1204 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1205 if (PyErr_Occurred()) SWIG_fail;
1206 }
d14a1e28
RD
1207 if (obj3) {
1208 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1209 if (arg4 == NULL) {
1210 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1211 }
1212 }
1213 if (obj4) {
1214 {
1215 arg5 = &temp5;
1216 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1217 }
1218 }
1219 if (obj5) {
1220 {
1221 arg6 = &temp6;
1222 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1223 }
1224 }
994141e6
RD
1225 if (obj6) {
1226 {
1227 arg7 = (long) SWIG_PyObj_AsLong(obj6);
1228 if (PyErr_Occurred()) SWIG_fail;
1229 }
1230 }
d14a1e28
RD
1231 if (obj7) {
1232 {
1233 arg8 = wxString_in_helper(obj7);
1234 if (arg8 == NULL) SWIG_fail;
e811c8ce 1235 temp8 = True;
d14a1e28
RD
1236 }
1237 }
1238 {
1239 PyThreadState* __tstate = wxPyBeginAllowThreads();
1240 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
1241
1242 wxPyEndAllowThreads(__tstate);
1243 if (PyErr_Occurred()) SWIG_fail;
1244 }
4d5c3d91 1245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1246 {
1247 if (temp8)
1248 delete arg8;
1249 }
1250 return resultobj;
1251 fail:
1252 {
1253 if (temp8)
1254 delete arg8;
1255 }
1256 return NULL;
1257}
1258
1259
1260static PyObject *_wrap_CalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
1261 PyObject *resultobj;
1262 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1263 wxDateTime *arg2 = 0 ;
1264 PyObject * obj0 = 0 ;
1265 PyObject * obj1 = 0 ;
1266 char *kwnames[] = {
1267 (char *) "self",(char *) "date", NULL
1268 };
1269
1270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetDate",kwnames,&obj0,&obj1)) goto fail;
1271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1272 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1273 if (arg2 == NULL) {
1274 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1275 }
1276 {
1277 PyThreadState* __tstate = wxPyBeginAllowThreads();
1278 (arg1)->SetDate((wxDateTime const &)*arg2);
1279
1280 wxPyEndAllowThreads(__tstate);
1281 if (PyErr_Occurred()) SWIG_fail;
1282 }
1283 Py_INCREF(Py_None); resultobj = Py_None;
1284 return resultobj;
1285 fail:
1286 return NULL;
1287}
1288
1289
1290static PyObject *_wrap_CalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) {
1291 PyObject *resultobj;
1292 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1293 wxDateTime *result;
1294 PyObject * obj0 = 0 ;
1295 char *kwnames[] = {
1296 (char *) "self", NULL
1297 };
1298
1299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetDate",kwnames,&obj0)) goto fail;
1300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1301 {
1302 PyThreadState* __tstate = wxPyBeginAllowThreads();
1303 {
1304 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetDate();
1305 result = (wxDateTime *) &_result_ref;
1306 }
1307
1308 wxPyEndAllowThreads(__tstate);
1309 if (PyErr_Occurred()) SWIG_fail;
1310 }
1311 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
1312 return resultobj;
1313 fail:
1314 return NULL;
1315}
1316
1317
1318static PyObject *_wrap_CalendarCtrl_SetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) {
1319 PyObject *resultobj;
1320 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1321 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1322 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1323 bool result;
1324 PyObject * obj0 = 0 ;
1325 PyObject * obj1 = 0 ;
1326 char *kwnames[] = {
1327 (char *) "self",(char *) "date", NULL
1328 };
1329
1330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames,&obj0,&obj1)) goto fail;
1331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1332 if (obj1) {
1333 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1334 if (arg2 == NULL) {
1335 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1336 }
1337 }
1338 {
1339 PyThreadState* __tstate = wxPyBeginAllowThreads();
1340 result = (bool)(arg1)->SetLowerDateLimit((wxDateTime const &)*arg2);
1341
1342 wxPyEndAllowThreads(__tstate);
1343 if (PyErr_Occurred()) SWIG_fail;
1344 }
4d5c3d91 1345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1346 return resultobj;
1347 fail:
1348 return NULL;
1349}
1350
1351
98e665d3 1352static PyObject *_wrap_CalendarCtrl_SetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1353 PyObject *resultobj;
1354 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
98e665d3
RD
1355 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1356 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1357 bool result;
d14a1e28 1358 PyObject * obj0 = 0 ;
98e665d3 1359 PyObject * obj1 = 0 ;
d14a1e28 1360 char *kwnames[] = {
98e665d3 1361 (char *) "self",(char *) "date", NULL
d14a1e28
RD
1362 };
1363
98e665d3 1364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 1365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
98e665d3
RD
1366 if (obj1) {
1367 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1368 if (arg2 == NULL) {
1369 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1370 }
1371 }
d14a1e28
RD
1372 {
1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
98e665d3 1374 result = (bool)(arg1)->SetUpperDateLimit((wxDateTime const &)*arg2);
d14a1e28
RD
1375
1376 wxPyEndAllowThreads(__tstate);
1377 if (PyErr_Occurred()) SWIG_fail;
1378 }
98e665d3 1379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1380 return resultobj;
1381 fail:
1382 return NULL;
1383}
1384
1385
98e665d3 1386static PyObject *_wrap_CalendarCtrl_GetLowerDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1387 PyObject *resultobj;
1388 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
98e665d3 1389 wxDateTime *result;
d14a1e28 1390 PyObject * obj0 = 0 ;
d14a1e28 1391 char *kwnames[] = {
98e665d3 1392 (char *) "self", NULL
d14a1e28
RD
1393 };
1394
98e665d3 1395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames,&obj0)) goto fail;
d14a1e28 1396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
1397 {
1398 PyThreadState* __tstate = wxPyBeginAllowThreads();
98e665d3
RD
1399 {
1400 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetLowerDateLimit();
1401 result = (wxDateTime *) &_result_ref;
1402 }
d14a1e28
RD
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
98e665d3 1407 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
1408 return resultobj;
1409 fail:
1410 return NULL;
1411}
1412
1413
1414static PyObject *_wrap_CalendarCtrl_GetUpperDateLimit(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject *resultobj;
1416 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1417 wxDateTime *result;
1418 PyObject * obj0 = 0 ;
1419 char *kwnames[] = {
1420 (char *) "self", NULL
1421 };
1422
1423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames,&obj0)) goto fail;
1424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1425 {
1426 PyThreadState* __tstate = wxPyBeginAllowThreads();
1427 {
1428 wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetUpperDateLimit();
1429 result = (wxDateTime *) &_result_ref;
1430 }
1431
1432 wxPyEndAllowThreads(__tstate);
1433 if (PyErr_Occurred()) SWIG_fail;
1434 }
1435 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
1436 return resultobj;
1437 fail:
1438 return NULL;
1439}
1440
1441
1442static PyObject *_wrap_CalendarCtrl_SetDateRange(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1445 wxDateTime const &arg2_defvalue = wxDefaultDateTime ;
1446 wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ;
1447 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
1448 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
1449 bool result;
1450 PyObject * obj0 = 0 ;
1451 PyObject * obj1 = 0 ;
1452 PyObject * obj2 = 0 ;
1453 char *kwnames[] = {
1454 (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL
1455 };
1456
1457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
1458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1459 if (obj1) {
1460 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1461 if (arg2 == NULL) {
1462 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1463 }
1464 }
1465 if (obj2) {
1466 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1467 if (arg3 == NULL) {
1468 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1469 }
1470 }
1471 {
1472 PyThreadState* __tstate = wxPyBeginAllowThreads();
1473 result = (bool)(arg1)->SetDateRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
1474
1475 wxPyEndAllowThreads(__tstate);
1476 if (PyErr_Occurred()) SWIG_fail;
1477 }
4d5c3d91 1478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1479 return resultobj;
1480 fail:
1481 return NULL;
1482}
1483
1484
1485static PyObject *_wrap_CalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) {
1486 PyObject *resultobj;
1487 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
e811c8ce 1488 bool arg2 = (bool) True ;
d14a1e28
RD
1489 PyObject * obj0 = 0 ;
1490 PyObject * obj1 = 0 ;
1491 char *kwnames[] = {
1492 (char *) "self",(char *) "enable", NULL
1493 };
1494
1495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames,&obj0,&obj1)) goto fail;
1496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1497 if (obj1) {
a41e16b6 1498 {
994141e6 1499 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
a41e16b6
RD
1500 if (PyErr_Occurred()) SWIG_fail;
1501 }
d14a1e28
RD
1502 }
1503 {
1504 PyThreadState* __tstate = wxPyBeginAllowThreads();
1505 (arg1)->EnableYearChange(arg2);
1506
1507 wxPyEndAllowThreads(__tstate);
1508 if (PyErr_Occurred()) SWIG_fail;
1509 }
1510 Py_INCREF(Py_None); resultobj = Py_None;
1511 return resultobj;
1512 fail:
1513 return NULL;
1514}
1515
1516
1517static PyObject *_wrap_CalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) {
1518 PyObject *resultobj;
1519 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
e811c8ce 1520 bool arg2 = (bool) True ;
d14a1e28
RD
1521 PyObject * obj0 = 0 ;
1522 PyObject * obj1 = 0 ;
1523 char *kwnames[] = {
1524 (char *) "self",(char *) "enable", NULL
1525 };
1526
1527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames,&obj0,&obj1)) goto fail;
1528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1529 if (obj1) {
a41e16b6 1530 {
994141e6 1531 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
a41e16b6
RD
1532 if (PyErr_Occurred()) SWIG_fail;
1533 }
d14a1e28
RD
1534 }
1535 {
1536 PyThreadState* __tstate = wxPyBeginAllowThreads();
1537 (arg1)->EnableMonthChange(arg2);
1538
1539 wxPyEndAllowThreads(__tstate);
1540 if (PyErr_Occurred()) SWIG_fail;
1541 }
1542 Py_INCREF(Py_None); resultobj = Py_None;
1543 return resultobj;
1544 fail:
1545 return NULL;
1546}
1547
1548
1549static PyObject *_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
1550 PyObject *resultobj;
1551 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
e811c8ce 1552 bool arg2 = (bool) True ;
d14a1e28
RD
1553 PyObject * obj0 = 0 ;
1554 PyObject * obj1 = 0 ;
1555 char *kwnames[] = {
1556 (char *) "self",(char *) "display", NULL
1557 };
1558
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames,&obj0,&obj1)) goto fail;
1560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1561 if (obj1) {
a41e16b6 1562 {
994141e6 1563 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
a41e16b6
RD
1564 if (PyErr_Occurred()) SWIG_fail;
1565 }
d14a1e28
RD
1566 }
1567 {
1568 PyThreadState* __tstate = wxPyBeginAllowThreads();
1569 (arg1)->EnableHolidayDisplay(arg2);
1570
1571 wxPyEndAllowThreads(__tstate);
1572 if (PyErr_Occurred()) SWIG_fail;
1573 }
1574 Py_INCREF(Py_None); resultobj = Py_None;
1575 return resultobj;
1576 fail:
1577 return NULL;
1578}
1579
1580
1581static PyObject *_wrap_CalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1582 PyObject *resultobj;
1583 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1584 wxColour *arg2 = 0 ;
1585 wxColour *arg3 = 0 ;
1586 wxColour temp2 ;
1587 wxColour temp3 ;
1588 PyObject * obj0 = 0 ;
1589 PyObject * obj1 = 0 ;
1590 PyObject * obj2 = 0 ;
1591 char *kwnames[] = {
1592 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1593 };
1594
1595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHeaderColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1597 {
1598 arg2 = &temp2;
1599 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1600 }
1601 {
1602 arg3 = &temp3;
1603 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1604 }
1605 {
1606 PyThreadState* __tstate = wxPyBeginAllowThreads();
1607 (arg1)->SetHeaderColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1608
1609 wxPyEndAllowThreads(__tstate);
1610 if (PyErr_Occurred()) SWIG_fail;
1611 }
1612 Py_INCREF(Py_None); resultobj = Py_None;
1613 return resultobj;
1614 fail:
1615 return NULL;
1616}
1617
1618
1619static PyObject *_wrap_CalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1620 PyObject *resultobj;
1621 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1622 wxColour result;
1623 PyObject * obj0 = 0 ;
1624 char *kwnames[] = {
1625 (char *) "self", NULL
1626 };
1627
1628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourFg",kwnames,&obj0)) goto fail;
1629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1630 {
1631 PyThreadState* __tstate = wxPyBeginAllowThreads();
1632 result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourFg();
1633
1634 wxPyEndAllowThreads(__tstate);
1635 if (PyErr_Occurred()) SWIG_fail;
1636 }
1637 {
1638 wxColour * resultptr;
1639 resultptr = new wxColour((wxColour &) result);
1640 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1641 }
1642 return resultobj;
1643 fail:
1644 return NULL;
1645}
1646
1647
1648static PyObject *_wrap_CalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1649 PyObject *resultobj;
1650 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1651 wxColour result;
1652 PyObject * obj0 = 0 ;
1653 char *kwnames[] = {
1654 (char *) "self", NULL
1655 };
1656
1657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourBg",kwnames,&obj0)) goto fail;
1658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1659 {
1660 PyThreadState* __tstate = wxPyBeginAllowThreads();
1661 result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourBg();
1662
1663 wxPyEndAllowThreads(__tstate);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 }
1666 {
1667 wxColour * resultptr;
1668 resultptr = new wxColour((wxColour &) result);
1669 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1670 }
1671 return resultobj;
1672 fail:
1673 return NULL;
1674}
1675
1676
1677static PyObject *_wrap_CalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1678 PyObject *resultobj;
1679 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1680 wxColour *arg2 = 0 ;
1681 wxColour *arg3 = 0 ;
1682 wxColour temp2 ;
1683 wxColour temp3 ;
1684 PyObject * obj0 = 0 ;
1685 PyObject * obj1 = 0 ;
1686 PyObject * obj2 = 0 ;
1687 char *kwnames[] = {
1688 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1689 };
1690
1691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHighlightColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1693 {
1694 arg2 = &temp2;
1695 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1696 }
1697 {
1698 arg3 = &temp3;
1699 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1700 }
1701 {
1702 PyThreadState* __tstate = wxPyBeginAllowThreads();
1703 (arg1)->SetHighlightColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1704
1705 wxPyEndAllowThreads(__tstate);
1706 if (PyErr_Occurred()) SWIG_fail;
1707 }
1708 Py_INCREF(Py_None); resultobj = Py_None;
1709 return resultobj;
1710 fail:
1711 return NULL;
1712}
1713
1714
1715static PyObject *_wrap_CalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1716 PyObject *resultobj;
1717 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1718 wxColour result;
1719 PyObject * obj0 = 0 ;
1720 char *kwnames[] = {
1721 (char *) "self", NULL
1722 };
1723
1724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourFg",kwnames,&obj0)) goto fail;
1725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1726 {
1727 PyThreadState* __tstate = wxPyBeginAllowThreads();
1728 result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourFg();
1729
1730 wxPyEndAllowThreads(__tstate);
1731 if (PyErr_Occurred()) SWIG_fail;
1732 }
1733 {
1734 wxColour * resultptr;
1735 resultptr = new wxColour((wxColour &) result);
1736 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1737 }
1738 return resultobj;
1739 fail:
1740 return NULL;
1741}
1742
1743
1744static PyObject *_wrap_CalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1747 wxColour result;
1748 PyObject * obj0 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourBg",kwnames,&obj0)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1755 {
1756 PyThreadState* __tstate = wxPyBeginAllowThreads();
1757 result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourBg();
1758
1759 wxPyEndAllowThreads(__tstate);
1760 if (PyErr_Occurred()) SWIG_fail;
1761 }
1762 {
1763 wxColour * resultptr;
1764 resultptr = new wxColour((wxColour &) result);
1765 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1766 }
1767 return resultobj;
1768 fail:
1769 return NULL;
1770}
1771
1772
1773static PyObject *_wrap_CalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) {
1774 PyObject *resultobj;
1775 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1776 wxColour *arg2 = 0 ;
1777 wxColour *arg3 = 0 ;
1778 wxColour temp2 ;
1779 wxColour temp3 ;
1780 PyObject * obj0 = 0 ;
1781 PyObject * obj1 = 0 ;
1782 PyObject * obj2 = 0 ;
1783 char *kwnames[] = {
1784 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
1785 };
1786
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHolidayColours",kwnames,&obj0,&obj1,&obj2)) goto fail;
1788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1789 {
1790 arg2 = &temp2;
1791 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1792 }
1793 {
1794 arg3 = &temp3;
1795 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
1796 }
1797 {
1798 PyThreadState* __tstate = wxPyBeginAllowThreads();
1799 (arg1)->SetHolidayColours((wxColour const &)*arg2,(wxColour const &)*arg3);
1800
1801 wxPyEndAllowThreads(__tstate);
1802 if (PyErr_Occurred()) SWIG_fail;
1803 }
1804 Py_INCREF(Py_None); resultobj = Py_None;
1805 return resultobj;
1806 fail:
1807 return NULL;
1808}
1809
1810
1811static PyObject *_wrap_CalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) {
1812 PyObject *resultobj;
1813 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1814 wxColour result;
1815 PyObject * obj0 = 0 ;
1816 char *kwnames[] = {
1817 (char *) "self", NULL
1818 };
1819
1820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourFg",kwnames,&obj0)) goto fail;
1821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1822 {
1823 PyThreadState* __tstate = wxPyBeginAllowThreads();
1824 result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourFg();
1825
1826 wxPyEndAllowThreads(__tstate);
1827 if (PyErr_Occurred()) SWIG_fail;
1828 }
1829 {
1830 wxColour * resultptr;
1831 resultptr = new wxColour((wxColour &) result);
1832 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1833 }
1834 return resultobj;
1835 fail:
1836 return NULL;
1837}
1838
1839
1840static PyObject *_wrap_CalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) {
1841 PyObject *resultobj;
1842 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1843 wxColour result;
1844 PyObject * obj0 = 0 ;
1845 char *kwnames[] = {
1846 (char *) "self", NULL
1847 };
1848
1849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourBg",kwnames,&obj0)) goto fail;
1850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1851 {
1852 PyThreadState* __tstate = wxPyBeginAllowThreads();
1853 result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourBg();
1854
1855 wxPyEndAllowThreads(__tstate);
1856 if (PyErr_Occurred()) SWIG_fail;
1857 }
1858 {
1859 wxColour * resultptr;
1860 resultptr = new wxColour((wxColour &) result);
1861 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1862 }
1863 return resultobj;
1864 fail:
1865 return NULL;
1866}
1867
1868
1869static PyObject *_wrap_CalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1870 PyObject *resultobj;
1871 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1872 size_t arg2 ;
1873 wxCalendarDateAttr *result;
1874 PyObject * obj0 = 0 ;
1875 PyObject * obj1 = 0 ;
1876 char *kwnames[] = {
1877 (char *) "self",(char *) "day", NULL
1878 };
1879
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_GetAttr",kwnames,&obj0,&obj1)) goto fail;
1881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
a41e16b6 1882 {
994141e6 1883 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
a41e16b6
RD
1884 if (PyErr_Occurred()) SWIG_fail;
1885 }
d14a1e28
RD
1886 {
1887 PyThreadState* __tstate = wxPyBeginAllowThreads();
1888 result = (wxCalendarDateAttr *)((wxCalendarCtrl const *)arg1)->GetAttr(arg2);
1889
1890 wxPyEndAllowThreads(__tstate);
1891 if (PyErr_Occurred()) SWIG_fail;
1892 }
1893 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalendarDateAttr, 0);
1894 return resultobj;
1895 fail:
1896 return NULL;
1897}
1898
1899
1900static PyObject *_wrap_CalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1901 PyObject *resultobj;
1902 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1903 size_t arg2 ;
1904 wxCalendarDateAttr *arg3 = (wxCalendarDateAttr *) 0 ;
1905 PyObject * obj0 = 0 ;
1906 PyObject * obj1 = 0 ;
1907 PyObject * obj2 = 0 ;
1908 char *kwnames[] = {
1909 (char *) "self",(char *) "day",(char *) "attr", NULL
1910 };
1911
1912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
1913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
a41e16b6 1914 {
994141e6 1915 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
a41e16b6
RD
1916 if (PyErr_Occurred()) SWIG_fail;
1917 }
d14a1e28
RD
1918 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCalendarDateAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 (arg1)->SetAttr(arg2,arg3);
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) SWIG_fail;
1925 }
1926 Py_INCREF(Py_None); resultobj = Py_None;
1927 return resultobj;
1928 fail:
1929 return NULL;
1930}
1931
1932
1933static PyObject *_wrap_CalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) {
1934 PyObject *resultobj;
1935 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1936 size_t arg2 ;
1937 PyObject * obj0 = 0 ;
1938 PyObject * obj1 = 0 ;
1939 char *kwnames[] = {
1940 (char *) "self",(char *) "day", NULL
1941 };
1942
1943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetHoliday",kwnames,&obj0,&obj1)) goto fail;
1944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
a41e16b6 1945 {
994141e6 1946 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
a41e16b6
RD
1947 if (PyErr_Occurred()) SWIG_fail;
1948 }
d14a1e28
RD
1949 {
1950 PyThreadState* __tstate = wxPyBeginAllowThreads();
1951 (arg1)->SetHoliday(arg2);
1952
1953 wxPyEndAllowThreads(__tstate);
1954 if (PyErr_Occurred()) SWIG_fail;
1955 }
1956 Py_INCREF(Py_None); resultobj = Py_None;
1957 return resultobj;
1958 fail:
1959 return NULL;
1960}
1961
1962
1963static PyObject *_wrap_CalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
1964 PyObject *resultobj;
1965 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1966 size_t arg2 ;
1967 PyObject * obj0 = 0 ;
1968 PyObject * obj1 = 0 ;
1969 char *kwnames[] = {
1970 (char *) "self",(char *) "day", NULL
1971 };
1972
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_ResetAttr",kwnames,&obj0,&obj1)) goto fail;
1974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
a41e16b6 1975 {
994141e6 1976 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
a41e16b6
RD
1977 if (PyErr_Occurred()) SWIG_fail;
1978 }
d14a1e28
RD
1979 {
1980 PyThreadState* __tstate = wxPyBeginAllowThreads();
1981 (arg1)->ResetAttr(arg2);
1982
1983 wxPyEndAllowThreads(__tstate);
1984 if (PyErr_Occurred()) SWIG_fail;
1985 }
1986 Py_INCREF(Py_None); resultobj = Py_None;
1987 return resultobj;
1988 fail:
1989 return NULL;
1990}
1991
1992
1993static PyObject *_wrap_CalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject *resultobj;
1995 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
1996 wxPoint *arg2 = 0 ;
98e665d3 1997 PyObject *result;
d14a1e28
RD
1998 wxPoint temp2 ;
1999 PyObject * obj0 = 0 ;
2000 PyObject * obj1 = 0 ;
d14a1e28 2001 char *kwnames[] = {
98e665d3 2002 (char *) "self",(char *) "pos", NULL
d14a1e28
RD
2003 };
2004
98e665d3 2005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2007 {
2008 arg2 = &temp2;
2009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2010 }
d14a1e28
RD
2011 {
2012 PyThreadState* __tstate = wxPyBeginAllowThreads();
98e665d3 2013 result = (PyObject *)wxCalendarCtrl_HitTest(arg1,(wxPoint const &)*arg2);
d14a1e28
RD
2014
2015 wxPyEndAllowThreads(__tstate);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 }
98e665d3 2018 resultobj = result;
d14a1e28
RD
2019 return resultobj;
2020 fail:
2021 return NULL;
2022}
2023
2024
c9c7117a
RD
2025static PyObject *_wrap_CalendarCtrl_GetMonthControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2026 PyObject *resultobj;
2027 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2028 wxControl *result;
2029 PyObject * obj0 = 0 ;
2030 char *kwnames[] = {
2031 (char *) "self", NULL
2032 };
2033
2034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetMonthControl",kwnames,&obj0)) goto fail;
2035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2036 {
2037 PyThreadState* __tstate = wxPyBeginAllowThreads();
2038 result = (wxControl *)((wxCalendarCtrl const *)arg1)->GetMonthControl();
2039
2040 wxPyEndAllowThreads(__tstate);
2041 if (PyErr_Occurred()) SWIG_fail;
2042 }
2043 {
2044 resultobj = wxPyMake_wxObject(result);
2045 }
2046 return resultobj;
2047 fail:
2048 return NULL;
2049}
2050
2051
2052static PyObject *_wrap_CalendarCtrl_GetYearControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2053 PyObject *resultobj;
2054 wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ;
2055 wxControl *result;
2056 PyObject * obj0 = 0 ;
2057 char *kwnames[] = {
2058 (char *) "self", NULL
2059 };
2060
2061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetYearControl",kwnames,&obj0)) goto fail;
2062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalendarCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2063 {
2064 PyThreadState* __tstate = wxPyBeginAllowThreads();
2065 result = (wxControl *)((wxCalendarCtrl const *)arg1)->GetYearControl();
2066
2067 wxPyEndAllowThreads(__tstate);
2068 if (PyErr_Occurred()) SWIG_fail;
2069 }
2070 {
2071 resultobj = wxPyMake_wxObject(result);
2072 }
2073 return resultobj;
2074 fail:
2075 return NULL;
2076}
2077
2078
d14a1e28
RD
2079static PyObject * CalendarCtrl_swigregister(PyObject *self, PyObject *args) {
2080 PyObject *obj;
2081 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2082 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl, obj);
2083 Py_INCREF(obj);
2084 return Py_BuildValue((char *)"");
2085}
2086static PyMethodDef SwigMethods[] = {
2087 { (char *)"new_CalendarDateAttr", (PyCFunction) _wrap_new_CalendarDateAttr, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
2088 { (char *)"CalendarDateAttr_SetTextColour", (PyCFunction) _wrap_CalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
2089 { (char *)"CalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
2090 { (char *)"CalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS },
2091 { (char *)"CalendarDateAttr_SetFont", (PyCFunction) _wrap_CalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
2092 { (char *)"CalendarDateAttr_SetBorder", (PyCFunction) _wrap_CalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS },
2093 { (char *)"CalendarDateAttr_SetHoliday", (PyCFunction) _wrap_CalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS },
2094 { (char *)"CalendarDateAttr_HasTextColour", (PyCFunction) _wrap_CalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
2095 { (char *)"CalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
2096 { (char *)"CalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_CalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS },
2097 { (char *)"CalendarDateAttr_HasFont", (PyCFunction) _wrap_CalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
2098 { (char *)"CalendarDateAttr_HasBorder", (PyCFunction) _wrap_CalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS },
2099 { (char *)"CalendarDateAttr_IsHoliday", (PyCFunction) _wrap_CalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS },
2100 { (char *)"CalendarDateAttr_GetTextColour", (PyCFunction) _wrap_CalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
2101 { (char *)"CalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
2102 { (char *)"CalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS },
2103 { (char *)"CalendarDateAttr_GetFont", (PyCFunction) _wrap_CalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
2104 { (char *)"CalendarDateAttr_GetBorder", (PyCFunction) _wrap_CalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS },
2105 { (char *)"CalendarDateAttr_swigregister", CalendarDateAttr_swigregister, METH_VARARGS },
2106 { (char *)"new_CalendarEvent", (PyCFunction) _wrap_new_CalendarEvent, METH_VARARGS | METH_KEYWORDS },
2107 { (char *)"CalendarEvent_GetDate", (PyCFunction) _wrap_CalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS },
c9c7117a
RD
2108 { (char *)"CalendarEvent_SetDate", (PyCFunction) _wrap_CalendarEvent_SetDate, METH_VARARGS | METH_KEYWORDS },
2109 { (char *)"CalendarEvent_SetWeekDay", (PyCFunction) _wrap_CalendarEvent_SetWeekDay, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
2110 { (char *)"CalendarEvent_GetWeekDay", (PyCFunction) _wrap_CalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
2111 { (char *)"CalendarEvent_swigregister", CalendarEvent_swigregister, METH_VARARGS },
2112 { (char *)"new_CalendarCtrl", (PyCFunction) _wrap_new_CalendarCtrl, METH_VARARGS | METH_KEYWORDS },
2113 { (char *)"new_PreCalendarCtrl", (PyCFunction) _wrap_new_PreCalendarCtrl, METH_VARARGS | METH_KEYWORDS },
2114 { (char *)"CalendarCtrl_Create", (PyCFunction) _wrap_CalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS },
2115 { (char *)"CalendarCtrl_SetDate", (PyCFunction) _wrap_CalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS },
2116 { (char *)"CalendarCtrl_GetDate", (PyCFunction) _wrap_CalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS },
2117 { (char *)"CalendarCtrl_SetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetLowerDateLimit, METH_VARARGS | METH_KEYWORDS },
d14a1e28 2118 { (char *)"CalendarCtrl_SetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetUpperDateLimit, METH_VARARGS | METH_KEYWORDS },
98e665d3 2119 { (char *)"CalendarCtrl_GetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetLowerDateLimit, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
2120 { (char *)"CalendarCtrl_GetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetUpperDateLimit, METH_VARARGS | METH_KEYWORDS },
2121 { (char *)"CalendarCtrl_SetDateRange", (PyCFunction) _wrap_CalendarCtrl_SetDateRange, METH_VARARGS | METH_KEYWORDS },
2122 { (char *)"CalendarCtrl_EnableYearChange", (PyCFunction) _wrap_CalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS },
2123 { (char *)"CalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_CalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS },
2124 { (char *)"CalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_CalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS },
2125 { (char *)"CalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_CalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS },
2126 { (char *)"CalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS },
2127 { (char *)"CalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS },
2128 { (char *)"CalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_CalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS },
2129 { (char *)"CalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS },
2130 { (char *)"CalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS },
2131 { (char *)"CalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_CalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS },
2132 { (char *)"CalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS },
2133 { (char *)"CalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS },
2134 { (char *)"CalendarCtrl_GetAttr", (PyCFunction) _wrap_CalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS },
2135 { (char *)"CalendarCtrl_SetAttr", (PyCFunction) _wrap_CalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS },
2136 { (char *)"CalendarCtrl_SetHoliday", (PyCFunction) _wrap_CalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS },
2137 { (char *)"CalendarCtrl_ResetAttr", (PyCFunction) _wrap_CalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS },
2138 { (char *)"CalendarCtrl_HitTest", (PyCFunction) _wrap_CalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
c9c7117a
RD
2139 { (char *)"CalendarCtrl_GetMonthControl", (PyCFunction) _wrap_CalendarCtrl_GetMonthControl, METH_VARARGS | METH_KEYWORDS },
2140 { (char *)"CalendarCtrl_GetYearControl", (PyCFunction) _wrap_CalendarCtrl_GetYearControl, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
2141 { (char *)"CalendarCtrl_swigregister", CalendarCtrl_swigregister, METH_VARARGS },
2142 { NULL, NULL }
2143};
2144
2145
2146/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2147
2148static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
2149 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
2150}
2151static void *_p_wxCalendarCtrlTo_p_wxObject(void *x) {
2152 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCalendarCtrl *) x));
2153}
2154static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
2155 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
2156}
2157static void *_p_wxSizerItemTo_p_wxObject(void *x) {
2158 return (void *)((wxObject *) ((wxSizerItem *) x));
2159}
2160static void *_p_wxScrollEventTo_p_wxObject(void *x) {
2161 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
2162}
2163static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
2164 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
2165}
2166static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
2167 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
2168}
2169static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
2170 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
2171}
2172static void *_p_wxSizerTo_p_wxObject(void *x) {
2173 return (void *)((wxObject *) ((wxSizer *) x));
2174}
2175static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
2176 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
2177}
2178static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
2179 return (void *)((wxObject *) ((wxFileHistory *) x));
2180}
2181static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
2182 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
2183}
2184static void *_p_wxEventTo_p_wxObject(void *x) {
2185 return (void *)((wxObject *) ((wxEvent *) x));
2186}
2187static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
2188 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
2189}
2190static void *_p_wxGridSizerTo_p_wxObject(void *x) {
2191 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
2192}
2193static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
2194 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
2195}
2196static void *_p_wxPaintEventTo_p_wxObject(void *x) {
2197 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
2198}
2199static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
2200 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
2201}
2202static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
2203 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
2204}
2205static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
2206 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
2207}
2208static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
2209 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2210}
2211static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
2212 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
2213}
2214static void *_p_wxControlTo_p_wxObject(void *x) {
2215 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
2216}
2217static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
2218 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
2219}
2220static void *_p_wxTimerEventTo_p_wxObject(void *x) {
2221 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
2222}
2223static void *_p_wxCalendarEventTo_p_wxObject(void *x) {
2224 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCalendarEvent *) x));
2225}
2226static void *_p_wxFSFileTo_p_wxObject(void *x) {
2227 return (void *)((wxObject *) ((wxFSFile *) x));
2228}
2229static void *_p_wxClipboardTo_p_wxObject(void *x) {
2230 return (void *)((wxObject *) ((wxClipboard *) x));
2231}
2232static void *_p_wxPySizerTo_p_wxObject(void *x) {
2233 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
2234}
2235static void *_p_wxPyEventTo_p_wxObject(void *x) {
2236 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
2237}
2238static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
2239 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
2240}
2241static void *_p_wxShowEventTo_p_wxObject(void *x) {
2242 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
2243}
2244static void *_p_wxToolTipTo_p_wxObject(void *x) {
2245 return (void *)((wxObject *) ((wxToolTip *) x));
2246}
2247static void *_p_wxMenuItemTo_p_wxObject(void *x) {
2248 return (void *)((wxObject *) ((wxMenuItem *) x));
2249}
2250static void *_p_wxIdleEventTo_p_wxObject(void *x) {
2251 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
2252}
2253static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
2254 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
2255}
2256static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
2257 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
2258}
2259static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
2260 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
2261}
2262static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
2263 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
2264}
2265static void *_p_wxSizeEventTo_p_wxObject(void *x) {
2266 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
2267}
2268static void *_p_wxMoveEventTo_p_wxObject(void *x) {
2269 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
2270}
2271static void *_p_wxActivateEventTo_p_wxObject(void *x) {
2272 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
2273}
2274static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
2275 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
2276}
2277static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
2278 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
2279}
2280static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
2281 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
2282}
2283static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
2284 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
2285}
2286static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
2287 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
2288}
2289static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
2290 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
2291}
2292static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
2293 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
2294}
2295static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
2296 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
2297}
2298static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
2299 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
2300}
2301static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
2302 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
2303}
2304static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
2305 return (void *)((wxObject *) ((wxImageHandler *) x));
2306}
2307static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
2308 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
2309}
2310static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
2311 return (void *)((wxObject *) ((wxEvtHandler *) x));
2312}
0df68c9f
RD
2313static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
2314 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
2315}
d14a1e28
RD
2316static void *_p_wxImageTo_p_wxObject(void *x) {
2317 return (void *)((wxObject *) ((wxImage *) x));
2318}
2319static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
2320 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
2321}
2322static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
2323 return (void *)((wxObject *) ((wxSystemOptions *) x));
2324}
2325static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
2326 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
2327}
2328static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
2329 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2330}
2331static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
2332 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
2333}
2334static void *_p_wxKeyEventTo_p_wxObject(void *x) {
2335 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
2336}
2337static void *_p_wxWindowTo_p_wxObject(void *x) {
2338 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
2339}
2340static void *_p_wxMenuTo_p_wxObject(void *x) {
2341 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
2342}
2343static void *_p_wxMenuBarTo_p_wxObject(void *x) {
2344 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
2345}
2346static void *_p_wxPyProcessTo_p_wxObject(void *x) {
2347 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
2348}
2349static void *_p_wxFileSystemTo_p_wxObject(void *x) {
2350 return (void *)((wxObject *) ((wxFileSystem *) x));
2351}
2352static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
2353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
2354}
2355static void *_p_wxMenuEventTo_p_wxObject(void *x) {
2356 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
2357}
2358static void *_p_wxPyAppTo_p_wxObject(void *x) {
2359 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
2360}
2361static void *_p_wxCloseEventTo_p_wxObject(void *x) {
2362 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
2363}
2364static void *_p_wxMouseEventTo_p_wxObject(void *x) {
2365 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
2366}
2367static void *_p_wxEraseEventTo_p_wxObject(void *x) {
2368 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
2369}
2370static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
2371 return (void *)((wxObject *) ((wxBusyInfo *) x));
2372}
2373static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
2374 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
2375}
2376static void *_p_wxCommandEventTo_p_wxObject(void *x) {
2377 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
2378}
2379static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
2380 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
2381}
2382static void *_p_wxFocusEventTo_p_wxObject(void *x) {
2383 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
2384}
2385static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
2386 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
2387}
2388static void *_p_wxProcessEventTo_p_wxObject(void *x) {
2389 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
2390}
2391static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2392 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2393}
2394static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2395 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2396}
2397static void *_p_wxValidatorTo_p_wxObject(void *x) {
2398 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2399}
2400static void *_p_wxPyTimerTo_p_wxObject(void *x) {
2401 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
2402}
2403static void *_p_wxControlTo_p_wxWindow(void *x) {
2404 return (void *)((wxWindow *) ((wxControl *) x));
2405}
2406static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
2407 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
2408}
2409static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
2410 return (void *)((wxWindow *) ((wxMenuBar *) x));
2411}
2412static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x) {
2413 return (void *)((wxWindow *) (wxControl *) ((wxCalendarCtrl *) x));
2414}
2415static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
2416 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
2417}
2418static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
2419 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
2420}
2421static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
2422 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
2423}
2424static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
2425 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
2426}
2427static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
2428 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2429}
2430static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
2431 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
2432}
2433static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x) {
2434 return (void *)((wxCommandEvent *) ((wxCalendarEvent *) x));
2435}
2436static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
2437 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
2438}
2439static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
2440 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
2441}
2442static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2443 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2444}
2445static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2446 return (void *)((wxEvtHandler *) ((wxWindow *) x));
2447}
2448static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
2449 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2450}
2451static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
2452 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
2453}
2454static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
2455 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
2456}
2457static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
2458 return (void *)((wxEvtHandler *) ((wxValidator *) x));
2459}
2460static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
2461 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
2462}
2463static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
2464 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
2465}
2466static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
2467 return (void *)((wxEvtHandler *) ((wxMenu *) x));
2468}
2469static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
2470 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
2471}
2472static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x) {
2473 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCalendarCtrl *) x));
2474}
2475static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
2476 return (void *)((wxControl *) ((wxControlWithItems *) x));
2477}
2478static void *_p_wxCalendarCtrlTo_p_wxControl(void *x) {
2479 return (void *)((wxControl *) ((wxCalendarCtrl *) x));
2480}
2481static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
2482 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
2483}
2484static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
2485 return (void *)((wxEvent *) ((wxMenuEvent *) x));
2486}
2487static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
2488 return (void *)((wxEvent *) ((wxCloseEvent *) x));
2489}
2490static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
2491 return (void *)((wxEvent *) ((wxMouseEvent *) x));
2492}
2493static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
2494 return (void *)((wxEvent *) ((wxEraseEvent *) x));
2495}
2496static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
2497 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
2498}
2499static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
2500 return (void *)((wxEvent *) ((wxTimerEvent *) x));
2501}
2502static void *_p_wxCalendarEventTo_p_wxEvent(void *x) {
2503 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCalendarEvent *) x));
2504}
2505static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
2506 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
2507}
2508static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
2509 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
2510}
2511static void *_p_wxPyEventTo_p_wxEvent(void *x) {
2512 return (void *)((wxEvent *) ((wxPyEvent *) x));
2513}
2514static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
2515 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
2516}
2517static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
2518 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
2519}
2520static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
2521 return (void *)((wxEvent *) ((wxIdleEvent *) x));
2522}
2523static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
2524 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
2525}
2526static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
2527 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
2528}
2529static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
2530 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
2531}
2532static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
2533 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
2534}
2535static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
2536 return (void *)((wxEvent *) ((wxActivateEvent *) x));
2537}
2538static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
2539 return (void *)((wxEvent *) ((wxSizeEvent *) x));
2540}
2541static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
2542 return (void *)((wxEvent *) ((wxMoveEvent *) x));
2543}
2544static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
2545 return (void *)((wxEvent *) ((wxPaintEvent *) x));
2546}
2547static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
2548 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
2549}
2550static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
2551 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
2552}
2553static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
2554 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
2555}
2556static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
2557 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
2558}
2559static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
2560 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2561}
2562static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
2563 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
2564}
2565static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
2566 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
2567}
2568static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
2569 return (void *)((wxEvent *) ((wxFocusEvent *) x));
2570}
2571static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
2572 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
2573}
2574static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
2575 return (void *)((wxEvent *) ((wxProcessEvent *) x));
2576}
2577static void *_p_wxShowEventTo_p_wxEvent(void *x) {
2578 return (void *)((wxEvent *) ((wxShowEvent *) x));
2579}
2580static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
2581 return (void *)((wxEvent *) ((wxCommandEvent *) x));
2582}
2583static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
2584 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
2585}
2586static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
2587 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2588}
2589static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
2590 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
2591}
2592static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
2593 return (void *)((wxEvent *) ((wxKeyEvent *) x));
2594}
2595static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
2596 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
2597}
98e665d3
RD
2598static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxControl},{0}};
2599static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}};
2600static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxWindow},{0}};
2601static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
2602static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}};
0df68c9f 2603static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject},{0}};
98e665d3
RD
2604static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxEvtHandler},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler},{0}};
2605static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
d14a1e28 2606static swig_type_info _swigt__p_wxCalendarDateAttr[] = {{"_p_wxCalendarDateAttr", 0, "wxCalendarDateAttr *", 0},{"_p_wxCalendarDateAttr"},{0}};
98e665d3
RD
2607static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
2608static swig_type_info _swigt__p_wxCalendarEvent[] = {{"_p_wxCalendarEvent", 0, "wxCalendarEvent *", 0},{"_p_wxCalendarEvent"},{0}};
d14a1e28 2609static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}};
d14a1e28 2610static swig_type_info _swigt__p_wxCalendarCtrl[] = {{"_p_wxCalendarCtrl", 0, "wxCalendarCtrl *", 0},{"_p_wxCalendarCtrl"},{0}};
d14a1e28
RD
2611
2612static swig_type_info *swig_types_initial[] = {
98e665d3
RD
2613_swigt__p_wxControl,
2614_swigt__p_wxDateTime,
2615_swigt__p_wxWindow,
2616_swigt__p_wxFont,
2617_swigt__p_wxEvent,
d14a1e28 2618_swigt__p_wxObject,
98e665d3
RD
2619_swigt__p_wxEvtHandler,
2620_swigt__p_char,
d14a1e28 2621_swigt__p_wxCalendarDateAttr,
98e665d3
RD
2622_swigt__p_wxColour,
2623_swigt__p_wxCalendarEvent,
d14a1e28 2624_swigt__p_wxCommandEvent,
d14a1e28 2625_swigt__p_wxCalendarCtrl,
d14a1e28
RD
26260
2627};
2628
2629
2630/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2631
2632static swig_const_info swig_const_table[] = {
d14a1e28
RD
2633{0}};
2634
2635#ifdef __cplusplus
2636}
2637#endif
2638
2639#ifdef __cplusplus
2640extern "C"
2641#endif
2642SWIGEXPORT(void) SWIG_init(void) {
2643 static PyObject *SWIG_globals = 0;
2644 static int typeinit = 0;
2645 PyObject *m, *d;
2646 int i;
2647 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
2648 m = Py_InitModule((char *) SWIG_name, SwigMethods);
2649 d = PyModule_GetDict(m);
2650
2651 if (!typeinit) {
2652 for (i = 0; swig_types_initial[i]; i++) {
2653 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
2654 }
2655 typeinit = 1;
2656 }
2657 SWIG_InstallConstants(d,swig_const_table);
2658
994141e6
RD
2659 PyDict_SetItemString(d,"CAL_SUNDAY_FIRST", SWIG_PyObj_FromInt((int)wxCAL_SUNDAY_FIRST));
2660 PyDict_SetItemString(d,"CAL_MONDAY_FIRST", SWIG_PyObj_FromInt((int)wxCAL_MONDAY_FIRST));
2661 PyDict_SetItemString(d,"CAL_SHOW_HOLIDAYS", SWIG_PyObj_FromInt((int)wxCAL_SHOW_HOLIDAYS));
2662 PyDict_SetItemString(d,"CAL_NO_YEAR_CHANGE", SWIG_PyObj_FromInt((int)wxCAL_NO_YEAR_CHANGE));
2663 PyDict_SetItemString(d,"CAL_NO_MONTH_CHANGE", SWIG_PyObj_FromInt((int)wxCAL_NO_MONTH_CHANGE));
2664 PyDict_SetItemString(d,"CAL_SEQUENTIAL_MONTH_SELECTION", SWIG_PyObj_FromInt((int)wxCAL_SEQUENTIAL_MONTH_SELECTION));
2665 PyDict_SetItemString(d,"CAL_SHOW_SURROUNDING_WEEKS", SWIG_PyObj_FromInt((int)wxCAL_SHOW_SURROUNDING_WEEKS));
2666 PyDict_SetItemString(d,"CAL_HITTEST_NOWHERE", SWIG_PyObj_FromInt((int)wxCAL_HITTEST_NOWHERE));
2667 PyDict_SetItemString(d,"CAL_HITTEST_HEADER", SWIG_PyObj_FromInt((int)wxCAL_HITTEST_HEADER));
2668 PyDict_SetItemString(d,"CAL_HITTEST_DAY", SWIG_PyObj_FromInt((int)wxCAL_HITTEST_DAY));
2669 PyDict_SetItemString(d,"CAL_HITTEST_INCMONTH", SWIG_PyObj_FromInt((int)wxCAL_HITTEST_INCMONTH));
2670 PyDict_SetItemString(d,"CAL_HITTEST_DECMONTH", SWIG_PyObj_FromInt((int)wxCAL_HITTEST_DECMONTH));
2671 PyDict_SetItemString(d,"CAL_HITTEST_SURROUNDING_WEEK", SWIG_PyObj_FromInt((int)wxCAL_HITTEST_SURROUNDING_WEEK));
2672 PyDict_SetItemString(d,"CAL_BORDER_NONE", SWIG_PyObj_FromInt((int)wxCAL_BORDER_NONE));
2673 PyDict_SetItemString(d,"CAL_BORDER_SQUARE", SWIG_PyObj_FromInt((int)wxCAL_BORDER_SQUARE));
2674 PyDict_SetItemString(d,"CAL_BORDER_ROUND", SWIG_PyObj_FromInt((int)wxCAL_BORDER_ROUND));
d14a1e28
RD
2675 PyDict_SetItemString(d, "wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong(wxEVT_CALENDAR_DOUBLECLICKED));
2676 PyDict_SetItemString(d, "wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_SEL_CHANGED));
2677 PyDict_SetItemString(d, "wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_DAY_CHANGED));
2678 PyDict_SetItemString(d, "wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_MONTH_CHANGED));
2679 PyDict_SetItemString(d, "wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_YEAR_CHANGED));
2680 PyDict_SetItemString(d, "wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong(wxEVT_CALENDAR_WEEKDAY_CLICKED));
b2dc1044
RD
2681 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
2682 SWIG_addvarlink(SWIG_globals,(char*)"CalendarNameStr",_wrap_CalendarNameStr_get, _wrap_CalendarNameStr_set);
d14a1e28
RD
2683
2684
2685}
2686