]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
093d3ff1 | 3 | * Version 1.3.24 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
d14a1e28 RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 26 | }; |
d14a1e28 RD |
27 | #endif |
28 | ||
29 | ||
093d3ff1 RD |
30 | #ifndef SWIG_TEMPLATE_DISAMBIGUATOR |
31 | # if defined(__SUNPRO_CC) | |
32 | # define SWIG_TEMPLATE_DISAMBIGUATOR template | |
33 | # else | |
34 | # define SWIG_TEMPLATE_DISAMBIGUATOR | |
35 | # endif | |
36 | #endif | |
d14a1e28 | 37 | |
c9c7117a | 38 | |
093d3ff1 | 39 | #include <Python.h> |
d14a1e28 RD |
40 | |
41 | /*********************************************************************** | |
093d3ff1 | 42 | * swigrun.swg |
d14a1e28 | 43 | * |
093d3ff1 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d14a1e28 RD |
46 | * |
47 | ************************************************************************/ | |
48 | ||
093d3ff1 RD |
49 | /* This should only be incremented when either the layout of swig_type_info changes, |
50 | or for whatever reason, the runtime changes incompatibly */ | |
51 | #define SWIG_RUNTIME_VERSION "1" | |
d14a1e28 | 52 | |
093d3ff1 RD |
53 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
54 | #ifdef SWIG_TYPE_TABLE | |
55 | #define SWIG_QUOTE_STRING(x) #x | |
56 | #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
57 | #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 58 | #else |
093d3ff1 | 59 | #define SWIG_TYPE_TABLE_NAME |
d14a1e28 RD |
60 | #endif |
61 | ||
093d3ff1 RD |
62 | #include <string.h> |
63 | ||
64 | #ifndef SWIGINLINE | |
65 | #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
66 | # define SWIGINLINE inline | |
d14a1e28 | 67 | #else |
093d3ff1 RD |
68 | # define SWIGINLINE |
69 | #endif | |
70 | #endif | |
71 | ||
72 | /* | |
73 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
74 | creating a static or dynamic library from the swig runtime code. | |
75 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
76 | ||
77 | But only do this if is strictly necessary, ie, if you have problems | |
78 | with your compiler or so. | |
79 | */ | |
80 | #ifndef SWIGRUNTIME | |
81 | #define SWIGRUNTIME static | |
82 | #endif | |
83 | #ifndef SWIGRUNTIMEINLINE | |
84 | #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
d14a1e28 RD |
85 | #endif |
86 | ||
d14a1e28 RD |
87 | #ifdef __cplusplus |
88 | extern "C" { | |
89 | #endif | |
90 | ||
91 | typedef void *(*swig_converter_func)(void *); | |
92 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
93 | ||
94 | typedef struct swig_type_info { | |
cc6dd355 | 95 | const char *name; |
d14a1e28 RD |
96 | swig_converter_func converter; |
97 | const char *str; | |
cc6dd355 | 98 | void *clientdata; |
d14a1e28 RD |
99 | swig_dycast_func dcast; |
100 | struct swig_type_info *next; | |
101 | struct swig_type_info *prev; | |
102 | } swig_type_info; | |
103 | ||
093d3ff1 RD |
104 | /* |
105 | Compare two type names skipping the space characters, therefore | |
106 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
107 | ||
108 | Return 0 when the two name types are equivalent, as in | |
109 | strncmp, but skipping ' '. | |
110 | */ | |
111 | SWIGRUNTIME int | |
112 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
113 | const char *f2, const char *l2) { | |
114 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
115 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
116 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
117 | if (*f1 != *f2) return *f1 - *f2; | |
118 | } | |
119 | return (l1 - f1) - (l2 - f2); | |
120 | } | |
121 | ||
122 | /* | |
123 | Check type equivalence in a name list like <name1>|<name2>|... | |
124 | */ | |
125 | SWIGRUNTIME int | |
126 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
127 | int equiv = 0; | |
128 | const char* te = tb + strlen(tb); | |
129 | const char* ne = nb; | |
130 | while (!equiv && *ne) { | |
131 | for (nb = ne; *ne; ++ne) { | |
132 | if (*ne == '|') break; | |
133 | } | |
134 | equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0; | |
135 | if (*ne) ++ne; | |
136 | } | |
137 | return equiv; | |
138 | } | |
139 | ||
140 | /* | |
141 | Register a type mapping with the type-checking | |
142 | */ | |
143 | SWIGRUNTIME swig_type_info * | |
144 | SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) { | |
145 | swig_type_info *tc, *head, *ret, *next; | |
146 | /* Check to see if this type has already been registered */ | |
147 | tc = *tl; | |
148 | while (tc) { | |
149 | /* check simple type equivalence */ | |
150 | int typeequiv = (strcmp(tc->name, ti->name) == 0); | |
151 | /* check full type equivalence, resolving typedefs */ | |
152 | if (!typeequiv) { | |
153 | /* only if tc is not a typedef (no '|' on it) */ | |
154 | if (tc->str && ti->str && !strstr(tc->str,"|")) { | |
155 | typeequiv = SWIG_TypeEquiv(ti->str,tc->str); | |
156 | } | |
157 | } | |
158 | if (typeequiv) { | |
159 | /* Already exists in the table. Just add additional types to the list */ | |
160 | if (ti->clientdata) tc->clientdata = ti->clientdata; | |
161 | head = tc; | |
162 | next = tc->next; | |
163 | goto l1; | |
164 | } | |
165 | tc = tc->prev; | |
166 | } | |
167 | head = ti; | |
168 | next = 0; | |
169 | ||
170 | /* Place in list */ | |
171 | ti->prev = *tl; | |
172 | *tl = ti; | |
173 | ||
174 | /* Build linked lists */ | |
175 | l1: | |
176 | ret = head; | |
177 | tc = ti + 1; | |
178 | /* Patch up the rest of the links */ | |
179 | while (tc->name) { | |
180 | head->next = tc; | |
181 | tc->prev = head; | |
182 | head = tc; | |
183 | tc++; | |
184 | } | |
185 | if (next) next->prev = head; | |
186 | head->next = next; | |
187 | ||
188 | return ret; | |
189 | } | |
190 | ||
191 | /* | |
192 | Check the typename | |
193 | */ | |
194 | SWIGRUNTIME swig_type_info * | |
195 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
196 | swig_type_info *s; | |
197 | if (!ty) return 0; /* Void pointer */ | |
198 | s = ty->next; /* First element always just a name */ | |
199 | do { | |
200 | if (strcmp(s->name,c) == 0) { | |
201 | if (s == ty->next) return s; | |
202 | /* Move s to the top of the linked list */ | |
203 | s->prev->next = s->next; | |
204 | if (s->next) { | |
205 | s->next->prev = s->prev; | |
206 | } | |
207 | /* Insert s as second element in the list */ | |
208 | s->next = ty->next; | |
209 | if (ty->next) ty->next->prev = s; | |
210 | ty->next = s; | |
211 | s->prev = ty; | |
212 | return s; | |
213 | } | |
214 | s = s->next; | |
215 | } while (s && (s != ty->next)); | |
216 | return 0; | |
217 | } | |
218 | ||
219 | /* | |
220 | Cast a pointer up an inheritance hierarchy | |
221 | */ | |
222 | SWIGRUNTIMEINLINE void * | |
223 | SWIG_TypeCast(swig_type_info *ty, void *ptr) { | |
224 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); | |
225 | } | |
226 | ||
227 | /* | |
228 | Dynamic pointer casting. Down an inheritance hierarchy | |
229 | */ | |
230 | SWIGRUNTIME swig_type_info * | |
231 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
232 | swig_type_info *lastty = ty; | |
233 | if (!ty || !ty->dcast) return ty; | |
234 | while (ty && (ty->dcast)) { | |
235 | ty = (*ty->dcast)(ptr); | |
236 | if (ty) lastty = ty; | |
237 | } | |
238 | return lastty; | |
239 | } | |
240 | ||
241 | /* | |
242 | Return the name associated with this type | |
243 | */ | |
244 | SWIGRUNTIMEINLINE const char * | |
245 | SWIG_TypeName(const swig_type_info *ty) { | |
246 | return ty->name; | |
247 | } | |
248 | ||
249 | /* | |
250 | Return the pretty name associated with this type, | |
251 | that is an unmangled type name in a form presentable to the user. | |
252 | */ | |
253 | SWIGRUNTIME const char * | |
254 | SWIG_TypePrettyName(const swig_type_info *type) { | |
255 | /* The "str" field contains the equivalent pretty names of the | |
256 | type, separated by vertical-bar characters. We choose | |
257 | to print the last name, as it is often (?) the most | |
258 | specific. */ | |
259 | if (type->str != NULL) { | |
260 | const char *last_name = type->str; | |
261 | const char *s; | |
262 | for (s = type->str; *s; s++) | |
263 | if (*s == '|') last_name = s+1; | |
264 | return last_name; | |
265 | } | |
266 | else | |
267 | return type->name; | |
268 | } | |
269 | ||
270 | /* | |
271 | Search for a swig_type_info structure | |
272 | */ | |
273 | SWIGRUNTIME swig_type_info * | |
274 | SWIG_TypeQueryTL(swig_type_info *tl, const char *name) { | |
275 | swig_type_info *ty = tl; | |
276 | while (ty) { | |
277 | if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty; | |
278 | if (ty->name && (strcmp(name,ty->name) == 0)) return ty; | |
279 | ty = ty->prev; | |
280 | } | |
281 | return 0; | |
282 | } | |
283 | ||
284 | /* | |
285 | Set the clientdata field for a type | |
286 | */ | |
287 | SWIGRUNTIME void | |
288 | SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) { | |
289 | swig_type_info *tc, *equiv; | |
290 | if (ti->clientdata) return; | |
291 | /* if (ti->clientdata == clientdata) return; */ | |
292 | ti->clientdata = clientdata; | |
293 | equiv = ti->next; | |
294 | while (equiv) { | |
295 | if (!equiv->converter) { | |
296 | tc = tl; | |
297 | while (tc) { | |
298 | if ((strcmp(tc->name, equiv->name) == 0)) | |
299 | SWIG_TypeClientDataTL(tl,tc,clientdata); | |
300 | tc = tc->prev; | |
301 | } | |
302 | } | |
303 | equiv = equiv->next; | |
304 | } | |
305 | } | |
306 | ||
307 | /* | |
308 | Pack binary data into a string | |
309 | */ | |
310 | SWIGRUNTIME char * | |
311 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
312 | static char hex[17] = "0123456789abcdef"; | |
313 | unsigned char *u = (unsigned char *) ptr; | |
314 | const unsigned char *eu = u + sz; | |
315 | register unsigned char uu; | |
316 | for (; u != eu; ++u) { | |
317 | uu = *u; | |
318 | *(c++) = hex[(uu & 0xf0) >> 4]; | |
319 | *(c++) = hex[uu & 0xf]; | |
320 | } | |
321 | return c; | |
322 | } | |
323 | ||
324 | /* | |
325 | Unpack binary data from a string | |
326 | */ | |
327 | SWIGRUNTIME const char * | |
328 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
329 | register unsigned char *u = (unsigned char *) ptr; | |
330 | register const unsigned char *eu = u + sz; | |
331 | for (; u != eu; ++u) { | |
332 | register int d = *(c++); | |
333 | register unsigned char uu = 0; | |
334 | if ((d >= '0') && (d <= '9')) | |
335 | uu = ((d - '0') << 4); | |
336 | else if ((d >= 'a') && (d <= 'f')) | |
337 | uu = ((d - ('a'-10)) << 4); | |
338 | else | |
339 | return (char *) 0; | |
340 | d = *(c++); | |
341 | if ((d >= '0') && (d <= '9')) | |
342 | uu |= (d - '0'); | |
343 | else if ((d >= 'a') && (d <= 'f')) | |
344 | uu |= (d - ('a'-10)); | |
345 | else | |
346 | return (char *) 0; | |
347 | *u = uu; | |
348 | } | |
349 | return c; | |
350 | } | |
351 | ||
352 | /* | |
353 | This function will propagate the clientdata field of type to any new | |
354 | swig_type_info structures that have been added into the list of | |
355 | equivalent types. It is like calling SWIG_TypeClientData(type, | |
356 | clientdata) a second time. | |
357 | */ | |
358 | SWIGRUNTIME void | |
359 | SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) { | |
360 | swig_type_info *equiv = type->next; | |
361 | swig_type_info *tc; | |
362 | if (!type->clientdata) return; | |
363 | while (equiv) { | |
364 | if (!equiv->converter) { | |
365 | tc = tl; | |
366 | while (tc) { | |
367 | if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata) | |
368 | SWIG_TypeClientDataTL(tl,tc, type->clientdata); | |
369 | tc = tc->prev; | |
370 | } | |
371 | } | |
372 | equiv = equiv->next; | |
373 | } | |
374 | } | |
d14a1e28 | 375 | |
093d3ff1 RD |
376 | /* |
377 | Pack 'void *' into a string buffer. | |
378 | */ | |
379 | SWIGRUNTIME char * | |
380 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
381 | char *r = buff; | |
382 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
383 | *(r++) = '_'; | |
384 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
385 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
386 | strcpy(r,name); | |
387 | return buff; | |
388 | } | |
389 | ||
390 | SWIGRUNTIME const char * | |
391 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
392 | if (*c != '_') { | |
393 | if (strcmp(c,"NULL") == 0) { | |
394 | *ptr = (void *) 0; | |
395 | return name; | |
396 | } else { | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
401 | } | |
402 | ||
403 | SWIGRUNTIME char * | |
404 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
405 | char *r = buff; | |
406 | size_t lname = (name ? strlen(name) : 0); | |
407 | if ((2*sz + 2 + lname) > bsz) return 0; | |
408 | *(r++) = '_'; | |
409 | r = SWIG_PackData(r,ptr,sz); | |
410 | if (lname) { | |
411 | strncpy(r,name,lname+1); | |
412 | } else { | |
413 | *r = 0; | |
414 | } | |
415 | return buff; | |
416 | } | |
d14a1e28 | 417 | |
093d3ff1 RD |
418 | SWIGRUNTIME const char * |
419 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
420 | if (*c != '_') { | |
421 | if (strcmp(c,"NULL") == 0) { | |
422 | memset(ptr,0,sz); | |
423 | return name; | |
424 | } else { | |
425 | return 0; | |
426 | } | |
427 | } | |
428 | return SWIG_UnpackData(++c,ptr,sz); | |
429 | } | |
d14a1e28 RD |
430 | |
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
093d3ff1 RD |
436 | * common.swg |
437 | * | |
438 | * This file contains generic SWIG runtime support for pointer | |
439 | * type checking as well as a few commonly used macros to control | |
440 | * external linkage. | |
d14a1e28 | 441 | * |
093d3ff1 | 442 | * Author : David Beazley (beazley@cs.uchicago.edu) |
d14a1e28 | 443 | * |
093d3ff1 RD |
444 | * Copyright (c) 1999-2000, The University of Chicago |
445 | * | |
446 | * This file may be freely redistributed without license or fee provided | |
447 | * this copyright message remains intact. | |
d14a1e28 RD |
448 | ************************************************************************/ |
449 | ||
093d3ff1 RD |
450 | |
451 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
452 | # if !defined(STATIC_LINKED) | |
453 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
454 | # else | |
455 | # define SWIGEXPORT(a) a | |
456 | # endif | |
457 | #else | |
458 | # define SWIGEXPORT(a) a | |
459 | #endif | |
460 | ||
461 | #ifdef __cplusplus | |
462 | extern "C" { | |
463 | #endif | |
464 | ||
465 | ||
466 | /*************************************************************************/ | |
467 | ||
468 | ||
469 | /* The static type info list */ | |
470 | ||
471 | static swig_type_info *swig_type_list = 0; | |
472 | static swig_type_info **swig_type_list_handle = &swig_type_list; | |
473 | ||
474 | ||
475 | /* Register a type mapping with the type-checking */ | |
476 | static swig_type_info * | |
477 | SWIG_TypeRegister(swig_type_info *ti) { | |
478 | return SWIG_TypeRegisterTL(swig_type_list_handle, ti); | |
479 | } | |
480 | ||
481 | /* Search for a swig_type_info structure */ | |
482 | static swig_type_info * | |
483 | SWIG_TypeQuery(const char *name) { | |
484 | return SWIG_TypeQueryTL(*swig_type_list_handle, name); | |
485 | } | |
486 | ||
487 | /* Set the clientdata field for a type */ | |
488 | static void | |
489 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
490 | SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata); | |
491 | } | |
492 | ||
493 | /* This function will propagate the clientdata field of type to | |
494 | * any new swig_type_info structures that have been added into the list | |
495 | * of equivalent types. It is like calling | |
496 | * SWIG_TypeClientData(type, clientdata) a second time. | |
497 | */ | |
498 | static void | |
499 | SWIG_PropagateClientData(swig_type_info *type) { | |
500 | SWIG_PropagateClientDataTL(*swig_type_list_handle, type); | |
501 | } | |
502 | ||
503 | #ifdef __cplusplus | |
504 | } | |
505 | #endif | |
506 | ||
507 | /* ----------------------------------------------------------------------------- | |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
510 | ||
d14a1e28 RD |
511 | #ifdef __cplusplus |
512 | extern "C" { | |
513 | #endif | |
514 | ||
093d3ff1 RD |
515 | /* ----------------------------------------------------------------------------- |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
518 | ||
519 | #ifndef SWIGINTERN | |
520 | #define SWIGINTERN static | |
521 | #endif | |
522 | ||
523 | #ifndef SWIGINTERNSHORT | |
524 | #ifdef __cplusplus | |
525 | #define SWIGINTERNSHORT static inline | |
526 | #else /* C case */ | |
527 | #define SWIGINTERNSHORT static | |
528 | #endif /* __cplusplus */ | |
529 | #endif | |
530 | ||
531 | ||
532 | /* | |
533 | Exception handling in wrappers | |
534 | */ | |
535 | #define SWIG_fail goto fail | |
536 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
537 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
538 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
539 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
540 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
541 | ||
542 | /* | |
543 | Contract support | |
544 | */ | |
545 | #define SWIG_contract_assert(expr, msg) \ | |
546 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
547 | ||
548 | /* ----------------------------------------------------------------------------- | |
549 | * Constant declarations | |
550 | * ----------------------------------------------------------------------------- */ | |
551 | ||
552 | /* Constant Types */ | |
d14a1e28 RD |
553 | #define SWIG_PY_INT 1 |
554 | #define SWIG_PY_FLOAT 2 | |
555 | #define SWIG_PY_STRING 3 | |
556 | #define SWIG_PY_POINTER 4 | |
557 | #define SWIG_PY_BINARY 5 | |
558 | ||
093d3ff1 RD |
559 | /* Constant information structure */ |
560 | typedef struct swig_const_info { | |
561 | int type; | |
562 | char *name; | |
563 | long lvalue; | |
564 | double dvalue; | |
565 | void *pvalue; | |
566 | swig_type_info **ptype; | |
567 | } swig_const_info; | |
568 | ||
569 | ||
570 | /* ----------------------------------------------------------------------------- | |
571 | * Alloc. memory flags | |
572 | * ----------------------------------------------------------------------------- */ | |
573 | #define SWIG_OLDOBJ 1 | |
574 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
575 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
576 | ||
577 | #ifdef __cplusplus | |
578 | } | |
579 | #endif | |
580 | ||
581 | ||
582 | /*********************************************************************** | |
583 | * pyrun.swg | |
584 | * | |
585 | * This file contains the runtime support for Python modules | |
586 | * and includes code for managing global variables and pointer | |
587 | * type checking. | |
588 | * | |
589 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
590 | ************************************************************************/ | |
591 | ||
592 | /* Common SWIG API */ | |
593 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
594 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
595 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
596 | ||
597 | ||
598 | /* Python-specific SWIG API */ | |
599 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
600 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
601 | ||
602 | ||
603 | /* ----------------------------------------------------------------------------- | |
604 | * Pointer declarations | |
605 | * ----------------------------------------------------------------------------- */ | |
606 | /* | |
607 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
608 | C/C++ pointers in the python side. Very useful for debugging, but | |
609 | not always safe. | |
610 | */ | |
611 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
612 | # define SWIG_COBJECT_TYPES | |
613 | #endif | |
614 | ||
d14a1e28 | 615 | /* Flags for pointer conversion */ |
093d3ff1 RD |
616 | #define SWIG_POINTER_EXCEPTION 0x1 |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
618 | ||
619 | ||
620 | #ifdef __cplusplus | |
621 | extern "C" { | |
622 | #endif | |
623 | ||
624 | /* ----------------------------------------------------------------------------- | |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
627 | ||
628 | #ifndef SWIG_BUFFER_SIZE | |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
631 | ||
632 | #if defined(SWIG_COBJECT_TYPES) | |
633 | #if !defined(SWIG_COBJECT_PYTHON) | |
634 | /* ----------------------------------------------------------------------------- | |
635 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
636 | * ----------------------------------------------------------------------------- */ | |
637 | ||
638 | typedef struct { | |
639 | PyObject_HEAD | |
640 | void *ptr; | |
641 | const char *desc; | |
642 | } PySwigObject; | |
643 | ||
644 | /* Declarations for objects of type PySwigObject */ | |
645 | ||
646 | SWIGRUNTIME int | |
647 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
648 | { | |
649 | char result[SWIG_BUFFER_SIZE]; | |
650 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { | |
651 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
652 | return 0; | |
653 | } else { | |
654 | return 1; | |
655 | } | |
656 | } | |
657 | ||
658 | SWIGRUNTIME PyObject * | |
659 | PySwigObject_repr(PySwigObject *v) | |
660 | { | |
661 | char result[SWIG_BUFFER_SIZE]; | |
662 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
663 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
664 | } | |
665 | ||
666 | SWIGRUNTIME PyObject * | |
667 | PySwigObject_str(PySwigObject *v) | |
668 | { | |
669 | char result[SWIG_BUFFER_SIZE]; | |
670 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
671 | PyString_FromString(result) : 0; | |
672 | } | |
673 | ||
674 | SWIGRUNTIME PyObject * | |
675 | PySwigObject_long(PySwigObject *v) | |
676 | { | |
677 | return PyLong_FromUnsignedLong((unsigned long) v->ptr); | |
678 | } | |
679 | ||
680 | SWIGRUNTIME PyObject * | |
681 | PySwigObject_oct(PySwigObject *v) | |
682 | { | |
683 | char buf[100]; | |
684 | unsigned long x = (unsigned long)v->ptr; | |
685 | if (x == 0) | |
686 | strcpy(buf, "0"); | |
687 | else | |
688 | PyOS_snprintf(buf, sizeof(buf), "0%lo", x); | |
689 | return PyString_FromString(buf); | |
690 | } | |
691 | ||
692 | SWIGRUNTIME PyObject * | |
693 | PySwigObject_hex(PySwigObject *v) | |
694 | { | |
695 | char buf[100]; | |
696 | PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr); | |
697 | return PyString_FromString(buf); | |
698 | } | |
699 | ||
700 | SWIGRUNTIME int | |
701 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
702 | { | |
703 | int c = strcmp(v->desc, w->desc); | |
704 | if (c) { | |
705 | return c; | |
706 | } else { | |
707 | void *i = v->ptr; | |
708 | void *j = w->ptr; | |
709 | return (i < j) ? -1 : (i > j) ? 1 : 0; | |
710 | } | |
711 | } | |
712 | ||
713 | SWIGRUNTIME void | |
714 | PySwigObject_dealloc(PySwigObject *self) | |
715 | { | |
716 | PyObject_DEL(self); | |
717 | } | |
718 | ||
719 | SWIGRUNTIME PyTypeObject* | |
720 | PySwigObject_GetType() { | |
721 | static char PySwigObject_Type__doc__[] = | |
722 | "Swig object carries a C/C++ instance pointer"; | |
723 | ||
724 | static PyNumberMethods PySwigObject_as_number = { | |
725 | (binaryfunc)0, /*nb_add*/ | |
726 | (binaryfunc)0, /*nb_subtract*/ | |
727 | (binaryfunc)0, /*nb_multiply*/ | |
728 | (binaryfunc)0, /*nb_divide*/ | |
729 | (binaryfunc)0, /*nb_remainder*/ | |
730 | (binaryfunc)0, /*nb_divmod*/ | |
731 | (ternaryfunc)0,/*nb_power*/ | |
732 | (unaryfunc)0, /*nb_negative*/ | |
733 | (unaryfunc)0, /*nb_positive*/ | |
734 | (unaryfunc)0, /*nb_absolute*/ | |
735 | (inquiry)0, /*nb_nonzero*/ | |
736 | 0, /*nb_invert*/ | |
737 | 0, /*nb_lshift*/ | |
738 | 0, /*nb_rshift*/ | |
739 | 0, /*nb_and*/ | |
740 | 0, /*nb_xor*/ | |
741 | 0, /*nb_or*/ | |
742 | (coercion)0, /*nb_coerce*/ | |
743 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
744 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
745 | (unaryfunc)0, /*nb_float*/ | |
746 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
747 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
748 | #if PY_VERSION_HEX >= 0x02000000 | |
749 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
750 | #endif | |
751 | }; | |
752 | ||
753 | static int type_init = 0; | |
754 | static PyTypeObject PySwigObject_Type; | |
755 | ||
756 | if (!type_init) { | |
757 | PyTypeObject tmp = { | |
758 | PyObject_HEAD_INIT(&PyType_Type) | |
759 | 0, /*ob_size*/ | |
760 | "PySwigObject", /*tp_name*/ | |
761 | sizeof(PySwigObject), /*tp_basicsize*/ | |
762 | 0, /*tp_itemsize*/ | |
763 | /* methods */ | |
764 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
765 | (printfunc)PySwigObject_print, /*tp_print*/ | |
766 | (getattrfunc)0, /*tp_getattr*/ | |
767 | (setattrfunc)0, /*tp_setattr*/ | |
768 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
769 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
770 | &PySwigObject_as_number, /*tp_as_number*/ | |
771 | 0, /*tp_as_sequence*/ | |
772 | 0, /*tp_as_mapping*/ | |
773 | (hashfunc)0, /*tp_hash*/ | |
774 | (ternaryfunc)0, /*tp_call*/ | |
775 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
776 | /* Space for future expansion */ | |
777 | 0L,0L,0L,0L, | |
778 | PySwigObject_Type__doc__, /* Documentation string */ | |
779 | #if PY_VERSION_HEX >= 0x02000000 | |
780 | 0, /* tp_traverse */ | |
781 | 0, /* tp_clear */ | |
782 | #endif | |
783 | #if PY_VERSION_HEX >= 0x02010000 | |
784 | 0, /* tp_richcompare */ | |
785 | 0, /* tp_weaklistoffset */ | |
786 | #endif | |
787 | #if PY_VERSION_HEX >= 0x02020000 | |
788 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
789 | #endif | |
790 | #if PY_VERSION_HEX >= 0x02030000 | |
791 | 0, /* tp_del */ | |
792 | #endif | |
793 | #ifdef COUNT_ALLOCS | |
794 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
795 | #endif | |
796 | }; | |
797 | ||
798 | PySwigObject_Type = tmp; | |
799 | type_init = 1; | |
800 | } | |
801 | ||
802 | return &PySwigObject_Type; | |
803 | } | |
804 | ||
805 | SWIGRUNTIME PyObject * | |
806 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
807 | { | |
808 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType()); | |
809 | if (self == NULL) return NULL; | |
810 | self->ptr = ptr; | |
811 | self->desc = desc; | |
812 | return (PyObject *)self; | |
813 | } | |
814 | ||
815 | SWIGRUNTIMEINLINE void * | |
816 | PySwigObject_AsVoidPtr(PyObject *self) | |
817 | { | |
818 | return ((PySwigObject *)self)->ptr; | |
819 | } | |
820 | ||
821 | SWIGRUNTIMEINLINE const char * | |
822 | PySwigObject_GetDesc(PyObject *self) | |
823 | { | |
824 | return ((PySwigObject *)self)->desc; | |
825 | } | |
826 | ||
827 | SWIGRUNTIMEINLINE int | |
828 | PySwigObject_Check(PyObject *op) { | |
829 | return ((op)->ob_type == PySwigObject_GetType()) | |
830 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
831 | } | |
832 | ||
833 | /* ----------------------------------------------------------------------------- | |
834 | * Implements a simple Swig Packed type, and use it instead of string | |
835 | * ----------------------------------------------------------------------------- */ | |
836 | ||
837 | typedef struct { | |
838 | PyObject_HEAD | |
839 | void *pack; | |
840 | const char *desc; | |
841 | size_t size; | |
842 | } PySwigPacked; | |
843 | ||
844 | SWIGRUNTIME int | |
845 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
846 | { | |
847 | char result[SWIG_BUFFER_SIZE]; | |
848 | fputs("<Swig Packed ", fp); | |
849 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
850 | fputs("at ", fp); | |
851 | fputs(result, fp); | |
852 | } | |
853 | fputs(v->desc,fp); | |
854 | fputs(">", fp); | |
855 | return 0; | |
856 | } | |
857 | ||
858 | SWIGRUNTIME PyObject * | |
859 | PySwigPacked_repr(PySwigPacked *v) | |
860 | { | |
861 | char result[SWIG_BUFFER_SIZE]; | |
862 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
863 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
864 | } else { | |
865 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
866 | } | |
867 | } | |
868 | ||
869 | SWIGRUNTIME PyObject * | |
870 | PySwigPacked_str(PySwigPacked *v) | |
871 | { | |
872 | char result[SWIG_BUFFER_SIZE]; | |
873 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
874 | return PyString_FromFormat("%s%s", result, v->desc); | |
875 | } else { | |
876 | return PyString_FromFormat("%s", v->desc); | |
877 | } | |
878 | } | |
879 | ||
880 | SWIGRUNTIME int | |
881 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
882 | { | |
883 | int c = strcmp(v->desc, w->desc); | |
884 | if (c) { | |
885 | return c; | |
886 | } else { | |
887 | size_t i = v->size; | |
888 | size_t j = w->size; | |
889 | int s = (i < j) ? -1 : (i > j) ? 1 : 0; | |
890 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
891 | } | |
892 | } | |
893 | ||
894 | SWIGRUNTIME void | |
895 | PySwigPacked_dealloc(PySwigPacked *self) | |
896 | { | |
897 | free(self->pack); | |
898 | PyObject_DEL(self); | |
899 | } | |
900 | ||
901 | SWIGRUNTIME PyTypeObject* | |
902 | PySwigPacked_GetType() { | |
903 | static char PySwigPacked_Type__doc__[] = | |
904 | "Swig object carries a C/C++ instance pointer"; | |
905 | static int type_init = 0; | |
906 | ||
907 | static PyTypeObject PySwigPacked_Type; | |
908 | if (!type_init) { | |
909 | PyTypeObject tmp = { | |
910 | PyObject_HEAD_INIT(&PyType_Type) | |
911 | 0, /*ob_size*/ | |
912 | "PySwigPacked", /*tp_name*/ | |
913 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
914 | 0, /*tp_itemsize*/ | |
915 | /* methods */ | |
916 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
917 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
918 | (getattrfunc)0, /*tp_getattr*/ | |
919 | (setattrfunc)0, /*tp_setattr*/ | |
920 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
921 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
922 | 0, /*tp_as_number*/ | |
923 | 0, /*tp_as_sequence*/ | |
924 | 0, /*tp_as_mapping*/ | |
925 | (hashfunc)0, /*tp_hash*/ | |
926 | (ternaryfunc)0, /*tp_call*/ | |
927 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
928 | /* Space for future expansion */ | |
929 | 0L,0L,0L,0L, | |
930 | PySwigPacked_Type__doc__, /* Documentation string */ | |
931 | #if PY_VERSION_HEX >= 0x02000000 | |
932 | 0, /* tp_traverse */ | |
933 | 0, /* tp_clear */ | |
934 | #endif | |
935 | #if PY_VERSION_HEX >= 0x02010000 | |
936 | 0, /* tp_richcompare */ | |
937 | 0, /* tp_weaklistoffset */ | |
938 | #endif | |
939 | #if PY_VERSION_HEX >= 0x02020000 | |
940 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
941 | #endif | |
942 | #if PY_VERSION_HEX >= 0x02030000 | |
943 | 0, /* tp_del */ | |
944 | #endif | |
945 | #ifdef COUNT_ALLOCS | |
946 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
947 | #endif | |
948 | }; | |
949 | ||
950 | PySwigPacked_Type = tmp; | |
951 | type_init = 1; | |
952 | } | |
953 | ||
954 | ||
955 | ||
956 | return &PySwigPacked_Type; | |
957 | } | |
958 | ||
959 | SWIGRUNTIME PyObject * | |
960 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
961 | { | |
962 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType()); | |
963 | if (self == NULL) { | |
964 | return NULL; | |
965 | } else { | |
966 | void *pack = malloc(size); | |
967 | memcpy(pack, ptr, size); | |
968 | self->pack = pack; | |
969 | self->desc = desc; | |
970 | self->size = size; | |
971 | return (PyObject *) self; | |
972 | } | |
973 | } | |
974 | ||
975 | SWIGRUNTIMEINLINE const char * | |
976 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
977 | { | |
978 | PySwigPacked *self = (PySwigPacked *)obj; | |
979 | if (self->size != size) return 0; | |
980 | memcpy(ptr, self->pack, size); | |
981 | return self->desc; | |
982 | } | |
983 | ||
984 | SWIGRUNTIMEINLINE const char * | |
985 | PySwigPacked_GetDesc(PyObject *self) | |
986 | { | |
987 | return ((PySwigPacked *)self)->desc; | |
988 | } | |
989 | ||
990 | SWIGRUNTIMEINLINE int | |
991 | PySwigPacked_Check(PyObject *op) { | |
992 | return ((op)->ob_type == PySwigPacked_GetType()) | |
993 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
994 | } | |
995 | ||
996 | #else | |
997 | /* ----------------------------------------------------------------------------- | |
998 | * Use the old Python PyCObject instead of PySwigObject | |
999 | * ----------------------------------------------------------------------------- */ | |
1000 | ||
1001 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1002 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1003 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1004 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1005 | ||
1006 | #endif | |
1007 | ||
1008 | #endif | |
1009 | ||
1010 | /* ----------------------------------------------------------------------------- | |
1011 | * errors manipulation | |
1012 | * ----------------------------------------------------------------------------- */ | |
1013 | ||
1014 | SWIGRUNTIME void | |
1015 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1016 | { | |
1017 | if (type) { | |
1018 | #if defined(SWIG_COBJECT_TYPES) | |
1019 | if (PySwigObject_Check(obj)) { | |
1020 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
1021 | if (otype) { | |
1022 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1023 | type, otype); | |
1024 | return; | |
1025 | } | |
1026 | } else | |
1027 | #endif | |
1028 | { | |
1029 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1030 | if (otype) { | |
1031 | PyObject *str = PyObject_Str(obj); | |
1032 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1033 | if (cstr) { | |
1034 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1035 | type, otype, cstr); | |
1036 | } else { | |
1037 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1038 | type, otype); | |
1039 | } | |
1040 | Py_DECREF(str); | |
1041 | return; | |
1042 | } | |
1043 | } | |
1044 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1045 | } else { | |
1046 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1047 | } | |
1048 | } | |
1049 | ||
1050 | SWIGRUNTIMEINLINE void | |
1051 | SWIG_Python_NullRef(const char *type) | |
1052 | { | |
1053 | if (type) { | |
1054 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1055 | } else { | |
1056 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1057 | } | |
1058 | } | |
1059 | ||
1060 | SWIGRUNTIME int | |
1061 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1062 | { | |
1063 | if (PyErr_Occurred()) { | |
1064 | PyObject *type = 0; | |
1065 | PyObject *value = 0; | |
1066 | PyObject *traceback = 0; | |
1067 | PyErr_Fetch(&type, &value, &traceback); | |
1068 | if (value) { | |
1069 | PyObject *old_str = PyObject_Str(value); | |
1070 | Py_XINCREF(type); | |
1071 | PyErr_Clear(); | |
1072 | if (infront) { | |
1073 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1074 | } else { | |
1075 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1076 | } | |
1077 | Py_DECREF(old_str); | |
1078 | } | |
1079 | return 1; | |
1080 | } else { | |
1081 | return 0; | |
1082 | } | |
1083 | } | |
1084 | ||
1085 | SWIGRUNTIME int | |
1086 | SWIG_Python_ArgFail(int argnum) | |
1087 | { | |
1088 | if (PyErr_Occurred()) { | |
1089 | /* add information about failing argument */ | |
1090 | char mesg[256]; | |
1091 | sprintf(mesg, "argument number %d:", argnum); | |
1092 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1093 | } else { | |
1094 | return 0; | |
1095 | } | |
1096 | } | |
1097 | ||
1098 | ||
1099 | /* ----------------------------------------------------------------------------- | |
1100 | * pointers/data manipulation | |
1101 | * ----------------------------------------------------------------------------- */ | |
1102 | ||
1103 | /* Convert a pointer value */ | |
1104 | SWIGRUNTIME int | |
1105 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1106 | swig_type_info *tc; | |
1107 | const char *c = 0; | |
1108 | static PyObject *SWIG_this = 0; | |
1109 | int newref = 0; | |
1110 | PyObject *pyobj = 0; | |
1111 | void *vptr; | |
1112 | ||
1113 | if (!obj) return 0; | |
1114 | if (obj == Py_None) { | |
1115 | *ptr = 0; | |
1116 | return 0; | |
1117 | } | |
1118 | ||
1119 | #ifdef SWIG_COBJECT_TYPES | |
1120 | if (!(PySwigObject_Check(obj))) { | |
1121 | if (!SWIG_this) | |
1122 | SWIG_this = PyString_FromString("this"); | |
1123 | pyobj = obj; | |
1124 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1125 | newref = 1; | |
1126 | if (!obj) goto type_error; | |
1127 | if (!PySwigObject_Check(obj)) { | |
1128 | Py_DECREF(obj); | |
1129 | goto type_error; | |
1130 | } | |
1131 | } | |
1132 | vptr = PySwigObject_AsVoidPtr(obj); | |
1133 | c = (const char *) PySwigObject_GetDesc(obj); | |
1134 | if (newref) { Py_DECREF(obj); } | |
1135 | goto type_check; | |
1136 | #else | |
1137 | if (!(PyString_Check(obj))) { | |
1138 | if (!SWIG_this) | |
1139 | SWIG_this = PyString_FromString("this"); | |
1140 | pyobj = obj; | |
1141 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1142 | newref = 1; | |
1143 | if (!obj) goto type_error; | |
1144 | if (!PyString_Check(obj)) { | |
1145 | Py_DECREF(obj); | |
1146 | goto type_error; | |
1147 | } | |
1148 | } | |
1149 | c = PyString_AS_STRING(obj); | |
1150 | /* Pointer values must start with leading underscore */ | |
1151 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1152 | if (newref) { Py_DECREF(obj); } | |
1153 | if (!c) goto type_error; | |
1154 | #endif | |
1155 | ||
1156 | type_check: | |
1157 | ||
1158 | if (ty) { | |
1159 | tc = SWIG_TypeCheck(c,ty); | |
1160 | if (!tc) goto type_error; | |
1161 | *ptr = SWIG_TypeCast(tc,vptr); | |
1162 | } else { | |
1163 | *ptr = vptr; | |
1164 | } | |
1165 | ||
1166 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1167 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1168 | } | |
1169 | return 0; | |
1170 | ||
1171 | type_error: | |
1172 | PyErr_Clear(); | |
1173 | if (pyobj && !obj) { | |
1174 | obj = pyobj; | |
1175 | if (PyCFunction_Check(obj)) { | |
1176 | /* here we get the method pointer for callbacks */ | |
1177 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1178 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1179 | if (c) { | |
1180 | c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name); | |
1181 | if (!c) goto type_error; | |
1182 | goto type_check; | |
1183 | } | |
1184 | } | |
1185 | } | |
1186 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1187 | if (ty) { | |
1188 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1189 | } else { | |
1190 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1191 | } | |
1192 | } | |
1193 | return -1; | |
1194 | } | |
1195 | ||
1196 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1197 | SWIGRUNTIME void * | |
1198 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1199 | void *result; | |
1200 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1201 | PyErr_Clear(); | |
1202 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1203 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1204 | SWIG_Python_ArgFail(argnum); | |
1205 | } | |
1206 | } | |
1207 | return result; | |
1208 | } | |
d14a1e28 | 1209 | |
093d3ff1 RD |
1210 | /* Convert a packed value value */ |
1211 | SWIGRUNTIME int | |
1212 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1213 | swig_type_info *tc; | |
1214 | const char *c = 0; | |
d14a1e28 | 1215 | |
093d3ff1 RD |
1216 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) |
1217 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1218 | #else | |
1219 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1220 | c = PyString_AS_STRING(obj); | |
1221 | /* Pointer values must start with leading underscore */ | |
1222 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1223 | #endif | |
1224 | if (!c) goto type_error; | |
1225 | if (ty) { | |
1226 | tc = SWIG_TypeCheck(c,ty); | |
1227 | if (!tc) goto type_error; | |
1228 | } | |
1229 | return 0; | |
d14a1e28 | 1230 | |
093d3ff1 RD |
1231 | type_error: |
1232 | PyErr_Clear(); | |
1233 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1234 | if (ty) { | |
1235 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1236 | } else { | |
1237 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1238 | } | |
1239 | } | |
1240 | return -1; | |
1241 | } | |
1242 | ||
1243 | /* Create a new array object */ | |
1244 | SWIGRUNTIME PyObject * | |
1245 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1246 | PyObject *robj = 0; | |
1247 | if (!ptr) { | |
1248 | Py_INCREF(Py_None); | |
1249 | return Py_None; | |
1250 | } | |
1251 | #ifdef SWIG_COBJECT_TYPES | |
1252 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1253 | #else | |
1254 | { | |
1255 | char result[SWIG_BUFFER_SIZE]; | |
1256 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1257 | PyString_FromString(result) : 0; | |
1258 | } | |
1259 | #endif | |
1260 | if (!robj || (robj == Py_None)) return robj; | |
1261 | if (type->clientdata) { | |
1262 | PyObject *inst; | |
1263 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1264 | Py_DECREF(robj); | |
1265 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1266 | Py_DECREF(args); | |
1267 | if (inst) { | |
1268 | if (own) { | |
1269 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1270 | } | |
1271 | robj = inst; | |
1272 | } | |
1273 | } | |
1274 | return robj; | |
1275 | } | |
d14a1e28 | 1276 | |
093d3ff1 RD |
1277 | SWIGRUNTIME PyObject * |
1278 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1279 | PyObject *robj = 0; | |
1280 | if (!ptr) { | |
1281 | Py_INCREF(Py_None); | |
1282 | return Py_None; | |
1283 | } | |
1284 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1285 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1286 | #else | |
1287 | { | |
1288 | char result[SWIG_BUFFER_SIZE]; | |
1289 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1290 | PyString_FromString(result) : 0; | |
1291 | } | |
1292 | #endif | |
1293 | return robj; | |
1294 | } | |
d14a1e28 | 1295 | |
093d3ff1 RD |
1296 | /* -----------------------------------------------------------------------------* |
1297 | * Get type list | |
1298 | * -----------------------------------------------------------------------------*/ | |
d14a1e28 | 1299 | |
093d3ff1 RD |
1300 | #ifdef SWIG_LINK_RUNTIME |
1301 | void *SWIG_ReturnGlobalTypeList(void *); | |
1302 | #endif | |
d14a1e28 | 1303 | |
093d3ff1 RD |
1304 | SWIGRUNTIME swig_type_info ** |
1305 | SWIG_Python_GetTypeListHandle() { | |
1306 | static void *type_pointer = (void *)0; | |
1307 | /* first check if module already created */ | |
1308 | if (!type_pointer) { | |
1309 | #ifdef SWIG_LINK_RUNTIME | |
1310 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1311 | #else | |
1312 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1313 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1314 | if (PyErr_Occurred()) { | |
1315 | PyErr_Clear(); | |
1316 | type_pointer = (void *)0; | |
1317 | } | |
1318 | } | |
1319 | #endif | |
1320 | return (swig_type_info **) type_pointer; | |
1321 | } | |
d14a1e28 | 1322 | |
093d3ff1 RD |
1323 | /* |
1324 | Search for a swig_type_info structure | |
1325 | */ | |
1326 | SWIGRUNTIMEINLINE swig_type_info * | |
1327 | SWIG_Python_GetTypeList() { | |
1328 | swig_type_info **tlh = SWIG_Python_GetTypeListHandle(); | |
1329 | return tlh ? *tlh : (swig_type_info*)0; | |
1330 | } | |
d14a1e28 | 1331 | |
093d3ff1 | 1332 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList |
d14a1e28 | 1333 | |
d14a1e28 RD |
1334 | #ifdef __cplusplus |
1335 | } | |
1336 | #endif | |
1337 | ||
1338 | ||
d14a1e28 RD |
1339 | /* -------- TYPES TABLE (BEGIN) -------- */ |
1340 | ||
093d3ff1 RD |
1341 | #define SWIGTYPE_p_wxObject swig_types[0] |
1342 | #define SWIGTYPE_p_unsigned_char swig_types[1] | |
1343 | #define SWIGTYPE_p_wxColour swig_types[2] | |
1344 | #define SWIGTYPE_p_wxCalendarDateAttr swig_types[3] | |
1345 | #define SWIGTYPE_p_wxCalendarEvent swig_types[4] | |
1346 | #define SWIGTYPE_p_wxVisualAttributes swig_types[5] | |
1347 | #define SWIGTYPE_p_wxWindow swig_types[6] | |
1348 | #define SWIGTYPE_p_wxCommandEvent swig_types[7] | |
1349 | #define SWIGTYPE_p_unsigned_long swig_types[8] | |
1350 | #define SWIGTYPE_p_unsigned_int swig_types[9] | |
1351 | #define SWIGTYPE_unsigned_int swig_types[10] | |
1352 | #define SWIGTYPE_p_form_ops_t swig_types[11] | |
1353 | #define SWIGTYPE_p_wxDuplexMode swig_types[12] | |
1354 | #define SWIGTYPE_p_char swig_types[13] | |
1355 | #define SWIGTYPE_p_wxEvtHandler swig_types[14] | |
1356 | #define SWIGTYPE_std__ptrdiff_t swig_types[15] | |
1357 | #define SWIGTYPE_ptrdiff_t swig_types[16] | |
1358 | #define SWIGTYPE_p_wxFont swig_types[17] | |
1359 | #define SWIGTYPE_p_wxDateTime swig_types[18] | |
1360 | #define SWIGTYPE_p_wxControl swig_types[19] | |
1361 | #define SWIGTYPE_p_wxEvent swig_types[20] | |
1362 | #define SWIGTYPE_p_wxPaperSize swig_types[21] | |
1363 | #define SWIGTYPE_p_wxCalendarCtrl swig_types[22] | |
1364 | #define SWIGTYPE_p_int swig_types[23] | |
1365 | static swig_type_info *swig_types[25]; | |
d14a1e28 RD |
1366 | |
1367 | /* -------- TYPES TABLE (END) -------- */ | |
1368 | ||
1369 | ||
1370 | /*----------------------------------------------- | |
1371 | @(target):= _calendar.so | |
1372 | ------------------------------------------------*/ | |
1373 | #define SWIG_init init_calendar | |
1374 | ||
1375 | #define SWIG_name "_calendar" | |
1376 | ||
093d3ff1 RD |
1377 | #include "wx/wxPython/wxPython.h" |
1378 | #include "wx/wxPython/pyclasses.h" | |
15afbcd0 | 1379 | |
093d3ff1 | 1380 | #include <wx/calctrl.h> |
994141e6 RD |
1381 | |
1382 | ||
093d3ff1 | 1383 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
1384 | #define SWIG_From_int PyInt_FromLong |
1385 | /*@@*/ | |
d14a1e28 | 1386 | |
994141e6 | 1387 | |
15afbcd0 RD |
1388 | #include <limits.h> |
1389 | ||
1390 | ||
093d3ff1 | 1391 | SWIGINTERN int |
c32bde28 RD |
1392 | SWIG_CheckLongInRange(long value, long min_value, long max_value, |
1393 | const char *errmsg) | |
15afbcd0 | 1394 | { |
c32bde28 RD |
1395 | if (value < min_value) { |
1396 | if (errmsg) { | |
1397 | PyErr_Format(PyExc_OverflowError, | |
1398 | "value %ld is less than '%s' minimum %ld", | |
1399 | value, errmsg, min_value); | |
1400 | } | |
1401 | return 0; | |
1402 | } else if (value > max_value) { | |
1403 | if (errmsg) { | |
1404 | PyErr_Format(PyExc_OverflowError, | |
1405 | "value %ld is greater than '%s' maximum %ld", | |
1406 | value, errmsg, max_value); | |
15afbcd0 | 1407 | } |
c32bde28 | 1408 | return 0; |
15afbcd0 | 1409 | } |
c32bde28 | 1410 | return 1; |
15afbcd0 RD |
1411 | } |
1412 | ||
1413 | ||
093d3ff1 | 1414 | SWIGINTERN int |
c32bde28 | 1415 | SWIG_AsVal_long(PyObject* obj, long* val) |
15afbcd0 | 1416 | { |
c32bde28 RD |
1417 | if (PyNumber_Check(obj)) { |
1418 | if (val) *val = PyInt_AsLong(obj); | |
1419 | return 1; | |
1420 | } | |
69223c70 | 1421 | else { |
093d3ff1 | 1422 | SWIG_type_error("number", obj); |
69223c70 | 1423 | } |
c32bde28 | 1424 | return 0; |
15afbcd0 RD |
1425 | } |
1426 | ||
1427 | ||
1428 | #if INT_MAX != LONG_MAX | |
093d3ff1 | 1429 | SWIGINTERN int |
c32bde28 | 1430 | SWIG_AsVal_int(PyObject *obj, int *val) |
994141e6 | 1431 | { |
093d3ff1 | 1432 | const char* errmsg = val ? "int" : (char*)0; |
c32bde28 RD |
1433 | long v; |
1434 | if (SWIG_AsVal_long(obj, &v)) { | |
1435 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
093d3ff1 | 1436 | if (val) *val = (int)(v); |
c32bde28 RD |
1437 | return 1; |
1438 | } else { | |
1439 | return 0; | |
1440 | } | |
1441 | } else { | |
1442 | PyErr_Clear(); | |
1443 | } | |
1444 | if (val) { | |
093d3ff1 | 1445 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
1446 | } |
1447 | return 0; | |
15afbcd0 RD |
1448 | } |
1449 | #else | |
093d3ff1 | 1450 | SWIGINTERNSHORT int |
c32bde28 RD |
1451 | SWIG_AsVal_int(PyObject *obj, int *val) |
1452 | { | |
1453 | return SWIG_AsVal_long(obj,(long*)val); | |
1454 | } | |
15afbcd0 RD |
1455 | #endif |
1456 | ||
1457 | ||
093d3ff1 | 1458 | SWIGINTERNSHORT int |
c32bde28 | 1459 | SWIG_As_int(PyObject* obj) |
15afbcd0 | 1460 | { |
c32bde28 RD |
1461 | int v; |
1462 | if (!SWIG_AsVal_int(obj, &v)) { | |
1463 | /* | |
093d3ff1 | 1464 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1465 | */ |
1466 | memset((void*)&v, 0, sizeof(int)); | |
15afbcd0 | 1467 | } |
c32bde28 | 1468 | return v; |
994141e6 RD |
1469 | } |
1470 | ||
c32bde28 | 1471 | |
093d3ff1 | 1472 | SWIGINTERNSHORT int |
c32bde28 | 1473 | SWIG_Check_int(PyObject* obj) |
994141e6 | 1474 | { |
c32bde28 | 1475 | return SWIG_AsVal_int(obj, (int*)0); |
994141e6 RD |
1476 | } |
1477 | ||
15afbcd0 | 1478 | |
093d3ff1 | 1479 | SWIGINTERN int |
c32bde28 | 1480 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
15afbcd0 | 1481 | { |
c32bde28 RD |
1482 | if (obj == Py_True) { |
1483 | if (val) *val = true; | |
1484 | return 1; | |
1485 | } | |
1486 | if (obj == Py_False) { | |
1487 | if (val) *val = false; | |
15afbcd0 RD |
1488 | return 1; |
1489 | } | |
c32bde28 RD |
1490 | int res = 0; |
1491 | if (SWIG_AsVal_int(obj, &res)) { | |
093d3ff1 | 1492 | if (val) *val = res ? true : false; |
c32bde28 | 1493 | return 1; |
093d3ff1 RD |
1494 | } else { |
1495 | PyErr_Clear(); | |
1496 | } | |
c32bde28 | 1497 | if (val) { |
093d3ff1 | 1498 | SWIG_type_error("bool", obj); |
c32bde28 RD |
1499 | } |
1500 | return 0; | |
15afbcd0 RD |
1501 | } |
1502 | ||
994141e6 | 1503 | |
093d3ff1 | 1504 | SWIGINTERNSHORT bool |
c32bde28 | 1505 | SWIG_As_bool(PyObject* obj) |
994141e6 | 1506 | { |
c32bde28 RD |
1507 | bool v; |
1508 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1509 | /* | |
093d3ff1 | 1510 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1511 | */ |
1512 | memset((void*)&v, 0, sizeof(bool)); | |
15afbcd0 | 1513 | } |
c32bde28 | 1514 | return v; |
15afbcd0 RD |
1515 | } |
1516 | ||
c32bde28 | 1517 | |
093d3ff1 | 1518 | SWIGINTERNSHORT int |
c32bde28 RD |
1519 | SWIG_Check_bool(PyObject* obj) |
1520 | { | |
1521 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1522 | } | |
15afbcd0 | 1523 | |
c32bde28 RD |
1524 | static const wxString wxPyCalendarNameStr(wxCalendarNameStr); |
1525 | ||
093d3ff1 | 1526 | SWIGINTERNSHORT long |
c32bde28 | 1527 | SWIG_As_long(PyObject* obj) |
15afbcd0 | 1528 | { |
c32bde28 RD |
1529 | long v; |
1530 | if (!SWIG_AsVal_long(obj, &v)) { | |
1531 | /* | |
093d3ff1 | 1532 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1533 | */ |
1534 | memset((void*)&v, 0, sizeof(long)); | |
15afbcd0 | 1535 | } |
c32bde28 | 1536 | return v; |
15afbcd0 RD |
1537 | } |
1538 | ||
c32bde28 | 1539 | |
093d3ff1 | 1540 | SWIGINTERNSHORT int |
c32bde28 RD |
1541 | SWIG_Check_long(PyObject* obj) |
1542 | { | |
1543 | return SWIG_AsVal_long(obj, (long*)0); | |
1544 | } | |
15afbcd0 | 1545 | |
c32bde28 | 1546 | |
093d3ff1 | 1547 | SWIGINTERN int |
c32bde28 | 1548 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
15afbcd0 | 1549 | { |
c32bde28 RD |
1550 | long v = 0; |
1551 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
093d3ff1 | 1552 | SWIG_type_error("unsigned number", obj); |
c32bde28 RD |
1553 | } |
1554 | else if (val) | |
1555 | *val = (unsigned long)v; | |
15afbcd0 | 1556 | return 1; |
c32bde28 RD |
1557 | } |
1558 | ||
1559 | ||
093d3ff1 | 1560 | SWIGINTERNSHORT unsigned long |
c32bde28 RD |
1561 | SWIG_As_unsigned_SS_long(PyObject* obj) |
1562 | { | |
1563 | unsigned long v; | |
1564 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1565 | /* | |
093d3ff1 | 1566 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1567 | */ |
1568 | memset((void*)&v, 0, sizeof(unsigned long)); | |
15afbcd0 | 1569 | } |
c32bde28 RD |
1570 | return v; |
1571 | } | |
1572 | ||
1573 | ||
093d3ff1 | 1574 | SWIGINTERNSHORT int |
c32bde28 RD |
1575 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1576 | { | |
1577 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
994141e6 RD |
1578 | } |
1579 | ||
093d3ff1 | 1580 | static PyObject *wxCalendarCtrl_HitTest(wxCalendarCtrl *self,wxPoint const &pos){ |
98e665d3 RD |
1581 | wxDateTime* date = new wxDateTime; |
1582 | wxDateTime::WeekDay wd; | |
1583 | wxCalendarHitTestResult result = self->HitTest(pos, date, &wd); | |
4f89f6a3 | 1584 | bool blocked = wxPyBeginBlockThreads(); |
98e665d3 RD |
1585 | PyObject* tup = PyTuple_New(3); |
1586 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(result)); | |
1587 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(date, wxT("wxDateTime"), 1)); | |
1588 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(wd)); | |
4f89f6a3 | 1589 | wxPyEndBlockThreads(blocked); |
98e665d3 RD |
1590 | return tup; |
1591 | } | |
d14a1e28 RD |
1592 | #ifdef __cplusplus |
1593 | extern "C" { | |
1594 | #endif | |
c32bde28 | 1595 | static PyObject *_wrap_new_CalendarDateAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 1596 | PyObject *resultobj; |
98e665d3 RD |
1597 | wxColour const &arg1_defvalue = wxNullColour ; |
1598 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
1599 | wxColour const &arg2_defvalue = wxNullColour ; |
1600 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
1601 | wxColour const &arg3_defvalue = wxNullColour ; | |
1602 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
1603 | wxFont const &arg4_defvalue = wxNullFont ; | |
1604 | wxFont *arg4 = (wxFont *) &arg4_defvalue ; | |
093d3ff1 | 1605 | wxCalendarDateBorder arg5 = (wxCalendarDateBorder) wxCAL_BORDER_NONE ; |
d14a1e28 RD |
1606 | wxCalendarDateAttr *result; |
1607 | wxColour temp1 ; | |
1608 | wxColour temp2 ; | |
1609 | wxColour temp3 ; | |
1610 | PyObject * obj0 = 0 ; | |
1611 | PyObject * obj1 = 0 ; | |
1612 | PyObject * obj2 = 0 ; | |
1613 | PyObject * obj3 = 0 ; | |
994141e6 | 1614 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
1615 | char *kwnames[] = { |
1616 | (char *) "colText",(char *) "colBack",(char *) "colBorder",(char *) "font",(char *) "border", NULL | |
1617 | }; | |
1618 | ||
98e665d3 RD |
1619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_CalendarDateAttr",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
1620 | if (obj0) { | |
1621 | { | |
1622 | arg1 = &temp1; | |
1623 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1624 | } | |
d14a1e28 RD |
1625 | } |
1626 | if (obj1) { | |
1627 | { | |
1628 | arg2 = &temp2; | |
1629 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1630 | } | |
1631 | } | |
1632 | if (obj2) { | |
1633 | { | |
1634 | arg3 = &temp3; | |
1635 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
1636 | } | |
1637 | } | |
1638 | if (obj3) { | |
093d3ff1 RD |
1639 | { |
1640 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
1641 | if (SWIG_arg_fail(4)) SWIG_fail; | |
1642 | if (arg4 == NULL) { | |
1643 | SWIG_null_ref("wxFont"); | |
1644 | } | |
1645 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
1646 | } |
1647 | } | |
994141e6 | 1648 | if (obj4) { |
093d3ff1 RD |
1649 | { |
1650 | arg5 = (wxCalendarDateBorder)(SWIG_As_int(obj4)); | |
1651 | if (SWIG_arg_fail(5)) SWIG_fail; | |
1652 | } | |
994141e6 | 1653 | } |
d14a1e28 RD |
1654 | { |
1655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1656 | result = (wxCalendarDateAttr *)new wxCalendarDateAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxColour const &)*arg3,(wxFont const &)*arg4,(wxCalendarDateBorder )arg5); | |
1657 | ||
1658 | wxPyEndAllowThreads(__tstate); | |
1659 | if (PyErr_Occurred()) SWIG_fail; | |
1660 | } | |
15afbcd0 | 1661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarDateAttr, 1); |
d14a1e28 RD |
1662 | return resultobj; |
1663 | fail: | |
1664 | return NULL; | |
1665 | } | |
1666 | ||
1667 | ||
c32bde28 | 1668 | static PyObject *_wrap_CalendarDateAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1669 | PyObject *resultobj; |
1670 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1671 | wxColour *arg2 = 0 ; | |
1672 | wxColour temp2 ; | |
1673 | PyObject * obj0 = 0 ; | |
1674 | PyObject * obj1 = 0 ; | |
1675 | char *kwnames[] = { | |
1676 | (char *) "self",(char *) "colText", NULL | |
1677 | }; | |
1678 | ||
1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
1680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
1682 | { |
1683 | arg2 = &temp2; | |
1684 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1685 | } | |
1686 | { | |
1687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1688 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
1689 | ||
1690 | wxPyEndAllowThreads(__tstate); | |
1691 | if (PyErr_Occurred()) SWIG_fail; | |
1692 | } | |
1693 | Py_INCREF(Py_None); resultobj = Py_None; | |
1694 | return resultobj; | |
1695 | fail: | |
1696 | return NULL; | |
1697 | } | |
1698 | ||
1699 | ||
c32bde28 | 1700 | static PyObject *_wrap_CalendarDateAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1701 | PyObject *resultobj; |
1702 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1703 | wxColour *arg2 = 0 ; | |
1704 | wxColour temp2 ; | |
1705 | PyObject * obj0 = 0 ; | |
1706 | PyObject * obj1 = 0 ; | |
1707 | char *kwnames[] = { | |
1708 | (char *) "self",(char *) "colBack", NULL | |
1709 | }; | |
1710 | ||
1711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
1712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
1714 | { |
1715 | arg2 = &temp2; | |
1716 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1717 | } | |
1718 | { | |
1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1720 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
1721 | ||
1722 | wxPyEndAllowThreads(__tstate); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
1725 | Py_INCREF(Py_None); resultobj = Py_None; | |
1726 | return resultobj; | |
1727 | fail: | |
1728 | return NULL; | |
1729 | } | |
1730 | ||
1731 | ||
c32bde28 | 1732 | static PyObject *_wrap_CalendarDateAttr_SetBorderColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1733 | PyObject *resultobj; |
1734 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1735 | wxColour *arg2 = 0 ; | |
1736 | wxColour temp2 ; | |
1737 | PyObject * obj0 = 0 ; | |
1738 | PyObject * obj1 = 0 ; | |
1739 | char *kwnames[] = { | |
1740 | (char *) "self",(char *) "col", NULL | |
1741 | }; | |
1742 | ||
1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBorderColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
1744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
1746 | { |
1747 | arg2 = &temp2; | |
1748 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1749 | } | |
1750 | { | |
1751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1752 | (arg1)->SetBorderColour((wxColour const &)*arg2); | |
1753 | ||
1754 | wxPyEndAllowThreads(__tstate); | |
1755 | if (PyErr_Occurred()) SWIG_fail; | |
1756 | } | |
1757 | Py_INCREF(Py_None); resultobj = Py_None; | |
1758 | return resultobj; | |
1759 | fail: | |
1760 | return NULL; | |
1761 | } | |
1762 | ||
1763 | ||
c32bde28 | 1764 | static PyObject *_wrap_CalendarDateAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1765 | PyObject *resultobj; |
1766 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1767 | wxFont *arg2 = 0 ; | |
1768 | PyObject * obj0 = 0 ; | |
1769 | PyObject * obj1 = 0 ; | |
1770 | char *kwnames[] = { | |
1771 | (char *) "self",(char *) "font", NULL | |
1772 | }; | |
1773 | ||
1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
1775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1777 | { | |
1778 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
1779 | if (SWIG_arg_fail(2)) SWIG_fail; | |
1780 | if (arg2 == NULL) { | |
1781 | SWIG_null_ref("wxFont"); | |
1782 | } | |
1783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
1784 | } |
1785 | { | |
1786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1787 | (arg1)->SetFont((wxFont const &)*arg2); | |
1788 | ||
1789 | wxPyEndAllowThreads(__tstate); | |
1790 | if (PyErr_Occurred()) SWIG_fail; | |
1791 | } | |
1792 | Py_INCREF(Py_None); resultobj = Py_None; | |
1793 | return resultobj; | |
1794 | fail: | |
1795 | return NULL; | |
1796 | } | |
1797 | ||
1798 | ||
c32bde28 | 1799 | static PyObject *_wrap_CalendarDateAttr_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1800 | PyObject *resultobj; |
1801 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
093d3ff1 | 1802 | wxCalendarDateBorder arg2 ; |
d14a1e28 | 1803 | PyObject * obj0 = 0 ; |
994141e6 | 1804 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1805 | char *kwnames[] = { |
1806 | (char *) "self",(char *) "border", NULL | |
1807 | }; | |
1808 | ||
994141e6 | 1809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
1810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1812 | { | |
1813 | arg2 = (wxCalendarDateBorder)(SWIG_As_int(obj1)); | |
1814 | if (SWIG_arg_fail(2)) SWIG_fail; | |
1815 | } | |
d14a1e28 RD |
1816 | { |
1817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1818 | (arg1)->SetBorder((wxCalendarDateBorder )arg2); | |
1819 | ||
1820 | wxPyEndAllowThreads(__tstate); | |
1821 | if (PyErr_Occurred()) SWIG_fail; | |
1822 | } | |
1823 | Py_INCREF(Py_None); resultobj = Py_None; | |
1824 | return resultobj; | |
1825 | fail: | |
1826 | return NULL; | |
1827 | } | |
1828 | ||
1829 | ||
c32bde28 | 1830 | static PyObject *_wrap_CalendarDateAttr_SetHoliday(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1831 | PyObject *resultobj; |
1832 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1833 | bool arg2 ; | |
1834 | PyObject * obj0 = 0 ; | |
1835 | PyObject * obj1 = 0 ; | |
1836 | char *kwnames[] = { | |
1837 | (char *) "self",(char *) "holiday", NULL | |
1838 | }; | |
1839 | ||
1840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarDateAttr_SetHoliday",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
1841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1843 | { | |
1844 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
1845 | if (SWIG_arg_fail(2)) SWIG_fail; | |
1846 | } | |
d14a1e28 RD |
1847 | { |
1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1849 | (arg1)->SetHoliday(arg2); | |
1850 | ||
1851 | wxPyEndAllowThreads(__tstate); | |
1852 | if (PyErr_Occurred()) SWIG_fail; | |
1853 | } | |
1854 | Py_INCREF(Py_None); resultobj = Py_None; | |
1855 | return resultobj; | |
1856 | fail: | |
1857 | return NULL; | |
1858 | } | |
1859 | ||
1860 | ||
c32bde28 | 1861 | static PyObject *_wrap_CalendarDateAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1862 | PyObject *resultobj; |
1863 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1864 | bool result; | |
1865 | PyObject * obj0 = 0 ; | |
1866 | char *kwnames[] = { | |
1867 | (char *) "self", NULL | |
1868 | }; | |
1869 | ||
1870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
1871 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
1873 | { |
1874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1875 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasTextColour(); | |
1876 | ||
1877 | wxPyEndAllowThreads(__tstate); | |
1878 | if (PyErr_Occurred()) SWIG_fail; | |
1879 | } | |
4f89f6a3 RD |
1880 | { |
1881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1882 | } | |
d14a1e28 RD |
1883 | return resultobj; |
1884 | fail: | |
1885 | return NULL; | |
1886 | } | |
1887 | ||
1888 | ||
c32bde28 | 1889 | static PyObject *_wrap_CalendarDateAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1890 | PyObject *resultobj; |
1891 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1892 | bool result; | |
1893 | PyObject * obj0 = 0 ; | |
1894 | char *kwnames[] = { | |
1895 | (char *) "self", NULL | |
1896 | }; | |
1897 | ||
1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
1899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
1901 | { |
1902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1903 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasBackgroundColour(); | |
1904 | ||
1905 | wxPyEndAllowThreads(__tstate); | |
1906 | if (PyErr_Occurred()) SWIG_fail; | |
1907 | } | |
4f89f6a3 RD |
1908 | { |
1909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1910 | } | |
d14a1e28 RD |
1911 | return resultobj; |
1912 | fail: | |
1913 | return NULL; | |
1914 | } | |
1915 | ||
1916 | ||
c32bde28 | 1917 | static PyObject *_wrap_CalendarDateAttr_HasBorderColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1918 | PyObject *resultobj; |
1919 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1920 | bool result; | |
1921 | PyObject * obj0 = 0 ; | |
1922 | char *kwnames[] = { | |
1923 | (char *) "self", NULL | |
1924 | }; | |
1925 | ||
1926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorderColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
1927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
1929 | { |
1930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1931 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorderColour(); | |
1932 | ||
1933 | wxPyEndAllowThreads(__tstate); | |
1934 | if (PyErr_Occurred()) SWIG_fail; | |
1935 | } | |
4f89f6a3 RD |
1936 | { |
1937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1938 | } | |
d14a1e28 RD |
1939 | return resultobj; |
1940 | fail: | |
1941 | return NULL; | |
1942 | } | |
1943 | ||
1944 | ||
c32bde28 | 1945 | static PyObject *_wrap_CalendarDateAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1946 | PyObject *resultobj; |
1947 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1948 | bool result; | |
1949 | PyObject * obj0 = 0 ; | |
1950 | char *kwnames[] = { | |
1951 | (char *) "self", NULL | |
1952 | }; | |
1953 | ||
1954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
1955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
1957 | { |
1958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1959 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasFont(); | |
1960 | ||
1961 | wxPyEndAllowThreads(__tstate); | |
1962 | if (PyErr_Occurred()) SWIG_fail; | |
1963 | } | |
4f89f6a3 RD |
1964 | { |
1965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1966 | } | |
d14a1e28 RD |
1967 | return resultobj; |
1968 | fail: | |
1969 | return NULL; | |
1970 | } | |
1971 | ||
1972 | ||
c32bde28 | 1973 | static PyObject *_wrap_CalendarDateAttr_HasBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1974 | PyObject *resultobj; |
1975 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
1976 | bool result; | |
1977 | PyObject * obj0 = 0 ; | |
1978 | char *kwnames[] = { | |
1979 | (char *) "self", NULL | |
1980 | }; | |
1981 | ||
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_HasBorder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
1983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
1984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
1985 | { |
1986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1987 | result = (bool)((wxCalendarDateAttr const *)arg1)->HasBorder(); | |
1988 | ||
1989 | wxPyEndAllowThreads(__tstate); | |
1990 | if (PyErr_Occurred()) SWIG_fail; | |
1991 | } | |
4f89f6a3 RD |
1992 | { |
1993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1994 | } | |
d14a1e28 RD |
1995 | return resultobj; |
1996 | fail: | |
1997 | return NULL; | |
1998 | } | |
1999 | ||
2000 | ||
c32bde28 | 2001 | static PyObject *_wrap_CalendarDateAttr_IsHoliday(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2002 | PyObject *resultobj; |
2003 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
2004 | bool result; | |
2005 | PyObject * obj0 = 0 ; | |
2006 | char *kwnames[] = { | |
2007 | (char *) "self", NULL | |
2008 | }; | |
2009 | ||
2010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_IsHoliday",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
2012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2013 | { |
2014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2015 | result = (bool)((wxCalendarDateAttr const *)arg1)->IsHoliday(); | |
2016 | ||
2017 | wxPyEndAllowThreads(__tstate); | |
2018 | if (PyErr_Occurred()) SWIG_fail; | |
2019 | } | |
4f89f6a3 RD |
2020 | { |
2021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2022 | } | |
d14a1e28 RD |
2023 | return resultobj; |
2024 | fail: | |
2025 | return NULL; | |
2026 | } | |
2027 | ||
2028 | ||
c32bde28 | 2029 | static PyObject *_wrap_CalendarDateAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2030 | PyObject *resultobj; |
2031 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
2032 | wxColour result; | |
2033 | PyObject * obj0 = 0 ; | |
2034 | char *kwnames[] = { | |
2035 | (char *) "self", NULL | |
2036 | }; | |
2037 | ||
2038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
2040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2041 | { |
2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2043 | result = ((wxCalendarDateAttr const *)arg1)->GetTextColour(); | |
2044 | ||
2045 | wxPyEndAllowThreads(__tstate); | |
2046 | if (PyErr_Occurred()) SWIG_fail; | |
2047 | } | |
2048 | { | |
2049 | wxColour * resultptr; | |
093d3ff1 | 2050 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 2051 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2052 | } |
2053 | return resultobj; | |
2054 | fail: | |
2055 | return NULL; | |
2056 | } | |
2057 | ||
2058 | ||
c32bde28 | 2059 | static PyObject *_wrap_CalendarDateAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2060 | PyObject *resultobj; |
2061 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
2062 | wxColour result; | |
2063 | PyObject * obj0 = 0 ; | |
2064 | char *kwnames[] = { | |
2065 | (char *) "self", NULL | |
2066 | }; | |
2067 | ||
2068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
2070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2071 | { |
2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2073 | result = ((wxCalendarDateAttr const *)arg1)->GetBackgroundColour(); | |
2074 | ||
2075 | wxPyEndAllowThreads(__tstate); | |
2076 | if (PyErr_Occurred()) SWIG_fail; | |
2077 | } | |
2078 | { | |
2079 | wxColour * resultptr; | |
093d3ff1 | 2080 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 2081 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2082 | } |
2083 | return resultobj; | |
2084 | fail: | |
2085 | return NULL; | |
2086 | } | |
2087 | ||
2088 | ||
c32bde28 | 2089 | static PyObject *_wrap_CalendarDateAttr_GetBorderColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2090 | PyObject *resultobj; |
2091 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
2092 | wxColour result; | |
2093 | PyObject * obj0 = 0 ; | |
2094 | char *kwnames[] = { | |
2095 | (char *) "self", NULL | |
2096 | }; | |
2097 | ||
2098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorderColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
2100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2101 | { |
2102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2103 | result = ((wxCalendarDateAttr const *)arg1)->GetBorderColour(); | |
2104 | ||
2105 | wxPyEndAllowThreads(__tstate); | |
2106 | if (PyErr_Occurred()) SWIG_fail; | |
2107 | } | |
2108 | { | |
2109 | wxColour * resultptr; | |
093d3ff1 | 2110 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 2111 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2112 | } |
2113 | return resultobj; | |
2114 | fail: | |
2115 | return NULL; | |
2116 | } | |
2117 | ||
2118 | ||
c32bde28 | 2119 | static PyObject *_wrap_CalendarDateAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2120 | PyObject *resultobj; |
2121 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
2122 | wxFont result; | |
2123 | PyObject * obj0 = 0 ; | |
2124 | char *kwnames[] = { | |
2125 | (char *) "self", NULL | |
2126 | }; | |
2127 | ||
2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
2130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2131 | { |
2132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2133 | result = ((wxCalendarDateAttr const *)arg1)->GetFont(); | |
2134 | ||
2135 | wxPyEndAllowThreads(__tstate); | |
2136 | if (PyErr_Occurred()) SWIG_fail; | |
2137 | } | |
2138 | { | |
2139 | wxFont * resultptr; | |
093d3ff1 | 2140 | resultptr = new wxFont((wxFont &)(result)); |
15afbcd0 | 2141 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
2142 | } |
2143 | return resultobj; | |
2144 | fail: | |
2145 | return NULL; | |
2146 | } | |
2147 | ||
2148 | ||
c32bde28 | 2149 | static PyObject *_wrap_CalendarDateAttr_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2150 | PyObject *resultobj; |
2151 | wxCalendarDateAttr *arg1 = (wxCalendarDateAttr *) 0 ; | |
093d3ff1 | 2152 | wxCalendarDateBorder result; |
d14a1e28 RD |
2153 | PyObject * obj0 = 0 ; |
2154 | char *kwnames[] = { | |
2155 | (char *) "self", NULL | |
2156 | }; | |
2157 | ||
2158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarDateAttr_GetBorder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); |
2160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2161 | { |
2162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2163 | result = (wxCalendarDateBorder)((wxCalendarDateAttr const *)arg1)->GetBorder(); |
d14a1e28 RD |
2164 | |
2165 | wxPyEndAllowThreads(__tstate); | |
2166 | if (PyErr_Occurred()) SWIG_fail; | |
2167 | } | |
093d3ff1 | 2168 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
2169 | return resultobj; |
2170 | fail: | |
2171 | return NULL; | |
2172 | } | |
2173 | ||
2174 | ||
c32bde28 | 2175 | static PyObject * CalendarDateAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2176 | PyObject *obj; |
2177 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2178 | SWIG_TypeClientData(SWIGTYPE_p_wxCalendarDateAttr, obj); | |
2179 | Py_INCREF(obj); | |
2180 | return Py_BuildValue((char *)""); | |
2181 | } | |
c32bde28 | 2182 | static PyObject *_wrap_new_CalendarEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2183 | PyObject *resultobj; |
2184 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2185 | wxEventType arg2 ; | |
2186 | wxCalendarEvent *result; | |
2187 | PyObject * obj0 = 0 ; | |
994141e6 | 2188 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2189 | char *kwnames[] = { |
2190 | (char *) "cal",(char *) "type", NULL | |
2191 | }; | |
2192 | ||
994141e6 | 2193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_CalendarEvent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
2194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2196 | { | |
2197 | arg2 = (wxEventType)(SWIG_As_int(obj1)); | |
2198 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2199 | } | |
d14a1e28 RD |
2200 | { |
2201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2202 | result = (wxCalendarEvent *)new wxCalendarEvent(arg1,arg2); | |
2203 | ||
2204 | wxPyEndAllowThreads(__tstate); | |
2205 | if (PyErr_Occurred()) SWIG_fail; | |
2206 | } | |
15afbcd0 | 2207 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarEvent, 1); |
d14a1e28 RD |
2208 | return resultobj; |
2209 | fail: | |
2210 | return NULL; | |
2211 | } | |
2212 | ||
2213 | ||
c32bde28 | 2214 | static PyObject *_wrap_CalendarEvent_GetDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2215 | PyObject *resultobj; |
2216 | wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ; | |
58203fa6 | 2217 | wxDateTime result; |
d14a1e28 RD |
2218 | PyObject * obj0 = 0 ; |
2219 | char *kwnames[] = { | |
2220 | (char *) "self", NULL | |
2221 | }; | |
2222 | ||
2223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetDate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarEvent, SWIG_POINTER_EXCEPTION | 0); |
2225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2226 | { |
2227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 2228 | result = ((wxCalendarEvent const *)arg1)->GetDate(); |
d14a1e28 RD |
2229 | |
2230 | wxPyEndAllowThreads(__tstate); | |
2231 | if (PyErr_Occurred()) SWIG_fail; | |
2232 | } | |
58203fa6 RD |
2233 | { |
2234 | wxDateTime * resultptr; | |
093d3ff1 | 2235 | resultptr = new wxDateTime((wxDateTime const &)(result)); |
15afbcd0 | 2236 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
58203fa6 | 2237 | } |
d14a1e28 RD |
2238 | return resultobj; |
2239 | fail: | |
2240 | return NULL; | |
2241 | } | |
2242 | ||
2243 | ||
c32bde28 | 2244 | static PyObject *_wrap_CalendarEvent_SetDate(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
2245 | PyObject *resultobj; |
2246 | wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ; | |
2247 | wxDateTime *arg2 = 0 ; | |
2248 | PyObject * obj0 = 0 ; | |
2249 | PyObject * obj1 = 0 ; | |
2250 | char *kwnames[] = { | |
2251 | (char *) "self",(char *) "date", NULL | |
2252 | }; | |
2253 | ||
2254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarEvent_SetDate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
2255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarEvent, SWIG_POINTER_EXCEPTION | 0); |
2256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2257 | { | |
2258 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
2259 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2260 | if (arg2 == NULL) { | |
2261 | SWIG_null_ref("wxDateTime"); | |
2262 | } | |
2263 | if (SWIG_arg_fail(2)) SWIG_fail; | |
c9c7117a RD |
2264 | } |
2265 | { | |
2266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2267 | (arg1)->SetDate((wxDateTime const &)*arg2); | |
2268 | ||
2269 | wxPyEndAllowThreads(__tstate); | |
2270 | if (PyErr_Occurred()) SWIG_fail; | |
2271 | } | |
2272 | Py_INCREF(Py_None); resultobj = Py_None; | |
2273 | return resultobj; | |
2274 | fail: | |
2275 | return NULL; | |
2276 | } | |
2277 | ||
2278 | ||
c32bde28 | 2279 | static PyObject *_wrap_CalendarEvent_SetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
2280 | PyObject *resultobj; |
2281 | wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ; | |
093d3ff1 | 2282 | wxDateTime::WeekDay arg2 ; |
c9c7117a | 2283 | PyObject * obj0 = 0 ; |
994141e6 | 2284 | PyObject * obj1 = 0 ; |
c9c7117a RD |
2285 | char *kwnames[] = { |
2286 | (char *) "self",(char *) "wd", NULL | |
2287 | }; | |
2288 | ||
994141e6 | 2289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarEvent_SetWeekDay",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
2290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarEvent, SWIG_POINTER_EXCEPTION | 0); |
2291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2292 | { | |
2293 | arg2 = (wxDateTime::WeekDay const)(SWIG_As_int(obj1)); | |
2294 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2295 | } | |
c9c7117a RD |
2296 | { |
2297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2298 | (arg1)->SetWeekDay((wxDateTime::WeekDay )arg2); | |
2299 | ||
2300 | wxPyEndAllowThreads(__tstate); | |
2301 | if (PyErr_Occurred()) SWIG_fail; | |
2302 | } | |
2303 | Py_INCREF(Py_None); resultobj = Py_None; | |
2304 | return resultobj; | |
2305 | fail: | |
2306 | return NULL; | |
2307 | } | |
2308 | ||
2309 | ||
c32bde28 | 2310 | static PyObject *_wrap_CalendarEvent_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2311 | PyObject *resultobj; |
2312 | wxCalendarEvent *arg1 = (wxCalendarEvent *) 0 ; | |
093d3ff1 | 2313 | wxDateTime::WeekDay result; |
d14a1e28 RD |
2314 | PyObject * obj0 = 0 ; |
2315 | char *kwnames[] = { | |
2316 | (char *) "self", NULL | |
2317 | }; | |
2318 | ||
2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarEvent_GetWeekDay",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarEvent, SWIG_POINTER_EXCEPTION | 0); |
2321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2322 | { |
2323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 2324 | result = (wxDateTime::WeekDay)((wxCalendarEvent const *)arg1)->GetWeekDay(); |
d14a1e28 RD |
2325 | |
2326 | wxPyEndAllowThreads(__tstate); | |
2327 | if (PyErr_Occurred()) SWIG_fail; | |
2328 | } | |
093d3ff1 | 2329 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
2330 | return resultobj; |
2331 | fail: | |
2332 | return NULL; | |
2333 | } | |
2334 | ||
2335 | ||
c32bde28 | 2336 | static PyObject * CalendarEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2337 | PyObject *obj; |
2338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2339 | SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent, obj); | |
2340 | Py_INCREF(obj); | |
2341 | return Py_BuildValue((char *)""); | |
2342 | } | |
c32bde28 | 2343 | static int _wrap_CalendarNameStr_set(PyObject *) { |
b2dc1044 RD |
2344 | PyErr_SetString(PyExc_TypeError,"Variable CalendarNameStr is read-only."); |
2345 | return 1; | |
2346 | } | |
2347 | ||
2348 | ||
093d3ff1 | 2349 | static PyObject *_wrap_CalendarNameStr_get(void) { |
b2dc1044 RD |
2350 | PyObject *pyobj; |
2351 | ||
2352 | { | |
2353 | #if wxUSE_UNICODE | |
2354 | pyobj = PyUnicode_FromWideChar((&wxPyCalendarNameStr)->c_str(), (&wxPyCalendarNameStr)->Len()); | |
2355 | #else | |
2356 | pyobj = PyString_FromStringAndSize((&wxPyCalendarNameStr)->c_str(), (&wxPyCalendarNameStr)->Len()); | |
2357 | #endif | |
2358 | } | |
2359 | return pyobj; | |
2360 | } | |
2361 | ||
2362 | ||
c32bde28 | 2363 | static PyObject *_wrap_new_CalendarCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2364 | PyObject *resultobj; |
2365 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2366 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2367 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; |
2368 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
2369 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2370 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2371 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2372 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2373 | long arg6 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ; | |
2374 | wxString const &arg7_defvalue = wxPyCalendarNameStr ; | |
2375 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
2376 | wxCalendarCtrl *result; | |
2377 | wxPoint temp4 ; | |
2378 | wxSize temp5 ; | |
ae8162c8 | 2379 | bool temp7 = false ; |
d14a1e28 | 2380 | PyObject * obj0 = 0 ; |
994141e6 | 2381 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2382 | PyObject * obj2 = 0 ; |
2383 | PyObject * obj3 = 0 ; | |
2384 | PyObject * obj4 = 0 ; | |
994141e6 | 2385 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2386 | PyObject * obj6 = 0 ; |
2387 | char *kwnames[] = { | |
2388 | (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
2389 | }; | |
2390 | ||
a95a7133 | 2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_CalendarCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
2392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 2394 | if (obj1) { |
093d3ff1 RD |
2395 | { |
2396 | arg2 = (int)(SWIG_As_int(obj1)); | |
2397 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2398 | } | |
a95a7133 | 2399 | } |
d14a1e28 | 2400 | if (obj2) { |
093d3ff1 RD |
2401 | { |
2402 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
2403 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2404 | if (arg3 == NULL) { | |
2405 | SWIG_null_ref("wxDateTime"); | |
2406 | } | |
2407 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
2408 | } |
2409 | } | |
2410 | if (obj3) { | |
2411 | { | |
2412 | arg4 = &temp4; | |
2413 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2414 | } | |
2415 | } | |
2416 | if (obj4) { | |
2417 | { | |
2418 | arg5 = &temp5; | |
2419 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2420 | } | |
2421 | } | |
994141e6 | 2422 | if (obj5) { |
093d3ff1 RD |
2423 | { |
2424 | arg6 = (long)(SWIG_As_long(obj5)); | |
2425 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2426 | } | |
994141e6 | 2427 | } |
d14a1e28 RD |
2428 | if (obj6) { |
2429 | { | |
2430 | arg7 = wxString_in_helper(obj6); | |
2431 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 2432 | temp7 = true; |
d14a1e28 RD |
2433 | } |
2434 | } | |
2435 | { | |
e3b71cb8 | 2436 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2438 | result = (wxCalendarCtrl *)new wxCalendarCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
2439 | ||
2440 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2441 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2442 | } |
15afbcd0 | 2443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarCtrl, 1); |
d14a1e28 RD |
2444 | { |
2445 | if (temp7) | |
2446 | delete arg7; | |
2447 | } | |
2448 | return resultobj; | |
2449 | fail: | |
2450 | { | |
2451 | if (temp7) | |
2452 | delete arg7; | |
2453 | } | |
2454 | return NULL; | |
2455 | } | |
2456 | ||
2457 | ||
c32bde28 | 2458 | static PyObject *_wrap_new_PreCalendarCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2459 | PyObject *resultobj; |
2460 | wxCalendarCtrl *result; | |
2461 | char *kwnames[] = { | |
2462 | NULL | |
2463 | }; | |
2464 | ||
2465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCalendarCtrl",kwnames)) goto fail; | |
2466 | { | |
e3b71cb8 | 2467 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2469 | result = (wxCalendarCtrl *)new wxCalendarCtrl(); | |
2470 | ||
2471 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2472 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2473 | } |
15afbcd0 | 2474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarCtrl, 1); |
d14a1e28 RD |
2475 | return resultobj; |
2476 | fail: | |
2477 | return NULL; | |
2478 | } | |
2479 | ||
2480 | ||
c32bde28 | 2481 | static PyObject *_wrap_CalendarCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2482 | PyObject *resultobj; |
2483 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2484 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2485 | int arg3 ; |
d14a1e28 RD |
2486 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; |
2487 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
2488 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2489 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2490 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2491 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2492 | long arg7 = (long) wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS ; | |
2493 | wxString const &arg8_defvalue = wxPyCalendarNameStr ; | |
2494 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2495 | bool result; | |
2496 | wxPoint temp5 ; | |
2497 | wxSize temp6 ; | |
ae8162c8 | 2498 | bool temp8 = false ; |
d14a1e28 RD |
2499 | PyObject * obj0 = 0 ; |
2500 | PyObject * obj1 = 0 ; | |
994141e6 | 2501 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2502 | PyObject * obj3 = 0 ; |
2503 | PyObject * obj4 = 0 ; | |
2504 | PyObject * obj5 = 0 ; | |
994141e6 | 2505 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2506 | PyObject * obj7 = 0 ; |
2507 | char *kwnames[] = { | |
2508 | (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
2509 | }; | |
2510 | ||
994141e6 | 2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:CalendarCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2514 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2515 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2516 | { | |
2517 | arg3 = (int)(SWIG_As_int(obj2)); | |
2518 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2519 | } | |
d14a1e28 | 2520 | if (obj3) { |
093d3ff1 RD |
2521 | { |
2522 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
2523 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2524 | if (arg4 == NULL) { | |
2525 | SWIG_null_ref("wxDateTime"); | |
2526 | } | |
2527 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
2528 | } |
2529 | } | |
2530 | if (obj4) { | |
2531 | { | |
2532 | arg5 = &temp5; | |
2533 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2534 | } | |
2535 | } | |
2536 | if (obj5) { | |
2537 | { | |
2538 | arg6 = &temp6; | |
2539 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2540 | } | |
2541 | } | |
994141e6 | 2542 | if (obj6) { |
093d3ff1 RD |
2543 | { |
2544 | arg7 = (long)(SWIG_As_long(obj6)); | |
2545 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2546 | } | |
994141e6 | 2547 | } |
d14a1e28 RD |
2548 | if (obj7) { |
2549 | { | |
2550 | arg8 = wxString_in_helper(obj7); | |
2551 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2552 | temp8 = true; |
d14a1e28 RD |
2553 | } |
2554 | } | |
2555 | { | |
2556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2557 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
2558 | ||
2559 | wxPyEndAllowThreads(__tstate); | |
2560 | if (PyErr_Occurred()) SWIG_fail; | |
2561 | } | |
4f89f6a3 RD |
2562 | { |
2563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2564 | } | |
d14a1e28 RD |
2565 | { |
2566 | if (temp8) | |
2567 | delete arg8; | |
2568 | } | |
2569 | return resultobj; | |
2570 | fail: | |
2571 | { | |
2572 | if (temp8) | |
2573 | delete arg8; | |
2574 | } | |
2575 | return NULL; | |
2576 | } | |
2577 | ||
2578 | ||
c32bde28 | 2579 | static PyObject *_wrap_CalendarCtrl_SetDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2580 | PyObject *resultobj; |
2581 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2582 | wxDateTime *arg2 = 0 ; | |
2583 | PyObject * obj0 = 0 ; | |
2584 | PyObject * obj1 = 0 ; | |
2585 | char *kwnames[] = { | |
2586 | (char *) "self",(char *) "date", NULL | |
2587 | }; | |
2588 | ||
2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetDate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
2590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2592 | { | |
2593 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
2594 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2595 | if (arg2 == NULL) { | |
2596 | SWIG_null_ref("wxDateTime"); | |
2597 | } | |
2598 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
2599 | } |
2600 | { | |
2601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2602 | (arg1)->SetDate((wxDateTime const &)*arg2); | |
2603 | ||
2604 | wxPyEndAllowThreads(__tstate); | |
2605 | if (PyErr_Occurred()) SWIG_fail; | |
2606 | } | |
2607 | Py_INCREF(Py_None); resultobj = Py_None; | |
2608 | return resultobj; | |
2609 | fail: | |
2610 | return NULL; | |
2611 | } | |
2612 | ||
2613 | ||
c32bde28 | 2614 | static PyObject *_wrap_CalendarCtrl_GetDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2615 | PyObject *resultobj; |
2616 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2617 | wxDateTime *result; | |
2618 | PyObject * obj0 = 0 ; | |
2619 | char *kwnames[] = { | |
2620 | (char *) "self", NULL | |
2621 | }; | |
2622 | ||
2623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetDate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2626 | { |
2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2628 | { | |
2629 | wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetDate(); | |
2630 | result = (wxDateTime *) &_result_ref; | |
2631 | } | |
2632 | ||
2633 | wxPyEndAllowThreads(__tstate); | |
2634 | if (PyErr_Occurred()) SWIG_fail; | |
2635 | } | |
15afbcd0 | 2636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
2637 | return resultobj; |
2638 | fail: | |
2639 | return NULL; | |
2640 | } | |
2641 | ||
2642 | ||
c32bde28 | 2643 | static PyObject *_wrap_CalendarCtrl_SetLowerDateLimit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2644 | PyObject *resultobj; |
2645 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2646 | wxDateTime const &arg2_defvalue = wxDefaultDateTime ; | |
2647 | wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ; | |
2648 | bool result; | |
2649 | PyObject * obj0 = 0 ; | |
2650 | PyObject * obj1 = 0 ; | |
2651 | char *kwnames[] = { | |
2652 | (char *) "self",(char *) "date", NULL | |
2653 | }; | |
2654 | ||
2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
2656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 2658 | if (obj1) { |
093d3ff1 RD |
2659 | { |
2660 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
2661 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2662 | if (arg2 == NULL) { | |
2663 | SWIG_null_ref("wxDateTime"); | |
2664 | } | |
2665 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
2666 | } |
2667 | } | |
2668 | { | |
2669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2670 | result = (bool)(arg1)->SetLowerDateLimit((wxDateTime const &)*arg2); | |
2671 | ||
2672 | wxPyEndAllowThreads(__tstate); | |
2673 | if (PyErr_Occurred()) SWIG_fail; | |
2674 | } | |
4f89f6a3 RD |
2675 | { |
2676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2677 | } | |
d14a1e28 RD |
2678 | return resultobj; |
2679 | fail: | |
2680 | return NULL; | |
2681 | } | |
2682 | ||
2683 | ||
c32bde28 | 2684 | static PyObject *_wrap_CalendarCtrl_SetUpperDateLimit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2685 | PyObject *resultobj; |
2686 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
98e665d3 RD |
2687 | wxDateTime const &arg2_defvalue = wxDefaultDateTime ; |
2688 | wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ; | |
2689 | bool result; | |
d14a1e28 | 2690 | PyObject * obj0 = 0 ; |
98e665d3 | 2691 | PyObject * obj1 = 0 ; |
d14a1e28 | 2692 | char *kwnames[] = { |
98e665d3 | 2693 | (char *) "self",(char *) "date", NULL |
d14a1e28 RD |
2694 | }; |
2695 | ||
98e665d3 | 2696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
2697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
98e665d3 | 2699 | if (obj1) { |
093d3ff1 RD |
2700 | { |
2701 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
2702 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2703 | if (arg2 == NULL) { | |
2704 | SWIG_null_ref("wxDateTime"); | |
2705 | } | |
2706 | if (SWIG_arg_fail(2)) SWIG_fail; | |
98e665d3 RD |
2707 | } |
2708 | } | |
d14a1e28 RD |
2709 | { |
2710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
98e665d3 | 2711 | result = (bool)(arg1)->SetUpperDateLimit((wxDateTime const &)*arg2); |
d14a1e28 RD |
2712 | |
2713 | wxPyEndAllowThreads(__tstate); | |
2714 | if (PyErr_Occurred()) SWIG_fail; | |
2715 | } | |
4f89f6a3 RD |
2716 | { |
2717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2718 | } | |
d14a1e28 RD |
2719 | return resultobj; |
2720 | fail: | |
2721 | return NULL; | |
2722 | } | |
2723 | ||
2724 | ||
c32bde28 | 2725 | static PyObject *_wrap_CalendarCtrl_GetLowerDateLimit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2726 | PyObject *resultobj; |
2727 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
98e665d3 | 2728 | wxDateTime *result; |
d14a1e28 | 2729 | PyObject * obj0 = 0 ; |
d14a1e28 | 2730 | char *kwnames[] = { |
98e665d3 | 2731 | (char *) "self", NULL |
d14a1e28 RD |
2732 | }; |
2733 | ||
98e665d3 | 2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
2735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2737 | { |
2738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
98e665d3 RD |
2739 | { |
2740 | wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetLowerDateLimit(); | |
2741 | result = (wxDateTime *) &_result_ref; | |
2742 | } | |
d14a1e28 RD |
2743 | |
2744 | wxPyEndAllowThreads(__tstate); | |
2745 | if (PyErr_Occurred()) SWIG_fail; | |
2746 | } | |
15afbcd0 | 2747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
2748 | return resultobj; |
2749 | fail: | |
2750 | return NULL; | |
2751 | } | |
2752 | ||
2753 | ||
c32bde28 | 2754 | static PyObject *_wrap_CalendarCtrl_GetUpperDateLimit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2755 | PyObject *resultobj; |
2756 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2757 | wxDateTime *result; | |
2758 | PyObject * obj0 = 0 ; | |
2759 | char *kwnames[] = { | |
2760 | (char *) "self", NULL | |
2761 | }; | |
2762 | ||
2763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2766 | { |
2767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2768 | { | |
2769 | wxDateTime const &_result_ref = ((wxCalendarCtrl const *)arg1)->GetUpperDateLimit(); | |
2770 | result = (wxDateTime *) &_result_ref; | |
2771 | } | |
2772 | ||
2773 | wxPyEndAllowThreads(__tstate); | |
2774 | if (PyErr_Occurred()) SWIG_fail; | |
2775 | } | |
15afbcd0 | 2776 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
2777 | return resultobj; |
2778 | fail: | |
2779 | return NULL; | |
2780 | } | |
2781 | ||
2782 | ||
c32bde28 | 2783 | static PyObject *_wrap_CalendarCtrl_SetDateRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2784 | PyObject *resultobj; |
2785 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2786 | wxDateTime const &arg2_defvalue = wxDefaultDateTime ; | |
2787 | wxDateTime *arg2 = (wxDateTime *) &arg2_defvalue ; | |
2788 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
2789 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
2790 | bool result; | |
2791 | PyObject * obj0 = 0 ; | |
2792 | PyObject * obj1 = 0 ; | |
2793 | PyObject * obj2 = 0 ; | |
2794 | char *kwnames[] = { | |
2795 | (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL | |
2796 | }; | |
2797 | ||
2798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
2799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 2801 | if (obj1) { |
093d3ff1 RD |
2802 | { |
2803 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
2804 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2805 | if (arg2 == NULL) { | |
2806 | SWIG_null_ref("wxDateTime"); | |
2807 | } | |
2808 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
2809 | } |
2810 | } | |
2811 | if (obj2) { | |
093d3ff1 RD |
2812 | { |
2813 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
2814 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2815 | if (arg3 == NULL) { | |
2816 | SWIG_null_ref("wxDateTime"); | |
2817 | } | |
2818 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
2819 | } |
2820 | } | |
2821 | { | |
2822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2823 | result = (bool)(arg1)->SetDateRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
2824 | ||
2825 | wxPyEndAllowThreads(__tstate); | |
2826 | if (PyErr_Occurred()) SWIG_fail; | |
2827 | } | |
4f89f6a3 RD |
2828 | { |
2829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2830 | } | |
d14a1e28 RD |
2831 | return resultobj; |
2832 | fail: | |
2833 | return NULL; | |
2834 | } | |
2835 | ||
2836 | ||
c32bde28 | 2837 | static PyObject *_wrap_CalendarCtrl_EnableYearChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2838 | PyObject *resultobj; |
2839 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
ae8162c8 | 2840 | bool arg2 = (bool) true ; |
d14a1e28 RD |
2841 | PyObject * obj0 = 0 ; |
2842 | PyObject * obj1 = 0 ; | |
2843 | char *kwnames[] = { | |
2844 | (char *) "self",(char *) "enable", NULL | |
2845 | }; | |
2846 | ||
2847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
2848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 2850 | if (obj1) { |
093d3ff1 RD |
2851 | { |
2852 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
2853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2854 | } | |
d14a1e28 RD |
2855 | } |
2856 | { | |
2857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2858 | (arg1)->EnableYearChange(arg2); | |
2859 | ||
2860 | wxPyEndAllowThreads(__tstate); | |
2861 | if (PyErr_Occurred()) SWIG_fail; | |
2862 | } | |
2863 | Py_INCREF(Py_None); resultobj = Py_None; | |
2864 | return resultobj; | |
2865 | fail: | |
2866 | return NULL; | |
2867 | } | |
2868 | ||
2869 | ||
c32bde28 | 2870 | static PyObject *_wrap_CalendarCtrl_EnableMonthChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2871 | PyObject *resultobj; |
2872 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
ae8162c8 | 2873 | bool arg2 = (bool) true ; |
d14a1e28 RD |
2874 | PyObject * obj0 = 0 ; |
2875 | PyObject * obj1 = 0 ; | |
2876 | char *kwnames[] = { | |
2877 | (char *) "self",(char *) "enable", NULL | |
2878 | }; | |
2879 | ||
2880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
2881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 2883 | if (obj1) { |
093d3ff1 RD |
2884 | { |
2885 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
2886 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2887 | } | |
d14a1e28 RD |
2888 | } |
2889 | { | |
2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2891 | (arg1)->EnableMonthChange(arg2); | |
2892 | ||
2893 | wxPyEndAllowThreads(__tstate); | |
2894 | if (PyErr_Occurred()) SWIG_fail; | |
2895 | } | |
2896 | Py_INCREF(Py_None); resultobj = Py_None; | |
2897 | return resultobj; | |
2898 | fail: | |
2899 | return NULL; | |
2900 | } | |
2901 | ||
2902 | ||
c32bde28 | 2903 | static PyObject *_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2904 | PyObject *resultobj; |
2905 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
ae8162c8 | 2906 | bool arg2 = (bool) true ; |
d14a1e28 RD |
2907 | PyObject * obj0 = 0 ; |
2908 | PyObject * obj1 = 0 ; | |
2909 | char *kwnames[] = { | |
2910 | (char *) "self",(char *) "display", NULL | |
2911 | }; | |
2912 | ||
2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
2914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 2916 | if (obj1) { |
093d3ff1 RD |
2917 | { |
2918 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
2919 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2920 | } | |
d14a1e28 RD |
2921 | } |
2922 | { | |
2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2924 | (arg1)->EnableHolidayDisplay(arg2); | |
2925 | ||
2926 | wxPyEndAllowThreads(__tstate); | |
2927 | if (PyErr_Occurred()) SWIG_fail; | |
2928 | } | |
2929 | Py_INCREF(Py_None); resultobj = Py_None; | |
2930 | return resultobj; | |
2931 | fail: | |
2932 | return NULL; | |
2933 | } | |
2934 | ||
2935 | ||
c32bde28 | 2936 | static PyObject *_wrap_CalendarCtrl_SetHeaderColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2937 | PyObject *resultobj; |
2938 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2939 | wxColour *arg2 = 0 ; | |
2940 | wxColour *arg3 = 0 ; | |
2941 | wxColour temp2 ; | |
2942 | wxColour temp3 ; | |
2943 | PyObject * obj0 = 0 ; | |
2944 | PyObject * obj1 = 0 ; | |
2945 | PyObject * obj2 = 0 ; | |
2946 | char *kwnames[] = { | |
2947 | (char *) "self",(char *) "colFg",(char *) "colBg", NULL | |
2948 | }; | |
2949 | ||
2950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHeaderColours",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
2951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2953 | { |
2954 | arg2 = &temp2; | |
2955 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2956 | } | |
2957 | { | |
2958 | arg3 = &temp3; | |
2959 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
2960 | } | |
2961 | { | |
2962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2963 | (arg1)->SetHeaderColours((wxColour const &)*arg2,(wxColour const &)*arg3); | |
2964 | ||
2965 | wxPyEndAllowThreads(__tstate); | |
2966 | if (PyErr_Occurred()) SWIG_fail; | |
2967 | } | |
2968 | Py_INCREF(Py_None); resultobj = Py_None; | |
2969 | return resultobj; | |
2970 | fail: | |
2971 | return NULL; | |
2972 | } | |
2973 | ||
2974 | ||
c32bde28 | 2975 | static PyObject *_wrap_CalendarCtrl_GetHeaderColourFg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2976 | PyObject *resultobj; |
2977 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
2978 | wxColour result; | |
2979 | PyObject * obj0 = 0 ; | |
2980 | char *kwnames[] = { | |
2981 | (char *) "self", NULL | |
2982 | }; | |
2983 | ||
2984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourFg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
2986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2987 | { |
2988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2989 | result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourFg(); | |
2990 | ||
2991 | wxPyEndAllowThreads(__tstate); | |
2992 | if (PyErr_Occurred()) SWIG_fail; | |
2993 | } | |
2994 | { | |
2995 | wxColour * resultptr; | |
093d3ff1 | 2996 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 2997 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2998 | } |
2999 | return resultobj; | |
3000 | fail: | |
3001 | return NULL; | |
3002 | } | |
3003 | ||
3004 | ||
c32bde28 | 3005 | static PyObject *_wrap_CalendarCtrl_GetHeaderColourBg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3006 | PyObject *resultobj; |
3007 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3008 | wxColour result; | |
3009 | PyObject * obj0 = 0 ; | |
3010 | char *kwnames[] = { | |
3011 | (char *) "self", NULL | |
3012 | }; | |
3013 | ||
3014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHeaderColourBg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3017 | { |
3018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3019 | result = ((wxCalendarCtrl const *)arg1)->GetHeaderColourBg(); | |
3020 | ||
3021 | wxPyEndAllowThreads(__tstate); | |
3022 | if (PyErr_Occurred()) SWIG_fail; | |
3023 | } | |
3024 | { | |
3025 | wxColour * resultptr; | |
093d3ff1 | 3026 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 3027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
3028 | } |
3029 | return resultobj; | |
3030 | fail: | |
3031 | return NULL; | |
3032 | } | |
3033 | ||
3034 | ||
c32bde28 | 3035 | static PyObject *_wrap_CalendarCtrl_SetHighlightColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3036 | PyObject *resultobj; |
3037 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3038 | wxColour *arg2 = 0 ; | |
3039 | wxColour *arg3 = 0 ; | |
3040 | wxColour temp2 ; | |
3041 | wxColour temp3 ; | |
3042 | PyObject * obj0 = 0 ; | |
3043 | PyObject * obj1 = 0 ; | |
3044 | PyObject * obj2 = 0 ; | |
3045 | char *kwnames[] = { | |
3046 | (char *) "self",(char *) "colFg",(char *) "colBg", NULL | |
3047 | }; | |
3048 | ||
3049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHighlightColours",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
3050 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3051 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3052 | { |
3053 | arg2 = &temp2; | |
3054 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3055 | } | |
3056 | { | |
3057 | arg3 = &temp3; | |
3058 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
3059 | } | |
3060 | { | |
3061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3062 | (arg1)->SetHighlightColours((wxColour const &)*arg2,(wxColour const &)*arg3); | |
3063 | ||
3064 | wxPyEndAllowThreads(__tstate); | |
3065 | if (PyErr_Occurred()) SWIG_fail; | |
3066 | } | |
3067 | Py_INCREF(Py_None); resultobj = Py_None; | |
3068 | return resultobj; | |
3069 | fail: | |
3070 | return NULL; | |
3071 | } | |
3072 | ||
3073 | ||
c32bde28 | 3074 | static PyObject *_wrap_CalendarCtrl_GetHighlightColourFg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3075 | PyObject *resultobj; |
3076 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3077 | wxColour result; | |
3078 | PyObject * obj0 = 0 ; | |
3079 | char *kwnames[] = { | |
3080 | (char *) "self", NULL | |
3081 | }; | |
3082 | ||
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourFg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3086 | { |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourFg(); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | { | |
3094 | wxColour * resultptr; | |
093d3ff1 | 3095 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 3096 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
3097 | } |
3098 | return resultobj; | |
3099 | fail: | |
3100 | return NULL; | |
3101 | } | |
3102 | ||
3103 | ||
c32bde28 | 3104 | static PyObject *_wrap_CalendarCtrl_GetHighlightColourBg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3105 | PyObject *resultobj; |
3106 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3107 | wxColour result; | |
3108 | PyObject * obj0 = 0 ; | |
3109 | char *kwnames[] = { | |
3110 | (char *) "self", NULL | |
3111 | }; | |
3112 | ||
3113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHighlightColourBg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3114 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3115 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3116 | { |
3117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3118 | result = ((wxCalendarCtrl const *)arg1)->GetHighlightColourBg(); | |
3119 | ||
3120 | wxPyEndAllowThreads(__tstate); | |
3121 | if (PyErr_Occurred()) SWIG_fail; | |
3122 | } | |
3123 | { | |
3124 | wxColour * resultptr; | |
093d3ff1 | 3125 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 3126 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
3127 | } |
3128 | return resultobj; | |
3129 | fail: | |
3130 | return NULL; | |
3131 | } | |
3132 | ||
3133 | ||
c32bde28 | 3134 | static PyObject *_wrap_CalendarCtrl_SetHolidayColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3135 | PyObject *resultobj; |
3136 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3137 | wxColour *arg2 = 0 ; | |
3138 | wxColour *arg3 = 0 ; | |
3139 | wxColour temp2 ; | |
3140 | wxColour temp3 ; | |
3141 | PyObject * obj0 = 0 ; | |
3142 | PyObject * obj1 = 0 ; | |
3143 | PyObject * obj2 = 0 ; | |
3144 | char *kwnames[] = { | |
3145 | (char *) "self",(char *) "colFg",(char *) "colBg", NULL | |
3146 | }; | |
3147 | ||
3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetHolidayColours",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
3149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3151 | { |
3152 | arg2 = &temp2; | |
3153 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3154 | } | |
3155 | { | |
3156 | arg3 = &temp3; | |
3157 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
3158 | } | |
3159 | { | |
3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3161 | (arg1)->SetHolidayColours((wxColour const &)*arg2,(wxColour const &)*arg3); | |
3162 | ||
3163 | wxPyEndAllowThreads(__tstate); | |
3164 | if (PyErr_Occurred()) SWIG_fail; | |
3165 | } | |
3166 | Py_INCREF(Py_None); resultobj = Py_None; | |
3167 | return resultobj; | |
3168 | fail: | |
3169 | return NULL; | |
3170 | } | |
3171 | ||
3172 | ||
c32bde28 | 3173 | static PyObject *_wrap_CalendarCtrl_GetHolidayColourFg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3174 | PyObject *resultobj; |
3175 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3176 | wxColour result; | |
3177 | PyObject * obj0 = 0 ; | |
3178 | char *kwnames[] = { | |
3179 | (char *) "self", NULL | |
3180 | }; | |
3181 | ||
3182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourFg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3185 | { |
3186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3187 | result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourFg(); | |
3188 | ||
3189 | wxPyEndAllowThreads(__tstate); | |
3190 | if (PyErr_Occurred()) SWIG_fail; | |
3191 | } | |
3192 | { | |
3193 | wxColour * resultptr; | |
093d3ff1 | 3194 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 3195 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
3196 | } |
3197 | return resultobj; | |
3198 | fail: | |
3199 | return NULL; | |
3200 | } | |
3201 | ||
3202 | ||
c32bde28 | 3203 | static PyObject *_wrap_CalendarCtrl_GetHolidayColourBg(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3204 | PyObject *resultobj; |
3205 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3206 | wxColour result; | |
3207 | PyObject * obj0 = 0 ; | |
3208 | char *kwnames[] = { | |
3209 | (char *) "self", NULL | |
3210 | }; | |
3211 | ||
3212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetHolidayColourBg",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3215 | { |
3216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3217 | result = ((wxCalendarCtrl const *)arg1)->GetHolidayColourBg(); | |
3218 | ||
3219 | wxPyEndAllowThreads(__tstate); | |
3220 | if (PyErr_Occurred()) SWIG_fail; | |
3221 | } | |
3222 | { | |
3223 | wxColour * resultptr; | |
093d3ff1 | 3224 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 3225 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
3226 | } |
3227 | return resultobj; | |
3228 | fail: | |
3229 | return NULL; | |
3230 | } | |
3231 | ||
3232 | ||
c32bde28 | 3233 | static PyObject *_wrap_CalendarCtrl_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3234 | PyObject *resultobj; |
3235 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3236 | size_t arg2 ; | |
3237 | wxCalendarDateAttr *result; | |
3238 | PyObject * obj0 = 0 ; | |
3239 | PyObject * obj1 = 0 ; | |
3240 | char *kwnames[] = { | |
3241 | (char *) "self",(char *) "day", NULL | |
3242 | }; | |
3243 | ||
3244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_GetAttr",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3247 | { | |
3248 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
3249 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3250 | } | |
d14a1e28 RD |
3251 | { |
3252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3253 | result = (wxCalendarDateAttr *)((wxCalendarCtrl const *)arg1)->GetAttr(arg2); | |
3254 | ||
3255 | wxPyEndAllowThreads(__tstate); | |
3256 | if (PyErr_Occurred()) SWIG_fail; | |
3257 | } | |
15afbcd0 | 3258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalendarDateAttr, 0); |
d14a1e28 RD |
3259 | return resultobj; |
3260 | fail: | |
3261 | return NULL; | |
3262 | } | |
3263 | ||
3264 | ||
c32bde28 | 3265 | static PyObject *_wrap_CalendarCtrl_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3266 | PyObject *resultobj; |
3267 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3268 | size_t arg2 ; | |
3269 | wxCalendarDateAttr *arg3 = (wxCalendarDateAttr *) 0 ; | |
3270 | PyObject * obj0 = 0 ; | |
3271 | PyObject * obj1 = 0 ; | |
3272 | PyObject * obj2 = 0 ; | |
3273 | char *kwnames[] = { | |
3274 | (char *) "self",(char *) "day",(char *) "attr", NULL | |
3275 | }; | |
3276 | ||
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CalendarCtrl_SetAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
3278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3280 | { | |
3281 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
3282 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3283 | } | |
3284 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxCalendarDateAttr, SWIG_POINTER_EXCEPTION | 0); | |
3285 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
3286 | { |
3287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3288 | (arg1)->SetAttr(arg2,arg3); | |
3289 | ||
3290 | wxPyEndAllowThreads(__tstate); | |
3291 | if (PyErr_Occurred()) SWIG_fail; | |
3292 | } | |
3293 | Py_INCREF(Py_None); resultobj = Py_None; | |
3294 | return resultobj; | |
3295 | fail: | |
3296 | return NULL; | |
3297 | } | |
3298 | ||
3299 | ||
c32bde28 | 3300 | static PyObject *_wrap_CalendarCtrl_SetHoliday(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3301 | PyObject *resultobj; |
3302 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3303 | size_t arg2 ; | |
3304 | PyObject * obj0 = 0 ; | |
3305 | PyObject * obj1 = 0 ; | |
3306 | char *kwnames[] = { | |
3307 | (char *) "self",(char *) "day", NULL | |
3308 | }; | |
3309 | ||
3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_SetHoliday",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3313 | { | |
3314 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
3315 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3316 | } | |
d14a1e28 RD |
3317 | { |
3318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3319 | (arg1)->SetHoliday(arg2); | |
3320 | ||
3321 | wxPyEndAllowThreads(__tstate); | |
3322 | if (PyErr_Occurred()) SWIG_fail; | |
3323 | } | |
3324 | Py_INCREF(Py_None); resultobj = Py_None; | |
3325 | return resultobj; | |
3326 | fail: | |
3327 | return NULL; | |
3328 | } | |
3329 | ||
3330 | ||
c32bde28 | 3331 | static PyObject *_wrap_CalendarCtrl_ResetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3332 | PyObject *resultobj; |
3333 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3334 | size_t arg2 ; | |
3335 | PyObject * obj0 = 0 ; | |
3336 | PyObject * obj1 = 0 ; | |
3337 | char *kwnames[] = { | |
3338 | (char *) "self",(char *) "day", NULL | |
3339 | }; | |
3340 | ||
3341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_ResetAttr",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3344 | { | |
3345 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
3346 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3347 | } | |
d14a1e28 RD |
3348 | { |
3349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3350 | (arg1)->ResetAttr(arg2); | |
3351 | ||
3352 | wxPyEndAllowThreads(__tstate); | |
3353 | if (PyErr_Occurred()) SWIG_fail; | |
3354 | } | |
3355 | Py_INCREF(Py_None); resultobj = Py_None; | |
3356 | return resultobj; | |
3357 | fail: | |
3358 | return NULL; | |
3359 | } | |
3360 | ||
3361 | ||
c32bde28 | 3362 | static PyObject *_wrap_CalendarCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3363 | PyObject *resultobj; |
3364 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3365 | wxPoint *arg2 = 0 ; | |
98e665d3 | 3366 | PyObject *result; |
d14a1e28 RD |
3367 | wxPoint temp2 ; |
3368 | PyObject * obj0 = 0 ; | |
3369 | PyObject * obj1 = 0 ; | |
d14a1e28 | 3370 | char *kwnames[] = { |
98e665d3 | 3371 | (char *) "self",(char *) "pos", NULL |
d14a1e28 RD |
3372 | }; |
3373 | ||
98e665d3 | 3374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalendarCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3375 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3376 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3377 | { |
3378 | arg2 = &temp2; | |
3379 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3380 | } | |
d14a1e28 RD |
3381 | { |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
98e665d3 | 3383 | result = (PyObject *)wxCalendarCtrl_HitTest(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
3384 | |
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
98e665d3 | 3388 | resultobj = result; |
d14a1e28 RD |
3389 | return resultobj; |
3390 | fail: | |
3391 | return NULL; | |
3392 | } | |
3393 | ||
3394 | ||
c32bde28 | 3395 | static PyObject *_wrap_CalendarCtrl_GetMonthControl(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
3396 | PyObject *resultobj; |
3397 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3398 | wxControl *result; | |
3399 | PyObject * obj0 = 0 ; | |
3400 | char *kwnames[] = { | |
3401 | (char *) "self", NULL | |
3402 | }; | |
3403 | ||
3404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetMonthControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3405 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3406 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
3407 | { |
3408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3409 | result = (wxControl *)((wxCalendarCtrl const *)arg1)->GetMonthControl(); | |
3410 | ||
3411 | wxPyEndAllowThreads(__tstate); | |
3412 | if (PyErr_Occurred()) SWIG_fail; | |
3413 | } | |
3414 | { | |
412d302d | 3415 | resultobj = wxPyMake_wxObject(result, 0); |
c9c7117a RD |
3416 | } |
3417 | return resultobj; | |
3418 | fail: | |
3419 | return NULL; | |
3420 | } | |
3421 | ||
3422 | ||
c32bde28 | 3423 | static PyObject *_wrap_CalendarCtrl_GetYearControl(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
3424 | PyObject *resultobj; |
3425 | wxCalendarCtrl *arg1 = (wxCalendarCtrl *) 0 ; | |
3426 | wxControl *result; | |
3427 | PyObject * obj0 = 0 ; | |
3428 | char *kwnames[] = { | |
3429 | (char *) "self", NULL | |
3430 | }; | |
3431 | ||
3432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalendarCtrl_GetYearControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3433 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCalendarCtrl, SWIG_POINTER_EXCEPTION | 0); |
3434 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
3435 | { |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | result = (wxControl *)((wxCalendarCtrl const *)arg1)->GetYearControl(); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | { | |
412d302d | 3443 | resultobj = wxPyMake_wxObject(result, 0); |
c9c7117a RD |
3444 | } |
3445 | return resultobj; | |
3446 | fail: | |
3447 | return NULL; | |
3448 | } | |
3449 | ||
3450 | ||
c32bde28 | 3451 | static PyObject *_wrap_CalendarCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 3452 | PyObject *resultobj; |
093d3ff1 | 3453 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
3454 | wxVisualAttributes result; |
3455 | PyObject * obj0 = 0 ; | |
3456 | char *kwnames[] = { | |
3457 | (char *) "variant", NULL | |
3458 | }; | |
3459 | ||
3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CalendarCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3461 | if (obj0) { | |
093d3ff1 RD |
3462 | { |
3463 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
3464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3465 | } | |
22bfe96c RD |
3466 | } |
3467 | { | |
110da5b0 | 3468 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3470 | result = wxCalendarCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3471 | ||
3472 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3473 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3474 | } |
3475 | { | |
3476 | wxVisualAttributes * resultptr; | |
093d3ff1 | 3477 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
3478 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
3479 | } | |
3480 | return resultobj; | |
3481 | fail: | |
3482 | return NULL; | |
3483 | } | |
3484 | ||
3485 | ||
c32bde28 | 3486 | static PyObject * CalendarCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3487 | PyObject *obj; |
3488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3489 | SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl, obj); | |
3490 | Py_INCREF(obj); | |
3491 | return Py_BuildValue((char *)""); | |
3492 | } | |
3493 | static PyMethodDef SwigMethods[] = { | |
093d3ff1 RD |
3494 | { (char *)"new_CalendarDateAttr", (PyCFunction) _wrap_new_CalendarDateAttr, METH_VARARGS | METH_KEYWORDS, NULL}, |
3495 | { (char *)"CalendarDateAttr_SetTextColour", (PyCFunction) _wrap_CalendarDateAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3496 | { (char *)"CalendarDateAttr_SetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3497 | { (char *)"CalendarDateAttr_SetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_SetBorderColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3498 | { (char *)"CalendarDateAttr_SetFont", (PyCFunction) _wrap_CalendarDateAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3499 | { (char *)"CalendarDateAttr_SetBorder", (PyCFunction) _wrap_CalendarDateAttr_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3500 | { (char *)"CalendarDateAttr_SetHoliday", (PyCFunction) _wrap_CalendarDateAttr_SetHoliday, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3501 | { (char *)"CalendarDateAttr_HasTextColour", (PyCFunction) _wrap_CalendarDateAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3502 | { (char *)"CalendarDateAttr_HasBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3503 | { (char *)"CalendarDateAttr_HasBorderColour", (PyCFunction) _wrap_CalendarDateAttr_HasBorderColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3504 | { (char *)"CalendarDateAttr_HasFont", (PyCFunction) _wrap_CalendarDateAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3505 | { (char *)"CalendarDateAttr_HasBorder", (PyCFunction) _wrap_CalendarDateAttr_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3506 | { (char *)"CalendarDateAttr_IsHoliday", (PyCFunction) _wrap_CalendarDateAttr_IsHoliday, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3507 | { (char *)"CalendarDateAttr_GetTextColour", (PyCFunction) _wrap_CalendarDateAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3508 | { (char *)"CalendarDateAttr_GetBackgroundColour", (PyCFunction) _wrap_CalendarDateAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3509 | { (char *)"CalendarDateAttr_GetBorderColour", (PyCFunction) _wrap_CalendarDateAttr_GetBorderColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3510 | { (char *)"CalendarDateAttr_GetFont", (PyCFunction) _wrap_CalendarDateAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3511 | { (char *)"CalendarDateAttr_GetBorder", (PyCFunction) _wrap_CalendarDateAttr_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3512 | { (char *)"CalendarDateAttr_swigregister", CalendarDateAttr_swigregister, METH_VARARGS, NULL}, | |
3513 | { (char *)"new_CalendarEvent", (PyCFunction) _wrap_new_CalendarEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3514 | { (char *)"CalendarEvent_GetDate", (PyCFunction) _wrap_CalendarEvent_GetDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3515 | { (char *)"CalendarEvent_SetDate", (PyCFunction) _wrap_CalendarEvent_SetDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3516 | { (char *)"CalendarEvent_SetWeekDay", (PyCFunction) _wrap_CalendarEvent_SetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3517 | { (char *)"CalendarEvent_GetWeekDay", (PyCFunction) _wrap_CalendarEvent_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3518 | { (char *)"CalendarEvent_swigregister", CalendarEvent_swigregister, METH_VARARGS, NULL}, | |
3519 | { (char *)"new_CalendarCtrl", (PyCFunction) _wrap_new_CalendarCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3520 | { (char *)"new_PreCalendarCtrl", (PyCFunction) _wrap_new_PreCalendarCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3521 | { (char *)"CalendarCtrl_Create", (PyCFunction) _wrap_CalendarCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3522 | { (char *)"CalendarCtrl_SetDate", (PyCFunction) _wrap_CalendarCtrl_SetDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3523 | { (char *)"CalendarCtrl_GetDate", (PyCFunction) _wrap_CalendarCtrl_GetDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3524 | { (char *)"CalendarCtrl_SetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetLowerDateLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3525 | { (char *)"CalendarCtrl_SetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_SetUpperDateLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3526 | { (char *)"CalendarCtrl_GetLowerDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetLowerDateLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3527 | { (char *)"CalendarCtrl_GetUpperDateLimit", (PyCFunction) _wrap_CalendarCtrl_GetUpperDateLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3528 | { (char *)"CalendarCtrl_SetDateRange", (PyCFunction) _wrap_CalendarCtrl_SetDateRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3529 | { (char *)"CalendarCtrl_EnableYearChange", (PyCFunction) _wrap_CalendarCtrl_EnableYearChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3530 | { (char *)"CalendarCtrl_EnableMonthChange", (PyCFunction) _wrap_CalendarCtrl_EnableMonthChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3531 | { (char *)"CalendarCtrl_EnableHolidayDisplay", (PyCFunction) _wrap_CalendarCtrl_EnableHolidayDisplay, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3532 | { (char *)"CalendarCtrl_SetHeaderColours", (PyCFunction) _wrap_CalendarCtrl_SetHeaderColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3533 | { (char *)"CalendarCtrl_GetHeaderColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourFg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3534 | { (char *)"CalendarCtrl_GetHeaderColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHeaderColourBg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3535 | { (char *)"CalendarCtrl_SetHighlightColours", (PyCFunction) _wrap_CalendarCtrl_SetHighlightColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3536 | { (char *)"CalendarCtrl_GetHighlightColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourFg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3537 | { (char *)"CalendarCtrl_GetHighlightColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHighlightColourBg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3538 | { (char *)"CalendarCtrl_SetHolidayColours", (PyCFunction) _wrap_CalendarCtrl_SetHolidayColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3539 | { (char *)"CalendarCtrl_GetHolidayColourFg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourFg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3540 | { (char *)"CalendarCtrl_GetHolidayColourBg", (PyCFunction) _wrap_CalendarCtrl_GetHolidayColourBg, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3541 | { (char *)"CalendarCtrl_GetAttr", (PyCFunction) _wrap_CalendarCtrl_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3542 | { (char *)"CalendarCtrl_SetAttr", (PyCFunction) _wrap_CalendarCtrl_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3543 | { (char *)"CalendarCtrl_SetHoliday", (PyCFunction) _wrap_CalendarCtrl_SetHoliday, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3544 | { (char *)"CalendarCtrl_ResetAttr", (PyCFunction) _wrap_CalendarCtrl_ResetAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3545 | { (char *)"CalendarCtrl_HitTest", (PyCFunction) _wrap_CalendarCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3546 | { (char *)"CalendarCtrl_GetMonthControl", (PyCFunction) _wrap_CalendarCtrl_GetMonthControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3547 | { (char *)"CalendarCtrl_GetYearControl", (PyCFunction) _wrap_CalendarCtrl_GetYearControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3548 | { (char *)"CalendarCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_CalendarCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
3549 | { (char *)"CalendarCtrl_swigregister", CalendarCtrl_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 3550 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
3551 | }; |
3552 | ||
3553 | ||
3554 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
3555 | ||
3556 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
3557 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
3558 | } | |
3559 | static void *_p_wxCalendarCtrlTo_p_wxObject(void *x) { | |
3560 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCalendarCtrl *) x)); | |
3561 | } | |
3562 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
3563 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
3564 | } | |
3565 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
3566 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
3567 | } | |
3568 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
3569 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
3570 | } | |
3571 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
3572 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
3573 | } | |
3574 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
3575 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
3576 | } | |
3577 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
3578 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
3579 | } | |
3580 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
3581 | return (void *)((wxObject *) ((wxSizer *) x)); | |
3582 | } | |
3583 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
3584 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
3585 | } | |
3586 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
3587 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
3588 | } | |
3589 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
3590 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
3591 | } | |
3592 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
3593 | return (void *)((wxObject *) ((wxEvent *) x)); | |
3594 | } | |
3595 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
3596 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
3597 | } | |
3598 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
3599 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
3600 | } | |
3601 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
3602 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
3603 | } | |
3604 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
3605 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
3606 | } | |
3607 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
3608 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
3609 | } | |
3610 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
3611 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
3612 | } | |
3613 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
3614 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
3615 | } | |
3616 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
3617 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
3618 | } | |
3619 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
3620 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
3621 | } | |
3622 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
3623 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
3624 | } | |
3625 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
3626 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
3627 | } | |
3628 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
3629 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
3630 | } | |
3631 | static void *_p_wxCalendarEventTo_p_wxObject(void *x) { | |
3632 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCalendarEvent *) x)); | |
3633 | } | |
3634 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
3635 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
3636 | } | |
3637 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
3638 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
3639 | } | |
3640 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
3641 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
3642 | } | |
3643 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
3644 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
3645 | } | |
3646 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
3647 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
3648 | } | |
3649 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
3650 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
3651 | } | |
3652 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
3653 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
3654 | } | |
3655 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
3656 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
3657 | } | |
3658 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
3659 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
3660 | } | |
3661 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
3662 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
3663 | } | |
3664 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
3665 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
3666 | } | |
3667 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
3668 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
3669 | } | |
3670 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
3671 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
3672 | } | |
3673 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
3674 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
3675 | } | |
3676 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
3677 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
3678 | } | |
3679 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
3680 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
3681 | } | |
3682 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
3683 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
3684 | } | |
3685 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
3686 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
3687 | } | |
3688 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
3689 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
3690 | } | |
3691 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
3692 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
3693 | } | |
3694 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
3695 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
3696 | } | |
3697 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
3698 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
3699 | } | |
3700 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
3701 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
3702 | } | |
3703 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
3704 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
3705 | } | |
3706 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
3707 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
3708 | } | |
3709 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
3710 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
3711 | } | |
3712 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
3713 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
3714 | } | |
3715 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
3716 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
3717 | } | |
3718 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
3719 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
3720 | } | |
51b83b37 RD |
3721 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
3722 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
3723 | } | |
0df68c9f RD |
3724 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
3725 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
3726 | } | |
d14a1e28 RD |
3727 | static void *_p_wxImageTo_p_wxObject(void *x) { |
3728 | return (void *)((wxObject *) ((wxImage *) x)); | |
3729 | } | |
3730 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
3731 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
3732 | } | |
3733 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
3734 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
3735 | } | |
3736 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
3737 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
3738 | } | |
3739 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
3740 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
3741 | } | |
3742 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
3743 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
3744 | } | |
3745 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
3746 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
3747 | } | |
3748 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
3749 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
3750 | } | |
3751 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
3752 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
3753 | } | |
3754 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
3755 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
3756 | } | |
3757 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
3758 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
3759 | } | |
3760 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
3761 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
3762 | } | |
3763 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
3764 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
3765 | } | |
3766 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
3767 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
3768 | } | |
3769 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
3770 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
3771 | } | |
3772 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
3773 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
3774 | } | |
3775 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
3776 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
3777 | } | |
3778 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
3779 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
3780 | } | |
3781 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
3782 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
3783 | } | |
3784 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
3785 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
3786 | } | |
3787 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
3788 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
3789 | } | |
3790 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
3791 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
3792 | } | |
3793 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
3794 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
3795 | } | |
3796 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
3797 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
3798 | } | |
3799 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
3800 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
3801 | } | |
3802 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
3803 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
3804 | } | |
3805 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
3806 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
3807 | } | |
3808 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
3809 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
3810 | } | |
3811 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
3812 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
3813 | } | |
3814 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
3815 | return (void *)((wxWindow *) ((wxControl *) x)); | |
3816 | } | |
3817 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
3818 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
3819 | } | |
3820 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
3821 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
3822 | } | |
3823 | static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x) { | |
3824 | return (void *)((wxWindow *) (wxControl *) ((wxCalendarCtrl *) x)); | |
3825 | } | |
3826 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
3827 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
3828 | } | |
3829 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
3830 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
3831 | } | |
3832 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
3833 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
3834 | } | |
3835 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
3836 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
3837 | } | |
3838 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
3839 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
3840 | } | |
3841 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
3842 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
3843 | } | |
3844 | static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x) { | |
3845 | return (void *)((wxCommandEvent *) ((wxCalendarEvent *) x)); | |
3846 | } | |
3847 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
3848 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
3849 | } | |
3850 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
3851 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
3852 | } | |
3853 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
3854 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
3855 | } | |
3856 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
3857 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
3858 | } | |
3859 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
3860 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
3861 | } | |
3862 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
3863 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
3864 | } | |
3865 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
3866 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
3867 | } | |
3868 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
3869 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
3870 | } | |
3871 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
3872 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
3873 | } | |
3874 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
3875 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
3876 | } | |
3877 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
3878 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
3879 | } | |
3880 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
3881 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
3882 | } | |
3883 | static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x) { | |
3884 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCalendarCtrl *) x)); | |
3885 | } | |
3886 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
3887 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
3888 | } | |
3889 | static void *_p_wxCalendarCtrlTo_p_wxControl(void *x) { | |
3890 | return (void *)((wxControl *) ((wxCalendarCtrl *) x)); | |
3891 | } | |
3892 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
3893 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
3894 | } | |
3895 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
3896 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
3897 | } | |
3898 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
3899 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
3900 | } | |
3901 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
3902 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
3903 | } | |
3904 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
3905 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
3906 | } | |
3907 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
3908 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
3909 | } | |
3910 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
3911 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
3912 | } | |
3913 | static void *_p_wxCalendarEventTo_p_wxEvent(void *x) { | |
3914 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxCalendarEvent *) x)); | |
3915 | } | |
3916 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
3917 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
3918 | } | |
3919 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
3920 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
3921 | } | |
3922 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
3923 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
3924 | } | |
3925 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
3926 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
3927 | } | |
3928 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
3929 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
3930 | } | |
3931 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
3932 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
3933 | } | |
3934 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
3935 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
3936 | } | |
3937 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
3938 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
3939 | } | |
3940 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
3941 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
3942 | } | |
3943 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
3944 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
3945 | } | |
3946 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
3947 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
3948 | } | |
3949 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
3950 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
3951 | } | |
3952 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
3953 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
3954 | } | |
3955 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
3956 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
3957 | } | |
3958 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
3959 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
3960 | } | |
3961 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
3962 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
3963 | } | |
3964 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
3965 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
3966 | } | |
3967 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
3968 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
3969 | } | |
3970 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
3971 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
3972 | } | |
3973 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
3974 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
3975 | } | |
3976 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
3977 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
3978 | } | |
3979 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
3980 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
3981 | } | |
3982 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
3983 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
3984 | } | |
3985 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
3986 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
3987 | } | |
3988 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
3989 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
3990 | } | |
3991 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
3992 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
3993 | } | |
3994 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
3995 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
3996 | } | |
3997 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
3998 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
3999 | } | |
4000 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
4001 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
4002 | } | |
4003 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
4004 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
4005 | } | |
4006 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
4007 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
4008 | } | |
51b83b37 | 4009 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 RD |
4010 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
4011 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22bfe96c | 4012 | static swig_type_info _swigt__p_wxCalendarDateAttr[] = {{"_p_wxCalendarDateAttr", 0, "wxCalendarDateAttr *", 0, 0, 0, 0},{"_p_wxCalendarDateAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 RD |
4013 | static swig_type_info _swigt__p_wxCalendarEvent[] = {{"_p_wxCalendarEvent", 0, "wxCalendarEvent *", 0, 0, 0, 0},{"_p_wxCalendarEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
4014 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22bfe96c | 4015 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 | 4016 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 RD |
4017 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxLogLevel *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
4018 | static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4019 | static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4020 | static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4021 | static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22bfe96c RD |
4022 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
4023 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 RD |
4024 | static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
4025 | static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22bfe96c RD |
4026 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
4027 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4028 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
22bfe96c | 4029 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 RD |
4030 | static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
4031 | static swig_type_info _swigt__p_wxCalendarCtrl[] = {{"_p_wxCalendarCtrl", 0, "wxCalendarCtrl *", 0, 0, 0, 0},{"_p_wxCalendarCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4032 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d14a1e28 RD |
4033 | |
4034 | static swig_type_info *swig_types_initial[] = { | |
22bfe96c | 4035 | _swigt__p_wxObject, |
093d3ff1 RD |
4036 | _swigt__p_unsigned_char, |
4037 | _swigt__p_wxColour, | |
22bfe96c | 4038 | _swigt__p_wxCalendarDateAttr, |
093d3ff1 RD |
4039 | _swigt__p_wxCalendarEvent, |
4040 | _swigt__p_wxVisualAttributes, | |
22bfe96c | 4041 | _swigt__p_wxWindow, |
d14a1e28 | 4042 | _swigt__p_wxCommandEvent, |
093d3ff1 RD |
4043 | _swigt__p_unsigned_long, |
4044 | _swigt__p_unsigned_int, | |
4045 | _swigt__unsigned_int, | |
4046 | _swigt__p_form_ops_t, | |
4047 | _swigt__p_wxDuplexMode, | |
22bfe96c RD |
4048 | _swigt__p_char, |
4049 | _swigt__p_wxEvtHandler, | |
093d3ff1 RD |
4050 | _swigt__std__ptrdiff_t, |
4051 | _swigt__ptrdiff_t, | |
22bfe96c RD |
4052 | _swigt__p_wxFont, |
4053 | _swigt__p_wxDateTime, | |
4054 | _swigt__p_wxControl, | |
22bfe96c | 4055 | _swigt__p_wxEvent, |
093d3ff1 RD |
4056 | _swigt__p_wxPaperSize, |
4057 | _swigt__p_wxCalendarCtrl, | |
4058 | _swigt__p_int, | |
d14a1e28 RD |
4059 | 0 |
4060 | }; | |
4061 | ||
4062 | ||
4063 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
4064 | ||
4065 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 4066 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
4067 | |
4068 | #ifdef __cplusplus | |
4069 | } | |
4070 | #endif | |
4071 | ||
093d3ff1 RD |
4072 | |
4073 | #ifdef __cplusplus | |
4074 | extern "C" { | |
4075 | #endif | |
4076 | ||
4077 | /* Python-specific SWIG API */ | |
4078 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
4079 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
4080 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
4081 | ||
4082 | /* ----------------------------------------------------------------------------- | |
4083 | * global variable support code. | |
4084 | * ----------------------------------------------------------------------------- */ | |
4085 | ||
4086 | typedef struct swig_globalvar { | |
4087 | char *name; /* Name of global variable */ | |
4088 | PyObject *(*get_attr)(); /* Return the current value */ | |
4089 | int (*set_attr)(PyObject *); /* Set the value */ | |
4090 | struct swig_globalvar *next; | |
4091 | } swig_globalvar; | |
4092 | ||
4093 | typedef struct swig_varlinkobject { | |
4094 | PyObject_HEAD | |
4095 | swig_globalvar *vars; | |
4096 | } swig_varlinkobject; | |
4097 | ||
4098 | static PyObject * | |
4099 | swig_varlink_repr(swig_varlinkobject *v) { | |
4100 | v = v; | |
4101 | return PyString_FromString("<Swig global variables>"); | |
4102 | } | |
4103 | ||
4104 | static int | |
4105 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
4106 | swig_globalvar *var; | |
4107 | flags = flags; | |
4108 | fprintf(fp,"Swig global variables { "); | |
4109 | for (var = v->vars; var; var=var->next) { | |
4110 | fprintf(fp,"%s", var->name); | |
4111 | if (var->next) fprintf(fp,", "); | |
4112 | } | |
4113 | fprintf(fp," }\n"); | |
4114 | return 0; | |
4115 | } | |
4116 | ||
4117 | static PyObject * | |
4118 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
4119 | swig_globalvar *var = v->vars; | |
4120 | while (var) { | |
4121 | if (strcmp(var->name,n) == 0) { | |
4122 | return (*var->get_attr)(); | |
4123 | } | |
4124 | var = var->next; | |
4125 | } | |
4126 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
4127 | return NULL; | |
4128 | } | |
4129 | ||
4130 | static int | |
4131 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
4132 | swig_globalvar *var = v->vars; | |
4133 | while (var) { | |
4134 | if (strcmp(var->name,n) == 0) { | |
4135 | return (*var->set_attr)(p); | |
4136 | } | |
4137 | var = var->next; | |
4138 | } | |
4139 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
4140 | return 1; | |
4141 | } | |
4142 | ||
4143 | static PyTypeObject varlinktype = { | |
4144 | PyObject_HEAD_INIT(0) | |
4145 | 0, /* Number of items in variable part (ob_size) */ | |
4146 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
4147 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
4148 | 0, /* Itemsize (tp_itemsize) */ | |
4149 | 0, /* Deallocator (tp_dealloc) */ | |
4150 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
4151 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
4152 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
4153 | 0, /* tp_compare */ | |
4154 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
4155 | 0, /* tp_as_number */ | |
4156 | 0, /* tp_as_sequence */ | |
4157 | 0, /* tp_as_mapping */ | |
4158 | 0, /* tp_hash */ | |
4159 | 0, /* tp_call */ | |
4160 | 0, /* tp_str */ | |
4161 | 0, /* tp_getattro */ | |
4162 | 0, /* tp_setattro */ | |
4163 | 0, /* tp_as_buffer */ | |
4164 | 0, /* tp_flags */ | |
4165 | 0, /* tp_doc */ | |
4166 | #if PY_VERSION_HEX >= 0x02000000 | |
4167 | 0, /* tp_traverse */ | |
4168 | 0, /* tp_clear */ | |
4169 | #endif | |
4170 | #if PY_VERSION_HEX >= 0x02010000 | |
4171 | 0, /* tp_richcompare */ | |
4172 | 0, /* tp_weaklistoffset */ | |
4173 | #endif | |
4174 | #if PY_VERSION_HEX >= 0x02020000 | |
4175 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
4176 | #endif | |
4177 | #if PY_VERSION_HEX >= 0x02030000 | |
4178 | 0, /* tp_del */ | |
4179 | #endif | |
4180 | #ifdef COUNT_ALLOCS | |
4181 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
4182 | #endif | |
4183 | }; | |
4184 | ||
4185 | /* Create a variable linking object for use later */ | |
4186 | static PyObject * | |
4187 | SWIG_Python_newvarlink(void) { | |
4188 | swig_varlinkobject *result = 0; | |
4189 | result = PyMem_NEW(swig_varlinkobject,1); | |
4190 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
4191 | result->ob_type = &varlinktype; | |
4192 | result->vars = 0; | |
4193 | result->ob_refcnt = 0; | |
4194 | Py_XINCREF((PyObject *) result); | |
4195 | return ((PyObject*) result); | |
4196 | } | |
4197 | ||
4198 | static void | |
4199 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
4200 | swig_varlinkobject *v; | |
4201 | swig_globalvar *gv; | |
4202 | v= (swig_varlinkobject *) p; | |
4203 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
4204 | gv->name = (char *) malloc(strlen(name)+1); | |
4205 | strcpy(gv->name,name); | |
4206 | gv->get_attr = get_attr; | |
4207 | gv->set_attr = set_attr; | |
4208 | gv->next = v->vars; | |
4209 | v->vars = gv; | |
4210 | } | |
4211 | ||
4212 | /* ----------------------------------------------------------------------------- | |
4213 | * constants/methods manipulation | |
4214 | * ----------------------------------------------------------------------------- */ | |
4215 | ||
4216 | /* Install Constants */ | |
4217 | static void | |
4218 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
4219 | PyObject *obj = 0; | |
4220 | size_t i; | |
4221 | for (i = 0; constants[i].type; i++) { | |
4222 | switch(constants[i].type) { | |
4223 | case SWIG_PY_INT: | |
4224 | obj = PyInt_FromLong(constants[i].lvalue); | |
4225 | break; | |
4226 | case SWIG_PY_FLOAT: | |
4227 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
4228 | break; | |
4229 | case SWIG_PY_STRING: | |
4230 | if (constants[i].pvalue) { | |
4231 | obj = PyString_FromString((char *) constants[i].pvalue); | |
4232 | } else { | |
4233 | Py_INCREF(Py_None); | |
4234 | obj = Py_None; | |
4235 | } | |
4236 | break; | |
4237 | case SWIG_PY_POINTER: | |
4238 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
4239 | break; | |
4240 | case SWIG_PY_BINARY: | |
4241 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
4242 | break; | |
4243 | default: | |
4244 | obj = 0; | |
4245 | break; | |
4246 | } | |
4247 | if (obj) { | |
4248 | PyDict_SetItemString(d,constants[i].name,obj); | |
4249 | Py_DECREF(obj); | |
4250 | } | |
4251 | } | |
4252 | } | |
4253 | ||
4254 | /* -----------------------------------------------------------------------------*/ | |
4255 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
4256 | /* -----------------------------------------------------------------------------*/ | |
4257 | ||
4258 | static void | |
4259 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
4260 | swig_const_info *const_table, | |
4261 | swig_type_info **types, | |
4262 | swig_type_info **types_initial) { | |
4263 | size_t i; | |
4264 | for (i = 0; methods[i].ml_name; ++i) { | |
4265 | char *c = methods[i].ml_doc; | |
4266 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
4267 | int j; | |
4268 | swig_const_info *ci = 0; | |
4269 | char *name = c + 10; | |
4270 | for (j = 0; const_table[j].type; j++) { | |
4271 | if (strncmp(const_table[j].name, name, | |
4272 | strlen(const_table[j].name)) == 0) { | |
4273 | ci = &(const_table[j]); | |
4274 | break; | |
4275 | } | |
4276 | } | |
4277 | if (ci) { | |
4278 | size_t shift = (ci->ptype) - types; | |
4279 | swig_type_info *ty = types_initial[shift]; | |
4280 | size_t ldoc = (c - methods[i].ml_doc); | |
4281 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
4282 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
4283 | char *buff = ndoc; | |
4284 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
4285 | strncpy(buff, methods[i].ml_doc, ldoc); | |
4286 | buff += ldoc; | |
4287 | strncpy(buff, "swig_ptr: ", 10); | |
4288 | buff += 10; | |
4289 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
4290 | methods[i].ml_doc = ndoc; | |
4291 | } | |
4292 | } | |
4293 | } | |
4294 | } | |
4295 | ||
4296 | /* -----------------------------------------------------------------------------* | |
4297 | * Initialize type list | |
4298 | * -----------------------------------------------------------------------------*/ | |
4299 | ||
4300 | #if PY_MAJOR_VERSION < 2 | |
4301 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
4302 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
4303 | static int | |
4304 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
4305 | { | |
4306 | PyObject *dict; | |
4307 | if (!PyModule_Check(m)) { | |
4308 | PyErr_SetString(PyExc_TypeError, | |
4309 | "PyModule_AddObject() needs module as first arg"); | |
4310 | return -1; | |
4311 | } | |
4312 | if (!o) { | |
4313 | PyErr_SetString(PyExc_TypeError, | |
4314 | "PyModule_AddObject() needs non-NULL value"); | |
4315 | return -1; | |
4316 | } | |
4317 | ||
4318 | dict = PyModule_GetDict(m); | |
4319 | if (dict == NULL) { | |
4320 | /* Internal error -- modules must have a dict! */ | |
4321 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
4322 | PyModule_GetName(m)); | |
4323 | return -1; | |
4324 | } | |
4325 | if (PyDict_SetItemString(dict, name, o)) | |
4326 | return -1; | |
4327 | Py_DECREF(o); | |
4328 | return 0; | |
4329 | } | |
4330 | #endif | |
4331 | ||
4332 | static swig_type_info ** | |
4333 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
4334 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
4335 | { | |
4336 | NULL, NULL, 0, NULL | |
4337 | } | |
4338 | };/* Sentinel */ | |
4339 | ||
4340 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
4341 | swig_empty_runtime_method_table); | |
4342 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
4343 | if (pointer && module) { | |
4344 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
4345 | } | |
4346 | return type_list_handle; | |
4347 | } | |
4348 | ||
4349 | static swig_type_info ** | |
4350 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
4351 | swig_type_info **type_pointer; | |
4352 | ||
4353 | /* first check if module already created */ | |
4354 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
4355 | if (type_pointer) { | |
4356 | return type_pointer; | |
4357 | } else { | |
4358 | /* create a new module and variable */ | |
4359 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
4360 | } | |
4361 | } | |
4362 | ||
4363 | #ifdef __cplusplus | |
4364 | } | |
4365 | #endif | |
4366 | ||
4367 | /* -----------------------------------------------------------------------------* | |
4368 | * Partial Init method | |
4369 | * -----------------------------------------------------------------------------*/ | |
4370 | ||
4371 | #ifdef SWIG_LINK_RUNTIME | |
4372 | #ifdef __cplusplus | |
4373 | extern "C" | |
4374 | #endif | |
4375 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
4376 | #endif | |
4377 | ||
d14a1e28 RD |
4378 | #ifdef __cplusplus |
4379 | extern "C" | |
4380 | #endif | |
4381 | SWIGEXPORT(void) SWIG_init(void) { | |
4382 | static PyObject *SWIG_globals = 0; | |
4383 | static int typeinit = 0; | |
4384 | PyObject *m, *d; | |
4385 | int i; | |
4386 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
4387 | |
4388 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
4389 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
4390 | ||
d14a1e28 RD |
4391 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
4392 | d = PyModule_GetDict(m); | |
4393 | ||
4394 | if (!typeinit) { | |
093d3ff1 RD |
4395 | #ifdef SWIG_LINK_RUNTIME |
4396 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
4397 | #else | |
4398 | # ifndef SWIG_STATIC_RUNTIME | |
4399 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
4400 | # endif | |
4401 | #endif | |
d14a1e28 RD |
4402 | for (i = 0; swig_types_initial[i]; i++) { |
4403 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
4404 | } | |
4405 | typeinit = 1; | |
4406 | } | |
4407 | SWIG_InstallConstants(d,swig_const_table); | |
4408 | ||
093d3ff1 RD |
4409 | { |
4410 | PyDict_SetItemString(d,"CAL_SUNDAY_FIRST", SWIG_From_int((int)(wxCAL_SUNDAY_FIRST))); | |
4411 | } | |
4412 | { | |
4413 | PyDict_SetItemString(d,"CAL_MONDAY_FIRST", SWIG_From_int((int)(wxCAL_MONDAY_FIRST))); | |
4414 | } | |
4415 | { | |
4416 | PyDict_SetItemString(d,"CAL_SHOW_HOLIDAYS", SWIG_From_int((int)(wxCAL_SHOW_HOLIDAYS))); | |
4417 | } | |
4418 | { | |
4419 | PyDict_SetItemString(d,"CAL_NO_YEAR_CHANGE", SWIG_From_int((int)(wxCAL_NO_YEAR_CHANGE))); | |
4420 | } | |
4421 | { | |
4422 | PyDict_SetItemString(d,"CAL_NO_MONTH_CHANGE", SWIG_From_int((int)(wxCAL_NO_MONTH_CHANGE))); | |
4423 | } | |
4424 | { | |
4425 | PyDict_SetItemString(d,"CAL_SEQUENTIAL_MONTH_SELECTION", SWIG_From_int((int)(wxCAL_SEQUENTIAL_MONTH_SELECTION))); | |
4426 | } | |
4427 | { | |
4428 | PyDict_SetItemString(d,"CAL_SHOW_SURROUNDING_WEEKS", SWIG_From_int((int)(wxCAL_SHOW_SURROUNDING_WEEKS))); | |
4429 | } | |
4430 | { | |
4431 | PyDict_SetItemString(d,"CAL_HITTEST_NOWHERE", SWIG_From_int((int)(wxCAL_HITTEST_NOWHERE))); | |
4432 | } | |
4433 | { | |
4434 | PyDict_SetItemString(d,"CAL_HITTEST_HEADER", SWIG_From_int((int)(wxCAL_HITTEST_HEADER))); | |
4435 | } | |
4436 | { | |
4437 | PyDict_SetItemString(d,"CAL_HITTEST_DAY", SWIG_From_int((int)(wxCAL_HITTEST_DAY))); | |
4438 | } | |
4439 | { | |
4440 | PyDict_SetItemString(d,"CAL_HITTEST_INCMONTH", SWIG_From_int((int)(wxCAL_HITTEST_INCMONTH))); | |
4441 | } | |
4442 | { | |
4443 | PyDict_SetItemString(d,"CAL_HITTEST_DECMONTH", SWIG_From_int((int)(wxCAL_HITTEST_DECMONTH))); | |
4444 | } | |
4445 | { | |
4446 | PyDict_SetItemString(d,"CAL_HITTEST_SURROUNDING_WEEK", SWIG_From_int((int)(wxCAL_HITTEST_SURROUNDING_WEEK))); | |
4447 | } | |
4448 | { | |
4449 | PyDict_SetItemString(d,"CAL_BORDER_NONE", SWIG_From_int((int)(wxCAL_BORDER_NONE))); | |
4450 | } | |
4451 | { | |
4452 | PyDict_SetItemString(d,"CAL_BORDER_SQUARE", SWIG_From_int((int)(wxCAL_BORDER_SQUARE))); | |
4453 | } | |
4454 | { | |
4455 | PyDict_SetItemString(d,"CAL_BORDER_ROUND", SWIG_From_int((int)(wxCAL_BORDER_ROUND))); | |
4456 | } | |
d14a1e28 RD |
4457 | PyDict_SetItemString(d, "wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong(wxEVT_CALENDAR_DOUBLECLICKED)); |
4458 | PyDict_SetItemString(d, "wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_SEL_CHANGED)); | |
4459 | PyDict_SetItemString(d, "wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_DAY_CHANGED)); | |
4460 | PyDict_SetItemString(d, "wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_MONTH_CHANGED)); | |
4461 | PyDict_SetItemString(d, "wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_YEAR_CHANGED)); | |
4462 | PyDict_SetItemString(d, "wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong(wxEVT_CALENDAR_WEEKDAY_CLICKED)); | |
b2dc1044 RD |
4463 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
4464 | SWIG_addvarlink(SWIG_globals,(char*)"CalendarNameStr",_wrap_CalendarNameStr_get, _wrap_CalendarNameStr_set); | |
d14a1e28 RD |
4465 | |
4466 | ||
4467 | } | |
4468 |