]>
Commit | Line | Data |
---|---|---|
f6bcfd97 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/calendar.cpp |
f6bcfd97 BP |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
f6bcfd97 BP |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
f6bcfd97 | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
f6bcfd97 BP |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 44 | |
f6bcfd97 BP |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initcalendarc | |
55 | ||
56 | #define SWIG_name "calendarc" | |
57 | ||
b68dc582 | 58 | #include "export.h" |
f6bcfd97 BP |
59 | #include <wx/calctrl.h> |
60 | ||
f6bcfd97 BP |
61 | |
62 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
65 | ||
1c09ae54 | 66 | if (!target) { |
f6bcfd97 | 67 | target = o; |
1c09ae54 | 68 | } else if (target == Py_None) { |
f6bcfd97 BP |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
1c09ae54 | 71 | } else { |
f6bcfd97 BP |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
1c09ae54 RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
f6bcfd97 BP |
79 | |
80 | o2 = target; | |
1c09ae54 RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
f6bcfd97 BP |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
7a446686 RD |
88 | #if PYTHON_API_VERSION >= 1009 |
89 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
90 | #else | |
91 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
92 | #endif | |
f6bcfd97 BP |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | #define new_wxCalendarDateAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxCalendarDateAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
97 | static PyObject *_wrap_new_wxCalendarDateAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
98 | PyObject * _resultobj; | |
99 | wxCalendarDateAttr * _result; | |
100 | wxColour * _arg0; | |
101 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
102 | wxColour * _arg2 = (wxColour *) &wxNullColour; | |
103 | wxFont * _arg3 = (wxFont *) &wxNullFont; | |
104 | wxCalendarDateBorder _arg4 = (wxCalendarDateBorder ) (wxCAL_BORDER_NONE); | |
105 | wxColour temp; | |
106 | PyObject * _obj0 = 0; | |
107 | wxColour temp0; | |
108 | PyObject * _obj1 = 0; | |
109 | wxColour temp1; | |
110 | PyObject * _obj2 = 0; | |
111 | PyObject * _argo3 = 0; | |
112 | char *_kwnames[] = { "colText","colBack","colBorder","font","border", NULL }; | |
113 | char _ptemp[128]; | |
114 | ||
115 | self = self; | |
116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOi:new_wxCalendarDateAttr",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4)) | |
117 | return NULL; | |
118 | { | |
119 | _arg0 = &temp; | |
120 | if (! wxColour_helper(_obj0, &_arg0)) | |
121 | return NULL; | |
122 | } | |
123 | if (_obj1) | |
124 | { | |
125 | _arg1 = &temp0; | |
126 | if (! wxColour_helper(_obj1, &_arg1)) | |
127 | return NULL; | |
128 | } | |
129 | if (_obj2) | |
130 | { | |
131 | _arg2 = &temp1; | |
132 | if (! wxColour_helper(_obj2, &_arg2)) | |
133 | return NULL; | |
134 | } | |
135 | if (_argo3) { | |
136 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
137 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxFont_p")) { | |
138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxCalendarDateAttr. Expected _wxFont_p."); | |
139 | return NULL; | |
140 | } | |
141 | } | |
142 | { | |
143 | wxPy_BEGIN_ALLOW_THREADS; | |
144 | _result = (wxCalendarDateAttr *)new_wxCalendarDateAttr(*_arg0,*_arg1,*_arg2,*_arg3,_arg4); | |
145 | ||
146 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 147 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
148 | } if (_result) { |
149 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p"); | |
150 | _resultobj = Py_BuildValue("s",_ptemp); | |
151 | } else { | |
152 | Py_INCREF(Py_None); | |
153 | _resultobj = Py_None; | |
154 | } | |
155 | return _resultobj; | |
156 | } | |
157 | ||
158 | #define new_wxCalendarDateAttrBorder(_swigarg0,_swigarg1) (new wxCalendarDateAttr(_swigarg0,_swigarg1)) | |
159 | static PyObject *_wrap_new_wxCalendarDateAttrBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
160 | PyObject * _resultobj; | |
161 | wxCalendarDateAttr * _result; | |
162 | wxCalendarDateBorder _arg0; | |
163 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
164 | wxColour temp; | |
165 | PyObject * _obj1 = 0; | |
166 | char *_kwnames[] = { "border","colBorder", NULL }; | |
167 | char _ptemp[128]; | |
168 | ||
169 | self = self; | |
170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|O:new_wxCalendarDateAttrBorder",_kwnames,&_arg0,&_obj1)) | |
171 | return NULL; | |
172 | if (_obj1) | |
173 | { | |
174 | _arg1 = &temp; | |
175 | if (! wxColour_helper(_obj1, &_arg1)) | |
176 | return NULL; | |
177 | } | |
178 | { | |
179 | wxPy_BEGIN_ALLOW_THREADS; | |
180 | _result = (wxCalendarDateAttr *)new_wxCalendarDateAttrBorder(_arg0,*_arg1); | |
181 | ||
182 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 183 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
184 | } if (_result) { |
185 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p"); | |
186 | _resultobj = Py_BuildValue("s",_ptemp); | |
187 | } else { | |
188 | Py_INCREF(Py_None); | |
189 | _resultobj = Py_None; | |
190 | } | |
191 | return _resultobj; | |
192 | } | |
193 | ||
194 | #define wxCalendarDateAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
195 | static PyObject *_wrap_wxCalendarDateAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
196 | PyObject * _resultobj; | |
197 | wxCalendarDateAttr * _arg0; | |
198 | wxColour * _arg1; | |
199 | PyObject * _argo0 = 0; | |
200 | wxColour temp; | |
201 | PyObject * _obj1 = 0; | |
202 | char *_kwnames[] = { "self","colText", NULL }; | |
203 | ||
204 | self = self; | |
205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
206 | return NULL; | |
207 | if (_argo0) { | |
208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetTextColour. Expected _wxCalendarDateAttr_p."); | |
211 | return NULL; | |
212 | } | |
213 | } | |
214 | { | |
215 | _arg1 = &temp; | |
216 | if (! wxColour_helper(_obj1, &_arg1)) | |
217 | return NULL; | |
218 | } | |
219 | { | |
220 | wxPy_BEGIN_ALLOW_THREADS; | |
221 | wxCalendarDateAttr_SetTextColour(_arg0,*_arg1); | |
222 | ||
223 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 224 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
225 | } Py_INCREF(Py_None); |
226 | _resultobj = Py_None; | |
227 | return _resultobj; | |
228 | } | |
229 | ||
230 | #define wxCalendarDateAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
231 | static PyObject *_wrap_wxCalendarDateAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
232 | PyObject * _resultobj; | |
233 | wxCalendarDateAttr * _arg0; | |
234 | wxColour * _arg1; | |
235 | PyObject * _argo0 = 0; | |
236 | wxColour temp; | |
237 | PyObject * _obj1 = 0; | |
238 | char *_kwnames[] = { "self","colBack", NULL }; | |
239 | ||
240 | self = self; | |
241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
242 | return NULL; | |
243 | if (_argo0) { | |
244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetBackgroundColour. Expected _wxCalendarDateAttr_p."); | |
247 | return NULL; | |
248 | } | |
249 | } | |
250 | { | |
251 | _arg1 = &temp; | |
252 | if (! wxColour_helper(_obj1, &_arg1)) | |
253 | return NULL; | |
254 | } | |
255 | { | |
256 | wxPy_BEGIN_ALLOW_THREADS; | |
257 | wxCalendarDateAttr_SetBackgroundColour(_arg0,*_arg1); | |
258 | ||
259 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 260 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
261 | } Py_INCREF(Py_None); |
262 | _resultobj = Py_None; | |
263 | return _resultobj; | |
264 | } | |
265 | ||
266 | #define wxCalendarDateAttr_SetBorderColour(_swigobj,_swigarg0) (_swigobj->SetBorderColour(_swigarg0)) | |
267 | static PyObject *_wrap_wxCalendarDateAttr_SetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
268 | PyObject * _resultobj; | |
269 | wxCalendarDateAttr * _arg0; | |
270 | wxColour * _arg1; | |
271 | PyObject * _argo0 = 0; | |
272 | wxColour temp; | |
273 | PyObject * _obj1 = 0; | |
274 | char *_kwnames[] = { "self","col", NULL }; | |
275 | ||
276 | self = self; | |
277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetBorderColour",_kwnames,&_argo0,&_obj1)) | |
278 | return NULL; | |
279 | if (_argo0) { | |
280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetBorderColour. Expected _wxCalendarDateAttr_p."); | |
283 | return NULL; | |
284 | } | |
285 | } | |
286 | { | |
287 | _arg1 = &temp; | |
288 | if (! wxColour_helper(_obj1, &_arg1)) | |
289 | return NULL; | |
290 | } | |
291 | { | |
292 | wxPy_BEGIN_ALLOW_THREADS; | |
293 | wxCalendarDateAttr_SetBorderColour(_arg0,*_arg1); | |
294 | ||
295 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 296 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
297 | } Py_INCREF(Py_None); |
298 | _resultobj = Py_None; | |
299 | return _resultobj; | |
300 | } | |
301 | ||
302 | #define wxCalendarDateAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
303 | static PyObject *_wrap_wxCalendarDateAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
304 | PyObject * _resultobj; | |
305 | wxCalendarDateAttr * _arg0; | |
306 | wxFont * _arg1; | |
307 | PyObject * _argo0 = 0; | |
308 | PyObject * _argo1 = 0; | |
309 | char *_kwnames[] = { "self","font", NULL }; | |
310 | ||
311 | self = self; | |
312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarDateAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
313 | return NULL; | |
314 | if (_argo0) { | |
315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetFont. Expected _wxCalendarDateAttr_p."); | |
318 | return NULL; | |
319 | } | |
320 | } | |
321 | if (_argo1) { | |
322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarDateAttr_SetFont. Expected _wxFont_p."); | |
325 | return NULL; | |
326 | } | |
327 | } | |
328 | { | |
329 | wxPy_BEGIN_ALLOW_THREADS; | |
330 | wxCalendarDateAttr_SetFont(_arg0,*_arg1); | |
331 | ||
332 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 333 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
334 | } Py_INCREF(Py_None); |
335 | _resultobj = Py_None; | |
336 | return _resultobj; | |
337 | } | |
338 | ||
339 | #define wxCalendarDateAttr_SetBorder(_swigobj,_swigarg0) (_swigobj->SetBorder(_swigarg0)) | |
340 | static PyObject *_wrap_wxCalendarDateAttr_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
341 | PyObject * _resultobj; | |
342 | wxCalendarDateAttr * _arg0; | |
343 | wxCalendarDateBorder _arg1; | |
344 | PyObject * _argo0 = 0; | |
345 | char *_kwnames[] = { "self","border", NULL }; | |
346 | ||
347 | self = self; | |
348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarDateAttr_SetBorder",_kwnames,&_argo0,&_arg1)) | |
349 | return NULL; | |
350 | if (_argo0) { | |
351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetBorder. Expected _wxCalendarDateAttr_p."); | |
354 | return NULL; | |
355 | } | |
356 | } | |
357 | { | |
358 | wxPy_BEGIN_ALLOW_THREADS; | |
359 | wxCalendarDateAttr_SetBorder(_arg0,_arg1); | |
360 | ||
361 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 362 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
363 | } Py_INCREF(Py_None); |
364 | _resultobj = Py_None; | |
365 | return _resultobj; | |
366 | } | |
367 | ||
368 | #define wxCalendarDateAttr_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0)) | |
369 | static PyObject *_wrap_wxCalendarDateAttr_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
370 | PyObject * _resultobj; | |
371 | wxCalendarDateAttr * _arg0; | |
372 | bool _arg1; | |
373 | PyObject * _argo0 = 0; | |
374 | int tempbool1; | |
375 | char *_kwnames[] = { "self","holiday", NULL }; | |
376 | ||
377 | self = self; | |
378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarDateAttr_SetHoliday",_kwnames,&_argo0,&tempbool1)) | |
379 | return NULL; | |
380 | if (_argo0) { | |
381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_SetHoliday. Expected _wxCalendarDateAttr_p."); | |
384 | return NULL; | |
385 | } | |
386 | } | |
387 | _arg1 = (bool ) tempbool1; | |
388 | { | |
389 | wxPy_BEGIN_ALLOW_THREADS; | |
390 | wxCalendarDateAttr_SetHoliday(_arg0,_arg1); | |
391 | ||
392 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 393 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
394 | } Py_INCREF(Py_None); |
395 | _resultobj = Py_None; | |
396 | return _resultobj; | |
397 | } | |
398 | ||
399 | #define wxCalendarDateAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
400 | static PyObject *_wrap_wxCalendarDateAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
401 | PyObject * _resultobj; | |
402 | bool _result; | |
403 | wxCalendarDateAttr * _arg0; | |
404 | PyObject * _argo0 = 0; | |
405 | char *_kwnames[] = { "self", NULL }; | |
406 | ||
407 | self = self; | |
408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasTextColour",_kwnames,&_argo0)) | |
409 | return NULL; | |
410 | if (_argo0) { | |
411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasTextColour. Expected _wxCalendarDateAttr_p."); | |
414 | return NULL; | |
415 | } | |
416 | } | |
417 | { | |
418 | wxPy_BEGIN_ALLOW_THREADS; | |
419 | _result = (bool )wxCalendarDateAttr_HasTextColour(_arg0); | |
420 | ||
421 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 422 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
423 | } _resultobj = Py_BuildValue("i",_result); |
424 | return _resultobj; | |
425 | } | |
426 | ||
427 | #define wxCalendarDateAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
428 | static PyObject *_wrap_wxCalendarDateAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
429 | PyObject * _resultobj; | |
430 | bool _result; | |
431 | wxCalendarDateAttr * _arg0; | |
432 | PyObject * _argo0 = 0; | |
433 | char *_kwnames[] = { "self", NULL }; | |
434 | ||
435 | self = self; | |
436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
437 | return NULL; | |
438 | if (_argo0) { | |
439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasBackgroundColour. Expected _wxCalendarDateAttr_p."); | |
442 | return NULL; | |
443 | } | |
444 | } | |
445 | { | |
446 | wxPy_BEGIN_ALLOW_THREADS; | |
447 | _result = (bool )wxCalendarDateAttr_HasBackgroundColour(_arg0); | |
448 | ||
449 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 450 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
451 | } _resultobj = Py_BuildValue("i",_result); |
452 | return _resultobj; | |
453 | } | |
454 | ||
455 | #define wxCalendarDateAttr_HasBorderColour(_swigobj) (_swigobj->HasBorderColour()) | |
456 | static PyObject *_wrap_wxCalendarDateAttr_HasBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
457 | PyObject * _resultobj; | |
458 | bool _result; | |
459 | wxCalendarDateAttr * _arg0; | |
460 | PyObject * _argo0 = 0; | |
461 | char *_kwnames[] = { "self", NULL }; | |
462 | ||
463 | self = self; | |
464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasBorderColour",_kwnames,&_argo0)) | |
465 | return NULL; | |
466 | if (_argo0) { | |
467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasBorderColour. Expected _wxCalendarDateAttr_p."); | |
470 | return NULL; | |
471 | } | |
472 | } | |
473 | { | |
474 | wxPy_BEGIN_ALLOW_THREADS; | |
475 | _result = (bool )wxCalendarDateAttr_HasBorderColour(_arg0); | |
476 | ||
477 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 478 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
479 | } _resultobj = Py_BuildValue("i",_result); |
480 | return _resultobj; | |
481 | } | |
482 | ||
483 | #define wxCalendarDateAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
484 | static PyObject *_wrap_wxCalendarDateAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
485 | PyObject * _resultobj; | |
486 | bool _result; | |
487 | wxCalendarDateAttr * _arg0; | |
488 | PyObject * _argo0 = 0; | |
489 | char *_kwnames[] = { "self", NULL }; | |
490 | ||
491 | self = self; | |
492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasFont",_kwnames,&_argo0)) | |
493 | return NULL; | |
494 | if (_argo0) { | |
495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasFont. Expected _wxCalendarDateAttr_p."); | |
498 | return NULL; | |
499 | } | |
500 | } | |
501 | { | |
502 | wxPy_BEGIN_ALLOW_THREADS; | |
503 | _result = (bool )wxCalendarDateAttr_HasFont(_arg0); | |
504 | ||
505 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 506 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
507 | } _resultobj = Py_BuildValue("i",_result); |
508 | return _resultobj; | |
509 | } | |
510 | ||
511 | #define wxCalendarDateAttr_HasBorder(_swigobj) (_swigobj->HasBorder()) | |
512 | static PyObject *_wrap_wxCalendarDateAttr_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
513 | PyObject * _resultobj; | |
514 | bool _result; | |
515 | wxCalendarDateAttr * _arg0; | |
516 | PyObject * _argo0 = 0; | |
517 | char *_kwnames[] = { "self", NULL }; | |
518 | ||
519 | self = self; | |
520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_HasBorder",_kwnames,&_argo0)) | |
521 | return NULL; | |
522 | if (_argo0) { | |
523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_HasBorder. Expected _wxCalendarDateAttr_p."); | |
526 | return NULL; | |
527 | } | |
528 | } | |
529 | { | |
530 | wxPy_BEGIN_ALLOW_THREADS; | |
531 | _result = (bool )wxCalendarDateAttr_HasBorder(_arg0); | |
532 | ||
533 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 534 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
535 | } _resultobj = Py_BuildValue("i",_result); |
536 | return _resultobj; | |
537 | } | |
538 | ||
539 | #define wxCalendarDateAttr_IsHoliday(_swigobj) (_swigobj->IsHoliday()) | |
540 | static PyObject *_wrap_wxCalendarDateAttr_IsHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
541 | PyObject * _resultobj; | |
542 | bool _result; | |
543 | wxCalendarDateAttr * _arg0; | |
544 | PyObject * _argo0 = 0; | |
545 | char *_kwnames[] = { "self", NULL }; | |
546 | ||
547 | self = self; | |
548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_IsHoliday",_kwnames,&_argo0)) | |
549 | return NULL; | |
550 | if (_argo0) { | |
551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_IsHoliday. Expected _wxCalendarDateAttr_p."); | |
554 | return NULL; | |
555 | } | |
556 | } | |
557 | { | |
558 | wxPy_BEGIN_ALLOW_THREADS; | |
559 | _result = (bool )wxCalendarDateAttr_IsHoliday(_arg0); | |
560 | ||
561 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 562 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
563 | } _resultobj = Py_BuildValue("i",_result); |
564 | return _resultobj; | |
565 | } | |
566 | ||
567 | #define wxCalendarDateAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
568 | static PyObject *_wrap_wxCalendarDateAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
569 | PyObject * _resultobj; | |
570 | wxColour * _result; | |
571 | wxCalendarDateAttr * _arg0; | |
572 | PyObject * _argo0 = 0; | |
573 | char *_kwnames[] = { "self", NULL }; | |
574 | char _ptemp[128]; | |
575 | ||
576 | self = self; | |
577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetTextColour",_kwnames,&_argo0)) | |
578 | return NULL; | |
579 | if (_argo0) { | |
580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetTextColour. Expected _wxCalendarDateAttr_p."); | |
583 | return NULL; | |
584 | } | |
585 | } | |
586 | { | |
587 | wxPy_BEGIN_ALLOW_THREADS; | |
588 | const wxColour & _result_ref = wxCalendarDateAttr_GetTextColour(_arg0); | |
589 | _result = (wxColour *) &_result_ref; | |
590 | ||
591 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 592 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
593 | } if (_result) { |
594 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
595 | _resultobj = Py_BuildValue("s",_ptemp); | |
596 | } else { | |
597 | Py_INCREF(Py_None); | |
598 | _resultobj = Py_None; | |
599 | } | |
600 | return _resultobj; | |
601 | } | |
602 | ||
603 | #define wxCalendarDateAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
604 | static PyObject *_wrap_wxCalendarDateAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
605 | PyObject * _resultobj; | |
606 | wxColour * _result; | |
607 | wxCalendarDateAttr * _arg0; | |
608 | PyObject * _argo0 = 0; | |
609 | char *_kwnames[] = { "self", NULL }; | |
610 | char _ptemp[128]; | |
611 | ||
612 | self = self; | |
613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
614 | return NULL; | |
615 | if (_argo0) { | |
616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetBackgroundColour. Expected _wxCalendarDateAttr_p."); | |
619 | return NULL; | |
620 | } | |
621 | } | |
622 | { | |
623 | wxPy_BEGIN_ALLOW_THREADS; | |
624 | const wxColour & _result_ref = wxCalendarDateAttr_GetBackgroundColour(_arg0); | |
625 | _result = (wxColour *) &_result_ref; | |
626 | ||
627 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 628 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
629 | } if (_result) { |
630 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
631 | _resultobj = Py_BuildValue("s",_ptemp); | |
632 | } else { | |
633 | Py_INCREF(Py_None); | |
634 | _resultobj = Py_None; | |
635 | } | |
636 | return _resultobj; | |
637 | } | |
638 | ||
639 | #define wxCalendarDateAttr_GetBorderColour(_swigobj) (_swigobj->GetBorderColour()) | |
640 | static PyObject *_wrap_wxCalendarDateAttr_GetBorderColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
641 | PyObject * _resultobj; | |
642 | wxColour * _result; | |
643 | wxCalendarDateAttr * _arg0; | |
644 | PyObject * _argo0 = 0; | |
645 | char *_kwnames[] = { "self", NULL }; | |
646 | char _ptemp[128]; | |
647 | ||
648 | self = self; | |
649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetBorderColour",_kwnames,&_argo0)) | |
650 | return NULL; | |
651 | if (_argo0) { | |
652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetBorderColour. Expected _wxCalendarDateAttr_p."); | |
655 | return NULL; | |
656 | } | |
657 | } | |
658 | { | |
659 | wxPy_BEGIN_ALLOW_THREADS; | |
660 | const wxColour & _result_ref = wxCalendarDateAttr_GetBorderColour(_arg0); | |
661 | _result = (wxColour *) &_result_ref; | |
662 | ||
663 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 664 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
665 | } if (_result) { |
666 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
667 | _resultobj = Py_BuildValue("s",_ptemp); | |
668 | } else { | |
669 | Py_INCREF(Py_None); | |
670 | _resultobj = Py_None; | |
671 | } | |
672 | return _resultobj; | |
673 | } | |
674 | ||
675 | #define wxCalendarDateAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
676 | static PyObject *_wrap_wxCalendarDateAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
677 | PyObject * _resultobj; | |
678 | wxFont * _result; | |
679 | wxCalendarDateAttr * _arg0; | |
680 | PyObject * _argo0 = 0; | |
681 | char *_kwnames[] = { "self", NULL }; | |
682 | char _ptemp[128]; | |
683 | ||
684 | self = self; | |
685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetFont",_kwnames,&_argo0)) | |
686 | return NULL; | |
687 | if (_argo0) { | |
688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetFont. Expected _wxCalendarDateAttr_p."); | |
691 | return NULL; | |
692 | } | |
693 | } | |
694 | { | |
695 | wxPy_BEGIN_ALLOW_THREADS; | |
696 | const wxFont & _result_ref = wxCalendarDateAttr_GetFont(_arg0); | |
697 | _result = (wxFont *) &_result_ref; | |
698 | ||
699 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 700 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
701 | } if (_result) { |
702 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
703 | _resultobj = Py_BuildValue("s",_ptemp); | |
704 | } else { | |
705 | Py_INCREF(Py_None); | |
706 | _resultobj = Py_None; | |
707 | } | |
708 | return _resultobj; | |
709 | } | |
710 | ||
711 | #define wxCalendarDateAttr_GetBorder(_swigobj) (_swigobj->GetBorder()) | |
712 | static PyObject *_wrap_wxCalendarDateAttr_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
713 | PyObject * _resultobj; | |
714 | wxCalendarDateBorder _result; | |
715 | wxCalendarDateAttr * _arg0; | |
716 | PyObject * _argo0 = 0; | |
717 | char *_kwnames[] = { "self", NULL }; | |
718 | ||
719 | self = self; | |
720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarDateAttr_GetBorder",_kwnames,&_argo0)) | |
721 | return NULL; | |
722 | if (_argo0) { | |
723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarDateAttr_p")) { | |
725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarDateAttr_GetBorder. Expected _wxCalendarDateAttr_p."); | |
726 | return NULL; | |
727 | } | |
728 | } | |
729 | { | |
730 | wxPy_BEGIN_ALLOW_THREADS; | |
731 | _result = (wxCalendarDateBorder )wxCalendarDateAttr_GetBorder(_arg0); | |
732 | ||
733 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 734 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
735 | } _resultobj = Py_BuildValue("i",_result); |
736 | return _resultobj; | |
737 | } | |
738 | ||
739 | static void *SwigwxCalendarEventTowxCommandEvent(void *ptr) { | |
740 | wxCalendarEvent *src; | |
741 | wxCommandEvent *dest; | |
742 | src = (wxCalendarEvent *) ptr; | |
743 | dest = (wxCommandEvent *) src; | |
744 | return (void *) dest; | |
745 | } | |
746 | ||
747 | static void *SwigwxCalendarEventTowxEvent(void *ptr) { | |
748 | wxCalendarEvent *src; | |
749 | wxEvent *dest; | |
750 | src = (wxCalendarEvent *) ptr; | |
751 | dest = (wxEvent *) src; | |
752 | return (void *) dest; | |
753 | } | |
754 | ||
9df61a29 RD |
755 | static void *SwigwxCalendarEventTowxObject(void *ptr) { |
756 | wxCalendarEvent *src; | |
757 | wxObject *dest; | |
758 | src = (wxCalendarEvent *) ptr; | |
759 | dest = (wxObject *) src; | |
760 | return (void *) dest; | |
761 | } | |
762 | ||
f6bcfd97 BP |
763 | #define new_wxCalendarEvent(_swigarg0,_swigarg1) (new wxCalendarEvent(_swigarg0,_swigarg1)) |
764 | static PyObject *_wrap_new_wxCalendarEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
765 | PyObject * _resultobj; | |
766 | wxCalendarEvent * _result; | |
767 | wxCalendarCtrl * _arg0; | |
768 | wxEventType _arg1; | |
769 | PyObject * _argo0 = 0; | |
770 | char *_kwnames[] = { "cal","type", NULL }; | |
771 | char _ptemp[128]; | |
772 | ||
773 | self = self; | |
774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxCalendarEvent",_kwnames,&_argo0,&_arg1)) | |
775 | return NULL; | |
776 | if (_argo0) { | |
777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarEvent. Expected _wxCalendarCtrl_p."); | |
780 | return NULL; | |
781 | } | |
782 | } | |
783 | { | |
784 | wxPy_BEGIN_ALLOW_THREADS; | |
785 | _result = (wxCalendarEvent *)new_wxCalendarEvent(_arg0,_arg1); | |
786 | ||
787 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 788 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
789 | } if (_result) { |
790 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarEvent_p"); | |
791 | _resultobj = Py_BuildValue("s",_ptemp); | |
792 | } else { | |
793 | Py_INCREF(Py_None); | |
794 | _resultobj = Py_None; | |
795 | } | |
796 | return _resultobj; | |
797 | } | |
798 | ||
799 | #define wxCalendarEvent_GetDate(_swigobj) (_swigobj->GetDate()) | |
800 | static PyObject *_wrap_wxCalendarEvent_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
801 | PyObject * _resultobj; | |
802 | wxDateTime * _result; | |
803 | wxCalendarEvent * _arg0; | |
804 | PyObject * _argo0 = 0; | |
805 | char *_kwnames[] = { "self", NULL }; | |
806 | char _ptemp[128]; | |
807 | ||
808 | self = self; | |
809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarEvent_GetDate",_kwnames,&_argo0)) | |
810 | return NULL; | |
811 | if (_argo0) { | |
812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarEvent_p")) { | |
814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarEvent_GetDate. Expected _wxCalendarEvent_p."); | |
815 | return NULL; | |
816 | } | |
817 | } | |
818 | { | |
819 | wxPy_BEGIN_ALLOW_THREADS; | |
820 | const wxDateTime & _result_ref = wxCalendarEvent_GetDate(_arg0); | |
821 | _result = (wxDateTime *) &_result_ref; | |
822 | ||
823 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 824 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
825 | } if (_result) { |
826 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
827 | _resultobj = Py_BuildValue("s",_ptemp); | |
828 | } else { | |
829 | Py_INCREF(Py_None); | |
830 | _resultobj = Py_None; | |
831 | } | |
832 | return _resultobj; | |
833 | } | |
834 | ||
835 | #define wxCalendarEvent_GetWeekDay(_swigobj) (_swigobj->GetWeekDay()) | |
836 | static PyObject *_wrap_wxCalendarEvent_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
837 | PyObject * _resultobj; | |
838 | wxDateTime::WeekDay _result; | |
839 | wxCalendarEvent * _arg0; | |
840 | PyObject * _argo0 = 0; | |
841 | char *_kwnames[] = { "self", NULL }; | |
842 | ||
843 | self = self; | |
844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarEvent_GetWeekDay",_kwnames,&_argo0)) | |
845 | return NULL; | |
846 | if (_argo0) { | |
847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarEvent_p")) { | |
849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarEvent_GetWeekDay. Expected _wxCalendarEvent_p."); | |
850 | return NULL; | |
851 | } | |
852 | } | |
853 | { | |
854 | wxPy_BEGIN_ALLOW_THREADS; | |
855 | _result = (wxDateTime::WeekDay )wxCalendarEvent_GetWeekDay(_arg0); | |
856 | ||
857 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 858 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
859 | } _resultobj = Py_BuildValue("i",_result); |
860 | return _resultobj; | |
861 | } | |
862 | ||
863 | static void *SwigwxCalendarCtrlTowxControl(void *ptr) { | |
864 | wxCalendarCtrl *src; | |
865 | wxControl *dest; | |
866 | src = (wxCalendarCtrl *) ptr; | |
867 | dest = (wxControl *) src; | |
868 | return (void *) dest; | |
869 | } | |
870 | ||
871 | static void *SwigwxCalendarCtrlTowxWindow(void *ptr) { | |
872 | wxCalendarCtrl *src; | |
873 | wxWindow *dest; | |
874 | src = (wxCalendarCtrl *) ptr; | |
875 | dest = (wxWindow *) src; | |
876 | return (void *) dest; | |
877 | } | |
878 | ||
879 | static void *SwigwxCalendarCtrlTowxEvtHandler(void *ptr) { | |
880 | wxCalendarCtrl *src; | |
881 | wxEvtHandler *dest; | |
882 | src = (wxCalendarCtrl *) ptr; | |
883 | dest = (wxEvtHandler *) src; | |
884 | return (void *) dest; | |
885 | } | |
886 | ||
9df61a29 RD |
887 | static void *SwigwxCalendarCtrlTowxObject(void *ptr) { |
888 | wxCalendarCtrl *src; | |
889 | wxObject *dest; | |
890 | src = (wxCalendarCtrl *) ptr; | |
891 | dest = (wxObject *) src; | |
892 | return (void *) dest; | |
893 | } | |
894 | ||
f6bcfd97 BP |
895 | #define new_wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
896 | static PyObject *_wrap_new_wxCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
897 | PyObject * _resultobj; | |
898 | wxCalendarCtrl * _result; | |
899 | wxWindow * _arg0; | |
900 | wxWindowID _arg1; | |
901 | wxDateTime * _arg2 = (wxDateTime *) &wxDefaultDateTime; | |
902 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
903 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
904 | long _arg5 = (long ) (wxCAL_SHOW_HOLIDAYS); | |
905 | char * _arg6 = (char *) "calendar"; | |
906 | PyObject * _argo0 = 0; | |
907 | PyObject * _argo2 = 0; | |
908 | wxPoint temp; | |
909 | PyObject * _obj3 = 0; | |
910 | wxSize temp0; | |
911 | PyObject * _obj4 = 0; | |
912 | char *_kwnames[] = { "parent","id","date","pos","size","style","name", NULL }; | |
913 | char _ptemp[128]; | |
914 | ||
915 | self = self; | |
916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOOls:new_wxCalendarCtrl",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
917 | return NULL; | |
918 | if (_argo0) { | |
919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCalendarCtrl. Expected _wxWindow_p."); | |
922 | return NULL; | |
923 | } | |
924 | } | |
925 | if (_argo2) { | |
926 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
927 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxCalendarCtrl. Expected _wxDateTime_p."); | |
929 | return NULL; | |
930 | } | |
931 | } | |
932 | if (_obj3) | |
933 | { | |
934 | _arg3 = &temp; | |
935 | if (! wxPoint_helper(_obj3, &_arg3)) | |
936 | return NULL; | |
937 | } | |
938 | if (_obj4) | |
939 | { | |
940 | _arg4 = &temp0; | |
941 | if (! wxSize_helper(_obj4, &_arg4)) | |
942 | return NULL; | |
943 | } | |
944 | { | |
945 | wxPy_BEGIN_ALLOW_THREADS; | |
946 | _result = (wxCalendarCtrl *)new_wxCalendarCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
947 | ||
948 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 949 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
950 | } if (_result) { |
951 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarCtrl_p"); | |
952 | _resultobj = Py_BuildValue("s",_ptemp); | |
953 | } else { | |
954 | Py_INCREF(Py_None); | |
955 | _resultobj = Py_None; | |
956 | } | |
957 | return _resultobj; | |
958 | } | |
959 | ||
960 | #define wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0)) | |
961 | static PyObject *_wrap_wxCalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
962 | PyObject * _resultobj; | |
963 | wxCalendarCtrl * _arg0; | |
964 | wxDateTime * _arg1; | |
965 | PyObject * _argo0 = 0; | |
966 | PyObject * _argo1 = 0; | |
967 | char *_kwnames[] = { "self","date", NULL }; | |
968 | ||
969 | self = self; | |
970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarCtrl_SetDate",_kwnames,&_argo0,&_argo1)) | |
971 | return NULL; | |
972 | if (_argo0) { | |
973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetDate. Expected _wxCalendarCtrl_p."); | |
976 | return NULL; | |
977 | } | |
978 | } | |
979 | if (_argo1) { | |
980 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
981 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetDate. Expected _wxDateTime_p."); | |
983 | return NULL; | |
984 | } | |
985 | } | |
986 | { | |
987 | wxPy_BEGIN_ALLOW_THREADS; | |
988 | wxCalendarCtrl_SetDate(_arg0,*_arg1); | |
989 | ||
990 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 991 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
992 | } Py_INCREF(Py_None); |
993 | _resultobj = Py_None; | |
994 | return _resultobj; | |
995 | } | |
996 | ||
997 | #define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate()) | |
998 | static PyObject *_wrap_wxCalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
999 | PyObject * _resultobj; | |
1000 | wxDateTime * _result; | |
1001 | wxCalendarCtrl * _arg0; | |
1002 | PyObject * _argo0 = 0; | |
1003 | char *_kwnames[] = { "self", NULL }; | |
1004 | char _ptemp[128]; | |
1005 | ||
1006 | self = self; | |
1007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetDate",_kwnames,&_argo0)) | |
1008 | return NULL; | |
1009 | if (_argo0) { | |
1010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetDate. Expected _wxCalendarCtrl_p."); | |
1013 | return NULL; | |
1014 | } | |
1015 | } | |
1016 | { | |
1017 | wxPy_BEGIN_ALLOW_THREADS; | |
1018 | const wxDateTime & _result_ref = wxCalendarCtrl_GetDate(_arg0); | |
1019 | _result = (wxDateTime *) &_result_ref; | |
1020 | ||
1021 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1022 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1023 | } if (_result) { |
1024 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
1025 | _resultobj = Py_BuildValue("s",_ptemp); | |
1026 | } else { | |
1027 | Py_INCREF(Py_None); | |
1028 | _resultobj = Py_None; | |
1029 | } | |
1030 | return _resultobj; | |
1031 | } | |
1032 | ||
1033 | #define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0)) | |
1034 | static PyObject *_wrap_wxCalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1035 | PyObject * _resultobj; | |
1036 | wxCalendarCtrl * _arg0; | |
1037 | bool _arg1 = (bool ) TRUE; | |
1038 | PyObject * _argo0 = 0; | |
1039 | int tempbool1 = (int) TRUE; | |
1040 | char *_kwnames[] = { "self","enable", NULL }; | |
1041 | ||
1042 | self = self; | |
1043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableYearChange",_kwnames,&_argo0,&tempbool1)) | |
1044 | return NULL; | |
1045 | if (_argo0) { | |
1046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableYearChange. Expected _wxCalendarCtrl_p."); | |
1049 | return NULL; | |
1050 | } | |
1051 | } | |
1052 | _arg1 = (bool ) tempbool1; | |
1053 | { | |
1054 | wxPy_BEGIN_ALLOW_THREADS; | |
1055 | wxCalendarCtrl_EnableYearChange(_arg0,_arg1); | |
1056 | ||
1057 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1058 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1059 | } Py_INCREF(Py_None); |
1060 | _resultobj = Py_None; | |
1061 | return _resultobj; | |
1062 | } | |
1063 | ||
1064 | #define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0)) | |
1065 | static PyObject *_wrap_wxCalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1066 | PyObject * _resultobj; | |
1067 | wxCalendarCtrl * _arg0; | |
1068 | bool _arg1 = (bool ) TRUE; | |
1069 | PyObject * _argo0 = 0; | |
1070 | int tempbool1 = (int) TRUE; | |
1071 | char *_kwnames[] = { "self","enable", NULL }; | |
1072 | ||
1073 | self = self; | |
1074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableMonthChange",_kwnames,&_argo0,&tempbool1)) | |
1075 | return NULL; | |
1076 | if (_argo0) { | |
1077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableMonthChange. Expected _wxCalendarCtrl_p."); | |
1080 | return NULL; | |
1081 | } | |
1082 | } | |
1083 | _arg1 = (bool ) tempbool1; | |
1084 | { | |
1085 | wxPy_BEGIN_ALLOW_THREADS; | |
1086 | wxCalendarCtrl_EnableMonthChange(_arg0,_arg1); | |
1087 | ||
1088 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1089 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1090 | } Py_INCREF(Py_None); |
1091 | _resultobj = Py_None; | |
1092 | return _resultobj; | |
1093 | } | |
1094 | ||
1095 | #define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0)) | |
1096 | static PyObject *_wrap_wxCalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1097 | PyObject * _resultobj; | |
1098 | wxCalendarCtrl * _arg0; | |
1099 | bool _arg1 = (bool ) TRUE; | |
1100 | PyObject * _argo0 = 0; | |
1101 | int tempbool1 = (int) TRUE; | |
1102 | char *_kwnames[] = { "self","display", NULL }; | |
1103 | ||
1104 | self = self; | |
1105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableHolidayDisplay",_kwnames,&_argo0,&tempbool1)) | |
1106 | return NULL; | |
1107 | if (_argo0) { | |
1108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableHolidayDisplay. Expected _wxCalendarCtrl_p."); | |
1111 | return NULL; | |
1112 | } | |
1113 | } | |
1114 | _arg1 = (bool ) tempbool1; | |
1115 | { | |
1116 | wxPy_BEGIN_ALLOW_THREADS; | |
1117 | wxCalendarCtrl_EnableHolidayDisplay(_arg0,_arg1); | |
1118 | ||
1119 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1120 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1121 | } Py_INCREF(Py_None); |
1122 | _resultobj = Py_None; | |
1123 | return _resultobj; | |
1124 | } | |
1125 | ||
1126 | #define wxCalendarCtrl_SetHeaderColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeaderColours(_swigarg0,_swigarg1)) | |
1127 | static PyObject *_wrap_wxCalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1128 | PyObject * _resultobj; | |
1129 | wxCalendarCtrl * _arg0; | |
1130 | wxColour * _arg1; | |
1131 | wxColour * _arg2; | |
1132 | PyObject * _argo0 = 0; | |
1133 | wxColour temp; | |
1134 | PyObject * _obj1 = 0; | |
1135 | wxColour temp0; | |
1136 | PyObject * _obj2 = 0; | |
1137 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1138 | ||
1139 | self = self; | |
1140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHeaderColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1141 | return NULL; | |
1142 | if (_argo0) { | |
1143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHeaderColours. Expected _wxCalendarCtrl_p."); | |
1146 | return NULL; | |
1147 | } | |
1148 | } | |
1149 | { | |
1150 | _arg1 = &temp; | |
1151 | if (! wxColour_helper(_obj1, &_arg1)) | |
1152 | return NULL; | |
1153 | } | |
1154 | { | |
1155 | _arg2 = &temp0; | |
1156 | if (! wxColour_helper(_obj2, &_arg2)) | |
1157 | return NULL; | |
1158 | } | |
1159 | { | |
1160 | wxPy_BEGIN_ALLOW_THREADS; | |
1161 | wxCalendarCtrl_SetHeaderColours(_arg0,*_arg1,*_arg2); | |
1162 | ||
1163 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1164 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1165 | } Py_INCREF(Py_None); |
1166 | _resultobj = Py_None; | |
1167 | return _resultobj; | |
1168 | } | |
1169 | ||
1170 | #define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg()) | |
1171 | static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1172 | PyObject * _resultobj; | |
1173 | wxColour * _result; | |
1174 | wxCalendarCtrl * _arg0; | |
1175 | PyObject * _argo0 = 0; | |
1176 | char *_kwnames[] = { "self", NULL }; | |
1177 | char _ptemp[128]; | |
1178 | ||
1179 | self = self; | |
1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourFg",_kwnames,&_argo0)) | |
1181 | return NULL; | |
1182 | if (_argo0) { | |
1183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourFg. Expected _wxCalendarCtrl_p."); | |
1186 | return NULL; | |
1187 | } | |
1188 | } | |
1189 | { | |
1190 | wxPy_BEGIN_ALLOW_THREADS; | |
1191 | const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourFg(_arg0); | |
1192 | _result = (wxColour *) &_result_ref; | |
1193 | ||
1194 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1195 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1196 | } if (_result) { |
1197 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1198 | _resultobj = Py_BuildValue("s",_ptemp); | |
1199 | } else { | |
1200 | Py_INCREF(Py_None); | |
1201 | _resultobj = Py_None; | |
1202 | } | |
1203 | return _resultobj; | |
1204 | } | |
1205 | ||
1206 | #define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg()) | |
1207 | static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1208 | PyObject * _resultobj; | |
1209 | wxColour * _result; | |
1210 | wxCalendarCtrl * _arg0; | |
1211 | PyObject * _argo0 = 0; | |
1212 | char *_kwnames[] = { "self", NULL }; | |
1213 | char _ptemp[128]; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourBg",_kwnames,&_argo0)) | |
1217 | return NULL; | |
1218 | if (_argo0) { | |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourBg. Expected _wxCalendarCtrl_p."); | |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | { | |
1226 | wxPy_BEGIN_ALLOW_THREADS; | |
1227 | const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourBg(_arg0); | |
1228 | _result = (wxColour *) &_result_ref; | |
1229 | ||
1230 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1231 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1232 | } if (_result) { |
1233 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1234 | _resultobj = Py_BuildValue("s",_ptemp); | |
1235 | } else { | |
1236 | Py_INCREF(Py_None); | |
1237 | _resultobj = Py_None; | |
1238 | } | |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1)) | |
1243 | static PyObject *_wrap_wxCalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | wxCalendarCtrl * _arg0; | |
1246 | wxColour * _arg1; | |
1247 | wxColour * _arg2; | |
1248 | PyObject * _argo0 = 0; | |
1249 | wxColour temp; | |
1250 | PyObject * _obj1 = 0; | |
1251 | wxColour temp0; | |
1252 | PyObject * _obj2 = 0; | |
1253 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1254 | ||
1255 | self = self; | |
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHighlightColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1257 | return NULL; | |
1258 | if (_argo0) { | |
1259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHighlightColours. Expected _wxCalendarCtrl_p."); | |
1262 | return NULL; | |
1263 | } | |
1264 | } | |
1265 | { | |
1266 | _arg1 = &temp; | |
1267 | if (! wxColour_helper(_obj1, &_arg1)) | |
1268 | return NULL; | |
1269 | } | |
1270 | { | |
1271 | _arg2 = &temp0; | |
1272 | if (! wxColour_helper(_obj2, &_arg2)) | |
1273 | return NULL; | |
1274 | } | |
1275 | { | |
1276 | wxPy_BEGIN_ALLOW_THREADS; | |
1277 | wxCalendarCtrl_SetHighlightColours(_arg0,*_arg1,*_arg2); | |
1278 | ||
1279 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1280 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1281 | } Py_INCREF(Py_None); |
1282 | _resultobj = Py_None; | |
1283 | return _resultobj; | |
1284 | } | |
1285 | ||
1286 | #define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg()) | |
1287 | static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1288 | PyObject * _resultobj; | |
1289 | wxColour * _result; | |
1290 | wxCalendarCtrl * _arg0; | |
1291 | PyObject * _argo0 = 0; | |
1292 | char *_kwnames[] = { "self", NULL }; | |
1293 | char _ptemp[128]; | |
1294 | ||
1295 | self = self; | |
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourFg",_kwnames,&_argo0)) | |
1297 | return NULL; | |
1298 | if (_argo0) { | |
1299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourFg. Expected _wxCalendarCtrl_p."); | |
1302 | return NULL; | |
1303 | } | |
1304 | } | |
1305 | { | |
1306 | wxPy_BEGIN_ALLOW_THREADS; | |
1307 | const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourFg(_arg0); | |
1308 | _result = (wxColour *) &_result_ref; | |
1309 | ||
1310 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1311 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1312 | } if (_result) { |
1313 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1314 | _resultobj = Py_BuildValue("s",_ptemp); | |
1315 | } else { | |
1316 | Py_INCREF(Py_None); | |
1317 | _resultobj = Py_None; | |
1318 | } | |
1319 | return _resultobj; | |
1320 | } | |
1321 | ||
1322 | #define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg()) | |
1323 | static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1324 | PyObject * _resultobj; | |
1325 | wxColour * _result; | |
1326 | wxCalendarCtrl * _arg0; | |
1327 | PyObject * _argo0 = 0; | |
1328 | char *_kwnames[] = { "self", NULL }; | |
1329 | char _ptemp[128]; | |
1330 | ||
1331 | self = self; | |
1332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourBg",_kwnames,&_argo0)) | |
1333 | return NULL; | |
1334 | if (_argo0) { | |
1335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourBg. Expected _wxCalendarCtrl_p."); | |
1338 | return NULL; | |
1339 | } | |
1340 | } | |
1341 | { | |
1342 | wxPy_BEGIN_ALLOW_THREADS; | |
1343 | const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourBg(_arg0); | |
1344 | _result = (wxColour *) &_result_ref; | |
1345 | ||
1346 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1347 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1348 | } if (_result) { |
1349 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1350 | _resultobj = Py_BuildValue("s",_ptemp); | |
1351 | } else { | |
1352 | Py_INCREF(Py_None); | |
1353 | _resultobj = Py_None; | |
1354 | } | |
1355 | return _resultobj; | |
1356 | } | |
1357 | ||
1358 | #define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1)) | |
1359 | static PyObject *_wrap_wxCalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject * _resultobj; | |
1361 | wxCalendarCtrl * _arg0; | |
1362 | wxColour * _arg1; | |
1363 | wxColour * _arg2; | |
1364 | PyObject * _argo0 = 0; | |
1365 | wxColour temp; | |
1366 | PyObject * _obj1 = 0; | |
1367 | wxColour temp0; | |
1368 | PyObject * _obj2 = 0; | |
1369 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1370 | ||
1371 | self = self; | |
1372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHolidayColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1373 | return NULL; | |
1374 | if (_argo0) { | |
1375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHolidayColours. Expected _wxCalendarCtrl_p."); | |
1378 | return NULL; | |
1379 | } | |
1380 | } | |
1381 | { | |
1382 | _arg1 = &temp; | |
1383 | if (! wxColour_helper(_obj1, &_arg1)) | |
1384 | return NULL; | |
1385 | } | |
1386 | { | |
1387 | _arg2 = &temp0; | |
1388 | if (! wxColour_helper(_obj2, &_arg2)) | |
1389 | return NULL; | |
1390 | } | |
1391 | { | |
1392 | wxPy_BEGIN_ALLOW_THREADS; | |
1393 | wxCalendarCtrl_SetHolidayColours(_arg0,*_arg1,*_arg2); | |
1394 | ||
1395 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1396 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1397 | } Py_INCREF(Py_None); |
1398 | _resultobj = Py_None; | |
1399 | return _resultobj; | |
1400 | } | |
1401 | ||
1402 | #define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg()) | |
1403 | static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1404 | PyObject * _resultobj; | |
1405 | wxColour * _result; | |
1406 | wxCalendarCtrl * _arg0; | |
1407 | PyObject * _argo0 = 0; | |
1408 | char *_kwnames[] = { "self", NULL }; | |
1409 | char _ptemp[128]; | |
1410 | ||
1411 | self = self; | |
1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourFg",_kwnames,&_argo0)) | |
1413 | return NULL; | |
1414 | if (_argo0) { | |
1415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourFg. Expected _wxCalendarCtrl_p."); | |
1418 | return NULL; | |
1419 | } | |
1420 | } | |
1421 | { | |
1422 | wxPy_BEGIN_ALLOW_THREADS; | |
1423 | const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourFg(_arg0); | |
1424 | _result = (wxColour *) &_result_ref; | |
1425 | ||
1426 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1427 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1428 | } if (_result) { |
1429 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1430 | _resultobj = Py_BuildValue("s",_ptemp); | |
1431 | } else { | |
1432 | Py_INCREF(Py_None); | |
1433 | _resultobj = Py_None; | |
1434 | } | |
1435 | return _resultobj; | |
1436 | } | |
1437 | ||
1438 | #define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg()) | |
1439 | static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1440 | PyObject * _resultobj; | |
1441 | wxColour * _result; | |
1442 | wxCalendarCtrl * _arg0; | |
1443 | PyObject * _argo0 = 0; | |
1444 | char *_kwnames[] = { "self", NULL }; | |
1445 | char _ptemp[128]; | |
1446 | ||
1447 | self = self; | |
1448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourBg",_kwnames,&_argo0)) | |
1449 | return NULL; | |
1450 | if (_argo0) { | |
1451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourBg. Expected _wxCalendarCtrl_p."); | |
1454 | return NULL; | |
1455 | } | |
1456 | } | |
1457 | { | |
1458 | wxPy_BEGIN_ALLOW_THREADS; | |
1459 | const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourBg(_arg0); | |
1460 | _result = (wxColour *) &_result_ref; | |
1461 | ||
1462 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1463 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1464 | } if (_result) { |
1465 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1466 | _resultobj = Py_BuildValue("s",_ptemp); | |
1467 | } else { | |
1468 | Py_INCREF(Py_None); | |
1469 | _resultobj = Py_None; | |
1470 | } | |
1471 | return _resultobj; | |
1472 | } | |
1473 | ||
1474 | #define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0)) | |
1475 | static PyObject *_wrap_wxCalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1476 | PyObject * _resultobj; | |
1477 | wxCalendarDateAttr * _result; | |
1478 | wxCalendarCtrl * _arg0; | |
1479 | size_t _arg1; | |
1480 | PyObject * _argo0 = 0; | |
1481 | char *_kwnames[] = { "self","day", NULL }; | |
1482 | char _ptemp[128]; | |
1483 | ||
1484 | self = self; | |
1485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_GetAttr",_kwnames,&_argo0,&_arg1)) | |
1486 | return NULL; | |
1487 | if (_argo0) { | |
1488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetAttr. Expected _wxCalendarCtrl_p."); | |
1491 | return NULL; | |
1492 | } | |
1493 | } | |
1494 | { | |
1495 | wxPy_BEGIN_ALLOW_THREADS; | |
1496 | _result = (wxCalendarDateAttr *)wxCalendarCtrl_GetAttr(_arg0,_arg1); | |
1497 | ||
1498 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1499 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1500 | } if (_result) { |
1501 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p"); | |
1502 | _resultobj = Py_BuildValue("s",_ptemp); | |
1503 | } else { | |
1504 | Py_INCREF(Py_None); | |
1505 | _resultobj = Py_None; | |
1506 | } | |
1507 | return _resultobj; | |
1508 | } | |
1509 | ||
1510 | #define wxCalendarCtrl_SetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttr(_swigarg0,_swigarg1)) | |
1511 | static PyObject *_wrap_wxCalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1512 | PyObject * _resultobj; | |
1513 | wxCalendarCtrl * _arg0; | |
1514 | size_t _arg1; | |
1515 | wxCalendarDateAttr * _arg2; | |
1516 | PyObject * _argo0 = 0; | |
1517 | PyObject * _argo2 = 0; | |
1518 | char *_kwnames[] = { "self","day","attr", NULL }; | |
1519 | ||
1520 | self = self; | |
1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxCalendarCtrl_SetAttr",_kwnames,&_argo0,&_arg1,&_argo2)) | |
1522 | return NULL; | |
1523 | if (_argo0) { | |
1524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetAttr. Expected _wxCalendarCtrl_p."); | |
1527 | return NULL; | |
1528 | } | |
1529 | } | |
1530 | if (_argo2) { | |
1531 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCalendarDateAttr_p")) { | |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_SetAttr. Expected _wxCalendarDateAttr_p."); | |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
1537 | { | |
1538 | wxPy_BEGIN_ALLOW_THREADS; | |
1539 | wxCalendarCtrl_SetAttr(_arg0,_arg1,_arg2); | |
1540 | ||
1541 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1542 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1543 | } Py_INCREF(Py_None); |
1544 | _resultobj = Py_None; | |
1545 | return _resultobj; | |
1546 | } | |
1547 | ||
1548 | #define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0)) | |
1549 | static PyObject *_wrap_wxCalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject * _resultobj; | |
1551 | wxCalendarCtrl * _arg0; | |
1552 | size_t _arg1; | |
1553 | PyObject * _argo0 = 0; | |
1554 | char *_kwnames[] = { "self","day", NULL }; | |
1555 | ||
1556 | self = self; | |
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_SetHoliday",_kwnames,&_argo0,&_arg1)) | |
1558 | return NULL; | |
1559 | if (_argo0) { | |
1560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHoliday. Expected _wxCalendarCtrl_p."); | |
1563 | return NULL; | |
1564 | } | |
1565 | } | |
1566 | { | |
1567 | wxPy_BEGIN_ALLOW_THREADS; | |
1568 | wxCalendarCtrl_SetHoliday(_arg0,_arg1); | |
1569 | ||
1570 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1571 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1572 | } Py_INCREF(Py_None); |
1573 | _resultobj = Py_None; | |
1574 | return _resultobj; | |
1575 | } | |
1576 | ||
1577 | #define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0)) | |
1578 | static PyObject *_wrap_wxCalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1579 | PyObject * _resultobj; | |
1580 | wxCalendarCtrl * _arg0; | |
1581 | size_t _arg1; | |
1582 | PyObject * _argo0 = 0; | |
1583 | char *_kwnames[] = { "self","day", NULL }; | |
1584 | ||
1585 | self = self; | |
1586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_ResetAttr",_kwnames,&_argo0,&_arg1)) | |
1587 | return NULL; | |
1588 | if (_argo0) { | |
1589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_ResetAttr. Expected _wxCalendarCtrl_p."); | |
1592 | return NULL; | |
1593 | } | |
1594 | } | |
1595 | { | |
1596 | wxPy_BEGIN_ALLOW_THREADS; | |
1597 | wxCalendarCtrl_ResetAttr(_arg0,_arg1); | |
1598 | ||
1599 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1600 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1601 | } Py_INCREF(Py_None); |
1602 | _resultobj = Py_None; | |
1603 | return _resultobj; | |
1604 | } | |
1605 | ||
1606 | #define wxCalendarCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2)) | |
1607 | static PyObject *_wrap_wxCalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject * _resultobj; | |
1609 | wxCalendarHitTestResult _result; | |
1610 | wxCalendarCtrl * _arg0; | |
1611 | wxPoint * _arg1; | |
1612 | wxDateTime * _arg2 = (wxDateTime *) NULL; | |
1613 | wxDateTime::WeekDay * _arg3 = (wxDateTime::WeekDay *) NULL; | |
1614 | PyObject * _argo0 = 0; | |
1615 | wxPoint temp; | |
1616 | PyObject * _obj1 = 0; | |
1617 | PyObject * _argo2 = 0; | |
1618 | PyObject * _argo3 = 0; | |
1619 | char *_kwnames[] = { "self","pos","date","wd", NULL }; | |
1620 | ||
1621 | self = self; | |
1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxCalendarCtrl_HitTest",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
1623 | return NULL; | |
1624 | if (_argo0) { | |
1625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_HitTest. Expected _wxCalendarCtrl_p."); | |
1628 | return NULL; | |
1629 | } | |
1630 | } | |
1631 | { | |
1632 | _arg1 = &temp; | |
1633 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1634 | return NULL; | |
1635 | } | |
1636 | if (_argo2) { | |
1637 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1638 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
1639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_HitTest. Expected _wxDateTime_p."); | |
1640 | return NULL; | |
1641 | } | |
1642 | } | |
1643 | if (_argo3) { | |
1644 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1645 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime::WeekDay_p")) { | |
1646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_HitTest. Expected _wxDateTime::WeekDay_p."); | |
1647 | return NULL; | |
1648 | } | |
1649 | } | |
1650 | { | |
1651 | wxPy_BEGIN_ALLOW_THREADS; | |
1652 | _result = (wxCalendarHitTestResult )wxCalendarCtrl_HitTest(_arg0,*_arg1,_arg2,_arg3); | |
1653 | ||
1654 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1655 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1656 | } _resultobj = Py_BuildValue("i",_result); |
1657 | return _resultobj; | |
1658 | } | |
1659 | ||
1660 | static PyMethodDef calendarcMethods[] = { | |
1661 | { "wxCalendarCtrl_HitTest", (PyCFunction) _wrap_wxCalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
1662 | { "wxCalendarCtrl_ResetAttr", (PyCFunction) _wrap_wxCalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1663 | { "wxCalendarCtrl_SetHoliday", (PyCFunction) _wrap_wxCalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1664 | { "wxCalendarCtrl_SetAttr", (PyCFunction) _wrap_wxCalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1665 | { "wxCalendarCtrl_GetAttr", (PyCFunction) _wrap_wxCalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1666 | { "wxCalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1667 | { "wxCalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1668 | { "wxCalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS }, | |
1669 | { "wxCalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1670 | { "wxCalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1671 | { "wxCalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS }, | |
1672 | { "wxCalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1673 | { "wxCalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1674 | { "wxCalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS }, | |
1675 | { "wxCalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_wxCalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS }, | |
1676 | { "wxCalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS }, | |
1677 | { "wxCalendarCtrl_EnableYearChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS }, | |
1678 | { "wxCalendarCtrl_GetDate", (PyCFunction) _wrap_wxCalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS }, | |
1679 | { "wxCalendarCtrl_SetDate", (PyCFunction) _wrap_wxCalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS }, | |
1680 | { "new_wxCalendarCtrl", (PyCFunction) _wrap_new_wxCalendarCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1681 | { "wxCalendarEvent_GetWeekDay", (PyCFunction) _wrap_wxCalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
1682 | { "wxCalendarEvent_GetDate", (PyCFunction) _wrap_wxCalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS }, | |
1683 | { "new_wxCalendarEvent", (PyCFunction) _wrap_new_wxCalendarEvent, METH_VARARGS | METH_KEYWORDS }, | |
1684 | { "wxCalendarDateAttr_GetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
1685 | { "wxCalendarDateAttr_GetFont", (PyCFunction) _wrap_wxCalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1686 | { "wxCalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1687 | { "wxCalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1688 | { "wxCalendarDateAttr_GetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1689 | { "wxCalendarDateAttr_IsHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1690 | { "wxCalendarDateAttr_HasBorder", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
1691 | { "wxCalendarDateAttr_HasFont", (PyCFunction) _wrap_wxCalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
1692 | { "wxCalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1693 | { "wxCalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1694 | { "wxCalendarDateAttr_HasTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1695 | { "wxCalendarDateAttr_SetHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1696 | { "wxCalendarDateAttr_SetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
1697 | { "wxCalendarDateAttr_SetFont", (PyCFunction) _wrap_wxCalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1698 | { "wxCalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1699 | { "wxCalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1700 | { "wxCalendarDateAttr_SetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1701 | { "new_wxCalendarDateAttrBorder", (PyCFunction) _wrap_new_wxCalendarDateAttrBorder, METH_VARARGS | METH_KEYWORDS }, | |
1702 | { "new_wxCalendarDateAttr", (PyCFunction) _wrap_new_wxCalendarDateAttr, METH_VARARGS | METH_KEYWORDS }, | |
1703 | { NULL, NULL } | |
1704 | }; | |
1705 | #ifdef __cplusplus | |
1706 | } | |
1707 | #endif | |
1708 | /* | |
1709 | * This table is used by the pointer type-checker | |
1710 | */ | |
1711 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
f6bcfd97 BP |
1712 | { "_wxEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxEvent}, |
1713 | { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent}, | |
f6bcfd97 | 1714 | { "_signed_long","_long",0}, |
f6bcfd97 BP |
1715 | { "_wxPrintQuality","_wxCoord",0}, |
1716 | { "_wxPrintQuality","_int",0}, | |
1717 | { "_wxPrintQuality","_signed_int",0}, | |
1718 | { "_wxPrintQuality","_unsigned_int",0}, | |
1719 | { "_wxPrintQuality","_wxWindowID",0}, | |
1720 | { "_wxPrintQuality","_uint",0}, | |
1721 | { "_wxPrintQuality","_EBool",0}, | |
1722 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 1723 | { "_wxPrintQuality","_time_t",0}, |
f6bcfd97 BP |
1724 | { "_class_wxEvtHandler","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler}, |
1725 | { "_class_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler}, | |
f6bcfd97 | 1726 | { "_byte","_unsigned_char",0}, |
f6bcfd97 BP |
1727 | { "_long","_unsigned_long",0}, |
1728 | { "_long","_signed_long",0}, | |
9df61a29 RD |
1729 | { "_class_wxObject","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject}, |
1730 | { "_class_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject}, | |
1731 | { "_class_wxObject","_class_wxCalendarEvent",SwigwxCalendarEventTowxObject}, | |
1732 | { "_class_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject}, | |
f6bcfd97 BP |
1733 | { "_size_t","_wxCoord",0}, |
1734 | { "_size_t","_wxPrintQuality",0}, | |
c368d904 | 1735 | { "_size_t","_time_t",0}, |
f6bcfd97 BP |
1736 | { "_size_t","_unsigned_int",0}, |
1737 | { "_size_t","_int",0}, | |
1738 | { "_size_t","_wxWindowID",0}, | |
1739 | { "_size_t","_uint",0}, | |
f6bcfd97 BP |
1740 | { "_uint","_wxCoord",0}, |
1741 | { "_uint","_wxPrintQuality",0}, | |
c368d904 | 1742 | { "_uint","_time_t",0}, |
f6bcfd97 BP |
1743 | { "_uint","_size_t",0}, |
1744 | { "_uint","_unsigned_int",0}, | |
1745 | { "_uint","_int",0}, | |
1746 | { "_uint","_wxWindowID",0}, | |
1747 | { "_wxChar","_char",0}, | |
f6bcfd97 BP |
1748 | { "_class_wxEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxEvent}, |
1749 | { "_class_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent}, | |
f6bcfd97 BP |
1750 | { "_wxCommandEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent}, |
1751 | { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent}, | |
f6bcfd97 | 1752 | { "_char","_wxChar",0}, |
f6bcfd97 BP |
1753 | { "_EBool","_wxCoord",0}, |
1754 | { "_EBool","_wxPrintQuality",0}, | |
1755 | { "_EBool","_signed_int",0}, | |
1756 | { "_EBool","_int",0}, | |
1757 | { "_EBool","_wxWindowID",0}, | |
f6bcfd97 | 1758 | { "_unsigned_long","_long",0}, |
f6bcfd97 BP |
1759 | { "_signed_int","_wxCoord",0}, |
1760 | { "_signed_int","_wxPrintQuality",0}, | |
1761 | { "_signed_int","_EBool",0}, | |
1762 | { "_signed_int","_wxWindowID",0}, | |
1763 | { "_signed_int","_int",0}, | |
f6bcfd97 BP |
1764 | { "_WXTYPE","_wxDateTime_t",0}, |
1765 | { "_WXTYPE","_short",0}, | |
1766 | { "_WXTYPE","_signed_short",0}, | |
1767 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 BP |
1768 | { "_unsigned_short","_wxDateTime_t",0}, |
1769 | { "_unsigned_short","_WXTYPE",0}, | |
1770 | { "_unsigned_short","_short",0}, | |
1771 | { "_class_wxWindow","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow}, | |
1772 | { "_class_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow}, | |
9df61a29 RD |
1773 | { "_wxObject","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject}, |
1774 | { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject}, | |
1775 | { "_wxObject","_class_wxCalendarEvent",SwigwxCalendarEventTowxObject}, | |
1776 | { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject}, | |
f6bcfd97 BP |
1777 | { "_signed_short","_WXTYPE",0}, |
1778 | { "_signed_short","_short",0}, | |
f6bcfd97 | 1779 | { "_unsigned_char","_byte",0}, |
f6bcfd97 BP |
1780 | { "_wxControl","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl}, |
1781 | { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl}, | |
f6bcfd97 BP |
1782 | { "_unsigned_int","_wxCoord",0}, |
1783 | { "_unsigned_int","_wxPrintQuality",0}, | |
c368d904 | 1784 | { "_unsigned_int","_time_t",0}, |
f6bcfd97 BP |
1785 | { "_unsigned_int","_size_t",0}, |
1786 | { "_unsigned_int","_uint",0}, | |
1787 | { "_unsigned_int","_wxWindowID",0}, | |
1788 | { "_unsigned_int","_int",0}, | |
f6bcfd97 BP |
1789 | { "_short","_wxDateTime_t",0}, |
1790 | { "_short","_WXTYPE",0}, | |
1791 | { "_short","_unsigned_short",0}, | |
1792 | { "_short","_signed_short",0}, | |
f6bcfd97 BP |
1793 | { "_wxWindowID","_wxCoord",0}, |
1794 | { "_wxWindowID","_wxPrintQuality",0}, | |
c368d904 | 1795 | { "_wxWindowID","_time_t",0}, |
f6bcfd97 BP |
1796 | { "_wxWindowID","_size_t",0}, |
1797 | { "_wxWindowID","_EBool",0}, | |
1798 | { "_wxWindowID","_uint",0}, | |
1799 | { "_wxWindowID","_int",0}, | |
1800 | { "_wxWindowID","_signed_int",0}, | |
1801 | { "_wxWindowID","_unsigned_int",0}, | |
f6bcfd97 BP |
1802 | { "_int","_wxCoord",0}, |
1803 | { "_int","_wxPrintQuality",0}, | |
c368d904 | 1804 | { "_int","_time_t",0}, |
f6bcfd97 BP |
1805 | { "_int","_size_t",0}, |
1806 | { "_int","_EBool",0}, | |
1807 | { "_int","_uint",0}, | |
1808 | { "_int","_wxWindowID",0}, | |
1809 | { "_int","_unsigned_int",0}, | |
1810 | { "_int","_signed_int",0}, | |
f6bcfd97 BP |
1811 | { "_wxDateTime_t","_unsigned_short",0}, |
1812 | { "_wxDateTime_t","_short",0}, | |
1813 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
1814 | { "_time_t","_wxCoord",0}, |
1815 | { "_time_t","_wxPrintQuality",0}, | |
1816 | { "_time_t","_unsigned_int",0}, | |
1817 | { "_time_t","_int",0}, | |
1818 | { "_time_t","_wxWindowID",0}, | |
1819 | { "_time_t","_uint",0}, | |
1820 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
1821 | { "_class_wxControl","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl}, |
1822 | { "_class_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl}, | |
f6bcfd97 BP |
1823 | { "_wxCoord","_int",0}, |
1824 | { "_wxCoord","_signed_int",0}, | |
1825 | { "_wxCoord","_unsigned_int",0}, | |
1826 | { "_wxCoord","_wxWindowID",0}, | |
1827 | { "_wxCoord","_uint",0}, | |
1828 | { "_wxCoord","_EBool",0}, | |
1829 | { "_wxCoord","_size_t",0}, | |
c368d904 | 1830 | { "_wxCoord","_time_t",0}, |
f6bcfd97 | 1831 | { "_wxCoord","_wxPrintQuality",0}, |
f6bcfd97 BP |
1832 | { "_class_wxCommandEvent","_class_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent}, |
1833 | { "_class_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent}, | |
f6bcfd97 BP |
1834 | { "_wxEvtHandler","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler}, |
1835 | { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler}, | |
f6bcfd97 BP |
1836 | { "_wxWindow","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow}, |
1837 | { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow}, | |
f6bcfd97 BP |
1838 | {0,0,0}}; |
1839 | ||
1840 | static PyObject *SWIG_globals; | |
1841 | #ifdef __cplusplus | |
1842 | extern "C" | |
1843 | #endif | |
1844 | SWIGEXPORT(void) initcalendarc() { | |
1845 | PyObject *m, *d; | |
1846 | SWIG_globals = SWIG_newvarlink(); | |
1847 | m = Py_InitModule("calendarc", calendarcMethods); | |
1848 | d = PyModule_GetDict(m); | |
1849 | PyDict_SetItemString(d,"wxCAL_SUNDAY_FIRST", PyInt_FromLong((long) wxCAL_SUNDAY_FIRST)); | |
1850 | PyDict_SetItemString(d,"wxCAL_MONDAY_FIRST", PyInt_FromLong((long) wxCAL_MONDAY_FIRST)); | |
1851 | PyDict_SetItemString(d,"wxCAL_SHOW_HOLIDAYS", PyInt_FromLong((long) wxCAL_SHOW_HOLIDAYS)); | |
1852 | PyDict_SetItemString(d,"wxCAL_NO_YEAR_CHANGE", PyInt_FromLong((long) wxCAL_NO_YEAR_CHANGE)); | |
1853 | PyDict_SetItemString(d,"wxCAL_NO_MONTH_CHANGE", PyInt_FromLong((long) wxCAL_NO_MONTH_CHANGE)); | |
1854 | PyDict_SetItemString(d,"wxCAL_HITTEST_NOWHERE", PyInt_FromLong((long) wxCAL_HITTEST_NOWHERE)); | |
1855 | PyDict_SetItemString(d,"wxCAL_HITTEST_HEADER", PyInt_FromLong((long) wxCAL_HITTEST_HEADER)); | |
1856 | PyDict_SetItemString(d,"wxCAL_HITTEST_DAY", PyInt_FromLong((long) wxCAL_HITTEST_DAY)); | |
1857 | PyDict_SetItemString(d,"wxCAL_BORDER_NONE", PyInt_FromLong((long) wxCAL_BORDER_NONE)); | |
1858 | PyDict_SetItemString(d,"wxCAL_BORDER_SQUARE", PyInt_FromLong((long) wxCAL_BORDER_SQUARE)); | |
1859 | PyDict_SetItemString(d,"wxCAL_BORDER_ROUND", PyInt_FromLong((long) wxCAL_BORDER_ROUND)); | |
1860 | PyDict_SetItemString(d,"wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_DOUBLECLICKED)); | |
1861 | PyDict_SetItemString(d,"wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_SEL_CHANGED)); | |
1862 | PyDict_SetItemString(d,"wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_DAY_CHANGED)); | |
1863 | PyDict_SetItemString(d,"wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_MONTH_CHANGED)); | |
1864 | PyDict_SetItemString(d,"wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_YEAR_CHANGED)); | |
1865 | PyDict_SetItemString(d,"wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_WEEKDAY_CLICKED)); | |
3a70a282 RD |
1866 | |
1867 | wxClassInfo::CleanUpClasses(); | |
1868 | wxClassInfo::InitializeClasses(); | |
f6bcfd97 BP |
1869 | { |
1870 | int i; | |
1871 | for (i = 0; _swig_mapping[i].n1; i++) | |
1872 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1873 | } | |
1874 | } |