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