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