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