]>
Commit | Line | Data |
---|---|---|
f6bcfd97 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/calendar.cpp |
f6bcfd97 BP |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 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__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
f6bcfd97 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
f6bcfd97 BP |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 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 | ||
1e7ecb7b | 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 | ||
e0672e2f | 66 | if (!target) { |
f6bcfd97 | 67 | target = o; |
e0672e2f | 68 | } else if (target == Py_None) { |
f6bcfd97 BP |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
e0672e2f | 71 | } else { |
f6bcfd97 BP |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
e0672e2f RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
f6bcfd97 BP |
79 | |
80 | o2 = target; | |
e0672e2f RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
f6bcfd97 BP |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
794c5cb1 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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 | ||
9416aa89 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; | |
493f1553 | 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; | |
493f1553 | 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; | |
493f1553 | 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 | ||
9416aa89 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; | |
493f1553 | 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 | ||
09f3d4e6 RD |
960 | #define new_wxPreCalendarCtrl() (new wxCalendarCtrl()) |
961 | static PyObject *_wrap_new_wxPreCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
962 | PyObject * _resultobj; | |
963 | wxCalendarCtrl * _result; | |
964 | char *_kwnames[] = { NULL }; | |
965 | char _ptemp[128]; | |
966 | ||
967 | self = self; | |
968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreCalendarCtrl",_kwnames)) | |
969 | return NULL; | |
970 | { | |
971 | wxPy_BEGIN_ALLOW_THREADS; | |
972 | _result = (wxCalendarCtrl *)new_wxPreCalendarCtrl(); | |
973 | ||
974 | wxPy_END_ALLOW_THREADS; | |
975 | if (PyErr_Occurred()) return NULL; | |
976 | } if (_result) { | |
977 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarCtrl_p"); | |
978 | _resultobj = Py_BuildValue("s",_ptemp); | |
979 | } else { | |
980 | Py_INCREF(Py_None); | |
981 | _resultobj = Py_None; | |
982 | } | |
983 | return _resultobj; | |
984 | } | |
985 | ||
986 | #define wxCalendarCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
987 | static PyObject *_wrap_wxCalendarCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
988 | PyObject * _resultobj; | |
989 | bool _result; | |
990 | wxCalendarCtrl * _arg0; | |
991 | wxWindow * _arg1; | |
992 | wxWindowID _arg2; | |
993 | wxDateTime * _arg3 = (wxDateTime *) &wxDefaultDateTime; | |
994 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
995 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
996 | long _arg6 = (long ) (wxCAL_SHOW_HOLIDAYS); | |
997 | char * _arg7 = (char *) "calendar"; | |
998 | PyObject * _argo0 = 0; | |
999 | PyObject * _argo1 = 0; | |
1000 | PyObject * _argo3 = 0; | |
1001 | wxPoint temp; | |
1002 | PyObject * _obj4 = 0; | |
1003 | wxSize temp0; | |
1004 | PyObject * _obj5 = 0; | |
1005 | char *_kwnames[] = { "self","parent","id","date","pos","size","style","name", NULL }; | |
1006 | ||
1007 | self = self; | |
1008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOOls:wxCalendarCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
1009 | return NULL; | |
1010 | if (_argo0) { | |
1011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_Create. Expected _wxCalendarCtrl_p."); | |
1014 | return NULL; | |
1015 | } | |
1016 | } | |
1017 | if (_argo1) { | |
1018 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1019 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_Create. Expected _wxWindow_p."); | |
1021 | return NULL; | |
1022 | } | |
1023 | } | |
1024 | if (_argo3) { | |
1025 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1026 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime_p")) { | |
1027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_Create. Expected _wxDateTime_p."); | |
1028 | return NULL; | |
1029 | } | |
1030 | } | |
1031 | if (_obj4) | |
1032 | { | |
1033 | _arg4 = &temp; | |
1034 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1035 | return NULL; | |
1036 | } | |
1037 | if (_obj5) | |
1038 | { | |
1039 | _arg5 = &temp0; | |
1040 | if (! wxSize_helper(_obj5, &_arg5)) | |
1041 | return NULL; | |
1042 | } | |
1043 | { | |
1044 | wxPy_BEGIN_ALLOW_THREADS; | |
1045 | _result = (bool )wxCalendarCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
1046 | ||
1047 | wxPy_END_ALLOW_THREADS; | |
1048 | if (PyErr_Occurred()) return NULL; | |
1049 | } _resultobj = Py_BuildValue("i",_result); | |
1050 | return _resultobj; | |
1051 | } | |
1052 | ||
f6bcfd97 BP |
1053 | #define wxCalendarCtrl_SetDate(_swigobj,_swigarg0) (_swigobj->SetDate(_swigarg0)) |
1054 | static PyObject *_wrap_wxCalendarCtrl_SetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1055 | PyObject * _resultobj; | |
1056 | wxCalendarCtrl * _arg0; | |
1057 | wxDateTime * _arg1; | |
1058 | PyObject * _argo0 = 0; | |
1059 | PyObject * _argo1 = 0; | |
1060 | char *_kwnames[] = { "self","date", NULL }; | |
1061 | ||
1062 | self = self; | |
1063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalendarCtrl_SetDate",_kwnames,&_argo0,&_argo1)) | |
1064 | return NULL; | |
1065 | if (_argo0) { | |
1066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetDate. Expected _wxCalendarCtrl_p."); | |
1069 | return NULL; | |
1070 | } | |
1071 | } | |
1072 | if (_argo1) { | |
1073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
1075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxCalendarCtrl_SetDate. Expected _wxDateTime_p."); | |
1076 | return NULL; | |
1077 | } | |
1078 | } | |
1079 | { | |
1080 | wxPy_BEGIN_ALLOW_THREADS; | |
1081 | wxCalendarCtrl_SetDate(_arg0,*_arg1); | |
1082 | ||
1083 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1084 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1085 | } Py_INCREF(Py_None); |
1086 | _resultobj = Py_None; | |
1087 | return _resultobj; | |
1088 | } | |
1089 | ||
1090 | #define wxCalendarCtrl_GetDate(_swigobj) (_swigobj->GetDate()) | |
1091 | static PyObject *_wrap_wxCalendarCtrl_GetDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1092 | PyObject * _resultobj; | |
1093 | wxDateTime * _result; | |
1094 | wxCalendarCtrl * _arg0; | |
1095 | PyObject * _argo0 = 0; | |
1096 | char *_kwnames[] = { "self", NULL }; | |
1097 | char _ptemp[128]; | |
1098 | ||
1099 | self = self; | |
1100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetDate",_kwnames,&_argo0)) | |
1101 | return NULL; | |
1102 | if (_argo0) { | |
1103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetDate. Expected _wxCalendarCtrl_p."); | |
1106 | return NULL; | |
1107 | } | |
1108 | } | |
1109 | { | |
1110 | wxPy_BEGIN_ALLOW_THREADS; | |
1111 | const wxDateTime & _result_ref = wxCalendarCtrl_GetDate(_arg0); | |
1112 | _result = (wxDateTime *) &_result_ref; | |
1113 | ||
1114 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1115 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1116 | } if (_result) { |
1117 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
1118 | _resultobj = Py_BuildValue("s",_ptemp); | |
1119 | } else { | |
1120 | Py_INCREF(Py_None); | |
1121 | _resultobj = Py_None; | |
1122 | } | |
1123 | return _resultobj; | |
1124 | } | |
1125 | ||
1126 | #define wxCalendarCtrl_EnableYearChange(_swigobj,_swigarg0) (_swigobj->EnableYearChange(_swigarg0)) | |
1127 | static PyObject *_wrap_wxCalendarCtrl_EnableYearChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1128 | PyObject * _resultobj; | |
1129 | wxCalendarCtrl * _arg0; | |
1130 | bool _arg1 = (bool ) TRUE; | |
1131 | PyObject * _argo0 = 0; | |
1132 | int tempbool1 = (int) TRUE; | |
1133 | char *_kwnames[] = { "self","enable", NULL }; | |
1134 | ||
1135 | self = self; | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableYearChange",_kwnames,&_argo0,&tempbool1)) | |
1137 | return NULL; | |
1138 | if (_argo0) { | |
1139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableYearChange. Expected _wxCalendarCtrl_p."); | |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
1145 | _arg1 = (bool ) tempbool1; | |
1146 | { | |
1147 | wxPy_BEGIN_ALLOW_THREADS; | |
1148 | wxCalendarCtrl_EnableYearChange(_arg0,_arg1); | |
1149 | ||
1150 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1151 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1152 | } Py_INCREF(Py_None); |
1153 | _resultobj = Py_None; | |
1154 | return _resultobj; | |
1155 | } | |
1156 | ||
1157 | #define wxCalendarCtrl_EnableMonthChange(_swigobj,_swigarg0) (_swigobj->EnableMonthChange(_swigarg0)) | |
1158 | static PyObject *_wrap_wxCalendarCtrl_EnableMonthChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1159 | PyObject * _resultobj; | |
1160 | wxCalendarCtrl * _arg0; | |
1161 | bool _arg1 = (bool ) TRUE; | |
1162 | PyObject * _argo0 = 0; | |
1163 | int tempbool1 = (int) TRUE; | |
1164 | char *_kwnames[] = { "self","enable", NULL }; | |
1165 | ||
1166 | self = self; | |
1167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableMonthChange",_kwnames,&_argo0,&tempbool1)) | |
1168 | return NULL; | |
1169 | if (_argo0) { | |
1170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableMonthChange. Expected _wxCalendarCtrl_p."); | |
1173 | return NULL; | |
1174 | } | |
1175 | } | |
1176 | _arg1 = (bool ) tempbool1; | |
1177 | { | |
1178 | wxPy_BEGIN_ALLOW_THREADS; | |
1179 | wxCalendarCtrl_EnableMonthChange(_arg0,_arg1); | |
1180 | ||
1181 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1182 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1183 | } Py_INCREF(Py_None); |
1184 | _resultobj = Py_None; | |
1185 | return _resultobj; | |
1186 | } | |
1187 | ||
1188 | #define wxCalendarCtrl_EnableHolidayDisplay(_swigobj,_swigarg0) (_swigobj->EnableHolidayDisplay(_swigarg0)) | |
1189 | static PyObject *_wrap_wxCalendarCtrl_EnableHolidayDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1190 | PyObject * _resultobj; | |
1191 | wxCalendarCtrl * _arg0; | |
1192 | bool _arg1 = (bool ) TRUE; | |
1193 | PyObject * _argo0 = 0; | |
1194 | int tempbool1 = (int) TRUE; | |
1195 | char *_kwnames[] = { "self","display", NULL }; | |
1196 | ||
1197 | self = self; | |
1198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCalendarCtrl_EnableHolidayDisplay",_kwnames,&_argo0,&tempbool1)) | |
1199 | return NULL; | |
1200 | if (_argo0) { | |
1201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_EnableHolidayDisplay. Expected _wxCalendarCtrl_p."); | |
1204 | return NULL; | |
1205 | } | |
1206 | } | |
1207 | _arg1 = (bool ) tempbool1; | |
1208 | { | |
1209 | wxPy_BEGIN_ALLOW_THREADS; | |
1210 | wxCalendarCtrl_EnableHolidayDisplay(_arg0,_arg1); | |
1211 | ||
1212 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1213 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1214 | } Py_INCREF(Py_None); |
1215 | _resultobj = Py_None; | |
1216 | return _resultobj; | |
1217 | } | |
1218 | ||
1219 | #define wxCalendarCtrl_SetHeaderColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeaderColours(_swigarg0,_swigarg1)) | |
1220 | static PyObject *_wrap_wxCalendarCtrl_SetHeaderColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1221 | PyObject * _resultobj; | |
1222 | wxCalendarCtrl * _arg0; | |
1223 | wxColour * _arg1; | |
1224 | wxColour * _arg2; | |
1225 | PyObject * _argo0 = 0; | |
1226 | wxColour temp; | |
1227 | PyObject * _obj1 = 0; | |
1228 | wxColour temp0; | |
1229 | PyObject * _obj2 = 0; | |
1230 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1231 | ||
1232 | self = self; | |
1233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHeaderColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1234 | return NULL; | |
1235 | if (_argo0) { | |
1236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHeaderColours. Expected _wxCalendarCtrl_p."); | |
1239 | return NULL; | |
1240 | } | |
1241 | } | |
1242 | { | |
1243 | _arg1 = &temp; | |
1244 | if (! wxColour_helper(_obj1, &_arg1)) | |
1245 | return NULL; | |
1246 | } | |
1247 | { | |
1248 | _arg2 = &temp0; | |
1249 | if (! wxColour_helper(_obj2, &_arg2)) | |
1250 | return NULL; | |
1251 | } | |
1252 | { | |
1253 | wxPy_BEGIN_ALLOW_THREADS; | |
1254 | wxCalendarCtrl_SetHeaderColours(_arg0,*_arg1,*_arg2); | |
1255 | ||
1256 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1257 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1258 | } Py_INCREF(Py_None); |
1259 | _resultobj = Py_None; | |
1260 | return _resultobj; | |
1261 | } | |
1262 | ||
1263 | #define wxCalendarCtrl_GetHeaderColourFg(_swigobj) (_swigobj->GetHeaderColourFg()) | |
1264 | static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1265 | PyObject * _resultobj; | |
1266 | wxColour * _result; | |
1267 | wxCalendarCtrl * _arg0; | |
1268 | PyObject * _argo0 = 0; | |
1269 | char *_kwnames[] = { "self", NULL }; | |
1270 | char _ptemp[128]; | |
1271 | ||
1272 | self = self; | |
1273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourFg",_kwnames,&_argo0)) | |
1274 | return NULL; | |
1275 | if (_argo0) { | |
1276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourFg. Expected _wxCalendarCtrl_p."); | |
1279 | return NULL; | |
1280 | } | |
1281 | } | |
1282 | { | |
1283 | wxPy_BEGIN_ALLOW_THREADS; | |
1284 | const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourFg(_arg0); | |
1285 | _result = (wxColour *) &_result_ref; | |
1286 | ||
1287 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1288 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1289 | } if (_result) { |
1290 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1291 | _resultobj = Py_BuildValue("s",_ptemp); | |
1292 | } else { | |
1293 | Py_INCREF(Py_None); | |
1294 | _resultobj = Py_None; | |
1295 | } | |
1296 | return _resultobj; | |
1297 | } | |
1298 | ||
1299 | #define wxCalendarCtrl_GetHeaderColourBg(_swigobj) (_swigobj->GetHeaderColourBg()) | |
1300 | static PyObject *_wrap_wxCalendarCtrl_GetHeaderColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1301 | PyObject * _resultobj; | |
1302 | wxColour * _result; | |
1303 | wxCalendarCtrl * _arg0; | |
1304 | PyObject * _argo0 = 0; | |
1305 | char *_kwnames[] = { "self", NULL }; | |
1306 | char _ptemp[128]; | |
1307 | ||
1308 | self = self; | |
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHeaderColourBg",_kwnames,&_argo0)) | |
1310 | return NULL; | |
1311 | if (_argo0) { | |
1312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHeaderColourBg. Expected _wxCalendarCtrl_p."); | |
1315 | return NULL; | |
1316 | } | |
1317 | } | |
1318 | { | |
1319 | wxPy_BEGIN_ALLOW_THREADS; | |
1320 | const wxColour & _result_ref = wxCalendarCtrl_GetHeaderColourBg(_arg0); | |
1321 | _result = (wxColour *) &_result_ref; | |
1322 | ||
1323 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1324 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1325 | } if (_result) { |
1326 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1327 | _resultobj = Py_BuildValue("s",_ptemp); | |
1328 | } else { | |
1329 | Py_INCREF(Py_None); | |
1330 | _resultobj = Py_None; | |
1331 | } | |
1332 | return _resultobj; | |
1333 | } | |
1334 | ||
1335 | #define wxCalendarCtrl_SetHighlightColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHighlightColours(_swigarg0,_swigarg1)) | |
1336 | static PyObject *_wrap_wxCalendarCtrl_SetHighlightColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1337 | PyObject * _resultobj; | |
1338 | wxCalendarCtrl * _arg0; | |
1339 | wxColour * _arg1; | |
1340 | wxColour * _arg2; | |
1341 | PyObject * _argo0 = 0; | |
1342 | wxColour temp; | |
1343 | PyObject * _obj1 = 0; | |
1344 | wxColour temp0; | |
1345 | PyObject * _obj2 = 0; | |
1346 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1347 | ||
1348 | self = self; | |
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHighlightColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1350 | return NULL; | |
1351 | if (_argo0) { | |
1352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHighlightColours. Expected _wxCalendarCtrl_p."); | |
1355 | return NULL; | |
1356 | } | |
1357 | } | |
1358 | { | |
1359 | _arg1 = &temp; | |
1360 | if (! wxColour_helper(_obj1, &_arg1)) | |
1361 | return NULL; | |
1362 | } | |
1363 | { | |
1364 | _arg2 = &temp0; | |
1365 | if (! wxColour_helper(_obj2, &_arg2)) | |
1366 | return NULL; | |
1367 | } | |
1368 | { | |
1369 | wxPy_BEGIN_ALLOW_THREADS; | |
1370 | wxCalendarCtrl_SetHighlightColours(_arg0,*_arg1,*_arg2); | |
1371 | ||
1372 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1373 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1374 | } Py_INCREF(Py_None); |
1375 | _resultobj = Py_None; | |
1376 | return _resultobj; | |
1377 | } | |
1378 | ||
1379 | #define wxCalendarCtrl_GetHighlightColourFg(_swigobj) (_swigobj->GetHighlightColourFg()) | |
1380 | static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1381 | PyObject * _resultobj; | |
1382 | wxColour * _result; | |
1383 | wxCalendarCtrl * _arg0; | |
1384 | PyObject * _argo0 = 0; | |
1385 | char *_kwnames[] = { "self", NULL }; | |
1386 | char _ptemp[128]; | |
1387 | ||
1388 | self = self; | |
1389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourFg",_kwnames,&_argo0)) | |
1390 | return NULL; | |
1391 | if (_argo0) { | |
1392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourFg. Expected _wxCalendarCtrl_p."); | |
1395 | return NULL; | |
1396 | } | |
1397 | } | |
1398 | { | |
1399 | wxPy_BEGIN_ALLOW_THREADS; | |
1400 | const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourFg(_arg0); | |
1401 | _result = (wxColour *) &_result_ref; | |
1402 | ||
1403 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1404 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1405 | } if (_result) { |
1406 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1407 | _resultobj = Py_BuildValue("s",_ptemp); | |
1408 | } else { | |
1409 | Py_INCREF(Py_None); | |
1410 | _resultobj = Py_None; | |
1411 | } | |
1412 | return _resultobj; | |
1413 | } | |
1414 | ||
1415 | #define wxCalendarCtrl_GetHighlightColourBg(_swigobj) (_swigobj->GetHighlightColourBg()) | |
1416 | static PyObject *_wrap_wxCalendarCtrl_GetHighlightColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1417 | PyObject * _resultobj; | |
1418 | wxColour * _result; | |
1419 | wxCalendarCtrl * _arg0; | |
1420 | PyObject * _argo0 = 0; | |
1421 | char *_kwnames[] = { "self", NULL }; | |
1422 | char _ptemp[128]; | |
1423 | ||
1424 | self = self; | |
1425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHighlightColourBg",_kwnames,&_argo0)) | |
1426 | return NULL; | |
1427 | if (_argo0) { | |
1428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHighlightColourBg. Expected _wxCalendarCtrl_p."); | |
1431 | return NULL; | |
1432 | } | |
1433 | } | |
1434 | { | |
1435 | wxPy_BEGIN_ALLOW_THREADS; | |
1436 | const wxColour & _result_ref = wxCalendarCtrl_GetHighlightColourBg(_arg0); | |
1437 | _result = (wxColour *) &_result_ref; | |
1438 | ||
1439 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1440 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1441 | } if (_result) { |
1442 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1443 | _resultobj = Py_BuildValue("s",_ptemp); | |
1444 | } else { | |
1445 | Py_INCREF(Py_None); | |
1446 | _resultobj = Py_None; | |
1447 | } | |
1448 | return _resultobj; | |
1449 | } | |
1450 | ||
1451 | #define wxCalendarCtrl_SetHolidayColours(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHolidayColours(_swigarg0,_swigarg1)) | |
1452 | static PyObject *_wrap_wxCalendarCtrl_SetHolidayColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject * _resultobj; | |
1454 | wxCalendarCtrl * _arg0; | |
1455 | wxColour * _arg1; | |
1456 | wxColour * _arg2; | |
1457 | PyObject * _argo0 = 0; | |
1458 | wxColour temp; | |
1459 | PyObject * _obj1 = 0; | |
1460 | wxColour temp0; | |
1461 | PyObject * _obj2 = 0; | |
1462 | char *_kwnames[] = { "self","colFg","colBg", NULL }; | |
1463 | ||
1464 | self = self; | |
1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxCalendarCtrl_SetHolidayColours",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1466 | return NULL; | |
1467 | if (_argo0) { | |
1468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHolidayColours. Expected _wxCalendarCtrl_p."); | |
1471 | return NULL; | |
1472 | } | |
1473 | } | |
1474 | { | |
1475 | _arg1 = &temp; | |
1476 | if (! wxColour_helper(_obj1, &_arg1)) | |
1477 | return NULL; | |
1478 | } | |
1479 | { | |
1480 | _arg2 = &temp0; | |
1481 | if (! wxColour_helper(_obj2, &_arg2)) | |
1482 | return NULL; | |
1483 | } | |
1484 | { | |
1485 | wxPy_BEGIN_ALLOW_THREADS; | |
1486 | wxCalendarCtrl_SetHolidayColours(_arg0,*_arg1,*_arg2); | |
1487 | ||
1488 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1489 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1490 | } Py_INCREF(Py_None); |
1491 | _resultobj = Py_None; | |
1492 | return _resultobj; | |
1493 | } | |
1494 | ||
1495 | #define wxCalendarCtrl_GetHolidayColourFg(_swigobj) (_swigobj->GetHolidayColourFg()) | |
1496 | static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourFg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1497 | PyObject * _resultobj; | |
1498 | wxColour * _result; | |
1499 | wxCalendarCtrl * _arg0; | |
1500 | PyObject * _argo0 = 0; | |
1501 | char *_kwnames[] = { "self", NULL }; | |
1502 | char _ptemp[128]; | |
1503 | ||
1504 | self = self; | |
1505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourFg",_kwnames,&_argo0)) | |
1506 | return NULL; | |
1507 | if (_argo0) { | |
1508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourFg. Expected _wxCalendarCtrl_p."); | |
1511 | return NULL; | |
1512 | } | |
1513 | } | |
1514 | { | |
1515 | wxPy_BEGIN_ALLOW_THREADS; | |
1516 | const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourFg(_arg0); | |
1517 | _result = (wxColour *) &_result_ref; | |
1518 | ||
1519 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1520 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1521 | } if (_result) { |
1522 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1523 | _resultobj = Py_BuildValue("s",_ptemp); | |
1524 | } else { | |
1525 | Py_INCREF(Py_None); | |
1526 | _resultobj = Py_None; | |
1527 | } | |
1528 | return _resultobj; | |
1529 | } | |
1530 | ||
1531 | #define wxCalendarCtrl_GetHolidayColourBg(_swigobj) (_swigobj->GetHolidayColourBg()) | |
1532 | static PyObject *_wrap_wxCalendarCtrl_GetHolidayColourBg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1533 | PyObject * _resultobj; | |
1534 | wxColour * _result; | |
1535 | wxCalendarCtrl * _arg0; | |
1536 | PyObject * _argo0 = 0; | |
1537 | char *_kwnames[] = { "self", NULL }; | |
1538 | char _ptemp[128]; | |
1539 | ||
1540 | self = self; | |
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalendarCtrl_GetHolidayColourBg",_kwnames,&_argo0)) | |
1542 | return NULL; | |
1543 | if (_argo0) { | |
1544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetHolidayColourBg. Expected _wxCalendarCtrl_p."); | |
1547 | return NULL; | |
1548 | } | |
1549 | } | |
1550 | { | |
1551 | wxPy_BEGIN_ALLOW_THREADS; | |
1552 | const wxColour & _result_ref = wxCalendarCtrl_GetHolidayColourBg(_arg0); | |
1553 | _result = (wxColour *) &_result_ref; | |
1554 | ||
1555 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1556 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1557 | } if (_result) { |
1558 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
1559 | _resultobj = Py_BuildValue("s",_ptemp); | |
1560 | } else { | |
1561 | Py_INCREF(Py_None); | |
1562 | _resultobj = Py_None; | |
1563 | } | |
1564 | return _resultobj; | |
1565 | } | |
1566 | ||
1567 | #define wxCalendarCtrl_GetAttr(_swigobj,_swigarg0) (_swigobj->GetAttr(_swigarg0)) | |
1568 | static PyObject *_wrap_wxCalendarCtrl_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1569 | PyObject * _resultobj; | |
1570 | wxCalendarDateAttr * _result; | |
1571 | wxCalendarCtrl * _arg0; | |
1572 | size_t _arg1; | |
1573 | PyObject * _argo0 = 0; | |
1574 | char *_kwnames[] = { "self","day", NULL }; | |
1575 | char _ptemp[128]; | |
1576 | ||
1577 | self = self; | |
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_GetAttr",_kwnames,&_argo0,&_arg1)) | |
1579 | return NULL; | |
1580 | if (_argo0) { | |
1581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_GetAttr. Expected _wxCalendarCtrl_p."); | |
1584 | return NULL; | |
1585 | } | |
1586 | } | |
1587 | { | |
1588 | wxPy_BEGIN_ALLOW_THREADS; | |
1589 | _result = (wxCalendarDateAttr *)wxCalendarCtrl_GetAttr(_arg0,_arg1); | |
1590 | ||
1591 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1592 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1593 | } if (_result) { |
1594 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalendarDateAttr_p"); | |
1595 | _resultobj = Py_BuildValue("s",_ptemp); | |
1596 | } else { | |
1597 | Py_INCREF(Py_None); | |
1598 | _resultobj = Py_None; | |
1599 | } | |
1600 | return _resultobj; | |
1601 | } | |
1602 | ||
1603 | #define wxCalendarCtrl_SetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAttr(_swigarg0,_swigarg1)) | |
1604 | static PyObject *_wrap_wxCalendarCtrl_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1605 | PyObject * _resultobj; | |
1606 | wxCalendarCtrl * _arg0; | |
1607 | size_t _arg1; | |
1608 | wxCalendarDateAttr * _arg2; | |
1609 | PyObject * _argo0 = 0; | |
1610 | PyObject * _argo2 = 0; | |
1611 | char *_kwnames[] = { "self","day","attr", NULL }; | |
1612 | ||
1613 | self = self; | |
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxCalendarCtrl_SetAttr",_kwnames,&_argo0,&_arg1,&_argo2)) | |
1615 | return NULL; | |
1616 | if (_argo0) { | |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetAttr. Expected _wxCalendarCtrl_p."); | |
1620 | return NULL; | |
1621 | } | |
1622 | } | |
1623 | if (_argo2) { | |
1624 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCalendarDateAttr_p")) { | |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_SetAttr. Expected _wxCalendarDateAttr_p."); | |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
1631 | wxPy_BEGIN_ALLOW_THREADS; | |
1632 | wxCalendarCtrl_SetAttr(_arg0,_arg1,_arg2); | |
1633 | ||
1634 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1635 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1636 | } Py_INCREF(Py_None); |
1637 | _resultobj = Py_None; | |
1638 | return _resultobj; | |
1639 | } | |
1640 | ||
1641 | #define wxCalendarCtrl_SetHoliday(_swigobj,_swigarg0) (_swigobj->SetHoliday(_swigarg0)) | |
1642 | static PyObject *_wrap_wxCalendarCtrl_SetHoliday(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1643 | PyObject * _resultobj; | |
1644 | wxCalendarCtrl * _arg0; | |
1645 | size_t _arg1; | |
1646 | PyObject * _argo0 = 0; | |
1647 | char *_kwnames[] = { "self","day", NULL }; | |
1648 | ||
1649 | self = self; | |
1650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_SetHoliday",_kwnames,&_argo0,&_arg1)) | |
1651 | return NULL; | |
1652 | if (_argo0) { | |
1653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_SetHoliday. Expected _wxCalendarCtrl_p."); | |
1656 | return NULL; | |
1657 | } | |
1658 | } | |
1659 | { | |
1660 | wxPy_BEGIN_ALLOW_THREADS; | |
1661 | wxCalendarCtrl_SetHoliday(_arg0,_arg1); | |
1662 | ||
1663 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1664 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1665 | } Py_INCREF(Py_None); |
1666 | _resultobj = Py_None; | |
1667 | return _resultobj; | |
1668 | } | |
1669 | ||
1670 | #define wxCalendarCtrl_ResetAttr(_swigobj,_swigarg0) (_swigobj->ResetAttr(_swigarg0)) | |
1671 | static PyObject *_wrap_wxCalendarCtrl_ResetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1672 | PyObject * _resultobj; | |
1673 | wxCalendarCtrl * _arg0; | |
1674 | size_t _arg1; | |
1675 | PyObject * _argo0 = 0; | |
1676 | char *_kwnames[] = { "self","day", NULL }; | |
1677 | ||
1678 | self = self; | |
1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalendarCtrl_ResetAttr",_kwnames,&_argo0,&_arg1)) | |
1680 | return NULL; | |
1681 | if (_argo0) { | |
1682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_ResetAttr. Expected _wxCalendarCtrl_p."); | |
1685 | return NULL; | |
1686 | } | |
1687 | } | |
1688 | { | |
1689 | wxPy_BEGIN_ALLOW_THREADS; | |
1690 | wxCalendarCtrl_ResetAttr(_arg0,_arg1); | |
1691 | ||
1692 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1693 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1694 | } Py_INCREF(Py_None); |
1695 | _resultobj = Py_None; | |
1696 | return _resultobj; | |
1697 | } | |
1698 | ||
1699 | #define wxCalendarCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2)) | |
1700 | static PyObject *_wrap_wxCalendarCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject * _resultobj; | |
1702 | wxCalendarHitTestResult _result; | |
1703 | wxCalendarCtrl * _arg0; | |
1704 | wxPoint * _arg1; | |
1705 | wxDateTime * _arg2 = (wxDateTime *) NULL; | |
1706 | wxDateTime::WeekDay * _arg3 = (wxDateTime::WeekDay *) NULL; | |
1707 | PyObject * _argo0 = 0; | |
1708 | wxPoint temp; | |
1709 | PyObject * _obj1 = 0; | |
1710 | PyObject * _argo2 = 0; | |
1711 | PyObject * _argo3 = 0; | |
1712 | char *_kwnames[] = { "self","pos","date","wd", NULL }; | |
1713 | ||
1714 | self = self; | |
1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxCalendarCtrl_HitTest",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
1716 | return NULL; | |
1717 | if (_argo0) { | |
1718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalendarCtrl_p")) { | |
1720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalendarCtrl_HitTest. Expected _wxCalendarCtrl_p."); | |
1721 | return NULL; | |
1722 | } | |
1723 | } | |
1724 | { | |
1725 | _arg1 = &temp; | |
1726 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1727 | return NULL; | |
1728 | } | |
1729 | if (_argo2) { | |
1730 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1731 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
1732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxCalendarCtrl_HitTest. Expected _wxDateTime_p."); | |
1733 | return NULL; | |
1734 | } | |
1735 | } | |
1736 | if (_argo3) { | |
1737 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1738 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime::WeekDay_p")) { | |
1739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxCalendarCtrl_HitTest. Expected _wxDateTime::WeekDay_p."); | |
1740 | return NULL; | |
1741 | } | |
1742 | } | |
1743 | { | |
1744 | wxPy_BEGIN_ALLOW_THREADS; | |
1745 | _result = (wxCalendarHitTestResult )wxCalendarCtrl_HitTest(_arg0,*_arg1,_arg2,_arg3); | |
1746 | ||
1747 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1748 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1749 | } _resultobj = Py_BuildValue("i",_result); |
1750 | return _resultobj; | |
1751 | } | |
1752 | ||
1753 | static PyMethodDef calendarcMethods[] = { | |
1754 | { "wxCalendarCtrl_HitTest", (PyCFunction) _wrap_wxCalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
1755 | { "wxCalendarCtrl_ResetAttr", (PyCFunction) _wrap_wxCalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1756 | { "wxCalendarCtrl_SetHoliday", (PyCFunction) _wrap_wxCalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1757 | { "wxCalendarCtrl_SetAttr", (PyCFunction) _wrap_wxCalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1758 | { "wxCalendarCtrl_GetAttr", (PyCFunction) _wrap_wxCalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
1759 | { "wxCalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1760 | { "wxCalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1761 | { "wxCalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS }, | |
1762 | { "wxCalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1763 | { "wxCalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1764 | { "wxCalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS }, | |
1765 | { "wxCalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS }, | |
1766 | { "wxCalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_wxCalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS }, | |
1767 | { "wxCalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_wxCalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS }, | |
1768 | { "wxCalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_wxCalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS }, | |
1769 | { "wxCalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS }, | |
1770 | { "wxCalendarCtrl_EnableYearChange", (PyCFunction) _wrap_wxCalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS }, | |
1771 | { "wxCalendarCtrl_GetDate", (PyCFunction) _wrap_wxCalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS }, | |
1772 | { "wxCalendarCtrl_SetDate", (PyCFunction) _wrap_wxCalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
1773 | { "wxCalendarCtrl_Create", (PyCFunction) _wrap_wxCalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
1774 | { "new_wxPreCalendarCtrl", (PyCFunction) _wrap_new_wxPreCalendarCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1775 | { "new_wxCalendarCtrl", (PyCFunction) _wrap_new_wxCalendarCtrl, METH_VARARGS | METH_KEYWORDS }, |
1776 | { "wxCalendarEvent_GetWeekDay", (PyCFunction) _wrap_wxCalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
1777 | { "wxCalendarEvent_GetDate", (PyCFunction) _wrap_wxCalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS }, | |
1778 | { "new_wxCalendarEvent", (PyCFunction) _wrap_new_wxCalendarEvent, METH_VARARGS | METH_KEYWORDS }, | |
1779 | { "wxCalendarDateAttr_GetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
1780 | { "wxCalendarDateAttr_GetFont", (PyCFunction) _wrap_wxCalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1781 | { "wxCalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1782 | { "wxCalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1783 | { "wxCalendarDateAttr_GetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1784 | { "wxCalendarDateAttr_IsHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1785 | { "wxCalendarDateAttr_HasBorder", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
1786 | { "wxCalendarDateAttr_HasFont", (PyCFunction) _wrap_wxCalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
1787 | { "wxCalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1788 | { "wxCalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1789 | { "wxCalendarDateAttr_HasTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1790 | { "wxCalendarDateAttr_SetHoliday", (PyCFunction) _wrap_wxCalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS }, | |
1791 | { "wxCalendarDateAttr_SetBorder", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
1792 | { "wxCalendarDateAttr_SetFont", (PyCFunction) _wrap_wxCalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1793 | { "wxCalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS }, | |
1794 | { "wxCalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1795 | { "wxCalendarDateAttr_SetTextColour", (PyCFunction) _wrap_wxCalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
1796 | { "new_wxCalendarDateAttrBorder", (PyCFunction) _wrap_new_wxCalendarDateAttrBorder, METH_VARARGS | METH_KEYWORDS }, | |
1797 | { "new_wxCalendarDateAttr", (PyCFunction) _wrap_new_wxCalendarDateAttr, METH_VARARGS | METH_KEYWORDS }, | |
1798 | { NULL, NULL } | |
1799 | }; | |
1800 | #ifdef __cplusplus | |
1801 | } | |
1802 | #endif | |
1803 | /* | |
1804 | * This table is used by the pointer type-checker | |
1805 | */ | |
1806 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
f6bcfd97 | 1807 | { "_wxEvent","_wxCalendarEvent",SwigwxCalendarEventTowxEvent}, |
f6bcfd97 | 1808 | { "_signed_long","_long",0}, |
f6bcfd97 BP |
1809 | { "_wxPrintQuality","_wxCoord",0}, |
1810 | { "_wxPrintQuality","_int",0}, | |
1811 | { "_wxPrintQuality","_signed_int",0}, | |
1812 | { "_wxPrintQuality","_unsigned_int",0}, | |
1813 | { "_wxPrintQuality","_wxWindowID",0}, | |
1814 | { "_wxPrintQuality","_uint",0}, | |
1815 | { "_wxPrintQuality","_EBool",0}, | |
1816 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 1817 | { "_wxPrintQuality","_time_t",0}, |
f6bcfd97 | 1818 | { "_byte","_unsigned_char",0}, |
f6bcfd97 BP |
1819 | { "_long","_unsigned_long",0}, |
1820 | { "_long","_signed_long",0}, | |
f6bcfd97 BP |
1821 | { "_size_t","_wxCoord",0}, |
1822 | { "_size_t","_wxPrintQuality",0}, | |
c368d904 | 1823 | { "_size_t","_time_t",0}, |
f6bcfd97 BP |
1824 | { "_size_t","_unsigned_int",0}, |
1825 | { "_size_t","_int",0}, | |
1826 | { "_size_t","_wxWindowID",0}, | |
1827 | { "_size_t","_uint",0}, | |
f6bcfd97 BP |
1828 | { "_uint","_wxCoord",0}, |
1829 | { "_uint","_wxPrintQuality",0}, | |
c368d904 | 1830 | { "_uint","_time_t",0}, |
f6bcfd97 BP |
1831 | { "_uint","_size_t",0}, |
1832 | { "_uint","_unsigned_int",0}, | |
1833 | { "_uint","_int",0}, | |
1834 | { "_uint","_wxWindowID",0}, | |
1835 | { "_wxChar","_char",0}, | |
f6bcfd97 | 1836 | { "_wxCommandEvent","_wxCalendarEvent",SwigwxCalendarEventTowxCommandEvent}, |
f6bcfd97 | 1837 | { "_char","_wxChar",0}, |
cdf14688 | 1838 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
f6bcfd97 BP |
1839 | { "_EBool","_wxCoord",0}, |
1840 | { "_EBool","_wxPrintQuality",0}, | |
1841 | { "_EBool","_signed_int",0}, | |
1842 | { "_EBool","_int",0}, | |
1843 | { "_EBool","_wxWindowID",0}, | |
f6bcfd97 | 1844 | { "_unsigned_long","_long",0}, |
cdf14688 | 1845 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
f6bcfd97 BP |
1846 | { "_signed_int","_wxCoord",0}, |
1847 | { "_signed_int","_wxPrintQuality",0}, | |
1848 | { "_signed_int","_EBool",0}, | |
1849 | { "_signed_int","_wxWindowID",0}, | |
1850 | { "_signed_int","_int",0}, | |
f6bcfd97 BP |
1851 | { "_WXTYPE","_wxDateTime_t",0}, |
1852 | { "_WXTYPE","_short",0}, | |
1853 | { "_WXTYPE","_signed_short",0}, | |
1854 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 BP |
1855 | { "_unsigned_short","_wxDateTime_t",0}, |
1856 | { "_unsigned_short","_WXTYPE",0}, | |
1857 | { "_unsigned_short","_short",0}, | |
9416aa89 | 1858 | { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject}, |
9416aa89 | 1859 | { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject}, |
f6bcfd97 BP |
1860 | { "_signed_short","_WXTYPE",0}, |
1861 | { "_signed_short","_short",0}, | |
f6bcfd97 | 1862 | { "_unsigned_char","_byte",0}, |
f6bcfd97 | 1863 | { "_wxControl","_wxCalendarCtrl",SwigwxCalendarCtrlTowxControl}, |
f6bcfd97 BP |
1864 | { "_unsigned_int","_wxCoord",0}, |
1865 | { "_unsigned_int","_wxPrintQuality",0}, | |
c368d904 | 1866 | { "_unsigned_int","_time_t",0}, |
f6bcfd97 BP |
1867 | { "_unsigned_int","_size_t",0}, |
1868 | { "_unsigned_int","_uint",0}, | |
1869 | { "_unsigned_int","_wxWindowID",0}, | |
1870 | { "_unsigned_int","_int",0}, | |
f6bcfd97 BP |
1871 | { "_short","_wxDateTime_t",0}, |
1872 | { "_short","_WXTYPE",0}, | |
1873 | { "_short","_unsigned_short",0}, | |
1874 | { "_short","_signed_short",0}, | |
f6bcfd97 BP |
1875 | { "_wxWindowID","_wxCoord",0}, |
1876 | { "_wxWindowID","_wxPrintQuality",0}, | |
c368d904 | 1877 | { "_wxWindowID","_time_t",0}, |
f6bcfd97 BP |
1878 | { "_wxWindowID","_size_t",0}, |
1879 | { "_wxWindowID","_EBool",0}, | |
1880 | { "_wxWindowID","_uint",0}, | |
1881 | { "_wxWindowID","_int",0}, | |
1882 | { "_wxWindowID","_signed_int",0}, | |
1883 | { "_wxWindowID","_unsigned_int",0}, | |
f6bcfd97 BP |
1884 | { "_int","_wxCoord",0}, |
1885 | { "_int","_wxPrintQuality",0}, | |
c368d904 | 1886 | { "_int","_time_t",0}, |
f6bcfd97 BP |
1887 | { "_int","_size_t",0}, |
1888 | { "_int","_EBool",0}, | |
1889 | { "_int","_uint",0}, | |
1890 | { "_int","_wxWindowID",0}, | |
1891 | { "_int","_unsigned_int",0}, | |
1892 | { "_int","_signed_int",0}, | |
f6bcfd97 BP |
1893 | { "_wxDateTime_t","_unsigned_short",0}, |
1894 | { "_wxDateTime_t","_short",0}, | |
1895 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
1896 | { "_time_t","_wxCoord",0}, |
1897 | { "_time_t","_wxPrintQuality",0}, | |
1898 | { "_time_t","_unsigned_int",0}, | |
1899 | { "_time_t","_int",0}, | |
1900 | { "_time_t","_wxWindowID",0}, | |
1901 | { "_time_t","_uint",0}, | |
1902 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
1903 | { "_wxCoord","_int",0}, |
1904 | { "_wxCoord","_signed_int",0}, | |
1905 | { "_wxCoord","_unsigned_int",0}, | |
1906 | { "_wxCoord","_wxWindowID",0}, | |
1907 | { "_wxCoord","_uint",0}, | |
1908 | { "_wxCoord","_EBool",0}, | |
1909 | { "_wxCoord","_size_t",0}, | |
c368d904 | 1910 | { "_wxCoord","_time_t",0}, |
f6bcfd97 | 1911 | { "_wxCoord","_wxPrintQuality",0}, |
f6bcfd97 | 1912 | { "_wxEvtHandler","_wxCalendarCtrl",SwigwxCalendarCtrlTowxEvtHandler}, |
f6bcfd97 | 1913 | { "_wxWindow","_wxCalendarCtrl",SwigwxCalendarCtrlTowxWindow}, |
f6bcfd97 BP |
1914 | {0,0,0}}; |
1915 | ||
1916 | static PyObject *SWIG_globals; | |
1917 | #ifdef __cplusplus | |
1918 | extern "C" | |
1919 | #endif | |
1920 | SWIGEXPORT(void) initcalendarc() { | |
1921 | PyObject *m, *d; | |
1922 | SWIG_globals = SWIG_newvarlink(); | |
1923 | m = Py_InitModule("calendarc", calendarcMethods); | |
1924 | d = PyModule_GetDict(m); | |
1925 | PyDict_SetItemString(d,"wxCAL_SUNDAY_FIRST", PyInt_FromLong((long) wxCAL_SUNDAY_FIRST)); | |
1926 | PyDict_SetItemString(d,"wxCAL_MONDAY_FIRST", PyInt_FromLong((long) wxCAL_MONDAY_FIRST)); | |
1927 | PyDict_SetItemString(d,"wxCAL_SHOW_HOLIDAYS", PyInt_FromLong((long) wxCAL_SHOW_HOLIDAYS)); | |
1928 | PyDict_SetItemString(d,"wxCAL_NO_YEAR_CHANGE", PyInt_FromLong((long) wxCAL_NO_YEAR_CHANGE)); | |
1929 | PyDict_SetItemString(d,"wxCAL_NO_MONTH_CHANGE", PyInt_FromLong((long) wxCAL_NO_MONTH_CHANGE)); | |
1930 | PyDict_SetItemString(d,"wxCAL_HITTEST_NOWHERE", PyInt_FromLong((long) wxCAL_HITTEST_NOWHERE)); | |
1931 | PyDict_SetItemString(d,"wxCAL_HITTEST_HEADER", PyInt_FromLong((long) wxCAL_HITTEST_HEADER)); | |
1932 | PyDict_SetItemString(d,"wxCAL_HITTEST_DAY", PyInt_FromLong((long) wxCAL_HITTEST_DAY)); | |
1933 | PyDict_SetItemString(d,"wxCAL_BORDER_NONE", PyInt_FromLong((long) wxCAL_BORDER_NONE)); | |
1934 | PyDict_SetItemString(d,"wxCAL_BORDER_SQUARE", PyInt_FromLong((long) wxCAL_BORDER_SQUARE)); | |
1935 | PyDict_SetItemString(d,"wxCAL_BORDER_ROUND", PyInt_FromLong((long) wxCAL_BORDER_ROUND)); | |
1936 | PyDict_SetItemString(d,"wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_DOUBLECLICKED)); | |
1937 | PyDict_SetItemString(d,"wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_SEL_CHANGED)); | |
1938 | PyDict_SetItemString(d,"wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_DAY_CHANGED)); | |
1939 | PyDict_SetItemString(d,"wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_MONTH_CHANGED)); | |
1940 | PyDict_SetItemString(d,"wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong((long) wxEVT_CALENDAR_YEAR_CHANGED)); | |
1941 | PyDict_SetItemString(d,"wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong((long) wxEVT_CALENDAR_WEEKDAY_CLICKED)); | |
e508a2b6 RD |
1942 | |
1943 | wxClassInfo::CleanUpClasses(); | |
1944 | wxClassInfo::InitializeClasses(); | |
f6bcfd97 BP |
1945 | { |
1946 | int i; | |
1947 | for (i = 0; _swig_mapping[i].n1; i++) | |
1948 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1949 | } | |
1950 | } |