]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
093d3ff1 | 3 | * Version 1.3.24 |
d55e5bfc 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 | |
d55e5bfc 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 | }; |
d55e5bfc 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 | |
d55e5bfc | 37 | |
d55e5bfc | 38 | |
093d3ff1 | 39 | #include <Python.h> |
d55e5bfc RD |
40 | |
41 | /*********************************************************************** | |
093d3ff1 | 42 | * swigrun.swg |
d55e5bfc | 43 | * |
093d3ff1 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d55e5bfc 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" | |
d55e5bfc | 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) | |
d55e5bfc | 58 | #else |
093d3ff1 | 59 | #define SWIG_TYPE_TABLE_NAME |
d55e5bfc 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 | |
d55e5bfc | 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 | |
d55e5bfc RD |
85 | #endif |
86 | ||
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 { | |
95 | const char *name; | |
96 | swig_converter_func converter; | |
97 | const char *str; | |
98 | void *clientdata; | |
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 | } | |
d55e5bfc | 218 | |
093d3ff1 RD |
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 | } | |
d55e5bfc | 283 | |
093d3ff1 RD |
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 | } | |
375 | ||
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 | } | |
417 | ||
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 | } | |
d55e5bfc RD |
430 | |
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
093d3ff1 | 436 | * common.swg |
d55e5bfc | 437 | * |
093d3ff1 RD |
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. | |
d55e5bfc | 441 | * |
093d3ff1 RD |
442 | * Author : David Beazley (beazley@cs.uchicago.edu) |
443 | * | |
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. | |
d55e5bfc 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 | ||
d55e5bfc 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 */ | |
d55e5bfc 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 | ||
d55e5bfc 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 | ||
093d3ff1 RD |
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 | ||
d55e5bfc | 592 | /* Common SWIG API */ |
093d3ff1 RD |
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) | |
d55e5bfc | 596 | |
d55e5bfc | 597 | |
093d3ff1 RD |
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) | |
d55e5bfc | 601 | |
d55e5bfc | 602 | |
093d3ff1 RD |
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 | |
d55e5bfc | 614 | |
093d3ff1 RD |
615 | /* Flags for pointer conversion */ |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
d55e5bfc | 618 | |
d55e5bfc RD |
619 | |
620 | #ifdef __cplusplus | |
093d3ff1 RD |
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 | } | |
d55e5bfc | 892 | } |
093d3ff1 RD |
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 */ | |
d55e5bfc | 941 | #endif |
093d3ff1 RD |
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 | }; | |
d55e5bfc | 949 | |
093d3ff1 RD |
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 | } | |
1209 | ||
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; | |
1215 | ||
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; | |
1230 | ||
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 | } | |
1276 | ||
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 | } | |
1295 | ||
1296 | /* -----------------------------------------------------------------------------* | |
1297 | * Get type list | |
1298 | * -----------------------------------------------------------------------------*/ | |
1299 | ||
1300 | #ifdef SWIG_LINK_RUNTIME | |
1301 | void *SWIG_ReturnGlobalTypeList(void *); | |
1302 | #endif | |
1303 | ||
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 | } | |
1322 | ||
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 | } | |
1331 | ||
1332 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList | |
1333 | ||
1334 | #ifdef __cplusplus | |
1335 | } | |
1336 | #endif | |
d55e5bfc | 1337 | |
c32bde28 | 1338 | |
d55e5bfc RD |
1339 | /* -------- TYPES TABLE (BEGIN) -------- */ |
1340 | ||
1341 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
1342 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
1343 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
1344 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
1345 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
ae8162c8 RD |
1346 | #define SWIGTYPE_p_wxEventLoop swig_types[5] |
1347 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[6] | |
1348 | #define SWIGTYPE_p_wxSizer swig_types[7] | |
1349 | #define SWIGTYPE_p_wxBoxSizer swig_types[8] | |
1350 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[9] | |
1351 | #define SWIGTYPE_p_wxGridBagSizer swig_types[10] | |
1352 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[11] | |
1353 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[12] | |
093d3ff1 | 1354 | #define SWIGTYPE_p_wxEvent swig_types[13] |
ea939623 RD |
1355 | #define SWIGTYPE_p_buffer swig_types[14] |
1356 | #define SWIGTYPE_p_wxMenu swig_types[15] | |
1357 | #define SWIGTYPE_p_wxGridSizer swig_types[16] | |
1358 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[17] | |
1359 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[18] | |
1360 | #define SWIGTYPE_p_wxItemContainer swig_types[19] | |
1361 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[20] | |
1362 | #define SWIGTYPE_p_wxPaintEvent swig_types[21] | |
1363 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[22] | |
1364 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[23] | |
1365 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24] | |
1366 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[25] | |
1367 | #define SWIGTYPE_p_wxControl swig_types[26] | |
1368 | #define SWIGTYPE_p_wxFont swig_types[27] | |
1369 | #define SWIGTYPE_p_wxMenuBarBase swig_types[28] | |
1370 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[29] | |
1371 | #define SWIGTYPE_p_wxFSFile swig_types[30] | |
1372 | #define SWIGTYPE_p_wxCaret swig_types[31] | |
1373 | #define SWIGTYPE_ptrdiff_t swig_types[32] | |
1374 | #define SWIGTYPE_std__ptrdiff_t swig_types[33] | |
1375 | #define SWIGTYPE_p_wxRegion swig_types[34] | |
1376 | #define SWIGTYPE_p_wxPoint2D swig_types[35] | |
1377 | #define SWIGTYPE_p_int swig_types[36] | |
1378 | #define SWIGTYPE_p_wxSize swig_types[37] | |
1379 | #define SWIGTYPE_p_wxDC swig_types[38] | |
1380 | #define SWIGTYPE_p_wxPySizer swig_types[39] | |
1381 | #define SWIGTYPE_p_wxVisualAttributes swig_types[40] | |
1382 | #define SWIGTYPE_p_wxNotifyEvent swig_types[41] | |
1383 | #define SWIGTYPE_p_wxPyEvent swig_types[42] | |
1384 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[43] | |
1385 | #define SWIGTYPE_p_form_ops_t swig_types[44] | |
1386 | #define SWIGTYPE_p_wxAppTraits swig_types[45] | |
1387 | #define SWIGTYPE_p_wxArrayString swig_types[46] | |
1388 | #define SWIGTYPE_p_wxShowEvent swig_types[47] | |
1389 | #define SWIGTYPE_p_wxToolTip swig_types[48] | |
1390 | #define SWIGTYPE_p_wxMoveEvent swig_types[49] | |
1391 | #define SWIGTYPE_p_wxSizeEvent swig_types[50] | |
1392 | #define SWIGTYPE_p_wxActivateEvent swig_types[51] | |
1393 | #define SWIGTYPE_p_wxIconizeEvent swig_types[52] | |
1394 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[53] | |
1395 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[54] | |
1396 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[55] | |
1397 | #define SWIGTYPE_p_wxIdleEvent swig_types[56] | |
1398 | #define SWIGTYPE_p_wxDateEvent swig_types[57] | |
1399 | #define SWIGTYPE_p_wxMenuItem swig_types[58] | |
1400 | #define SWIGTYPE_p_wxStaticBox swig_types[59] | |
1401 | #define SWIGTYPE_p_long swig_types[60] | |
1402 | #define SWIGTYPE_p_wxDuplexMode swig_types[61] | |
1403 | #define SWIGTYPE_p_wxTIFFHandler swig_types[62] | |
1404 | #define SWIGTYPE_p_wxXPMHandler swig_types[63] | |
1405 | #define SWIGTYPE_p_wxPNMHandler swig_types[64] | |
1406 | #define SWIGTYPE_p_wxJPEGHandler swig_types[65] | |
1407 | #define SWIGTYPE_p_wxPCXHandler swig_types[66] | |
1408 | #define SWIGTYPE_p_wxGIFHandler swig_types[67] | |
1409 | #define SWIGTYPE_p_wxPNGHandler swig_types[68] | |
1410 | #define SWIGTYPE_p_wxANIHandler swig_types[69] | |
1411 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[70] | |
1412 | #define SWIGTYPE_p_wxZipFSHandler swig_types[71] | |
1413 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[72] | |
1414 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[73] | |
1415 | #define SWIGTYPE_p_wxEvtHandler swig_types[74] | |
1416 | #define SWIGTYPE_p_wxCURHandler swig_types[75] | |
1417 | #define SWIGTYPE_p_wxICOHandler swig_types[76] | |
1418 | #define SWIGTYPE_p_wxBMPHandler swig_types[77] | |
1419 | #define SWIGTYPE_p_wxImageHandler swig_types[78] | |
1420 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[79] | |
1421 | #define SWIGTYPE_p_wxRect swig_types[80] | |
1422 | #define SWIGTYPE_p_wxButton swig_types[81] | |
1423 | #define SWIGTYPE_p_wxGBSpan swig_types[82] | |
1424 | #define SWIGTYPE_p_wxPropagateOnce swig_types[83] | |
1425 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[84] | |
1426 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[85] | |
1427 | #define SWIGTYPE_p_char swig_types[86] | |
1428 | #define SWIGTYPE_p_wxGBPosition swig_types[87] | |
1429 | #define SWIGTYPE_p_wxImage swig_types[88] | |
1430 | #define SWIGTYPE_p_wxFrame swig_types[89] | |
1431 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[90] | |
1432 | #define SWIGTYPE_p_wxPaperSize swig_types[91] | |
1433 | #define SWIGTYPE_p_wxImageHistogram swig_types[92] | |
1434 | #define SWIGTYPE_p_wxPoint swig_types[93] | |
1435 | #define SWIGTYPE_p_wxCursor swig_types[94] | |
1436 | #define SWIGTYPE_p_wxObject swig_types[95] | |
1437 | #define SWIGTYPE_p_wxInputStream swig_types[96] | |
1438 | #define SWIGTYPE_p_wxOutputStream swig_types[97] | |
1439 | #define SWIGTYPE_p_wxPyInputStream swig_types[98] | |
1440 | #define SWIGTYPE_p_wxDateTime swig_types[99] | |
1441 | #define SWIGTYPE_p_wxKeyEvent swig_types[100] | |
1442 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[101] | |
1443 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[102] | |
1444 | #define SWIGTYPE_p_unsigned_long swig_types[103] | |
1445 | #define SWIGTYPE_p_wxWindow swig_types[104] | |
1446 | #define SWIGTYPE_p_wxMenuBar swig_types[105] | |
1447 | #define SWIGTYPE_p_wxFileSystem swig_types[106] | |
1448 | #define SWIGTYPE_p_wxBitmap swig_types[107] | |
1449 | #define SWIGTYPE_unsigned_int swig_types[108] | |
1450 | #define SWIGTYPE_p_unsigned_int swig_types[109] | |
1451 | #define SWIGTYPE_p_wxMenuEvent swig_types[110] | |
1452 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[111] | |
1453 | #define SWIGTYPE_p_unsigned_char swig_types[112] | |
1454 | #define SWIGTYPE_p_wxEraseEvent swig_types[113] | |
1455 | #define SWIGTYPE_p_wxMouseEvent swig_types[114] | |
1456 | #define SWIGTYPE_p_wxCloseEvent swig_types[115] | |
1457 | #define SWIGTYPE_p_wxPyApp swig_types[116] | |
1458 | #define SWIGTYPE_p_wxCommandEvent swig_types[117] | |
1459 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[118] | |
1460 | #define SWIGTYPE_p_wxPyDropTarget swig_types[119] | |
1461 | #define SWIGTYPE_p_wxQuantize swig_types[120] | |
53aa7709 | 1462 | #define SWIGTYPE_p_wxFocusEvent swig_types[121] |
ea939623 RD |
1463 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[122] |
1464 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[123] | |
1465 | #define SWIGTYPE_p_wxControlWithItems swig_types[124] | |
1466 | #define SWIGTYPE_p_wxColour swig_types[125] | |
1467 | #define SWIGTYPE_p_wxValidator swig_types[126] | |
1468 | #define SWIGTYPE_p_wxPyValidator swig_types[127] | |
1469 | static swig_type_info *swig_types[129]; | |
d55e5bfc RD |
1470 | |
1471 | /* -------- TYPES TABLE (END) -------- */ | |
1472 | ||
1473 | ||
1474 | /*----------------------------------------------- | |
1475 | @(target):= _core_.so | |
1476 | ------------------------------------------------*/ | |
1477 | #define SWIG_init init_core_ | |
1478 | ||
1479 | #define SWIG_name "_core_" | |
1480 | ||
d55e5bfc RD |
1481 | #include "wx/wxPython/wxPython_int.h" |
1482 | #include "wx/wxPython/pyclasses.h" | |
1483 | ||
1484 | ||
1485 | #ifndef wxPyUSE_EXPORT | |
1486 | // Helper functions for dealing with SWIG objects and such. These are | |
1487 | // located here so they know about the SWIG types and functions declared | |
1488 | // in the wrapper code. | |
1489 | ||
1490 | #include <wx/hashmap.h> | |
1491 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
1492 | ||
1493 | ||
1494 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
1495 | // name of a class either looks up the type info in the cache, or scans the | |
1496 | // SWIG tables for it. | |
1497 | extern PyObject* wxPyPtrTypeMap; | |
1498 | static | |
1499 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
1500 | ||
1501 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
1502 | ||
1503 | if (typeInfoCache == NULL) | |
1504 | typeInfoCache = new wxPyTypeInfoHashMap; | |
1505 | ||
1506 | wxString name(className); | |
1507 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
1508 | ||
1509 | if (! swigType) { | |
1510 | // it wasn't in the cache, so look it up from SWIG | |
1511 | name.Append(wxT(" *")); | |
093d3ff1 | 1512 | swigType = SWIG_TypeQuery(name.mb_str()); |
d55e5bfc RD |
1513 | |
1514 | // if it still wasn't found, try looking for a mapped name | |
1515 | if (!swigType) { | |
1516 | PyObject* item; | |
1517 | name = className; | |
1518 | ||
1519 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
1520 | (char*)(const char*)name.mbc_str())) != NULL) { | |
1521 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
1522 | name.Append(wxT(" *")); | |
093d3ff1 | 1523 | swigType = SWIG_TypeQuery(name.mb_str()); |
d55e5bfc RD |
1524 | } |
1525 | } | |
1526 | if (swigType) { | |
1527 | // and add it to the map if found | |
1528 | (*typeInfoCache)[className] = swigType; | |
1529 | } | |
1530 | } | |
1531 | return swigType; | |
1532 | } | |
1533 | ||
1534 | ||
1535 | // Check if a class name is a type known to SWIG | |
1536 | bool wxPyCheckSwigType(const wxChar* className) { | |
1537 | ||
1538 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1539 | return swigType != NULL; | |
1540 | } | |
1541 | ||
1542 | ||
1543 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
1544 | // object for it. | |
1545 | PyObject* wxPyConstructObject(void* ptr, | |
1546 | const wxChar* className, | |
1547 | int setThisOwn) { | |
1548 | ||
1549 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1550 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
1551 | ||
1552 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
1553 | } | |
1554 | ||
1555 | ||
1556 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
1557 | // Ensures that the proxy object is of the specified (or derived) type. If | |
1558 | // not able to perform the conversion then a Python exception is set and the | |
1559 | // error should be handled properly in the caller. Returns True on success. | |
1560 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, | |
1561 | const wxChar* className) { | |
1562 | ||
1563 | swig_type_info* swigType = wxPyFindSwigType(className); | |
ae8162c8 | 1564 | wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr")); |
d55e5bfc RD |
1565 | |
1566 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
1567 | } | |
1568 | ||
1569 | ||
1570 | // Make a SWIGified pointer object suitable for a .this attribute | |
1571 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
1572 | ||
1573 | PyObject* robj = NULL; | |
1574 | ||
1575 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1576 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
1577 | ||
1578 | #ifdef SWIG_COBJECT_TYPES | |
093d3ff1 | 1579 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)swigType->name); |
d55e5bfc RD |
1580 | #else |
1581 | { | |
1582 | char result[1024]; | |
093d3ff1 RD |
1583 | robj = SWIG_PackVoidPtr(result, ptr, swigType->name, sizeof(result)) ? |
1584 | PyString_FromString(result) : 0; | |
1585 | } | |
d55e5bfc RD |
1586 | #endif |
1587 | ||
1588 | return robj; | |
1589 | } | |
1590 | ||
1591 | ||
1592 | ||
1593 | ||
1594 | // Export a C API in a struct. Other modules will be able to load this from | |
1595 | // the wx._core_ module and will then have safe access to these functions, | |
1596 | // even if they are located in another shared library. | |
1597 | static wxPyCoreAPI API = { | |
1598 | ||
d55e5bfc RD |
1599 | wxPyCheckSwigType, |
1600 | wxPyConstructObject, | |
1601 | wxPyConvertSwigPtr, | |
1602 | wxPyMakeSwigPtr, | |
1603 | ||
1604 | wxPyBeginAllowThreads, | |
1605 | wxPyEndAllowThreads, | |
1606 | wxPyBeginBlockThreads, | |
1607 | wxPyEndBlockThreads, | |
1608 | ||
1609 | wxPy_ConvertList, | |
1610 | ||
1611 | wxString_in_helper, | |
1612 | Py2wxString, | |
1613 | wx2PyString, | |
1614 | ||
1615 | byte_LIST_helper, | |
1616 | int_LIST_helper, | |
1617 | long_LIST_helper, | |
1618 | string_LIST_helper, | |
1619 | wxPoint_LIST_helper, | |
1620 | wxBitmap_LIST_helper, | |
1621 | wxString_LIST_helper, | |
1622 | wxAcceleratorEntry_LIST_helper, | |
1623 | ||
1624 | wxSize_helper, | |
1625 | wxPoint_helper, | |
1626 | wxRealPoint_helper, | |
1627 | wxRect_helper, | |
1628 | wxColour_helper, | |
1629 | wxPoint2D_helper, | |
1630 | ||
1631 | wxPySimple_typecheck, | |
1632 | wxColour_typecheck, | |
1633 | ||
1634 | wxPyCBH_setCallbackInfo, | |
1635 | wxPyCBH_findCallback, | |
1636 | wxPyCBH_callCallback, | |
1637 | wxPyCBH_callCallbackObj, | |
1638 | wxPyCBH_delete, | |
1639 | ||
1640 | wxPyMake_wxObject, | |
1641 | wxPyMake_wxSizer, | |
1642 | wxPyPtrTypeMap_Add, | |
1643 | wxPy2int_seq_helper, | |
1644 | wxPy4int_seq_helper, | |
1645 | wxArrayString2PyList_helper, | |
1646 | wxArrayInt2PyList_helper, | |
1647 | ||
1648 | wxPyClientData_dtor, | |
1649 | wxPyUserData_dtor, | |
1650 | wxPyOORClientData_dtor, | |
1651 | ||
1652 | wxPyCBInputStream_create, | |
e2950dbb RD |
1653 | wxPyCBInputStream_copy, |
1654 | ||
d55e5bfc | 1655 | wxPyInstance_Check, |
0439c23b RD |
1656 | wxPySwigInstance_Check, |
1657 | ||
1658 | wxPyCheckForApp | |
d55e5bfc RD |
1659 | |
1660 | }; | |
1661 | ||
1662 | #endif | |
1663 | ||
1664 | ||
fef4c27a RD |
1665 | #if !WXWIN_COMPATIBILITY_2_4 |
1666 | #define wxHIDE_READONLY 0 | |
1667 | #endif | |
1668 | ||
1669 | ||
093d3ff1 RD |
1670 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
1671 | #define SWIG_From_int PyInt_FromLong | |
1672 | /*@@*/ | |
1673 | ||
1674 | ||
d55e5bfc RD |
1675 | #if ! wxUSE_HOTKEY |
1676 | enum wxHotkeyModifier | |
1677 | { | |
1678 | wxMOD_NONE = 0, | |
1679 | wxMOD_ALT = 1, | |
1680 | wxMOD_CONTROL = 2, | |
1681 | wxMOD_SHIFT = 4, | |
1682 | wxMOD_WIN = 8 | |
1683 | }; | |
1684 | #define wxEVT_HOTKEY 9999 | |
1685 | #endif | |
1686 | ||
1687 | static const wxString wxPyEmptyString(wxEmptyString); | |
093d3ff1 | 1688 | static wxString wxObject_GetClassName(wxObject *self){ |
d55e5bfc RD |
1689 | return self->GetClassInfo()->GetClassName(); |
1690 | } | |
093d3ff1 | 1691 | static void wxObject_Destroy(wxObject *self){ |
d55e5bfc RD |
1692 | delete self; |
1693 | } | |
1694 | ||
1695 | #ifndef __WXMAC__ | |
1696 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
1697 | #endif | |
1698 | ||
1699 | ||
1700 | #include <limits.h> | |
1701 | ||
1702 | ||
093d3ff1 | 1703 | SWIGINTERN int |
c32bde28 RD |
1704 | SWIG_CheckLongInRange(long value, long min_value, long max_value, |
1705 | const char *errmsg) | |
d55e5bfc | 1706 | { |
c32bde28 RD |
1707 | if (value < min_value) { |
1708 | if (errmsg) { | |
1709 | PyErr_Format(PyExc_OverflowError, | |
1710 | "value %ld is less than '%s' minimum %ld", | |
1711 | value, errmsg, min_value); | |
1712 | } | |
1713 | return 0; | |
1714 | } else if (value > max_value) { | |
1715 | if (errmsg) { | |
1716 | PyErr_Format(PyExc_OverflowError, | |
1717 | "value %ld is greater than '%s' maximum %ld", | |
1718 | value, errmsg, max_value); | |
d55e5bfc | 1719 | } |
c32bde28 | 1720 | return 0; |
d55e5bfc | 1721 | } |
c32bde28 | 1722 | return 1; |
d55e5bfc RD |
1723 | } |
1724 | ||
1725 | ||
093d3ff1 | 1726 | SWIGINTERN int |
c32bde28 | 1727 | SWIG_AsVal_long(PyObject* obj, long* val) |
d55e5bfc | 1728 | { |
c32bde28 RD |
1729 | if (PyNumber_Check(obj)) { |
1730 | if (val) *val = PyInt_AsLong(obj); | |
1731 | return 1; | |
1732 | } | |
d55e5bfc | 1733 | else { |
093d3ff1 | 1734 | SWIG_type_error("number", obj); |
d55e5bfc | 1735 | } |
c32bde28 | 1736 | return 0; |
d55e5bfc RD |
1737 | } |
1738 | ||
1739 | ||
1740 | #if INT_MAX != LONG_MAX | |
093d3ff1 | 1741 | SWIGINTERN int |
c32bde28 | 1742 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 1743 | { |
093d3ff1 | 1744 | const char* errmsg = val ? "int" : (char*)0; |
c32bde28 RD |
1745 | long v; |
1746 | if (SWIG_AsVal_long(obj, &v)) { | |
1747 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
093d3ff1 | 1748 | if (val) *val = (int)(v); |
c32bde28 RD |
1749 | return 1; |
1750 | } else { | |
1751 | return 0; | |
1752 | } | |
1753 | } else { | |
1754 | PyErr_Clear(); | |
1755 | } | |
1756 | if (val) { | |
093d3ff1 | 1757 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
1758 | } |
1759 | return 0; | |
d55e5bfc RD |
1760 | } |
1761 | #else | |
093d3ff1 | 1762 | SWIGINTERNSHORT int |
c32bde28 RD |
1763 | SWIG_AsVal_int(PyObject *obj, int *val) |
1764 | { | |
1765 | return SWIG_AsVal_long(obj,(long*)val); | |
1766 | } | |
d55e5bfc RD |
1767 | #endif |
1768 | ||
1769 | ||
093d3ff1 | 1770 | SWIGINTERNSHORT int |
c32bde28 | 1771 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 1772 | { |
c32bde28 RD |
1773 | int v; |
1774 | if (!SWIG_AsVal_int(obj, &v)) { | |
1775 | /* | |
093d3ff1 | 1776 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1777 | */ |
1778 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 1779 | } |
c32bde28 RD |
1780 | return v; |
1781 | } | |
1782 | ||
1783 | ||
093d3ff1 | 1784 | SWIGINTERNSHORT int |
c32bde28 RD |
1785 | SWIG_Check_int(PyObject* obj) |
1786 | { | |
1787 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
1788 | } |
1789 | ||
093d3ff1 | 1790 | static PyObject *wxSize_Get(wxSize *self){ |
5a446332 | 1791 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
1792 | PyObject* tup = PyTuple_New(2); |
1793 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1794 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1795 | wxPyEndBlockThreads(blocked); | |
1796 | return tup; | |
1797 | } | |
1798 | ||
093d3ff1 | 1799 | SWIGINTERN int |
c32bde28 | 1800 | SWIG_AsVal_double(PyObject *obj, double* val) |
d55e5bfc | 1801 | { |
c32bde28 RD |
1802 | if (PyNumber_Check(obj)) { |
1803 | if (val) *val = PyFloat_AsDouble(obj); | |
1804 | return 1; | |
1805 | } | |
d55e5bfc | 1806 | else { |
093d3ff1 | 1807 | SWIG_type_error("number", obj); |
d55e5bfc | 1808 | } |
c32bde28 | 1809 | return 0; |
d55e5bfc RD |
1810 | } |
1811 | ||
1812 | ||
093d3ff1 | 1813 | SWIGINTERNSHORT double |
c32bde28 | 1814 | SWIG_As_double(PyObject* obj) |
d55e5bfc | 1815 | { |
c32bde28 RD |
1816 | double v; |
1817 | if (!SWIG_AsVal_double(obj, &v)) { | |
1818 | /* | |
093d3ff1 | 1819 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1820 | */ |
1821 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 1822 | } |
c32bde28 RD |
1823 | return v; |
1824 | } | |
1825 | ||
1826 | ||
093d3ff1 | 1827 | SWIGINTERNSHORT int |
c32bde28 RD |
1828 | SWIG_Check_double(PyObject* obj) |
1829 | { | |
1830 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
1831 | } |
1832 | ||
093d3ff1 RD |
1833 | |
1834 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
1835 | #define SWIG_From_double PyFloat_FromDouble | |
1836 | /*@@*/ | |
1837 | ||
1838 | static void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
d55e5bfc RD |
1839 | self->x = x; |
1840 | self->y = y; | |
1841 | } | |
093d3ff1 | 1842 | static PyObject *wxRealPoint_Get(wxRealPoint *self){ |
5a446332 | 1843 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
1844 | PyObject* tup = PyTuple_New(2); |
1845 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
1846 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
1847 | wxPyEndBlockThreads(blocked); | |
1848 | return tup; | |
1849 | } | |
1850 | ||
093d3ff1 | 1851 | SWIGINTERNSHORT long |
c32bde28 | 1852 | SWIG_As_long(PyObject* obj) |
d55e5bfc | 1853 | { |
c32bde28 RD |
1854 | long v; |
1855 | if (!SWIG_AsVal_long(obj, &v)) { | |
1856 | /* | |
093d3ff1 | 1857 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1858 | */ |
1859 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 1860 | } |
c32bde28 RD |
1861 | return v; |
1862 | } | |
1863 | ||
1864 | ||
093d3ff1 | 1865 | SWIGINTERNSHORT int |
c32bde28 RD |
1866 | SWIG_Check_long(PyObject* obj) |
1867 | { | |
1868 | return SWIG_AsVal_long(obj, (long*)0); | |
d55e5bfc RD |
1869 | } |
1870 | ||
093d3ff1 | 1871 | static void wxPoint_Set(wxPoint *self,long x,long y){ |
d55e5bfc RD |
1872 | self->x = x; |
1873 | self->y = y; | |
1874 | } | |
093d3ff1 | 1875 | static PyObject *wxPoint_Get(wxPoint *self){ |
5a446332 | 1876 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
1877 | PyObject* tup = PyTuple_New(2); |
1878 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1879 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1880 | wxPyEndBlockThreads(blocked); | |
1881 | return tup; | |
1882 | } | |
093d3ff1 | 1883 | static void wxRect_Set(wxRect *self,int x=0,int y=0,int width=0,int height=0){ |
d55e5bfc RD |
1884 | self->x = x; |
1885 | self->y = y; | |
1886 | self->width = width; | |
1887 | self->height = height; | |
1888 | } | |
093d3ff1 | 1889 | static PyObject *wxRect_Get(wxRect *self){ |
5a446332 | 1890 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
1891 | PyObject* tup = PyTuple_New(4); |
1892 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1893 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1894 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
1895 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
1896 | wxPyEndBlockThreads(blocked); | |
1897 | return tup; | |
1898 | } | |
1899 | ||
1900 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
1901 | wxRegion reg1(*r1); | |
1902 | wxRegion reg2(*r2); | |
1903 | wxRect dest(0,0,0,0); | |
1904 | PyObject* obj; | |
1905 | ||
1906 | reg1.Intersect(reg2); | |
1907 | dest = reg1.GetBox(); | |
1908 | ||
1909 | if (dest != wxRect(0,0,0,0)) { | |
5a446332 | 1910 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1911 | wxRect* newRect = new wxRect(dest); |
ae8162c8 | 1912 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true); |
d55e5bfc RD |
1913 | wxPyEndBlockThreads(blocked); |
1914 | return obj; | |
1915 | } | |
1916 | Py_INCREF(Py_None); | |
1917 | return Py_None; | |
1918 | } | |
1919 | ||
1920 | ||
c32bde28 | 1921 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
1922 | PyObject* o2; |
1923 | PyObject* o3; | |
c32bde28 | 1924 | |
d55e5bfc RD |
1925 | if (!target) { |
1926 | target = o; | |
1927 | } else if (target == Py_None) { | |
1928 | Py_DECREF(Py_None); | |
1929 | target = o; | |
7e63a440 RD |
1930 | } else { |
1931 | if (!PyTuple_Check(target)) { | |
1932 | o2 = target; | |
1933 | target = PyTuple_New(1); | |
1934 | PyTuple_SetItem(target, 0, o2); | |
1935 | } | |
d55e5bfc RD |
1936 | o3 = PyTuple_New(1); |
1937 | PyTuple_SetItem(o3, 0, o); | |
1938 | ||
1939 | o2 = target; | |
1940 | target = PySequence_Concat(o2, o3); | |
1941 | Py_DECREF(o2); | |
1942 | Py_DECREF(o3); | |
1943 | } | |
1944 | return target; | |
7e63a440 | 1945 | } |
d55e5bfc | 1946 | |
c32bde28 | 1947 | |
093d3ff1 | 1948 | static void wxPoint2D_Set(wxPoint2D *self,double x=0,double y=0){ |
d55e5bfc RD |
1949 | self->m_x = x; |
1950 | self->m_y = y; | |
1951 | } | |
093d3ff1 | 1952 | static PyObject *wxPoint2D_Get(wxPoint2D *self){ |
5a446332 | 1953 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
1954 | PyObject* tup = PyTuple_New(2); |
1955 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
1956 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
1957 | wxPyEndBlockThreads(blocked); | |
1958 | return tup; | |
1959 | } | |
1960 | ||
1961 | #include "wx/wxPython/pyistream.h" | |
1962 | ||
093d3ff1 | 1963 | static wxPyInputStream *new_wxPyInputStream(PyObject *p){ |
d55e5bfc RD |
1964 | wxInputStream* wxis = wxPyCBInputStream::create(p); |
1965 | if (wxis) | |
1966 | return new wxPyInputStream(wxis); | |
1967 | else | |
1968 | return NULL; | |
1969 | } | |
1970 | ||
093d3ff1 | 1971 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1972 | SWIG_From_char(char c) |
d55e5bfc RD |
1973 | { |
1974 | return PyString_FromStringAndSize(&c,1); | |
1975 | } | |
1976 | ||
1977 | ||
093d3ff1 | 1978 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1979 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
1980 | { |
1981 | return (value > LONG_MAX) ? | |
1982 | PyLong_FromUnsignedLong(value) | |
093d3ff1 | 1983 | : PyInt_FromLong((long)(value)); |
d55e5bfc RD |
1984 | } |
1985 | ||
1986 | ||
c32bde28 | 1987 | /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */ |
093d3ff1 | 1988 | SWIGINTERN int |
c32bde28 | 1989 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize) |
d55e5bfc RD |
1990 | { |
1991 | static swig_type_info* pchar_info = 0; | |
c32bde28 | 1992 | char* vptr = 0; |
d55e5bfc | 1993 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); |
c32bde28 RD |
1994 | if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) { |
1995 | if (cptr) *cptr = vptr; | |
1996 | if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; | |
1997 | return SWIG_OLDOBJ; | |
d55e5bfc | 1998 | } else { |
093d3ff1 | 1999 | PyErr_Clear(); |
c32bde28 RD |
2000 | if (PyString_Check(obj)) { |
2001 | if (cptr) { | |
2002 | *cptr = PyString_AS_STRING(obj); | |
2003 | if (psize) { | |
2004 | *psize = PyString_GET_SIZE(obj) + 1; | |
2005 | } | |
2006 | } | |
2007 | return SWIG_PYSTR; | |
2008 | } | |
d55e5bfc | 2009 | } |
c32bde28 | 2010 | if (cptr) { |
093d3ff1 | 2011 | SWIG_type_error("char *", obj); |
c32bde28 RD |
2012 | } |
2013 | return 0; | |
d55e5bfc RD |
2014 | } |
2015 | ||
2016 | ||
093d3ff1 | 2017 | SWIGINTERN int |
c32bde28 | 2018 | SWIG_AsCharArray(PyObject *obj, char *val, size_t size) |
d55e5bfc RD |
2019 | { |
2020 | char* cptr; size_t csize; | |
c32bde28 RD |
2021 | if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) { |
2022 | /* in C you can do: | |
2023 | ||
d55e5bfc RD |
2024 | char x[5] = "hello"; |
2025 | ||
2026 | ie, assing the array using an extra '0' char. | |
2027 | */ | |
d55e5bfc | 2028 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; |
c32bde28 RD |
2029 | if (csize <= size) { |
2030 | if (val) { | |
2031 | if (csize) memcpy(val, cptr, csize); | |
2032 | if (csize < size) memset(val + csize, 0, size - csize); | |
2033 | } | |
2034 | return 1; | |
d55e5bfc RD |
2035 | } |
2036 | } | |
c32bde28 | 2037 | if (val) { |
093d3ff1 RD |
2038 | PyErr_Format(PyExc_TypeError, |
2039 | "a char array of maximum size %lu is expected", | |
2040 | (unsigned long) size); | |
c32bde28 RD |
2041 | } |
2042 | return 0; | |
d55e5bfc RD |
2043 | } |
2044 | ||
2045 | ||
093d3ff1 | 2046 | SWIGINTERN int |
c32bde28 RD |
2047 | SWIG_AsVal_char(PyObject *obj, char *val) |
2048 | { | |
093d3ff1 | 2049 | const char* errmsg = val ? "char" : (char*)0; |
c32bde28 RD |
2050 | long v; |
2051 | if (SWIG_AsVal_long(obj, &v)) { | |
2052 | if (SWIG_CheckLongInRange(v, CHAR_MIN,CHAR_MAX, errmsg)) { | |
093d3ff1 | 2053 | if (val) *val = (char)(v); |
c32bde28 RD |
2054 | return 1; |
2055 | } else { | |
2056 | return 0; | |
2057 | } | |
2058 | } else { | |
2059 | PyErr_Clear(); | |
2060 | return SWIG_AsCharArray(obj, val, 1); | |
2061 | } | |
2062 | } | |
2063 | ||
2064 | ||
093d3ff1 | 2065 | SWIGINTERNSHORT char |
c32bde28 RD |
2066 | SWIG_As_char(PyObject* obj) |
2067 | { | |
2068 | char v; | |
2069 | if (!SWIG_AsVal_char(obj, &v)) { | |
2070 | /* | |
093d3ff1 | 2071 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2072 | */ |
2073 | memset((void*)&v, 0, sizeof(char)); | |
d55e5bfc | 2074 | } |
c32bde28 | 2075 | return v; |
d55e5bfc RD |
2076 | } |
2077 | ||
c32bde28 | 2078 | |
093d3ff1 | 2079 | SWIGINTERNSHORT int |
c32bde28 | 2080 | SWIG_Check_char(PyObject* obj) |
d55e5bfc | 2081 | { |
c32bde28 | 2082 | return SWIG_AsVal_char(obj, (char*)0); |
d55e5bfc RD |
2083 | } |
2084 | ||
093d3ff1 RD |
2085 | |
2086 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
2087 | #define SWIG_From_long PyInt_FromLong | |
2088 | /*@@*/ | |
2089 | ||
2090 | static void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
d55e5bfc RD |
2091 | // We use only strings for the streams, not unicode |
2092 | PyObject* str = PyObject_Str(obj); | |
2093 | if (! str) { | |
2094 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
2095 | return; | |
2096 | } | |
2097 | self->Write(PyString_AS_STRING(str), | |
2098 | PyString_GET_SIZE(str)); | |
2099 | Py_DECREF(str); | |
2100 | } | |
2101 | ||
2102 | #include "wx/wxPython/pyistream.h" | |
2103 | ||
2104 | ||
2105 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
2106 | { | |
2107 | public: | |
2108 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
2109 | ||
2110 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
2111 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
2112 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
2113 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
2114 | ||
2115 | wxString GetProtocol(const wxString& location) { | |
2116 | return wxFileSystemHandler::GetProtocol(location); | |
2117 | } | |
2118 | ||
2119 | wxString GetLeftLocation(const wxString& location) { | |
2120 | return wxFileSystemHandler::GetLeftLocation(location); | |
2121 | } | |
2122 | ||
2123 | wxString GetAnchor(const wxString& location) { | |
2124 | return wxFileSystemHandler::GetAnchor(location); | |
2125 | } | |
2126 | ||
2127 | wxString GetRightLocation(const wxString& location) { | |
2128 | return wxFileSystemHandler::GetRightLocation(location); | |
2129 | } | |
2130 | ||
2131 | wxString GetMimeTypeFromExt(const wxString& location) { | |
2132 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
2133 | } | |
2134 | ||
2135 | PYPRIVATE; | |
2136 | }; | |
2137 | ||
2138 | ||
2139 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
2140 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
2141 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
2142 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
2143 | ||
2144 | ||
093d3ff1 | 2145 | SWIGINTERN int |
c32bde28 | 2146 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
d55e5bfc | 2147 | { |
c32bde28 RD |
2148 | if (obj == Py_True) { |
2149 | if (val) *val = true; | |
2150 | return 1; | |
2151 | } | |
2152 | if (obj == Py_False) { | |
2153 | if (val) *val = false; | |
2154 | return 1; | |
2155 | } | |
2156 | int res = 0; | |
2157 | if (SWIG_AsVal_int(obj, &res)) { | |
093d3ff1 | 2158 | if (val) *val = res ? true : false; |
c32bde28 | 2159 | return 1; |
093d3ff1 RD |
2160 | } else { |
2161 | PyErr_Clear(); | |
2162 | } | |
c32bde28 | 2163 | if (val) { |
093d3ff1 | 2164 | SWIG_type_error("bool", obj); |
c32bde28 RD |
2165 | } |
2166 | return 0; | |
d55e5bfc RD |
2167 | } |
2168 | ||
2169 | ||
093d3ff1 | 2170 | SWIGINTERNSHORT bool |
c32bde28 | 2171 | SWIG_As_bool(PyObject* obj) |
d55e5bfc | 2172 | { |
c32bde28 RD |
2173 | bool v; |
2174 | if (!SWIG_AsVal_bool(obj, &v)) { | |
2175 | /* | |
093d3ff1 | 2176 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2177 | */ |
2178 | memset((void*)&v, 0, sizeof(bool)); | |
d55e5bfc | 2179 | } |
c32bde28 RD |
2180 | return v; |
2181 | } | |
2182 | ||
2183 | ||
093d3ff1 | 2184 | SWIGINTERNSHORT int |
c32bde28 RD |
2185 | SWIG_Check_bool(PyObject* obj) |
2186 | { | |
2187 | return SWIG_AsVal_bool(obj, (bool*)0); | |
d55e5bfc RD |
2188 | } |
2189 | ||
093d3ff1 | 2190 | static wxString FileSystem_URLToFileName(wxString const &url){ |
ae8162c8 RD |
2191 | wxFileName fname = wxFileSystem::URLToFileName(url); |
2192 | return fname.GetFullPath(); | |
2193 | } | |
d55e5bfc RD |
2194 | |
2195 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
2196 | wxImage& image, | |
2197 | long type) { | |
2198 | wxMemoryFSHandler::AddFile(filename, image, type); | |
2199 | } | |
2200 | ||
2201 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
2202 | const wxBitmap& bitmap, | |
2203 | long type) { | |
2204 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
2205 | } | |
2206 | ||
2207 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
2208 | PyObject* data) { | |
ae8162c8 RD |
2209 | if (! PyString_Check(data)) { |
2210 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
2211 | "Expected string object")); | |
2212 | return; | |
2213 | } | |
2214 | ||
5a446332 | 2215 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 RD |
2216 | void* ptr = (void*)PyString_AsString(data); |
2217 | size_t size = PyString_Size(data); | |
2218 | wxPyEndBlockThreads(blocked); | |
2219 | ||
2220 | wxMemoryFSHandler::AddFile(filename, ptr, size); | |
d55e5bfc RD |
2221 | } |
2222 | ||
2223 | ||
2224 | #include "wx/wxPython/pyistream.h" | |
2225 | ||
2226 | ||
093d3ff1 | 2227 | SWIGINTERN int |
c32bde28 | 2228 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
d55e5bfc | 2229 | { |
c32bde28 RD |
2230 | long v = 0; |
2231 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
093d3ff1 | 2232 | SWIG_type_error("unsigned number", obj); |
d55e5bfc | 2233 | } |
c32bde28 RD |
2234 | else if (val) |
2235 | *val = (unsigned long)v; | |
2236 | return 1; | |
d55e5bfc RD |
2237 | } |
2238 | ||
2239 | ||
093d3ff1 | 2240 | SWIGINTERNSHORT int |
c32bde28 RD |
2241 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
2242 | unsigned long max_value, | |
2243 | const char *errmsg) | |
d55e5bfc | 2244 | { |
c32bde28 RD |
2245 | if (value > max_value) { |
2246 | if (errmsg) { | |
2247 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 2248 | "value %lu is greater than '%s' minimum %lu", |
c32bde28 | 2249 | value, errmsg, max_value); |
d55e5bfc | 2250 | } |
c32bde28 | 2251 | return 0; |
d55e5bfc | 2252 | } |
c32bde28 RD |
2253 | return 1; |
2254 | } | |
d55e5bfc RD |
2255 | |
2256 | ||
093d3ff1 | 2257 | SWIGINTERN int |
c32bde28 | 2258 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) |
d55e5bfc | 2259 | { |
093d3ff1 | 2260 | const char* errmsg = val ? "unsigned char" : (char*)0; |
c32bde28 RD |
2261 | unsigned long v; |
2262 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2263 | if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) { | |
093d3ff1 | 2264 | if (val) *val = (unsigned char)(v); |
c32bde28 RD |
2265 | return 1; |
2266 | } else { | |
2267 | return 0; | |
2268 | } | |
2269 | } else { | |
2270 | PyErr_Clear(); | |
2271 | } | |
2272 | if (val) { | |
093d3ff1 | 2273 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2274 | } |
2275 | return 0; | |
d55e5bfc RD |
2276 | } |
2277 | ||
2278 | ||
093d3ff1 | 2279 | SWIGINTERNSHORT unsigned char |
c32bde28 | 2280 | SWIG_As_unsigned_SS_char(PyObject* obj) |
d55e5bfc | 2281 | { |
c32bde28 RD |
2282 | unsigned char v; |
2283 | if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) { | |
2284 | /* | |
093d3ff1 | 2285 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2286 | */ |
2287 | memset((void*)&v, 0, sizeof(unsigned char)); | |
d55e5bfc | 2288 | } |
c32bde28 | 2289 | return v; |
d55e5bfc RD |
2290 | } |
2291 | ||
c32bde28 | 2292 | |
093d3ff1 | 2293 | SWIGINTERNSHORT int |
c32bde28 RD |
2294 | SWIG_Check_unsigned_SS_char(PyObject* obj) |
2295 | { | |
2296 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); | |
2297 | } | |
2298 | ||
2299 | ||
093d3ff1 RD |
2300 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
2301 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
2302 | /*@@*/ | |
2303 | ||
2304 | ||
f1cbd8fa RD |
2305 | |
2306 | SWIGINTERNSHORT unsigned long | |
2307 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
2308 | { | |
2309 | unsigned long v; | |
2310 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2311 | /* | |
2312 | this is needed to make valgrind/purify happier. | |
2313 | */ | |
2314 | memset((void*)&v, 0, sizeof(unsigned long)); | |
2315 | } | |
2316 | return v; | |
2317 | } | |
2318 | ||
2319 | ||
2320 | SWIGINTERNSHORT int | |
2321 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
2322 | { | |
2323 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
2324 | } | |
2325 | ||
2326 | static unsigned long wxImageHistogram_GetCount(wxImageHistogram *self,unsigned long key){ | |
2327 | wxImageHistogramEntry e = (*self)[key]; | |
2328 | return e.value; | |
2329 | } | |
2330 | static unsigned long wxImageHistogram_GetCountRGB(wxImageHistogram *self,unsigned char r,unsigned char g,unsigned char b){ | |
2331 | unsigned long key = wxImageHistogram::MakeKey(r, g, b); | |
2332 | wxImageHistogramEntry e = (*self)[key]; | |
2333 | return e.value; | |
2334 | } | |
2335 | static unsigned long wxImageHistogram_GetCountColour(wxImageHistogram *self,wxColour const &colour){ | |
2336 | unsigned long key = wxImageHistogram::MakeKey(colour.Red(), | |
2337 | colour.Green(), | |
2338 | colour.Blue()); | |
2339 | wxImageHistogramEntry e = (*self)[key]; | |
2340 | return e.value; | |
2341 | } | |
ea939623 RD |
2342 | |
2343 | typedef unsigned char* buffer; | |
2344 | ||
093d3ff1 | 2345 | static wxImage *new_wxImage(int width=0,int height=0,bool clear=true){ |
ea939623 RD |
2346 | if (width > 0 && height > 0) |
2347 | return new wxImage(width, height, clear); | |
2348 | else | |
2349 | return new wxImage; | |
d55e5bfc | 2350 | } |
ea939623 RD |
2351 | static wxImage *new_wxImage(wxBitmap const &bitmap){ |
2352 | return new wxImage(bitmap.ConvertToImage()); | |
c9c2cf70 | 2353 | } |
ea939623 RD |
2354 | static wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE){ |
2355 | if (DATASIZE != width*height*3) { | |
2356 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2357 | return NULL; | |
2358 | } | |
2359 | ||
2360 | // Copy the source data so the wxImage can clean it up later | |
2361 | buffer copy = (buffer)malloc(DATASIZE); | |
2362 | if (copy == NULL) { | |
2363 | wxPyBLOCK_THREADS(PyErr_NoMemory()); | |
2364 | return NULL; | |
2365 | } | |
2366 | memcpy(copy, data, DATASIZE); | |
2367 | return new wxImage(width, height, copy, false); | |
c9c2cf70 | 2368 | } |
ea939623 RD |
2369 | static wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE,buffer alpha,int ALPHASIZE){ |
2370 | if (DATASIZE != width*height*3) { | |
2371 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2372 | return NULL; | |
2373 | } | |
2374 | if (ALPHASIZE != width*height) { | |
2375 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
2376 | return NULL; | |
2377 | } | |
2378 | ||
2379 | // Copy the source data so the wxImage can clean it up later | |
2380 | buffer dcopy = (buffer)malloc(DATASIZE); | |
2381 | if (dcopy == NULL) { | |
2382 | wxPyBLOCK_THREADS(PyErr_NoMemory()); | |
2383 | return NULL; | |
2384 | } | |
2385 | memcpy(dcopy, data, DATASIZE); | |
c9c2cf70 | 2386 | |
ea939623 RD |
2387 | buffer acopy = (buffer)malloc(ALPHASIZE); |
2388 | if (acopy == NULL) { | |
2389 | wxPyBLOCK_THREADS(PyErr_NoMemory()); | |
2390 | return NULL; | |
2391 | } | |
2392 | memcpy(acopy, alpha, ALPHASIZE); | |
2393 | ||
2394 | return new wxImage(width, height, dcopy, acopy, false); | |
2395 | } | |
093d3ff1 | 2396 | static wxSize wxImage_GetSize(wxImage *self){ |
d55e5bfc RD |
2397 | wxSize size(self->GetWidth(), self->GetHeight()); |
2398 | return size; | |
2399 | } | |
093d3ff1 | 2400 | static PyObject *wxImage_GetData(wxImage *self){ |
ea939623 | 2401 | buffer data = self->GetData(); |
d55e5bfc RD |
2402 | int len = self->GetWidth() * self->GetHeight() * 3; |
2403 | PyObject* rv; | |
2404 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
2405 | return rv; | |
2406 | } | |
ea939623 RD |
2407 | static void wxImage_SetData(wxImage *self,buffer data,int DATASIZE){ |
2408 | if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) { | |
2409 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2410 | return; | |
2411 | } | |
2412 | buffer copy = (buffer)malloc(DATASIZE); | |
2413 | if (copy == NULL) { | |
2414 | wxPyBLOCK_THREADS(PyErr_NoMemory()); | |
2415 | return; | |
2416 | } | |
2417 | memcpy(copy, data, DATASIZE); | |
2418 | self->SetData(copy, false); | |
2419 | // wxImage takes ownership of copy... | |
d55e5bfc | 2420 | } |
093d3ff1 | 2421 | static PyObject *wxImage_GetDataBuffer(wxImage *self){ |
ea939623 | 2422 | buffer data = self->GetData(); |
d55e5bfc RD |
2423 | int len = self->GetWidth() * self->GetHeight() * 3; |
2424 | PyObject* rv; | |
2425 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
2426 | return rv; | |
2427 | } | |
ea939623 RD |
2428 | static void wxImage_SetDataBuffer(wxImage *self,buffer data,int DATASIZE){ |
2429 | if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) { | |
2430 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2431 | return; | |
d55e5bfc | 2432 | } |
ea939623 | 2433 | self->SetData(data, true); |
d55e5bfc | 2434 | } |
093d3ff1 | 2435 | static PyObject *wxImage_GetAlphaData(wxImage *self){ |
ea939623 | 2436 | buffer data = self->GetAlpha(); |
d55e5bfc RD |
2437 | if (! data) { |
2438 | RETURN_NONE(); | |
2439 | } else { | |
2440 | int len = self->GetWidth() * self->GetHeight(); | |
2441 | PyObject* rv; | |
2442 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
2443 | return rv; | |
2444 | } | |
2445 | } | |
ea939623 RD |
2446 | static void wxImage_SetAlphaData(wxImage *self,buffer alpha,int ALPHASIZE){ |
2447 | if (ALPHASIZE != self->GetWidth() * self->GetHeight()) { | |
2448 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
2449 | return; | |
d55e5bfc | 2450 | } |
ea939623 RD |
2451 | buffer acopy = (buffer)malloc(ALPHASIZE); |
2452 | if (acopy == NULL) { | |
2453 | wxPyBLOCK_THREADS(PyErr_NoMemory()); | |
2454 | return; | |
2455 | } | |
2456 | memcpy(acopy, alpha, ALPHASIZE); | |
2457 | self->SetAlpha(acopy, false); | |
2458 | // wxImage takes ownership of acopy... | |
d55e5bfc | 2459 | } |
093d3ff1 | 2460 | static PyObject *wxImage_GetAlphaBuffer(wxImage *self){ |
ea939623 | 2461 | buffer data = self->GetAlpha(); |
d55e5bfc RD |
2462 | int len = self->GetWidth() * self->GetHeight(); |
2463 | PyObject* rv; | |
2464 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
2465 | return rv; | |
2466 | } | |
ea939623 RD |
2467 | static void wxImage_SetAlphaBuffer(wxImage *self,buffer alpha,int ALPHASIZE){ |
2468 | if (ALPHASIZE != self->GetWidth() * self->GetHeight()) { | |
2469 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
2470 | return; | |
d55e5bfc | 2471 | } |
ea939623 | 2472 | self->SetAlpha(alpha, true); |
d55e5bfc | 2473 | } |
093d3ff1 | 2474 | static wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth=-1){ |
1fbf26be | 2475 | wxBitmap bitmap(*self, depth); |
d55e5bfc RD |
2476 | return bitmap; |
2477 | } | |
093d3ff1 | 2478 | static wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ |
d55e5bfc RD |
2479 | wxImage mono = self->ConvertToMono( red, green, blue ); |
2480 | wxBitmap bitmap( mono, 1 ); | |
2481 | return bitmap; | |
2482 | } | |
68350608 | 2483 | static const wxString wxPyIMAGE_OPTION_FILENAME(wxIMAGE_OPTION_FILENAME); |
d55e5bfc RD |
2484 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); |
2485 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
2486 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
2487 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
68350608 RD |
2488 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONX(wxIMAGE_OPTION_RESOLUTIONX); |
2489 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONY(wxIMAGE_OPTION_RESOLUTIONY); | |
d55e5bfc | 2490 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); |
24d7cbea | 2491 | static const wxString wxPyIMAGE_OPTION_QUALITY(wxIMAGE_OPTION_QUALITY); |
68350608 RD |
2492 | static const wxString wxPyIMAGE_OPTION_BITSPERSAMPLE(wxIMAGE_OPTION_BITSPERSAMPLE); |
2493 | static const wxString wxPyIMAGE_OPTION_SAMPLESPERPIXEL(wxIMAGE_OPTION_SAMPLESPERPIXEL); | |
2494 | static const wxString wxPyIMAGE_OPTION_COMPRESSION(wxIMAGE_OPTION_COMPRESSION); | |
2495 | static const wxString wxPyIMAGE_OPTION_IMAGEDESCRIPTOR(wxIMAGE_OPTION_IMAGEDESCRIPTOR); | |
b9d6a5f3 RD |
2496 | static const wxString wxPyIMAGE_OPTION_PNG_FORMAT(wxIMAGE_OPTION_PNG_FORMAT); |
2497 | static const wxString wxPyIMAGE_OPTION_PNG_BITDEPTH(wxIMAGE_OPTION_PNG_BITDEPTH); | |
c0de73ae RD |
2498 | |
2499 | #include <wx/quantize.h> | |
2500 | ||
093d3ff1 | 2501 | static bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours=236,int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE){ |
c0de73ae RD |
2502 | return wxQuantize::Quantize(src, dest, |
2503 | //NULL, // palette | |
2504 | desiredNoColours, | |
2505 | NULL, // eightBitData | |
2506 | flags); | |
2507 | } | |
093d3ff1 | 2508 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
d55e5bfc RD |
2509 | if (PyCallable_Check(func)) { |
2510 | self->Connect(id, lastId, eventType, | |
2511 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
2512 | new wxPyCallback(func)); | |
2513 | } | |
2514 | else if (func == Py_None) { | |
2515 | self->Disconnect(id, lastId, eventType, | |
2516 | (wxObjectEventFunction) | |
2517 | &wxPyCallback::EventThunker); | |
2518 | } | |
2519 | else { | |
2520 | wxPyBLOCK_THREADS( | |
2521 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
2522 | } | |
2523 | } | |
093d3ff1 | 2524 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId=-1,wxEventType eventType=wxEVT_NULL){ |
d55e5bfc RD |
2525 | return self->Disconnect(id, lastId, eventType, |
2526 | (wxObjectEventFunction) | |
2527 | &wxPyCallback::EventThunker); | |
2528 | } | |
093d3ff1 | 2529 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self,bool incref=true){ |
d55e5bfc | 2530 | if (_self && _self != Py_None) { |
093d3ff1 | 2531 | self->SetClientObject(new wxPyOORClientData(_self, incref)); |
d55e5bfc RD |
2532 | } |
2533 | else { | |
2534 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
2535 | if (data) { | |
2536 | self->SetClientObject(NULL); // This will delete it too | |
2537 | } | |
2538 | } | |
2539 | } | |
c32bde28 | 2540 | |
093d3ff1 | 2541 | static int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
d55e5bfc | 2542 | #if wxUSE_UNICODE |
19272049 | 2543 | return self->GetUnicodeKey(); |
d55e5bfc RD |
2544 | #else |
2545 | return 0; | |
2546 | #endif | |
2547 | } | |
2548 | ||
2549 | #if UINT_MAX < LONG_MAX | |
093d3ff1 | 2550 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
2551 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
2552 | /*@@*/ | |
d55e5bfc | 2553 | #else |
093d3ff1 | 2554 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
2555 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
2556 | /*@@*/ | |
d55e5bfc RD |
2557 | #endif |
2558 | ||
2559 | ||
2560 | #if UINT_MAX != ULONG_MAX | |
093d3ff1 | 2561 | SWIGINTERN int |
c32bde28 | 2562 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
d55e5bfc | 2563 | { |
093d3ff1 | 2564 | const char* errmsg = val ? "unsigned int" : (char*)0; |
c32bde28 RD |
2565 | unsigned long v; |
2566 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2567 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
093d3ff1 | 2568 | if (val) *val = (unsigned int)(v); |
c32bde28 RD |
2569 | return 1; |
2570 | } | |
2571 | } else { | |
2572 | PyErr_Clear(); | |
2573 | } | |
2574 | if (val) { | |
093d3ff1 | 2575 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2576 | } |
2577 | return 0; | |
d55e5bfc RD |
2578 | } |
2579 | #else | |
093d3ff1 | 2580 | SWIGINTERNSHORT unsigned int |
c32bde28 RD |
2581 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2582 | { | |
2583 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2584 | } | |
d55e5bfc RD |
2585 | #endif |
2586 | ||
2587 | ||
093d3ff1 | 2588 | SWIGINTERNSHORT unsigned int |
c32bde28 | 2589 | SWIG_As_unsigned_SS_int(PyObject* obj) |
d55e5bfc | 2590 | { |
c32bde28 RD |
2591 | unsigned int v; |
2592 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2593 | /* | |
093d3ff1 | 2594 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2595 | */ |
2596 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 2597 | } |
c32bde28 RD |
2598 | return v; |
2599 | } | |
2600 | ||
2601 | ||
093d3ff1 | 2602 | SWIGINTERNSHORT int |
c32bde28 RD |
2603 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
2604 | { | |
2605 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
2606 | } |
2607 | ||
093d3ff1 | 2608 | static void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
d55e5bfc RD |
2609 | self->m_size = size; |
2610 | } | |
093d3ff1 | 2611 | static PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ |
d55e5bfc RD |
2612 | int count = self->GetNumberOfFiles(); |
2613 | wxString* files = self->GetFiles(); | |
2614 | PyObject* list = PyList_New(count); | |
2615 | ||
2616 | if (!list) { | |
2617 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
2618 | return NULL; | |
2619 | } | |
2620 | ||
2621 | for (int i=0; i<count; i++) { | |
2622 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
2623 | } | |
2624 | return list; | |
2625 | } | |
2626 | ||
2627 | ||
093d3ff1 | 2628 | static wxPyApp *new_wxPyApp(){ |
d55e5bfc RD |
2629 | wxPythonApp = new wxPyApp(); |
2630 | return wxPythonApp; | |
2631 | } | |
2632 | ||
2633 | void wxApp_CleanUp() { | |
2634 | __wxPyCleanup(); | |
2635 | } | |
2636 | ||
2637 | ||
caef1a4d | 2638 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
2639 | |
2640 | ||
093d3ff1 | 2641 | SWIGINTERNSHORT int |
5cbf236d RD |
2642 | SWIG_AsCharPtr(PyObject *obj, char **val) |
2643 | { | |
093d3ff1 | 2644 | if (SWIG_AsCharPtrAndSize(obj, val, (size_t*)(0))) { |
5cbf236d RD |
2645 | return 1; |
2646 | } | |
2647 | if (val) { | |
093d3ff1 RD |
2648 | PyErr_Clear(); |
2649 | SWIG_type_error("char *", obj); | |
5cbf236d RD |
2650 | } |
2651 | return 0; | |
2652 | } | |
2653 | ||
2654 | ||
093d3ff1 | 2655 | SWIGINTERN PyObject * |
5cbf236d RD |
2656 | SWIG_FromCharPtr(const char* cptr) |
2657 | { | |
2658 | if (cptr) { | |
2659 | size_t size = strlen(cptr); | |
2660 | if (size > INT_MAX) { | |
093d3ff1 | 2661 | return SWIG_NewPointerObj((char*)(cptr), |
5cbf236d RD |
2662 | SWIG_TypeQuery("char *"), 0); |
2663 | } else { | |
2664 | if (size != 0) { | |
2665 | return PyString_FromStringAndSize(cptr, size); | |
2666 | } else { | |
2667 | return PyString_FromString(cptr); | |
2668 | } | |
2669 | } | |
2670 | } | |
2671 | Py_INCREF(Py_None); | |
2672 | return Py_None; | |
2673 | } | |
2674 | ||
2675 | ||
ae8162c8 RD |
2676 | #ifdef __WXMAC__ |
2677 | ||
2678 | // A dummy class that raises an exception if used... | |
2679 | class wxEventLoop | |
2680 | { | |
2681 | public: | |
2682 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
2683 | int Run() { return 0; } | |
2684 | void Exit(int rc = 0) {} | |
2685 | bool Pending() const { return false; } | |
2686 | bool Dispatch() { return false; } | |
2687 | bool IsRunning() const { return false; } | |
2688 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
2689 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
2690 | }; | |
2691 | ||
2692 | #else | |
2693 | ||
2694 | #include <wx/evtloop.h> | |
2695 | ||
2696 | #endif | |
2697 | ||
2698 | ||
d55e5bfc RD |
2699 | |
2700 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
093d3ff1 RD |
2701 | static wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } |
2702 | static void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } | |
2703 | static PyObject *wxWindow_GetChildren(wxWindow *self){ | |
d55e5bfc RD |
2704 | wxWindowList& list = self->GetChildren(); |
2705 | return wxPy_ConvertList(&list); | |
2706 | } | |
093d3ff1 | 2707 | static bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ |
d55e5bfc RD |
2708 | #if wxUSE_HOTKEY |
2709 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
2710 | #else | |
ae8162c8 | 2711 | return false; |
d55e5bfc RD |
2712 | #endif |
2713 | } | |
093d3ff1 | 2714 | static bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ |
d55e5bfc RD |
2715 | |
2716 | ||
2717 | ||
ae8162c8 | 2718 | return false; |
d55e5bfc RD |
2719 | |
2720 | } | |
093d3ff1 | 2721 | static long wxWindow_GetHandle(wxWindow *self){ |
d55e5bfc RD |
2722 | return wxPyGetWinHandle(self); |
2723 | } | |
093d3ff1 | 2724 | static void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
7e63a440 RD |
2725 | self->AssociateHandle((WXWidget)handle); |
2726 | } | |
d55e5bfc RD |
2727 | |
2728 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
2729 | return wxWindow::FindWindowById(id, parent); | |
2730 | } | |
2731 | ||
2732 | wxWindow* wxFindWindowByName( const wxString& name, | |
2733 | const wxWindow *parent = NULL ) { | |
2734 | return wxWindow::FindWindowByName(name, parent); | |
2735 | } | |
2736 | ||
2737 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
2738 | const wxWindow *parent = NULL ) { | |
2739 | return wxWindow::FindWindowByLabel(label, parent); | |
2740 | } | |
2741 | ||
2742 | ||
2743 | #ifdef __WXMSW__ | |
2744 | #include <wx/msw/private.h> // to get wxGetWindowId | |
2745 | #endif | |
2746 | ||
2747 | ||
2748 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
2749 | #ifdef __WXMSW__ | |
2750 | WXHWND hWnd = (WXHWND)_hWnd; | |
2751 | long id = wxGetWindowId(hWnd); | |
2752 | wxWindow* win = new wxWindow; | |
2753 | parent->AddChild(win); | |
2754 | win->SetEventHandler(win); | |
2755 | win->SetHWND(hWnd); | |
2756 | win->SetId(id); | |
2757 | win->SubclassWin(hWnd); | |
2758 | win->AdoptAttributesFromHWND(); | |
2759 | win->SetupColours(); | |
2760 | return win; | |
2761 | #else | |
2762 | wxPyRaiseNotImplemented(); | |
2763 | return NULL; | |
2764 | #endif | |
2765 | } | |
2766 | ||
2767 | ||
2768 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
2769 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
2770 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
2771 | ||
2772 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
2773 | ||
093d3ff1 RD |
2774 | static void wxMenu_Destroy(wxMenu *self){ delete self; } |
2775 | static PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
d55e5bfc RD |
2776 | wxMenuItemList& list = self->GetMenuItems(); |
2777 | return wxPy_ConvertList(&list); | |
2778 | } | |
2779 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
093d3ff1 | 2780 | static int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData=NULL){ |
d55e5bfc RD |
2781 | if (clientData) { |
2782 | wxPyClientData* data = new wxPyClientData(clientData); | |
2783 | return self->Append(item, data); | |
2784 | } else | |
2785 | return self->Append(item); | |
2786 | } | |
093d3ff1 | 2787 | static int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d55e5bfc RD |
2788 | if (clientData) { |
2789 | wxPyClientData* data = new wxPyClientData(clientData); | |
2790 | return self->Insert(item, pos, data); | |
2791 | } else | |
2792 | return self->Insert(item, pos); | |
2793 | } | |
093d3ff1 | 2794 | static PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ |
d55e5bfc RD |
2795 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); |
2796 | if (data) { | |
2797 | Py_INCREF(data->m_obj); | |
2798 | return data->m_obj; | |
2799 | } else { | |
2800 | Py_INCREF(Py_None); | |
2801 | return Py_None; | |
2802 | } | |
2803 | } | |
093d3ff1 | 2804 | static void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ |
d55e5bfc RD |
2805 | wxPyClientData* data = new wxPyClientData(clientData); |
2806 | self->SetClientObject(n, data); | |
2807 | } | |
2808 | ||
2809 | ||
093d3ff1 | 2810 | static wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2811 | wxPyUserData* data = NULL; |
2812 | if ( userData ) { | |
5a446332 | 2813 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
2814 | data = new wxPyUserData(userData); |
2815 | wxPyEndBlockThreads(blocked); | |
2816 | } | |
2817 | return new wxSizerItem(window, proportion, flag, border, data); | |
2818 | } | |
093d3ff1 | 2819 | static wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2820 | wxPyUserData* data = NULL; |
2821 | if ( userData ) { | |
5a446332 | 2822 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
2823 | data = new wxPyUserData(userData); |
2824 | wxPyEndBlockThreads(blocked); | |
2825 | } | |
2826 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
2827 | } | |
093d3ff1 | 2828 | static wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2829 | wxPyUserData* data = NULL; |
2830 | if ( userData ) { | |
5a446332 | 2831 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
2832 | data = new wxPyUserData(userData); |
2833 | wxPyEndBlockThreads(blocked); | |
2834 | } | |
2835 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
2836 | } | |
d55e5bfc RD |
2837 | |
2838 | #include <float.h> | |
093d3ff1 | 2839 | SWIGINTERN int |
c32bde28 RD |
2840 | SWIG_CheckDoubleInRange(double value, double min_value, |
2841 | double max_value, const char* errmsg) | |
2842 | { | |
2843 | if (value < min_value) { | |
2844 | if (errmsg) { | |
2845 | PyErr_Format(PyExc_OverflowError, | |
2846 | "value %g is less than %s minimum %g", | |
2847 | value, errmsg, min_value); | |
2848 | } | |
2849 | return 0; | |
2850 | } else if (value > max_value) { | |
2851 | if (errmsg) { | |
2852 | PyErr_Format(PyExc_OverflowError, | |
2853 | "value %g is greater than %s maximum %g", | |
2854 | value, errmsg, max_value); | |
2855 | } | |
2856 | return 0; | |
2857 | } | |
2858 | return 1; | |
2859 | } | |
2860 | ||
d55e5bfc | 2861 | |
093d3ff1 | 2862 | SWIGINTERN int |
c32bde28 | 2863 | SWIG_AsVal_float(PyObject *obj, float *val) |
d55e5bfc | 2864 | { |
093d3ff1 | 2865 | const char* errmsg = val ? "float" : (char*)0; |
c32bde28 RD |
2866 | double v; |
2867 | if (SWIG_AsVal_double(obj, &v)) { | |
2868 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
093d3ff1 | 2869 | if (val) *val = (float)(v); |
c32bde28 | 2870 | return 1; |
d55e5bfc | 2871 | } else { |
c32bde28 | 2872 | return 0; |
d55e5bfc | 2873 | } |
c32bde28 RD |
2874 | } else { |
2875 | PyErr_Clear(); | |
d55e5bfc | 2876 | } |
c32bde28 | 2877 | if (val) { |
093d3ff1 | 2878 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2879 | } |
2880 | return 0; | |
d55e5bfc RD |
2881 | } |
2882 | ||
2883 | ||
093d3ff1 | 2884 | SWIGINTERNSHORT float |
c32bde28 | 2885 | SWIG_As_float(PyObject* obj) |
d55e5bfc | 2886 | { |
c32bde28 RD |
2887 | float v; |
2888 | if (!SWIG_AsVal_float(obj, &v)) { | |
2889 | /* | |
093d3ff1 | 2890 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2891 | */ |
2892 | memset((void*)&v, 0, sizeof(float)); | |
2893 | } | |
2894 | return v; | |
d55e5bfc RD |
2895 | } |
2896 | ||
c32bde28 | 2897 | |
093d3ff1 | 2898 | SWIGINTERNSHORT int |
c32bde28 | 2899 | SWIG_Check_float(PyObject* obj) |
d55e5bfc | 2900 | { |
c32bde28 | 2901 | return SWIG_AsVal_float(obj, (float*)0); |
d55e5bfc RD |
2902 | } |
2903 | ||
093d3ff1 RD |
2904 | |
2905 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
2906 | #define SWIG_From_float PyFloat_FromDouble | |
2907 | /*@@*/ | |
2908 | ||
2909 | static PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
d55e5bfc RD |
2910 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); |
2911 | if (data) { | |
2912 | Py_INCREF(data->m_obj); | |
2913 | return data->m_obj; | |
2914 | } else { | |
2915 | Py_INCREF(Py_None); | |
2916 | return Py_None; | |
2917 | } | |
2918 | } | |
2919 | ||
2920 | // Figure out the type of the sizer item | |
2921 | ||
2922 | struct wxPySizerItemInfo { | |
2923 | wxPySizerItemInfo() | |
ae8162c8 RD |
2924 | : window(NULL), sizer(NULL), gotSize(false), |
2925 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d55e5bfc | 2926 | {} |
b9d6a5f3 | 2927 | |
d55e5bfc RD |
2928 | wxWindow* window; |
2929 | wxSizer* sizer; | |
2930 | bool gotSize; | |
2931 | wxSize size; | |
2932 | bool gotPos; | |
2933 | int pos; | |
2934 | }; | |
b9d6a5f3 | 2935 | |
d55e5bfc RD |
2936 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { |
2937 | ||
2938 | wxPySizerItemInfo info; | |
2939 | wxSize size; | |
2940 | wxSize* sizePtr = &size; | |
2941 | ||
2942 | // Find out what the type of the item is | |
2943 | // try wxWindow | |
2944 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
2945 | PyErr_Clear(); | |
2946 | info.window = NULL; | |
b9d6a5f3 | 2947 | |
d55e5bfc RD |
2948 | // try wxSizer |
2949 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
2950 | PyErr_Clear(); | |
2951 | info.sizer = NULL; | |
b9d6a5f3 | 2952 | |
d55e5bfc RD |
2953 | // try wxSize or (w,h) |
2954 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
2955 | info.size = *sizePtr; | |
ae8162c8 | 2956 | info.gotSize = true; |
d55e5bfc RD |
2957 | } |
2958 | ||
2959 | // or a single int | |
2960 | if (checkIdx && PyInt_Check(item)) { | |
2961 | info.pos = PyInt_AsLong(item); | |
ae8162c8 | 2962 | info.gotPos = true; |
d55e5bfc RD |
2963 | } |
2964 | } | |
2965 | } | |
2966 | ||
2967 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
2968 | // no expected type, figure out what kind of error message to generate | |
2969 | if ( !checkSize && !checkIdx ) | |
2970 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
2971 | else if ( checkSize && !checkIdx ) | |
2972 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
2973 | else if ( !checkSize && checkIdx) | |
2974 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
2975 | else | |
2976 | // can this one happen? | |
2977 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
2978 | } | |
2979 | ||
2980 | return info; | |
2981 | } | |
2982 | ||
093d3ff1 | 2983 | static void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ |
b0f7404b RD |
2984 | if (!self->GetClientObject()) |
2985 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d55e5bfc | 2986 | } |
093d3ff1 | 2987 | static wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
b9d6a5f3 | 2988 | |
d55e5bfc | 2989 | wxPyUserData* data = NULL; |
5a446332 | 2990 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 2991 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2992 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2993 | data = new wxPyUserData(userData); | |
2994 | wxPyEndBlockThreads(blocked); | |
b9d6a5f3 | 2995 | |
d55e5bfc RD |
2996 | // Now call the real Add method if a valid item type was found |
2997 | if ( info.window ) | |
c1cb24a4 | 2998 | return self->Add(info.window, proportion, flag, border, data); |
d55e5bfc | 2999 | else if ( info.sizer ) |
c1cb24a4 | 3000 | return self->Add(info.sizer, proportion, flag, border, data); |
d55e5bfc | 3001 | else if (info.gotSize) |
c1cb24a4 RD |
3002 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), |
3003 | proportion, flag, border, data); | |
3004 | else | |
3005 | return NULL; | |
d55e5bfc | 3006 | } |
093d3ff1 | 3007 | static wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
d55e5bfc RD |
3008 | |
3009 | wxPyUserData* data = NULL; | |
5a446332 | 3010 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3011 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
3012 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3013 | data = new wxPyUserData(userData); | |
3014 | wxPyEndBlockThreads(blocked); | |
b9d6a5f3 | 3015 | |
d55e5bfc RD |
3016 | // Now call the real Insert method if a valid item type was found |
3017 | if ( info.window ) | |
c1cb24a4 | 3018 | return self->Insert(before, info.window, proportion, flag, border, data); |
d55e5bfc | 3019 | else if ( info.sizer ) |
c1cb24a4 | 3020 | return self->Insert(before, info.sizer, proportion, flag, border, data); |
d55e5bfc | 3021 | else if (info.gotSize) |
c1cb24a4 RD |
3022 | return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), |
3023 | proportion, flag, border, data); | |
3024 | else | |
3025 | return NULL; | |
d55e5bfc | 3026 | } |
093d3ff1 | 3027 | static wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
d55e5bfc RD |
3028 | |
3029 | wxPyUserData* data = NULL; | |
5a446332 | 3030 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3031 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
3032 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3033 | data = new wxPyUserData(userData); | |
3034 | wxPyEndBlockThreads(blocked); | |
b9d6a5f3 | 3035 | |
d55e5bfc RD |
3036 | // Now call the real Prepend method if a valid item type was found |
3037 | if ( info.window ) | |
c1cb24a4 | 3038 | return self->Prepend(info.window, proportion, flag, border, data); |
d55e5bfc | 3039 | else if ( info.sizer ) |
c1cb24a4 | 3040 | return self->Prepend(info.sizer, proportion, flag, border, data); |
d55e5bfc | 3041 | else if (info.gotSize) |
c1cb24a4 RD |
3042 | return self->Prepend(info.size.GetWidth(), info.size.GetHeight(), |
3043 | proportion, flag, border, data); | |
3044 | else | |
3045 | return NULL; | |
d55e5bfc | 3046 | } |
093d3ff1 | 3047 | static bool wxSizer_Remove(wxSizer *self,PyObject *item){ |
5a446332 | 3048 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3049 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
3050 | wxPyEndBlockThreads(blocked); |
3051 | if ( info.window ) | |
3052 | return self->Remove(info.window); | |
3053 | else if ( info.sizer ) | |
3054 | return self->Remove(info.sizer); | |
3055 | else if ( info.gotPos ) | |
3056 | return self->Remove(info.pos); | |
b9d6a5f3 | 3057 | else |
ae8162c8 | 3058 | return false; |
d55e5bfc | 3059 | } |
093d3ff1 | 3060 | static bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
5a446332 | 3061 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3062 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1a6bba1e RD |
3063 | wxPyEndBlockThreads(blocked); |
3064 | if ( info.window ) | |
3065 | return self->Detach(info.window); | |
3066 | else if ( info.sizer ) | |
3067 | return self->Detach(info.sizer); | |
3068 | else if ( info.gotPos ) | |
3069 | return self->Detach(info.pos); | |
b9d6a5f3 | 3070 | else |
ae8162c8 | 3071 | return false; |
1a6bba1e | 3072 | } |
093d3ff1 | 3073 | static wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){ |
5a446332 | 3074 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
c1cb24a4 RD |
3075 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
3076 | wxPyEndBlockThreads(blocked); | |
3077 | if ( info.window ) | |
3078 | return self->GetItem(info.window); | |
3079 | else if ( info.sizer ) | |
3080 | return self->GetItem(info.sizer); | |
3081 | else if ( info.gotPos ) | |
3082 | return self->GetItem(info.pos); | |
3083 | else | |
3084 | return NULL; | |
3085 | } | |
093d3ff1 | 3086 | static void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
5a446332 | 3087 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3088 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
3089 | wxPyEndBlockThreads(blocked); |
3090 | if ( info.window ) | |
3091 | self->SetItemMinSize(info.window, size); | |
3092 | else if ( info.sizer ) | |
3093 | self->SetItemMinSize(info.sizer, size); | |
3094 | else if ( info.gotPos ) | |
3095 | self->SetItemMinSize(info.pos, size); | |
3096 | } | |
093d3ff1 | 3097 | static PyObject *wxSizer_GetChildren(wxSizer *self){ |
d55e5bfc RD |
3098 | wxSizerItemList& list = self->GetChildren(); |
3099 | return wxPy_ConvertList(&list); | |
3100 | } | |
093d3ff1 | 3101 | static bool wxSizer_Show(wxSizer *self,PyObject *item,bool show=true,bool recursive=false){ |
5a446332 | 3102 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3103 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
c24da6d6 | 3104 | wxPyEndBlockThreads(blocked); |
d55e5bfc | 3105 | if ( info.window ) |
7e63a440 | 3106 | return self->Show(info.window, show, recursive); |
d55e5bfc | 3107 | else if ( info.sizer ) |
7e63a440 | 3108 | return self->Show(info.sizer, show, recursive); |
248ed943 | 3109 | else if ( info.gotPos ) |
7e63a440 | 3110 | return self->Show(info.pos, show); |
ae8162c8 RD |
3111 | else |
3112 | return false; | |
d55e5bfc | 3113 | } |
093d3ff1 | 3114 | static bool wxSizer_IsShown(wxSizer *self,PyObject *item){ |
5a446332 | 3115 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3116 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
c24da6d6 | 3117 | wxPyEndBlockThreads(blocked); |
b9d6a5f3 | 3118 | if ( info.window ) |
d55e5bfc | 3119 | return self->IsShown(info.window); |
b9d6a5f3 | 3120 | else if ( info.sizer ) |
d55e5bfc | 3121 | return self->IsShown(info.sizer); |
248ed943 RD |
3122 | else if ( info.gotPos ) |
3123 | return self->IsShown(info.pos); | |
d55e5bfc | 3124 | else |
ae8162c8 | 3125 | return false; |
d55e5bfc RD |
3126 | } |
3127 | ||
b9d6a5f3 | 3128 | // See pyclasses.h |
d55e5bfc RD |
3129 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); |
3130 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
3131 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
3132 | ||
3133 | ||
3134 | ||
3135 | ||
3136 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
3137 | { | |
3138 | if (source == Py_None) { | |
3139 | **obj = wxGBPosition(-1,-1); | |
ae8162c8 | 3140 | return true; |
d55e5bfc RD |
3141 | } |
3142 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
3143 | } | |
3144 | ||
3145 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
3146 | { | |
3147 | if (source == Py_None) { | |
3148 | **obj = wxGBSpan(-1,-1); | |
ae8162c8 | 3149 | return true; |
d55e5bfc RD |
3150 | } |
3151 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
3152 | } | |
3153 | ||
3154 | ||
093d3ff1 | 3155 | static void wxGBPosition_Set(wxGBPosition *self,int row=0,int col=0){ |
d55e5bfc RD |
3156 | self->SetRow(row); |
3157 | self->SetCol(col); | |
3158 | } | |
093d3ff1 | 3159 | static PyObject *wxGBPosition_Get(wxGBPosition *self){ |
5a446332 | 3160 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3161 | PyObject* tup = PyTuple_New(2); |
3162 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
3163 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
3164 | wxPyEndBlockThreads(blocked); | |
3165 | return tup; | |
3166 | } | |
093d3ff1 | 3167 | static void wxGBSpan_Set(wxGBSpan *self,int rowspan=1,int colspan=1){ |
d55e5bfc RD |
3168 | self->SetRowspan(rowspan); |
3169 | self->SetColspan(colspan); | |
3170 | } | |
093d3ff1 | 3171 | static PyObject *wxGBSpan_Get(wxGBSpan *self){ |
5a446332 | 3172 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3173 | PyObject* tup = PyTuple_New(2); |
3174 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
3175 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
3176 | wxPyEndBlockThreads(blocked); | |
3177 | return tup; | |
3178 | } | |
093d3ff1 | 3179 | static wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3180 | wxPyUserData* data = NULL; |
3181 | if ( userData ) { | |
5a446332 | 3182 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
3183 | data = new wxPyUserData(userData); |
3184 | wxPyEndBlockThreads(blocked); | |
3185 | } | |
3186 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
3187 | } | |
093d3ff1 | 3188 | static wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3189 | wxPyUserData* data = NULL; |
3190 | if ( userData ) { | |
5a446332 | 3191 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
3192 | data = new wxPyUserData(userData); |
3193 | wxPyEndBlockThreads(blocked); | |
3194 | } | |
3195 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
3196 | } | |
093d3ff1 | 3197 | static wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3198 | wxPyUserData* data = NULL; |
3199 | if ( userData ) { | |
5a446332 | 3200 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
3201 | data = new wxPyUserData(userData); |
3202 | wxPyEndBlockThreads(blocked); | |
3203 | } | |
3204 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
3205 | } | |
093d3ff1 | 3206 | static wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ |
248ed943 RD |
3207 | int row, col; |
3208 | self->GetEndPos(row, col); | |
3209 | return wxGBPosition(row, col); | |
3210 | } | |
093d3ff1 | 3211 | static wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span=wxDefaultSpan,int flag=0,int border=0,PyObject *userData=NULL){ |
d55e5bfc RD |
3212 | |
3213 | wxPyUserData* data = NULL; | |
5a446332 | 3214 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3215 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
3216 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3217 | data = new wxPyUserData(userData); | |
3218 | wxPyEndBlockThreads(blocked); | |
3219 | ||
3220 | // Now call the real Add method if a valid item type was found | |
3221 | if ( info.window ) | |
c1cb24a4 | 3222 | return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data); |
d55e5bfc | 3223 | else if ( info.sizer ) |
c1cb24a4 | 3224 | return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data); |
d55e5bfc | 3225 | else if (info.gotSize) |
c1cb24a4 RD |
3226 | return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(), |
3227 | pos, span, flag, border, data); | |
3228 | return NULL; | |
d55e5bfc RD |
3229 | } |
3230 | ||
3231 | ||
3232 | #ifdef __cplusplus | |
3233 | extern "C" { | |
3234 | #endif | |
c32bde28 | 3235 | static int _wrap_EmptyString_set(PyObject *) { |
d55e5bfc RD |
3236 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
3237 | return 1; | |
3238 | } | |
3239 | ||
3240 | ||
093d3ff1 | 3241 | static PyObject *_wrap_EmptyString_get(void) { |
d55e5bfc RD |
3242 | PyObject *pyobj; |
3243 | ||
3244 | { | |
3245 | #if wxUSE_UNICODE | |
3246 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
3247 | #else | |
3248 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
3249 | #endif | |
3250 | } | |
3251 | return pyobj; | |
3252 | } | |
3253 | ||
3254 | ||
c32bde28 | 3255 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3256 | PyObject *resultobj; |
3257 | wxObject *arg1 = (wxObject *) 0 ; | |
3258 | wxString result; | |
3259 | PyObject * obj0 = 0 ; | |
3260 | char *kwnames[] = { | |
3261 | (char *) "self", NULL | |
3262 | }; | |
3263 | ||
3264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3265 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); |
3266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3267 | { |
3268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3269 | result = wxObject_GetClassName(arg1); | |
3270 | ||
3271 | wxPyEndAllowThreads(__tstate); | |
3272 | if (PyErr_Occurred()) SWIG_fail; | |
3273 | } | |
3274 | { | |
3275 | #if wxUSE_UNICODE | |
3276 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3277 | #else | |
3278 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3279 | #endif | |
3280 | } | |
3281 | return resultobj; | |
3282 | fail: | |
3283 | return NULL; | |
3284 | } | |
3285 | ||
3286 | ||
c32bde28 | 3287 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3288 | PyObject *resultobj; |
3289 | wxObject *arg1 = (wxObject *) 0 ; | |
3290 | PyObject * obj0 = 0 ; | |
3291 | char *kwnames[] = { | |
3292 | (char *) "self", NULL | |
3293 | }; | |
3294 | ||
3295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); |
3297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3298 | { |
3299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3300 | wxObject_Destroy(arg1); | |
3301 | ||
3302 | wxPyEndAllowThreads(__tstate); | |
3303 | if (PyErr_Occurred()) SWIG_fail; | |
3304 | } | |
3305 | Py_INCREF(Py_None); resultobj = Py_None; | |
3306 | return resultobj; | |
3307 | fail: | |
3308 | return NULL; | |
3309 | } | |
3310 | ||
3311 | ||
c32bde28 | 3312 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3313 | PyObject *obj; |
3314 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3315 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
3316 | Py_INCREF(obj); | |
3317 | return Py_BuildValue((char *)""); | |
3318 | } | |
c32bde28 | 3319 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3320 | PyObject *resultobj; |
3321 | wxSize *arg1 = (wxSize *) 0 ; | |
3322 | int arg2 ; | |
3323 | PyObject * obj0 = 0 ; | |
3324 | PyObject * obj1 = 0 ; | |
3325 | char *kwnames[] = { | |
3326 | (char *) "self",(char *) "x", NULL | |
3327 | }; | |
3328 | ||
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3332 | { | |
3333 | arg2 = (int)(SWIG_As_int(obj1)); | |
3334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3335 | } | |
d55e5bfc RD |
3336 | if (arg1) (arg1)->x = arg2; |
3337 | ||
3338 | Py_INCREF(Py_None); resultobj = Py_None; | |
3339 | return resultobj; | |
3340 | fail: | |
3341 | return NULL; | |
3342 | } | |
3343 | ||
3344 | ||
c32bde28 | 3345 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3346 | PyObject *resultobj; |
3347 | wxSize *arg1 = (wxSize *) 0 ; | |
3348 | int result; | |
3349 | PyObject * obj0 = 0 ; | |
3350 | char *kwnames[] = { | |
3351 | (char *) "self", NULL | |
3352 | }; | |
3353 | ||
3354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3357 | result = (int) ((arg1)->x); |
3358 | ||
093d3ff1 RD |
3359 | { |
3360 | resultobj = SWIG_From_int((int)(result)); | |
3361 | } | |
d55e5bfc RD |
3362 | return resultobj; |
3363 | fail: | |
3364 | return NULL; | |
3365 | } | |
3366 | ||
3367 | ||
c32bde28 | 3368 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3369 | PyObject *resultobj; |
3370 | wxSize *arg1 = (wxSize *) 0 ; | |
3371 | int arg2 ; | |
3372 | PyObject * obj0 = 0 ; | |
3373 | PyObject * obj1 = 0 ; | |
3374 | char *kwnames[] = { | |
3375 | (char *) "self",(char *) "y", NULL | |
3376 | }; | |
3377 | ||
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3379 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3381 | { | |
3382 | arg2 = (int)(SWIG_As_int(obj1)); | |
3383 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3384 | } | |
d55e5bfc RD |
3385 | if (arg1) (arg1)->y = arg2; |
3386 | ||
3387 | Py_INCREF(Py_None); resultobj = Py_None; | |
3388 | return resultobj; | |
3389 | fail: | |
3390 | return NULL; | |
3391 | } | |
3392 | ||
3393 | ||
c32bde28 | 3394 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3395 | PyObject *resultobj; |
3396 | wxSize *arg1 = (wxSize *) 0 ; | |
3397 | int result; | |
3398 | PyObject * obj0 = 0 ; | |
3399 | char *kwnames[] = { | |
3400 | (char *) "self", NULL | |
3401 | }; | |
3402 | ||
3403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3404 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3406 | result = (int) ((arg1)->y); |
3407 | ||
093d3ff1 RD |
3408 | { |
3409 | resultobj = SWIG_From_int((int)(result)); | |
3410 | } | |
d55e5bfc RD |
3411 | return resultobj; |
3412 | fail: | |
3413 | return NULL; | |
3414 | } | |
3415 | ||
3416 | ||
c32bde28 | 3417 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3418 | PyObject *resultobj; |
3419 | int arg1 = (int) 0 ; | |
3420 | int arg2 = (int) 0 ; | |
3421 | wxSize *result; | |
3422 | PyObject * obj0 = 0 ; | |
3423 | PyObject * obj1 = 0 ; | |
3424 | char *kwnames[] = { | |
3425 | (char *) "w",(char *) "h", NULL | |
3426 | }; | |
3427 | ||
3428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
3429 | if (obj0) { | |
093d3ff1 RD |
3430 | { |
3431 | arg1 = (int)(SWIG_As_int(obj0)); | |
3432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3433 | } | |
d55e5bfc RD |
3434 | } |
3435 | if (obj1) { | |
093d3ff1 RD |
3436 | { |
3437 | arg2 = (int)(SWIG_As_int(obj1)); | |
3438 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3439 | } | |
d55e5bfc RD |
3440 | } |
3441 | { | |
3442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3443 | result = (wxSize *)new wxSize(arg1,arg2); | |
3444 | ||
3445 | wxPyEndAllowThreads(__tstate); | |
3446 | if (PyErr_Occurred()) SWIG_fail; | |
3447 | } | |
3448 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
3449 | return resultobj; | |
3450 | fail: | |
3451 | return NULL; | |
3452 | } | |
3453 | ||
3454 | ||
c32bde28 | 3455 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3456 | PyObject *resultobj; |
3457 | wxSize *arg1 = (wxSize *) 0 ; | |
3458 | PyObject * obj0 = 0 ; | |
3459 | char *kwnames[] = { | |
3460 | (char *) "self", NULL | |
3461 | }; | |
3462 | ||
3463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3466 | { |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3468 | delete arg1; | |
3469 | ||
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) SWIG_fail; | |
3472 | } | |
3473 | Py_INCREF(Py_None); resultobj = Py_None; | |
3474 | return resultobj; | |
3475 | fail: | |
3476 | return NULL; | |
3477 | } | |
3478 | ||
3479 | ||
c32bde28 | 3480 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3481 | PyObject *resultobj; |
3482 | wxSize *arg1 = (wxSize *) 0 ; | |
3483 | wxSize *arg2 = 0 ; | |
3484 | bool result; | |
3485 | wxSize temp2 ; | |
3486 | PyObject * obj0 = 0 ; | |
3487 | PyObject * obj1 = 0 ; | |
3488 | char *kwnames[] = { | |
3489 | (char *) "self",(char *) "sz", NULL | |
3490 | }; | |
3491 | ||
3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3495 | { |
3496 | arg2 = &temp2; | |
3497 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3498 | } | |
3499 | { | |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
3502 | ||
3503 | wxPyEndAllowThreads(__tstate); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
3506 | { | |
3507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3508 | } | |
3509 | return resultobj; | |
3510 | fail: | |
3511 | return NULL; | |
3512 | } | |
3513 | ||
3514 | ||
c32bde28 | 3515 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3516 | PyObject *resultobj; |
3517 | wxSize *arg1 = (wxSize *) 0 ; | |
3518 | wxSize *arg2 = 0 ; | |
3519 | bool result; | |
3520 | wxSize temp2 ; | |
3521 | PyObject * obj0 = 0 ; | |
3522 | PyObject * obj1 = 0 ; | |
3523 | char *kwnames[] = { | |
3524 | (char *) "self",(char *) "sz", NULL | |
3525 | }; | |
3526 | ||
3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3530 | { |
3531 | arg2 = &temp2; | |
3532 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3533 | } | |
3534 | { | |
3535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3536 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
3537 | ||
3538 | wxPyEndAllowThreads(__tstate); | |
3539 | if (PyErr_Occurred()) SWIG_fail; | |
3540 | } | |
3541 | { | |
3542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3543 | } | |
3544 | return resultobj; | |
3545 | fail: | |
3546 | return NULL; | |
3547 | } | |
3548 | ||
3549 | ||
c32bde28 | 3550 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3551 | PyObject *resultobj; |
3552 | wxSize *arg1 = (wxSize *) 0 ; | |
3553 | wxSize *arg2 = 0 ; | |
3554 | wxSize result; | |
3555 | wxSize temp2 ; | |
3556 | PyObject * obj0 = 0 ; | |
3557 | PyObject * obj1 = 0 ; | |
3558 | char *kwnames[] = { | |
3559 | (char *) "self",(char *) "sz", NULL | |
3560 | }; | |
3561 | ||
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3565 | { |
3566 | arg2 = &temp2; | |
3567 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3568 | } | |
3569 | { | |
3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3571 | result = (arg1)->operator +((wxSize const &)*arg2); | |
3572 | ||
3573 | wxPyEndAllowThreads(__tstate); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
3576 | { | |
3577 | wxSize * resultptr; | |
093d3ff1 | 3578 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
3579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
3580 | } | |
3581 | return resultobj; | |
3582 | fail: | |
3583 | return NULL; | |
3584 | } | |
3585 | ||
3586 | ||
c32bde28 | 3587 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3588 | PyObject *resultobj; |
3589 | wxSize *arg1 = (wxSize *) 0 ; | |
3590 | wxSize *arg2 = 0 ; | |
3591 | wxSize result; | |
3592 | wxSize temp2 ; | |
3593 | PyObject * obj0 = 0 ; | |
3594 | PyObject * obj1 = 0 ; | |
3595 | char *kwnames[] = { | |
3596 | (char *) "self",(char *) "sz", NULL | |
3597 | }; | |
3598 | ||
3599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3602 | { |
3603 | arg2 = &temp2; | |
3604 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3605 | } | |
3606 | { | |
3607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3608 | result = (arg1)->operator -((wxSize const &)*arg2); | |
3609 | ||
3610 | wxPyEndAllowThreads(__tstate); | |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
3612 | } | |
3613 | { | |
3614 | wxSize * resultptr; | |
093d3ff1 | 3615 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
3616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
3617 | } | |
3618 | return resultobj; | |
3619 | fail: | |
3620 | return NULL; | |
3621 | } | |
3622 | ||
3623 | ||
c32bde28 | 3624 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3625 | PyObject *resultobj; |
3626 | wxSize *arg1 = (wxSize *) 0 ; | |
3627 | wxSize *arg2 = 0 ; | |
3628 | wxSize temp2 ; | |
3629 | PyObject * obj0 = 0 ; | |
3630 | PyObject * obj1 = 0 ; | |
3631 | char *kwnames[] = { | |
3632 | (char *) "self",(char *) "sz", NULL | |
3633 | }; | |
3634 | ||
3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3638 | { |
3639 | arg2 = &temp2; | |
3640 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3641 | } | |
3642 | { | |
3643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3644 | (arg1)->IncTo((wxSize const &)*arg2); | |
3645 | ||
3646 | wxPyEndAllowThreads(__tstate); | |
3647 | if (PyErr_Occurred()) SWIG_fail; | |
3648 | } | |
3649 | Py_INCREF(Py_None); resultobj = Py_None; | |
3650 | return resultobj; | |
3651 | fail: | |
3652 | return NULL; | |
3653 | } | |
3654 | ||
3655 | ||
c32bde28 | 3656 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3657 | PyObject *resultobj; |
3658 | wxSize *arg1 = (wxSize *) 0 ; | |
3659 | wxSize *arg2 = 0 ; | |
3660 | wxSize temp2 ; | |
3661 | PyObject * obj0 = 0 ; | |
3662 | PyObject * obj1 = 0 ; | |
3663 | char *kwnames[] = { | |
3664 | (char *) "self",(char *) "sz", NULL | |
3665 | }; | |
3666 | ||
3667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3670 | { |
3671 | arg2 = &temp2; | |
3672 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3673 | } | |
3674 | { | |
3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3676 | (arg1)->DecTo((wxSize const &)*arg2); | |
3677 | ||
3678 | wxPyEndAllowThreads(__tstate); | |
3679 | if (PyErr_Occurred()) SWIG_fail; | |
3680 | } | |
3681 | Py_INCREF(Py_None); resultobj = Py_None; | |
3682 | return resultobj; | |
3683 | fail: | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
c32bde28 | 3688 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3689 | PyObject *resultobj; |
3690 | wxSize *arg1 = (wxSize *) 0 ; | |
3691 | int arg2 ; | |
3692 | int arg3 ; | |
3693 | PyObject * obj0 = 0 ; | |
3694 | PyObject * obj1 = 0 ; | |
3695 | PyObject * obj2 = 0 ; | |
3696 | char *kwnames[] = { | |
3697 | (char *) "self",(char *) "w",(char *) "h", NULL | |
3698 | }; | |
3699 | ||
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
3701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3703 | { | |
3704 | arg2 = (int)(SWIG_As_int(obj1)); | |
3705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3706 | } | |
3707 | { | |
3708 | arg3 = (int)(SWIG_As_int(obj2)); | |
3709 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3710 | } | |
d55e5bfc RD |
3711 | { |
3712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3713 | (arg1)->Set(arg2,arg3); | |
3714 | ||
3715 | wxPyEndAllowThreads(__tstate); | |
3716 | if (PyErr_Occurred()) SWIG_fail; | |
3717 | } | |
3718 | Py_INCREF(Py_None); resultobj = Py_None; | |
3719 | return resultobj; | |
3720 | fail: | |
3721 | return NULL; | |
3722 | } | |
3723 | ||
3724 | ||
c32bde28 | 3725 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3726 | PyObject *resultobj; |
3727 | wxSize *arg1 = (wxSize *) 0 ; | |
3728 | int arg2 ; | |
3729 | PyObject * obj0 = 0 ; | |
3730 | PyObject * obj1 = 0 ; | |
3731 | char *kwnames[] = { | |
3732 | (char *) "self",(char *) "w", NULL | |
3733 | }; | |
3734 | ||
3735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3738 | { | |
3739 | arg2 = (int)(SWIG_As_int(obj1)); | |
3740 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3741 | } | |
d55e5bfc RD |
3742 | { |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | (arg1)->SetWidth(arg2); | |
3745 | ||
3746 | wxPyEndAllowThreads(__tstate); | |
3747 | if (PyErr_Occurred()) SWIG_fail; | |
3748 | } | |
3749 | Py_INCREF(Py_None); resultobj = Py_None; | |
3750 | return resultobj; | |
3751 | fail: | |
3752 | return NULL; | |
3753 | } | |
3754 | ||
3755 | ||
c32bde28 | 3756 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3757 | PyObject *resultobj; |
3758 | wxSize *arg1 = (wxSize *) 0 ; | |
3759 | int arg2 ; | |
3760 | PyObject * obj0 = 0 ; | |
3761 | PyObject * obj1 = 0 ; | |
3762 | char *kwnames[] = { | |
3763 | (char *) "self",(char *) "h", NULL | |
3764 | }; | |
3765 | ||
3766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3769 | { | |
3770 | arg2 = (int)(SWIG_As_int(obj1)); | |
3771 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3772 | } | |
d55e5bfc RD |
3773 | { |
3774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3775 | (arg1)->SetHeight(arg2); | |
3776 | ||
3777 | wxPyEndAllowThreads(__tstate); | |
3778 | if (PyErr_Occurred()) SWIG_fail; | |
3779 | } | |
3780 | Py_INCREF(Py_None); resultobj = Py_None; | |
3781 | return resultobj; | |
3782 | fail: | |
3783 | return NULL; | |
3784 | } | |
3785 | ||
3786 | ||
c32bde28 | 3787 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3788 | PyObject *resultobj; |
3789 | wxSize *arg1 = (wxSize *) 0 ; | |
3790 | int result; | |
3791 | PyObject * obj0 = 0 ; | |
3792 | char *kwnames[] = { | |
3793 | (char *) "self", NULL | |
3794 | }; | |
3795 | ||
3796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3799 | { |
3800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3801 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
3802 | ||
3803 | wxPyEndAllowThreads(__tstate); | |
3804 | if (PyErr_Occurred()) SWIG_fail; | |
3805 | } | |
093d3ff1 RD |
3806 | { |
3807 | resultobj = SWIG_From_int((int)(result)); | |
3808 | } | |
d55e5bfc RD |
3809 | return resultobj; |
3810 | fail: | |
3811 | return NULL; | |
3812 | } | |
3813 | ||
3814 | ||
c32bde28 | 3815 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3816 | PyObject *resultobj; |
3817 | wxSize *arg1 = (wxSize *) 0 ; | |
3818 | int result; | |
3819 | PyObject * obj0 = 0 ; | |
3820 | char *kwnames[] = { | |
3821 | (char *) "self", NULL | |
3822 | }; | |
3823 | ||
3824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3827 | { |
3828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3829 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
3830 | ||
3831 | wxPyEndAllowThreads(__tstate); | |
3832 | if (PyErr_Occurred()) SWIG_fail; | |
3833 | } | |
093d3ff1 RD |
3834 | { |
3835 | resultobj = SWIG_From_int((int)(result)); | |
3836 | } | |
d55e5bfc RD |
3837 | return resultobj; |
3838 | fail: | |
3839 | return NULL; | |
3840 | } | |
3841 | ||
3842 | ||
c32bde28 | 3843 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3844 | PyObject *resultobj; |
3845 | wxSize *arg1 = (wxSize *) 0 ; | |
3846 | bool result; | |
3847 | PyObject * obj0 = 0 ; | |
3848 | char *kwnames[] = { | |
3849 | (char *) "self", NULL | |
3850 | }; | |
3851 | ||
3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3855 | { |
3856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3857 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
3858 | ||
3859 | wxPyEndAllowThreads(__tstate); | |
3860 | if (PyErr_Occurred()) SWIG_fail; | |
3861 | } | |
3862 | { | |
3863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3864 | } | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
c32bde28 | 3871 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3872 | PyObject *resultobj; |
3873 | wxSize *arg1 = (wxSize *) 0 ; | |
3874 | wxSize *arg2 = 0 ; | |
3875 | wxSize temp2 ; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | PyObject * obj1 = 0 ; | |
3878 | char *kwnames[] = { | |
3879 | (char *) "self",(char *) "size", NULL | |
3880 | }; | |
3881 | ||
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3885 | { |
3886 | arg2 = &temp2; | |
3887 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3888 | } | |
3889 | { | |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
3892 | ||
3893 | wxPyEndAllowThreads(__tstate); | |
3894 | if (PyErr_Occurred()) SWIG_fail; | |
3895 | } | |
3896 | Py_INCREF(Py_None); resultobj = Py_None; | |
3897 | return resultobj; | |
3898 | fail: | |
3899 | return NULL; | |
3900 | } | |
3901 | ||
3902 | ||
c32bde28 | 3903 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3904 | PyObject *resultobj; |
3905 | wxSize *arg1 = (wxSize *) 0 ; | |
3906 | PyObject *result; | |
3907 | PyObject * obj0 = 0 ; | |
3908 | char *kwnames[] = { | |
3909 | (char *) "self", NULL | |
3910 | }; | |
3911 | ||
3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3915 | { |
3916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3917 | result = (PyObject *)wxSize_Get(arg1); | |
3918 | ||
3919 | wxPyEndAllowThreads(__tstate); | |
3920 | if (PyErr_Occurred()) SWIG_fail; | |
3921 | } | |
3922 | resultobj = result; | |
3923 | return resultobj; | |
3924 | fail: | |
3925 | return NULL; | |
3926 | } | |
3927 | ||
3928 | ||
c32bde28 | 3929 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3930 | PyObject *obj; |
3931 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3932 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
3933 | Py_INCREF(obj); | |
3934 | return Py_BuildValue((char *)""); | |
3935 | } | |
c32bde28 | 3936 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3937 | PyObject *resultobj; |
3938 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3939 | double arg2 ; | |
3940 | PyObject * obj0 = 0 ; | |
3941 | PyObject * obj1 = 0 ; | |
3942 | char *kwnames[] = { | |
3943 | (char *) "self",(char *) "x", NULL | |
3944 | }; | |
3945 | ||
3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3949 | { | |
3950 | arg2 = (double)(SWIG_As_double(obj1)); | |
3951 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3952 | } | |
d55e5bfc RD |
3953 | if (arg1) (arg1)->x = arg2; |
3954 | ||
3955 | Py_INCREF(Py_None); resultobj = Py_None; | |
3956 | return resultobj; | |
3957 | fail: | |
3958 | return NULL; | |
3959 | } | |
3960 | ||
3961 | ||
c32bde28 | 3962 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3963 | PyObject *resultobj; |
3964 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3965 | double result; | |
3966 | PyObject * obj0 = 0 ; | |
3967 | char *kwnames[] = { | |
3968 | (char *) "self", NULL | |
3969 | }; | |
3970 | ||
3971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3974 | result = (double) ((arg1)->x); |
3975 | ||
093d3ff1 RD |
3976 | { |
3977 | resultobj = SWIG_From_double((double)(result)); | |
3978 | } | |
d55e5bfc RD |
3979 | return resultobj; |
3980 | fail: | |
3981 | return NULL; | |
3982 | } | |
3983 | ||
3984 | ||
c32bde28 | 3985 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3986 | PyObject *resultobj; |
3987 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3988 | double arg2 ; | |
3989 | PyObject * obj0 = 0 ; | |
3990 | PyObject * obj1 = 0 ; | |
3991 | char *kwnames[] = { | |
3992 | (char *) "self",(char *) "y", NULL | |
3993 | }; | |
3994 | ||
3995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3998 | { | |
3999 | arg2 = (double)(SWIG_As_double(obj1)); | |
4000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4001 | } | |
d55e5bfc RD |
4002 | if (arg1) (arg1)->y = arg2; |
4003 | ||
4004 | Py_INCREF(Py_None); resultobj = Py_None; | |
4005 | return resultobj; | |
4006 | fail: | |
4007 | return NULL; | |
4008 | } | |
4009 | ||
4010 | ||
c32bde28 | 4011 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4012 | PyObject *resultobj; |
4013 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4014 | double result; | |
4015 | PyObject * obj0 = 0 ; | |
4016 | char *kwnames[] = { | |
4017 | (char *) "self", NULL | |
4018 | }; | |
4019 | ||
4020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4023 | result = (double) ((arg1)->y); |
4024 | ||
093d3ff1 RD |
4025 | { |
4026 | resultobj = SWIG_From_double((double)(result)); | |
4027 | } | |
d55e5bfc RD |
4028 | return resultobj; |
4029 | fail: | |
4030 | return NULL; | |
4031 | } | |
4032 | ||
4033 | ||
c32bde28 | 4034 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4035 | PyObject *resultobj; |
4036 | double arg1 = (double) 0.0 ; | |
4037 | double arg2 = (double) 0.0 ; | |
4038 | wxRealPoint *result; | |
4039 | PyObject * obj0 = 0 ; | |
4040 | PyObject * obj1 = 0 ; | |
4041 | char *kwnames[] = { | |
4042 | (char *) "x",(char *) "y", NULL | |
4043 | }; | |
4044 | ||
4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
4046 | if (obj0) { | |
093d3ff1 RD |
4047 | { |
4048 | arg1 = (double)(SWIG_As_double(obj0)); | |
4049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4050 | } | |
d55e5bfc RD |
4051 | } |
4052 | if (obj1) { | |
093d3ff1 RD |
4053 | { |
4054 | arg2 = (double)(SWIG_As_double(obj1)); | |
4055 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4056 | } | |
d55e5bfc RD |
4057 | } |
4058 | { | |
4059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4060 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
4061 | ||
4062 | wxPyEndAllowThreads(__tstate); | |
4063 | if (PyErr_Occurred()) SWIG_fail; | |
4064 | } | |
4065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
4066 | return resultobj; | |
4067 | fail: | |
4068 | return NULL; | |
4069 | } | |
4070 | ||
4071 | ||
c32bde28 | 4072 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4073 | PyObject *resultobj; |
4074 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4075 | PyObject * obj0 = 0 ; | |
4076 | char *kwnames[] = { | |
4077 | (char *) "self", NULL | |
4078 | }; | |
4079 | ||
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4083 | { |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | delete arg1; | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | Py_INCREF(Py_None); resultobj = Py_None; | |
4091 | return resultobj; | |
4092 | fail: | |
4093 | return NULL; | |
4094 | } | |
4095 | ||
4096 | ||
c32bde28 | 4097 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4098 | PyObject *resultobj; |
4099 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4100 | wxRealPoint *arg2 = 0 ; | |
4101 | bool result; | |
4102 | wxRealPoint temp2 ; | |
4103 | PyObject * obj0 = 0 ; | |
4104 | PyObject * obj1 = 0 ; | |
4105 | char *kwnames[] = { | |
4106 | (char *) "self",(char *) "pt", NULL | |
4107 | }; | |
4108 | ||
4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4112 | { |
4113 | arg2 = &temp2; | |
4114 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4115 | } | |
4116 | { | |
4117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4118 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
4119 | ||
4120 | wxPyEndAllowThreads(__tstate); | |
4121 | if (PyErr_Occurred()) SWIG_fail; | |
4122 | } | |
4123 | { | |
4124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4125 | } | |
4126 | return resultobj; | |
4127 | fail: | |
4128 | return NULL; | |
4129 | } | |
4130 | ||
4131 | ||
c32bde28 | 4132 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4133 | PyObject *resultobj; |
4134 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4135 | wxRealPoint *arg2 = 0 ; | |
4136 | bool result; | |
4137 | wxRealPoint temp2 ; | |
4138 | PyObject * obj0 = 0 ; | |
4139 | PyObject * obj1 = 0 ; | |
4140 | char *kwnames[] = { | |
4141 | (char *) "self",(char *) "pt", NULL | |
4142 | }; | |
4143 | ||
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4147 | { |
4148 | arg2 = &temp2; | |
4149 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4150 | } | |
4151 | { | |
4152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4153 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
4154 | ||
4155 | wxPyEndAllowThreads(__tstate); | |
4156 | if (PyErr_Occurred()) SWIG_fail; | |
4157 | } | |
4158 | { | |
4159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4160 | } | |
4161 | return resultobj; | |
4162 | fail: | |
4163 | return NULL; | |
4164 | } | |
4165 | ||
4166 | ||
c32bde28 | 4167 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4168 | PyObject *resultobj; |
4169 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4170 | wxRealPoint *arg2 = 0 ; | |
4171 | wxRealPoint result; | |
4172 | wxRealPoint temp2 ; | |
4173 | PyObject * obj0 = 0 ; | |
4174 | PyObject * obj1 = 0 ; | |
4175 | char *kwnames[] = { | |
4176 | (char *) "self",(char *) "pt", NULL | |
4177 | }; | |
4178 | ||
4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4182 | { |
4183 | arg2 = &temp2; | |
4184 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4185 | } | |
4186 | { | |
4187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4188 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
4189 | ||
4190 | wxPyEndAllowThreads(__tstate); | |
4191 | if (PyErr_Occurred()) SWIG_fail; | |
4192 | } | |
4193 | { | |
4194 | wxRealPoint * resultptr; | |
093d3ff1 | 4195 | resultptr = new wxRealPoint((wxRealPoint &)(result)); |
d55e5bfc RD |
4196 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
4197 | } | |
4198 | return resultobj; | |
4199 | fail: | |
4200 | return NULL; | |
4201 | } | |
4202 | ||
4203 | ||
c32bde28 | 4204 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4205 | PyObject *resultobj; |
4206 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4207 | wxRealPoint *arg2 = 0 ; | |
4208 | wxRealPoint result; | |
4209 | wxRealPoint temp2 ; | |
4210 | PyObject * obj0 = 0 ; | |
4211 | PyObject * obj1 = 0 ; | |
4212 | char *kwnames[] = { | |
4213 | (char *) "self",(char *) "pt", NULL | |
4214 | }; | |
4215 | ||
4216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4219 | { |
4220 | arg2 = &temp2; | |
4221 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4222 | } | |
4223 | { | |
4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4225 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
4226 | ||
4227 | wxPyEndAllowThreads(__tstate); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
4229 | } | |
4230 | { | |
4231 | wxRealPoint * resultptr; | |
093d3ff1 | 4232 | resultptr = new wxRealPoint((wxRealPoint &)(result)); |
d55e5bfc RD |
4233 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
4234 | } | |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
c32bde28 | 4241 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4242 | PyObject *resultobj; |
4243 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4244 | double arg2 ; | |
4245 | double arg3 ; | |
4246 | PyObject * obj0 = 0 ; | |
4247 | PyObject * obj1 = 0 ; | |
4248 | PyObject * obj2 = 0 ; | |
4249 | char *kwnames[] = { | |
4250 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4251 | }; | |
4252 | ||
4253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
4254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4256 | { | |
4257 | arg2 = (double)(SWIG_As_double(obj1)); | |
4258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4259 | } | |
4260 | { | |
4261 | arg3 = (double)(SWIG_As_double(obj2)); | |
4262 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4263 | } | |
d55e5bfc RD |
4264 | { |
4265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4266 | wxRealPoint_Set(arg1,arg2,arg3); | |
4267 | ||
4268 | wxPyEndAllowThreads(__tstate); | |
4269 | if (PyErr_Occurred()) SWIG_fail; | |
4270 | } | |
4271 | Py_INCREF(Py_None); resultobj = Py_None; | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | return NULL; | |
4275 | } | |
4276 | ||
4277 | ||
c32bde28 | 4278 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4279 | PyObject *resultobj; |
4280 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4281 | PyObject *result; | |
4282 | PyObject * obj0 = 0 ; | |
4283 | char *kwnames[] = { | |
4284 | (char *) "self", NULL | |
4285 | }; | |
4286 | ||
4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4290 | { |
4291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4292 | result = (PyObject *)wxRealPoint_Get(arg1); | |
4293 | ||
4294 | wxPyEndAllowThreads(__tstate); | |
4295 | if (PyErr_Occurred()) SWIG_fail; | |
4296 | } | |
4297 | resultobj = result; | |
4298 | return resultobj; | |
4299 | fail: | |
4300 | return NULL; | |
4301 | } | |
4302 | ||
4303 | ||
c32bde28 | 4304 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4305 | PyObject *obj; |
4306 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4307 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
4308 | Py_INCREF(obj); | |
4309 | return Py_BuildValue((char *)""); | |
4310 | } | |
c32bde28 | 4311 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4312 | PyObject *resultobj; |
4313 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4314 | int arg2 ; | |
4315 | PyObject * obj0 = 0 ; | |
4316 | PyObject * obj1 = 0 ; | |
4317 | char *kwnames[] = { | |
4318 | (char *) "self",(char *) "x", NULL | |
4319 | }; | |
4320 | ||
4321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4322 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4323 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4324 | { | |
4325 | arg2 = (int)(SWIG_As_int(obj1)); | |
4326 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4327 | } | |
d55e5bfc RD |
4328 | if (arg1) (arg1)->x = arg2; |
4329 | ||
4330 | Py_INCREF(Py_None); resultobj = Py_None; | |
4331 | return resultobj; | |
4332 | fail: | |
4333 | return NULL; | |
4334 | } | |
4335 | ||
4336 | ||
c32bde28 | 4337 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4338 | PyObject *resultobj; |
4339 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4340 | int result; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | char *kwnames[] = { | |
4343 | (char *) "self", NULL | |
4344 | }; | |
4345 | ||
4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4349 | result = (int) ((arg1)->x); |
4350 | ||
093d3ff1 RD |
4351 | { |
4352 | resultobj = SWIG_From_int((int)(result)); | |
4353 | } | |
d55e5bfc RD |
4354 | return resultobj; |
4355 | fail: | |
4356 | return NULL; | |
4357 | } | |
4358 | ||
4359 | ||
c32bde28 | 4360 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4361 | PyObject *resultobj; |
4362 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4363 | int arg2 ; | |
4364 | PyObject * obj0 = 0 ; | |
4365 | PyObject * obj1 = 0 ; | |
4366 | char *kwnames[] = { | |
4367 | (char *) "self",(char *) "y", NULL | |
4368 | }; | |
4369 | ||
4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4373 | { | |
4374 | arg2 = (int)(SWIG_As_int(obj1)); | |
4375 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4376 | } | |
d55e5bfc RD |
4377 | if (arg1) (arg1)->y = arg2; |
4378 | ||
4379 | Py_INCREF(Py_None); resultobj = Py_None; | |
4380 | return resultobj; | |
4381 | fail: | |
4382 | return NULL; | |
4383 | } | |
4384 | ||
4385 | ||
c32bde28 | 4386 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4387 | PyObject *resultobj; |
4388 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4389 | int result; | |
4390 | PyObject * obj0 = 0 ; | |
4391 | char *kwnames[] = { | |
4392 | (char *) "self", NULL | |
4393 | }; | |
4394 | ||
4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4398 | result = (int) ((arg1)->y); |
4399 | ||
093d3ff1 RD |
4400 | { |
4401 | resultobj = SWIG_From_int((int)(result)); | |
4402 | } | |
d55e5bfc RD |
4403 | return resultobj; |
4404 | fail: | |
4405 | return NULL; | |
4406 | } | |
4407 | ||
4408 | ||
c32bde28 | 4409 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4410 | PyObject *resultobj; |
4411 | int arg1 = (int) 0 ; | |
4412 | int arg2 = (int) 0 ; | |
4413 | wxPoint *result; | |
4414 | PyObject * obj0 = 0 ; | |
4415 | PyObject * obj1 = 0 ; | |
4416 | char *kwnames[] = { | |
4417 | (char *) "x",(char *) "y", NULL | |
4418 | }; | |
4419 | ||
4420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
4421 | if (obj0) { | |
093d3ff1 RD |
4422 | { |
4423 | arg1 = (int)(SWIG_As_int(obj0)); | |
4424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4425 | } | |
d55e5bfc RD |
4426 | } |
4427 | if (obj1) { | |
093d3ff1 RD |
4428 | { |
4429 | arg2 = (int)(SWIG_As_int(obj1)); | |
4430 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4431 | } | |
d55e5bfc RD |
4432 | } |
4433 | { | |
4434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4435 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
4436 | ||
4437 | wxPyEndAllowThreads(__tstate); | |
4438 | if (PyErr_Occurred()) SWIG_fail; | |
4439 | } | |
4440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
4441 | return resultobj; | |
4442 | fail: | |
4443 | return NULL; | |
4444 | } | |
4445 | ||
4446 | ||
c32bde28 | 4447 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4448 | PyObject *resultobj; |
4449 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4450 | PyObject * obj0 = 0 ; | |
4451 | char *kwnames[] = { | |
4452 | (char *) "self", NULL | |
4453 | }; | |
4454 | ||
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4458 | { |
4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4460 | delete arg1; | |
4461 | ||
4462 | wxPyEndAllowThreads(__tstate); | |
4463 | if (PyErr_Occurred()) SWIG_fail; | |
4464 | } | |
4465 | Py_INCREF(Py_None); resultobj = Py_None; | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | return NULL; | |
4469 | } | |
4470 | ||
4471 | ||
c32bde28 | 4472 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4473 | PyObject *resultobj; |
4474 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4475 | wxPoint *arg2 = 0 ; | |
4476 | bool result; | |
4477 | wxPoint temp2 ; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | PyObject * obj1 = 0 ; | |
4480 | char *kwnames[] = { | |
4481 | (char *) "self",(char *) "pt", NULL | |
4482 | }; | |
4483 | ||
4484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4487 | { |
4488 | arg2 = &temp2; | |
4489 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4490 | } | |
4491 | { | |
4492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4493 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
4494 | ||
4495 | wxPyEndAllowThreads(__tstate); | |
4496 | if (PyErr_Occurred()) SWIG_fail; | |
4497 | } | |
4498 | { | |
4499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4500 | } | |
4501 | return resultobj; | |
4502 | fail: | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
c32bde28 | 4507 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4508 | PyObject *resultobj; |
4509 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4510 | wxPoint *arg2 = 0 ; | |
4511 | bool result; | |
4512 | wxPoint temp2 ; | |
4513 | PyObject * obj0 = 0 ; | |
4514 | PyObject * obj1 = 0 ; | |
4515 | char *kwnames[] = { | |
4516 | (char *) "self",(char *) "pt", NULL | |
4517 | }; | |
4518 | ||
4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4522 | { |
4523 | arg2 = &temp2; | |
4524 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4525 | } | |
4526 | { | |
4527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4528 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
4529 | ||
4530 | wxPyEndAllowThreads(__tstate); | |
4531 | if (PyErr_Occurred()) SWIG_fail; | |
4532 | } | |
4533 | { | |
4534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4535 | } | |
4536 | return resultobj; | |
4537 | fail: | |
4538 | return NULL; | |
4539 | } | |
4540 | ||
4541 | ||
c32bde28 | 4542 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4543 | PyObject *resultobj; |
4544 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4545 | wxPoint *arg2 = 0 ; | |
4546 | wxPoint result; | |
4547 | wxPoint temp2 ; | |
4548 | PyObject * obj0 = 0 ; | |
4549 | PyObject * obj1 = 0 ; | |
4550 | char *kwnames[] = { | |
4551 | (char *) "self",(char *) "pt", NULL | |
4552 | }; | |
4553 | ||
4554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4555 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4556 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4557 | { |
4558 | arg2 = &temp2; | |
4559 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4560 | } | |
4561 | { | |
4562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4563 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
4564 | ||
4565 | wxPyEndAllowThreads(__tstate); | |
4566 | if (PyErr_Occurred()) SWIG_fail; | |
4567 | } | |
4568 | { | |
4569 | wxPoint * resultptr; | |
093d3ff1 | 4570 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
4571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
4572 | } | |
4573 | return resultobj; | |
4574 | fail: | |
4575 | return NULL; | |
4576 | } | |
4577 | ||
4578 | ||
c32bde28 | 4579 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4580 | PyObject *resultobj; |
4581 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4582 | wxPoint *arg2 = 0 ; | |
4583 | wxPoint result; | |
4584 | wxPoint temp2 ; | |
4585 | PyObject * obj0 = 0 ; | |
4586 | PyObject * obj1 = 0 ; | |
4587 | char *kwnames[] = { | |
4588 | (char *) "self",(char *) "pt", NULL | |
4589 | }; | |
4590 | ||
4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4594 | { |
4595 | arg2 = &temp2; | |
4596 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4597 | } | |
4598 | { | |
4599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4600 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
4601 | ||
4602 | wxPyEndAllowThreads(__tstate); | |
4603 | if (PyErr_Occurred()) SWIG_fail; | |
4604 | } | |
4605 | { | |
4606 | wxPoint * resultptr; | |
093d3ff1 | 4607 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
4608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
4609 | } | |
4610 | return resultobj; | |
4611 | fail: | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
c32bde28 | 4616 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4617 | PyObject *resultobj; |
4618 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4619 | wxPoint *arg2 = 0 ; | |
4620 | wxPoint *result; | |
4621 | wxPoint temp2 ; | |
4622 | PyObject * obj0 = 0 ; | |
4623 | PyObject * obj1 = 0 ; | |
4624 | char *kwnames[] = { | |
4625 | (char *) "self",(char *) "pt", NULL | |
4626 | }; | |
4627 | ||
4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
4630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4631 | { |
4632 | arg2 = &temp2; | |
4633 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4634 | } | |
4635 | { | |
4636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4637 | { | |
4638 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
4639 | result = (wxPoint *) &_result_ref; | |
4640 | } | |
4641 | ||
4642 | wxPyEndAllowThreads(__tstate); | |
4643 | if (PyErr_Occurred()) SWIG_fail; | |
4644 | } | |
c32bde28 | 4645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
4646 | return resultobj; |
4647 | fail: | |
4648 | return NULL; | |
4649 | } | |
4650 | ||
4651 | ||
c32bde28 | 4652 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4653 | PyObject *resultobj; |
4654 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4655 | wxPoint *arg2 = 0 ; | |
4656 | wxPoint *result; | |
4657 | wxPoint temp2 ; | |
4658 | PyObject * obj0 = 0 ; | |
4659 | PyObject * obj1 = 0 ; | |
4660 | char *kwnames[] = { | |
4661 | (char *) "self",(char *) "pt", NULL | |
4662 | }; | |
4663 | ||
4664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
4666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4667 | { |
4668 | arg2 = &temp2; | |
4669 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4670 | } | |
4671 | { | |
4672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4673 | { | |
4674 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
4675 | result = (wxPoint *) &_result_ref; | |
4676 | } | |
4677 | ||
4678 | wxPyEndAllowThreads(__tstate); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | } | |
c32bde28 | 4681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
4682 | return resultobj; |
4683 | fail: | |
4684 | return NULL; | |
4685 | } | |
4686 | ||
4687 | ||
c32bde28 | 4688 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4689 | PyObject *resultobj; |
4690 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4691 | long arg2 ; | |
4692 | long arg3 ; | |
4693 | PyObject * obj0 = 0 ; | |
4694 | PyObject * obj1 = 0 ; | |
4695 | PyObject * obj2 = 0 ; | |
4696 | char *kwnames[] = { | |
4697 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4698 | }; | |
4699 | ||
4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
4701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4703 | { | |
4704 | arg2 = (long)(SWIG_As_long(obj1)); | |
4705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4706 | } | |
4707 | { | |
4708 | arg3 = (long)(SWIG_As_long(obj2)); | |
4709 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4710 | } | |
d55e5bfc RD |
4711 | { |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4713 | wxPoint_Set(arg1,arg2,arg3); | |
4714 | ||
4715 | wxPyEndAllowThreads(__tstate); | |
4716 | if (PyErr_Occurred()) SWIG_fail; | |
4717 | } | |
4718 | Py_INCREF(Py_None); resultobj = Py_None; | |
4719 | return resultobj; | |
4720 | fail: | |
4721 | return NULL; | |
4722 | } | |
4723 | ||
4724 | ||
c32bde28 | 4725 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4726 | PyObject *resultobj; |
4727 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4728 | PyObject *result; | |
4729 | PyObject * obj0 = 0 ; | |
4730 | char *kwnames[] = { | |
4731 | (char *) "self", NULL | |
4732 | }; | |
4733 | ||
4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4737 | { |
4738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4739 | result = (PyObject *)wxPoint_Get(arg1); | |
4740 | ||
4741 | wxPyEndAllowThreads(__tstate); | |
4742 | if (PyErr_Occurred()) SWIG_fail; | |
4743 | } | |
4744 | resultobj = result; | |
4745 | return resultobj; | |
4746 | fail: | |
4747 | return NULL; | |
4748 | } | |
4749 | ||
4750 | ||
c32bde28 | 4751 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4752 | PyObject *obj; |
4753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4754 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
4755 | Py_INCREF(obj); | |
4756 | return Py_BuildValue((char *)""); | |
4757 | } | |
c32bde28 | 4758 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4759 | PyObject *resultobj; |
4760 | int arg1 = (int) 0 ; | |
4761 | int arg2 = (int) 0 ; | |
4762 | int arg3 = (int) 0 ; | |
4763 | int arg4 = (int) 0 ; | |
4764 | wxRect *result; | |
4765 | PyObject * obj0 = 0 ; | |
4766 | PyObject * obj1 = 0 ; | |
4767 | PyObject * obj2 = 0 ; | |
4768 | PyObject * obj3 = 0 ; | |
4769 | char *kwnames[] = { | |
4770 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4771 | }; | |
4772 | ||
4773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4774 | if (obj0) { | |
093d3ff1 RD |
4775 | { |
4776 | arg1 = (int)(SWIG_As_int(obj0)); | |
4777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4778 | } | |
d55e5bfc RD |
4779 | } |
4780 | if (obj1) { | |
093d3ff1 RD |
4781 | { |
4782 | arg2 = (int)(SWIG_As_int(obj1)); | |
4783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4784 | } | |
d55e5bfc RD |
4785 | } |
4786 | if (obj2) { | |
093d3ff1 RD |
4787 | { |
4788 | arg3 = (int)(SWIG_As_int(obj2)); | |
4789 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4790 | } | |
d55e5bfc RD |
4791 | } |
4792 | if (obj3) { | |
093d3ff1 RD |
4793 | { |
4794 | arg4 = (int)(SWIG_As_int(obj3)); | |
4795 | if (SWIG_arg_fail(4)) SWIG_fail; | |
4796 | } | |
d55e5bfc RD |
4797 | } |
4798 | { | |
4799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4800 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
4801 | ||
4802 | wxPyEndAllowThreads(__tstate); | |
4803 | if (PyErr_Occurred()) SWIG_fail; | |
4804 | } | |
4805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4806 | return resultobj; | |
4807 | fail: | |
4808 | return NULL; | |
4809 | } | |
4810 | ||
4811 | ||
c32bde28 | 4812 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4813 | PyObject *resultobj; |
4814 | wxPoint *arg1 = 0 ; | |
4815 | wxPoint *arg2 = 0 ; | |
4816 | wxRect *result; | |
4817 | wxPoint temp1 ; | |
4818 | wxPoint temp2 ; | |
4819 | PyObject * obj0 = 0 ; | |
4820 | PyObject * obj1 = 0 ; | |
4821 | char *kwnames[] = { | |
4822 | (char *) "topLeft",(char *) "bottomRight", NULL | |
4823 | }; | |
4824 | ||
4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
4826 | { | |
4827 | arg1 = &temp1; | |
4828 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4829 | } | |
4830 | { | |
4831 | arg2 = &temp2; | |
4832 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4833 | } | |
4834 | { | |
4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4836 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
4837 | ||
4838 | wxPyEndAllowThreads(__tstate); | |
4839 | if (PyErr_Occurred()) SWIG_fail; | |
4840 | } | |
4841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4842 | return resultobj; | |
4843 | fail: | |
4844 | return NULL; | |
4845 | } | |
4846 | ||
4847 | ||
c32bde28 | 4848 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4849 | PyObject *resultobj; |
4850 | wxPoint *arg1 = 0 ; | |
4851 | wxSize *arg2 = 0 ; | |
4852 | wxRect *result; | |
4853 | wxPoint temp1 ; | |
4854 | wxSize temp2 ; | |
4855 | PyObject * obj0 = 0 ; | |
4856 | PyObject * obj1 = 0 ; | |
4857 | char *kwnames[] = { | |
4858 | (char *) "pos",(char *) "size", NULL | |
4859 | }; | |
4860 | ||
4861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
4862 | { | |
4863 | arg1 = &temp1; | |
4864 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4865 | } | |
4866 | { | |
4867 | arg2 = &temp2; | |
4868 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4869 | } | |
4870 | { | |
4871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4872 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
4873 | ||
4874 | wxPyEndAllowThreads(__tstate); | |
4875 | if (PyErr_Occurred()) SWIG_fail; | |
4876 | } | |
4877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4878 | return resultobj; | |
4879 | fail: | |
4880 | return NULL; | |
4881 | } | |
4882 | ||
4883 | ||
c1cb24a4 RD |
4884 | static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) { |
4885 | PyObject *resultobj; | |
4886 | wxSize *arg1 = 0 ; | |
4887 | wxRect *result; | |
4888 | wxSize temp1 ; | |
4889 | PyObject * obj0 = 0 ; | |
4890 | char *kwnames[] = { | |
4891 | (char *) "size", NULL | |
4892 | }; | |
4893 | ||
4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail; | |
4895 | { | |
4896 | arg1 = &temp1; | |
4897 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
4898 | } | |
4899 | { | |
4900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4901 | result = (wxRect *)new wxRect((wxSize const &)*arg1); | |
4902 | ||
4903 | wxPyEndAllowThreads(__tstate); | |
4904 | if (PyErr_Occurred()) SWIG_fail; | |
4905 | } | |
4906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4907 | return resultobj; | |
4908 | fail: | |
4909 | return NULL; | |
4910 | } | |
4911 | ||
4912 | ||
c32bde28 | 4913 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4914 | PyObject *resultobj; |
4915 | wxRect *arg1 = (wxRect *) 0 ; | |
4916 | PyObject * obj0 = 0 ; | |
4917 | char *kwnames[] = { | |
4918 | (char *) "self", NULL | |
4919 | }; | |
4920 | ||
4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4924 | { |
4925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4926 | delete arg1; | |
4927 | ||
4928 | wxPyEndAllowThreads(__tstate); | |
4929 | if (PyErr_Occurred()) SWIG_fail; | |
4930 | } | |
4931 | Py_INCREF(Py_None); resultobj = Py_None; | |
4932 | return resultobj; | |
4933 | fail: | |
4934 | return NULL; | |
4935 | } | |
4936 | ||
4937 | ||
c32bde28 | 4938 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4939 | PyObject *resultobj; |
4940 | wxRect *arg1 = (wxRect *) 0 ; | |
4941 | int result; | |
4942 | PyObject * obj0 = 0 ; | |
4943 | char *kwnames[] = { | |
4944 | (char *) "self", NULL | |
4945 | }; | |
4946 | ||
4947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4950 | { |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | result = (int)((wxRect const *)arg1)->GetX(); | |
4953 | ||
4954 | wxPyEndAllowThreads(__tstate); | |
4955 | if (PyErr_Occurred()) SWIG_fail; | |
4956 | } | |
093d3ff1 RD |
4957 | { |
4958 | resultobj = SWIG_From_int((int)(result)); | |
4959 | } | |
d55e5bfc RD |
4960 | return resultobj; |
4961 | fail: | |
4962 | return NULL; | |
4963 | } | |
4964 | ||
4965 | ||
c32bde28 | 4966 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4967 | PyObject *resultobj; |
4968 | wxRect *arg1 = (wxRect *) 0 ; | |
4969 | int arg2 ; | |
4970 | PyObject * obj0 = 0 ; | |
4971 | PyObject * obj1 = 0 ; | |
4972 | char *kwnames[] = { | |
4973 | (char *) "self",(char *) "x", NULL | |
4974 | }; | |
4975 | ||
4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4979 | { | |
4980 | arg2 = (int)(SWIG_As_int(obj1)); | |
4981 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4982 | } | |
d55e5bfc RD |
4983 | { |
4984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4985 | (arg1)->SetX(arg2); | |
4986 | ||
4987 | wxPyEndAllowThreads(__tstate); | |
4988 | if (PyErr_Occurred()) SWIG_fail; | |
4989 | } | |
4990 | Py_INCREF(Py_None); resultobj = Py_None; | |
4991 | return resultobj; | |
4992 | fail: | |
4993 | return NULL; | |
4994 | } | |
4995 | ||
4996 | ||
c32bde28 | 4997 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4998 | PyObject *resultobj; |
4999 | wxRect *arg1 = (wxRect *) 0 ; | |
5000 | int result; | |
5001 | PyObject * obj0 = 0 ; | |
5002 | char *kwnames[] = { | |
5003 | (char *) "self", NULL | |
5004 | }; | |
5005 | ||
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5009 | { |
5010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5011 | result = (int)(arg1)->GetY(); | |
5012 | ||
5013 | wxPyEndAllowThreads(__tstate); | |
5014 | if (PyErr_Occurred()) SWIG_fail; | |
5015 | } | |
093d3ff1 RD |
5016 | { |
5017 | resultobj = SWIG_From_int((int)(result)); | |
5018 | } | |
d55e5bfc RD |
5019 | return resultobj; |
5020 | fail: | |
5021 | return NULL; | |
5022 | } | |
5023 | ||
5024 | ||
c32bde28 | 5025 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5026 | PyObject *resultobj; |
5027 | wxRect *arg1 = (wxRect *) 0 ; | |
5028 | int arg2 ; | |
5029 | PyObject * obj0 = 0 ; | |
5030 | PyObject * obj1 = 0 ; | |
5031 | char *kwnames[] = { | |
5032 | (char *) "self",(char *) "y", NULL | |
5033 | }; | |
5034 | ||
5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5038 | { | |
5039 | arg2 = (int)(SWIG_As_int(obj1)); | |
5040 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5041 | } | |
d55e5bfc RD |
5042 | { |
5043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5044 | (arg1)->SetY(arg2); | |
5045 | ||
5046 | wxPyEndAllowThreads(__tstate); | |
5047 | if (PyErr_Occurred()) SWIG_fail; | |
5048 | } | |
5049 | Py_INCREF(Py_None); resultobj = Py_None; | |
5050 | return resultobj; | |
5051 | fail: | |
5052 | return NULL; | |
5053 | } | |
5054 | ||
5055 | ||
c32bde28 | 5056 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5057 | PyObject *resultobj; |
5058 | wxRect *arg1 = (wxRect *) 0 ; | |
5059 | int result; | |
5060 | PyObject * obj0 = 0 ; | |
5061 | char *kwnames[] = { | |
5062 | (char *) "self", NULL | |
5063 | }; | |
5064 | ||
5065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5068 | { |
5069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5070 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
5071 | ||
5072 | wxPyEndAllowThreads(__tstate); | |
5073 | if (PyErr_Occurred()) SWIG_fail; | |
5074 | } | |
093d3ff1 RD |
5075 | { |
5076 | resultobj = SWIG_From_int((int)(result)); | |
5077 | } | |
d55e5bfc RD |
5078 | return resultobj; |
5079 | fail: | |
5080 | return NULL; | |
5081 | } | |
5082 | ||
5083 | ||
c32bde28 | 5084 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5085 | PyObject *resultobj; |
5086 | wxRect *arg1 = (wxRect *) 0 ; | |
5087 | int arg2 ; | |
5088 | PyObject * obj0 = 0 ; | |
5089 | PyObject * obj1 = 0 ; | |
5090 | char *kwnames[] = { | |
5091 | (char *) "self",(char *) "w", NULL | |
5092 | }; | |
5093 | ||
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5097 | { | |
5098 | arg2 = (int)(SWIG_As_int(obj1)); | |
5099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5100 | } | |
d55e5bfc RD |
5101 | { |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | (arg1)->SetWidth(arg2); | |
5104 | ||
5105 | wxPyEndAllowThreads(__tstate); | |
5106 | if (PyErr_Occurred()) SWIG_fail; | |
5107 | } | |
5108 | Py_INCREF(Py_None); resultobj = Py_None; | |
5109 | return resultobj; | |
5110 | fail: | |
5111 | return NULL; | |
5112 | } | |
5113 | ||
5114 | ||
c32bde28 | 5115 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5116 | PyObject *resultobj; |
5117 | wxRect *arg1 = (wxRect *) 0 ; | |
5118 | int result; | |
5119 | PyObject * obj0 = 0 ; | |
5120 | char *kwnames[] = { | |
5121 | (char *) "self", NULL | |
5122 | }; | |
5123 | ||
5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5127 | { |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5129 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
5130 | ||
5131 | wxPyEndAllowThreads(__tstate); | |
5132 | if (PyErr_Occurred()) SWIG_fail; | |
5133 | } | |
093d3ff1 RD |
5134 | { |
5135 | resultobj = SWIG_From_int((int)(result)); | |
5136 | } | |
d55e5bfc RD |
5137 | return resultobj; |
5138 | fail: | |
5139 | return NULL; | |
5140 | } | |
5141 | ||
5142 | ||
c32bde28 | 5143 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5144 | PyObject *resultobj; |
5145 | wxRect *arg1 = (wxRect *) 0 ; | |
5146 | int arg2 ; | |
5147 | PyObject * obj0 = 0 ; | |
5148 | PyObject * obj1 = 0 ; | |
5149 | char *kwnames[] = { | |
5150 | (char *) "self",(char *) "h", NULL | |
5151 | }; | |
5152 | ||
5153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5156 | { | |
5157 | arg2 = (int)(SWIG_As_int(obj1)); | |
5158 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5159 | } | |
d55e5bfc RD |
5160 | { |
5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5162 | (arg1)->SetHeight(arg2); | |
5163 | ||
5164 | wxPyEndAllowThreads(__tstate); | |
5165 | if (PyErr_Occurred()) SWIG_fail; | |
5166 | } | |
5167 | Py_INCREF(Py_None); resultobj = Py_None; | |
5168 | return resultobj; | |
5169 | fail: | |
5170 | return NULL; | |
5171 | } | |
5172 | ||
5173 | ||
c32bde28 | 5174 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5175 | PyObject *resultobj; |
5176 | wxRect *arg1 = (wxRect *) 0 ; | |
5177 | wxPoint result; | |
5178 | PyObject * obj0 = 0 ; | |
5179 | char *kwnames[] = { | |
5180 | (char *) "self", NULL | |
5181 | }; | |
5182 | ||
5183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5186 | { |
5187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5188 | result = ((wxRect const *)arg1)->GetPosition(); | |
5189 | ||
5190 | wxPyEndAllowThreads(__tstate); | |
5191 | if (PyErr_Occurred()) SWIG_fail; | |
5192 | } | |
5193 | { | |
5194 | wxPoint * resultptr; | |
093d3ff1 | 5195 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
5196 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
5197 | } | |
5198 | return resultobj; | |
5199 | fail: | |
5200 | return NULL; | |
5201 | } | |
5202 | ||
5203 | ||
c32bde28 | 5204 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5205 | PyObject *resultobj; |
5206 | wxRect *arg1 = (wxRect *) 0 ; | |
5207 | wxPoint *arg2 = 0 ; | |
5208 | wxPoint temp2 ; | |
5209 | PyObject * obj0 = 0 ; | |
5210 | PyObject * obj1 = 0 ; | |
5211 | char *kwnames[] = { | |
5212 | (char *) "self",(char *) "p", NULL | |
5213 | }; | |
5214 | ||
5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5218 | { |
5219 | arg2 = &temp2; | |
5220 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5221 | } | |
5222 | { | |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
5225 | ||
5226 | wxPyEndAllowThreads(__tstate); | |
5227 | if (PyErr_Occurred()) SWIG_fail; | |
5228 | } | |
5229 | Py_INCREF(Py_None); resultobj = Py_None; | |
5230 | return resultobj; | |
5231 | fail: | |
5232 | return NULL; | |
5233 | } | |
5234 | ||
5235 | ||
c32bde28 | 5236 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5237 | PyObject *resultobj; |
5238 | wxRect *arg1 = (wxRect *) 0 ; | |
5239 | wxSize result; | |
5240 | PyObject * obj0 = 0 ; | |
5241 | char *kwnames[] = { | |
5242 | (char *) "self", NULL | |
5243 | }; | |
5244 | ||
5245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5248 | { |
5249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5250 | result = ((wxRect const *)arg1)->GetSize(); | |
5251 | ||
5252 | wxPyEndAllowThreads(__tstate); | |
5253 | if (PyErr_Occurred()) SWIG_fail; | |
5254 | } | |
5255 | { | |
5256 | wxSize * resultptr; | |
093d3ff1 | 5257 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
5258 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
5259 | } | |
5260 | return resultobj; | |
5261 | fail: | |
5262 | return NULL; | |
5263 | } | |
5264 | ||
5265 | ||
c32bde28 | 5266 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5267 | PyObject *resultobj; |
5268 | wxRect *arg1 = (wxRect *) 0 ; | |
5269 | wxSize *arg2 = 0 ; | |
5270 | wxSize temp2 ; | |
5271 | PyObject * obj0 = 0 ; | |
5272 | PyObject * obj1 = 0 ; | |
5273 | char *kwnames[] = { | |
5274 | (char *) "self",(char *) "s", NULL | |
5275 | }; | |
5276 | ||
5277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5280 | { |
5281 | arg2 = &temp2; | |
5282 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5283 | } | |
5284 | { | |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5286 | (arg1)->SetSize((wxSize const &)*arg2); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
5291 | Py_INCREF(Py_None); resultobj = Py_None; | |
5292 | return resultobj; | |
5293 | fail: | |
5294 | return NULL; | |
5295 | } | |
5296 | ||
5297 | ||
aff4cc5c RD |
5298 | static PyObject *_wrap_Rect_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
5299 | PyObject *resultobj; | |
5300 | wxRect *arg1 = (wxRect *) 0 ; | |
5301 | bool result; | |
5302 | PyObject * obj0 = 0 ; | |
5303 | char *kwnames[] = { | |
5304 | (char *) "self", NULL | |
5305 | }; | |
5306 | ||
5307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_IsEmpty",kwnames,&obj0)) goto fail; | |
5308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
5309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5310 | { | |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | result = (bool)((wxRect const *)arg1)->IsEmpty(); | |
5313 | ||
5314 | wxPyEndAllowThreads(__tstate); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | { | |
5318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5319 | } | |
5320 | return resultobj; | |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
c32bde28 | 5326 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5327 | PyObject *resultobj; |
5328 | wxRect *arg1 = (wxRect *) 0 ; | |
5329 | wxPoint result; | |
5330 | PyObject * obj0 = 0 ; | |
5331 | char *kwnames[] = { | |
5332 | (char *) "self", NULL | |
5333 | }; | |
5334 | ||
5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5338 | { |
5339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5340 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
5341 | ||
5342 | wxPyEndAllowThreads(__tstate); | |
5343 | if (PyErr_Occurred()) SWIG_fail; | |
5344 | } | |
5345 | { | |
5346 | wxPoint * resultptr; | |
093d3ff1 | 5347 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
5348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
5349 | } | |
5350 | return resultobj; | |
5351 | fail: | |
5352 | return NULL; | |
5353 | } | |
5354 | ||
5355 | ||
c32bde28 | 5356 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5357 | PyObject *resultobj; |
5358 | wxRect *arg1 = (wxRect *) 0 ; | |
5359 | wxPoint *arg2 = 0 ; | |
5360 | wxPoint temp2 ; | |
5361 | PyObject * obj0 = 0 ; | |
5362 | PyObject * obj1 = 0 ; | |
5363 | char *kwnames[] = { | |
5364 | (char *) "self",(char *) "p", NULL | |
5365 | }; | |
5366 | ||
5367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5370 | { |
5371 | arg2 = &temp2; | |
5372 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5373 | } | |
5374 | { | |
5375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5376 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
5377 | ||
5378 | wxPyEndAllowThreads(__tstate); | |
5379 | if (PyErr_Occurred()) SWIG_fail; | |
5380 | } | |
5381 | Py_INCREF(Py_None); resultobj = Py_None; | |
5382 | return resultobj; | |
5383 | fail: | |
5384 | return NULL; | |
5385 | } | |
5386 | ||
5387 | ||
c32bde28 | 5388 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5389 | PyObject *resultobj; |
5390 | wxRect *arg1 = (wxRect *) 0 ; | |
5391 | wxPoint result; | |
5392 | PyObject * obj0 = 0 ; | |
5393 | char *kwnames[] = { | |
5394 | (char *) "self", NULL | |
5395 | }; | |
5396 | ||
5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5400 | { |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5402 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
5403 | ||
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) SWIG_fail; | |
5406 | } | |
5407 | { | |
5408 | wxPoint * resultptr; | |
093d3ff1 | 5409 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
5410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
5411 | } | |
5412 | return resultobj; | |
5413 | fail: | |
5414 | return NULL; | |
5415 | } | |
5416 | ||
5417 | ||
c32bde28 | 5418 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5419 | PyObject *resultobj; |
5420 | wxRect *arg1 = (wxRect *) 0 ; | |
5421 | wxPoint *arg2 = 0 ; | |
5422 | wxPoint temp2 ; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | PyObject * obj1 = 0 ; | |
5425 | char *kwnames[] = { | |
5426 | (char *) "self",(char *) "p", NULL | |
5427 | }; | |
5428 | ||
5429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5432 | { |
5433 | arg2 = &temp2; | |
5434 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5435 | } | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | Py_INCREF(Py_None); resultobj = Py_None; | |
5444 | return resultobj; | |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
c32bde28 | 5450 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5451 | PyObject *resultobj; |
5452 | wxRect *arg1 = (wxRect *) 0 ; | |
5453 | int result; | |
5454 | PyObject * obj0 = 0 ; | |
5455 | char *kwnames[] = { | |
5456 | (char *) "self", NULL | |
5457 | }; | |
5458 | ||
5459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5462 | { |
5463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5464 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
5465 | ||
5466 | wxPyEndAllowThreads(__tstate); | |
5467 | if (PyErr_Occurred()) SWIG_fail; | |
5468 | } | |
093d3ff1 RD |
5469 | { |
5470 | resultobj = SWIG_From_int((int)(result)); | |
5471 | } | |
d55e5bfc RD |
5472 | return resultobj; |
5473 | fail: | |
5474 | return NULL; | |
5475 | } | |
5476 | ||
5477 | ||
c32bde28 | 5478 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5479 | PyObject *resultobj; |
5480 | wxRect *arg1 = (wxRect *) 0 ; | |
5481 | int result; | |
5482 | PyObject * obj0 = 0 ; | |
5483 | char *kwnames[] = { | |
5484 | (char *) "self", NULL | |
5485 | }; | |
5486 | ||
5487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5490 | { |
5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5492 | result = (int)((wxRect const *)arg1)->GetTop(); | |
5493 | ||
5494 | wxPyEndAllowThreads(__tstate); | |
5495 | if (PyErr_Occurred()) SWIG_fail; | |
5496 | } | |
093d3ff1 RD |
5497 | { |
5498 | resultobj = SWIG_From_int((int)(result)); | |
5499 | } | |
d55e5bfc RD |
5500 | return resultobj; |
5501 | fail: | |
5502 | return NULL; | |
5503 | } | |
5504 | ||
5505 | ||
c32bde28 | 5506 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5507 | PyObject *resultobj; |
5508 | wxRect *arg1 = (wxRect *) 0 ; | |
5509 | int result; | |
5510 | PyObject * obj0 = 0 ; | |
5511 | char *kwnames[] = { | |
5512 | (char *) "self", NULL | |
5513 | }; | |
5514 | ||
5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5518 | { |
5519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5520 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
5521 | ||
5522 | wxPyEndAllowThreads(__tstate); | |
5523 | if (PyErr_Occurred()) SWIG_fail; | |
5524 | } | |
093d3ff1 RD |
5525 | { |
5526 | resultobj = SWIG_From_int((int)(result)); | |
5527 | } | |
d55e5bfc RD |
5528 | return resultobj; |
5529 | fail: | |
5530 | return NULL; | |
5531 | } | |
5532 | ||
5533 | ||
c32bde28 | 5534 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5535 | PyObject *resultobj; |
5536 | wxRect *arg1 = (wxRect *) 0 ; | |
5537 | int result; | |
5538 | PyObject * obj0 = 0 ; | |
5539 | char *kwnames[] = { | |
5540 | (char *) "self", NULL | |
5541 | }; | |
5542 | ||
5543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5546 | { |
5547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5548 | result = (int)((wxRect const *)arg1)->GetRight(); | |
5549 | ||
5550 | wxPyEndAllowThreads(__tstate); | |
5551 | if (PyErr_Occurred()) SWIG_fail; | |
5552 | } | |
093d3ff1 RD |
5553 | { |
5554 | resultobj = SWIG_From_int((int)(result)); | |
5555 | } | |
d55e5bfc RD |
5556 | return resultobj; |
5557 | fail: | |
5558 | return NULL; | |
5559 | } | |
5560 | ||
5561 | ||
c32bde28 | 5562 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5563 | PyObject *resultobj; |
5564 | wxRect *arg1 = (wxRect *) 0 ; | |
5565 | int arg2 ; | |
5566 | PyObject * obj0 = 0 ; | |
5567 | PyObject * obj1 = 0 ; | |
5568 | char *kwnames[] = { | |
5569 | (char *) "self",(char *) "left", NULL | |
5570 | }; | |
5571 | ||
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5575 | { | |
5576 | arg2 = (int)(SWIG_As_int(obj1)); | |
5577 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5578 | } | |
d55e5bfc RD |
5579 | { |
5580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5581 | (arg1)->SetLeft(arg2); | |
5582 | ||
5583 | wxPyEndAllowThreads(__tstate); | |
5584 | if (PyErr_Occurred()) SWIG_fail; | |
5585 | } | |
5586 | Py_INCREF(Py_None); resultobj = Py_None; | |
5587 | return resultobj; | |
5588 | fail: | |
5589 | return NULL; | |
5590 | } | |
5591 | ||
5592 | ||
c32bde28 | 5593 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5594 | PyObject *resultobj; |
5595 | wxRect *arg1 = (wxRect *) 0 ; | |
5596 | int arg2 ; | |
5597 | PyObject * obj0 = 0 ; | |
5598 | PyObject * obj1 = 0 ; | |
5599 | char *kwnames[] = { | |
5600 | (char *) "self",(char *) "right", NULL | |
5601 | }; | |
5602 | ||
5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5606 | { | |
5607 | arg2 = (int)(SWIG_As_int(obj1)); | |
5608 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5609 | } | |
d55e5bfc RD |
5610 | { |
5611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5612 | (arg1)->SetRight(arg2); | |
5613 | ||
5614 | wxPyEndAllowThreads(__tstate); | |
5615 | if (PyErr_Occurred()) SWIG_fail; | |
5616 | } | |
5617 | Py_INCREF(Py_None); resultobj = Py_None; | |
5618 | return resultobj; | |
5619 | fail: | |
5620 | return NULL; | |
5621 | } | |
5622 | ||
5623 | ||
c32bde28 | 5624 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5625 | PyObject *resultobj; |
5626 | wxRect *arg1 = (wxRect *) 0 ; | |
5627 | int arg2 ; | |
5628 | PyObject * obj0 = 0 ; | |
5629 | PyObject * obj1 = 0 ; | |
5630 | char *kwnames[] = { | |
5631 | (char *) "self",(char *) "top", NULL | |
5632 | }; | |
5633 | ||
5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5635 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5636 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5637 | { | |
5638 | arg2 = (int)(SWIG_As_int(obj1)); | |
5639 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5640 | } | |
d55e5bfc RD |
5641 | { |
5642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5643 | (arg1)->SetTop(arg2); | |
5644 | ||
5645 | wxPyEndAllowThreads(__tstate); | |
5646 | if (PyErr_Occurred()) SWIG_fail; | |
5647 | } | |
5648 | Py_INCREF(Py_None); resultobj = Py_None; | |
5649 | return resultobj; | |
5650 | fail: | |
5651 | return NULL; | |
5652 | } | |
5653 | ||
5654 | ||
c32bde28 | 5655 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5656 | PyObject *resultobj; |
5657 | wxRect *arg1 = (wxRect *) 0 ; | |
5658 | int arg2 ; | |
5659 | PyObject * obj0 = 0 ; | |
5660 | PyObject * obj1 = 0 ; | |
5661 | char *kwnames[] = { | |
5662 | (char *) "self",(char *) "bottom", NULL | |
5663 | }; | |
5664 | ||
5665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5666 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5667 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5668 | { | |
5669 | arg2 = (int)(SWIG_As_int(obj1)); | |
5670 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5671 | } | |
d55e5bfc RD |
5672 | { |
5673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5674 | (arg1)->SetBottom(arg2); | |
5675 | ||
5676 | wxPyEndAllowThreads(__tstate); | |
5677 | if (PyErr_Occurred()) SWIG_fail; | |
5678 | } | |
5679 | Py_INCREF(Py_None); resultobj = Py_None; | |
5680 | return resultobj; | |
5681 | fail: | |
5682 | return NULL; | |
5683 | } | |
5684 | ||
5685 | ||
c32bde28 | 5686 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5687 | PyObject *resultobj; |
5688 | wxRect *arg1 = (wxRect *) 0 ; | |
5689 | int arg2 ; | |
5690 | int arg3 ; | |
5691 | wxRect *result; | |
5692 | PyObject * obj0 = 0 ; | |
5693 | PyObject * obj1 = 0 ; | |
5694 | PyObject * obj2 = 0 ; | |
5695 | char *kwnames[] = { | |
5696 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5697 | }; | |
5698 | ||
5699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5702 | { | |
5703 | arg2 = (int)(SWIG_As_int(obj1)); | |
5704 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5705 | } | |
5706 | { | |
5707 | arg3 = (int)(SWIG_As_int(obj2)); | |
5708 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5709 | } | |
d55e5bfc RD |
5710 | { |
5711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5712 | { | |
5713 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
5714 | result = (wxRect *) &_result_ref; | |
5715 | } | |
5716 | ||
5717 | wxPyEndAllowThreads(__tstate); | |
5718 | if (PyErr_Occurred()) SWIG_fail; | |
5719 | } | |
5720 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
5721 | return resultobj; | |
5722 | fail: | |
5723 | return NULL; | |
5724 | } | |
5725 | ||
5726 | ||
c32bde28 | 5727 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5728 | PyObject *resultobj; |
5729 | wxRect *arg1 = (wxRect *) 0 ; | |
5730 | int arg2 ; | |
5731 | int arg3 ; | |
5732 | wxRect *result; | |
5733 | PyObject * obj0 = 0 ; | |
5734 | PyObject * obj1 = 0 ; | |
5735 | PyObject * obj2 = 0 ; | |
5736 | char *kwnames[] = { | |
5737 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5738 | }; | |
5739 | ||
5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5743 | { | |
5744 | arg2 = (int)(SWIG_As_int(obj1)); | |
5745 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5746 | } | |
5747 | { | |
5748 | arg3 = (int)(SWIG_As_int(obj2)); | |
5749 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5750 | } | |
d55e5bfc RD |
5751 | { |
5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5753 | { | |
5754 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
5755 | result = (wxRect *) &_result_ref; | |
5756 | } | |
5757 | ||
5758 | wxPyEndAllowThreads(__tstate); | |
5759 | if (PyErr_Occurred()) SWIG_fail; | |
5760 | } | |
5761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
5762 | return resultobj; | |
5763 | fail: | |
5764 | return NULL; | |
5765 | } | |
5766 | ||
5767 | ||
c32bde28 | 5768 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5769 | PyObject *resultobj; |
5770 | wxRect *arg1 = (wxRect *) 0 ; | |
5771 | int arg2 ; | |
5772 | int arg3 ; | |
5773 | PyObject * obj0 = 0 ; | |
5774 | PyObject * obj1 = 0 ; | |
5775 | PyObject * obj2 = 0 ; | |
5776 | char *kwnames[] = { | |
5777 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5778 | }; | |
5779 | ||
5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5783 | { | |
5784 | arg2 = (int)(SWIG_As_int(obj1)); | |
5785 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5786 | } | |
5787 | { | |
5788 | arg3 = (int)(SWIG_As_int(obj2)); | |
5789 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5790 | } | |
d55e5bfc RD |
5791 | { |
5792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5793 | (arg1)->Offset(arg2,arg3); | |
5794 | ||
5795 | wxPyEndAllowThreads(__tstate); | |
5796 | if (PyErr_Occurred()) SWIG_fail; | |
5797 | } | |
5798 | Py_INCREF(Py_None); resultobj = Py_None; | |
5799 | return resultobj; | |
5800 | fail: | |
5801 | return NULL; | |
5802 | } | |
5803 | ||
5804 | ||
c32bde28 | 5805 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5806 | PyObject *resultobj; |
5807 | wxRect *arg1 = (wxRect *) 0 ; | |
5808 | wxPoint *arg2 = 0 ; | |
5809 | wxPoint temp2 ; | |
5810 | PyObject * obj0 = 0 ; | |
5811 | PyObject * obj1 = 0 ; | |
5812 | char *kwnames[] = { | |
5813 | (char *) "self",(char *) "pt", NULL | |
5814 | }; | |
5815 | ||
5816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5819 | { |
5820 | arg2 = &temp2; | |
5821 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5822 | } | |
5823 | { | |
5824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5825 | (arg1)->Offset((wxPoint const &)*arg2); | |
5826 | ||
5827 | wxPyEndAllowThreads(__tstate); | |
5828 | if (PyErr_Occurred()) SWIG_fail; | |
5829 | } | |
5830 | Py_INCREF(Py_None); resultobj = Py_None; | |
5831 | return resultobj; | |
5832 | fail: | |
5833 | return NULL; | |
5834 | } | |
5835 | ||
5836 | ||
c32bde28 | 5837 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5838 | PyObject *resultobj; |
5839 | wxRect *arg1 = (wxRect *) 0 ; | |
5840 | wxRect *arg2 = 0 ; | |
b519803b | 5841 | wxRect result; |
d55e5bfc RD |
5842 | wxRect temp2 ; |
5843 | PyObject * obj0 = 0 ; | |
5844 | PyObject * obj1 = 0 ; | |
5845 | char *kwnames[] = { | |
5846 | (char *) "self",(char *) "rect", NULL | |
5847 | }; | |
5848 | ||
5849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5850 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5851 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5852 | { |
5853 | arg2 = &temp2; | |
5854 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5855 | } | |
5856 | { | |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b519803b | 5858 | result = (arg1)->Intersect((wxRect const &)*arg2); |
d55e5bfc RD |
5859 | |
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | } | |
b519803b RD |
5863 | { |
5864 | wxRect * resultptr; | |
093d3ff1 | 5865 | resultptr = new wxRect((wxRect &)(result)); |
b519803b RD |
5866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5867 | } | |
5868 | return resultobj; | |
5869 | fail: | |
5870 | return NULL; | |
5871 | } | |
5872 | ||
5873 | ||
5874 | static PyObject *_wrap_Rect_Union(PyObject *, PyObject *args, PyObject *kwargs) { | |
5875 | PyObject *resultobj; | |
5876 | wxRect *arg1 = (wxRect *) 0 ; | |
5877 | wxRect *arg2 = 0 ; | |
5878 | wxRect result; | |
5879 | wxRect temp2 ; | |
5880 | PyObject * obj0 = 0 ; | |
5881 | PyObject * obj1 = 0 ; | |
5882 | char *kwnames[] = { | |
5883 | (char *) "self",(char *) "rect", NULL | |
5884 | }; | |
5885 | ||
5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5889 | { |
5890 | arg2 = &temp2; | |
5891 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5892 | } | |
5893 | { | |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5895 | result = (arg1)->Union((wxRect const &)*arg2); | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | } | |
5900 | { | |
5901 | wxRect * resultptr; | |
093d3ff1 | 5902 | resultptr = new wxRect((wxRect &)(result)); |
b519803b RD |
5903 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5904 | } | |
d55e5bfc RD |
5905 | return resultobj; |
5906 | fail: | |
5907 | return NULL; | |
5908 | } | |
5909 | ||
5910 | ||
c32bde28 | 5911 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5912 | PyObject *resultobj; |
5913 | wxRect *arg1 = (wxRect *) 0 ; | |
5914 | wxRect *arg2 = 0 ; | |
5915 | wxRect result; | |
5916 | wxRect temp2 ; | |
5917 | PyObject * obj0 = 0 ; | |
5918 | PyObject * obj1 = 0 ; | |
5919 | char *kwnames[] = { | |
5920 | (char *) "self",(char *) "rect", NULL | |
5921 | }; | |
5922 | ||
5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5926 | { |
5927 | arg2 = &temp2; | |
5928 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5929 | } | |
5930 | { | |
5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5932 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
5933 | ||
5934 | wxPyEndAllowThreads(__tstate); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | } | |
5937 | { | |
5938 | wxRect * resultptr; | |
093d3ff1 | 5939 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
5940 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5941 | } | |
5942 | return resultobj; | |
5943 | fail: | |
5944 | return NULL; | |
5945 | } | |
5946 | ||
5947 | ||
c32bde28 | 5948 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5949 | PyObject *resultobj; |
5950 | wxRect *arg1 = (wxRect *) 0 ; | |
5951 | wxRect *arg2 = 0 ; | |
5952 | wxRect *result; | |
5953 | wxRect temp2 ; | |
5954 | PyObject * obj0 = 0 ; | |
5955 | PyObject * obj1 = 0 ; | |
5956 | char *kwnames[] = { | |
5957 | (char *) "self",(char *) "rect", NULL | |
5958 | }; | |
5959 | ||
5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
5962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5963 | { |
5964 | arg2 = &temp2; | |
5965 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5966 | } | |
5967 | { | |
5968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5969 | { | |
5970 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
5971 | result = (wxRect *) &_result_ref; | |
5972 | } | |
5973 | ||
5974 | wxPyEndAllowThreads(__tstate); | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | } | |
c32bde28 | 5977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d55e5bfc RD |
5978 | return resultobj; |
5979 | fail: | |
5980 | return NULL; | |
5981 | } | |
5982 | ||
5983 | ||
c32bde28 | 5984 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5985 | PyObject *resultobj; |
5986 | wxRect *arg1 = (wxRect *) 0 ; | |
5987 | wxRect *arg2 = 0 ; | |
5988 | bool result; | |
5989 | wxRect temp2 ; | |
5990 | PyObject * obj0 = 0 ; | |
5991 | PyObject * obj1 = 0 ; | |
5992 | char *kwnames[] = { | |
5993 | (char *) "self",(char *) "rect", NULL | |
5994 | }; | |
5995 | ||
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5999 | { |
6000 | arg2 = &temp2; | |
6001 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6002 | } | |
6003 | { | |
6004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6005 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
6006 | ||
6007 | wxPyEndAllowThreads(__tstate); | |
6008 | if (PyErr_Occurred()) SWIG_fail; | |
6009 | } | |
6010 | { | |
6011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6012 | } | |
6013 | return resultobj; | |
6014 | fail: | |
6015 | return NULL; | |
6016 | } | |
6017 | ||
6018 | ||
c32bde28 | 6019 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6020 | PyObject *resultobj; |
6021 | wxRect *arg1 = (wxRect *) 0 ; | |
6022 | wxRect *arg2 = 0 ; | |
6023 | bool result; | |
6024 | wxRect temp2 ; | |
6025 | PyObject * obj0 = 0 ; | |
6026 | PyObject * obj1 = 0 ; | |
6027 | char *kwnames[] = { | |
6028 | (char *) "self",(char *) "rect", NULL | |
6029 | }; | |
6030 | ||
6031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6032 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6033 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6034 | { |
6035 | arg2 = &temp2; | |
6036 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6037 | } | |
6038 | { | |
6039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6040 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
6041 | ||
6042 | wxPyEndAllowThreads(__tstate); | |
6043 | if (PyErr_Occurred()) SWIG_fail; | |
6044 | } | |
6045 | { | |
6046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6047 | } | |
6048 | return resultobj; | |
6049 | fail: | |
6050 | return NULL; | |
6051 | } | |
6052 | ||
6053 | ||
c32bde28 | 6054 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6055 | PyObject *resultobj; |
6056 | wxRect *arg1 = (wxRect *) 0 ; | |
6057 | int arg2 ; | |
6058 | int arg3 ; | |
6059 | bool result; | |
6060 | PyObject * obj0 = 0 ; | |
6061 | PyObject * obj1 = 0 ; | |
6062 | PyObject * obj2 = 0 ; | |
6063 | char *kwnames[] = { | |
6064 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6065 | }; | |
6066 | ||
6067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
6068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6070 | { | |
6071 | arg2 = (int)(SWIG_As_int(obj1)); | |
6072 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6073 | } | |
6074 | { | |
6075 | arg3 = (int)(SWIG_As_int(obj2)); | |
6076 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6077 | } | |
d55e5bfc RD |
6078 | { |
6079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6080 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
6081 | ||
6082 | wxPyEndAllowThreads(__tstate); | |
6083 | if (PyErr_Occurred()) SWIG_fail; | |
6084 | } | |
6085 | { | |
6086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6087 | } | |
6088 | return resultobj; | |
6089 | fail: | |
6090 | return NULL; | |
6091 | } | |
6092 | ||
6093 | ||
c32bde28 | 6094 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6095 | PyObject *resultobj; |
6096 | wxRect *arg1 = (wxRect *) 0 ; | |
6097 | wxPoint *arg2 = 0 ; | |
6098 | bool result; | |
6099 | wxPoint temp2 ; | |
6100 | PyObject * obj0 = 0 ; | |
6101 | PyObject * obj1 = 0 ; | |
6102 | char *kwnames[] = { | |
6103 | (char *) "self",(char *) "pt", NULL | |
6104 | }; | |
6105 | ||
6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6107 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6108 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6109 | { |
6110 | arg2 = &temp2; | |
6111 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6112 | } | |
6113 | { | |
6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6115 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
6116 | ||
6117 | wxPyEndAllowThreads(__tstate); | |
6118 | if (PyErr_Occurred()) SWIG_fail; | |
6119 | } | |
6120 | { | |
6121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6122 | } | |
6123 | return resultobj; | |
6124 | fail: | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
c32bde28 | 6129 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6130 | PyObject *resultobj; |
6131 | wxRect *arg1 = (wxRect *) 0 ; | |
6132 | wxRect *arg2 = 0 ; | |
6133 | bool result; | |
6134 | wxRect temp2 ; | |
6135 | PyObject * obj0 = 0 ; | |
6136 | PyObject * obj1 = 0 ; | |
6137 | char *kwnames[] = { | |
6138 | (char *) "self",(char *) "rect", NULL | |
6139 | }; | |
6140 | ||
6141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6144 | { |
6145 | arg2 = &temp2; | |
6146 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6147 | } | |
6148 | { | |
6149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6150 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
6151 | ||
6152 | wxPyEndAllowThreads(__tstate); | |
6153 | if (PyErr_Occurred()) SWIG_fail; | |
6154 | } | |
6155 | { | |
6156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6157 | } | |
6158 | return resultobj; | |
6159 | fail: | |
6160 | return NULL; | |
6161 | } | |
6162 | ||
6163 | ||
c32bde28 | 6164 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6165 | PyObject *resultobj; |
6166 | wxRect *arg1 = (wxRect *) 0 ; | |
6167 | int arg2 ; | |
6168 | PyObject * obj0 = 0 ; | |
6169 | PyObject * obj1 = 0 ; | |
6170 | char *kwnames[] = { | |
6171 | (char *) "self",(char *) "x", NULL | |
6172 | }; | |
6173 | ||
6174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6177 | { | |
6178 | arg2 = (int)(SWIG_As_int(obj1)); | |
6179 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6180 | } | |
d55e5bfc RD |
6181 | if (arg1) (arg1)->x = arg2; |
6182 | ||
6183 | Py_INCREF(Py_None); resultobj = Py_None; | |
6184 | return resultobj; | |
6185 | fail: | |
6186 | return NULL; | |
6187 | } | |
6188 | ||
6189 | ||
c32bde28 | 6190 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6191 | PyObject *resultobj; |
6192 | wxRect *arg1 = (wxRect *) 0 ; | |
6193 | int result; | |
6194 | PyObject * obj0 = 0 ; | |
6195 | char *kwnames[] = { | |
6196 | (char *) "self", NULL | |
6197 | }; | |
6198 | ||
6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6202 | result = (int) ((arg1)->x); |
6203 | ||
093d3ff1 RD |
6204 | { |
6205 | resultobj = SWIG_From_int((int)(result)); | |
6206 | } | |
d55e5bfc RD |
6207 | return resultobj; |
6208 | fail: | |
6209 | return NULL; | |
6210 | } | |
6211 | ||
6212 | ||
c32bde28 | 6213 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6214 | PyObject *resultobj; |
6215 | wxRect *arg1 = (wxRect *) 0 ; | |
6216 | int arg2 ; | |
6217 | PyObject * obj0 = 0 ; | |
6218 | PyObject * obj1 = 0 ; | |
6219 | char *kwnames[] = { | |
6220 | (char *) "self",(char *) "y", NULL | |
6221 | }; | |
6222 | ||
6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6226 | { | |
6227 | arg2 = (int)(SWIG_As_int(obj1)); | |
6228 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6229 | } | |
d55e5bfc RD |
6230 | if (arg1) (arg1)->y = arg2; |
6231 | ||
6232 | Py_INCREF(Py_None); resultobj = Py_None; | |
6233 | return resultobj; | |
6234 | fail: | |
6235 | return NULL; | |
6236 | } | |
6237 | ||
6238 | ||
c32bde28 | 6239 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6240 | PyObject *resultobj; |
6241 | wxRect *arg1 = (wxRect *) 0 ; | |
6242 | int result; | |
6243 | PyObject * obj0 = 0 ; | |
6244 | char *kwnames[] = { | |
6245 | (char *) "self", NULL | |
6246 | }; | |
6247 | ||
6248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6251 | result = (int) ((arg1)->y); |
6252 | ||
093d3ff1 RD |
6253 | { |
6254 | resultobj = SWIG_From_int((int)(result)); | |
6255 | } | |
d55e5bfc RD |
6256 | return resultobj; |
6257 | fail: | |
6258 | return NULL; | |
6259 | } | |
6260 | ||
6261 | ||
c32bde28 | 6262 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6263 | PyObject *resultobj; |
6264 | wxRect *arg1 = (wxRect *) 0 ; | |
6265 | int arg2 ; | |
6266 | PyObject * obj0 = 0 ; | |
6267 | PyObject * obj1 = 0 ; | |
6268 | char *kwnames[] = { | |
6269 | (char *) "self",(char *) "width", NULL | |
6270 | }; | |
6271 | ||
6272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6275 | { | |
6276 | arg2 = (int)(SWIG_As_int(obj1)); | |
6277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6278 | } | |
d55e5bfc RD |
6279 | if (arg1) (arg1)->width = arg2; |
6280 | ||
6281 | Py_INCREF(Py_None); resultobj = Py_None; | |
6282 | return resultobj; | |
6283 | fail: | |
6284 | return NULL; | |
6285 | } | |
6286 | ||
6287 | ||
c32bde28 | 6288 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6289 | PyObject *resultobj; |
6290 | wxRect *arg1 = (wxRect *) 0 ; | |
6291 | int result; | |
6292 | PyObject * obj0 = 0 ; | |
6293 | char *kwnames[] = { | |
6294 | (char *) "self", NULL | |
6295 | }; | |
6296 | ||
6297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6300 | result = (int) ((arg1)->width); |
6301 | ||
093d3ff1 RD |
6302 | { |
6303 | resultobj = SWIG_From_int((int)(result)); | |
6304 | } | |
d55e5bfc RD |
6305 | return resultobj; |
6306 | fail: | |
6307 | return NULL; | |
6308 | } | |
6309 | ||
6310 | ||
c32bde28 | 6311 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6312 | PyObject *resultobj; |
6313 | wxRect *arg1 = (wxRect *) 0 ; | |
6314 | int arg2 ; | |
6315 | PyObject * obj0 = 0 ; | |
6316 | PyObject * obj1 = 0 ; | |
6317 | char *kwnames[] = { | |
6318 | (char *) "self",(char *) "height", NULL | |
6319 | }; | |
6320 | ||
6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6322 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6323 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6324 | { | |
6325 | arg2 = (int)(SWIG_As_int(obj1)); | |
6326 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6327 | } | |
d55e5bfc RD |
6328 | if (arg1) (arg1)->height = arg2; |
6329 | ||
6330 | Py_INCREF(Py_None); resultobj = Py_None; | |
6331 | return resultobj; | |
6332 | fail: | |
6333 | return NULL; | |
6334 | } | |
6335 | ||
6336 | ||
c32bde28 | 6337 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6338 | PyObject *resultobj; |
6339 | wxRect *arg1 = (wxRect *) 0 ; | |
6340 | int result; | |
6341 | PyObject * obj0 = 0 ; | |
6342 | char *kwnames[] = { | |
6343 | (char *) "self", NULL | |
6344 | }; | |
6345 | ||
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6349 | result = (int) ((arg1)->height); |
6350 | ||
093d3ff1 RD |
6351 | { |
6352 | resultobj = SWIG_From_int((int)(result)); | |
6353 | } | |
d55e5bfc RD |
6354 | return resultobj; |
6355 | fail: | |
6356 | return NULL; | |
6357 | } | |
6358 | ||
6359 | ||
c32bde28 | 6360 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6361 | PyObject *resultobj; |
6362 | wxRect *arg1 = (wxRect *) 0 ; | |
6363 | int arg2 = (int) 0 ; | |
6364 | int arg3 = (int) 0 ; | |
6365 | int arg4 = (int) 0 ; | |
6366 | int arg5 = (int) 0 ; | |
6367 | PyObject * obj0 = 0 ; | |
6368 | PyObject * obj1 = 0 ; | |
6369 | PyObject * obj2 = 0 ; | |
6370 | PyObject * obj3 = 0 ; | |
6371 | PyObject * obj4 = 0 ; | |
6372 | char *kwnames[] = { | |
6373 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
6374 | }; | |
6375 | ||
6376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
6377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 6379 | if (obj1) { |
093d3ff1 RD |
6380 | { |
6381 | arg2 = (int)(SWIG_As_int(obj1)); | |
6382 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6383 | } | |
d55e5bfc RD |
6384 | } |
6385 | if (obj2) { | |
093d3ff1 RD |
6386 | { |
6387 | arg3 = (int)(SWIG_As_int(obj2)); | |
6388 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6389 | } | |
d55e5bfc RD |
6390 | } |
6391 | if (obj3) { | |
093d3ff1 RD |
6392 | { |
6393 | arg4 = (int)(SWIG_As_int(obj3)); | |
6394 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6395 | } | |
d55e5bfc RD |
6396 | } |
6397 | if (obj4) { | |
093d3ff1 RD |
6398 | { |
6399 | arg5 = (int)(SWIG_As_int(obj4)); | |
6400 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6401 | } | |
d55e5bfc RD |
6402 | } |
6403 | { | |
6404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6405 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
6406 | ||
6407 | wxPyEndAllowThreads(__tstate); | |
6408 | if (PyErr_Occurred()) SWIG_fail; | |
6409 | } | |
6410 | Py_INCREF(Py_None); resultobj = Py_None; | |
6411 | return resultobj; | |
6412 | fail: | |
6413 | return NULL; | |
6414 | } | |
6415 | ||
6416 | ||
c32bde28 | 6417 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6418 | PyObject *resultobj; |
6419 | wxRect *arg1 = (wxRect *) 0 ; | |
6420 | PyObject *result; | |
6421 | PyObject * obj0 = 0 ; | |
6422 | char *kwnames[] = { | |
6423 | (char *) "self", NULL | |
6424 | }; | |
6425 | ||
6426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6429 | { |
6430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6431 | result = (PyObject *)wxRect_Get(arg1); | |
6432 | ||
6433 | wxPyEndAllowThreads(__tstate); | |
6434 | if (PyErr_Occurred()) SWIG_fail; | |
6435 | } | |
6436 | resultobj = result; | |
6437 | return resultobj; | |
6438 | fail: | |
6439 | return NULL; | |
6440 | } | |
6441 | ||
6442 | ||
c32bde28 | 6443 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6444 | PyObject *obj; |
6445 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6446 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
6447 | Py_INCREF(obj); | |
6448 | return Py_BuildValue((char *)""); | |
6449 | } | |
c32bde28 | 6450 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6451 | PyObject *resultobj; |
6452 | wxRect *arg1 = (wxRect *) 0 ; | |
6453 | wxRect *arg2 = (wxRect *) 0 ; | |
6454 | PyObject *result; | |
6455 | PyObject * obj0 = 0 ; | |
6456 | PyObject * obj1 = 0 ; | |
6457 | char *kwnames[] = { | |
6458 | (char *) "r1",(char *) "r2", NULL | |
6459 | }; | |
6460 | ||
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6464 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
6465 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 6466 | { |
0439c23b | 6467 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6469 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
6470 | ||
6471 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6472 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6473 | } |
6474 | resultobj = result; | |
6475 | return resultobj; | |
6476 | fail: | |
6477 | return NULL; | |
6478 | } | |
6479 | ||
6480 | ||
c32bde28 | 6481 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6482 | PyObject *resultobj; |
6483 | double arg1 = (double) 0.0 ; | |
6484 | double arg2 = (double) 0.0 ; | |
6485 | wxPoint2D *result; | |
6486 | PyObject * obj0 = 0 ; | |
6487 | PyObject * obj1 = 0 ; | |
6488 | char *kwnames[] = { | |
6489 | (char *) "x",(char *) "y", NULL | |
6490 | }; | |
6491 | ||
6492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
6493 | if (obj0) { | |
093d3ff1 RD |
6494 | { |
6495 | arg1 = (double)(SWIG_As_double(obj0)); | |
6496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6497 | } | |
d55e5bfc RD |
6498 | } |
6499 | if (obj1) { | |
093d3ff1 RD |
6500 | { |
6501 | arg2 = (double)(SWIG_As_double(obj1)); | |
6502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6503 | } | |
d55e5bfc RD |
6504 | } |
6505 | { | |
6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6507 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
6508 | ||
6509 | wxPyEndAllowThreads(__tstate); | |
6510 | if (PyErr_Occurred()) SWIG_fail; | |
6511 | } | |
6512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
6513 | return resultobj; | |
6514 | fail: | |
6515 | return NULL; | |
6516 | } | |
6517 | ||
6518 | ||
c32bde28 | 6519 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6520 | PyObject *resultobj; |
6521 | wxPoint2D *arg1 = 0 ; | |
6522 | wxPoint2D *result; | |
6523 | wxPoint2D temp1 ; | |
6524 | PyObject * obj0 = 0 ; | |
6525 | char *kwnames[] = { | |
6526 | (char *) "pt", NULL | |
6527 | }; | |
6528 | ||
6529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
6530 | { | |
6531 | arg1 = &temp1; | |
6532 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
6533 | } | |
6534 | { | |
6535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6536 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
6537 | ||
6538 | wxPyEndAllowThreads(__tstate); | |
6539 | if (PyErr_Occurred()) SWIG_fail; | |
6540 | } | |
6541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
6542 | return resultobj; | |
6543 | fail: | |
6544 | return NULL; | |
6545 | } | |
6546 | ||
6547 | ||
c32bde28 | 6548 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6549 | PyObject *resultobj; |
6550 | wxPoint *arg1 = 0 ; | |
6551 | wxPoint2D *result; | |
6552 | wxPoint temp1 ; | |
6553 | PyObject * obj0 = 0 ; | |
6554 | char *kwnames[] = { | |
6555 | (char *) "pt", NULL | |
6556 | }; | |
6557 | ||
6558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
6559 | { | |
6560 | arg1 = &temp1; | |
6561 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
6562 | } | |
6563 | { | |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
6571 | return resultobj; | |
6572 | fail: | |
6573 | return NULL; | |
6574 | } | |
6575 | ||
6576 | ||
c32bde28 | 6577 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6578 | PyObject *resultobj; |
6579 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6580 | int *arg2 = (int *) 0 ; | |
6581 | int *arg3 = (int *) 0 ; | |
6582 | int temp2 ; | |
c32bde28 | 6583 | int res2 = 0 ; |
d55e5bfc | 6584 | int temp3 ; |
c32bde28 | 6585 | int res3 = 0 ; |
d55e5bfc RD |
6586 | PyObject * obj0 = 0 ; |
6587 | char *kwnames[] = { | |
6588 | (char *) "self", NULL | |
6589 | }; | |
6590 | ||
c32bde28 RD |
6591 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6592 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 6593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6596 | { |
6597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6598 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
6599 | ||
6600 | wxPyEndAllowThreads(__tstate); | |
6601 | if (PyErr_Occurred()) SWIG_fail; | |
6602 | } | |
6603 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
6604 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6605 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6606 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6607 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
6608 | return resultobj; |
6609 | fail: | |
6610 | return NULL; | |
6611 | } | |
6612 | ||
6613 | ||
c32bde28 | 6614 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6615 | PyObject *resultobj; |
6616 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6617 | int *arg2 = (int *) 0 ; | |
6618 | int *arg3 = (int *) 0 ; | |
6619 | int temp2 ; | |
c32bde28 | 6620 | int res2 = 0 ; |
d55e5bfc | 6621 | int temp3 ; |
c32bde28 | 6622 | int res3 = 0 ; |
d55e5bfc RD |
6623 | PyObject * obj0 = 0 ; |
6624 | char *kwnames[] = { | |
6625 | (char *) "self", NULL | |
6626 | }; | |
6627 | ||
c32bde28 RD |
6628 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6629 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6633 | { |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
6636 | ||
6637 | wxPyEndAllowThreads(__tstate); | |
6638 | if (PyErr_Occurred()) SWIG_fail; | |
6639 | } | |
6640 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
6641 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6642 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6643 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6644 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
6645 | return resultobj; |
6646 | fail: | |
6647 | return NULL; | |
6648 | } | |
6649 | ||
6650 | ||
c32bde28 | 6651 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6652 | PyObject *resultobj; |
6653 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6654 | double result; | |
6655 | PyObject * obj0 = 0 ; | |
6656 | char *kwnames[] = { | |
6657 | (char *) "self", NULL | |
6658 | }; | |
6659 | ||
6660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6663 | { |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
6666 | ||
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) SWIG_fail; | |
6669 | } | |
093d3ff1 RD |
6670 | { |
6671 | resultobj = SWIG_From_double((double)(result)); | |
6672 | } | |
d55e5bfc RD |
6673 | return resultobj; |
6674 | fail: | |
6675 | return NULL; | |
6676 | } | |
6677 | ||
6678 | ||
c32bde28 | 6679 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6680 | PyObject *resultobj; |
6681 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6682 | double result; | |
6683 | PyObject * obj0 = 0 ; | |
6684 | char *kwnames[] = { | |
6685 | (char *) "self", NULL | |
6686 | }; | |
6687 | ||
6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6691 | { |
6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6693 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
6694 | ||
6695 | wxPyEndAllowThreads(__tstate); | |
6696 | if (PyErr_Occurred()) SWIG_fail; | |
6697 | } | |
093d3ff1 RD |
6698 | { |
6699 | resultobj = SWIG_From_double((double)(result)); | |
6700 | } | |
d55e5bfc RD |
6701 | return resultobj; |
6702 | fail: | |
6703 | return NULL; | |
6704 | } | |
6705 | ||
6706 | ||
c32bde28 | 6707 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6708 | PyObject *resultobj; |
6709 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6710 | double arg2 ; | |
6711 | PyObject * obj0 = 0 ; | |
6712 | PyObject * obj1 = 0 ; | |
6713 | char *kwnames[] = { | |
6714 | (char *) "self",(char *) "length", NULL | |
6715 | }; | |
6716 | ||
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6720 | { | |
6721 | arg2 = (double)(SWIG_As_double(obj1)); | |
6722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6723 | } | |
d55e5bfc RD |
6724 | { |
6725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6726 | (arg1)->SetVectorLength(arg2); | |
6727 | ||
6728 | wxPyEndAllowThreads(__tstate); | |
6729 | if (PyErr_Occurred()) SWIG_fail; | |
6730 | } | |
6731 | Py_INCREF(Py_None); resultobj = Py_None; | |
6732 | return resultobj; | |
6733 | fail: | |
6734 | return NULL; | |
6735 | } | |
6736 | ||
6737 | ||
c32bde28 | 6738 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6739 | PyObject *resultobj; |
6740 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6741 | double arg2 ; | |
6742 | PyObject * obj0 = 0 ; | |
6743 | PyObject * obj1 = 0 ; | |
6744 | char *kwnames[] = { | |
6745 | (char *) "self",(char *) "degrees", NULL | |
6746 | }; | |
6747 | ||
6748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6751 | { | |
6752 | arg2 = (double)(SWIG_As_double(obj1)); | |
6753 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6754 | } | |
d55e5bfc RD |
6755 | { |
6756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6757 | (arg1)->SetVectorAngle(arg2); | |
6758 | ||
6759 | wxPyEndAllowThreads(__tstate); | |
6760 | if (PyErr_Occurred()) SWIG_fail; | |
6761 | } | |
6762 | Py_INCREF(Py_None); resultobj = Py_None; | |
6763 | return resultobj; | |
6764 | fail: | |
6765 | return NULL; | |
6766 | } | |
6767 | ||
6768 | ||
c32bde28 | 6769 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6770 | PyObject *resultobj; |
6771 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6772 | wxPoint2D *arg2 = 0 ; | |
6773 | double result; | |
6774 | wxPoint2D temp2 ; | |
6775 | PyObject * obj0 = 0 ; | |
6776 | PyObject * obj1 = 0 ; | |
6777 | char *kwnames[] = { | |
6778 | (char *) "self",(char *) "pt", NULL | |
6779 | }; | |
6780 | ||
6781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6784 | { |
6785 | arg2 = &temp2; | |
6786 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6787 | } | |
6788 | { | |
6789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6790 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
6791 | ||
6792 | wxPyEndAllowThreads(__tstate); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | } | |
093d3ff1 RD |
6795 | { |
6796 | resultobj = SWIG_From_double((double)(result)); | |
6797 | } | |
d55e5bfc RD |
6798 | return resultobj; |
6799 | fail: | |
6800 | return NULL; | |
6801 | } | |
6802 | ||
6803 | ||
c32bde28 | 6804 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6805 | PyObject *resultobj; |
6806 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6807 | wxPoint2D *arg2 = 0 ; | |
6808 | double result; | |
6809 | wxPoint2D temp2 ; | |
6810 | PyObject * obj0 = 0 ; | |
6811 | PyObject * obj1 = 0 ; | |
6812 | char *kwnames[] = { | |
6813 | (char *) "self",(char *) "pt", NULL | |
6814 | }; | |
6815 | ||
6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6819 | { |
6820 | arg2 = &temp2; | |
6821 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6822 | } | |
6823 | { | |
6824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6825 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
6826 | ||
6827 | wxPyEndAllowThreads(__tstate); | |
6828 | if (PyErr_Occurred()) SWIG_fail; | |
6829 | } | |
093d3ff1 RD |
6830 | { |
6831 | resultobj = SWIG_From_double((double)(result)); | |
6832 | } | |
d55e5bfc RD |
6833 | return resultobj; |
6834 | fail: | |
6835 | return NULL; | |
6836 | } | |
6837 | ||
6838 | ||
c32bde28 | 6839 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6840 | PyObject *resultobj; |
6841 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6842 | wxPoint2D *arg2 = 0 ; | |
6843 | double result; | |
6844 | wxPoint2D temp2 ; | |
6845 | PyObject * obj0 = 0 ; | |
6846 | PyObject * obj1 = 0 ; | |
6847 | char *kwnames[] = { | |
6848 | (char *) "self",(char *) "vec", NULL | |
6849 | }; | |
6850 | ||
6851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6854 | { |
6855 | arg2 = &temp2; | |
6856 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6857 | } | |
6858 | { | |
6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6860 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
6861 | ||
6862 | wxPyEndAllowThreads(__tstate); | |
6863 | if (PyErr_Occurred()) SWIG_fail; | |
6864 | } | |
093d3ff1 RD |
6865 | { |
6866 | resultobj = SWIG_From_double((double)(result)); | |
6867 | } | |
d55e5bfc RD |
6868 | return resultobj; |
6869 | fail: | |
6870 | return NULL; | |
6871 | } | |
6872 | ||
6873 | ||
c32bde28 | 6874 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6875 | PyObject *resultobj; |
6876 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6877 | wxPoint2D *arg2 = 0 ; | |
6878 | double result; | |
6879 | wxPoint2D temp2 ; | |
6880 | PyObject * obj0 = 0 ; | |
6881 | PyObject * obj1 = 0 ; | |
6882 | char *kwnames[] = { | |
6883 | (char *) "self",(char *) "vec", NULL | |
6884 | }; | |
6885 | ||
6886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6889 | { |
6890 | arg2 = &temp2; | |
6891 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6892 | } | |
6893 | { | |
6894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6895 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
6896 | ||
6897 | wxPyEndAllowThreads(__tstate); | |
6898 | if (PyErr_Occurred()) SWIG_fail; | |
6899 | } | |
093d3ff1 RD |
6900 | { |
6901 | resultobj = SWIG_From_double((double)(result)); | |
6902 | } | |
d55e5bfc RD |
6903 | return resultobj; |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
c32bde28 | 6909 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6910 | PyObject *resultobj; |
6911 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6912 | wxPoint2D result; | |
6913 | PyObject * obj0 = 0 ; | |
6914 | char *kwnames[] = { | |
6915 | (char *) "self", NULL | |
6916 | }; | |
6917 | ||
6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6921 | { |
6922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6923 | result = (arg1)->operator -(); | |
6924 | ||
6925 | wxPyEndAllowThreads(__tstate); | |
6926 | if (PyErr_Occurred()) SWIG_fail; | |
6927 | } | |
6928 | { | |
6929 | wxPoint2D * resultptr; | |
093d3ff1 | 6930 | resultptr = new wxPoint2D((wxPoint2D &)(result)); |
d55e5bfc RD |
6931 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
6932 | } | |
6933 | return resultobj; | |
6934 | fail: | |
6935 | return NULL; | |
6936 | } | |
6937 | ||
6938 | ||
c32bde28 | 6939 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6940 | PyObject *resultobj; |
6941 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6942 | wxPoint2D *arg2 = 0 ; | |
6943 | wxPoint2D *result; | |
6944 | wxPoint2D temp2 ; | |
6945 | PyObject * obj0 = 0 ; | |
6946 | PyObject * obj1 = 0 ; | |
6947 | char *kwnames[] = { | |
6948 | (char *) "self",(char *) "pt", NULL | |
6949 | }; | |
6950 | ||
6951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
6953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6954 | { |
6955 | arg2 = &temp2; | |
6956 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6957 | } | |
6958 | { | |
6959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6960 | { | |
6961 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
6962 | result = (wxPoint2D *) &_result_ref; | |
6963 | } | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
c32bde28 | 6968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
6969 | return resultobj; |
6970 | fail: | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
c32bde28 | 6975 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6976 | PyObject *resultobj; |
6977 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6978 | wxPoint2D *arg2 = 0 ; | |
6979 | wxPoint2D *result; | |
6980 | wxPoint2D temp2 ; | |
6981 | PyObject * obj0 = 0 ; | |
6982 | PyObject * obj1 = 0 ; | |
6983 | char *kwnames[] = { | |
6984 | (char *) "self",(char *) "pt", NULL | |
6985 | }; | |
6986 | ||
6987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
6989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6990 | { |
6991 | arg2 = &temp2; | |
6992 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6993 | } | |
6994 | { | |
6995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6996 | { | |
6997 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
6998 | result = (wxPoint2D *) &_result_ref; | |
6999 | } | |
7000 | ||
7001 | wxPyEndAllowThreads(__tstate); | |
7002 | if (PyErr_Occurred()) SWIG_fail; | |
7003 | } | |
c32bde28 | 7004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
7005 | return resultobj; |
7006 | fail: | |
7007 | return NULL; | |
7008 | } | |
7009 | ||
7010 | ||
c32bde28 | 7011 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7012 | PyObject *resultobj; |
7013 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7014 | wxPoint2D *arg2 = 0 ; | |
7015 | wxPoint2D *result; | |
7016 | wxPoint2D temp2 ; | |
7017 | PyObject * obj0 = 0 ; | |
7018 | PyObject * obj1 = 0 ; | |
7019 | char *kwnames[] = { | |
7020 | (char *) "self",(char *) "pt", NULL | |
7021 | }; | |
7022 | ||
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
7025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7026 | { |
7027 | arg2 = &temp2; | |
7028 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7029 | } | |
7030 | { | |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | { | |
7033 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
7034 | result = (wxPoint2D *) &_result_ref; | |
7035 | } | |
7036 | ||
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
c32bde28 | 7040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
7041 | return resultobj; |
7042 | fail: | |
7043 | return NULL; | |
7044 | } | |
7045 | ||
7046 | ||
c32bde28 | 7047 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7048 | PyObject *resultobj; |
7049 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7050 | wxPoint2D *arg2 = 0 ; | |
7051 | wxPoint2D *result; | |
7052 | wxPoint2D temp2 ; | |
7053 | PyObject * obj0 = 0 ; | |
7054 | PyObject * obj1 = 0 ; | |
7055 | char *kwnames[] = { | |
7056 | (char *) "self",(char *) "pt", NULL | |
7057 | }; | |
7058 | ||
7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
7061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7062 | { |
7063 | arg2 = &temp2; | |
7064 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7065 | } | |
7066 | { | |
7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7068 | { | |
7069 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
7070 | result = (wxPoint2D *) &_result_ref; | |
7071 | } | |
7072 | ||
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
c32bde28 | 7076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
7077 | return resultobj; |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
c32bde28 | 7083 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7084 | PyObject *resultobj; |
7085 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7086 | wxPoint2D *arg2 = 0 ; | |
7087 | bool result; | |
7088 | wxPoint2D temp2 ; | |
7089 | PyObject * obj0 = 0 ; | |
7090 | PyObject * obj1 = 0 ; | |
7091 | char *kwnames[] = { | |
7092 | (char *) "self",(char *) "pt", NULL | |
7093 | }; | |
7094 | ||
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7098 | { |
7099 | arg2 = &temp2; | |
7100 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7101 | } | |
7102 | { | |
7103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7104 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
7105 | ||
7106 | wxPyEndAllowThreads(__tstate); | |
7107 | if (PyErr_Occurred()) SWIG_fail; | |
7108 | } | |
7109 | { | |
7110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7111 | } | |
7112 | return resultobj; | |
7113 | fail: | |
7114 | return NULL; | |
7115 | } | |
7116 | ||
7117 | ||
c32bde28 | 7118 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7119 | PyObject *resultobj; |
7120 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7121 | wxPoint2D *arg2 = 0 ; | |
7122 | bool result; | |
7123 | wxPoint2D temp2 ; | |
7124 | PyObject * obj0 = 0 ; | |
7125 | PyObject * obj1 = 0 ; | |
7126 | char *kwnames[] = { | |
7127 | (char *) "self",(char *) "pt", NULL | |
7128 | }; | |
7129 | ||
7130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7133 | { |
7134 | arg2 = &temp2; | |
7135 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7136 | } | |
7137 | { | |
7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7139 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
7140 | ||
7141 | wxPyEndAllowThreads(__tstate); | |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
7143 | } | |
7144 | { | |
7145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7146 | } | |
7147 | return resultobj; | |
7148 | fail: | |
7149 | return NULL; | |
7150 | } | |
7151 | ||
7152 | ||
c32bde28 | 7153 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7154 | PyObject *resultobj; |
7155 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7156 | double arg2 ; | |
7157 | PyObject * obj0 = 0 ; | |
7158 | PyObject * obj1 = 0 ; | |
7159 | char *kwnames[] = { | |
7160 | (char *) "self",(char *) "m_x", NULL | |
7161 | }; | |
7162 | ||
7163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7166 | { | |
7167 | arg2 = (double)(SWIG_As_double(obj1)); | |
7168 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7169 | } | |
d55e5bfc RD |
7170 | if (arg1) (arg1)->m_x = arg2; |
7171 | ||
7172 | Py_INCREF(Py_None); resultobj = Py_None; | |
7173 | return resultobj; | |
7174 | fail: | |
7175 | return NULL; | |
7176 | } | |
7177 | ||
7178 | ||
c32bde28 | 7179 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7180 | PyObject *resultobj; |
7181 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7182 | double result; | |
7183 | PyObject * obj0 = 0 ; | |
7184 | char *kwnames[] = { | |
7185 | (char *) "self", NULL | |
7186 | }; | |
7187 | ||
7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7191 | result = (double) ((arg1)->m_x); |
7192 | ||
093d3ff1 RD |
7193 | { |
7194 | resultobj = SWIG_From_double((double)(result)); | |
7195 | } | |
d55e5bfc RD |
7196 | return resultobj; |
7197 | fail: | |
7198 | return NULL; | |
7199 | } | |
7200 | ||
7201 | ||
c32bde28 | 7202 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7203 | PyObject *resultobj; |
7204 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7205 | double arg2 ; | |
7206 | PyObject * obj0 = 0 ; | |
7207 | PyObject * obj1 = 0 ; | |
7208 | char *kwnames[] = { | |
7209 | (char *) "self",(char *) "m_y", NULL | |
7210 | }; | |
7211 | ||
7212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7215 | { | |
7216 | arg2 = (double)(SWIG_As_double(obj1)); | |
7217 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7218 | } | |
d55e5bfc RD |
7219 | if (arg1) (arg1)->m_y = arg2; |
7220 | ||
7221 | Py_INCREF(Py_None); resultobj = Py_None; | |
7222 | return resultobj; | |
7223 | fail: | |
7224 | return NULL; | |
7225 | } | |
7226 | ||
7227 | ||
c32bde28 | 7228 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7229 | PyObject *resultobj; |
7230 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7231 | double result; | |
7232 | PyObject * obj0 = 0 ; | |
7233 | char *kwnames[] = { | |
7234 | (char *) "self", NULL | |
7235 | }; | |
7236 | ||
7237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7240 | result = (double) ((arg1)->m_y); |
7241 | ||
093d3ff1 RD |
7242 | { |
7243 | resultobj = SWIG_From_double((double)(result)); | |
7244 | } | |
d55e5bfc RD |
7245 | return resultobj; |
7246 | fail: | |
7247 | return NULL; | |
7248 | } | |
7249 | ||
7250 | ||
c32bde28 | 7251 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7252 | PyObject *resultobj; |
7253 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7254 | double arg2 = (double) 0 ; | |
7255 | double arg3 = (double) 0 ; | |
7256 | PyObject * obj0 = 0 ; | |
7257 | PyObject * obj1 = 0 ; | |
7258 | PyObject * obj2 = 0 ; | |
7259 | char *kwnames[] = { | |
7260 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7261 | }; | |
7262 | ||
7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7266 | if (obj1) { |
093d3ff1 RD |
7267 | { |
7268 | arg2 = (double)(SWIG_As_double(obj1)); | |
7269 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7270 | } | |
d55e5bfc RD |
7271 | } |
7272 | if (obj2) { | |
093d3ff1 RD |
7273 | { |
7274 | arg3 = (double)(SWIG_As_double(obj2)); | |
7275 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7276 | } | |
d55e5bfc RD |
7277 | } |
7278 | { | |
7279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7280 | wxPoint2D_Set(arg1,arg2,arg3); | |
7281 | ||
7282 | wxPyEndAllowThreads(__tstate); | |
7283 | if (PyErr_Occurred()) SWIG_fail; | |
7284 | } | |
7285 | Py_INCREF(Py_None); resultobj = Py_None; | |
7286 | return resultobj; | |
7287 | fail: | |
7288 | return NULL; | |
7289 | } | |
7290 | ||
7291 | ||
c32bde28 | 7292 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7293 | PyObject *resultobj; |
7294 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7295 | PyObject *result; | |
7296 | PyObject * obj0 = 0 ; | |
7297 | char *kwnames[] = { | |
7298 | (char *) "self", NULL | |
7299 | }; | |
7300 | ||
7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7304 | { |
7305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7306 | result = (PyObject *)wxPoint2D_Get(arg1); | |
7307 | ||
7308 | wxPyEndAllowThreads(__tstate); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
7311 | resultobj = result; | |
7312 | return resultobj; | |
7313 | fail: | |
7314 | return NULL; | |
7315 | } | |
7316 | ||
7317 | ||
c32bde28 | 7318 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7319 | PyObject *obj; |
7320 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7321 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
7322 | Py_INCREF(obj); | |
7323 | return Py_BuildValue((char *)""); | |
7324 | } | |
c32bde28 | 7325 | static int _wrap_DefaultPosition_set(PyObject *) { |
d55e5bfc RD |
7326 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
7327 | return 1; | |
7328 | } | |
7329 | ||
7330 | ||
093d3ff1 | 7331 | static PyObject *_wrap_DefaultPosition_get(void) { |
d55e5bfc RD |
7332 | PyObject *pyobj; |
7333 | ||
7334 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
7335 | return pyobj; | |
7336 | } | |
7337 | ||
7338 | ||
c32bde28 | 7339 | static int _wrap_DefaultSize_set(PyObject *) { |
d55e5bfc RD |
7340 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
7341 | return 1; | |
7342 | } | |
7343 | ||
7344 | ||
093d3ff1 | 7345 | static PyObject *_wrap_DefaultSize_get(void) { |
d55e5bfc RD |
7346 | PyObject *pyobj; |
7347 | ||
7348 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
7349 | return pyobj; | |
7350 | } | |
7351 | ||
7352 | ||
c32bde28 | 7353 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7354 | PyObject *resultobj; |
7355 | PyObject *arg1 = (PyObject *) 0 ; | |
7356 | wxPyInputStream *result; | |
7357 | PyObject * obj0 = 0 ; | |
7358 | char *kwnames[] = { | |
7359 | (char *) "p", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
7363 | arg1 = obj0; | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
7372 | return resultobj; | |
7373 | fail: | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
8fb0e70a RD |
7378 | static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
7379 | PyObject *resultobj; | |
7380 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7381 | PyObject * obj0 = 0 ; | |
7382 | char *kwnames[] = { | |
7383 | (char *) "self", NULL | |
7384 | }; | |
7385 | ||
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
7389 | { |
7390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7391 | delete arg1; | |
7392 | ||
7393 | wxPyEndAllowThreads(__tstate); | |
7394 | if (PyErr_Occurred()) SWIG_fail; | |
7395 | } | |
7396 | Py_INCREF(Py_None); resultobj = Py_None; | |
7397 | return resultobj; | |
7398 | fail: | |
7399 | return NULL; | |
7400 | } | |
7401 | ||
7402 | ||
c32bde28 | 7403 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7404 | PyObject *resultobj; |
7405 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7406 | PyObject * obj0 = 0 ; | |
7407 | char *kwnames[] = { | |
7408 | (char *) "self", NULL | |
7409 | }; | |
7410 | ||
7411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7414 | { |
7415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7416 | (arg1)->close(); | |
7417 | ||
7418 | wxPyEndAllowThreads(__tstate); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | } | |
7421 | Py_INCREF(Py_None); resultobj = Py_None; | |
7422 | return resultobj; | |
7423 | fail: | |
7424 | return NULL; | |
7425 | } | |
7426 | ||
7427 | ||
c32bde28 | 7428 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7429 | PyObject *resultobj; |
7430 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7431 | PyObject * obj0 = 0 ; | |
7432 | char *kwnames[] = { | |
7433 | (char *) "self", NULL | |
7434 | }; | |
7435 | ||
7436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7439 | { |
7440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7441 | (arg1)->flush(); | |
7442 | ||
7443 | wxPyEndAllowThreads(__tstate); | |
7444 | if (PyErr_Occurred()) SWIG_fail; | |
7445 | } | |
7446 | Py_INCREF(Py_None); resultobj = Py_None; | |
7447 | return resultobj; | |
7448 | fail: | |
7449 | return NULL; | |
7450 | } | |
7451 | ||
7452 | ||
c32bde28 | 7453 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7454 | PyObject *resultobj; |
7455 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7456 | bool result; | |
7457 | PyObject * obj0 = 0 ; | |
7458 | char *kwnames[] = { | |
7459 | (char *) "self", NULL | |
7460 | }; | |
7461 | ||
7462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7465 | { |
7466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7467 | result = (bool)(arg1)->eof(); | |
7468 | ||
7469 | wxPyEndAllowThreads(__tstate); | |
7470 | if (PyErr_Occurred()) SWIG_fail; | |
7471 | } | |
7472 | { | |
7473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7474 | } | |
7475 | return resultobj; | |
7476 | fail: | |
7477 | return NULL; | |
7478 | } | |
7479 | ||
7480 | ||
c32bde28 | 7481 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7482 | PyObject *resultobj; |
7483 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7484 | int arg2 = (int) -1 ; | |
7485 | PyObject *result; | |
7486 | PyObject * obj0 = 0 ; | |
7487 | PyObject * obj1 = 0 ; | |
7488 | char *kwnames[] = { | |
7489 | (char *) "self",(char *) "size", NULL | |
7490 | }; | |
7491 | ||
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7495 | if (obj1) { |
093d3ff1 RD |
7496 | { |
7497 | arg2 = (int)(SWIG_As_int(obj1)); | |
7498 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7499 | } | |
d55e5bfc RD |
7500 | } |
7501 | { | |
7502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7503 | result = (PyObject *)(arg1)->read(arg2); | |
7504 | ||
7505 | wxPyEndAllowThreads(__tstate); | |
7506 | if (PyErr_Occurred()) SWIG_fail; | |
7507 | } | |
7508 | resultobj = result; | |
7509 | return resultobj; | |
7510 | fail: | |
7511 | return NULL; | |
7512 | } | |
7513 | ||
7514 | ||
c32bde28 | 7515 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7516 | PyObject *resultobj; |
7517 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7518 | int arg2 = (int) -1 ; | |
7519 | PyObject *result; | |
7520 | PyObject * obj0 = 0 ; | |
7521 | PyObject * obj1 = 0 ; | |
7522 | char *kwnames[] = { | |
7523 | (char *) "self",(char *) "size", NULL | |
7524 | }; | |
7525 | ||
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7529 | if (obj1) { |
093d3ff1 RD |
7530 | { |
7531 | arg2 = (int)(SWIG_As_int(obj1)); | |
7532 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7533 | } | |
d55e5bfc RD |
7534 | } |
7535 | { | |
7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7537 | result = (PyObject *)(arg1)->readline(arg2); | |
7538 | ||
7539 | wxPyEndAllowThreads(__tstate); | |
7540 | if (PyErr_Occurred()) SWIG_fail; | |
7541 | } | |
7542 | resultobj = result; | |
7543 | return resultobj; | |
7544 | fail: | |
7545 | return NULL; | |
7546 | } | |
7547 | ||
7548 | ||
c32bde28 | 7549 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7550 | PyObject *resultobj; |
7551 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7552 | int arg2 = (int) -1 ; | |
7553 | PyObject *result; | |
7554 | PyObject * obj0 = 0 ; | |
7555 | PyObject * obj1 = 0 ; | |
7556 | char *kwnames[] = { | |
7557 | (char *) "self",(char *) "sizehint", NULL | |
7558 | }; | |
7559 | ||
7560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7563 | if (obj1) { |
093d3ff1 RD |
7564 | { |
7565 | arg2 = (int)(SWIG_As_int(obj1)); | |
7566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7567 | } | |
d55e5bfc RD |
7568 | } |
7569 | { | |
7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7571 | result = (PyObject *)(arg1)->readlines(arg2); | |
7572 | ||
7573 | wxPyEndAllowThreads(__tstate); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | } | |
7576 | resultobj = result; | |
7577 | return resultobj; | |
7578 | fail: | |
7579 | return NULL; | |
7580 | } | |
7581 | ||
7582 | ||
c32bde28 | 7583 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7584 | PyObject *resultobj; |
7585 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7586 | int arg2 ; | |
7587 | int arg3 = (int) 0 ; | |
7588 | PyObject * obj0 = 0 ; | |
7589 | PyObject * obj1 = 0 ; | |
7590 | PyObject * obj2 = 0 ; | |
7591 | char *kwnames[] = { | |
7592 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
7593 | }; | |
7594 | ||
7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7598 | { | |
7599 | arg2 = (int)(SWIG_As_int(obj1)); | |
7600 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7601 | } | |
d55e5bfc | 7602 | if (obj2) { |
093d3ff1 RD |
7603 | { |
7604 | arg3 = (int)(SWIG_As_int(obj2)); | |
7605 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7606 | } | |
d55e5bfc RD |
7607 | } |
7608 | { | |
7609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7610 | (arg1)->seek(arg2,arg3); | |
7611 | ||
7612 | wxPyEndAllowThreads(__tstate); | |
7613 | if (PyErr_Occurred()) SWIG_fail; | |
7614 | } | |
7615 | Py_INCREF(Py_None); resultobj = Py_None; | |
7616 | return resultobj; | |
7617 | fail: | |
7618 | return NULL; | |
7619 | } | |
7620 | ||
7621 | ||
c32bde28 | 7622 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7623 | PyObject *resultobj; |
7624 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7625 | int result; | |
7626 | PyObject * obj0 = 0 ; | |
7627 | char *kwnames[] = { | |
7628 | (char *) "self", NULL | |
7629 | }; | |
7630 | ||
7631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7634 | { |
7635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7636 | result = (int)(arg1)->tell(); | |
7637 | ||
7638 | wxPyEndAllowThreads(__tstate); | |
7639 | if (PyErr_Occurred()) SWIG_fail; | |
7640 | } | |
093d3ff1 RD |
7641 | { |
7642 | resultobj = SWIG_From_int((int)(result)); | |
7643 | } | |
d55e5bfc RD |
7644 | return resultobj; |
7645 | fail: | |
7646 | return NULL; | |
7647 | } | |
7648 | ||
7649 | ||
c32bde28 | 7650 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7651 | PyObject *resultobj; |
7652 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7653 | char result; | |
7654 | PyObject * obj0 = 0 ; | |
7655 | char *kwnames[] = { | |
7656 | (char *) "self", NULL | |
7657 | }; | |
7658 | ||
7659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7662 | { |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | result = (char)(arg1)->Peek(); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
093d3ff1 RD |
7669 | { |
7670 | resultobj = SWIG_From_char((char)(result)); | |
7671 | } | |
d55e5bfc RD |
7672 | return resultobj; |
7673 | fail: | |
7674 | return NULL; | |
7675 | } | |
7676 | ||
7677 | ||
c32bde28 | 7678 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7679 | PyObject *resultobj; |
7680 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7681 | char result; | |
7682 | PyObject * obj0 = 0 ; | |
7683 | char *kwnames[] = { | |
7684 | (char *) "self", NULL | |
7685 | }; | |
7686 | ||
7687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7690 | { |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | result = (char)(arg1)->GetC(); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
093d3ff1 RD |
7697 | { |
7698 | resultobj = SWIG_From_char((char)(result)); | |
7699 | } | |
d55e5bfc RD |
7700 | return resultobj; |
7701 | fail: | |
7702 | return NULL; | |
7703 | } | |
7704 | ||
7705 | ||
c32bde28 | 7706 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7707 | PyObject *resultobj; |
7708 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7709 | size_t result; | |
7710 | PyObject * obj0 = 0 ; | |
7711 | char *kwnames[] = { | |
7712 | (char *) "self", NULL | |
7713 | }; | |
7714 | ||
7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7718 | { |
7719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7720 | result = (size_t)(arg1)->LastRead(); | |
7721 | ||
7722 | wxPyEndAllowThreads(__tstate); | |
7723 | if (PyErr_Occurred()) SWIG_fail; | |
7724 | } | |
093d3ff1 RD |
7725 | { |
7726 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
7727 | } | |
d55e5bfc RD |
7728 | return resultobj; |
7729 | fail: | |
7730 | return NULL; | |
7731 | } | |
7732 | ||
7733 | ||
c32bde28 | 7734 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7735 | PyObject *resultobj; |
7736 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7737 | bool result; | |
7738 | PyObject * obj0 = 0 ; | |
7739 | char *kwnames[] = { | |
7740 | (char *) "self", NULL | |
7741 | }; | |
7742 | ||
7743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7746 | { |
7747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7748 | result = (bool)(arg1)->CanRead(); | |
7749 | ||
7750 | wxPyEndAllowThreads(__tstate); | |
7751 | if (PyErr_Occurred()) SWIG_fail; | |
7752 | } | |
7753 | { | |
7754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7755 | } | |
7756 | return resultobj; | |
7757 | fail: | |
7758 | return NULL; | |
7759 | } | |
7760 | ||
7761 | ||
c32bde28 | 7762 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7763 | PyObject *resultobj; |
7764 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7765 | bool result; | |
7766 | PyObject * obj0 = 0 ; | |
7767 | char *kwnames[] = { | |
7768 | (char *) "self", NULL | |
7769 | }; | |
7770 | ||
7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7774 | { |
7775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7776 | result = (bool)(arg1)->Eof(); | |
7777 | ||
7778 | wxPyEndAllowThreads(__tstate); | |
7779 | if (PyErr_Occurred()) SWIG_fail; | |
7780 | } | |
7781 | { | |
7782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7783 | } | |
7784 | return resultobj; | |
7785 | fail: | |
7786 | return NULL; | |
7787 | } | |
7788 | ||
7789 | ||
c32bde28 | 7790 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7791 | PyObject *resultobj; |
7792 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7793 | char arg2 ; | |
7794 | bool result; | |
7795 | PyObject * obj0 = 0 ; | |
7796 | PyObject * obj1 = 0 ; | |
7797 | char *kwnames[] = { | |
7798 | (char *) "self",(char *) "c", NULL | |
7799 | }; | |
7800 | ||
7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7804 | { | |
7805 | arg2 = (char)(SWIG_As_char(obj1)); | |
7806 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7807 | } | |
d55e5bfc RD |
7808 | { |
7809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7810 | result = (bool)(arg1)->Ungetch(arg2); | |
7811 | ||
7812 | wxPyEndAllowThreads(__tstate); | |
7813 | if (PyErr_Occurred()) SWIG_fail; | |
7814 | } | |
7815 | { | |
7816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7817 | } | |
7818 | return resultobj; | |
7819 | fail: | |
7820 | return NULL; | |
7821 | } | |
7822 | ||
7823 | ||
c32bde28 | 7824 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7825 | PyObject *resultobj; |
7826 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7827 | long arg2 ; | |
093d3ff1 | 7828 | wxSeekMode arg3 = (wxSeekMode) wxFromStart ; |
d55e5bfc RD |
7829 | long result; |
7830 | PyObject * obj0 = 0 ; | |
7831 | PyObject * obj1 = 0 ; | |
7832 | PyObject * obj2 = 0 ; | |
7833 | char *kwnames[] = { | |
7834 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
7835 | }; | |
7836 | ||
7837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7840 | { | |
7841 | arg2 = (long)(SWIG_As_long(obj1)); | |
7842 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7843 | } | |
d55e5bfc | 7844 | if (obj2) { |
093d3ff1 RD |
7845 | { |
7846 | arg3 = (wxSeekMode)(SWIG_As_int(obj2)); | |
7847 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7848 | } | |
d55e5bfc RD |
7849 | } |
7850 | { | |
7851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7852 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
7853 | ||
7854 | wxPyEndAllowThreads(__tstate); | |
7855 | if (PyErr_Occurred()) SWIG_fail; | |
7856 | } | |
093d3ff1 RD |
7857 | { |
7858 | resultobj = SWIG_From_long((long)(result)); | |
7859 | } | |
d55e5bfc RD |
7860 | return resultobj; |
7861 | fail: | |
7862 | return NULL; | |
7863 | } | |
7864 | ||
7865 | ||
c32bde28 | 7866 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7867 | PyObject *resultobj; |
7868 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7869 | long result; | |
7870 | PyObject * obj0 = 0 ; | |
7871 | char *kwnames[] = { | |
7872 | (char *) "self", NULL | |
7873 | }; | |
7874 | ||
7875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7878 | { |
7879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7880 | result = (long)(arg1)->TellI(); | |
7881 | ||
7882 | wxPyEndAllowThreads(__tstate); | |
7883 | if (PyErr_Occurred()) SWIG_fail; | |
7884 | } | |
093d3ff1 RD |
7885 | { |
7886 | resultobj = SWIG_From_long((long)(result)); | |
7887 | } | |
d55e5bfc RD |
7888 | return resultobj; |
7889 | fail: | |
7890 | return NULL; | |
7891 | } | |
7892 | ||
7893 | ||
c32bde28 | 7894 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7895 | PyObject *obj; |
7896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7897 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
7898 | Py_INCREF(obj); | |
7899 | return Py_BuildValue((char *)""); | |
7900 | } | |
c32bde28 | 7901 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7902 | PyObject *resultobj; |
7903 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
7904 | PyObject *arg2 = (PyObject *) 0 ; | |
7905 | PyObject * obj0 = 0 ; | |
7906 | PyObject * obj1 = 0 ; | |
7907 | char *kwnames[] = { | |
7908 | (char *) "self",(char *) "obj", NULL | |
7909 | }; | |
7910 | ||
7911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxOutputStream, SWIG_POINTER_EXCEPTION | 0); |
7913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7914 | arg2 = obj1; |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | wxOutputStream_write(arg1,arg2); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | Py_INCREF(Py_None); resultobj = Py_None; | |
7923 | return resultobj; | |
7924 | fail: | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
c32bde28 | 7929 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7930 | PyObject *obj; |
7931 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7932 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
7933 | Py_INCREF(obj); | |
7934 | return Py_BuildValue((char *)""); | |
7935 | } | |
c32bde28 | 7936 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7937 | PyObject *resultobj; |
7938 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
7939 | wxString *arg2 = 0 ; | |
7940 | wxString *arg3 = 0 ; | |
7941 | wxString *arg4 = 0 ; | |
7942 | wxDateTime arg5 ; | |
7943 | wxFSFile *result; | |
7944 | wxPyInputStream *temp1 ; | |
ae8162c8 RD |
7945 | bool temp2 = false ; |
7946 | bool temp3 = false ; | |
7947 | bool temp4 = false ; | |
d55e5bfc RD |
7948 | PyObject * obj0 = 0 ; |
7949 | PyObject * obj1 = 0 ; | |
7950 | PyObject * obj2 = 0 ; | |
7951 | PyObject * obj3 = 0 ; | |
7952 | PyObject * obj4 = 0 ; | |
7953 | char *kwnames[] = { | |
7954 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
7955 | }; | |
7956 | ||
7957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
7958 | { | |
7959 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
e2950dbb | 7960 | arg1 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp1->m_wxis); |
d55e5bfc RD |
7961 | } else { |
7962 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e2950dbb | 7963 | arg1 = wxPyCBInputStream_create(obj0, true); |
d55e5bfc | 7964 | if (arg1 == NULL) { |
e2950dbb | 7965 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d55e5bfc RD |
7966 | SWIG_fail; |
7967 | } | |
d55e5bfc RD |
7968 | } |
7969 | } | |
7970 | { | |
7971 | arg2 = wxString_in_helper(obj1); | |
7972 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7973 | temp2 = true; |
d55e5bfc RD |
7974 | } |
7975 | { | |
7976 | arg3 = wxString_in_helper(obj2); | |
7977 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7978 | temp3 = true; |
d55e5bfc RD |
7979 | } |
7980 | { | |
7981 | arg4 = wxString_in_helper(obj3); | |
7982 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 7983 | temp4 = true; |
d55e5bfc | 7984 | } |
093d3ff1 RD |
7985 | { |
7986 | wxDateTime * argp; | |
7987 | SWIG_Python_ConvertPtr(obj4, (void **)&argp, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION); | |
7988 | if (SWIG_arg_fail(5)) SWIG_fail; | |
7989 | if (argp == NULL) { | |
7990 | SWIG_null_ref("wxDateTime"); | |
7991 | } | |
7992 | if (SWIG_arg_fail(5)) SWIG_fail; | |
7993 | arg5 = *argp; | |
7994 | } | |
d55e5bfc RD |
7995 | { |
7996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7997 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
7998 | ||
7999 | wxPyEndAllowThreads(__tstate); | |
8000 | if (PyErr_Occurred()) SWIG_fail; | |
8001 | } | |
8002 | { | |
412d302d | 8003 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc | 8004 | } |
d55e5bfc RD |
8005 | { |
8006 | if (temp2) | |
8007 | delete arg2; | |
8008 | } | |
8009 | { | |
8010 | if (temp3) | |
8011 | delete arg3; | |
8012 | } | |
8013 | { | |
8014 | if (temp4) | |
8015 | delete arg4; | |
8016 | } | |
8017 | return resultobj; | |
8018 | fail: | |
d55e5bfc RD |
8019 | { |
8020 | if (temp2) | |
8021 | delete arg2; | |
8022 | } | |
8023 | { | |
8024 | if (temp3) | |
8025 | delete arg3; | |
8026 | } | |
8027 | { | |
8028 | if (temp4) | |
8029 | delete arg4; | |
8030 | } | |
8031 | return NULL; | |
8032 | } | |
8033 | ||
8034 | ||
c32bde28 | 8035 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8036 | PyObject *resultobj; |
8037 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8038 | PyObject * obj0 = 0 ; | |
8039 | char *kwnames[] = { | |
8040 | (char *) "self", NULL | |
8041 | }; | |
8042 | ||
8043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8046 | { |
8047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8048 | delete arg1; | |
8049 | ||
8050 | wxPyEndAllowThreads(__tstate); | |
8051 | if (PyErr_Occurred()) SWIG_fail; | |
8052 | } | |
8053 | Py_INCREF(Py_None); resultobj = Py_None; | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | return NULL; | |
8057 | } | |
8058 | ||
8059 | ||
c32bde28 | 8060 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8061 | PyObject *resultobj; |
8062 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8063 | wxInputStream *result; | |
8064 | PyObject * obj0 = 0 ; | |
8065 | char *kwnames[] = { | |
8066 | (char *) "self", NULL | |
8067 | }; | |
8068 | ||
8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8072 | { |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8074 | result = (wxInputStream *)(arg1)->GetStream(); | |
8075 | ||
8076 | wxPyEndAllowThreads(__tstate); | |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
8078 | } | |
8079 | { | |
8080 | wxPyInputStream * _ptr = NULL; | |
8081 | ||
8082 | if (result) { | |
8083 | _ptr = new wxPyInputStream(result); | |
8084 | } | |
fc71d09b | 8085 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
8086 | } |
8087 | return resultobj; | |
8088 | fail: | |
8089 | return NULL; | |
8090 | } | |
8091 | ||
8092 | ||
c32bde28 | 8093 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8094 | PyObject *resultobj; |
8095 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8096 | wxString *result; | |
8097 | PyObject * obj0 = 0 ; | |
8098 | char *kwnames[] = { | |
8099 | (char *) "self", NULL | |
8100 | }; | |
8101 | ||
8102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8105 | { |
8106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8107 | { | |
8108 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
8109 | result = (wxString *) &_result_ref; | |
8110 | } | |
8111 | ||
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) SWIG_fail; | |
8114 | } | |
8115 | { | |
8116 | #if wxUSE_UNICODE | |
8117 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8118 | #else | |
8119 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8120 | #endif | |
8121 | } | |
8122 | return resultobj; | |
8123 | fail: | |
8124 | return NULL; | |
8125 | } | |
8126 | ||
8127 | ||
c32bde28 | 8128 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8129 | PyObject *resultobj; |
8130 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8131 | wxString *result; | |
8132 | PyObject * obj0 = 0 ; | |
8133 | char *kwnames[] = { | |
8134 | (char *) "self", NULL | |
8135 | }; | |
8136 | ||
8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8140 | { |
8141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8142 | { | |
8143 | wxString const &_result_ref = (arg1)->GetLocation(); | |
8144 | result = (wxString *) &_result_ref; | |
8145 | } | |
8146 | ||
8147 | wxPyEndAllowThreads(__tstate); | |
8148 | if (PyErr_Occurred()) SWIG_fail; | |
8149 | } | |
8150 | { | |
8151 | #if wxUSE_UNICODE | |
8152 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8153 | #else | |
8154 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8155 | #endif | |
8156 | } | |
8157 | return resultobj; | |
8158 | fail: | |
8159 | return NULL; | |
8160 | } | |
8161 | ||
8162 | ||
c32bde28 | 8163 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8164 | PyObject *resultobj; |
8165 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8166 | wxString *result; | |
8167 | PyObject * obj0 = 0 ; | |
8168 | char *kwnames[] = { | |
8169 | (char *) "self", NULL | |
8170 | }; | |
8171 | ||
8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8175 | { |
8176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8177 | { | |
8178 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
8179 | result = (wxString *) &_result_ref; | |
8180 | } | |
8181 | ||
8182 | wxPyEndAllowThreads(__tstate); | |
8183 | if (PyErr_Occurred()) SWIG_fail; | |
8184 | } | |
8185 | { | |
8186 | #if wxUSE_UNICODE | |
8187 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8188 | #else | |
8189 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8190 | #endif | |
8191 | } | |
8192 | return resultobj; | |
8193 | fail: | |
8194 | return NULL; | |
8195 | } | |
8196 | ||
8197 | ||
c32bde28 | 8198 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8199 | PyObject *resultobj; |
8200 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8201 | wxDateTime result; | |
8202 | PyObject * obj0 = 0 ; | |
8203 | char *kwnames[] = { | |
8204 | (char *) "self", NULL | |
8205 | }; | |
8206 | ||
8207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8210 | { |
8211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8212 | result = (arg1)->GetModificationTime(); | |
8213 | ||
8214 | wxPyEndAllowThreads(__tstate); | |
8215 | if (PyErr_Occurred()) SWIG_fail; | |
8216 | } | |
8217 | { | |
8218 | wxDateTime * resultptr; | |
093d3ff1 | 8219 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
8220 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
8221 | } | |
8222 | return resultobj; | |
8223 | fail: | |
8224 | return NULL; | |
8225 | } | |
8226 | ||
8227 | ||
c32bde28 | 8228 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8229 | PyObject *obj; |
8230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8231 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
8232 | Py_INCREF(obj); | |
8233 | return Py_BuildValue((char *)""); | |
8234 | } | |
c32bde28 | 8235 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8236 | PyObject *obj; |
8237 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8238 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
8239 | Py_INCREF(obj); | |
8240 | return Py_BuildValue((char *)""); | |
8241 | } | |
c32bde28 | 8242 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8243 | PyObject *resultobj; |
8244 | wxPyFileSystemHandler *result; | |
8245 | char *kwnames[] = { | |
8246 | NULL | |
8247 | }; | |
8248 | ||
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
8250 | { | |
8251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8252 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
8253 | ||
8254 | wxPyEndAllowThreads(__tstate); | |
8255 | if (PyErr_Occurred()) SWIG_fail; | |
8256 | } | |
8257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
8258 | return resultobj; | |
8259 | fail: | |
8260 | return NULL; | |
8261 | } | |
8262 | ||
8263 | ||
c32bde28 | 8264 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8265 | PyObject *resultobj; |
8266 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8267 | PyObject *arg2 = (PyObject *) 0 ; | |
8268 | PyObject *arg3 = (PyObject *) 0 ; | |
8269 | PyObject * obj0 = 0 ; | |
8270 | PyObject * obj1 = 0 ; | |
8271 | PyObject * obj2 = 0 ; | |
8272 | char *kwnames[] = { | |
8273 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8274 | }; | |
8275 | ||
8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8279 | arg2 = obj1; |
8280 | arg3 = obj2; | |
8281 | { | |
8282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8283 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8284 | ||
8285 | wxPyEndAllowThreads(__tstate); | |
8286 | if (PyErr_Occurred()) SWIG_fail; | |
8287 | } | |
8288 | Py_INCREF(Py_None); resultobj = Py_None; | |
8289 | return resultobj; | |
8290 | fail: | |
8291 | return NULL; | |
8292 | } | |
8293 | ||
8294 | ||
c32bde28 | 8295 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8296 | PyObject *resultobj; |
8297 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8298 | wxString *arg2 = 0 ; | |
8299 | bool result; | |
ae8162c8 | 8300 | bool temp2 = false ; |
d55e5bfc RD |
8301 | PyObject * obj0 = 0 ; |
8302 | PyObject * obj1 = 0 ; | |
8303 | char *kwnames[] = { | |
8304 | (char *) "self",(char *) "location", NULL | |
8305 | }; | |
8306 | ||
8307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8310 | { |
8311 | arg2 = wxString_in_helper(obj1); | |
8312 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8313 | temp2 = true; |
d55e5bfc RD |
8314 | } |
8315 | { | |
8316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8317 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8318 | ||
8319 | wxPyEndAllowThreads(__tstate); | |
8320 | if (PyErr_Occurred()) SWIG_fail; | |
8321 | } | |
8322 | { | |
8323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8324 | } | |
8325 | { | |
8326 | if (temp2) | |
8327 | delete arg2; | |
8328 | } | |
8329 | return resultobj; | |
8330 | fail: | |
8331 | { | |
8332 | if (temp2) | |
8333 | delete arg2; | |
8334 | } | |
8335 | return NULL; | |
8336 | } | |
8337 | ||
8338 | ||
c32bde28 | 8339 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8340 | PyObject *resultobj; |
8341 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8342 | wxFileSystem *arg2 = 0 ; | |
8343 | wxString *arg3 = 0 ; | |
8344 | wxFSFile *result; | |
ae8162c8 | 8345 | bool temp3 = false ; |
d55e5bfc RD |
8346 | PyObject * obj0 = 0 ; |
8347 | PyObject * obj1 = 0 ; | |
8348 | PyObject * obj2 = 0 ; | |
8349 | char *kwnames[] = { | |
8350 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8351 | }; | |
8352 | ||
8353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8356 | { | |
8357 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
8358 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8359 | if (arg2 == NULL) { | |
8360 | SWIG_null_ref("wxFileSystem"); | |
8361 | } | |
8362 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8363 | } |
8364 | { | |
8365 | arg3 = wxString_in_helper(obj2); | |
8366 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8367 | temp3 = true; |
d55e5bfc RD |
8368 | } |
8369 | { | |
8370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8371 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8372 | ||
8373 | wxPyEndAllowThreads(__tstate); | |
8374 | if (PyErr_Occurred()) SWIG_fail; | |
8375 | } | |
8376 | { | |
4cf4100f | 8377 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8378 | } |
8379 | { | |
8380 | if (temp3) | |
8381 | delete arg3; | |
8382 | } | |
8383 | return resultobj; | |
8384 | fail: | |
8385 | { | |
8386 | if (temp3) | |
8387 | delete arg3; | |
8388 | } | |
8389 | return NULL; | |
8390 | } | |
8391 | ||
8392 | ||
c32bde28 | 8393 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8394 | PyObject *resultobj; |
8395 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8396 | wxString *arg2 = 0 ; | |
8397 | int arg3 = (int) 0 ; | |
8398 | wxString result; | |
ae8162c8 | 8399 | bool temp2 = false ; |
d55e5bfc RD |
8400 | PyObject * obj0 = 0 ; |
8401 | PyObject * obj1 = 0 ; | |
8402 | PyObject * obj2 = 0 ; | |
8403 | char *kwnames[] = { | |
8404 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8405 | }; | |
8406 | ||
8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8410 | { |
8411 | arg2 = wxString_in_helper(obj1); | |
8412 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8413 | temp2 = true; |
d55e5bfc RD |
8414 | } |
8415 | if (obj2) { | |
093d3ff1 RD |
8416 | { |
8417 | arg3 = (int)(SWIG_As_int(obj2)); | |
8418 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8419 | } | |
d55e5bfc RD |
8420 | } |
8421 | { | |
8422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8423 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8424 | ||
8425 | wxPyEndAllowThreads(__tstate); | |
8426 | if (PyErr_Occurred()) SWIG_fail; | |
8427 | } | |
8428 | { | |
8429 | #if wxUSE_UNICODE | |
8430 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8431 | #else | |
8432 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8433 | #endif | |
8434 | } | |
8435 | { | |
8436 | if (temp2) | |
8437 | delete arg2; | |
8438 | } | |
8439 | return resultobj; | |
8440 | fail: | |
8441 | { | |
8442 | if (temp2) | |
8443 | delete arg2; | |
8444 | } | |
8445 | return NULL; | |
8446 | } | |
8447 | ||
8448 | ||
c32bde28 | 8449 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8450 | PyObject *resultobj; |
8451 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8452 | wxString result; | |
8453 | PyObject * obj0 = 0 ; | |
8454 | char *kwnames[] = { | |
8455 | (char *) "self", NULL | |
8456 | }; | |
8457 | ||
8458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8461 | { |
8462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8463 | result = (arg1)->FindNext(); | |
8464 | ||
8465 | wxPyEndAllowThreads(__tstate); | |
8466 | if (PyErr_Occurred()) SWIG_fail; | |
8467 | } | |
8468 | { | |
8469 | #if wxUSE_UNICODE | |
8470 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8471 | #else | |
8472 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8473 | #endif | |
8474 | } | |
8475 | return resultobj; | |
8476 | fail: | |
8477 | return NULL; | |
8478 | } | |
8479 | ||
8480 | ||
c32bde28 | 8481 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8482 | PyObject *resultobj; |
8483 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8484 | wxString *arg2 = 0 ; | |
8485 | wxString result; | |
ae8162c8 | 8486 | bool temp2 = false ; |
d55e5bfc RD |
8487 | PyObject * obj0 = 0 ; |
8488 | PyObject * obj1 = 0 ; | |
8489 | char *kwnames[] = { | |
8490 | (char *) "self",(char *) "location", NULL | |
8491 | }; | |
8492 | ||
8493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8496 | { |
8497 | arg2 = wxString_in_helper(obj1); | |
8498 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8499 | temp2 = true; |
d55e5bfc RD |
8500 | } |
8501 | { | |
8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8503 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
8504 | ||
8505 | wxPyEndAllowThreads(__tstate); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
8508 | { | |
8509 | #if wxUSE_UNICODE | |
8510 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8511 | #else | |
8512 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8513 | #endif | |
8514 | } | |
8515 | { | |
8516 | if (temp2) | |
8517 | delete arg2; | |
8518 | } | |
8519 | return resultobj; | |
8520 | fail: | |
8521 | { | |
8522 | if (temp2) | |
8523 | delete arg2; | |
8524 | } | |
8525 | return NULL; | |
8526 | } | |
8527 | ||
8528 | ||
c32bde28 | 8529 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8530 | PyObject *resultobj; |
8531 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8532 | wxString *arg2 = 0 ; | |
8533 | wxString result; | |
ae8162c8 | 8534 | bool temp2 = false ; |
d55e5bfc RD |
8535 | PyObject * obj0 = 0 ; |
8536 | PyObject * obj1 = 0 ; | |
8537 | char *kwnames[] = { | |
8538 | (char *) "self",(char *) "location", NULL | |
8539 | }; | |
8540 | ||
8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8544 | { |
8545 | arg2 = wxString_in_helper(obj1); | |
8546 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8547 | temp2 = true; |
d55e5bfc RD |
8548 | } |
8549 | { | |
8550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8551 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
8552 | ||
8553 | wxPyEndAllowThreads(__tstate); | |
8554 | if (PyErr_Occurred()) SWIG_fail; | |
8555 | } | |
8556 | { | |
8557 | #if wxUSE_UNICODE | |
8558 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8559 | #else | |
8560 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8561 | #endif | |
8562 | } | |
8563 | { | |
8564 | if (temp2) | |
8565 | delete arg2; | |
8566 | } | |
8567 | return resultobj; | |
8568 | fail: | |
8569 | { | |
8570 | if (temp2) | |
8571 | delete arg2; | |
8572 | } | |
8573 | return NULL; | |
8574 | } | |
8575 | ||
8576 | ||
c32bde28 | 8577 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8578 | PyObject *resultobj; |
8579 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8580 | wxString *arg2 = 0 ; | |
8581 | wxString result; | |
ae8162c8 | 8582 | bool temp2 = false ; |
d55e5bfc RD |
8583 | PyObject * obj0 = 0 ; |
8584 | PyObject * obj1 = 0 ; | |
8585 | char *kwnames[] = { | |
8586 | (char *) "self",(char *) "location", NULL | |
8587 | }; | |
8588 | ||
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8592 | { |
8593 | arg2 = wxString_in_helper(obj1); | |
8594 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8595 | temp2 = true; |
d55e5bfc RD |
8596 | } |
8597 | { | |
8598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8599 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
8600 | ||
8601 | wxPyEndAllowThreads(__tstate); | |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
8603 | } | |
8604 | { | |
8605 | #if wxUSE_UNICODE | |
8606 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8607 | #else | |
8608 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8609 | #endif | |
8610 | } | |
8611 | { | |
8612 | if (temp2) | |
8613 | delete arg2; | |
8614 | } | |
8615 | return resultobj; | |
8616 | fail: | |
8617 | { | |
8618 | if (temp2) | |
8619 | delete arg2; | |
8620 | } | |
8621 | return NULL; | |
8622 | } | |
8623 | ||
8624 | ||
c32bde28 | 8625 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8626 | PyObject *resultobj; |
8627 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8628 | wxString *arg2 = 0 ; | |
8629 | wxString result; | |
ae8162c8 | 8630 | bool temp2 = false ; |
d55e5bfc RD |
8631 | PyObject * obj0 = 0 ; |
8632 | PyObject * obj1 = 0 ; | |
8633 | char *kwnames[] = { | |
8634 | (char *) "self",(char *) "location", NULL | |
8635 | }; | |
8636 | ||
8637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8640 | { |
8641 | arg2 = wxString_in_helper(obj1); | |
8642 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8643 | temp2 = true; |
d55e5bfc RD |
8644 | } |
8645 | { | |
8646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8647 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
8648 | ||
8649 | wxPyEndAllowThreads(__tstate); | |
8650 | if (PyErr_Occurred()) SWIG_fail; | |
8651 | } | |
8652 | { | |
8653 | #if wxUSE_UNICODE | |
8654 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8655 | #else | |
8656 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8657 | #endif | |
8658 | } | |
8659 | { | |
8660 | if (temp2) | |
8661 | delete arg2; | |
8662 | } | |
8663 | return resultobj; | |
8664 | fail: | |
8665 | { | |
8666 | if (temp2) | |
8667 | delete arg2; | |
8668 | } | |
8669 | return NULL; | |
8670 | } | |
8671 | ||
8672 | ||
c32bde28 | 8673 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8674 | PyObject *resultobj; |
8675 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8676 | wxString *arg2 = 0 ; | |
8677 | wxString result; | |
ae8162c8 | 8678 | bool temp2 = false ; |
d55e5bfc RD |
8679 | PyObject * obj0 = 0 ; |
8680 | PyObject * obj1 = 0 ; | |
8681 | char *kwnames[] = { | |
8682 | (char *) "self",(char *) "location", NULL | |
8683 | }; | |
8684 | ||
8685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8688 | { |
8689 | arg2 = wxString_in_helper(obj1); | |
8690 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8691 | temp2 = true; |
d55e5bfc RD |
8692 | } |
8693 | { | |
8694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8695 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
8696 | ||
8697 | wxPyEndAllowThreads(__tstate); | |
8698 | if (PyErr_Occurred()) SWIG_fail; | |
8699 | } | |
8700 | { | |
8701 | #if wxUSE_UNICODE | |
8702 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8703 | #else | |
8704 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8705 | #endif | |
8706 | } | |
8707 | { | |
8708 | if (temp2) | |
8709 | delete arg2; | |
8710 | } | |
8711 | return resultobj; | |
8712 | fail: | |
8713 | { | |
8714 | if (temp2) | |
8715 | delete arg2; | |
8716 | } | |
8717 | return NULL; | |
8718 | } | |
8719 | ||
8720 | ||
c32bde28 | 8721 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8722 | PyObject *obj; |
8723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8724 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
8725 | Py_INCREF(obj); | |
8726 | return Py_BuildValue((char *)""); | |
8727 | } | |
c32bde28 | 8728 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8729 | PyObject *resultobj; |
8730 | wxFileSystem *result; | |
8731 | char *kwnames[] = { | |
8732 | NULL | |
8733 | }; | |
8734 | ||
8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
8736 | { | |
8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8738 | result = (wxFileSystem *)new wxFileSystem(); | |
8739 | ||
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
8743 | { | |
412d302d | 8744 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8745 | } |
8746 | return resultobj; | |
8747 | fail: | |
8748 | return NULL; | |
8749 | } | |
8750 | ||
8751 | ||
c32bde28 | 8752 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8753 | PyObject *resultobj; |
8754 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8755 | PyObject * obj0 = 0 ; | |
8756 | char *kwnames[] = { | |
8757 | (char *) "self", NULL | |
8758 | }; | |
8759 | ||
8760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8763 | { |
8764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8765 | delete arg1; | |
8766 | ||
8767 | wxPyEndAllowThreads(__tstate); | |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
8769 | } | |
8770 | Py_INCREF(Py_None); resultobj = Py_None; | |
8771 | return resultobj; | |
8772 | fail: | |
8773 | return NULL; | |
8774 | } | |
8775 | ||
8776 | ||
c32bde28 | 8777 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8778 | PyObject *resultobj; |
8779 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8780 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
8781 | bool arg3 = (bool) false ; |
8782 | bool temp2 = false ; | |
d55e5bfc RD |
8783 | PyObject * obj0 = 0 ; |
8784 | PyObject * obj1 = 0 ; | |
8785 | PyObject * obj2 = 0 ; | |
8786 | char *kwnames[] = { | |
8787 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
8788 | }; | |
8789 | ||
8790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8793 | { |
8794 | arg2 = wxString_in_helper(obj1); | |
8795 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8796 | temp2 = true; |
d55e5bfc RD |
8797 | } |
8798 | if (obj2) { | |
093d3ff1 RD |
8799 | { |
8800 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8801 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8802 | } | |
d55e5bfc RD |
8803 | } |
8804 | { | |
8805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8806 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
8807 | ||
8808 | wxPyEndAllowThreads(__tstate); | |
8809 | if (PyErr_Occurred()) SWIG_fail; | |
8810 | } | |
8811 | Py_INCREF(Py_None); resultobj = Py_None; | |
8812 | { | |
8813 | if (temp2) | |
8814 | delete arg2; | |
8815 | } | |
8816 | return resultobj; | |
8817 | fail: | |
8818 | { | |
8819 | if (temp2) | |
8820 | delete arg2; | |
8821 | } | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
c32bde28 | 8826 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8827 | PyObject *resultobj; |
8828 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8829 | wxString result; | |
8830 | PyObject * obj0 = 0 ; | |
8831 | char *kwnames[] = { | |
8832 | (char *) "self", NULL | |
8833 | }; | |
8834 | ||
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8838 | { |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8840 | result = (arg1)->GetPath(); | |
8841 | ||
8842 | wxPyEndAllowThreads(__tstate); | |
8843 | if (PyErr_Occurred()) SWIG_fail; | |
8844 | } | |
8845 | { | |
8846 | #if wxUSE_UNICODE | |
8847 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8848 | #else | |
8849 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8850 | #endif | |
8851 | } | |
8852 | return resultobj; | |
8853 | fail: | |
8854 | return NULL; | |
8855 | } | |
8856 | ||
8857 | ||
c32bde28 | 8858 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8859 | PyObject *resultobj; |
8860 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8861 | wxString *arg2 = 0 ; | |
8862 | wxFSFile *result; | |
ae8162c8 | 8863 | bool temp2 = false ; |
d55e5bfc RD |
8864 | PyObject * obj0 = 0 ; |
8865 | PyObject * obj1 = 0 ; | |
8866 | char *kwnames[] = { | |
8867 | (char *) "self",(char *) "location", NULL | |
8868 | }; | |
8869 | ||
8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8871 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8873 | { |
8874 | arg2 = wxString_in_helper(obj1); | |
8875 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8876 | temp2 = true; |
d55e5bfc RD |
8877 | } |
8878 | { | |
8879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8880 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
8881 | ||
8882 | wxPyEndAllowThreads(__tstate); | |
8883 | if (PyErr_Occurred()) SWIG_fail; | |
8884 | } | |
8885 | { | |
4cf4100f | 8886 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8887 | } |
8888 | { | |
8889 | if (temp2) | |
8890 | delete arg2; | |
8891 | } | |
8892 | return resultobj; | |
8893 | fail: | |
8894 | { | |
8895 | if (temp2) | |
8896 | delete arg2; | |
8897 | } | |
8898 | return NULL; | |
8899 | } | |
8900 | ||
8901 | ||
c32bde28 | 8902 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8903 | PyObject *resultobj; |
8904 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8905 | wxString *arg2 = 0 ; | |
8906 | int arg3 = (int) 0 ; | |
8907 | wxString result; | |
ae8162c8 | 8908 | bool temp2 = false ; |
d55e5bfc RD |
8909 | PyObject * obj0 = 0 ; |
8910 | PyObject * obj1 = 0 ; | |
8911 | PyObject * obj2 = 0 ; | |
8912 | char *kwnames[] = { | |
8913 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8914 | }; | |
8915 | ||
8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8919 | { |
8920 | arg2 = wxString_in_helper(obj1); | |
8921 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8922 | temp2 = true; |
d55e5bfc RD |
8923 | } |
8924 | if (obj2) { | |
093d3ff1 RD |
8925 | { |
8926 | arg3 = (int)(SWIG_As_int(obj2)); | |
8927 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8928 | } | |
d55e5bfc RD |
8929 | } |
8930 | { | |
8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8932 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8933 | ||
8934 | wxPyEndAllowThreads(__tstate); | |
8935 | if (PyErr_Occurred()) SWIG_fail; | |
8936 | } | |
8937 | { | |
8938 | #if wxUSE_UNICODE | |
8939 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8940 | #else | |
8941 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8942 | #endif | |
8943 | } | |
8944 | { | |
8945 | if (temp2) | |
8946 | delete arg2; | |
8947 | } | |
8948 | return resultobj; | |
8949 | fail: | |
8950 | { | |
8951 | if (temp2) | |
8952 | delete arg2; | |
8953 | } | |
8954 | return NULL; | |
8955 | } | |
8956 | ||
8957 | ||
c32bde28 | 8958 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8959 | PyObject *resultobj; |
8960 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8961 | wxString result; | |
8962 | PyObject * obj0 = 0 ; | |
8963 | char *kwnames[] = { | |
8964 | (char *) "self", NULL | |
8965 | }; | |
8966 | ||
8967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8970 | { |
8971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8972 | result = (arg1)->FindNext(); | |
8973 | ||
8974 | wxPyEndAllowThreads(__tstate); | |
8975 | if (PyErr_Occurred()) SWIG_fail; | |
8976 | } | |
8977 | { | |
8978 | #if wxUSE_UNICODE | |
8979 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8980 | #else | |
8981 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8982 | #endif | |
8983 | } | |
8984 | return resultobj; | |
8985 | fail: | |
8986 | return NULL; | |
8987 | } | |
8988 | ||
8989 | ||
c32bde28 | 8990 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8991 | PyObject *resultobj; |
8992 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
8993 | PyObject * obj0 = 0 ; | |
8994 | char *kwnames[] = { | |
8995 | (char *) "handler", NULL | |
8996 | }; | |
8997 | ||
8998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
9000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9001 | { |
9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9003 | wxFileSystem::AddHandler(arg1); | |
9004 | ||
9005 | wxPyEndAllowThreads(__tstate); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | } | |
9008 | Py_INCREF(Py_None); resultobj = Py_None; | |
9009 | return resultobj; | |
9010 | fail: | |
9011 | return NULL; | |
9012 | } | |
9013 | ||
9014 | ||
c32bde28 | 9015 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9016 | PyObject *resultobj; |
9017 | char *kwnames[] = { | |
9018 | NULL | |
9019 | }; | |
9020 | ||
9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
9022 | { | |
9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9024 | wxFileSystem::CleanUpHandlers(); | |
9025 | ||
9026 | wxPyEndAllowThreads(__tstate); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
9029 | Py_INCREF(Py_None); resultobj = Py_None; | |
9030 | return resultobj; | |
9031 | fail: | |
9032 | return NULL; | |
9033 | } | |
9034 | ||
9035 | ||
c32bde28 | 9036 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9037 | PyObject *resultobj; |
9038 | wxString *arg1 = 0 ; | |
9039 | wxString result; | |
ae8162c8 | 9040 | bool temp1 = false ; |
d55e5bfc RD |
9041 | PyObject * obj0 = 0 ; |
9042 | char *kwnames[] = { | |
9043 | (char *) "filename", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
9047 | { | |
9048 | arg1 = wxString_in_helper(obj0); | |
9049 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9050 | temp1 = true; |
d55e5bfc RD |
9051 | } |
9052 | { | |
9053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9054 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
9055 | ||
9056 | wxPyEndAllowThreads(__tstate); | |
9057 | if (PyErr_Occurred()) SWIG_fail; | |
9058 | } | |
9059 | { | |
9060 | #if wxUSE_UNICODE | |
9061 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9062 | #else | |
9063 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9064 | #endif | |
9065 | } | |
9066 | { | |
9067 | if (temp1) | |
9068 | delete arg1; | |
9069 | } | |
9070 | return resultobj; | |
9071 | fail: | |
9072 | { | |
9073 | if (temp1) | |
9074 | delete arg1; | |
9075 | } | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
c32bde28 | 9080 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9081 | PyObject *resultobj; |
9082 | wxString *arg1 = 0 ; | |
9083 | wxString result; | |
ae8162c8 | 9084 | bool temp1 = false ; |
d55e5bfc RD |
9085 | PyObject * obj0 = 0 ; |
9086 | char *kwnames[] = { | |
9087 | (char *) "url", NULL | |
9088 | }; | |
9089 | ||
9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
9091 | { | |
9092 | arg1 = wxString_in_helper(obj0); | |
9093 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9094 | temp1 = true; |
d55e5bfc RD |
9095 | } |
9096 | { | |
9097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ae8162c8 | 9098 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d55e5bfc RD |
9099 | |
9100 | wxPyEndAllowThreads(__tstate); | |
9101 | if (PyErr_Occurred()) SWIG_fail; | |
9102 | } | |
9103 | { | |
9104 | #if wxUSE_UNICODE | |
9105 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9106 | #else | |
9107 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9108 | #endif | |
9109 | } | |
9110 | { | |
9111 | if (temp1) | |
9112 | delete arg1; | |
9113 | } | |
9114 | return resultobj; | |
9115 | fail: | |
9116 | { | |
9117 | if (temp1) | |
9118 | delete arg1; | |
9119 | } | |
9120 | return NULL; | |
9121 | } | |
9122 | ||
9123 | ||
ae8162c8 RD |
9124 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
9125 | PyObject *obj; | |
9126 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9127 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
9128 | Py_INCREF(obj); | |
9129 | return Py_BuildValue((char *)""); | |
9130 | } | |
c32bde28 | 9131 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9132 | PyObject *resultobj; |
9133 | wxInternetFSHandler *result; | |
9134 | char *kwnames[] = { | |
9135 | NULL | |
9136 | }; | |
9137 | ||
9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
9139 | { | |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
9146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
9147 | return resultobj; | |
9148 | fail: | |
9149 | return NULL; | |
9150 | } | |
9151 | ||
9152 | ||
c32bde28 | 9153 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9154 | PyObject *resultobj; |
9155 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
9156 | wxString *arg2 = 0 ; | |
9157 | bool result; | |
ae8162c8 | 9158 | bool temp2 = false ; |
d55e5bfc RD |
9159 | PyObject * obj0 = 0 ; |
9160 | PyObject * obj1 = 0 ; | |
9161 | char *kwnames[] = { | |
9162 | (char *) "self",(char *) "location", NULL | |
9163 | }; | |
9164 | ||
9165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9168 | { |
9169 | arg2 = wxString_in_helper(obj1); | |
9170 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9171 | temp2 = true; |
d55e5bfc RD |
9172 | } |
9173 | { | |
9174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9175 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9176 | ||
9177 | wxPyEndAllowThreads(__tstate); | |
9178 | if (PyErr_Occurred()) SWIG_fail; | |
9179 | } | |
9180 | { | |
9181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9182 | } | |
9183 | { | |
9184 | if (temp2) | |
9185 | delete arg2; | |
9186 | } | |
9187 | return resultobj; | |
9188 | fail: | |
9189 | { | |
9190 | if (temp2) | |
9191 | delete arg2; | |
9192 | } | |
9193 | return NULL; | |
9194 | } | |
9195 | ||
9196 | ||
c32bde28 | 9197 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9198 | PyObject *resultobj; |
9199 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
9200 | wxFileSystem *arg2 = 0 ; | |
9201 | wxString *arg3 = 0 ; | |
9202 | wxFSFile *result; | |
ae8162c8 | 9203 | bool temp3 = false ; |
d55e5bfc RD |
9204 | PyObject * obj0 = 0 ; |
9205 | PyObject * obj1 = 0 ; | |
9206 | PyObject * obj2 = 0 ; | |
9207 | char *kwnames[] = { | |
9208 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9209 | }; | |
9210 | ||
9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9212 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9213 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9214 | { | |
9215 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9216 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9217 | if (arg2 == NULL) { | |
9218 | SWIG_null_ref("wxFileSystem"); | |
9219 | } | |
9220 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
9221 | } |
9222 | { | |
9223 | arg3 = wxString_in_helper(obj2); | |
9224 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9225 | temp3 = true; |
d55e5bfc RD |
9226 | } |
9227 | { | |
9228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9229 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9230 | ||
9231 | wxPyEndAllowThreads(__tstate); | |
9232 | if (PyErr_Occurred()) SWIG_fail; | |
9233 | } | |
9234 | { | |
4cf4100f | 9235 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
9236 | } |
9237 | { | |
9238 | if (temp3) | |
9239 | delete arg3; | |
9240 | } | |
9241 | return resultobj; | |
9242 | fail: | |
9243 | { | |
9244 | if (temp3) | |
9245 | delete arg3; | |
9246 | } | |
9247 | return NULL; | |
9248 | } | |
9249 | ||
9250 | ||
c32bde28 | 9251 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9252 | PyObject *obj; |
9253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9254 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
9255 | Py_INCREF(obj); | |
9256 | return Py_BuildValue((char *)""); | |
9257 | } | |
c32bde28 | 9258 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9259 | PyObject *resultobj; |
9260 | wxZipFSHandler *result; | |
9261 | char *kwnames[] = { | |
9262 | NULL | |
9263 | }; | |
9264 | ||
9265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
9266 | { | |
9267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9268 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
9269 | ||
9270 | wxPyEndAllowThreads(__tstate); | |
9271 | if (PyErr_Occurred()) SWIG_fail; | |
9272 | } | |
9273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
9274 | return resultobj; | |
9275 | fail: | |
9276 | return NULL; | |
9277 | } | |
9278 | ||
9279 | ||
c32bde28 | 9280 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9281 | PyObject *resultobj; |
9282 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9283 | wxString *arg2 = 0 ; | |
9284 | bool result; | |
ae8162c8 | 9285 | bool temp2 = false ; |
d55e5bfc RD |
9286 | PyObject * obj0 = 0 ; |
9287 | PyObject * obj1 = 0 ; | |
9288 | char *kwnames[] = { | |
9289 | (char *) "self",(char *) "location", NULL | |
9290 | }; | |
9291 | ||
9292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9295 | { |
9296 | arg2 = wxString_in_helper(obj1); | |
9297 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9298 | temp2 = true; |
d55e5bfc RD |
9299 | } |
9300 | { | |
9301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9302 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9303 | ||
9304 | wxPyEndAllowThreads(__tstate); | |
9305 | if (PyErr_Occurred()) SWIG_fail; | |
9306 | } | |
9307 | { | |
9308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9309 | } | |
9310 | { | |
9311 | if (temp2) | |
9312 | delete arg2; | |
9313 | } | |
9314 | return resultobj; | |
9315 | fail: | |
9316 | { | |
9317 | if (temp2) | |
9318 | delete arg2; | |
9319 | } | |
9320 | return NULL; | |
9321 | } | |
9322 | ||
9323 | ||
c32bde28 | 9324 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9325 | PyObject *resultobj; |
9326 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9327 | wxFileSystem *arg2 = 0 ; | |
9328 | wxString *arg3 = 0 ; | |
9329 | wxFSFile *result; | |
ae8162c8 | 9330 | bool temp3 = false ; |
d55e5bfc RD |
9331 | PyObject * obj0 = 0 ; |
9332 | PyObject * obj1 = 0 ; | |
9333 | PyObject * obj2 = 0 ; | |
9334 | char *kwnames[] = { | |
9335 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9336 | }; | |
9337 | ||
9338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9341 | { | |
9342 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9343 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9344 | if (arg2 == NULL) { | |
9345 | SWIG_null_ref("wxFileSystem"); | |
9346 | } | |
9347 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
9348 | } |
9349 | { | |
9350 | arg3 = wxString_in_helper(obj2); | |
9351 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9352 | temp3 = true; |
d55e5bfc RD |
9353 | } |
9354 | { | |
9355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9356 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9357 | ||
9358 | wxPyEndAllowThreads(__tstate); | |
9359 | if (PyErr_Occurred()) SWIG_fail; | |
9360 | } | |
9361 | { | |
4cf4100f | 9362 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
9363 | } |
9364 | { | |
9365 | if (temp3) | |
9366 | delete arg3; | |
9367 | } | |
9368 | return resultobj; | |
9369 | fail: | |
9370 | { | |
9371 | if (temp3) | |
9372 | delete arg3; | |
9373 | } | |
9374 | return NULL; | |
9375 | } | |
9376 | ||
9377 | ||
c32bde28 | 9378 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9379 | PyObject *resultobj; |
9380 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9381 | wxString *arg2 = 0 ; | |
9382 | int arg3 = (int) 0 ; | |
9383 | wxString result; | |
ae8162c8 | 9384 | bool temp2 = false ; |
d55e5bfc RD |
9385 | PyObject * obj0 = 0 ; |
9386 | PyObject * obj1 = 0 ; | |
9387 | PyObject * obj2 = 0 ; | |
9388 | char *kwnames[] = { | |
9389 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
9390 | }; | |
9391 | ||
9392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9395 | { |
9396 | arg2 = wxString_in_helper(obj1); | |
9397 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9398 | temp2 = true; |
d55e5bfc RD |
9399 | } |
9400 | if (obj2) { | |
093d3ff1 RD |
9401 | { |
9402 | arg3 = (int)(SWIG_As_int(obj2)); | |
9403 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9404 | } | |
d55e5bfc RD |
9405 | } |
9406 | { | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
9409 | ||
9410 | wxPyEndAllowThreads(__tstate); | |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | } | |
9413 | { | |
9414 | #if wxUSE_UNICODE | |
9415 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9416 | #else | |
9417 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9418 | #endif | |
9419 | } | |
9420 | { | |
9421 | if (temp2) | |
9422 | delete arg2; | |
9423 | } | |
9424 | return resultobj; | |
9425 | fail: | |
9426 | { | |
9427 | if (temp2) | |
9428 | delete arg2; | |
9429 | } | |
9430 | return NULL; | |
9431 | } | |
9432 | ||
9433 | ||
c32bde28 | 9434 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9435 | PyObject *resultobj; |
9436 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9437 | wxString result; | |
9438 | PyObject * obj0 = 0 ; | |
9439 | char *kwnames[] = { | |
9440 | (char *) "self", NULL | |
9441 | }; | |
9442 | ||
9443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9446 | { |
9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9448 | result = (arg1)->FindNext(); | |
9449 | ||
9450 | wxPyEndAllowThreads(__tstate); | |
9451 | if (PyErr_Occurred()) SWIG_fail; | |
9452 | } | |
9453 | { | |
9454 | #if wxUSE_UNICODE | |
9455 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9456 | #else | |
9457 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9458 | #endif | |
9459 | } | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
c32bde28 | 9466 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9467 | PyObject *obj; |
9468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9469 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
9470 | Py_INCREF(obj); | |
9471 | return Py_BuildValue((char *)""); | |
9472 | } | |
c32bde28 | 9473 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9474 | PyObject *resultobj; |
9475 | wxString *arg1 = 0 ; | |
9476 | wxImage *arg2 = 0 ; | |
9477 | long arg3 ; | |
ae8162c8 | 9478 | bool temp1 = false ; |
d55e5bfc RD |
9479 | PyObject * obj0 = 0 ; |
9480 | PyObject * obj1 = 0 ; | |
9481 | PyObject * obj2 = 0 ; | |
9482 | char *kwnames[] = { | |
9483 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
9484 | }; | |
9485 | ||
9486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9487 | { | |
9488 | arg1 = wxString_in_helper(obj0); | |
9489 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9490 | temp1 = true; |
d55e5bfc | 9491 | } |
093d3ff1 RD |
9492 | { |
9493 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
9494 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9495 | if (arg2 == NULL) { | |
9496 | SWIG_null_ref("wxImage"); | |
9497 | } | |
9498 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9499 | } | |
9500 | { | |
9501 | arg3 = (long)(SWIG_As_long(obj2)); | |
9502 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc | 9503 | } |
d55e5bfc RD |
9504 | { |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
9507 | ||
9508 | wxPyEndAllowThreads(__tstate); | |
9509 | if (PyErr_Occurred()) SWIG_fail; | |
9510 | } | |
9511 | Py_INCREF(Py_None); resultobj = Py_None; | |
9512 | { | |
9513 | if (temp1) | |
9514 | delete arg1; | |
9515 | } | |
9516 | return resultobj; | |
9517 | fail: | |
9518 | { | |
9519 | if (temp1) | |
9520 | delete arg1; | |
9521 | } | |
9522 | return NULL; | |
9523 | } | |
9524 | ||
9525 | ||
c32bde28 | 9526 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9527 | PyObject *resultobj; |
9528 | wxString *arg1 = 0 ; | |
9529 | wxBitmap *arg2 = 0 ; | |
9530 | long arg3 ; | |
ae8162c8 | 9531 | bool temp1 = false ; |
d55e5bfc RD |
9532 | PyObject * obj0 = 0 ; |
9533 | PyObject * obj1 = 0 ; | |
9534 | PyObject * obj2 = 0 ; | |
9535 | char *kwnames[] = { | |
9536 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
9537 | }; | |
9538 | ||
9539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9540 | { | |
9541 | arg1 = wxString_in_helper(obj0); | |
9542 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9543 | temp1 = true; |
d55e5bfc | 9544 | } |
093d3ff1 RD |
9545 | { |
9546 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
9547 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9548 | if (arg2 == NULL) { | |
9549 | SWIG_null_ref("wxBitmap"); | |
9550 | } | |
9551 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9552 | } | |
9553 | { | |
9554 | arg3 = (long)(SWIG_As_long(obj2)); | |
9555 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc | 9556 | } |
d55e5bfc RD |
9557 | { |
9558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9559 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
9560 | ||
9561 | wxPyEndAllowThreads(__tstate); | |
9562 | if (PyErr_Occurred()) SWIG_fail; | |
9563 | } | |
9564 | Py_INCREF(Py_None); resultobj = Py_None; | |
9565 | { | |
9566 | if (temp1) | |
9567 | delete arg1; | |
9568 | } | |
9569 | return resultobj; | |
9570 | fail: | |
9571 | { | |
9572 | if (temp1) | |
9573 | delete arg1; | |
9574 | } | |
9575 | return NULL; | |
9576 | } | |
9577 | ||
9578 | ||
c32bde28 | 9579 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9580 | PyObject *resultobj; |
9581 | wxString *arg1 = 0 ; | |
9582 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 | 9583 | bool temp1 = false ; |
d55e5bfc RD |
9584 | PyObject * obj0 = 0 ; |
9585 | PyObject * obj1 = 0 ; | |
9586 | char *kwnames[] = { | |
9587 | (char *) "filename",(char *) "data", NULL | |
9588 | }; | |
9589 | ||
9590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
9591 | { | |
9592 | arg1 = wxString_in_helper(obj0); | |
9593 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9594 | temp1 = true; |
d55e5bfc RD |
9595 | } |
9596 | arg2 = obj1; | |
9597 | { | |
9598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9599 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
9600 | ||
9601 | wxPyEndAllowThreads(__tstate); | |
9602 | if (PyErr_Occurred()) SWIG_fail; | |
9603 | } | |
9604 | Py_INCREF(Py_None); resultobj = Py_None; | |
9605 | { | |
9606 | if (temp1) | |
9607 | delete arg1; | |
9608 | } | |
9609 | return resultobj; | |
9610 | fail: | |
9611 | { | |
9612 | if (temp1) | |
9613 | delete arg1; | |
9614 | } | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
c32bde28 | 9619 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9620 | PyObject *resultobj; |
9621 | wxMemoryFSHandler *result; | |
9622 | char *kwnames[] = { | |
9623 | NULL | |
9624 | }; | |
9625 | ||
9626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
9627 | { | |
9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9629 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
9630 | ||
9631 | wxPyEndAllowThreads(__tstate); | |
9632 | if (PyErr_Occurred()) SWIG_fail; | |
9633 | } | |
9634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
9635 | return resultobj; | |
9636 | fail: | |
9637 | return NULL; | |
9638 | } | |
9639 | ||
9640 | ||
c32bde28 | 9641 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9642 | PyObject *resultobj; |
9643 | wxString *arg1 = 0 ; | |
ae8162c8 | 9644 | bool temp1 = false ; |
d55e5bfc RD |
9645 | PyObject * obj0 = 0 ; |
9646 | char *kwnames[] = { | |
9647 | (char *) "filename", NULL | |
9648 | }; | |
9649 | ||
9650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
9651 | { | |
9652 | arg1 = wxString_in_helper(obj0); | |
9653 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9654 | temp1 = true; |
d55e5bfc RD |
9655 | } |
9656 | { | |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
9659 | ||
9660 | wxPyEndAllowThreads(__tstate); | |
9661 | if (PyErr_Occurred()) SWIG_fail; | |
9662 | } | |
9663 | Py_INCREF(Py_None); resultobj = Py_None; | |
9664 | { | |
9665 | if (temp1) | |
9666 | delete arg1; | |
9667 | } | |
9668 | return resultobj; | |
9669 | fail: | |
9670 | { | |
9671 | if (temp1) | |
9672 | delete arg1; | |
9673 | } | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
c32bde28 | 9678 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9679 | PyObject *resultobj; |
9680 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9681 | wxString *arg2 = 0 ; | |
9682 | bool result; | |
ae8162c8 | 9683 | bool temp2 = false ; |
d55e5bfc RD |
9684 | PyObject * obj0 = 0 ; |
9685 | PyObject * obj1 = 0 ; | |
9686 | char *kwnames[] = { | |
9687 | (char *) "self",(char *) "location", NULL | |
9688 | }; | |
9689 | ||
9690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9693 | { |
9694 | arg2 = wxString_in_helper(obj1); | |
9695 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9696 | temp2 = true; |
d55e5bfc RD |
9697 | } |
9698 | { | |
9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9700 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9701 | ||
9702 | wxPyEndAllowThreads(__tstate); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
9705 | { | |
9706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9707 | } | |
9708 | { | |
9709 | if (temp2) | |
9710 | delete arg2; | |
9711 | } | |
9712 | return resultobj; | |
9713 | fail: | |
9714 | { | |
9715 | if (temp2) | |
9716 | delete arg2; | |
9717 | } | |
9718 | return NULL; | |
9719 | } | |
9720 | ||
9721 | ||
c32bde28 | 9722 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9723 | PyObject *resultobj; |
9724 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9725 | wxFileSystem *arg2 = 0 ; | |
9726 | wxString *arg3 = 0 ; | |
9727 | wxFSFile *result; | |
ae8162c8 | 9728 | bool temp3 = false ; |
d55e5bfc RD |
9729 | PyObject * obj0 = 0 ; |
9730 | PyObject * obj1 = 0 ; | |
9731 | PyObject * obj2 = 0 ; | |
9732 | char *kwnames[] = { | |
9733 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9734 | }; | |
9735 | ||
9736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9739 | { | |
9740 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9741 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9742 | if (arg2 == NULL) { | |
9743 | SWIG_null_ref("wxFileSystem"); | |
9744 | } | |
9745 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
9746 | } |
9747 | { | |
9748 | arg3 = wxString_in_helper(obj2); | |
9749 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9750 | temp3 = true; |
d55e5bfc RD |
9751 | } |
9752 | { | |
9753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9754 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9755 | ||
9756 | wxPyEndAllowThreads(__tstate); | |
9757 | if (PyErr_Occurred()) SWIG_fail; | |
9758 | } | |
9759 | { | |
4cf4100f | 9760 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
9761 | } |
9762 | { | |
9763 | if (temp3) | |
9764 | delete arg3; | |
9765 | } | |
9766 | return resultobj; | |
9767 | fail: | |
9768 | { | |
9769 | if (temp3) | |
9770 | delete arg3; | |
9771 | } | |
9772 | return NULL; | |
9773 | } | |
9774 | ||
9775 | ||
c32bde28 | 9776 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9777 | PyObject *resultobj; |
9778 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9779 | wxString *arg2 = 0 ; | |
9780 | int arg3 = (int) 0 ; | |
9781 | wxString result; | |
ae8162c8 | 9782 | bool temp2 = false ; |
d55e5bfc RD |
9783 | PyObject * obj0 = 0 ; |
9784 | PyObject * obj1 = 0 ; | |
9785 | PyObject * obj2 = 0 ; | |
9786 | char *kwnames[] = { | |
9787 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
9788 | }; | |
9789 | ||
9790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9793 | { |
9794 | arg2 = wxString_in_helper(obj1); | |
9795 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9796 | temp2 = true; |
d55e5bfc RD |
9797 | } |
9798 | if (obj2) { | |
093d3ff1 RD |
9799 | { |
9800 | arg3 = (int)(SWIG_As_int(obj2)); | |
9801 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9802 | } | |
d55e5bfc RD |
9803 | } |
9804 | { | |
9805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9806 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
9807 | ||
9808 | wxPyEndAllowThreads(__tstate); | |
9809 | if (PyErr_Occurred()) SWIG_fail; | |
9810 | } | |
9811 | { | |
9812 | #if wxUSE_UNICODE | |
9813 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9814 | #else | |
9815 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9816 | #endif | |
9817 | } | |
9818 | { | |
9819 | if (temp2) | |
9820 | delete arg2; | |
9821 | } | |
9822 | return resultobj; | |
9823 | fail: | |
9824 | { | |
9825 | if (temp2) | |
9826 | delete arg2; | |
9827 | } | |
9828 | return NULL; | |
9829 | } | |
9830 | ||
9831 | ||
c32bde28 | 9832 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9833 | PyObject *resultobj; |
9834 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9835 | wxString result; | |
9836 | PyObject * obj0 = 0 ; | |
9837 | char *kwnames[] = { | |
9838 | (char *) "self", NULL | |
9839 | }; | |
9840 | ||
9841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9844 | { |
9845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9846 | result = (arg1)->FindNext(); | |
9847 | ||
9848 | wxPyEndAllowThreads(__tstate); | |
9849 | if (PyErr_Occurred()) SWIG_fail; | |
9850 | } | |
9851 | { | |
9852 | #if wxUSE_UNICODE | |
9853 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9854 | #else | |
9855 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9856 | #endif | |
9857 | } | |
9858 | return resultobj; | |
9859 | fail: | |
9860 | return NULL; | |
9861 | } | |
9862 | ||
9863 | ||
c32bde28 | 9864 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9865 | PyObject *obj; |
9866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9867 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
9868 | Py_INCREF(obj); | |
9869 | return Py_BuildValue((char *)""); | |
9870 | } | |
c32bde28 | 9871 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9872 | PyObject *resultobj; |
9873 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9874 | wxString result; | |
9875 | PyObject * obj0 = 0 ; | |
9876 | char *kwnames[] = { | |
9877 | (char *) "self", NULL | |
9878 | }; | |
9879 | ||
9880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9883 | { |
9884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9885 | result = (arg1)->GetName(); | |
9886 | ||
9887 | wxPyEndAllowThreads(__tstate); | |
9888 | if (PyErr_Occurred()) SWIG_fail; | |
9889 | } | |
9890 | { | |
9891 | #if wxUSE_UNICODE | |
9892 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9893 | #else | |
9894 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9895 | #endif | |
9896 | } | |
9897 | return resultobj; | |
9898 | fail: | |
9899 | return NULL; | |
9900 | } | |
9901 | ||
9902 | ||
c32bde28 | 9903 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9904 | PyObject *resultobj; |
9905 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9906 | wxString result; | |
9907 | PyObject * obj0 = 0 ; | |
9908 | char *kwnames[] = { | |
9909 | (char *) "self", NULL | |
9910 | }; | |
9911 | ||
9912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9915 | { |
9916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9917 | result = (arg1)->GetExtension(); | |
9918 | ||
9919 | wxPyEndAllowThreads(__tstate); | |
9920 | if (PyErr_Occurred()) SWIG_fail; | |
9921 | } | |
9922 | { | |
9923 | #if wxUSE_UNICODE | |
9924 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9925 | #else | |
9926 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9927 | #endif | |
9928 | } | |
9929 | return resultobj; | |
9930 | fail: | |
9931 | return NULL; | |
9932 | } | |
9933 | ||
9934 | ||
c32bde28 | 9935 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9936 | PyObject *resultobj; |
9937 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9938 | long result; | |
9939 | PyObject * obj0 = 0 ; | |
9940 | char *kwnames[] = { | |
9941 | (char *) "self", NULL | |
9942 | }; | |
9943 | ||
9944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9947 | { |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9949 | result = (long)(arg1)->GetType(); | |
9950 | ||
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
093d3ff1 RD |
9954 | { |
9955 | resultobj = SWIG_From_long((long)(result)); | |
9956 | } | |
d55e5bfc RD |
9957 | return resultobj; |
9958 | fail: | |
9959 | return NULL; | |
9960 | } | |
9961 | ||
9962 | ||
c32bde28 | 9963 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9964 | PyObject *resultobj; |
9965 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9966 | wxString result; | |
9967 | PyObject * obj0 = 0 ; | |
9968 | char *kwnames[] = { | |
9969 | (char *) "self", NULL | |
9970 | }; | |
9971 | ||
9972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9975 | { |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9977 | result = (arg1)->GetMimeType(); | |
9978 | ||
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
9982 | { | |
9983 | #if wxUSE_UNICODE | |
9984 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9985 | #else | |
9986 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9987 | #endif | |
9988 | } | |
9989 | return resultobj; | |
9990 | fail: | |
9991 | return NULL; | |
9992 | } | |
9993 | ||
9994 | ||
c32bde28 | 9995 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9996 | PyObject *resultobj; |
9997 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9998 | wxString *arg2 = 0 ; | |
9999 | bool result; | |
ae8162c8 | 10000 | bool temp2 = false ; |
d55e5bfc RD |
10001 | PyObject * obj0 = 0 ; |
10002 | PyObject * obj1 = 0 ; | |
10003 | char *kwnames[] = { | |
10004 | (char *) "self",(char *) "name", NULL | |
10005 | }; | |
10006 | ||
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10010 | { |
10011 | arg2 = wxString_in_helper(obj1); | |
10012 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10013 | temp2 = true; |
d55e5bfc RD |
10014 | } |
10015 | { | |
10016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10017 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
10018 | ||
10019 | wxPyEndAllowThreads(__tstate); | |
10020 | if (PyErr_Occurred()) SWIG_fail; | |
10021 | } | |
10022 | { | |
10023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10024 | } | |
10025 | { | |
10026 | if (temp2) | |
10027 | delete arg2; | |
10028 | } | |
10029 | return resultobj; | |
10030 | fail: | |
10031 | { | |
10032 | if (temp2) | |
10033 | delete arg2; | |
10034 | } | |
10035 | return NULL; | |
10036 | } | |
10037 | ||
10038 | ||
c32bde28 | 10039 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10040 | PyObject *resultobj; |
10041 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10042 | wxString *arg2 = 0 ; | |
ae8162c8 | 10043 | bool temp2 = false ; |
d55e5bfc RD |
10044 | PyObject * obj0 = 0 ; |
10045 | PyObject * obj1 = 0 ; | |
10046 | char *kwnames[] = { | |
10047 | (char *) "self",(char *) "name", NULL | |
10048 | }; | |
10049 | ||
10050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10053 | { |
10054 | arg2 = wxString_in_helper(obj1); | |
10055 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10056 | temp2 = true; |
d55e5bfc RD |
10057 | } |
10058 | { | |
10059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10060 | (arg1)->SetName((wxString const &)*arg2); | |
10061 | ||
10062 | wxPyEndAllowThreads(__tstate); | |
10063 | if (PyErr_Occurred()) SWIG_fail; | |
10064 | } | |
10065 | Py_INCREF(Py_None); resultobj = Py_None; | |
10066 | { | |
10067 | if (temp2) | |
10068 | delete arg2; | |
10069 | } | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | { | |
10073 | if (temp2) | |
10074 | delete arg2; | |
10075 | } | |
10076 | return NULL; | |
10077 | } | |
10078 | ||
10079 | ||
c32bde28 | 10080 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10081 | PyObject *resultobj; |
10082 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10083 | wxString *arg2 = 0 ; | |
ae8162c8 | 10084 | bool temp2 = false ; |
d55e5bfc RD |
10085 | PyObject * obj0 = 0 ; |
10086 | PyObject * obj1 = 0 ; | |
10087 | char *kwnames[] = { | |
10088 | (char *) "self",(char *) "extension", NULL | |
10089 | }; | |
10090 | ||
10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10094 | { |
10095 | arg2 = wxString_in_helper(obj1); | |
10096 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10097 | temp2 = true; |
d55e5bfc RD |
10098 | } |
10099 | { | |
10100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10101 | (arg1)->SetExtension((wxString const &)*arg2); | |
10102 | ||
10103 | wxPyEndAllowThreads(__tstate); | |
10104 | if (PyErr_Occurred()) SWIG_fail; | |
10105 | } | |
10106 | Py_INCREF(Py_None); resultobj = Py_None; | |
10107 | { | |
10108 | if (temp2) | |
10109 | delete arg2; | |
10110 | } | |
10111 | return resultobj; | |
10112 | fail: | |
10113 | { | |
10114 | if (temp2) | |
10115 | delete arg2; | |
10116 | } | |
10117 | return NULL; | |
10118 | } | |
10119 | ||
10120 | ||
c32bde28 | 10121 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10122 | PyObject *resultobj; |
10123 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10124 | long arg2 ; | |
10125 | PyObject * obj0 = 0 ; | |
10126 | PyObject * obj1 = 0 ; | |
10127 | char *kwnames[] = { | |
10128 | (char *) "self",(char *) "type", NULL | |
10129 | }; | |
10130 | ||
10131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10134 | { | |
10135 | arg2 = (long)(SWIG_As_long(obj1)); | |
10136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10137 | } | |
d55e5bfc RD |
10138 | { |
10139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10140 | (arg1)->SetType(arg2); | |
10141 | ||
10142 | wxPyEndAllowThreads(__tstate); | |
10143 | if (PyErr_Occurred()) SWIG_fail; | |
10144 | } | |
10145 | Py_INCREF(Py_None); resultobj = Py_None; | |
10146 | return resultobj; | |
10147 | fail: | |
10148 | return NULL; | |
10149 | } | |
10150 | ||
10151 | ||
c32bde28 | 10152 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10153 | PyObject *resultobj; |
10154 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10155 | wxString *arg2 = 0 ; | |
ae8162c8 | 10156 | bool temp2 = false ; |
d55e5bfc RD |
10157 | PyObject * obj0 = 0 ; |
10158 | PyObject * obj1 = 0 ; | |
10159 | char *kwnames[] = { | |
10160 | (char *) "self",(char *) "mimetype", NULL | |
10161 | }; | |
10162 | ||
10163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10166 | { |
10167 | arg2 = wxString_in_helper(obj1); | |
10168 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10169 | temp2 = true; |
d55e5bfc RD |
10170 | } |
10171 | { | |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10173 | (arg1)->SetMimeType((wxString const &)*arg2); | |
10174 | ||
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
10178 | Py_INCREF(Py_None); resultobj = Py_None; | |
10179 | { | |
10180 | if (temp2) | |
10181 | delete arg2; | |
10182 | } | |
10183 | return resultobj; | |
10184 | fail: | |
10185 | { | |
10186 | if (temp2) | |
10187 | delete arg2; | |
10188 | } | |
10189 | return NULL; | |
10190 | } | |
10191 | ||
10192 | ||
c32bde28 | 10193 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10194 | PyObject *obj; |
10195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10196 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
10197 | Py_INCREF(obj); | |
10198 | return Py_BuildValue((char *)""); | |
10199 | } | |
c32bde28 | 10200 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10201 | PyObject *resultobj; |
10202 | wxImageHistogram *result; | |
10203 | char *kwnames[] = { | |
10204 | NULL | |
10205 | }; | |
10206 | ||
10207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
10208 | { | |
10209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10210 | result = (wxImageHistogram *)new wxImageHistogram(); | |
10211 | ||
10212 | wxPyEndAllowThreads(__tstate); | |
10213 | if (PyErr_Occurred()) SWIG_fail; | |
10214 | } | |
10215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
10216 | return resultobj; | |
10217 | fail: | |
10218 | return NULL; | |
10219 | } | |
10220 | ||
10221 | ||
c32bde28 | 10222 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10223 | PyObject *resultobj; |
10224 | unsigned char arg1 ; | |
10225 | unsigned char arg2 ; | |
10226 | unsigned char arg3 ; | |
10227 | unsigned long result; | |
10228 | PyObject * obj0 = 0 ; | |
10229 | PyObject * obj1 = 0 ; | |
10230 | PyObject * obj2 = 0 ; | |
10231 | char *kwnames[] = { | |
10232 | (char *) "r",(char *) "g",(char *) "b", NULL | |
10233 | }; | |
10234 | ||
10235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10236 | { |
10237 | arg1 = (unsigned char)(SWIG_As_unsigned_SS_char(obj0)); | |
10238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10239 | } | |
10240 | { | |
10241 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
10242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10243 | } | |
10244 | { | |
10245 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
10246 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10247 | } | |
d55e5bfc RD |
10248 | { |
10249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10250 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
10251 | ||
10252 | wxPyEndAllowThreads(__tstate); | |
10253 | if (PyErr_Occurred()) SWIG_fail; | |
10254 | } | |
093d3ff1 RD |
10255 | { |
10256 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10257 | } | |
d55e5bfc RD |
10258 | return resultobj; |
10259 | fail: | |
10260 | return NULL; | |
10261 | } | |
10262 | ||
10263 | ||
c32bde28 | 10264 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10265 | PyObject *resultobj; |
10266 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10267 | unsigned char *arg2 = (unsigned char *) 0 ; | |
10268 | unsigned char *arg3 = (unsigned char *) 0 ; | |
10269 | unsigned char *arg4 = (unsigned char *) 0 ; | |
10270 | unsigned char arg5 = (unsigned char) 1 ; | |
10271 | unsigned char arg6 = (unsigned char) 0 ; | |
10272 | unsigned char arg7 = (unsigned char) 0 ; | |
10273 | bool result; | |
10274 | unsigned char temp2 ; | |
c32bde28 | 10275 | int res2 = 0 ; |
d55e5bfc | 10276 | unsigned char temp3 ; |
c32bde28 | 10277 | int res3 = 0 ; |
d55e5bfc | 10278 | unsigned char temp4 ; |
c32bde28 | 10279 | int res4 = 0 ; |
d55e5bfc RD |
10280 | PyObject * obj0 = 0 ; |
10281 | PyObject * obj1 = 0 ; | |
10282 | PyObject * obj2 = 0 ; | |
10283 | PyObject * obj3 = 0 ; | |
10284 | char *kwnames[] = { | |
10285 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
10286 | }; | |
10287 | ||
c32bde28 RD |
10288 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10289 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
10290 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); |
10293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 10294 | if (obj1) { |
093d3ff1 RD |
10295 | { |
10296 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
10297 | if (SWIG_arg_fail(5)) SWIG_fail; | |
10298 | } | |
d55e5bfc RD |
10299 | } |
10300 | if (obj2) { | |
093d3ff1 RD |
10301 | { |
10302 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
10303 | if (SWIG_arg_fail(6)) SWIG_fail; | |
10304 | } | |
d55e5bfc RD |
10305 | } |
10306 | if (obj3) { | |
093d3ff1 RD |
10307 | { |
10308 | arg7 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
10309 | if (SWIG_arg_fail(7)) SWIG_fail; | |
10310 | } | |
d55e5bfc RD |
10311 | } |
10312 | { | |
10313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10314 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
10315 | ||
10316 | wxPyEndAllowThreads(__tstate); | |
10317 | if (PyErr_Occurred()) SWIG_fail; | |
10318 | } | |
10319 | { | |
10320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10321 | } | |
c32bde28 RD |
10322 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10323 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
10324 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10325 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
10326 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10327 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
10328 | return resultobj; |
10329 | fail: | |
10330 | return NULL; | |
10331 | } | |
10332 | ||
10333 | ||
f1cbd8fa RD |
10334 | static PyObject *_wrap_ImageHistogram_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
10335 | PyObject *resultobj; | |
10336 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10337 | unsigned long arg2 ; | |
10338 | unsigned long result; | |
10339 | PyObject * obj0 = 0 ; | |
10340 | PyObject * obj1 = 0 ; | |
10341 | char *kwnames[] = { | |
10342 | (char *) "self",(char *) "key", NULL | |
10343 | }; | |
10344 | ||
10345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCount",kwnames,&obj0,&obj1)) goto fail; | |
10346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
10347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10348 | { | |
10349 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
10350 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10351 | } | |
10352 | { | |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | result = (unsigned long)wxImageHistogram_GetCount(arg1,arg2); | |
10355 | ||
10356 | wxPyEndAllowThreads(__tstate); | |
10357 | if (PyErr_Occurred()) SWIG_fail; | |
10358 | } | |
10359 | { | |
10360 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10361 | } | |
10362 | return resultobj; | |
10363 | fail: | |
10364 | return NULL; | |
10365 | } | |
10366 | ||
10367 | ||
10368 | static PyObject *_wrap_ImageHistogram_GetCountRGB(PyObject *, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject *resultobj; | |
10370 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10371 | unsigned char arg2 ; | |
10372 | unsigned char arg3 ; | |
10373 | unsigned char arg4 ; | |
10374 | unsigned long result; | |
10375 | PyObject * obj0 = 0 ; | |
10376 | PyObject * obj1 = 0 ; | |
10377 | PyObject * obj2 = 0 ; | |
10378 | PyObject * obj3 = 0 ; | |
10379 | char *kwnames[] = { | |
10380 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10381 | }; | |
10382 | ||
10383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ImageHistogram_GetCountRGB",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
10385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10386 | { | |
10387 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
10388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10389 | } | |
10390 | { | |
10391 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
10392 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10393 | } | |
10394 | { | |
10395 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
10396 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10397 | } | |
10398 | { | |
10399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10400 | result = (unsigned long)wxImageHistogram_GetCountRGB(arg1,arg2,arg3,arg4); | |
10401 | ||
10402 | wxPyEndAllowThreads(__tstate); | |
10403 | if (PyErr_Occurred()) SWIG_fail; | |
10404 | } | |
10405 | { | |
10406 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10407 | } | |
10408 | return resultobj; | |
10409 | fail: | |
10410 | return NULL; | |
10411 | } | |
10412 | ||
10413 | ||
10414 | static PyObject *_wrap_ImageHistogram_GetCountColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
10415 | PyObject *resultobj; | |
10416 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10417 | wxColour *arg2 = 0 ; | |
10418 | unsigned long result; | |
10419 | wxColour temp2 ; | |
10420 | PyObject * obj0 = 0 ; | |
10421 | PyObject * obj1 = 0 ; | |
10422 | char *kwnames[] = { | |
10423 | (char *) "self",(char *) "colour", NULL | |
10424 | }; | |
10425 | ||
10426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCountColour",kwnames,&obj0,&obj1)) goto fail; | |
10427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
10428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10429 | { | |
10430 | arg2 = &temp2; | |
10431 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10432 | } | |
10433 | { | |
10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10435 | result = (unsigned long)wxImageHistogram_GetCountColour(arg1,(wxColour const &)*arg2); | |
10436 | ||
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
10440 | { | |
10441 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10442 | } | |
10443 | return resultobj; | |
10444 | fail: | |
10445 | return NULL; | |
10446 | } | |
10447 | ||
10448 | ||
c32bde28 | 10449 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10450 | PyObject *obj; |
10451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10452 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
10453 | Py_INCREF(obj); | |
10454 | return Py_BuildValue((char *)""); | |
10455 | } | |
c32bde28 | 10456 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10457 | PyObject *resultobj; |
10458 | wxString *arg1 = 0 ; | |
10459 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
10460 | int arg3 = (int) -1 ; | |
10461 | wxImage *result; | |
ae8162c8 | 10462 | bool temp1 = false ; |
d55e5bfc RD |
10463 | PyObject * obj0 = 0 ; |
10464 | PyObject * obj1 = 0 ; | |
10465 | PyObject * obj2 = 0 ; | |
10466 | char *kwnames[] = { | |
10467 | (char *) "name",(char *) "type",(char *) "index", NULL | |
10468 | }; | |
10469 | ||
10470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10471 | { | |
10472 | arg1 = wxString_in_helper(obj0); | |
10473 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10474 | temp1 = true; |
d55e5bfc RD |
10475 | } |
10476 | if (obj1) { | |
093d3ff1 RD |
10477 | { |
10478 | arg2 = (long)(SWIG_As_long(obj1)); | |
10479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10480 | } | |
d55e5bfc RD |
10481 | } |
10482 | if (obj2) { | |
093d3ff1 RD |
10483 | { |
10484 | arg3 = (int)(SWIG_As_int(obj2)); | |
10485 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10486 | } | |
d55e5bfc RD |
10487 | } |
10488 | { | |
10489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10490 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
10491 | ||
10492 | wxPyEndAllowThreads(__tstate); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
10495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10496 | { | |
10497 | if (temp1) | |
10498 | delete arg1; | |
10499 | } | |
10500 | return resultobj; | |
10501 | fail: | |
10502 | { | |
10503 | if (temp1) | |
10504 | delete arg1; | |
10505 | } | |
10506 | return NULL; | |
10507 | } | |
10508 | ||
10509 | ||
c32bde28 | 10510 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10511 | PyObject *resultobj; |
10512 | wxImage *arg1 = (wxImage *) 0 ; | |
10513 | PyObject * obj0 = 0 ; | |
10514 | char *kwnames[] = { | |
10515 | (char *) "self", NULL | |
10516 | }; | |
10517 | ||
10518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10521 | { |
10522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10523 | delete arg1; | |
10524 | ||
10525 | wxPyEndAllowThreads(__tstate); | |
10526 | if (PyErr_Occurred()) SWIG_fail; | |
10527 | } | |
10528 | Py_INCREF(Py_None); resultobj = Py_None; | |
10529 | return resultobj; | |
10530 | fail: | |
10531 | return NULL; | |
10532 | } | |
10533 | ||
10534 | ||
c32bde28 | 10535 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10536 | PyObject *resultobj; |
10537 | wxString *arg1 = 0 ; | |
10538 | wxString *arg2 = 0 ; | |
10539 | int arg3 = (int) -1 ; | |
10540 | wxImage *result; | |
ae8162c8 RD |
10541 | bool temp1 = false ; |
10542 | bool temp2 = false ; | |
d55e5bfc RD |
10543 | PyObject * obj0 = 0 ; |
10544 | PyObject * obj1 = 0 ; | |
10545 | PyObject * obj2 = 0 ; | |
10546 | char *kwnames[] = { | |
10547 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
10548 | }; | |
10549 | ||
10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10551 | { | |
10552 | arg1 = wxString_in_helper(obj0); | |
10553 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10554 | temp1 = true; |
d55e5bfc RD |
10555 | } |
10556 | { | |
10557 | arg2 = wxString_in_helper(obj1); | |
10558 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10559 | temp2 = true; |
d55e5bfc RD |
10560 | } |
10561 | if (obj2) { | |
093d3ff1 RD |
10562 | { |
10563 | arg3 = (int)(SWIG_As_int(obj2)); | |
10564 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10565 | } | |
d55e5bfc RD |
10566 | } |
10567 | { | |
10568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10569 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10570 | ||
10571 | wxPyEndAllowThreads(__tstate); | |
10572 | if (PyErr_Occurred()) SWIG_fail; | |
10573 | } | |
10574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10575 | { | |
10576 | if (temp1) | |
10577 | delete arg1; | |
10578 | } | |
10579 | { | |
10580 | if (temp2) | |
10581 | delete arg2; | |
10582 | } | |
10583 | return resultobj; | |
10584 | fail: | |
10585 | { | |
10586 | if (temp1) | |
10587 | delete arg1; | |
10588 | } | |
10589 | { | |
10590 | if (temp2) | |
10591 | delete arg2; | |
10592 | } | |
10593 | return NULL; | |
10594 | } | |
10595 | ||
10596 | ||
c32bde28 | 10597 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10598 | PyObject *resultobj; |
10599 | wxInputStream *arg1 = 0 ; | |
10600 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
10601 | int arg3 = (int) -1 ; | |
10602 | wxImage *result; | |
10603 | wxPyInputStream *temp1 ; | |
10604 | bool created1 ; | |
10605 | PyObject * obj0 = 0 ; | |
10606 | PyObject * obj1 = 0 ; | |
10607 | PyObject * obj2 = 0 ; | |
10608 | char *kwnames[] = { | |
10609 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
10610 | }; | |
10611 | ||
10612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10613 | { | |
10614 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10615 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10616 | created1 = false; |
d55e5bfc RD |
10617 | } else { |
10618 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10619 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc | 10620 | if (arg1 == NULL) { |
e2950dbb | 10621 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d55e5bfc RD |
10622 | SWIG_fail; |
10623 | } | |
ae8162c8 | 10624 | created1 = true; |
d55e5bfc RD |
10625 | } |
10626 | } | |
10627 | if (obj1) { | |
093d3ff1 RD |
10628 | { |
10629 | arg2 = (long)(SWIG_As_long(obj1)); | |
10630 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10631 | } | |
d55e5bfc RD |
10632 | } |
10633 | if (obj2) { | |
093d3ff1 RD |
10634 | { |
10635 | arg3 = (int)(SWIG_As_int(obj2)); | |
10636 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10637 | } | |
d55e5bfc RD |
10638 | } |
10639 | { | |
10640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10641 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
10642 | ||
10643 | wxPyEndAllowThreads(__tstate); | |
10644 | if (PyErr_Occurred()) SWIG_fail; | |
10645 | } | |
10646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10647 | { | |
e2950dbb | 10648 | if (created1) delete arg1; |
d55e5bfc RD |
10649 | } |
10650 | return resultobj; | |
10651 | fail: | |
10652 | { | |
e2950dbb | 10653 | if (created1) delete arg1; |
d55e5bfc RD |
10654 | } |
10655 | return NULL; | |
10656 | } | |
10657 | ||
10658 | ||
c32bde28 | 10659 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10660 | PyObject *resultobj; |
10661 | wxInputStream *arg1 = 0 ; | |
10662 | wxString *arg2 = 0 ; | |
10663 | int arg3 = (int) -1 ; | |
10664 | wxImage *result; | |
10665 | wxPyInputStream *temp1 ; | |
10666 | bool created1 ; | |
ae8162c8 | 10667 | bool temp2 = false ; |
d55e5bfc RD |
10668 | PyObject * obj0 = 0 ; |
10669 | PyObject * obj1 = 0 ; | |
10670 | PyObject * obj2 = 0 ; | |
10671 | char *kwnames[] = { | |
10672 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10673 | }; | |
10674 | ||
10675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10676 | { | |
10677 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10678 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10679 | created1 = false; |
d55e5bfc RD |
10680 | } else { |
10681 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10682 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc | 10683 | if (arg1 == NULL) { |
e2950dbb | 10684 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d55e5bfc RD |
10685 | SWIG_fail; |
10686 | } | |
ae8162c8 | 10687 | created1 = true; |
d55e5bfc RD |
10688 | } |
10689 | } | |
10690 | { | |
10691 | arg2 = wxString_in_helper(obj1); | |
10692 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10693 | temp2 = true; |
d55e5bfc RD |
10694 | } |
10695 | if (obj2) { | |
093d3ff1 RD |
10696 | { |
10697 | arg3 = (int)(SWIG_As_int(obj2)); | |
10698 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10699 | } | |
d55e5bfc RD |
10700 | } |
10701 | { | |
10702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10703 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
10704 | ||
10705 | wxPyEndAllowThreads(__tstate); | |
10706 | if (PyErr_Occurred()) SWIG_fail; | |
10707 | } | |
10708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10709 | { | |
e2950dbb | 10710 | if (created1) delete arg1; |
d55e5bfc RD |
10711 | } |
10712 | { | |
10713 | if (temp2) | |
10714 | delete arg2; | |
10715 | } | |
10716 | return resultobj; | |
10717 | fail: | |
10718 | { | |
e2950dbb | 10719 | if (created1) delete arg1; |
d55e5bfc RD |
10720 | } |
10721 | { | |
10722 | if (temp2) | |
10723 | delete arg2; | |
10724 | } | |
10725 | return NULL; | |
10726 | } | |
10727 | ||
10728 | ||
c32bde28 | 10729 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10730 | PyObject *resultobj; |
10731 | int arg1 = (int) 0 ; | |
10732 | int arg2 = (int) 0 ; | |
ae8162c8 | 10733 | bool arg3 = (bool) true ; |
d55e5bfc RD |
10734 | wxImage *result; |
10735 | PyObject * obj0 = 0 ; | |
10736 | PyObject * obj1 = 0 ; | |
10737 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
10738 | char *kwnames[] = { |
10739 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
10740 | }; | |
d55e5bfc | 10741 | |
c24da6d6 | 10742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 10743 | if (obj0) { |
093d3ff1 RD |
10744 | { |
10745 | arg1 = (int)(SWIG_As_int(obj0)); | |
10746 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10747 | } | |
d55e5bfc RD |
10748 | } |
10749 | if (obj1) { | |
093d3ff1 RD |
10750 | { |
10751 | arg2 = (int)(SWIG_As_int(obj1)); | |
10752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10753 | } | |
d55e5bfc RD |
10754 | } |
10755 | if (obj2) { | |
093d3ff1 RD |
10756 | { |
10757 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
10758 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10759 | } | |
d55e5bfc RD |
10760 | } |
10761 | { | |
10762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 10763 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
10764 | |
10765 | wxPyEndAllowThreads(__tstate); | |
10766 | if (PyErr_Occurred()) SWIG_fail; | |
10767 | } | |
10768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10769 | return resultobj; | |
10770 | fail: | |
10771 | return NULL; | |
10772 | } | |
10773 | ||
10774 | ||
c32bde28 | 10775 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10776 | PyObject *resultobj; |
10777 | wxBitmap *arg1 = 0 ; | |
10778 | wxImage *result; | |
10779 | PyObject * obj0 = 0 ; | |
10780 | char *kwnames[] = { | |
10781 | (char *) "bitmap", NULL | |
10782 | }; | |
10783 | ||
10784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10785 | { |
10786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
10787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10788 | if (arg1 == NULL) { | |
10789 | SWIG_null_ref("wxBitmap"); | |
10790 | } | |
10791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10792 | } |
10793 | { | |
0439c23b | 10794 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10796 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
10797 | ||
10798 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10799 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10800 | } |
10801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10802 | return resultobj; | |
10803 | fail: | |
10804 | return NULL; | |
10805 | } | |
10806 | ||
10807 | ||
c32bde28 | 10808 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10809 | PyObject *resultobj; |
10810 | int arg1 ; | |
10811 | int arg2 ; | |
ea939623 RD |
10812 | buffer arg3 ; |
10813 | int arg4 ; | |
d55e5bfc RD |
10814 | wxImage *result; |
10815 | PyObject * obj0 = 0 ; | |
10816 | PyObject * obj1 = 0 ; | |
10817 | PyObject * obj2 = 0 ; | |
10818 | char *kwnames[] = { | |
10819 | (char *) "width",(char *) "height",(char *) "data", NULL | |
10820 | }; | |
10821 | ||
10822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10823 | { |
10824 | arg1 = (int)(SWIG_As_int(obj0)); | |
10825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10826 | } | |
10827 | { | |
10828 | arg2 = (int)(SWIG_As_int(obj1)); | |
10829 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10830 | } | |
ea939623 RD |
10831 | { |
10832 | if (!PyArg_Parse(obj2, "t#", &arg3, &arg4)) SWIG_fail; | |
10833 | } | |
d55e5bfc RD |
10834 | { |
10835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ea939623 | 10836 | result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
10837 | |
10838 | wxPyEndAllowThreads(__tstate); | |
10839 | if (PyErr_Occurred()) SWIG_fail; | |
10840 | } | |
10841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10842 | return resultobj; | |
10843 | fail: | |
10844 | return NULL; | |
10845 | } | |
10846 | ||
10847 | ||
c9c2cf70 RD |
10848 | static PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
10849 | PyObject *resultobj; | |
10850 | int arg1 ; | |
10851 | int arg2 ; | |
ea939623 RD |
10852 | buffer arg3 ; |
10853 | int arg4 ; | |
10854 | buffer arg5 ; | |
10855 | int arg6 ; | |
c9c2cf70 RD |
10856 | wxImage *result; |
10857 | PyObject * obj0 = 0 ; | |
10858 | PyObject * obj1 = 0 ; | |
10859 | PyObject * obj2 = 0 ; | |
10860 | PyObject * obj3 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
10866 | { |
10867 | arg1 = (int)(SWIG_As_int(obj0)); | |
10868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10869 | } | |
10870 | { | |
10871 | arg2 = (int)(SWIG_As_int(obj1)); | |
10872 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10873 | } | |
ea939623 RD |
10874 | { |
10875 | if (!PyArg_Parse(obj2, "t#", &arg3, &arg4)) SWIG_fail; | |
10876 | } | |
10877 | { | |
10878 | if (!PyArg_Parse(obj3, "t#", &arg5, &arg6)) SWIG_fail; | |
10879 | } | |
c9c2cf70 RD |
10880 | { |
10881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ea939623 | 10882 | result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4,arg5,arg6); |
c9c2cf70 RD |
10883 | |
10884 | wxPyEndAllowThreads(__tstate); | |
10885 | if (PyErr_Occurred()) SWIG_fail; | |
10886 | } | |
10887 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10888 | return resultobj; | |
10889 | fail: | |
10890 | return NULL; | |
10891 | } | |
10892 | ||
10893 | ||
c32bde28 | 10894 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10895 | PyObject *resultobj; |
10896 | wxImage *arg1 = (wxImage *) 0 ; | |
10897 | int arg2 ; | |
10898 | int arg3 ; | |
10899 | PyObject * obj0 = 0 ; | |
10900 | PyObject * obj1 = 0 ; | |
10901 | PyObject * obj2 = 0 ; | |
10902 | char *kwnames[] = { | |
10903 | (char *) "self",(char *) "width",(char *) "height", NULL | |
10904 | }; | |
10905 | ||
10906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10909 | { | |
10910 | arg2 = (int)(SWIG_As_int(obj1)); | |
10911 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10912 | } | |
10913 | { | |
10914 | arg3 = (int)(SWIG_As_int(obj2)); | |
10915 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10916 | } | |
d55e5bfc RD |
10917 | { |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | (arg1)->Create(arg2,arg3); | |
10920 | ||
10921 | wxPyEndAllowThreads(__tstate); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | Py_INCREF(Py_None); resultobj = Py_None; | |
10925 | return resultobj; | |
10926 | fail: | |
10927 | return NULL; | |
10928 | } | |
10929 | ||
10930 | ||
c32bde28 | 10931 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10932 | PyObject *resultobj; |
10933 | wxImage *arg1 = (wxImage *) 0 ; | |
10934 | PyObject * obj0 = 0 ; | |
10935 | char *kwnames[] = { | |
10936 | (char *) "self", NULL | |
10937 | }; | |
10938 | ||
10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10942 | { |
10943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10944 | (arg1)->Destroy(); | |
10945 | ||
10946 | wxPyEndAllowThreads(__tstate); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
10948 | } | |
10949 | Py_INCREF(Py_None); resultobj = Py_None; | |
10950 | return resultobj; | |
10951 | fail: | |
10952 | return NULL; | |
10953 | } | |
10954 | ||
10955 | ||
c32bde28 | 10956 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10957 | PyObject *resultobj; |
10958 | wxImage *arg1 = (wxImage *) 0 ; | |
10959 | int arg2 ; | |
10960 | int arg3 ; | |
093d3ff1 | 10961 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
10962 | PyObject * obj0 = 0 ; |
10963 | PyObject * obj1 = 0 ; | |
10964 | PyObject * obj2 = 0 ; | |
10965 | char *kwnames[] = { | |
10966 | (char *) "self",(char *) "width",(char *) "height", NULL | |
10967 | }; | |
10968 | ||
10969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10972 | { | |
10973 | arg2 = (int)(SWIG_As_int(obj1)); | |
10974 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10975 | } | |
10976 | { | |
10977 | arg3 = (int)(SWIG_As_int(obj2)); | |
10978 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10979 | } | |
d55e5bfc RD |
10980 | { |
10981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10982 | result = (arg1)->Scale(arg2,arg3); | |
10983 | ||
10984 | wxPyEndAllowThreads(__tstate); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
10987 | { | |
10988 | wxImage * resultptr; | |
093d3ff1 | 10989 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
10990 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
10991 | } | |
10992 | return resultobj; | |
10993 | fail: | |
10994 | return NULL; | |
10995 | } | |
10996 | ||
10997 | ||
c32bde28 | 10998 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10999 | PyObject *resultobj; |
11000 | wxImage *arg1 = (wxImage *) 0 ; | |
11001 | int arg2 ; | |
11002 | int arg3 ; | |
093d3ff1 | 11003 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
11004 | PyObject * obj0 = 0 ; |
11005 | PyObject * obj1 = 0 ; | |
11006 | PyObject * obj2 = 0 ; | |
11007 | char *kwnames[] = { | |
11008 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
11009 | }; | |
11010 | ||
11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11014 | { | |
11015 | arg2 = (int)(SWIG_As_int(obj1)); | |
11016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11017 | } | |
11018 | { | |
11019 | arg3 = (int)(SWIG_As_int(obj2)); | |
11020 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11021 | } | |
d55e5bfc RD |
11022 | { |
11023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11024 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
11025 | ||
11026 | wxPyEndAllowThreads(__tstate); | |
11027 | if (PyErr_Occurred()) SWIG_fail; | |
11028 | } | |
11029 | { | |
11030 | wxImage * resultptr; | |
093d3ff1 | 11031 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
11032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
11033 | } | |
11034 | return resultobj; | |
11035 | fail: | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
c32bde28 | 11040 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11041 | PyObject *resultobj; |
11042 | wxImage *arg1 = (wxImage *) 0 ; | |
11043 | int arg2 ; | |
11044 | int arg3 ; | |
11045 | wxImage *result; | |
11046 | PyObject * obj0 = 0 ; | |
11047 | PyObject * obj1 = 0 ; | |
11048 | PyObject * obj2 = 0 ; | |
11049 | char *kwnames[] = { | |
11050 | (char *) "self",(char *) "width",(char *) "height", NULL | |
11051 | }; | |
11052 | ||
11053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11056 | { | |
11057 | arg2 = (int)(SWIG_As_int(obj1)); | |
11058 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11059 | } | |
11060 | { | |
11061 | arg3 = (int)(SWIG_As_int(obj2)); | |
11062 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11063 | } | |
d55e5bfc RD |
11064 | { |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | { | |
11067 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
11068 | result = (wxImage *) &_result_ref; | |
11069 | } | |
11070 | ||
11071 | wxPyEndAllowThreads(__tstate); | |
11072 | if (PyErr_Occurred()) SWIG_fail; | |
11073 | } | |
11074 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
11075 | return resultobj; | |
11076 | fail: | |
11077 | return NULL; | |
11078 | } | |
11079 | ||
11080 | ||
aff4cc5c RD |
11081 | static PyObject *_wrap_Image_Resize(PyObject *, PyObject *args, PyObject *kwargs) { |
11082 | PyObject *resultobj; | |
11083 | wxImage *arg1 = (wxImage *) 0 ; | |
11084 | wxSize *arg2 = 0 ; | |
11085 | wxPoint *arg3 = 0 ; | |
11086 | int arg4 = (int) -1 ; | |
11087 | int arg5 = (int) -1 ; | |
11088 | int arg6 = (int) -1 ; | |
11089 | wxImage *result; | |
11090 | wxSize temp2 ; | |
11091 | wxPoint temp3 ; | |
11092 | PyObject * obj0 = 0 ; | |
11093 | PyObject * obj1 = 0 ; | |
11094 | PyObject * obj2 = 0 ; | |
11095 | PyObject * obj3 = 0 ; | |
11096 | PyObject * obj4 = 0 ; | |
11097 | PyObject * obj5 = 0 ; | |
11098 | char *kwnames[] = { | |
11099 | (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL | |
11100 | }; | |
11101 | ||
11102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Resize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11105 | { | |
11106 | arg2 = &temp2; | |
11107 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11108 | } | |
11109 | { | |
11110 | arg3 = &temp3; | |
11111 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11112 | } | |
11113 | if (obj3) { | |
11114 | { | |
11115 | arg4 = (int)(SWIG_As_int(obj3)); | |
11116 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11117 | } | |
11118 | } | |
11119 | if (obj4) { | |
11120 | { | |
11121 | arg5 = (int)(SWIG_As_int(obj4)); | |
11122 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11123 | } | |
11124 | } | |
11125 | if (obj5) { | |
11126 | { | |
11127 | arg6 = (int)(SWIG_As_int(obj5)); | |
11128 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11129 | } | |
11130 | } | |
11131 | { | |
11132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11133 | { | |
11134 | wxImage &_result_ref = (arg1)->Resize((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6); | |
11135 | result = (wxImage *) &_result_ref; | |
11136 | } | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
11141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
11142 | return resultobj; | |
11143 | fail: | |
11144 | return NULL; | |
11145 | } | |
11146 | ||
11147 | ||
c32bde28 | 11148 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11149 | PyObject *resultobj; |
11150 | wxImage *arg1 = (wxImage *) 0 ; | |
11151 | int arg2 ; | |
11152 | int arg3 ; | |
11153 | unsigned char arg4 ; | |
11154 | unsigned char arg5 ; | |
11155 | unsigned char arg6 ; | |
11156 | PyObject * obj0 = 0 ; | |
11157 | PyObject * obj1 = 0 ; | |
11158 | PyObject * obj2 = 0 ; | |
11159 | PyObject * obj3 = 0 ; | |
11160 | PyObject * obj4 = 0 ; | |
11161 | PyObject * obj5 = 0 ; | |
11162 | char *kwnames[] = { | |
11163 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
11164 | }; | |
11165 | ||
11166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
11167 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11169 | { | |
11170 | arg2 = (int)(SWIG_As_int(obj1)); | |
11171 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11172 | } | |
11173 | { | |
11174 | arg3 = (int)(SWIG_As_int(obj2)); | |
11175 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11176 | } | |
11177 | { | |
11178 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11179 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11180 | } | |
11181 | { | |
11182 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4)); | |
11183 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11184 | } | |
11185 | { | |
11186 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj5)); | |
11187 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11188 | } | |
d55e5bfc RD |
11189 | { |
11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11191 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
11192 | ||
11193 | wxPyEndAllowThreads(__tstate); | |
11194 | if (PyErr_Occurred()) SWIG_fail; | |
11195 | } | |
11196 | Py_INCREF(Py_None); resultobj = Py_None; | |
11197 | return resultobj; | |
11198 | fail: | |
11199 | return NULL; | |
11200 | } | |
11201 | ||
11202 | ||
aff4cc5c RD |
11203 | static PyObject *_wrap_Image_SetRGBRect(PyObject *, PyObject *args, PyObject *kwargs) { |
11204 | PyObject *resultobj; | |
11205 | wxImage *arg1 = (wxImage *) 0 ; | |
11206 | wxRect *arg2 = 0 ; | |
11207 | unsigned char arg3 ; | |
11208 | unsigned char arg4 ; | |
11209 | unsigned char arg5 ; | |
11210 | wxRect temp2 ; | |
11211 | PyObject * obj0 = 0 ; | |
11212 | PyObject * obj1 = 0 ; | |
11213 | PyObject * obj2 = 0 ; | |
11214 | PyObject * obj3 = 0 ; | |
11215 | PyObject * obj4 = 0 ; | |
11216 | char *kwnames[] = { | |
11217 | (char *) "self",(char *) "rect",(char *) "r",(char *) "g",(char *) "b", NULL | |
11218 | }; | |
11219 | ||
11220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetRGBRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11223 | { | |
11224 | arg2 = &temp2; | |
11225 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11226 | } | |
11227 | { | |
11228 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
11229 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11230 | } | |
11231 | { | |
11232 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11233 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11234 | } | |
11235 | { | |
11236 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4)); | |
11237 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11238 | } | |
11239 | { | |
11240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11241 | (arg1)->SetRGB((wxRect const &)*arg2,arg3,arg4,arg5); | |
11242 | ||
11243 | wxPyEndAllowThreads(__tstate); | |
11244 | if (PyErr_Occurred()) SWIG_fail; | |
11245 | } | |
11246 | Py_INCREF(Py_None); resultobj = Py_None; | |
11247 | return resultobj; | |
11248 | fail: | |
11249 | return NULL; | |
11250 | } | |
11251 | ||
11252 | ||
c32bde28 | 11253 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11254 | PyObject *resultobj; |
11255 | wxImage *arg1 = (wxImage *) 0 ; | |
11256 | int arg2 ; | |
11257 | int arg3 ; | |
11258 | unsigned char result; | |
11259 | PyObject * obj0 = 0 ; | |
11260 | PyObject * obj1 = 0 ; | |
11261 | PyObject * obj2 = 0 ; | |
11262 | char *kwnames[] = { | |
11263 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11264 | }; | |
11265 | ||
11266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11269 | { | |
11270 | arg2 = (int)(SWIG_As_int(obj1)); | |
11271 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11272 | } | |
11273 | { | |
11274 | arg3 = (int)(SWIG_As_int(obj2)); | |
11275 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11276 | } | |
d55e5bfc RD |
11277 | { |
11278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11279 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
11280 | ||
11281 | wxPyEndAllowThreads(__tstate); | |
11282 | if (PyErr_Occurred()) SWIG_fail; | |
11283 | } | |
093d3ff1 RD |
11284 | { |
11285 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11286 | } | |
d55e5bfc RD |
11287 | return resultobj; |
11288 | fail: | |
11289 | return NULL; | |
11290 | } | |
11291 | ||
11292 | ||
c32bde28 | 11293 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11294 | PyObject *resultobj; |
11295 | wxImage *arg1 = (wxImage *) 0 ; | |
11296 | int arg2 ; | |
11297 | int arg3 ; | |
11298 | unsigned char result; | |
11299 | PyObject * obj0 = 0 ; | |
11300 | PyObject * obj1 = 0 ; | |
11301 | PyObject * obj2 = 0 ; | |
11302 | char *kwnames[] = { | |
11303 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11304 | }; | |
11305 | ||
11306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11309 | { | |
11310 | arg2 = (int)(SWIG_As_int(obj1)); | |
11311 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11312 | } | |
11313 | { | |
11314 | arg3 = (int)(SWIG_As_int(obj2)); | |
11315 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11316 | } | |
d55e5bfc RD |
11317 | { |
11318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11319 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
11320 | ||
11321 | wxPyEndAllowThreads(__tstate); | |
11322 | if (PyErr_Occurred()) SWIG_fail; | |
11323 | } | |
093d3ff1 RD |
11324 | { |
11325 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11326 | } | |
d55e5bfc RD |
11327 | return resultobj; |
11328 | fail: | |
11329 | return NULL; | |
11330 | } | |
11331 | ||
11332 | ||
c32bde28 | 11333 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11334 | PyObject *resultobj; |
11335 | wxImage *arg1 = (wxImage *) 0 ; | |
11336 | int arg2 ; | |
11337 | int arg3 ; | |
11338 | unsigned char result; | |
11339 | PyObject * obj0 = 0 ; | |
11340 | PyObject * obj1 = 0 ; | |
11341 | PyObject * obj2 = 0 ; | |
11342 | char *kwnames[] = { | |
11343 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11344 | }; | |
11345 | ||
11346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11349 | { | |
11350 | arg2 = (int)(SWIG_As_int(obj1)); | |
11351 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11352 | } | |
11353 | { | |
11354 | arg3 = (int)(SWIG_As_int(obj2)); | |
11355 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11356 | } | |
d55e5bfc RD |
11357 | { |
11358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11359 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
11360 | ||
11361 | wxPyEndAllowThreads(__tstate); | |
11362 | if (PyErr_Occurred()) SWIG_fail; | |
11363 | } | |
093d3ff1 RD |
11364 | { |
11365 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11366 | } | |
d55e5bfc RD |
11367 | return resultobj; |
11368 | fail: | |
11369 | return NULL; | |
11370 | } | |
11371 | ||
11372 | ||
c32bde28 | 11373 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11374 | PyObject *resultobj; |
11375 | wxImage *arg1 = (wxImage *) 0 ; | |
11376 | int arg2 ; | |
11377 | int arg3 ; | |
11378 | unsigned char arg4 ; | |
11379 | PyObject * obj0 = 0 ; | |
11380 | PyObject * obj1 = 0 ; | |
11381 | PyObject * obj2 = 0 ; | |
11382 | PyObject * obj3 = 0 ; | |
11383 | char *kwnames[] = { | |
11384 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
11385 | }; | |
11386 | ||
11387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11388 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11389 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11390 | { | |
11391 | arg2 = (int)(SWIG_As_int(obj1)); | |
11392 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11393 | } | |
11394 | { | |
11395 | arg3 = (int)(SWIG_As_int(obj2)); | |
11396 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11397 | } | |
11398 | { | |
11399 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11400 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11401 | } | |
d55e5bfc RD |
11402 | { |
11403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11404 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
11405 | ||
11406 | wxPyEndAllowThreads(__tstate); | |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | } | |
11409 | Py_INCREF(Py_None); resultobj = Py_None; | |
11410 | return resultobj; | |
11411 | fail: | |
11412 | return NULL; | |
11413 | } | |
11414 | ||
11415 | ||
c32bde28 | 11416 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11417 | PyObject *resultobj; |
11418 | wxImage *arg1 = (wxImage *) 0 ; | |
11419 | int arg2 ; | |
11420 | int arg3 ; | |
11421 | unsigned char result; | |
11422 | PyObject * obj0 = 0 ; | |
11423 | PyObject * obj1 = 0 ; | |
11424 | PyObject * obj2 = 0 ; | |
11425 | char *kwnames[] = { | |
11426 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11427 | }; | |
11428 | ||
11429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11432 | { | |
11433 | arg2 = (int)(SWIG_As_int(obj1)); | |
11434 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11435 | } | |
11436 | { | |
11437 | arg3 = (int)(SWIG_As_int(obj2)); | |
11438 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11439 | } | |
d55e5bfc RD |
11440 | { |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
11443 | ||
11444 | wxPyEndAllowThreads(__tstate); | |
11445 | if (PyErr_Occurred()) SWIG_fail; | |
11446 | } | |
093d3ff1 RD |
11447 | { |
11448 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11449 | } | |
d55e5bfc RD |
11450 | return resultobj; |
11451 | fail: | |
11452 | return NULL; | |
11453 | } | |
11454 | ||
11455 | ||
c32bde28 | 11456 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11457 | PyObject *resultobj; |
11458 | wxImage *arg1 = (wxImage *) 0 ; | |
11459 | bool result; | |
11460 | PyObject * obj0 = 0 ; | |
11461 | char *kwnames[] = { | |
11462 | (char *) "self", NULL | |
11463 | }; | |
11464 | ||
11465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11468 | { |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11470 | result = (bool)(arg1)->HasAlpha(); | |
11471 | ||
11472 | wxPyEndAllowThreads(__tstate); | |
11473 | if (PyErr_Occurred()) SWIG_fail; | |
11474 | } | |
11475 | { | |
11476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11477 | } | |
11478 | return resultobj; | |
11479 | fail: | |
11480 | return NULL; | |
11481 | } | |
11482 | ||
11483 | ||
68350608 RD |
11484 | static PyObject *_wrap_Image_InitAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
11485 | PyObject *resultobj; | |
11486 | wxImage *arg1 = (wxImage *) 0 ; | |
11487 | PyObject * obj0 = 0 ; | |
11488 | char *kwnames[] = { | |
11489 | (char *) "self", NULL | |
11490 | }; | |
11491 | ||
11492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InitAlpha",kwnames,&obj0)) goto fail; | |
11493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11495 | { | |
11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11497 | (arg1)->InitAlpha(); | |
11498 | ||
11499 | wxPyEndAllowThreads(__tstate); | |
11500 | if (PyErr_Occurred()) SWIG_fail; | |
11501 | } | |
11502 | Py_INCREF(Py_None); resultobj = Py_None; | |
11503 | return resultobj; | |
11504 | fail: | |
11505 | return NULL; | |
11506 | } | |
11507 | ||
11508 | ||
c32bde28 | 11509 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11510 | PyObject *resultobj; |
11511 | wxImage *arg1 = (wxImage *) 0 ; | |
11512 | byte *arg2 = (byte *) 0 ; | |
11513 | byte *arg3 = (byte *) 0 ; | |
11514 | byte *arg4 = (byte *) 0 ; | |
11515 | byte arg5 = (byte) 0 ; | |
11516 | byte arg6 = (byte) 0 ; | |
11517 | byte arg7 = (byte) 0 ; | |
11518 | bool result; | |
11519 | byte temp2 ; | |
c32bde28 | 11520 | int res2 = 0 ; |
d55e5bfc | 11521 | byte temp3 ; |
c32bde28 | 11522 | int res3 = 0 ; |
d55e5bfc | 11523 | byte temp4 ; |
c32bde28 | 11524 | int res4 = 0 ; |
d55e5bfc RD |
11525 | PyObject * obj0 = 0 ; |
11526 | PyObject * obj1 = 0 ; | |
11527 | PyObject * obj2 = 0 ; | |
11528 | PyObject * obj3 = 0 ; | |
11529 | char *kwnames[] = { | |
11530 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
11531 | }; | |
11532 | ||
c32bde28 RD |
11533 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
11534 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
11535 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 11536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
11537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11539 | if (obj1) { |
093d3ff1 RD |
11540 | { |
11541 | arg5 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
11542 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11543 | } | |
d55e5bfc RD |
11544 | } |
11545 | if (obj2) { | |
093d3ff1 RD |
11546 | { |
11547 | arg6 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
11548 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11549 | } | |
d55e5bfc RD |
11550 | } |
11551 | if (obj3) { | |
093d3ff1 RD |
11552 | { |
11553 | arg7 = (byte)(SWIG_As_unsigned_SS_char(obj3)); | |
11554 | if (SWIG_arg_fail(7)) SWIG_fail; | |
11555 | } | |
d55e5bfc RD |
11556 | } |
11557 | { | |
11558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11559 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
11560 | ||
11561 | wxPyEndAllowThreads(__tstate); | |
11562 | if (PyErr_Occurred()) SWIG_fail; | |
11563 | } | |
11564 | { | |
11565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11566 | } | |
c32bde28 | 11567 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
093d3ff1 | 11568 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); |
c32bde28 | 11569 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
093d3ff1 | 11570 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); |
c32bde28 | 11571 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
093d3ff1 | 11572 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); |
d55e5bfc RD |
11573 | return resultobj; |
11574 | fail: | |
11575 | return NULL; | |
11576 | } | |
11577 | ||
11578 | ||
c32bde28 | 11579 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
11580 | PyObject *resultobj; |
11581 | wxImage *arg1 = (wxImage *) 0 ; | |
11582 | byte arg2 = (byte) 128 ; | |
11583 | bool result; | |
11584 | PyObject * obj0 = 0 ; | |
11585 | PyObject * obj1 = 0 ; | |
11586 | char *kwnames[] = { | |
11587 | (char *) "self",(char *) "threshold", NULL | |
11588 | }; | |
11589 | ||
11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4cf4100f | 11593 | if (obj1) { |
093d3ff1 RD |
11594 | { |
11595 | arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
11596 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11597 | } | |
4cf4100f RD |
11598 | } |
11599 | { | |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11601 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
11602 | ||
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | { | |
11607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11608 | } | |
11609 | return resultobj; | |
11610 | fail: | |
11611 | return NULL; | |
11612 | } | |
11613 | ||
11614 | ||
8fb0e70a RD |
11615 | static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
11616 | PyObject *resultobj; | |
11617 | wxImage *arg1 = (wxImage *) 0 ; | |
11618 | unsigned char arg2 ; | |
11619 | unsigned char arg3 ; | |
11620 | unsigned char arg4 ; | |
11621 | bool result; | |
11622 | PyObject * obj0 = 0 ; | |
11623 | PyObject * obj1 = 0 ; | |
11624 | PyObject * obj2 = 0 ; | |
11625 | PyObject * obj3 = 0 ; | |
11626 | char *kwnames[] = { | |
11627 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11628 | }; | |
11629 | ||
11630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11633 | { | |
11634 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
11635 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11636 | } | |
11637 | { | |
11638 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
11639 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11640 | } | |
11641 | { | |
11642 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11643 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11644 | } | |
8fb0e70a RD |
11645 | { |
11646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11647 | result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4); | |
11648 | ||
11649 | wxPyEndAllowThreads(__tstate); | |
11650 | if (PyErr_Occurred()) SWIG_fail; | |
11651 | } | |
11652 | { | |
11653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11654 | } | |
11655 | return resultobj; | |
11656 | fail: | |
11657 | return NULL; | |
11658 | } | |
11659 | ||
11660 | ||
c32bde28 | 11661 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11662 | PyObject *resultobj; |
11663 | wxImage *arg1 = (wxImage *) 0 ; | |
11664 | wxImage *arg2 = 0 ; | |
11665 | byte arg3 ; | |
11666 | byte arg4 ; | |
11667 | byte arg5 ; | |
11668 | bool result; | |
11669 | PyObject * obj0 = 0 ; | |
11670 | PyObject * obj1 = 0 ; | |
11671 | PyObject * obj2 = 0 ; | |
11672 | PyObject * obj3 = 0 ; | |
11673 | PyObject * obj4 = 0 ; | |
11674 | char *kwnames[] = { | |
11675 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
11676 | }; | |
11677 | ||
11678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
11679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11681 | { | |
11682 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11684 | if (arg2 == NULL) { | |
11685 | SWIG_null_ref("wxImage"); | |
11686 | } | |
11687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11688 | } | |
11689 | { | |
11690 | arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
11691 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11692 | } | |
11693 | { | |
11694 | arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3)); | |
11695 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11696 | } | |
11697 | { | |
11698 | arg5 = (byte)(SWIG_As_unsigned_SS_char(obj4)); | |
11699 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11700 | } | |
d55e5bfc RD |
11701 | { |
11702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11703 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
11704 | ||
11705 | wxPyEndAllowThreads(__tstate); | |
11706 | if (PyErr_Occurred()) SWIG_fail; | |
11707 | } | |
11708 | { | |
11709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11710 | } | |
11711 | return resultobj; | |
11712 | fail: | |
11713 | return NULL; | |
11714 | } | |
11715 | ||
11716 | ||
c32bde28 | 11717 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11718 | PyObject *resultobj; |
11719 | wxString *arg1 = 0 ; | |
11720 | bool result; | |
ae8162c8 | 11721 | bool temp1 = false ; |
d55e5bfc RD |
11722 | PyObject * obj0 = 0 ; |
11723 | char *kwnames[] = { | |
11724 | (char *) "name", NULL | |
11725 | }; | |
11726 | ||
11727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
11728 | { | |
11729 | arg1 = wxString_in_helper(obj0); | |
11730 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11731 | temp1 = true; |
d55e5bfc RD |
11732 | } |
11733 | { | |
11734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11735 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
11736 | ||
11737 | wxPyEndAllowThreads(__tstate); | |
11738 | if (PyErr_Occurred()) SWIG_fail; | |
11739 | } | |
11740 | { | |
11741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11742 | } | |
11743 | { | |
11744 | if (temp1) | |
11745 | delete arg1; | |
11746 | } | |
11747 | return resultobj; | |
11748 | fail: | |
11749 | { | |
11750 | if (temp1) | |
11751 | delete arg1; | |
11752 | } | |
11753 | return NULL; | |
11754 | } | |
11755 | ||
11756 | ||
c32bde28 | 11757 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11758 | PyObject *resultobj; |
11759 | wxString *arg1 = 0 ; | |
11760 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
11761 | int result; | |
ae8162c8 | 11762 | bool temp1 = false ; |
d55e5bfc RD |
11763 | PyObject * obj0 = 0 ; |
11764 | PyObject * obj1 = 0 ; | |
11765 | char *kwnames[] = { | |
11766 | (char *) "name",(char *) "type", NULL | |
11767 | }; | |
11768 | ||
11769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
11770 | { | |
11771 | arg1 = wxString_in_helper(obj0); | |
11772 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11773 | temp1 = true; |
d55e5bfc RD |
11774 | } |
11775 | if (obj1) { | |
093d3ff1 RD |
11776 | { |
11777 | arg2 = (long)(SWIG_As_long(obj1)); | |
11778 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11779 | } | |
d55e5bfc RD |
11780 | } |
11781 | { | |
11782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11783 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
11784 | ||
11785 | wxPyEndAllowThreads(__tstate); | |
11786 | if (PyErr_Occurred()) SWIG_fail; | |
11787 | } | |
093d3ff1 RD |
11788 | { |
11789 | resultobj = SWIG_From_int((int)(result)); | |
11790 | } | |
d55e5bfc RD |
11791 | { |
11792 | if (temp1) | |
11793 | delete arg1; | |
11794 | } | |
11795 | return resultobj; | |
11796 | fail: | |
11797 | { | |
11798 | if (temp1) | |
11799 | delete arg1; | |
11800 | } | |
11801 | return NULL; | |
11802 | } | |
11803 | ||
11804 | ||
c32bde28 | 11805 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11806 | PyObject *resultobj; |
11807 | wxImage *arg1 = (wxImage *) 0 ; | |
11808 | wxString *arg2 = 0 ; | |
11809 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
11810 | int arg4 = (int) -1 ; | |
11811 | bool result; | |
ae8162c8 | 11812 | bool temp2 = false ; |
d55e5bfc RD |
11813 | PyObject * obj0 = 0 ; |
11814 | PyObject * obj1 = 0 ; | |
11815 | PyObject * obj2 = 0 ; | |
11816 | PyObject * obj3 = 0 ; | |
11817 | char *kwnames[] = { | |
11818 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
11819 | }; | |
11820 | ||
11821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11824 | { |
11825 | arg2 = wxString_in_helper(obj1); | |
11826 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11827 | temp2 = true; |
d55e5bfc RD |
11828 | } |
11829 | if (obj2) { | |
093d3ff1 RD |
11830 | { |
11831 | arg3 = (long)(SWIG_As_long(obj2)); | |
11832 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11833 | } | |
d55e5bfc RD |
11834 | } |
11835 | if (obj3) { | |
093d3ff1 RD |
11836 | { |
11837 | arg4 = (int)(SWIG_As_int(obj3)); | |
11838 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11839 | } | |
d55e5bfc RD |
11840 | } |
11841 | { | |
11842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11843 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
11844 | ||
11845 | wxPyEndAllowThreads(__tstate); | |
11846 | if (PyErr_Occurred()) SWIG_fail; | |
11847 | } | |
11848 | { | |
11849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11850 | } | |
11851 | { | |
11852 | if (temp2) | |
11853 | delete arg2; | |
11854 | } | |
11855 | return resultobj; | |
11856 | fail: | |
11857 | { | |
11858 | if (temp2) | |
11859 | delete arg2; | |
11860 | } | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
c32bde28 | 11865 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11866 | PyObject *resultobj; |
11867 | wxImage *arg1 = (wxImage *) 0 ; | |
11868 | wxString *arg2 = 0 ; | |
11869 | wxString *arg3 = 0 ; | |
11870 | int arg4 = (int) -1 ; | |
11871 | bool result; | |
ae8162c8 RD |
11872 | bool temp2 = false ; |
11873 | bool temp3 = false ; | |
d55e5bfc RD |
11874 | PyObject * obj0 = 0 ; |
11875 | PyObject * obj1 = 0 ; | |
11876 | PyObject * obj2 = 0 ; | |
11877 | PyObject * obj3 = 0 ; | |
11878 | char *kwnames[] = { | |
11879 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
11880 | }; | |
11881 | ||
11882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11885 | { |
11886 | arg2 = wxString_in_helper(obj1); | |
11887 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11888 | temp2 = true; |
d55e5bfc RD |
11889 | } |
11890 | { | |
11891 | arg3 = wxString_in_helper(obj2); | |
11892 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11893 | temp3 = true; |
d55e5bfc RD |
11894 | } |
11895 | if (obj3) { | |
093d3ff1 RD |
11896 | { |
11897 | arg4 = (int)(SWIG_As_int(obj3)); | |
11898 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11899 | } | |
d55e5bfc RD |
11900 | } |
11901 | { | |
11902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11903 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11904 | ||
11905 | wxPyEndAllowThreads(__tstate); | |
11906 | if (PyErr_Occurred()) SWIG_fail; | |
11907 | } | |
11908 | { | |
11909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11910 | } | |
11911 | { | |
11912 | if (temp2) | |
11913 | delete arg2; | |
11914 | } | |
11915 | { | |
11916 | if (temp3) | |
11917 | delete arg3; | |
11918 | } | |
11919 | return resultobj; | |
11920 | fail: | |
11921 | { | |
11922 | if (temp2) | |
11923 | delete arg2; | |
11924 | } | |
11925 | { | |
11926 | if (temp3) | |
11927 | delete arg3; | |
11928 | } | |
11929 | return NULL; | |
11930 | } | |
11931 | ||
11932 | ||
c32bde28 | 11933 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11934 | PyObject *resultobj; |
11935 | wxImage *arg1 = (wxImage *) 0 ; | |
11936 | wxString *arg2 = 0 ; | |
11937 | int arg3 ; | |
11938 | bool result; | |
ae8162c8 | 11939 | bool temp2 = false ; |
d55e5bfc RD |
11940 | PyObject * obj0 = 0 ; |
11941 | PyObject * obj1 = 0 ; | |
11942 | PyObject * obj2 = 0 ; | |
11943 | char *kwnames[] = { | |
11944 | (char *) "self",(char *) "name",(char *) "type", NULL | |
11945 | }; | |
11946 | ||
11947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11950 | { |
11951 | arg2 = wxString_in_helper(obj1); | |
11952 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11953 | temp2 = true; |
d55e5bfc | 11954 | } |
093d3ff1 RD |
11955 | { |
11956 | arg3 = (int)(SWIG_As_int(obj2)); | |
11957 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11958 | } | |
d55e5bfc RD |
11959 | { |
11960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11961 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
11962 | ||
11963 | wxPyEndAllowThreads(__tstate); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
11966 | { | |
11967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11968 | } | |
11969 | { | |
11970 | if (temp2) | |
11971 | delete arg2; | |
11972 | } | |
11973 | return resultobj; | |
11974 | fail: | |
11975 | { | |
11976 | if (temp2) | |
11977 | delete arg2; | |
11978 | } | |
11979 | return NULL; | |
11980 | } | |
11981 | ||
11982 | ||
c32bde28 | 11983 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11984 | PyObject *resultobj; |
11985 | wxImage *arg1 = (wxImage *) 0 ; | |
11986 | wxString *arg2 = 0 ; | |
11987 | wxString *arg3 = 0 ; | |
11988 | bool result; | |
ae8162c8 RD |
11989 | bool temp2 = false ; |
11990 | bool temp3 = false ; | |
d55e5bfc RD |
11991 | PyObject * obj0 = 0 ; |
11992 | PyObject * obj1 = 0 ; | |
11993 | PyObject * obj2 = 0 ; | |
11994 | char *kwnames[] = { | |
11995 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
11996 | }; | |
11997 | ||
11998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12001 | { |
12002 | arg2 = wxString_in_helper(obj1); | |
12003 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12004 | temp2 = true; |
d55e5bfc RD |
12005 | } |
12006 | { | |
12007 | arg3 = wxString_in_helper(obj2); | |
12008 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12009 | temp3 = true; |
d55e5bfc RD |
12010 | } |
12011 | { | |
12012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12013 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
12014 | ||
12015 | wxPyEndAllowThreads(__tstate); | |
12016 | if (PyErr_Occurred()) SWIG_fail; | |
12017 | } | |
12018 | { | |
12019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12020 | } | |
12021 | { | |
12022 | if (temp2) | |
12023 | delete arg2; | |
12024 | } | |
12025 | { | |
12026 | if (temp3) | |
12027 | delete arg3; | |
12028 | } | |
12029 | return resultobj; | |
12030 | fail: | |
12031 | { | |
12032 | if (temp2) | |
12033 | delete arg2; | |
12034 | } | |
12035 | { | |
12036 | if (temp3) | |
12037 | delete arg3; | |
12038 | } | |
12039 | return NULL; | |
12040 | } | |
12041 | ||
12042 | ||
c32bde28 | 12043 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12044 | PyObject *resultobj; |
12045 | wxInputStream *arg1 = 0 ; | |
12046 | bool result; | |
12047 | wxPyInputStream *temp1 ; | |
12048 | bool created1 ; | |
12049 | PyObject * obj0 = 0 ; | |
12050 | char *kwnames[] = { | |
12051 | (char *) "stream", NULL | |
12052 | }; | |
12053 | ||
12054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
12055 | { | |
12056 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
12057 | arg1 = temp1->m_wxis; | |
ae8162c8 | 12058 | created1 = false; |
d55e5bfc RD |
12059 | } else { |
12060 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 12061 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc | 12062 | if (arg1 == NULL) { |
e2950dbb | 12063 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d55e5bfc RD |
12064 | SWIG_fail; |
12065 | } | |
ae8162c8 | 12066 | created1 = true; |
d55e5bfc RD |
12067 | } |
12068 | } | |
12069 | { | |
12070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12071 | result = (bool)wxImage::CanRead(*arg1); | |
12072 | ||
12073 | wxPyEndAllowThreads(__tstate); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
12076 | { | |
12077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12078 | } | |
12079 | { | |
e2950dbb | 12080 | if (created1) delete arg1; |
d55e5bfc RD |
12081 | } |
12082 | return resultobj; | |
12083 | fail: | |
12084 | { | |
e2950dbb | 12085 | if (created1) delete arg1; |
d55e5bfc RD |
12086 | } |
12087 | return NULL; | |
12088 | } | |
12089 | ||
12090 | ||
c32bde28 | 12091 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12092 | PyObject *resultobj; |
12093 | wxImage *arg1 = (wxImage *) 0 ; | |
12094 | wxInputStream *arg2 = 0 ; | |
12095 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
12096 | int arg4 = (int) -1 ; | |
12097 | bool result; | |
12098 | wxPyInputStream *temp2 ; | |
12099 | bool created2 ; | |
12100 | PyObject * obj0 = 0 ; | |
12101 | PyObject * obj1 = 0 ; | |
12102 | PyObject * obj2 = 0 ; | |
12103 | PyObject * obj3 = 0 ; | |
12104 | char *kwnames[] = { | |
12105 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
12106 | }; | |
12107 | ||
12108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
12109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12111 | { |
12112 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
12113 | arg2 = temp2->m_wxis; | |
ae8162c8 | 12114 | created2 = false; |
d55e5bfc RD |
12115 | } else { |
12116 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 12117 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc | 12118 | if (arg2 == NULL) { |
e2950dbb | 12119 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d55e5bfc RD |
12120 | SWIG_fail; |
12121 | } | |
ae8162c8 | 12122 | created2 = true; |
d55e5bfc RD |
12123 | } |
12124 | } | |
12125 | if (obj2) { | |
093d3ff1 RD |
12126 | { |
12127 | arg3 = (long)(SWIG_As_long(obj2)); | |
12128 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12129 | } | |
d55e5bfc RD |
12130 | } |
12131 | if (obj3) { | |
093d3ff1 RD |
12132 | { |
12133 | arg4 = (int)(SWIG_As_int(obj3)); | |
12134 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12135 | } | |
d55e5bfc RD |
12136 | } |
12137 | { | |
12138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12139 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
12140 | ||
12141 | wxPyEndAllowThreads(__tstate); | |
12142 | if (PyErr_Occurred()) SWIG_fail; | |
12143 | } | |
12144 | { | |
12145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12146 | } | |
12147 | { | |
e2950dbb | 12148 | if (created2) delete arg2; |
d55e5bfc RD |
12149 | } |
12150 | return resultobj; | |
12151 | fail: | |
12152 | { | |
e2950dbb | 12153 | if (created2) delete arg2; |
d55e5bfc RD |
12154 | } |
12155 | return NULL; | |
12156 | } | |
12157 | ||
12158 | ||
c32bde28 | 12159 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12160 | PyObject *resultobj; |
12161 | wxImage *arg1 = (wxImage *) 0 ; | |
12162 | wxInputStream *arg2 = 0 ; | |
12163 | wxString *arg3 = 0 ; | |
12164 | int arg4 = (int) -1 ; | |
12165 | bool result; | |
12166 | wxPyInputStream *temp2 ; | |
12167 | bool created2 ; | |
ae8162c8 | 12168 | bool temp3 = false ; |
d55e5bfc RD |
12169 | PyObject * obj0 = 0 ; |
12170 | PyObject * obj1 = 0 ; | |
12171 | PyObject * obj2 = 0 ; | |
12172 | PyObject * obj3 = 0 ; | |
12173 | char *kwnames[] = { | |
12174 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
12175 | }; | |
12176 | ||
12177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
12178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12180 | { |
12181 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
12182 | arg2 = temp2->m_wxis; | |
ae8162c8 | 12183 | created2 = false; |
d55e5bfc RD |
12184 | } else { |
12185 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 12186 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc | 12187 | if (arg2 == NULL) { |
e2950dbb | 12188 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d55e5bfc RD |
12189 | SWIG_fail; |
12190 | } | |
ae8162c8 | 12191 | created2 = true; |
d55e5bfc RD |
12192 | } |
12193 | } | |
12194 | { | |
12195 | arg3 = wxString_in_helper(obj2); | |
12196 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12197 | temp3 = true; |
d55e5bfc RD |
12198 | } |
12199 | if (obj3) { | |
093d3ff1 RD |
12200 | { |
12201 | arg4 = (int)(SWIG_As_int(obj3)); | |
12202 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12203 | } | |
d55e5bfc RD |
12204 | } |
12205 | { | |
12206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12207 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
12208 | ||
12209 | wxPyEndAllowThreads(__tstate); | |
12210 | if (PyErr_Occurred()) SWIG_fail; | |
12211 | } | |
12212 | { | |
12213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12214 | } | |
12215 | { | |
e2950dbb | 12216 | if (created2) delete arg2; |
d55e5bfc RD |
12217 | } |
12218 | { | |
12219 | if (temp3) | |
12220 | delete arg3; | |
12221 | } | |
12222 | return resultobj; | |
12223 | fail: | |
12224 | { | |
e2950dbb | 12225 | if (created2) delete arg2; |
d55e5bfc RD |
12226 | } |
12227 | { | |
12228 | if (temp3) | |
12229 | delete arg3; | |
12230 | } | |
12231 | return NULL; | |
12232 | } | |
12233 | ||
12234 | ||
c32bde28 | 12235 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12236 | PyObject *resultobj; |
12237 | wxImage *arg1 = (wxImage *) 0 ; | |
12238 | bool result; | |
12239 | PyObject * obj0 = 0 ; | |
12240 | char *kwnames[] = { | |
12241 | (char *) "self", NULL | |
12242 | }; | |
12243 | ||
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12247 | { |
12248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12249 | result = (bool)(arg1)->Ok(); | |
12250 | ||
12251 | wxPyEndAllowThreads(__tstate); | |
12252 | if (PyErr_Occurred()) SWIG_fail; | |
12253 | } | |
12254 | { | |
12255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12256 | } | |
12257 | return resultobj; | |
12258 | fail: | |
12259 | return NULL; | |
12260 | } | |
12261 | ||
12262 | ||
c32bde28 | 12263 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12264 | PyObject *resultobj; |
12265 | wxImage *arg1 = (wxImage *) 0 ; | |
12266 | int result; | |
12267 | PyObject * obj0 = 0 ; | |
12268 | char *kwnames[] = { | |
12269 | (char *) "self", NULL | |
12270 | }; | |
12271 | ||
12272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12275 | { |
12276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12277 | result = (int)(arg1)->GetWidth(); | |
12278 | ||
12279 | wxPyEndAllowThreads(__tstate); | |
12280 | if (PyErr_Occurred()) SWIG_fail; | |
12281 | } | |
093d3ff1 RD |
12282 | { |
12283 | resultobj = SWIG_From_int((int)(result)); | |
12284 | } | |
d55e5bfc RD |
12285 | return resultobj; |
12286 | fail: | |
12287 | return NULL; | |
12288 | } | |
12289 | ||
12290 | ||
c32bde28 | 12291 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12292 | PyObject *resultobj; |
12293 | wxImage *arg1 = (wxImage *) 0 ; | |
12294 | int result; | |
12295 | PyObject * obj0 = 0 ; | |
12296 | char *kwnames[] = { | |
12297 | (char *) "self", NULL | |
12298 | }; | |
12299 | ||
12300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12303 | { |
12304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12305 | result = (int)(arg1)->GetHeight(); | |
12306 | ||
12307 | wxPyEndAllowThreads(__tstate); | |
12308 | if (PyErr_Occurred()) SWIG_fail; | |
12309 | } | |
093d3ff1 RD |
12310 | { |
12311 | resultobj = SWIG_From_int((int)(result)); | |
12312 | } | |
d55e5bfc RD |
12313 | return resultobj; |
12314 | fail: | |
12315 | return NULL; | |
12316 | } | |
12317 | ||
12318 | ||
c32bde28 | 12319 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12320 | PyObject *resultobj; |
12321 | wxImage *arg1 = (wxImage *) 0 ; | |
12322 | wxSize result; | |
12323 | PyObject * obj0 = 0 ; | |
12324 | char *kwnames[] = { | |
12325 | (char *) "self", NULL | |
12326 | }; | |
12327 | ||
12328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12331 | { |
12332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12333 | result = wxImage_GetSize(arg1); | |
12334 | ||
12335 | wxPyEndAllowThreads(__tstate); | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | } | |
12338 | { | |
12339 | wxSize * resultptr; | |
093d3ff1 | 12340 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
12341 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
12342 | } | |
12343 | return resultobj; | |
12344 | fail: | |
12345 | return NULL; | |
12346 | } | |
12347 | ||
12348 | ||
c32bde28 | 12349 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12350 | PyObject *resultobj; |
12351 | wxImage *arg1 = (wxImage *) 0 ; | |
12352 | wxRect *arg2 = 0 ; | |
093d3ff1 | 12353 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12354 | wxRect temp2 ; |
12355 | PyObject * obj0 = 0 ; | |
12356 | PyObject * obj1 = 0 ; | |
12357 | char *kwnames[] = { | |
12358 | (char *) "self",(char *) "rect", NULL | |
12359 | }; | |
12360 | ||
12361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12364 | { |
12365 | arg2 = &temp2; | |
12366 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12367 | } | |
12368 | { | |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
12371 | ||
12372 | wxPyEndAllowThreads(__tstate); | |
12373 | if (PyErr_Occurred()) SWIG_fail; | |
12374 | } | |
12375 | { | |
12376 | wxImage * resultptr; | |
093d3ff1 | 12377 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
12378 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
12379 | } | |
12380 | return resultobj; | |
12381 | fail: | |
12382 | return NULL; | |
12383 | } | |
12384 | ||
12385 | ||
aff4cc5c RD |
12386 | static PyObject *_wrap_Image_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
12387 | PyObject *resultobj; | |
12388 | wxImage *arg1 = (wxImage *) 0 ; | |
12389 | wxSize *arg2 = 0 ; | |
12390 | wxPoint *arg3 = 0 ; | |
12391 | int arg4 = (int) -1 ; | |
12392 | int arg5 = (int) -1 ; | |
12393 | int arg6 = (int) -1 ; | |
12394 | SwigValueWrapper<wxImage > result; | |
12395 | wxSize temp2 ; | |
12396 | wxPoint temp3 ; | |
12397 | PyObject * obj0 = 0 ; | |
12398 | PyObject * obj1 = 0 ; | |
12399 | PyObject * obj2 = 0 ; | |
12400 | PyObject * obj3 = 0 ; | |
12401 | PyObject * obj4 = 0 ; | |
12402 | PyObject * obj5 = 0 ; | |
12403 | char *kwnames[] = { | |
12404 | (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL | |
12405 | }; | |
12406 | ||
12407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Size",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
12409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12410 | { | |
12411 | arg2 = &temp2; | |
12412 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12413 | } | |
12414 | { | |
12415 | arg3 = &temp3; | |
12416 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12417 | } | |
12418 | if (obj3) { | |
12419 | { | |
12420 | arg4 = (int)(SWIG_As_int(obj3)); | |
12421 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12422 | } | |
12423 | } | |
12424 | if (obj4) { | |
12425 | { | |
12426 | arg5 = (int)(SWIG_As_int(obj4)); | |
12427 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12428 | } | |
12429 | } | |
12430 | if (obj5) { | |
12431 | { | |
12432 | arg6 = (int)(SWIG_As_int(obj5)); | |
12433 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12434 | } | |
12435 | } | |
12436 | { | |
12437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12438 | result = ((wxImage const *)arg1)->Size((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6); | |
12439 | ||
12440 | wxPyEndAllowThreads(__tstate); | |
12441 | if (PyErr_Occurred()) SWIG_fail; | |
12442 | } | |
12443 | { | |
12444 | wxImage * resultptr; | |
12445 | resultptr = new wxImage((wxImage &)(result)); | |
12446 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
12447 | } | |
12448 | return resultobj; | |
12449 | fail: | |
12450 | return NULL; | |
12451 | } | |
12452 | ||
12453 | ||
c32bde28 | 12454 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12455 | PyObject *resultobj; |
12456 | wxImage *arg1 = (wxImage *) 0 ; | |
093d3ff1 | 12457 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12458 | PyObject * obj0 = 0 ; |
12459 | char *kwnames[] = { | |
12460 | (char *) "self", NULL | |
12461 | }; | |
12462 | ||
12463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12466 | { |
12467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12468 | result = (arg1)->Copy(); | |
12469 | ||
12470 | wxPyEndAllowThreads(__tstate); | |
12471 | if (PyErr_Occurred()) SWIG_fail; | |
12472 | } | |
12473 | { | |
12474 | wxImage * resultptr; | |
093d3ff1 | 12475 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
12476 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
12477 | } | |
12478 | return resultobj; | |
12479 | fail: | |
12480 | return NULL; | |
12481 | } | |
12482 | ||
12483 | ||
c32bde28 | 12484 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12485 | PyObject *resultobj; |
12486 | wxImage *arg1 = (wxImage *) 0 ; | |
12487 | wxImage *arg2 = 0 ; | |
12488 | int arg3 ; | |
12489 | int arg4 ; | |
12490 | PyObject * obj0 = 0 ; | |
12491 | PyObject * obj1 = 0 ; | |
12492 | PyObject * obj2 = 0 ; | |
12493 | PyObject * obj3 = 0 ; | |
12494 | char *kwnames[] = { | |
12495 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
12496 | }; | |
12497 | ||
12498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
12499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12501 | { | |
12502 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
12503 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12504 | if (arg2 == NULL) { | |
12505 | SWIG_null_ref("wxImage"); | |
12506 | } | |
12507 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12508 | } | |
12509 | { | |
12510 | arg3 = (int)(SWIG_As_int(obj2)); | |
12511 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12512 | } | |
12513 | { | |
12514 | arg4 = (int)(SWIG_As_int(obj3)); | |
12515 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc | 12516 | } |
d55e5bfc RD |
12517 | { |
12518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12519 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
12520 | ||
12521 | wxPyEndAllowThreads(__tstate); | |
12522 | if (PyErr_Occurred()) SWIG_fail; | |
12523 | } | |
12524 | Py_INCREF(Py_None); resultobj = Py_None; | |
12525 | return resultobj; | |
12526 | fail: | |
12527 | return NULL; | |
12528 | } | |
12529 | ||
12530 | ||
c32bde28 | 12531 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12532 | PyObject *resultobj; |
12533 | wxImage *arg1 = (wxImage *) 0 ; | |
12534 | PyObject *result; | |
12535 | PyObject * obj0 = 0 ; | |
12536 | char *kwnames[] = { | |
12537 | (char *) "self", NULL | |
12538 | }; | |
12539 | ||
12540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12543 | { |
12544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12545 | result = (PyObject *)wxImage_GetData(arg1); | |
12546 | ||
12547 | wxPyEndAllowThreads(__tstate); | |
12548 | if (PyErr_Occurred()) SWIG_fail; | |
12549 | } | |
12550 | resultobj = result; | |
12551 | return resultobj; | |
12552 | fail: | |
12553 | return NULL; | |
12554 | } | |
12555 | ||
12556 | ||
c32bde28 | 12557 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12558 | PyObject *resultobj; |
12559 | wxImage *arg1 = (wxImage *) 0 ; | |
ea939623 RD |
12560 | buffer arg2 ; |
12561 | int arg3 ; | |
d55e5bfc RD |
12562 | PyObject * obj0 = 0 ; |
12563 | PyObject * obj1 = 0 ; | |
12564 | char *kwnames[] = { | |
12565 | (char *) "self",(char *) "data", NULL | |
12566 | }; | |
12567 | ||
12568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ea939623 RD |
12571 | { |
12572 | if (!PyArg_Parse(obj1, "t#", &arg2, &arg3)) SWIG_fail; | |
12573 | } | |
d55e5bfc RD |
12574 | { |
12575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ea939623 | 12576 | wxImage_SetData(arg1,arg2,arg3); |
d55e5bfc RD |
12577 | |
12578 | wxPyEndAllowThreads(__tstate); | |
12579 | if (PyErr_Occurred()) SWIG_fail; | |
12580 | } | |
12581 | Py_INCREF(Py_None); resultobj = Py_None; | |
12582 | return resultobj; | |
12583 | fail: | |
12584 | return NULL; | |
12585 | } | |
12586 | ||
12587 | ||
c32bde28 | 12588 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12589 | PyObject *resultobj; |
12590 | wxImage *arg1 = (wxImage *) 0 ; | |
12591 | PyObject *result; | |
12592 | PyObject * obj0 = 0 ; | |
12593 | char *kwnames[] = { | |
12594 | (char *) "self", NULL | |
12595 | }; | |
12596 | ||
12597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12600 | { |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12602 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
12603 | ||
12604 | wxPyEndAllowThreads(__tstate); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
12606 | } | |
12607 | resultobj = result; | |
12608 | return resultobj; | |
12609 | fail: | |
12610 | return NULL; | |
12611 | } | |
12612 | ||
12613 | ||
c32bde28 | 12614 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12615 | PyObject *resultobj; |
12616 | wxImage *arg1 = (wxImage *) 0 ; | |
ea939623 RD |
12617 | buffer arg2 ; |
12618 | int arg3 ; | |
d55e5bfc RD |
12619 | PyObject * obj0 = 0 ; |
12620 | PyObject * obj1 = 0 ; | |
12621 | char *kwnames[] = { | |
12622 | (char *) "self",(char *) "data", NULL | |
12623 | }; | |
12624 | ||
12625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12626 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12627 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ea939623 RD |
12628 | { |
12629 | if (!PyArg_Parse(obj1, "t#", &arg2, &arg3)) SWIG_fail; | |
12630 | } | |
d55e5bfc RD |
12631 | { |
12632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ea939623 | 12633 | wxImage_SetDataBuffer(arg1,arg2,arg3); |
d55e5bfc RD |
12634 | |
12635 | wxPyEndAllowThreads(__tstate); | |
12636 | if (PyErr_Occurred()) SWIG_fail; | |
12637 | } | |
12638 | Py_INCREF(Py_None); resultobj = Py_None; | |
12639 | return resultobj; | |
12640 | fail: | |
12641 | return NULL; | |
12642 | } | |
12643 | ||
12644 | ||
c32bde28 | 12645 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12646 | PyObject *resultobj; |
12647 | wxImage *arg1 = (wxImage *) 0 ; | |
12648 | PyObject *result; | |
12649 | PyObject * obj0 = 0 ; | |
12650 | char *kwnames[] = { | |
12651 | (char *) "self", NULL | |
12652 | }; | |
12653 | ||
12654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12657 | { |
12658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12659 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
12660 | ||
12661 | wxPyEndAllowThreads(__tstate); | |
12662 | if (PyErr_Occurred()) SWIG_fail; | |
12663 | } | |
12664 | resultobj = result; | |
12665 | return resultobj; | |
12666 | fail: | |
12667 | return NULL; | |
12668 | } | |
12669 | ||
12670 | ||
c32bde28 | 12671 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12672 | PyObject *resultobj; |
12673 | wxImage *arg1 = (wxImage *) 0 ; | |
ea939623 RD |
12674 | buffer arg2 ; |
12675 | int arg3 ; | |
d55e5bfc RD |
12676 | PyObject * obj0 = 0 ; |
12677 | PyObject * obj1 = 0 ; | |
12678 | char *kwnames[] = { | |
ea939623 | 12679 | (char *) "self",(char *) "alpha", NULL |
d55e5bfc RD |
12680 | }; |
12681 | ||
12682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ea939623 RD |
12685 | { |
12686 | if (!PyArg_Parse(obj1, "t#", &arg2, &arg3)) SWIG_fail; | |
12687 | } | |
d55e5bfc RD |
12688 | { |
12689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ea939623 | 12690 | wxImage_SetAlphaData(arg1,arg2,arg3); |
d55e5bfc RD |
12691 | |
12692 | wxPyEndAllowThreads(__tstate); | |
12693 | if (PyErr_Occurred()) SWIG_fail; | |
12694 | } | |
12695 | Py_INCREF(Py_None); resultobj = Py_None; | |
12696 | return resultobj; | |
12697 | fail: | |
12698 | return NULL; | |
12699 | } | |
12700 | ||
12701 | ||
c32bde28 | 12702 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12703 | PyObject *resultobj; |
12704 | wxImage *arg1 = (wxImage *) 0 ; | |
12705 | PyObject *result; | |
12706 | PyObject * obj0 = 0 ; | |
12707 | char *kwnames[] = { | |
12708 | (char *) "self", NULL | |
12709 | }; | |
12710 | ||
12711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12714 | { |
12715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12716 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
12717 | ||
12718 | wxPyEndAllowThreads(__tstate); | |
12719 | if (PyErr_Occurred()) SWIG_fail; | |
12720 | } | |
12721 | resultobj = result; | |
12722 | return resultobj; | |
12723 | fail: | |
12724 | return NULL; | |
12725 | } | |
12726 | ||
12727 | ||
c32bde28 | 12728 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12729 | PyObject *resultobj; |
12730 | wxImage *arg1 = (wxImage *) 0 ; | |
ea939623 RD |
12731 | buffer arg2 ; |
12732 | int arg3 ; | |
d55e5bfc RD |
12733 | PyObject * obj0 = 0 ; |
12734 | PyObject * obj1 = 0 ; | |
12735 | char *kwnames[] = { | |
ea939623 | 12736 | (char *) "self",(char *) "alpha", NULL |
d55e5bfc RD |
12737 | }; |
12738 | ||
12739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ea939623 RD |
12742 | { |
12743 | if (!PyArg_Parse(obj1, "t#", &arg2, &arg3)) SWIG_fail; | |
12744 | } | |
d55e5bfc RD |
12745 | { |
12746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ea939623 | 12747 | wxImage_SetAlphaBuffer(arg1,arg2,arg3); |
d55e5bfc RD |
12748 | |
12749 | wxPyEndAllowThreads(__tstate); | |
12750 | if (PyErr_Occurred()) SWIG_fail; | |
12751 | } | |
12752 | Py_INCREF(Py_None); resultobj = Py_None; | |
12753 | return resultobj; | |
12754 | fail: | |
12755 | return NULL; | |
12756 | } | |
12757 | ||
12758 | ||
c32bde28 | 12759 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12760 | PyObject *resultobj; |
12761 | wxImage *arg1 = (wxImage *) 0 ; | |
12762 | unsigned char arg2 ; | |
12763 | unsigned char arg3 ; | |
12764 | unsigned char arg4 ; | |
12765 | PyObject * obj0 = 0 ; | |
12766 | PyObject * obj1 = 0 ; | |
12767 | PyObject * obj2 = 0 ; | |
12768 | PyObject * obj3 = 0 ; | |
12769 | char *kwnames[] = { | |
12770 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
12771 | }; | |
12772 | ||
12773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
12774 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12775 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12776 | { | |
12777 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
12778 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12779 | } | |
12780 | { | |
12781 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
12782 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12783 | } | |
12784 | { | |
12785 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
12786 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12787 | } | |
d55e5bfc RD |
12788 | { |
12789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12790 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
12791 | ||
12792 | wxPyEndAllowThreads(__tstate); | |
12793 | if (PyErr_Occurred()) SWIG_fail; | |
12794 | } | |
12795 | Py_INCREF(Py_None); resultobj = Py_None; | |
12796 | return resultobj; | |
12797 | fail: | |
12798 | return NULL; | |
12799 | } | |
12800 | ||
12801 | ||
aff4cc5c RD |
12802 | static PyObject *_wrap_Image_GetOrFindMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
12803 | PyObject *resultobj; | |
12804 | wxImage *arg1 = (wxImage *) 0 ; | |
12805 | unsigned char *arg2 = (unsigned char *) 0 ; | |
12806 | unsigned char *arg3 = (unsigned char *) 0 ; | |
12807 | unsigned char *arg4 = (unsigned char *) 0 ; | |
12808 | unsigned char temp2 ; | |
12809 | int res2 = 0 ; | |
12810 | unsigned char temp3 ; | |
12811 | int res3 = 0 ; | |
12812 | unsigned char temp4 ; | |
12813 | int res4 = 0 ; | |
12814 | PyObject * obj0 = 0 ; | |
12815 | char *kwnames[] = { | |
12816 | (char *) "self", NULL | |
12817 | }; | |
12818 | ||
12819 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
12820 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
12821 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
12822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetOrFindMaskColour",kwnames,&obj0)) goto fail; | |
12823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
12824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12825 | { | |
12826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12827 | ((wxImage const *)arg1)->GetOrFindMaskColour(arg2,arg3,arg4); | |
12828 | ||
12829 | wxPyEndAllowThreads(__tstate); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | } | |
12832 | Py_INCREF(Py_None); resultobj = Py_None; | |
12833 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
12834 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
12835 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
12836 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
12837 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
12838 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
12839 | return resultobj; | |
12840 | fail: | |
12841 | return NULL; | |
12842 | } | |
12843 | ||
12844 | ||
c32bde28 | 12845 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12846 | PyObject *resultobj; |
12847 | wxImage *arg1 = (wxImage *) 0 ; | |
12848 | unsigned char result; | |
12849 | PyObject * obj0 = 0 ; | |
12850 | char *kwnames[] = { | |
12851 | (char *) "self", NULL | |
12852 | }; | |
12853 | ||
12854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12857 | { |
12858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12859 | result = (unsigned char)(arg1)->GetMaskRed(); | |
12860 | ||
12861 | wxPyEndAllowThreads(__tstate); | |
12862 | if (PyErr_Occurred()) SWIG_fail; | |
12863 | } | |
093d3ff1 RD |
12864 | { |
12865 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12866 | } | |
d55e5bfc RD |
12867 | return resultobj; |
12868 | fail: | |
12869 | return NULL; | |
12870 | } | |
12871 | ||
12872 | ||
c32bde28 | 12873 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12874 | PyObject *resultobj; |
12875 | wxImage *arg1 = (wxImage *) 0 ; | |
12876 | unsigned char result; | |
12877 | PyObject * obj0 = 0 ; | |
12878 | char *kwnames[] = { | |
12879 | (char *) "self", NULL | |
12880 | }; | |
12881 | ||
12882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12885 | { |
12886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12887 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
12888 | ||
12889 | wxPyEndAllowThreads(__tstate); | |
12890 | if (PyErr_Occurred()) SWIG_fail; | |
12891 | } | |
093d3ff1 RD |
12892 | { |
12893 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12894 | } | |
d55e5bfc RD |
12895 | return resultobj; |
12896 | fail: | |
12897 | return NULL; | |
12898 | } | |
12899 | ||
12900 | ||
c32bde28 | 12901 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12902 | PyObject *resultobj; |
12903 | wxImage *arg1 = (wxImage *) 0 ; | |
12904 | unsigned char result; | |
12905 | PyObject * obj0 = 0 ; | |
12906 | char *kwnames[] = { | |
12907 | (char *) "self", NULL | |
12908 | }; | |
12909 | ||
12910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12913 | { |
12914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12915 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
12916 | ||
12917 | wxPyEndAllowThreads(__tstate); | |
12918 | if (PyErr_Occurred()) SWIG_fail; | |
12919 | } | |
093d3ff1 RD |
12920 | { |
12921 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12922 | } | |
d55e5bfc RD |
12923 | return resultobj; |
12924 | fail: | |
12925 | return NULL; | |
12926 | } | |
12927 | ||
12928 | ||
c32bde28 | 12929 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12930 | PyObject *resultobj; |
12931 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 12932 | bool arg2 = (bool) true ; |
d55e5bfc RD |
12933 | PyObject * obj0 = 0 ; |
12934 | PyObject * obj1 = 0 ; | |
12935 | char *kwnames[] = { | |
12936 | (char *) "self",(char *) "mask", NULL | |
12937 | }; | |
12938 | ||
12939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12942 | if (obj1) { |
093d3ff1 RD |
12943 | { |
12944 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
12945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12946 | } | |
d55e5bfc RD |
12947 | } |
12948 | { | |
12949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12950 | (arg1)->SetMask(arg2); | |
12951 | ||
12952 | wxPyEndAllowThreads(__tstate); | |
12953 | if (PyErr_Occurred()) SWIG_fail; | |
12954 | } | |
12955 | Py_INCREF(Py_None); resultobj = Py_None; | |
12956 | return resultobj; | |
12957 | fail: | |
12958 | return NULL; | |
12959 | } | |
12960 | ||
12961 | ||
c32bde28 | 12962 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12963 | PyObject *resultobj; |
12964 | wxImage *arg1 = (wxImage *) 0 ; | |
12965 | bool result; | |
12966 | PyObject * obj0 = 0 ; | |
12967 | char *kwnames[] = { | |
12968 | (char *) "self", NULL | |
12969 | }; | |
12970 | ||
12971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12974 | { |
12975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12976 | result = (bool)(arg1)->HasMask(); | |
12977 | ||
12978 | wxPyEndAllowThreads(__tstate); | |
12979 | if (PyErr_Occurred()) SWIG_fail; | |
12980 | } | |
12981 | { | |
12982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12983 | } | |
12984 | return resultobj; | |
12985 | fail: | |
12986 | return NULL; | |
12987 | } | |
12988 | ||
12989 | ||
c32bde28 | 12990 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12991 | PyObject *resultobj; |
12992 | wxImage *arg1 = (wxImage *) 0 ; | |
12993 | double arg2 ; | |
12994 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 12995 | bool arg4 = (bool) true ; |
d55e5bfc | 12996 | wxPoint *arg5 = (wxPoint *) NULL ; |
093d3ff1 | 12997 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12998 | wxPoint temp3 ; |
12999 | PyObject * obj0 = 0 ; | |
13000 | PyObject * obj1 = 0 ; | |
13001 | PyObject * obj2 = 0 ; | |
13002 | PyObject * obj3 = 0 ; | |
13003 | PyObject * obj4 = 0 ; | |
13004 | char *kwnames[] = { | |
13005 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
13006 | }; | |
13007 | ||
13008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
13009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13011 | { | |
13012 | arg2 = (double)(SWIG_As_double(obj1)); | |
13013 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13014 | } | |
d55e5bfc RD |
13015 | { |
13016 | arg3 = &temp3; | |
13017 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13018 | } | |
13019 | if (obj3) { | |
093d3ff1 RD |
13020 | { |
13021 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
13022 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13023 | } | |
d55e5bfc RD |
13024 | } |
13025 | if (obj4) { | |
093d3ff1 RD |
13026 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
13027 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
13028 | } |
13029 | { | |
13030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13031 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
13032 | ||
13033 | wxPyEndAllowThreads(__tstate); | |
13034 | if (PyErr_Occurred()) SWIG_fail; | |
13035 | } | |
13036 | { | |
13037 | wxImage * resultptr; | |
093d3ff1 | 13038 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
13039 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
13040 | } | |
13041 | return resultobj; | |
13042 | fail: | |
13043 | return NULL; | |
13044 | } | |
13045 | ||
13046 | ||
c32bde28 | 13047 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13048 | PyObject *resultobj; |
13049 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 13050 | bool arg2 = (bool) true ; |
093d3ff1 | 13051 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
13052 | PyObject * obj0 = 0 ; |
13053 | PyObject * obj1 = 0 ; | |
13054 | char *kwnames[] = { | |
13055 | (char *) "self",(char *) "clockwise", NULL | |
13056 | }; | |
13057 | ||
13058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13061 | if (obj1) { |
093d3ff1 RD |
13062 | { |
13063 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
13064 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13065 | } | |
d55e5bfc RD |
13066 | } |
13067 | { | |
13068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13069 | result = (arg1)->Rotate90(arg2); | |
13070 | ||
13071 | wxPyEndAllowThreads(__tstate); | |
13072 | if (PyErr_Occurred()) SWIG_fail; | |
13073 | } | |
13074 | { | |
13075 | wxImage * resultptr; | |
093d3ff1 | 13076 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
13077 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
13078 | } | |
13079 | return resultobj; | |
13080 | fail: | |
13081 | return NULL; | |
13082 | } | |
13083 | ||
13084 | ||
c32bde28 | 13085 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13086 | PyObject *resultobj; |
13087 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 13088 | bool arg2 = (bool) true ; |
093d3ff1 | 13089 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
13090 | PyObject * obj0 = 0 ; |
13091 | PyObject * obj1 = 0 ; | |
13092 | char *kwnames[] = { | |
13093 | (char *) "self",(char *) "horizontally", NULL | |
13094 | }; | |
13095 | ||
13096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13099 | if (obj1) { |
093d3ff1 RD |
13100 | { |
13101 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
13102 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13103 | } | |
d55e5bfc RD |
13104 | } |
13105 | { | |
13106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13107 | result = (arg1)->Mirror(arg2); | |
13108 | ||
13109 | wxPyEndAllowThreads(__tstate); | |
13110 | if (PyErr_Occurred()) SWIG_fail; | |
13111 | } | |
13112 | { | |
13113 | wxImage * resultptr; | |
093d3ff1 | 13114 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
13115 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
13116 | } | |
13117 | return resultobj; | |
13118 | fail: | |
13119 | return NULL; | |
13120 | } | |
13121 | ||
13122 | ||
c32bde28 | 13123 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13124 | PyObject *resultobj; |
13125 | wxImage *arg1 = (wxImage *) 0 ; | |
13126 | unsigned char arg2 ; | |
13127 | unsigned char arg3 ; | |
13128 | unsigned char arg4 ; | |
13129 | unsigned char arg5 ; | |
13130 | unsigned char arg6 ; | |
13131 | unsigned char arg7 ; | |
13132 | PyObject * obj0 = 0 ; | |
13133 | PyObject * obj1 = 0 ; | |
13134 | PyObject * obj2 = 0 ; | |
13135 | PyObject * obj3 = 0 ; | |
13136 | PyObject * obj4 = 0 ; | |
13137 | PyObject * obj5 = 0 ; | |
13138 | PyObject * obj6 = 0 ; | |
13139 | char *kwnames[] = { | |
13140 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
13141 | }; | |
13142 | ||
13143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
13144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13146 | { | |
13147 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
13148 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13149 | } | |
13150 | { | |
13151 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
13152 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13153 | } | |
13154 | { | |
13155 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
13156 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13157 | } | |
13158 | { | |
13159 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4)); | |
13160 | if (SWIG_arg_fail(5)) SWIG_fail; | |
13161 | } | |
13162 | { | |
13163 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj5)); | |
13164 | if (SWIG_arg_fail(6)) SWIG_fail; | |
13165 | } | |
13166 | { | |
13167 | arg7 = (unsigned char)(SWIG_As_unsigned_SS_char(obj6)); | |
13168 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13169 | } | |
d55e5bfc RD |
13170 | { |
13171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13172 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
13173 | ||
13174 | wxPyEndAllowThreads(__tstate); | |
13175 | if (PyErr_Occurred()) SWIG_fail; | |
13176 | } | |
13177 | Py_INCREF(Py_None); resultobj = Py_None; | |
13178 | return resultobj; | |
13179 | fail: | |
13180 | return NULL; | |
13181 | } | |
13182 | ||
13183 | ||
c32bde28 | 13184 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13185 | PyObject *resultobj; |
13186 | wxImage *arg1 = (wxImage *) 0 ; | |
13187 | unsigned char arg2 ; | |
13188 | unsigned char arg3 ; | |
13189 | unsigned char arg4 ; | |
093d3ff1 | 13190 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
13191 | PyObject * obj0 = 0 ; |
13192 | PyObject * obj1 = 0 ; | |
13193 | PyObject * obj2 = 0 ; | |
13194 | PyObject * obj3 = 0 ; | |
13195 | char *kwnames[] = { | |
13196 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
13197 | }; | |
13198 | ||
13199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
13200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13202 | { | |
13203 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
13204 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13205 | } | |
13206 | { | |
13207 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
13208 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13209 | } | |
13210 | { | |
13211 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
13212 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13213 | } | |
d55e5bfc RD |
13214 | { |
13215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13216 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
13217 | ||
13218 | wxPyEndAllowThreads(__tstate); | |
13219 | if (PyErr_Occurred()) SWIG_fail; | |
13220 | } | |
13221 | { | |
13222 | wxImage * resultptr; | |
093d3ff1 | 13223 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
13224 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
13225 | } | |
13226 | return resultobj; | |
13227 | fail: | |
13228 | return NULL; | |
13229 | } | |
13230 | ||
13231 | ||
c32bde28 | 13232 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13233 | PyObject *resultobj; |
13234 | wxImage *arg1 = (wxImage *) 0 ; | |
13235 | wxString *arg2 = 0 ; | |
13236 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
13237 | bool temp2 = false ; |
13238 | bool temp3 = false ; | |
d55e5bfc RD |
13239 | PyObject * obj0 = 0 ; |
13240 | PyObject * obj1 = 0 ; | |
13241 | PyObject * obj2 = 0 ; | |
13242 | char *kwnames[] = { | |
13243 | (char *) "self",(char *) "name",(char *) "value", NULL | |
13244 | }; | |
13245 | ||
13246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
13247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13249 | { |
13250 | arg2 = wxString_in_helper(obj1); | |
13251 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13252 | temp2 = true; |
d55e5bfc RD |
13253 | } |
13254 | { | |
13255 | arg3 = wxString_in_helper(obj2); | |
13256 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13257 | temp3 = true; |
d55e5bfc RD |
13258 | } |
13259 | { | |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
13262 | ||
13263 | wxPyEndAllowThreads(__tstate); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
13266 | Py_INCREF(Py_None); resultobj = Py_None; | |
13267 | { | |
13268 | if (temp2) | |
13269 | delete arg2; | |
13270 | } | |
13271 | { | |
13272 | if (temp3) | |
13273 | delete arg3; | |
13274 | } | |
13275 | return resultobj; | |
13276 | fail: | |
13277 | { | |
13278 | if (temp2) | |
13279 | delete arg2; | |
13280 | } | |
13281 | { | |
13282 | if (temp3) | |
13283 | delete arg3; | |
13284 | } | |
13285 | return NULL; | |
13286 | } | |
13287 | ||
13288 | ||
c32bde28 | 13289 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13290 | PyObject *resultobj; |
13291 | wxImage *arg1 = (wxImage *) 0 ; | |
13292 | wxString *arg2 = 0 ; | |
13293 | int arg3 ; | |
ae8162c8 | 13294 | bool temp2 = false ; |
d55e5bfc RD |
13295 | PyObject * obj0 = 0 ; |
13296 | PyObject * obj1 = 0 ; | |
13297 | PyObject * obj2 = 0 ; | |
13298 | char *kwnames[] = { | |
13299 | (char *) "self",(char *) "name",(char *) "value", NULL | |
13300 | }; | |
13301 | ||
13302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
13303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13305 | { |
13306 | arg2 = wxString_in_helper(obj1); | |
13307 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13308 | temp2 = true; |
d55e5bfc | 13309 | } |
093d3ff1 RD |
13310 | { |
13311 | arg3 = (int)(SWIG_As_int(obj2)); | |
13312 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13313 | } | |
d55e5bfc RD |
13314 | { |
13315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13316 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
13317 | ||
13318 | wxPyEndAllowThreads(__tstate); | |
13319 | if (PyErr_Occurred()) SWIG_fail; | |
13320 | } | |
13321 | Py_INCREF(Py_None); resultobj = Py_None; | |
13322 | { | |
13323 | if (temp2) | |
13324 | delete arg2; | |
13325 | } | |
13326 | return resultobj; | |
13327 | fail: | |
13328 | { | |
13329 | if (temp2) | |
13330 | delete arg2; | |
13331 | } | |
13332 | return NULL; | |
13333 | } | |
13334 | ||
13335 | ||
c32bde28 | 13336 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13337 | PyObject *resultobj; |
13338 | wxImage *arg1 = (wxImage *) 0 ; | |
13339 | wxString *arg2 = 0 ; | |
13340 | wxString result; | |
ae8162c8 | 13341 | bool temp2 = false ; |
d55e5bfc RD |
13342 | PyObject * obj0 = 0 ; |
13343 | PyObject * obj1 = 0 ; | |
13344 | char *kwnames[] = { | |
13345 | (char *) "self",(char *) "name", NULL | |
13346 | }; | |
13347 | ||
13348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13351 | { |
13352 | arg2 = wxString_in_helper(obj1); | |
13353 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13354 | temp2 = true; |
d55e5bfc RD |
13355 | } |
13356 | { | |
13357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13358 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
13359 | ||
13360 | wxPyEndAllowThreads(__tstate); | |
13361 | if (PyErr_Occurred()) SWIG_fail; | |
13362 | } | |
13363 | { | |
13364 | #if wxUSE_UNICODE | |
13365 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13366 | #else | |
13367 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13368 | #endif | |
13369 | } | |
13370 | { | |
13371 | if (temp2) | |
13372 | delete arg2; | |
13373 | } | |
13374 | return resultobj; | |
13375 | fail: | |
13376 | { | |
13377 | if (temp2) | |
13378 | delete arg2; | |
13379 | } | |
13380 | return NULL; | |
13381 | } | |
13382 | ||
13383 | ||
c32bde28 | 13384 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13385 | PyObject *resultobj; |
13386 | wxImage *arg1 = (wxImage *) 0 ; | |
13387 | wxString *arg2 = 0 ; | |
13388 | int result; | |
ae8162c8 | 13389 | bool temp2 = false ; |
d55e5bfc RD |
13390 | PyObject * obj0 = 0 ; |
13391 | PyObject * obj1 = 0 ; | |
13392 | char *kwnames[] = { | |
13393 | (char *) "self",(char *) "name", NULL | |
13394 | }; | |
13395 | ||
13396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13399 | { |
13400 | arg2 = wxString_in_helper(obj1); | |
13401 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13402 | temp2 = true; |
d55e5bfc RD |
13403 | } |
13404 | { | |
13405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13406 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
13407 | ||
13408 | wxPyEndAllowThreads(__tstate); | |
13409 | if (PyErr_Occurred()) SWIG_fail; | |
13410 | } | |
093d3ff1 RD |
13411 | { |
13412 | resultobj = SWIG_From_int((int)(result)); | |
13413 | } | |
d55e5bfc RD |
13414 | { |
13415 | if (temp2) | |
13416 | delete arg2; | |
13417 | } | |
13418 | return resultobj; | |
13419 | fail: | |
13420 | { | |
13421 | if (temp2) | |
13422 | delete arg2; | |
13423 | } | |
13424 | return NULL; | |
13425 | } | |
13426 | ||
13427 | ||
c32bde28 | 13428 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13429 | PyObject *resultobj; |
13430 | wxImage *arg1 = (wxImage *) 0 ; | |
13431 | wxString *arg2 = 0 ; | |
13432 | bool result; | |
ae8162c8 | 13433 | bool temp2 = false ; |
d55e5bfc RD |
13434 | PyObject * obj0 = 0 ; |
13435 | PyObject * obj1 = 0 ; | |
13436 | char *kwnames[] = { | |
13437 | (char *) "self",(char *) "name", NULL | |
13438 | }; | |
13439 | ||
13440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13443 | { |
13444 | arg2 = wxString_in_helper(obj1); | |
13445 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13446 | temp2 = true; |
d55e5bfc RD |
13447 | } |
13448 | { | |
13449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13450 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
13451 | ||
13452 | wxPyEndAllowThreads(__tstate); | |
13453 | if (PyErr_Occurred()) SWIG_fail; | |
13454 | } | |
13455 | { | |
13456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13457 | } | |
13458 | { | |
13459 | if (temp2) | |
13460 | delete arg2; | |
13461 | } | |
13462 | return resultobj; | |
13463 | fail: | |
13464 | { | |
13465 | if (temp2) | |
13466 | delete arg2; | |
13467 | } | |
13468 | return NULL; | |
13469 | } | |
13470 | ||
13471 | ||
c32bde28 | 13472 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13473 | PyObject *resultobj; |
13474 | wxImage *arg1 = (wxImage *) 0 ; | |
13475 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
13476 | unsigned long result; | |
13477 | PyObject * obj0 = 0 ; | |
13478 | PyObject * obj1 = 0 ; | |
13479 | char *kwnames[] = { | |
13480 | (char *) "self",(char *) "stopafter", NULL | |
13481 | }; | |
13482 | ||
13483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13484 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13485 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13486 | if (obj1) { |
093d3ff1 RD |
13487 | { |
13488 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
13489 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13490 | } | |
d55e5bfc RD |
13491 | } |
13492 | { | |
13493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13494 | result = (unsigned long)(arg1)->CountColours(arg2); | |
13495 | ||
13496 | wxPyEndAllowThreads(__tstate); | |
13497 | if (PyErr_Occurred()) SWIG_fail; | |
13498 | } | |
093d3ff1 RD |
13499 | { |
13500 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
13501 | } | |
d55e5bfc RD |
13502 | return resultobj; |
13503 | fail: | |
13504 | return NULL; | |
13505 | } | |
13506 | ||
13507 | ||
c32bde28 | 13508 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13509 | PyObject *resultobj; |
13510 | wxImage *arg1 = (wxImage *) 0 ; | |
13511 | wxImageHistogram *arg2 = 0 ; | |
13512 | unsigned long result; | |
13513 | PyObject * obj0 = 0 ; | |
13514 | PyObject * obj1 = 0 ; | |
13515 | char *kwnames[] = { | |
13516 | (char *) "self",(char *) "h", NULL | |
13517 | }; | |
13518 | ||
13519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13522 | { | |
13523 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
13524 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13525 | if (arg2 == NULL) { | |
13526 | SWIG_null_ref("wxImageHistogram"); | |
13527 | } | |
13528 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
13529 | } |
13530 | { | |
13531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13532 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
13533 | ||
13534 | wxPyEndAllowThreads(__tstate); | |
13535 | if (PyErr_Occurred()) SWIG_fail; | |
13536 | } | |
093d3ff1 RD |
13537 | { |
13538 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
13539 | } | |
d55e5bfc RD |
13540 | return resultobj; |
13541 | fail: | |
13542 | return NULL; | |
13543 | } | |
13544 | ||
13545 | ||
c32bde28 | 13546 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13547 | PyObject *resultobj; |
13548 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
13549 | PyObject * obj0 = 0 ; | |
13550 | char *kwnames[] = { | |
13551 | (char *) "handler", NULL | |
13552 | }; | |
13553 | ||
13554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13555 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
13556 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13557 | { |
13558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13559 | wxImage::AddHandler(arg1); | |
13560 | ||
13561 | wxPyEndAllowThreads(__tstate); | |
13562 | if (PyErr_Occurred()) SWIG_fail; | |
13563 | } | |
13564 | Py_INCREF(Py_None); resultobj = Py_None; | |
13565 | return resultobj; | |
13566 | fail: | |
13567 | return NULL; | |
13568 | } | |
13569 | ||
13570 | ||
c32bde28 | 13571 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13572 | PyObject *resultobj; |
13573 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
13574 | PyObject * obj0 = 0 ; | |
13575 | char *kwnames[] = { | |
13576 | (char *) "handler", NULL | |
13577 | }; | |
13578 | ||
13579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
13581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13582 | { |
13583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13584 | wxImage::InsertHandler(arg1); | |
13585 | ||
13586 | wxPyEndAllowThreads(__tstate); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | } | |
13589 | Py_INCREF(Py_None); resultobj = Py_None; | |
13590 | return resultobj; | |
13591 | fail: | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
c32bde28 | 13596 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13597 | PyObject *resultobj; |
13598 | wxString *arg1 = 0 ; | |
13599 | bool result; | |
ae8162c8 | 13600 | bool temp1 = false ; |
d55e5bfc RD |
13601 | PyObject * obj0 = 0 ; |
13602 | char *kwnames[] = { | |
13603 | (char *) "name", NULL | |
13604 | }; | |
13605 | ||
13606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
13607 | { | |
13608 | arg1 = wxString_in_helper(obj0); | |
13609 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13610 | temp1 = true; |
d55e5bfc RD |
13611 | } |
13612 | { | |
13613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13614 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
13615 | ||
13616 | wxPyEndAllowThreads(__tstate); | |
13617 | if (PyErr_Occurred()) SWIG_fail; | |
13618 | } | |
13619 | { | |
13620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13621 | } | |
13622 | { | |
13623 | if (temp1) | |
13624 | delete arg1; | |
13625 | } | |
13626 | return resultobj; | |
13627 | fail: | |
13628 | { | |
13629 | if (temp1) | |
13630 | delete arg1; | |
13631 | } | |
13632 | return NULL; | |
13633 | } | |
13634 | ||
13635 | ||
c32bde28 | 13636 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13637 | PyObject *resultobj; |
13638 | wxString result; | |
13639 | char *kwnames[] = { | |
13640 | NULL | |
13641 | }; | |
13642 | ||
13643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
13644 | { | |
13645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13646 | result = wxImage::GetImageExtWildcard(); | |
13647 | ||
13648 | wxPyEndAllowThreads(__tstate); | |
13649 | if (PyErr_Occurred()) SWIG_fail; | |
13650 | } | |
13651 | { | |
13652 | #if wxUSE_UNICODE | |
13653 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13654 | #else | |
13655 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13656 | #endif | |
13657 | } | |
13658 | return resultobj; | |
13659 | fail: | |
13660 | return NULL; | |
13661 | } | |
13662 | ||
13663 | ||
c32bde28 | 13664 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13665 | PyObject *resultobj; |
13666 | wxImage *arg1 = (wxImage *) 0 ; | |
1fbf26be | 13667 | int arg2 = (int) -1 ; |
d55e5bfc RD |
13668 | wxBitmap result; |
13669 | PyObject * obj0 = 0 ; | |
1fbf26be | 13670 | PyObject * obj1 = 0 ; |
d55e5bfc | 13671 | char *kwnames[] = { |
1fbf26be | 13672 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
13673 | }; |
13674 | ||
1fbf26be | 13675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1fbf26be | 13678 | if (obj1) { |
093d3ff1 RD |
13679 | { |
13680 | arg2 = (int)(SWIG_As_int(obj1)); | |
13681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13682 | } | |
1fbf26be | 13683 | } |
d55e5bfc | 13684 | { |
0439c23b | 13685 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 13686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fbf26be | 13687 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d55e5bfc RD |
13688 | |
13689 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13690 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13691 | } |
13692 | { | |
13693 | wxBitmap * resultptr; | |
093d3ff1 | 13694 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
13695 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
13696 | } | |
13697 | return resultobj; | |
13698 | fail: | |
13699 | return NULL; | |
13700 | } | |
13701 | ||
13702 | ||
c32bde28 | 13703 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13704 | PyObject *resultobj; |
13705 | wxImage *arg1 = (wxImage *) 0 ; | |
13706 | unsigned char arg2 ; | |
13707 | unsigned char arg3 ; | |
13708 | unsigned char arg4 ; | |
13709 | wxBitmap result; | |
13710 | PyObject * obj0 = 0 ; | |
13711 | PyObject * obj1 = 0 ; | |
13712 | PyObject * obj2 = 0 ; | |
13713 | PyObject * obj3 = 0 ; | |
13714 | char *kwnames[] = { | |
13715 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
13716 | }; | |
13717 | ||
13718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
13719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13721 | { | |
13722 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
13723 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13724 | } | |
13725 | { | |
13726 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
13727 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13728 | } | |
13729 | { | |
13730 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
13731 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13732 | } | |
d55e5bfc | 13733 | { |
0439c23b | 13734 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13736 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13739 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13740 | } |
13741 | { | |
13742 | wxBitmap * resultptr; | |
093d3ff1 | 13743 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
13744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
13745 | } | |
13746 | return resultobj; | |
13747 | fail: | |
13748 | return NULL; | |
13749 | } | |
13750 | ||
13751 | ||
c32bde28 | 13752 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13753 | PyObject *obj; |
13754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13755 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
13756 | Py_INCREF(obj); | |
13757 | return Py_BuildValue((char *)""); | |
13758 | } | |
c32bde28 | 13759 | static int _wrap_NullImage_set(PyObject *) { |
d55e5bfc RD |
13760 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
13761 | return 1; | |
13762 | } | |
13763 | ||
13764 | ||
093d3ff1 | 13765 | static PyObject *_wrap_NullImage_get(void) { |
d55e5bfc RD |
13766 | PyObject *pyobj; |
13767 | ||
13768 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
13769 | return pyobj; | |
13770 | } | |
13771 | ||
13772 | ||
68350608 RD |
13773 | static int _wrap_IMAGE_OPTION_FILENAME_set(PyObject *) { |
13774 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_FILENAME is read-only."); | |
13775 | return 1; | |
13776 | } | |
13777 | ||
13778 | ||
13779 | static PyObject *_wrap_IMAGE_OPTION_FILENAME_get(void) { | |
13780 | PyObject *pyobj; | |
13781 | ||
13782 | { | |
13783 | #if wxUSE_UNICODE | |
13784 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len()); | |
13785 | #else | |
13786 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len()); | |
13787 | #endif | |
13788 | } | |
13789 | return pyobj; | |
13790 | } | |
13791 | ||
13792 | ||
c32bde28 | 13793 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d55e5bfc RD |
13794 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
13795 | return 1; | |
13796 | } | |
13797 | ||
13798 | ||
093d3ff1 | 13799 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get(void) { |
d55e5bfc RD |
13800 | PyObject *pyobj; |
13801 | ||
13802 | { | |
13803 | #if wxUSE_UNICODE | |
13804 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
13805 | #else | |
13806 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
13807 | #endif | |
13808 | } | |
13809 | return pyobj; | |
13810 | } | |
13811 | ||
13812 | ||
c32bde28 | 13813 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d55e5bfc RD |
13814 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
13815 | return 1; | |
13816 | } | |
13817 | ||
13818 | ||
093d3ff1 | 13819 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get(void) { |
d55e5bfc RD |
13820 | PyObject *pyobj; |
13821 | ||
13822 | { | |
13823 | #if wxUSE_UNICODE | |
13824 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
13825 | #else | |
13826 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
13827 | #endif | |
13828 | } | |
13829 | return pyobj; | |
13830 | } | |
13831 | ||
13832 | ||
c32bde28 | 13833 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d55e5bfc RD |
13834 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
13835 | return 1; | |
13836 | } | |
13837 | ||
13838 | ||
093d3ff1 | 13839 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get(void) { |
d55e5bfc RD |
13840 | PyObject *pyobj; |
13841 | ||
13842 | { | |
13843 | #if wxUSE_UNICODE | |
13844 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
13845 | #else | |
13846 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
13847 | #endif | |
13848 | } | |
13849 | return pyobj; | |
13850 | } | |
13851 | ||
13852 | ||
c32bde28 | 13853 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d55e5bfc RD |
13854 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
13855 | return 1; | |
13856 | } | |
13857 | ||
13858 | ||
093d3ff1 | 13859 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get(void) { |
d55e5bfc RD |
13860 | PyObject *pyobj; |
13861 | ||
13862 | { | |
13863 | #if wxUSE_UNICODE | |
13864 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
13865 | #else | |
13866 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
13867 | #endif | |
13868 | } | |
13869 | return pyobj; | |
13870 | } | |
13871 | ||
13872 | ||
68350608 RD |
13873 | static int _wrap_IMAGE_OPTION_RESOLUTIONX_set(PyObject *) { |
13874 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONX is read-only."); | |
13875 | return 1; | |
13876 | } | |
13877 | ||
13878 | ||
13879 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONX_get(void) { | |
13880 | PyObject *pyobj; | |
13881 | ||
13882 | { | |
13883 | #if wxUSE_UNICODE | |
13884 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len()); | |
13885 | #else | |
13886 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len()); | |
13887 | #endif | |
13888 | } | |
13889 | return pyobj; | |
13890 | } | |
13891 | ||
13892 | ||
13893 | static int _wrap_IMAGE_OPTION_RESOLUTIONY_set(PyObject *) { | |
13894 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONY is read-only."); | |
13895 | return 1; | |
13896 | } | |
13897 | ||
13898 | ||
13899 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONY_get(void) { | |
13900 | PyObject *pyobj; | |
13901 | ||
13902 | { | |
13903 | #if wxUSE_UNICODE | |
13904 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len()); | |
13905 | #else | |
13906 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len()); | |
13907 | #endif | |
13908 | } | |
13909 | return pyobj; | |
13910 | } | |
13911 | ||
13912 | ||
c32bde28 | 13913 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d55e5bfc RD |
13914 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
13915 | return 1; | |
13916 | } | |
13917 | ||
13918 | ||
093d3ff1 | 13919 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get(void) { |
d55e5bfc RD |
13920 | PyObject *pyobj; |
13921 | ||
13922 | { | |
13923 | #if wxUSE_UNICODE | |
13924 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
13925 | #else | |
13926 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
13927 | #endif | |
13928 | } | |
13929 | return pyobj; | |
13930 | } | |
13931 | ||
13932 | ||
24d7cbea RD |
13933 | static int _wrap_IMAGE_OPTION_QUALITY_set(PyObject *) { |
13934 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_QUALITY is read-only."); | |
13935 | return 1; | |
13936 | } | |
13937 | ||
13938 | ||
13939 | static PyObject *_wrap_IMAGE_OPTION_QUALITY_get(void) { | |
13940 | PyObject *pyobj; | |
13941 | ||
13942 | { | |
13943 | #if wxUSE_UNICODE | |
13944 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len()); | |
13945 | #else | |
13946 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len()); | |
13947 | #endif | |
13948 | } | |
13949 | return pyobj; | |
13950 | } | |
13951 | ||
13952 | ||
68350608 RD |
13953 | static int _wrap_IMAGE_OPTION_BITSPERSAMPLE_set(PyObject *) { |
13954 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BITSPERSAMPLE is read-only."); | |
13955 | return 1; | |
13956 | } | |
13957 | ||
13958 | ||
13959 | static PyObject *_wrap_IMAGE_OPTION_BITSPERSAMPLE_get(void) { | |
13960 | PyObject *pyobj; | |
13961 | ||
13962 | { | |
13963 | #if wxUSE_UNICODE | |
13964 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len()); | |
13965 | #else | |
13966 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len()); | |
13967 | #endif | |
13968 | } | |
13969 | return pyobj; | |
13970 | } | |
13971 | ||
13972 | ||
13973 | static int _wrap_IMAGE_OPTION_SAMPLESPERPIXEL_set(PyObject *) { | |
13974 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_SAMPLESPERPIXEL is read-only."); | |
13975 | return 1; | |
13976 | } | |
13977 | ||
13978 | ||
13979 | static PyObject *_wrap_IMAGE_OPTION_SAMPLESPERPIXEL_get(void) { | |
13980 | PyObject *pyobj; | |
13981 | ||
13982 | { | |
13983 | #if wxUSE_UNICODE | |
13984 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len()); | |
13985 | #else | |
13986 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len()); | |
13987 | #endif | |
13988 | } | |
13989 | return pyobj; | |
13990 | } | |
13991 | ||
13992 | ||
13993 | static int _wrap_IMAGE_OPTION_COMPRESSION_set(PyObject *) { | |
13994 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_COMPRESSION is read-only."); | |
13995 | return 1; | |
13996 | } | |
13997 | ||
13998 | ||
13999 | static PyObject *_wrap_IMAGE_OPTION_COMPRESSION_get(void) { | |
14000 | PyObject *pyobj; | |
14001 | ||
14002 | { | |
14003 | #if wxUSE_UNICODE | |
14004 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len()); | |
14005 | #else | |
14006 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len()); | |
14007 | #endif | |
14008 | } | |
14009 | return pyobj; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | static int _wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_set(PyObject *) { | |
14014 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_IMAGEDESCRIPTOR is read-only."); | |
14015 | return 1; | |
14016 | } | |
14017 | ||
14018 | ||
14019 | static PyObject *_wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_get(void) { | |
14020 | PyObject *pyobj; | |
14021 | ||
14022 | { | |
14023 | #if wxUSE_UNICODE | |
14024 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len()); | |
14025 | #else | |
14026 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len()); | |
14027 | #endif | |
14028 | } | |
14029 | return pyobj; | |
14030 | } | |
14031 | ||
14032 | ||
b9d6a5f3 RD |
14033 | static int _wrap_IMAGE_OPTION_PNG_FORMAT_set(PyObject *) { |
14034 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_PNG_FORMAT is read-only."); | |
14035 | return 1; | |
14036 | } | |
14037 | ||
14038 | ||
14039 | static PyObject *_wrap_IMAGE_OPTION_PNG_FORMAT_get(void) { | |
14040 | PyObject *pyobj; | |
14041 | ||
14042 | { | |
14043 | #if wxUSE_UNICODE | |
14044 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len()); | |
14045 | #else | |
14046 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len()); | |
14047 | #endif | |
14048 | } | |
14049 | return pyobj; | |
14050 | } | |
14051 | ||
14052 | ||
14053 | static int _wrap_IMAGE_OPTION_PNG_BITDEPTH_set(PyObject *) { | |
14054 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_PNG_BITDEPTH is read-only."); | |
14055 | return 1; | |
14056 | } | |
14057 | ||
14058 | ||
14059 | static PyObject *_wrap_IMAGE_OPTION_PNG_BITDEPTH_get(void) { | |
14060 | PyObject *pyobj; | |
14061 | ||
14062 | { | |
14063 | #if wxUSE_UNICODE | |
14064 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len()); | |
14065 | #else | |
14066 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len()); | |
14067 | #endif | |
14068 | } | |
14069 | return pyobj; | |
14070 | } | |
14071 | ||
14072 | ||
c32bde28 | 14073 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14074 | PyObject *resultobj; |
14075 | wxBMPHandler *result; | |
14076 | char *kwnames[] = { | |
14077 | NULL | |
14078 | }; | |
14079 | ||
14080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
14081 | { | |
14082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14083 | result = (wxBMPHandler *)new wxBMPHandler(); | |
14084 | ||
14085 | wxPyEndAllowThreads(__tstate); | |
14086 | if (PyErr_Occurred()) SWIG_fail; | |
14087 | } | |
14088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
14089 | return resultobj; | |
14090 | fail: | |
14091 | return NULL; | |
14092 | } | |
14093 | ||
14094 | ||
c32bde28 | 14095 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14096 | PyObject *obj; |
14097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14098 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
14099 | Py_INCREF(obj); | |
14100 | return Py_BuildValue((char *)""); | |
14101 | } | |
c32bde28 | 14102 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14103 | PyObject *resultobj; |
14104 | wxICOHandler *result; | |
14105 | char *kwnames[] = { | |
14106 | NULL | |
14107 | }; | |
14108 | ||
14109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
14110 | { | |
14111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14112 | result = (wxICOHandler *)new wxICOHandler(); | |
14113 | ||
14114 | wxPyEndAllowThreads(__tstate); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | } | |
14117 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
14118 | return resultobj; | |
14119 | fail: | |
14120 | return NULL; | |
14121 | } | |
14122 | ||
14123 | ||
c32bde28 | 14124 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14125 | PyObject *obj; |
14126 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14127 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
14128 | Py_INCREF(obj); | |
14129 | return Py_BuildValue((char *)""); | |
14130 | } | |
c32bde28 | 14131 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14132 | PyObject *resultobj; |
14133 | wxCURHandler *result; | |
14134 | char *kwnames[] = { | |
14135 | NULL | |
14136 | }; | |
14137 | ||
14138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
14139 | { | |
14140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14141 | result = (wxCURHandler *)new wxCURHandler(); | |
14142 | ||
14143 | wxPyEndAllowThreads(__tstate); | |
14144 | if (PyErr_Occurred()) SWIG_fail; | |
14145 | } | |
14146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
14147 | return resultobj; | |
14148 | fail: | |
14149 | return NULL; | |
14150 | } | |
14151 | ||
14152 | ||
c32bde28 | 14153 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14154 | PyObject *obj; |
14155 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14156 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
14157 | Py_INCREF(obj); | |
14158 | return Py_BuildValue((char *)""); | |
14159 | } | |
c32bde28 | 14160 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14161 | PyObject *resultobj; |
14162 | wxANIHandler *result; | |
14163 | char *kwnames[] = { | |
14164 | NULL | |
14165 | }; | |
14166 | ||
14167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
14168 | { | |
14169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14170 | result = (wxANIHandler *)new wxANIHandler(); | |
14171 | ||
14172 | wxPyEndAllowThreads(__tstate); | |
14173 | if (PyErr_Occurred()) SWIG_fail; | |
14174 | } | |
14175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
14176 | return resultobj; | |
14177 | fail: | |
14178 | return NULL; | |
14179 | } | |
14180 | ||
14181 | ||
c32bde28 | 14182 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14183 | PyObject *obj; |
14184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14185 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
14186 | Py_INCREF(obj); | |
14187 | return Py_BuildValue((char *)""); | |
14188 | } | |
c32bde28 | 14189 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14190 | PyObject *resultobj; |
14191 | wxPNGHandler *result; | |
14192 | char *kwnames[] = { | |
14193 | NULL | |
14194 | }; | |
14195 | ||
14196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
14197 | { | |
14198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14199 | result = (wxPNGHandler *)new wxPNGHandler(); | |
14200 | ||
14201 | wxPyEndAllowThreads(__tstate); | |
14202 | if (PyErr_Occurred()) SWIG_fail; | |
14203 | } | |
14204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
14205 | return resultobj; | |
14206 | fail: | |
14207 | return NULL; | |
14208 | } | |
14209 | ||
14210 | ||
c32bde28 | 14211 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14212 | PyObject *obj; |
14213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14214 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
14215 | Py_INCREF(obj); | |
14216 | return Py_BuildValue((char *)""); | |
14217 | } | |
c32bde28 | 14218 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14219 | PyObject *resultobj; |
14220 | wxGIFHandler *result; | |
14221 | char *kwnames[] = { | |
14222 | NULL | |
14223 | }; | |
14224 | ||
14225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
14226 | { | |
14227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14228 | result = (wxGIFHandler *)new wxGIFHandler(); | |
14229 | ||
14230 | wxPyEndAllowThreads(__tstate); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
14233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
14234 | return resultobj; | |
14235 | fail: | |
14236 | return NULL; | |
14237 | } | |
14238 | ||
14239 | ||
c32bde28 | 14240 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14241 | PyObject *obj; |
14242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14243 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
14244 | Py_INCREF(obj); | |
14245 | return Py_BuildValue((char *)""); | |
14246 | } | |
c32bde28 | 14247 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14248 | PyObject *resultobj; |
14249 | wxPCXHandler *result; | |
14250 | char *kwnames[] = { | |
14251 | NULL | |
14252 | }; | |
14253 | ||
14254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
14255 | { | |
14256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14257 | result = (wxPCXHandler *)new wxPCXHandler(); | |
14258 | ||
14259 | wxPyEndAllowThreads(__tstate); | |
14260 | if (PyErr_Occurred()) SWIG_fail; | |
14261 | } | |
14262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
14263 | return resultobj; | |
14264 | fail: | |
14265 | return NULL; | |
14266 | } | |
14267 | ||
14268 | ||
c32bde28 | 14269 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14270 | PyObject *obj; |
14271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14272 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
14273 | Py_INCREF(obj); | |
14274 | return Py_BuildValue((char *)""); | |
14275 | } | |
c32bde28 | 14276 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14277 | PyObject *resultobj; |
14278 | wxJPEGHandler *result; | |
14279 | char *kwnames[] = { | |
14280 | NULL | |
14281 | }; | |
14282 | ||
14283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
14284 | { | |
14285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14286 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
14287 | ||
14288 | wxPyEndAllowThreads(__tstate); | |
14289 | if (PyErr_Occurred()) SWIG_fail; | |
14290 | } | |
14291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
14292 | return resultobj; | |
14293 | fail: | |
14294 | return NULL; | |
14295 | } | |
14296 | ||
14297 | ||
c32bde28 | 14298 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14299 | PyObject *obj; |
14300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14301 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
14302 | Py_INCREF(obj); | |
14303 | return Py_BuildValue((char *)""); | |
14304 | } | |
c32bde28 | 14305 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14306 | PyObject *resultobj; |
14307 | wxPNMHandler *result; | |
14308 | char *kwnames[] = { | |
14309 | NULL | |
14310 | }; | |
14311 | ||
14312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
14313 | { | |
14314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14315 | result = (wxPNMHandler *)new wxPNMHandler(); | |
14316 | ||
14317 | wxPyEndAllowThreads(__tstate); | |
14318 | if (PyErr_Occurred()) SWIG_fail; | |
14319 | } | |
14320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
14321 | return resultobj; | |
14322 | fail: | |
14323 | return NULL; | |
14324 | } | |
14325 | ||
14326 | ||
c32bde28 | 14327 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14328 | PyObject *obj; |
14329 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14330 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
14331 | Py_INCREF(obj); | |
14332 | return Py_BuildValue((char *)""); | |
14333 | } | |
c32bde28 | 14334 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14335 | PyObject *resultobj; |
14336 | wxXPMHandler *result; | |
14337 | char *kwnames[] = { | |
14338 | NULL | |
14339 | }; | |
14340 | ||
14341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
14342 | { | |
14343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14344 | result = (wxXPMHandler *)new wxXPMHandler(); | |
14345 | ||
14346 | wxPyEndAllowThreads(__tstate); | |
14347 | if (PyErr_Occurred()) SWIG_fail; | |
14348 | } | |
14349 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
14350 | return resultobj; | |
14351 | fail: | |
14352 | return NULL; | |
14353 | } | |
14354 | ||
14355 | ||
c32bde28 | 14356 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14357 | PyObject *obj; |
14358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14359 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
14360 | Py_INCREF(obj); | |
14361 | return Py_BuildValue((char *)""); | |
14362 | } | |
c32bde28 | 14363 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14364 | PyObject *resultobj; |
14365 | wxTIFFHandler *result; | |
14366 | char *kwnames[] = { | |
14367 | NULL | |
14368 | }; | |
14369 | ||
14370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
14371 | { | |
14372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14373 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
14374 | ||
14375 | wxPyEndAllowThreads(__tstate); | |
14376 | if (PyErr_Occurred()) SWIG_fail; | |
14377 | } | |
14378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
14379 | return resultobj; | |
14380 | fail: | |
14381 | return NULL; | |
14382 | } | |
14383 | ||
14384 | ||
c32bde28 | 14385 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14386 | PyObject *obj; |
14387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14388 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
14389 | Py_INCREF(obj); | |
14390 | return Py_BuildValue((char *)""); | |
14391 | } | |
c32bde28 | 14392 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
14393 | PyObject *resultobj; |
14394 | wxImage *arg1 = 0 ; | |
14395 | wxImage *arg2 = 0 ; | |
14396 | int arg3 = (int) 236 ; | |
14397 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
14398 | bool result; | |
14399 | PyObject * obj0 = 0 ; | |
14400 | PyObject * obj1 = 0 ; | |
14401 | PyObject * obj2 = 0 ; | |
14402 | PyObject * obj3 = 0 ; | |
14403 | char *kwnames[] = { | |
14404 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
14408 | { |
14409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
14410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14411 | if (arg1 == NULL) { | |
14412 | SWIG_null_ref("wxImage"); | |
14413 | } | |
14414 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14415 | } | |
14416 | { | |
14417 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
14418 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14419 | if (arg2 == NULL) { | |
14420 | SWIG_null_ref("wxImage"); | |
14421 | } | |
14422 | if (SWIG_arg_fail(2)) SWIG_fail; | |
c0de73ae RD |
14423 | } |
14424 | if (obj2) { | |
093d3ff1 RD |
14425 | { |
14426 | arg3 = (int)(SWIG_As_int(obj2)); | |
14427 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14428 | } | |
c0de73ae RD |
14429 | } |
14430 | if (obj3) { | |
093d3ff1 RD |
14431 | { |
14432 | arg4 = (int)(SWIG_As_int(obj3)); | |
14433 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14434 | } | |
c0de73ae RD |
14435 | } |
14436 | { | |
14437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14438 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
14439 | ||
14440 | wxPyEndAllowThreads(__tstate); | |
14441 | if (PyErr_Occurred()) SWIG_fail; | |
14442 | } | |
14443 | { | |
14444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14445 | } | |
14446 | return resultobj; | |
14447 | fail: | |
14448 | return NULL; | |
14449 | } | |
14450 | ||
14451 | ||
c32bde28 | 14452 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
14453 | PyObject *obj; |
14454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14455 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
14456 | Py_INCREF(obj); | |
14457 | return Py_BuildValue((char *)""); | |
14458 | } | |
c32bde28 | 14459 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14460 | PyObject *resultobj; |
14461 | wxEvtHandler *result; | |
14462 | char *kwnames[] = { | |
14463 | NULL | |
14464 | }; | |
14465 | ||
14466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
14467 | { | |
14468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14469 | result = (wxEvtHandler *)new wxEvtHandler(); | |
14470 | ||
14471 | wxPyEndAllowThreads(__tstate); | |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | } | |
b0f7404b | 14474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
14475 | return resultobj; |
14476 | fail: | |
14477 | return NULL; | |
14478 | } | |
14479 | ||
14480 | ||
c32bde28 | 14481 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14482 | PyObject *resultobj; |
14483 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14484 | wxEvtHandler *result; | |
14485 | PyObject * obj0 = 0 ; | |
14486 | char *kwnames[] = { | |
14487 | (char *) "self", NULL | |
14488 | }; | |
14489 | ||
14490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14493 | { |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
14500 | { | |
412d302d | 14501 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14502 | } |
14503 | return resultobj; | |
14504 | fail: | |
14505 | return NULL; | |
14506 | } | |
14507 | ||
14508 | ||
c32bde28 | 14509 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14510 | PyObject *resultobj; |
14511 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14512 | wxEvtHandler *result; | |
14513 | PyObject * obj0 = 0 ; | |
14514 | char *kwnames[] = { | |
14515 | (char *) "self", NULL | |
14516 | }; | |
14517 | ||
14518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14521 | { |
14522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14523 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
14524 | ||
14525 | wxPyEndAllowThreads(__tstate); | |
14526 | if (PyErr_Occurred()) SWIG_fail; | |
14527 | } | |
14528 | { | |
412d302d | 14529 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14530 | } |
14531 | return resultobj; | |
14532 | fail: | |
14533 | return NULL; | |
14534 | } | |
14535 | ||
14536 | ||
c32bde28 | 14537 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14538 | PyObject *resultobj; |
14539 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14540 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
14541 | PyObject * obj0 = 0 ; | |
14542 | PyObject * obj1 = 0 ; | |
14543 | char *kwnames[] = { | |
14544 | (char *) "self",(char *) "handler", NULL | |
14545 | }; | |
14546 | ||
14547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14550 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
14551 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
14552 | { |
14553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14554 | (arg1)->SetNextHandler(arg2); | |
14555 | ||
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
14559 | Py_INCREF(Py_None); resultobj = Py_None; | |
14560 | return resultobj; | |
14561 | fail: | |
14562 | return NULL; | |
14563 | } | |
14564 | ||
14565 | ||
c32bde28 | 14566 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14567 | PyObject *resultobj; |
14568 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14569 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
14570 | PyObject * obj0 = 0 ; | |
14571 | PyObject * obj1 = 0 ; | |
14572 | char *kwnames[] = { | |
14573 | (char *) "self",(char *) "handler", NULL | |
14574 | }; | |
14575 | ||
14576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14579 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
14580 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
14581 | { |
14582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14583 | (arg1)->SetPreviousHandler(arg2); | |
14584 | ||
14585 | wxPyEndAllowThreads(__tstate); | |
14586 | if (PyErr_Occurred()) SWIG_fail; | |
14587 | } | |
14588 | Py_INCREF(Py_None); resultobj = Py_None; | |
14589 | return resultobj; | |
14590 | fail: | |
14591 | return NULL; | |
14592 | } | |
14593 | ||
14594 | ||
c32bde28 | 14595 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14596 | PyObject *resultobj; |
14597 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14598 | bool result; | |
14599 | PyObject * obj0 = 0 ; | |
14600 | char *kwnames[] = { | |
14601 | (char *) "self", NULL | |
14602 | }; | |
14603 | ||
14604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14607 | { |
14608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14609 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
14610 | ||
14611 | wxPyEndAllowThreads(__tstate); | |
14612 | if (PyErr_Occurred()) SWIG_fail; | |
14613 | } | |
14614 | { | |
14615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14616 | } | |
14617 | return resultobj; | |
14618 | fail: | |
14619 | return NULL; | |
14620 | } | |
14621 | ||
14622 | ||
c32bde28 | 14623 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14624 | PyObject *resultobj; |
14625 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14626 | bool arg2 ; | |
14627 | PyObject * obj0 = 0 ; | |
14628 | PyObject * obj1 = 0 ; | |
14629 | char *kwnames[] = { | |
14630 | (char *) "self",(char *) "enabled", NULL | |
14631 | }; | |
14632 | ||
14633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14636 | { | |
14637 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14638 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14639 | } | |
d55e5bfc RD |
14640 | { |
14641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14642 | (arg1)->SetEvtHandlerEnabled(arg2); | |
14643 | ||
14644 | wxPyEndAllowThreads(__tstate); | |
14645 | if (PyErr_Occurred()) SWIG_fail; | |
14646 | } | |
14647 | Py_INCREF(Py_None); resultobj = Py_None; | |
14648 | return resultobj; | |
14649 | fail: | |
14650 | return NULL; | |
14651 | } | |
14652 | ||
14653 | ||
c32bde28 | 14654 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14655 | PyObject *resultobj; |
14656 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14657 | wxEvent *arg2 = 0 ; | |
14658 | bool result; | |
14659 | PyObject * obj0 = 0 ; | |
14660 | PyObject * obj1 = 0 ; | |
14661 | char *kwnames[] = { | |
14662 | (char *) "self",(char *) "event", NULL | |
14663 | }; | |
14664 | ||
14665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14666 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14667 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14668 | { | |
14669 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
14670 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14671 | if (arg2 == NULL) { | |
14672 | SWIG_null_ref("wxEvent"); | |
14673 | } | |
14674 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
14675 | } |
14676 | { | |
14677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14678 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
14679 | ||
14680 | wxPyEndAllowThreads(__tstate); | |
14681 | if (PyErr_Occurred()) SWIG_fail; | |
14682 | } | |
14683 | { | |
14684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14685 | } | |
14686 | return resultobj; | |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
c32bde28 | 14692 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14693 | PyObject *resultobj; |
14694 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14695 | wxEvent *arg2 = 0 ; | |
14696 | PyObject * obj0 = 0 ; | |
14697 | PyObject * obj1 = 0 ; | |
14698 | char *kwnames[] = { | |
14699 | (char *) "self",(char *) "event", NULL | |
14700 | }; | |
14701 | ||
14702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14705 | { | |
14706 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
14707 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14708 | if (arg2 == NULL) { | |
14709 | SWIG_null_ref("wxEvent"); | |
14710 | } | |
14711 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
14712 | } |
14713 | { | |
14714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14715 | (arg1)->AddPendingEvent(*arg2); | |
14716 | ||
14717 | wxPyEndAllowThreads(__tstate); | |
14718 | if (PyErr_Occurred()) SWIG_fail; | |
14719 | } | |
14720 | Py_INCREF(Py_None); resultobj = Py_None; | |
14721 | return resultobj; | |
14722 | fail: | |
14723 | return NULL; | |
14724 | } | |
14725 | ||
14726 | ||
c32bde28 | 14727 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14728 | PyObject *resultobj; |
14729 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14730 | PyObject * obj0 = 0 ; | |
14731 | char *kwnames[] = { | |
14732 | (char *) "self", NULL | |
14733 | }; | |
14734 | ||
14735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14738 | { |
14739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14740 | (arg1)->ProcessPendingEvents(); | |
14741 | ||
14742 | wxPyEndAllowThreads(__tstate); | |
14743 | if (PyErr_Occurred()) SWIG_fail; | |
14744 | } | |
14745 | Py_INCREF(Py_None); resultobj = Py_None; | |
14746 | return resultobj; | |
14747 | fail: | |
14748 | return NULL; | |
14749 | } | |
14750 | ||
14751 | ||
c32bde28 | 14752 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14753 | PyObject *resultobj; |
14754 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14755 | int arg2 ; | |
14756 | int arg3 ; | |
14757 | int arg4 ; | |
14758 | PyObject *arg5 = (PyObject *) 0 ; | |
14759 | PyObject * obj0 = 0 ; | |
14760 | PyObject * obj1 = 0 ; | |
14761 | PyObject * obj2 = 0 ; | |
14762 | PyObject * obj3 = 0 ; | |
14763 | PyObject * obj4 = 0 ; | |
14764 | char *kwnames[] = { | |
14765 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
14766 | }; | |
14767 | ||
14768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
14769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14771 | { | |
14772 | arg2 = (int)(SWIG_As_int(obj1)); | |
14773 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14774 | } | |
14775 | { | |
14776 | arg3 = (int)(SWIG_As_int(obj2)); | |
14777 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14778 | } | |
14779 | { | |
14780 | arg4 = (int)(SWIG_As_int(obj3)); | |
14781 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14782 | } | |
d55e5bfc RD |
14783 | arg5 = obj4; |
14784 | { | |
14785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14786 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
14787 | ||
14788 | wxPyEndAllowThreads(__tstate); | |
14789 | if (PyErr_Occurred()) SWIG_fail; | |
14790 | } | |
14791 | Py_INCREF(Py_None); resultobj = Py_None; | |
14792 | return resultobj; | |
14793 | fail: | |
14794 | return NULL; | |
14795 | } | |
14796 | ||
14797 | ||
c32bde28 | 14798 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14799 | PyObject *resultobj; |
14800 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14801 | int arg2 ; | |
14802 | int arg3 = (int) -1 ; | |
14803 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
14804 | bool result; | |
14805 | PyObject * obj0 = 0 ; | |
14806 | PyObject * obj1 = 0 ; | |
14807 | PyObject * obj2 = 0 ; | |
14808 | PyObject * obj3 = 0 ; | |
14809 | char *kwnames[] = { | |
14810 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
14811 | }; | |
14812 | ||
14813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
14814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14816 | { | |
14817 | arg2 = (int)(SWIG_As_int(obj1)); | |
14818 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14819 | } | |
d55e5bfc | 14820 | if (obj2) { |
093d3ff1 RD |
14821 | { |
14822 | arg3 = (int)(SWIG_As_int(obj2)); | |
14823 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14824 | } | |
d55e5bfc RD |
14825 | } |
14826 | if (obj3) { | |
093d3ff1 RD |
14827 | { |
14828 | arg4 = (wxEventType)(SWIG_As_int(obj3)); | |
14829 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14830 | } | |
d55e5bfc RD |
14831 | } |
14832 | { | |
14833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14834 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
14835 | ||
14836 | wxPyEndAllowThreads(__tstate); | |
14837 | if (PyErr_Occurred()) SWIG_fail; | |
14838 | } | |
14839 | { | |
14840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14841 | } | |
14842 | return resultobj; | |
14843 | fail: | |
14844 | return NULL; | |
14845 | } | |
14846 | ||
14847 | ||
c32bde28 | 14848 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14849 | PyObject *resultobj; |
14850 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14851 | PyObject *arg2 = (PyObject *) 0 ; | |
093d3ff1 | 14852 | bool arg3 = (bool) true ; |
d55e5bfc RD |
14853 | PyObject * obj0 = 0 ; |
14854 | PyObject * obj1 = 0 ; | |
093d3ff1 | 14855 | PyObject * obj2 = 0 ; |
d55e5bfc | 14856 | char *kwnames[] = { |
093d3ff1 | 14857 | (char *) "self",(char *) "_self",(char *) "incref", NULL |
d55e5bfc RD |
14858 | }; |
14859 | ||
093d3ff1 RD |
14860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:EvtHandler__setOORInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
14862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14863 | arg2 = obj1; |
093d3ff1 RD |
14864 | if (obj2) { |
14865 | { | |
14866 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14867 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14868 | } | |
14869 | } | |
d55e5bfc RD |
14870 | { |
14871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14872 | wxEvtHandler__setOORInfo(arg1,arg2,arg3); |
d55e5bfc RD |
14873 | |
14874 | wxPyEndAllowThreads(__tstate); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | } | |
14877 | Py_INCREF(Py_None); resultobj = Py_None; | |
14878 | return resultobj; | |
14879 | fail: | |
14880 | return NULL; | |
14881 | } | |
14882 | ||
14883 | ||
c32bde28 | 14884 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14885 | PyObject *obj; |
14886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14887 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
14888 | Py_INCREF(obj); | |
14889 | return Py_BuildValue((char *)""); | |
14890 | } | |
c32bde28 | 14891 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14892 | PyObject *resultobj; |
14893 | wxEventType result; | |
14894 | char *kwnames[] = { | |
14895 | NULL | |
14896 | }; | |
14897 | ||
14898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | result = (wxEventType)wxNewEventType(); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
14904 | if (PyErr_Occurred()) SWIG_fail; | |
14905 | } | |
093d3ff1 RD |
14906 | { |
14907 | resultobj = SWIG_From_int((int)(result)); | |
14908 | } | |
d55e5bfc RD |
14909 | return resultobj; |
14910 | fail: | |
14911 | return NULL; | |
14912 | } | |
14913 | ||
14914 | ||
c32bde28 | 14915 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14916 | PyObject *resultobj; |
14917 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14918 | PyObject * obj0 = 0 ; | |
14919 | char *kwnames[] = { | |
14920 | (char *) "self", NULL | |
14921 | }; | |
14922 | ||
14923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14926 | { |
14927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14928 | delete arg1; | |
14929 | ||
14930 | wxPyEndAllowThreads(__tstate); | |
14931 | if (PyErr_Occurred()) SWIG_fail; | |
14932 | } | |
14933 | Py_INCREF(Py_None); resultobj = Py_None; | |
14934 | return resultobj; | |
14935 | fail: | |
14936 | return NULL; | |
14937 | } | |
14938 | ||
14939 | ||
c32bde28 | 14940 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14941 | PyObject *resultobj; |
14942 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14943 | wxEventType arg2 ; | |
14944 | PyObject * obj0 = 0 ; | |
14945 | PyObject * obj1 = 0 ; | |
14946 | char *kwnames[] = { | |
14947 | (char *) "self",(char *) "typ", NULL | |
14948 | }; | |
14949 | ||
14950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14953 | { | |
14954 | arg2 = (wxEventType)(SWIG_As_int(obj1)); | |
14955 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14956 | } | |
d55e5bfc RD |
14957 | { |
14958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14959 | (arg1)->SetEventType(arg2); | |
14960 | ||
14961 | wxPyEndAllowThreads(__tstate); | |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
14963 | } | |
14964 | Py_INCREF(Py_None); resultobj = Py_None; | |
14965 | return resultobj; | |
14966 | fail: | |
14967 | return NULL; | |
14968 | } | |
14969 | ||
14970 | ||
c32bde28 | 14971 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14972 | PyObject *resultobj; |
14973 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14974 | wxEventType result; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | char *kwnames[] = { | |
14977 | (char *) "self", NULL | |
14978 | }; | |
14979 | ||
14980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14983 | { |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
14986 | ||
14987 | wxPyEndAllowThreads(__tstate); | |
14988 | if (PyErr_Occurred()) SWIG_fail; | |
14989 | } | |
093d3ff1 RD |
14990 | { |
14991 | resultobj = SWIG_From_int((int)(result)); | |
14992 | } | |
d55e5bfc RD |
14993 | return resultobj; |
14994 | fail: | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
c32bde28 | 14999 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15000 | PyObject *resultobj; |
15001 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15002 | wxObject *result; | |
15003 | PyObject * obj0 = 0 ; | |
15004 | char *kwnames[] = { | |
15005 | (char *) "self", NULL | |
15006 | }; | |
15007 | ||
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15011 | { |
15012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15013 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
15014 | ||
15015 | wxPyEndAllowThreads(__tstate); | |
15016 | if (PyErr_Occurred()) SWIG_fail; | |
15017 | } | |
15018 | { | |
412d302d | 15019 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15020 | } |
15021 | return resultobj; | |
15022 | fail: | |
15023 | return NULL; | |
15024 | } | |
15025 | ||
15026 | ||
c32bde28 | 15027 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15028 | PyObject *resultobj; |
15029 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15030 | wxObject *arg2 = (wxObject *) 0 ; | |
15031 | PyObject * obj0 = 0 ; | |
15032 | PyObject * obj1 = 0 ; | |
15033 | char *kwnames[] = { | |
15034 | (char *) "self",(char *) "obj", NULL | |
15035 | }; | |
15036 | ||
15037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15038 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15039 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15040 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); | |
15041 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
15042 | { |
15043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15044 | (arg1)->SetEventObject(arg2); | |
15045 | ||
15046 | wxPyEndAllowThreads(__tstate); | |
15047 | if (PyErr_Occurred()) SWIG_fail; | |
15048 | } | |
15049 | Py_INCREF(Py_None); resultobj = Py_None; | |
15050 | return resultobj; | |
15051 | fail: | |
15052 | return NULL; | |
15053 | } | |
15054 | ||
15055 | ||
c32bde28 | 15056 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15057 | PyObject *resultobj; |
15058 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15059 | long result; | |
15060 | PyObject * obj0 = 0 ; | |
15061 | char *kwnames[] = { | |
15062 | (char *) "self", NULL | |
15063 | }; | |
15064 | ||
15065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15068 | { |
15069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15070 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
15071 | ||
15072 | wxPyEndAllowThreads(__tstate); | |
15073 | if (PyErr_Occurred()) SWIG_fail; | |
15074 | } | |
093d3ff1 RD |
15075 | { |
15076 | resultobj = SWIG_From_long((long)(result)); | |
15077 | } | |
d55e5bfc RD |
15078 | return resultobj; |
15079 | fail: | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
c32bde28 | 15084 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15085 | PyObject *resultobj; |
15086 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15087 | long arg2 = (long) 0 ; | |
15088 | PyObject * obj0 = 0 ; | |
15089 | PyObject * obj1 = 0 ; | |
15090 | char *kwnames[] = { | |
15091 | (char *) "self",(char *) "ts", NULL | |
15092 | }; | |
15093 | ||
15094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 15097 | if (obj1) { |
093d3ff1 RD |
15098 | { |
15099 | arg2 = (long)(SWIG_As_long(obj1)); | |
15100 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15101 | } | |
d55e5bfc RD |
15102 | } |
15103 | { | |
15104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15105 | (arg1)->SetTimestamp(arg2); | |
15106 | ||
15107 | wxPyEndAllowThreads(__tstate); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
15110 | Py_INCREF(Py_None); resultobj = Py_None; | |
15111 | return resultobj; | |
15112 | fail: | |
15113 | return NULL; | |
15114 | } | |
15115 | ||
15116 | ||
c32bde28 | 15117 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15118 | PyObject *resultobj; |
15119 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15120 | int result; | |
15121 | PyObject * obj0 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "self", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15129 | { |
15130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15131 | result = (int)((wxEvent const *)arg1)->GetId(); | |
15132 | ||
15133 | wxPyEndAllowThreads(__tstate); | |
15134 | if (PyErr_Occurred()) SWIG_fail; | |
15135 | } | |
093d3ff1 RD |
15136 | { |
15137 | resultobj = SWIG_From_int((int)(result)); | |
15138 | } | |
d55e5bfc RD |
15139 | return resultobj; |
15140 | fail: | |
15141 | return NULL; | |
15142 | } | |
15143 | ||
15144 | ||
c32bde28 | 15145 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15146 | PyObject *resultobj; |
15147 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15148 | int arg2 ; | |
15149 | PyObject * obj0 = 0 ; | |
15150 | PyObject * obj1 = 0 ; | |
15151 | char *kwnames[] = { | |
15152 | (char *) "self",(char *) "Id", NULL | |
15153 | }; | |
15154 | ||
15155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15156 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15157 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15158 | { | |
15159 | arg2 = (int)(SWIG_As_int(obj1)); | |
15160 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15161 | } | |
d55e5bfc RD |
15162 | { |
15163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15164 | (arg1)->SetId(arg2); | |
15165 | ||
15166 | wxPyEndAllowThreads(__tstate); | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | } | |
15169 | Py_INCREF(Py_None); resultobj = Py_None; | |
15170 | return resultobj; | |
15171 | fail: | |
15172 | return NULL; | |
15173 | } | |
15174 | ||
15175 | ||
c32bde28 | 15176 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15177 | PyObject *resultobj; |
15178 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15179 | bool result; | |
15180 | PyObject * obj0 = 0 ; | |
15181 | char *kwnames[] = { | |
15182 | (char *) "self", NULL | |
15183 | }; | |
15184 | ||
15185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15188 | { |
15189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15190 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
15191 | ||
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | { | |
15196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15197 | } | |
15198 | return resultobj; | |
15199 | fail: | |
15200 | return NULL; | |
15201 | } | |
15202 | ||
15203 | ||
c32bde28 | 15204 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15205 | PyObject *resultobj; |
15206 | wxEvent *arg1 = (wxEvent *) 0 ; | |
ae8162c8 | 15207 | bool arg2 = (bool) true ; |
d55e5bfc RD |
15208 | PyObject * obj0 = 0 ; |
15209 | PyObject * obj1 = 0 ; | |
15210 | char *kwnames[] = { | |
15211 | (char *) "self",(char *) "skip", NULL | |
15212 | }; | |
15213 | ||
15214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 15217 | if (obj1) { |
093d3ff1 RD |
15218 | { |
15219 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
15220 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15221 | } | |
d55e5bfc RD |
15222 | } |
15223 | { | |
15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15225 | (arg1)->Skip(arg2); | |
15226 | ||
15227 | wxPyEndAllowThreads(__tstate); | |
15228 | if (PyErr_Occurred()) SWIG_fail; | |
15229 | } | |
15230 | Py_INCREF(Py_None); resultobj = Py_None; | |
15231 | return resultobj; | |
15232 | fail: | |
15233 | return NULL; | |
15234 | } | |
15235 | ||
15236 | ||
c32bde28 | 15237 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15238 | PyObject *resultobj; |
15239 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15240 | bool result; | |
15241 | PyObject * obj0 = 0 ; | |
15242 | char *kwnames[] = { | |
15243 | (char *) "self", NULL | |
15244 | }; | |
15245 | ||
15246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15249 | { |
15250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15251 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
15252 | ||
15253 | wxPyEndAllowThreads(__tstate); | |
15254 | if (PyErr_Occurred()) SWIG_fail; | |
15255 | } | |
15256 | { | |
15257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15258 | } | |
15259 | return resultobj; | |
15260 | fail: | |
15261 | return NULL; | |
15262 | } | |
15263 | ||
15264 | ||
c32bde28 | 15265 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15266 | PyObject *resultobj; |
15267 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15268 | bool result; | |
15269 | PyObject * obj0 = 0 ; | |
15270 | char *kwnames[] = { | |
15271 | (char *) "self", NULL | |
15272 | }; | |
15273 | ||
15274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15275 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15276 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15277 | { |
15278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15279 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
15280 | ||
15281 | wxPyEndAllowThreads(__tstate); | |
15282 | if (PyErr_Occurred()) SWIG_fail; | |
15283 | } | |
15284 | { | |
15285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15286 | } | |
15287 | return resultobj; | |
15288 | fail: | |
15289 | return NULL; | |
15290 | } | |
15291 | ||
15292 | ||
c32bde28 | 15293 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15294 | PyObject *resultobj; |
15295 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15296 | int result; | |
15297 | PyObject * obj0 = 0 ; | |
15298 | char *kwnames[] = { | |
15299 | (char *) "self", NULL | |
15300 | }; | |
15301 | ||
15302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15305 | { |
15306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15307 | result = (int)(arg1)->StopPropagation(); | |
15308 | ||
15309 | wxPyEndAllowThreads(__tstate); | |
15310 | if (PyErr_Occurred()) SWIG_fail; | |
15311 | } | |
093d3ff1 RD |
15312 | { |
15313 | resultobj = SWIG_From_int((int)(result)); | |
15314 | } | |
d55e5bfc RD |
15315 | return resultobj; |
15316 | fail: | |
15317 | return NULL; | |
15318 | } | |
15319 | ||
15320 | ||
c32bde28 | 15321 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15322 | PyObject *resultobj; |
15323 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15324 | int arg2 ; | |
15325 | PyObject * obj0 = 0 ; | |
15326 | PyObject * obj1 = 0 ; | |
15327 | char *kwnames[] = { | |
15328 | (char *) "self",(char *) "propagationLevel", NULL | |
15329 | }; | |
15330 | ||
15331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15332 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15333 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15334 | { | |
15335 | arg2 = (int)(SWIG_As_int(obj1)); | |
15336 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15337 | } | |
d55e5bfc RD |
15338 | { |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | (arg1)->ResumePropagation(arg2); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | Py_INCREF(Py_None); resultobj = Py_None; | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
c32bde28 | 15352 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15353 | PyObject *resultobj; |
15354 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15355 | wxEvent *result; | |
15356 | PyObject * obj0 = 0 ; | |
15357 | char *kwnames[] = { | |
15358 | (char *) "self", NULL | |
15359 | }; | |
15360 | ||
15361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15364 | { |
15365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15366 | result = (wxEvent *)(arg1)->Clone(); | |
15367 | ||
15368 | wxPyEndAllowThreads(__tstate); | |
15369 | if (PyErr_Occurred()) SWIG_fail; | |
15370 | } | |
15371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
15372 | return resultobj; | |
15373 | fail: | |
15374 | return NULL; | |
15375 | } | |
15376 | ||
15377 | ||
c32bde28 | 15378 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15379 | PyObject *obj; |
15380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15381 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
15382 | Py_INCREF(obj); | |
15383 | return Py_BuildValue((char *)""); | |
15384 | } | |
c32bde28 | 15385 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15386 | PyObject *resultobj; |
15387 | wxEvent *arg1 = 0 ; | |
15388 | wxPropagationDisabler *result; | |
15389 | PyObject * obj0 = 0 ; | |
15390 | char *kwnames[] = { | |
15391 | (char *) "event", NULL | |
15392 | }; | |
15393 | ||
15394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15395 | { |
15396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
15397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15398 | if (arg1 == NULL) { | |
15399 | SWIG_null_ref("wxEvent"); | |
15400 | } | |
15401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15402 | } |
15403 | { | |
15404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15405 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
15406 | ||
15407 | wxPyEndAllowThreads(__tstate); | |
15408 | if (PyErr_Occurred()) SWIG_fail; | |
15409 | } | |
15410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
15411 | return resultobj; | |
15412 | fail: | |
15413 | return NULL; | |
15414 | } | |
15415 | ||
15416 | ||
c32bde28 | 15417 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15418 | PyObject *resultobj; |
15419 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
15420 | PyObject * obj0 = 0 ; | |
15421 | char *kwnames[] = { | |
15422 | (char *) "self", NULL | |
15423 | }; | |
15424 | ||
15425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_EXCEPTION | 0); |
15427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15428 | { |
15429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15430 | delete arg1; | |
15431 | ||
15432 | wxPyEndAllowThreads(__tstate); | |
15433 | if (PyErr_Occurred()) SWIG_fail; | |
15434 | } | |
15435 | Py_INCREF(Py_None); resultobj = Py_None; | |
15436 | return resultobj; | |
15437 | fail: | |
15438 | return NULL; | |
15439 | } | |
15440 | ||
15441 | ||
c32bde28 | 15442 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15443 | PyObject *obj; |
15444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15445 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
15446 | Py_INCREF(obj); | |
15447 | return Py_BuildValue((char *)""); | |
15448 | } | |
c32bde28 | 15449 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15450 | PyObject *resultobj; |
15451 | wxEvent *arg1 = 0 ; | |
15452 | wxPropagateOnce *result; | |
15453 | PyObject * obj0 = 0 ; | |
15454 | char *kwnames[] = { | |
15455 | (char *) "event", NULL | |
15456 | }; | |
15457 | ||
15458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15459 | { |
15460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
15461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15462 | if (arg1 == NULL) { | |
15463 | SWIG_null_ref("wxEvent"); | |
15464 | } | |
15465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15466 | } |
15467 | { | |
15468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15469 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
15470 | ||
15471 | wxPyEndAllowThreads(__tstate); | |
15472 | if (PyErr_Occurred()) SWIG_fail; | |
15473 | } | |
15474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
15475 | return resultobj; | |
15476 | fail: | |
15477 | return NULL; | |
15478 | } | |
15479 | ||
15480 | ||
c32bde28 | 15481 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15482 | PyObject *resultobj; |
15483 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
15484 | PyObject * obj0 = 0 ; | |
15485 | char *kwnames[] = { | |
15486 | (char *) "self", NULL | |
15487 | }; | |
15488 | ||
15489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15490 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_EXCEPTION | 0); |
15491 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15492 | { |
15493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15494 | delete arg1; | |
15495 | ||
15496 | wxPyEndAllowThreads(__tstate); | |
15497 | if (PyErr_Occurred()) SWIG_fail; | |
15498 | } | |
15499 | Py_INCREF(Py_None); resultobj = Py_None; | |
15500 | return resultobj; | |
15501 | fail: | |
15502 | return NULL; | |
15503 | } | |
15504 | ||
15505 | ||
c32bde28 | 15506 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15507 | PyObject *obj; |
15508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15509 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
15510 | Py_INCREF(obj); | |
15511 | return Py_BuildValue((char *)""); | |
15512 | } | |
c32bde28 | 15513 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15514 | PyObject *resultobj; |
15515 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15516 | int arg2 = (int) 0 ; | |
15517 | wxCommandEvent *result; | |
15518 | PyObject * obj0 = 0 ; | |
15519 | PyObject * obj1 = 0 ; | |
15520 | char *kwnames[] = { | |
15521 | (char *) "commandType",(char *) "winid", NULL | |
15522 | }; | |
15523 | ||
15524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
15525 | if (obj0) { | |
093d3ff1 RD |
15526 | { |
15527 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15529 | } | |
d55e5bfc RD |
15530 | } |
15531 | if (obj1) { | |
093d3ff1 RD |
15532 | { |
15533 | arg2 = (int)(SWIG_As_int(obj1)); | |
15534 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15535 | } | |
d55e5bfc RD |
15536 | } |
15537 | { | |
15538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15539 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
15540 | ||
15541 | wxPyEndAllowThreads(__tstate); | |
15542 | if (PyErr_Occurred()) SWIG_fail; | |
15543 | } | |
15544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
15545 | return resultobj; | |
15546 | fail: | |
15547 | return NULL; | |
15548 | } | |
15549 | ||
15550 | ||
c32bde28 | 15551 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15552 | PyObject *resultobj; |
15553 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15554 | int result; | |
15555 | PyObject * obj0 = 0 ; | |
15556 | char *kwnames[] = { | |
15557 | (char *) "self", NULL | |
15558 | }; | |
15559 | ||
15560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15563 | { |
15564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15565 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
15566 | ||
15567 | wxPyEndAllowThreads(__tstate); | |
15568 | if (PyErr_Occurred()) SWIG_fail; | |
15569 | } | |
093d3ff1 RD |
15570 | { |
15571 | resultobj = SWIG_From_int((int)(result)); | |
15572 | } | |
d55e5bfc RD |
15573 | return resultobj; |
15574 | fail: | |
15575 | return NULL; | |
15576 | } | |
15577 | ||
15578 | ||
c32bde28 | 15579 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15580 | PyObject *resultobj; |
15581 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15582 | wxString *arg2 = 0 ; | |
ae8162c8 | 15583 | bool temp2 = false ; |
d55e5bfc RD |
15584 | PyObject * obj0 = 0 ; |
15585 | PyObject * obj1 = 0 ; | |
15586 | char *kwnames[] = { | |
15587 | (char *) "self",(char *) "s", NULL | |
15588 | }; | |
15589 | ||
15590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15593 | { |
15594 | arg2 = wxString_in_helper(obj1); | |
15595 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15596 | temp2 = true; |
d55e5bfc RD |
15597 | } |
15598 | { | |
15599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15600 | (arg1)->SetString((wxString const &)*arg2); | |
15601 | ||
15602 | wxPyEndAllowThreads(__tstate); | |
15603 | if (PyErr_Occurred()) SWIG_fail; | |
15604 | } | |
15605 | Py_INCREF(Py_None); resultobj = Py_None; | |
15606 | { | |
15607 | if (temp2) | |
15608 | delete arg2; | |
15609 | } | |
15610 | return resultobj; | |
15611 | fail: | |
15612 | { | |
15613 | if (temp2) | |
15614 | delete arg2; | |
15615 | } | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
c32bde28 | 15620 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15621 | PyObject *resultobj; |
15622 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15623 | wxString result; | |
15624 | PyObject * obj0 = 0 ; | |
15625 | char *kwnames[] = { | |
15626 | (char *) "self", NULL | |
15627 | }; | |
15628 | ||
15629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15632 | { |
15633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15634 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
15635 | ||
15636 | wxPyEndAllowThreads(__tstate); | |
15637 | if (PyErr_Occurred()) SWIG_fail; | |
15638 | } | |
15639 | { | |
15640 | #if wxUSE_UNICODE | |
15641 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15642 | #else | |
15643 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15644 | #endif | |
15645 | } | |
15646 | return resultobj; | |
15647 | fail: | |
15648 | return NULL; | |
15649 | } | |
15650 | ||
15651 | ||
c32bde28 | 15652 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15653 | PyObject *resultobj; |
15654 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15655 | bool result; | |
15656 | PyObject * obj0 = 0 ; | |
15657 | char *kwnames[] = { | |
15658 | (char *) "self", NULL | |
15659 | }; | |
15660 | ||
15661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15664 | { |
15665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15666 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
15667 | ||
15668 | wxPyEndAllowThreads(__tstate); | |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
15670 | } | |
15671 | { | |
15672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15673 | } | |
15674 | return resultobj; | |
15675 | fail: | |
15676 | return NULL; | |
15677 | } | |
15678 | ||
15679 | ||
c32bde28 | 15680 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15681 | PyObject *resultobj; |
15682 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15683 | bool result; | |
15684 | PyObject * obj0 = 0 ; | |
15685 | char *kwnames[] = { | |
15686 | (char *) "self", NULL | |
15687 | }; | |
15688 | ||
15689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15692 | { |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15694 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
15695 | ||
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | { | |
15700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15701 | } | |
15702 | return resultobj; | |
15703 | fail: | |
15704 | return NULL; | |
15705 | } | |
15706 | ||
15707 | ||
c32bde28 | 15708 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15709 | PyObject *resultobj; |
15710 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15711 | long arg2 ; | |
15712 | PyObject * obj0 = 0 ; | |
15713 | PyObject * obj1 = 0 ; | |
15714 | char *kwnames[] = { | |
15715 | (char *) "self",(char *) "extraLong", NULL | |
15716 | }; | |
15717 | ||
15718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15721 | { | |
15722 | arg2 = (long)(SWIG_As_long(obj1)); | |
15723 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15724 | } | |
d55e5bfc RD |
15725 | { |
15726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15727 | (arg1)->SetExtraLong(arg2); | |
15728 | ||
15729 | wxPyEndAllowThreads(__tstate); | |
15730 | if (PyErr_Occurred()) SWIG_fail; | |
15731 | } | |
15732 | Py_INCREF(Py_None); resultobj = Py_None; | |
15733 | return resultobj; | |
15734 | fail: | |
15735 | return NULL; | |
15736 | } | |
15737 | ||
15738 | ||
c32bde28 | 15739 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15740 | PyObject *resultobj; |
15741 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15742 | long result; | |
15743 | PyObject * obj0 = 0 ; | |
15744 | char *kwnames[] = { | |
15745 | (char *) "self", NULL | |
15746 | }; | |
15747 | ||
15748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15751 | { |
15752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15753 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
15754 | ||
15755 | wxPyEndAllowThreads(__tstate); | |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
15757 | } | |
093d3ff1 RD |
15758 | { |
15759 | resultobj = SWIG_From_long((long)(result)); | |
15760 | } | |
d55e5bfc RD |
15761 | return resultobj; |
15762 | fail: | |
15763 | return NULL; | |
15764 | } | |
15765 | ||
15766 | ||
c32bde28 | 15767 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15768 | PyObject *resultobj; |
15769 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15770 | int arg2 ; | |
15771 | PyObject * obj0 = 0 ; | |
15772 | PyObject * obj1 = 0 ; | |
15773 | char *kwnames[] = { | |
15774 | (char *) "self",(char *) "i", NULL | |
15775 | }; | |
15776 | ||
15777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15780 | { | |
15781 | arg2 = (int)(SWIG_As_int(obj1)); | |
15782 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15783 | } | |
d55e5bfc RD |
15784 | { |
15785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15786 | (arg1)->SetInt(arg2); | |
15787 | ||
15788 | wxPyEndAllowThreads(__tstate); | |
15789 | if (PyErr_Occurred()) SWIG_fail; | |
15790 | } | |
15791 | Py_INCREF(Py_None); resultobj = Py_None; | |
15792 | return resultobj; | |
15793 | fail: | |
15794 | return NULL; | |
15795 | } | |
15796 | ||
15797 | ||
c32bde28 | 15798 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15799 | PyObject *resultobj; |
15800 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15801 | long result; | |
15802 | PyObject * obj0 = 0 ; | |
15803 | char *kwnames[] = { | |
15804 | (char *) "self", NULL | |
15805 | }; | |
15806 | ||
15807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15810 | { |
15811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15812 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
15813 | ||
15814 | wxPyEndAllowThreads(__tstate); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | } | |
093d3ff1 RD |
15817 | { |
15818 | resultobj = SWIG_From_long((long)(result)); | |
15819 | } | |
d55e5bfc RD |
15820 | return resultobj; |
15821 | fail: | |
15822 | return NULL; | |
15823 | } | |
15824 | ||
15825 | ||
c32bde28 | 15826 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15827 | PyObject *resultobj; |
15828 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15829 | wxEvent *result; | |
15830 | PyObject * obj0 = 0 ; | |
15831 | char *kwnames[] = { | |
15832 | (char *) "self", NULL | |
15833 | }; | |
15834 | ||
15835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15838 | { |
15839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15840 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
15841 | ||
15842 | wxPyEndAllowThreads(__tstate); | |
15843 | if (PyErr_Occurred()) SWIG_fail; | |
15844 | } | |
15845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
15846 | return resultobj; | |
15847 | fail: | |
15848 | return NULL; | |
15849 | } | |
15850 | ||
15851 | ||
c32bde28 | 15852 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15853 | PyObject *obj; |
15854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15855 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
15856 | Py_INCREF(obj); | |
15857 | return Py_BuildValue((char *)""); | |
15858 | } | |
c32bde28 | 15859 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15860 | PyObject *resultobj; |
15861 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15862 | int arg2 = (int) 0 ; | |
15863 | wxNotifyEvent *result; | |
15864 | PyObject * obj0 = 0 ; | |
15865 | PyObject * obj1 = 0 ; | |
15866 | char *kwnames[] = { | |
15867 | (char *) "commandType",(char *) "winid", NULL | |
15868 | }; | |
15869 | ||
15870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15871 | if (obj0) { | |
093d3ff1 RD |
15872 | { |
15873 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15875 | } | |
d55e5bfc RD |
15876 | } |
15877 | if (obj1) { | |
093d3ff1 RD |
15878 | { |
15879 | arg2 = (int)(SWIG_As_int(obj1)); | |
15880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15881 | } | |
d55e5bfc RD |
15882 | } |
15883 | { | |
15884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15885 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
15886 | ||
15887 | wxPyEndAllowThreads(__tstate); | |
15888 | if (PyErr_Occurred()) SWIG_fail; | |
15889 | } | |
15890 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
15891 | return resultobj; | |
15892 | fail: | |
15893 | return NULL; | |
15894 | } | |
15895 | ||
15896 | ||
c32bde28 | 15897 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15898 | PyObject *resultobj; |
15899 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15900 | PyObject * obj0 = 0 ; | |
15901 | char *kwnames[] = { | |
15902 | (char *) "self", NULL | |
15903 | }; | |
15904 | ||
15905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15908 | { |
15909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15910 | (arg1)->Veto(); | |
15911 | ||
15912 | wxPyEndAllowThreads(__tstate); | |
15913 | if (PyErr_Occurred()) SWIG_fail; | |
15914 | } | |
15915 | Py_INCREF(Py_None); resultobj = Py_None; | |
15916 | return resultobj; | |
15917 | fail: | |
15918 | return NULL; | |
15919 | } | |
15920 | ||
15921 | ||
c32bde28 | 15922 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15923 | PyObject *resultobj; |
15924 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15925 | PyObject * obj0 = 0 ; | |
15926 | char *kwnames[] = { | |
15927 | (char *) "self", NULL | |
15928 | }; | |
15929 | ||
15930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15933 | { |
15934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15935 | (arg1)->Allow(); | |
15936 | ||
15937 | wxPyEndAllowThreads(__tstate); | |
15938 | if (PyErr_Occurred()) SWIG_fail; | |
15939 | } | |
15940 | Py_INCREF(Py_None); resultobj = Py_None; | |
15941 | return resultobj; | |
15942 | fail: | |
15943 | return NULL; | |
15944 | } | |
15945 | ||
15946 | ||
c32bde28 | 15947 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15948 | PyObject *resultobj; |
15949 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15950 | bool result; | |
15951 | PyObject * obj0 = 0 ; | |
15952 | char *kwnames[] = { | |
15953 | (char *) "self", NULL | |
15954 | }; | |
15955 | ||
15956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15959 | { |
15960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15961 | result = (bool)(arg1)->IsAllowed(); | |
15962 | ||
15963 | wxPyEndAllowThreads(__tstate); | |
15964 | if (PyErr_Occurred()) SWIG_fail; | |
15965 | } | |
15966 | { | |
15967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15968 | } | |
15969 | return resultobj; | |
15970 | fail: | |
15971 | return NULL; | |
15972 | } | |
15973 | ||
15974 | ||
c32bde28 | 15975 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15976 | PyObject *obj; |
15977 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15978 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
15979 | Py_INCREF(obj); | |
15980 | return Py_BuildValue((char *)""); | |
15981 | } | |
c32bde28 | 15982 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15983 | PyObject *resultobj; |
15984 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15985 | int arg2 = (int) 0 ; | |
15986 | int arg3 = (int) 0 ; | |
15987 | int arg4 = (int) 0 ; | |
15988 | wxScrollEvent *result; | |
15989 | PyObject * obj0 = 0 ; | |
15990 | PyObject * obj1 = 0 ; | |
15991 | PyObject * obj2 = 0 ; | |
15992 | PyObject * obj3 = 0 ; | |
15993 | char *kwnames[] = { | |
15994 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
15995 | }; | |
15996 | ||
15997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15998 | if (obj0) { | |
093d3ff1 RD |
15999 | { |
16000 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16002 | } | |
d55e5bfc RD |
16003 | } |
16004 | if (obj1) { | |
093d3ff1 RD |
16005 | { |
16006 | arg2 = (int)(SWIG_As_int(obj1)); | |
16007 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16008 | } | |
d55e5bfc RD |
16009 | } |
16010 | if (obj2) { | |
093d3ff1 RD |
16011 | { |
16012 | arg3 = (int)(SWIG_As_int(obj2)); | |
16013 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16014 | } | |
d55e5bfc RD |
16015 | } |
16016 | if (obj3) { | |
093d3ff1 RD |
16017 | { |
16018 | arg4 = (int)(SWIG_As_int(obj3)); | |
16019 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16020 | } | |
d55e5bfc RD |
16021 | } |
16022 | { | |
16023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16024 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
16025 | ||
16026 | wxPyEndAllowThreads(__tstate); | |
16027 | if (PyErr_Occurred()) SWIG_fail; | |
16028 | } | |
16029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
16030 | return resultobj; | |
16031 | fail: | |
16032 | return NULL; | |
16033 | } | |
16034 | ||
16035 | ||
c32bde28 | 16036 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16037 | PyObject *resultobj; |
16038 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
16039 | int result; | |
16040 | PyObject * obj0 = 0 ; | |
16041 | char *kwnames[] = { | |
16042 | (char *) "self", NULL | |
16043 | }; | |
16044 | ||
16045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
16047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16048 | { |
16049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16050 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
16051 | ||
16052 | wxPyEndAllowThreads(__tstate); | |
16053 | if (PyErr_Occurred()) SWIG_fail; | |
16054 | } | |
093d3ff1 RD |
16055 | { |
16056 | resultobj = SWIG_From_int((int)(result)); | |
16057 | } | |
d55e5bfc RD |
16058 | return resultobj; |
16059 | fail: | |
16060 | return NULL; | |
16061 | } | |
16062 | ||
16063 | ||
c32bde28 | 16064 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16065 | PyObject *resultobj; |
16066 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
16067 | int result; | |
16068 | PyObject * obj0 = 0 ; | |
16069 | char *kwnames[] = { | |
16070 | (char *) "self", NULL | |
16071 | }; | |
16072 | ||
16073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
16075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16076 | { |
16077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16078 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
16079 | ||
16080 | wxPyEndAllowThreads(__tstate); | |
16081 | if (PyErr_Occurred()) SWIG_fail; | |
16082 | } | |
093d3ff1 RD |
16083 | { |
16084 | resultobj = SWIG_From_int((int)(result)); | |
16085 | } | |
d55e5bfc RD |
16086 | return resultobj; |
16087 | fail: | |
16088 | return NULL; | |
16089 | } | |
16090 | ||
16091 | ||
c32bde28 | 16092 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16093 | PyObject *resultobj; |
16094 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
16095 | int arg2 ; | |
16096 | PyObject * obj0 = 0 ; | |
16097 | PyObject * obj1 = 0 ; | |
16098 | char *kwnames[] = { | |
16099 | (char *) "self",(char *) "orient", NULL | |
16100 | }; | |
16101 | ||
16102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
16104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16105 | { | |
16106 | arg2 = (int)(SWIG_As_int(obj1)); | |
16107 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16108 | } | |
d55e5bfc RD |
16109 | { |
16110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16111 | (arg1)->SetOrientation(arg2); | |
16112 | ||
16113 | wxPyEndAllowThreads(__tstate); | |
16114 | if (PyErr_Occurred()) SWIG_fail; | |
16115 | } | |
16116 | Py_INCREF(Py_None); resultobj = Py_None; | |
16117 | return resultobj; | |
16118 | fail: | |
16119 | return NULL; | |
16120 | } | |
16121 | ||
16122 | ||
c32bde28 | 16123 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16124 | PyObject *resultobj; |
16125 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
16126 | int arg2 ; | |
16127 | PyObject * obj0 = 0 ; | |
16128 | PyObject * obj1 = 0 ; | |
16129 | char *kwnames[] = { | |
16130 | (char *) "self",(char *) "pos", NULL | |
16131 | }; | |
16132 | ||
16133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
16135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16136 | { | |
16137 | arg2 = (int)(SWIG_As_int(obj1)); | |
16138 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16139 | } | |
d55e5bfc RD |
16140 | { |
16141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16142 | (arg1)->SetPosition(arg2); | |
16143 | ||
16144 | wxPyEndAllowThreads(__tstate); | |
16145 | if (PyErr_Occurred()) SWIG_fail; | |
16146 | } | |
16147 | Py_INCREF(Py_None); resultobj = Py_None; | |
16148 | return resultobj; | |
16149 | fail: | |
16150 | return NULL; | |
16151 | } | |
16152 | ||
16153 | ||
c32bde28 | 16154 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16155 | PyObject *obj; |
16156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16157 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
16158 | Py_INCREF(obj); | |
16159 | return Py_BuildValue((char *)""); | |
16160 | } | |
c32bde28 | 16161 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16162 | PyObject *resultobj; |
16163 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16164 | int arg2 = (int) 0 ; | |
16165 | int arg3 = (int) 0 ; | |
16166 | wxScrollWinEvent *result; | |
16167 | PyObject * obj0 = 0 ; | |
16168 | PyObject * obj1 = 0 ; | |
16169 | PyObject * obj2 = 0 ; | |
16170 | char *kwnames[] = { | |
16171 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
16172 | }; | |
16173 | ||
16174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16175 | if (obj0) { | |
093d3ff1 RD |
16176 | { |
16177 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16179 | } | |
d55e5bfc RD |
16180 | } |
16181 | if (obj1) { | |
093d3ff1 RD |
16182 | { |
16183 | arg2 = (int)(SWIG_As_int(obj1)); | |
16184 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16185 | } | |
d55e5bfc RD |
16186 | } |
16187 | if (obj2) { | |
093d3ff1 RD |
16188 | { |
16189 | arg3 = (int)(SWIG_As_int(obj2)); | |
16190 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16191 | } | |
d55e5bfc RD |
16192 | } |
16193 | { | |
16194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16195 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
16196 | ||
16197 | wxPyEndAllowThreads(__tstate); | |
16198 | if (PyErr_Occurred()) SWIG_fail; | |
16199 | } | |
16200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
16201 | return resultobj; | |
16202 | fail: | |
16203 | return NULL; | |
16204 | } | |
16205 | ||
16206 | ||
c32bde28 | 16207 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16208 | PyObject *resultobj; |
16209 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
16210 | int result; | |
16211 | PyObject * obj0 = 0 ; | |
16212 | char *kwnames[] = { | |
16213 | (char *) "self", NULL | |
16214 | }; | |
16215 | ||
16216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
16218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16219 | { |
16220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16221 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
16222 | ||
16223 | wxPyEndAllowThreads(__tstate); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
16225 | } | |
093d3ff1 RD |
16226 | { |
16227 | resultobj = SWIG_From_int((int)(result)); | |
16228 | } | |
d55e5bfc RD |
16229 | return resultobj; |
16230 | fail: | |
16231 | return NULL; | |
16232 | } | |
16233 | ||
16234 | ||
c32bde28 | 16235 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16236 | PyObject *resultobj; |
16237 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
16238 | int result; | |
16239 | PyObject * obj0 = 0 ; | |
16240 | char *kwnames[] = { | |
16241 | (char *) "self", NULL | |
16242 | }; | |
16243 | ||
16244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
16246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16247 | { |
16248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16249 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
16250 | ||
16251 | wxPyEndAllowThreads(__tstate); | |
16252 | if (PyErr_Occurred()) SWIG_fail; | |
16253 | } | |
093d3ff1 RD |
16254 | { |
16255 | resultobj = SWIG_From_int((int)(result)); | |
16256 | } | |
d55e5bfc RD |
16257 | return resultobj; |
16258 | fail: | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
c32bde28 | 16263 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16264 | PyObject *resultobj; |
16265 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
16266 | int arg2 ; | |
16267 | PyObject * obj0 = 0 ; | |
16268 | PyObject * obj1 = 0 ; | |
16269 | char *kwnames[] = { | |
16270 | (char *) "self",(char *) "orient", NULL | |
16271 | }; | |
16272 | ||
16273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
16275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16276 | { | |
16277 | arg2 = (int)(SWIG_As_int(obj1)); | |
16278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16279 | } | |
d55e5bfc RD |
16280 | { |
16281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16282 | (arg1)->SetOrientation(arg2); | |
16283 | ||
16284 | wxPyEndAllowThreads(__tstate); | |
16285 | if (PyErr_Occurred()) SWIG_fail; | |
16286 | } | |
16287 | Py_INCREF(Py_None); resultobj = Py_None; | |
16288 | return resultobj; | |
16289 | fail: | |
16290 | return NULL; | |
16291 | } | |
16292 | ||
16293 | ||
c32bde28 | 16294 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16295 | PyObject *resultobj; |
16296 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
16297 | int arg2 ; | |
16298 | PyObject * obj0 = 0 ; | |
16299 | PyObject * obj1 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "self",(char *) "pos", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
16306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16307 | { | |
16308 | arg2 = (int)(SWIG_As_int(obj1)); | |
16309 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16310 | } | |
d55e5bfc RD |
16311 | { |
16312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16313 | (arg1)->SetPosition(arg2); | |
16314 | ||
16315 | wxPyEndAllowThreads(__tstate); | |
16316 | if (PyErr_Occurred()) SWIG_fail; | |
16317 | } | |
16318 | Py_INCREF(Py_None); resultobj = Py_None; | |
16319 | return resultobj; | |
16320 | fail: | |
16321 | return NULL; | |
16322 | } | |
16323 | ||
16324 | ||
c32bde28 | 16325 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16326 | PyObject *obj; |
16327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16328 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
16329 | Py_INCREF(obj); | |
16330 | return Py_BuildValue((char *)""); | |
16331 | } | |
c32bde28 | 16332 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16333 | PyObject *resultobj; |
16334 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16335 | wxMouseEvent *result; | |
16336 | PyObject * obj0 = 0 ; | |
16337 | char *kwnames[] = { | |
16338 | (char *) "mouseType", NULL | |
16339 | }; | |
16340 | ||
16341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
16342 | if (obj0) { | |
093d3ff1 RD |
16343 | { |
16344 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16346 | } | |
d55e5bfc RD |
16347 | } |
16348 | { | |
16349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16350 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
16351 | ||
16352 | wxPyEndAllowThreads(__tstate); | |
16353 | if (PyErr_Occurred()) SWIG_fail; | |
16354 | } | |
16355 | { | |
412d302d | 16356 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
16357 | } |
16358 | return resultobj; | |
16359 | fail: | |
16360 | return NULL; | |
16361 | } | |
16362 | ||
16363 | ||
c32bde28 | 16364 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16365 | PyObject *resultobj; |
16366 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16367 | bool result; | |
16368 | PyObject * obj0 = 0 ; | |
16369 | char *kwnames[] = { | |
16370 | (char *) "self", NULL | |
16371 | }; | |
16372 | ||
16373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16376 | { |
16377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16378 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
16379 | ||
16380 | wxPyEndAllowThreads(__tstate); | |
16381 | if (PyErr_Occurred()) SWIG_fail; | |
16382 | } | |
16383 | { | |
16384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16385 | } | |
16386 | return resultobj; | |
16387 | fail: | |
16388 | return NULL; | |
16389 | } | |
16390 | ||
16391 | ||
c32bde28 | 16392 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16393 | PyObject *resultobj; |
16394 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16395 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
16396 | bool result; | |
16397 | PyObject * obj0 = 0 ; | |
16398 | PyObject * obj1 = 0 ; | |
16399 | char *kwnames[] = { | |
16400 | (char *) "self",(char *) "but", NULL | |
16401 | }; | |
16402 | ||
16403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16404 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 16406 | if (obj1) { |
093d3ff1 RD |
16407 | { |
16408 | arg2 = (int)(SWIG_As_int(obj1)); | |
16409 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16410 | } | |
d55e5bfc RD |
16411 | } |
16412 | { | |
16413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16414 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
16415 | ||
16416 | wxPyEndAllowThreads(__tstate); | |
16417 | if (PyErr_Occurred()) SWIG_fail; | |
16418 | } | |
16419 | { | |
16420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16421 | } | |
16422 | return resultobj; | |
16423 | fail: | |
16424 | return NULL; | |
16425 | } | |
16426 | ||
16427 | ||
c32bde28 | 16428 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16429 | PyObject *resultobj; |
16430 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16431 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
16432 | bool result; | |
16433 | PyObject * obj0 = 0 ; | |
16434 | PyObject * obj1 = 0 ; | |
16435 | char *kwnames[] = { | |
16436 | (char *) "self",(char *) "but", NULL | |
16437 | }; | |
16438 | ||
16439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 16442 | if (obj1) { |
093d3ff1 RD |
16443 | { |
16444 | arg2 = (int)(SWIG_As_int(obj1)); | |
16445 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16446 | } | |
d55e5bfc RD |
16447 | } |
16448 | { | |
16449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16450 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
16451 | ||
16452 | wxPyEndAllowThreads(__tstate); | |
16453 | if (PyErr_Occurred()) SWIG_fail; | |
16454 | } | |
16455 | { | |
16456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16457 | } | |
16458 | return resultobj; | |
16459 | fail: | |
16460 | return NULL; | |
16461 | } | |
16462 | ||
16463 | ||
c32bde28 | 16464 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16465 | PyObject *resultobj; |
16466 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16467 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
16468 | bool result; | |
16469 | PyObject * obj0 = 0 ; | |
16470 | PyObject * obj1 = 0 ; | |
16471 | char *kwnames[] = { | |
16472 | (char *) "self",(char *) "but", NULL | |
16473 | }; | |
16474 | ||
16475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 16478 | if (obj1) { |
093d3ff1 RD |
16479 | { |
16480 | arg2 = (int)(SWIG_As_int(obj1)); | |
16481 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16482 | } | |
d55e5bfc RD |
16483 | } |
16484 | { | |
16485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16486 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
16487 | ||
16488 | wxPyEndAllowThreads(__tstate); | |
16489 | if (PyErr_Occurred()) SWIG_fail; | |
16490 | } | |
16491 | { | |
16492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16493 | } | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
c32bde28 | 16500 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16501 | PyObject *resultobj; |
16502 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16503 | int arg2 ; | |
16504 | bool result; | |
16505 | PyObject * obj0 = 0 ; | |
16506 | PyObject * obj1 = 0 ; | |
16507 | char *kwnames[] = { | |
16508 | (char *) "self",(char *) "but", NULL | |
16509 | }; | |
16510 | ||
16511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16514 | { | |
16515 | arg2 = (int)(SWIG_As_int(obj1)); | |
16516 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16517 | } | |
d55e5bfc RD |
16518 | { |
16519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16520 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
16521 | ||
16522 | wxPyEndAllowThreads(__tstate); | |
16523 | if (PyErr_Occurred()) SWIG_fail; | |
16524 | } | |
16525 | { | |
16526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16527 | } | |
16528 | return resultobj; | |
16529 | fail: | |
16530 | return NULL; | |
16531 | } | |
16532 | ||
16533 | ||
c32bde28 | 16534 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16535 | PyObject *resultobj; |
16536 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16537 | int arg2 ; | |
16538 | bool result; | |
16539 | PyObject * obj0 = 0 ; | |
16540 | PyObject * obj1 = 0 ; | |
16541 | char *kwnames[] = { | |
16542 | (char *) "self",(char *) "but", NULL | |
16543 | }; | |
16544 | ||
16545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16548 | { | |
16549 | arg2 = (int)(SWIG_As_int(obj1)); | |
16550 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16551 | } | |
d55e5bfc RD |
16552 | { |
16553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16554 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
16555 | ||
16556 | wxPyEndAllowThreads(__tstate); | |
16557 | if (PyErr_Occurred()) SWIG_fail; | |
16558 | } | |
16559 | { | |
16560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16561 | } | |
16562 | return resultobj; | |
16563 | fail: | |
16564 | return NULL; | |
16565 | } | |
16566 | ||
16567 | ||
c32bde28 | 16568 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16569 | PyObject *resultobj; |
16570 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16571 | int result; | |
16572 | PyObject * obj0 = 0 ; | |
16573 | char *kwnames[] = { | |
16574 | (char *) "self", NULL | |
16575 | }; | |
16576 | ||
16577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16580 | { |
16581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16582 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
16583 | ||
16584 | wxPyEndAllowThreads(__tstate); | |
16585 | if (PyErr_Occurred()) SWIG_fail; | |
16586 | } | |
093d3ff1 RD |
16587 | { |
16588 | resultobj = SWIG_From_int((int)(result)); | |
16589 | } | |
d55e5bfc RD |
16590 | return resultobj; |
16591 | fail: | |
16592 | return NULL; | |
16593 | } | |
16594 | ||
16595 | ||
c32bde28 | 16596 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16597 | PyObject *resultobj; |
16598 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16599 | bool result; | |
16600 | PyObject * obj0 = 0 ; | |
16601 | char *kwnames[] = { | |
16602 | (char *) "self", NULL | |
16603 | }; | |
16604 | ||
16605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16608 | { |
16609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16610 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
16611 | ||
16612 | wxPyEndAllowThreads(__tstate); | |
16613 | if (PyErr_Occurred()) SWIG_fail; | |
16614 | } | |
16615 | { | |
16616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16617 | } | |
16618 | return resultobj; | |
16619 | fail: | |
16620 | return NULL; | |
16621 | } | |
16622 | ||
16623 | ||
c32bde28 | 16624 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16625 | PyObject *resultobj; |
16626 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16627 | bool result; | |
16628 | PyObject * obj0 = 0 ; | |
16629 | char *kwnames[] = { | |
16630 | (char *) "self", NULL | |
16631 | }; | |
16632 | ||
16633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16636 | { |
16637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16638 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
16639 | ||
16640 | wxPyEndAllowThreads(__tstate); | |
16641 | if (PyErr_Occurred()) SWIG_fail; | |
16642 | } | |
16643 | { | |
16644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16645 | } | |
16646 | return resultobj; | |
16647 | fail: | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
c32bde28 | 16652 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16653 | PyObject *resultobj; |
16654 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16655 | bool result; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | char *kwnames[] = { | |
16658 | (char *) "self", NULL | |
16659 | }; | |
16660 | ||
16661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16664 | { |
16665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16666 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
16667 | ||
16668 | wxPyEndAllowThreads(__tstate); | |
16669 | if (PyErr_Occurred()) SWIG_fail; | |
16670 | } | |
16671 | { | |
16672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16673 | } | |
16674 | return resultobj; | |
16675 | fail: | |
16676 | return NULL; | |
16677 | } | |
16678 | ||
16679 | ||
c32bde28 | 16680 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16681 | PyObject *resultobj; |
16682 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16683 | bool result; | |
16684 | PyObject * obj0 = 0 ; | |
16685 | char *kwnames[] = { | |
16686 | (char *) "self", NULL | |
16687 | }; | |
16688 | ||
16689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16692 | { |
16693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16694 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
16695 | ||
16696 | wxPyEndAllowThreads(__tstate); | |
16697 | if (PyErr_Occurred()) SWIG_fail; | |
16698 | } | |
16699 | { | |
16700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16701 | } | |
16702 | return resultobj; | |
16703 | fail: | |
16704 | return NULL; | |
16705 | } | |
16706 | ||
16707 | ||
c32bde28 | 16708 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
16709 | PyObject *resultobj; |
16710 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16711 | bool result; | |
16712 | PyObject * obj0 = 0 ; | |
16713 | char *kwnames[] = { | |
16714 | (char *) "self", NULL | |
16715 | }; | |
16716 | ||
16717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
412d302d RD |
16720 | { |
16721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16722 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
16723 | ||
16724 | wxPyEndAllowThreads(__tstate); | |
16725 | if (PyErr_Occurred()) SWIG_fail; | |
16726 | } | |
16727 | { | |
16728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16729 | } | |
16730 | return resultobj; | |
16731 | fail: | |
16732 | return NULL; | |
16733 | } | |
16734 | ||
16735 | ||
c32bde28 | 16736 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16737 | PyObject *resultobj; |
16738 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16739 | bool result; | |
16740 | PyObject * obj0 = 0 ; | |
16741 | char *kwnames[] = { | |
16742 | (char *) "self", NULL | |
16743 | }; | |
16744 | ||
16745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16748 | { |
16749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16750 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
16751 | ||
16752 | wxPyEndAllowThreads(__tstate); | |
16753 | if (PyErr_Occurred()) SWIG_fail; | |
16754 | } | |
16755 | { | |
16756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16757 | } | |
16758 | return resultobj; | |
16759 | fail: | |
16760 | return NULL; | |
16761 | } | |
16762 | ||
16763 | ||
c32bde28 | 16764 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16765 | PyObject *resultobj; |
16766 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16767 | bool result; | |
16768 | PyObject * obj0 = 0 ; | |
16769 | char *kwnames[] = { | |
16770 | (char *) "self", NULL | |
16771 | }; | |
16772 | ||
16773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16774 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16775 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16776 | { |
16777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16778 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
16779 | ||
16780 | wxPyEndAllowThreads(__tstate); | |
16781 | if (PyErr_Occurred()) SWIG_fail; | |
16782 | } | |
16783 | { | |
16784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16785 | } | |
16786 | return resultobj; | |
16787 | fail: | |
16788 | return NULL; | |
16789 | } | |
16790 | ||
16791 | ||
c32bde28 | 16792 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16793 | PyObject *resultobj; |
16794 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16795 | bool result; | |
16796 | PyObject * obj0 = 0 ; | |
16797 | char *kwnames[] = { | |
16798 | (char *) "self", NULL | |
16799 | }; | |
16800 | ||
16801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16804 | { |
16805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16806 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
16807 | ||
16808 | wxPyEndAllowThreads(__tstate); | |
16809 | if (PyErr_Occurred()) SWIG_fail; | |
16810 | } | |
16811 | { | |
16812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16813 | } | |
16814 | return resultobj; | |
16815 | fail: | |
16816 | return NULL; | |
16817 | } | |
16818 | ||
16819 | ||
c32bde28 | 16820 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16821 | PyObject *resultobj; |
16822 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16823 | bool result; | |
16824 | PyObject * obj0 = 0 ; | |
16825 | char *kwnames[] = { | |
16826 | (char *) "self", NULL | |
16827 | }; | |
16828 | ||
16829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16832 | { |
16833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16834 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
16835 | ||
16836 | wxPyEndAllowThreads(__tstate); | |
16837 | if (PyErr_Occurred()) SWIG_fail; | |
16838 | } | |
16839 | { | |
16840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16841 | } | |
16842 | return resultobj; | |
16843 | fail: | |
16844 | return NULL; | |
16845 | } | |
16846 | ||
16847 | ||
c32bde28 | 16848 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16849 | PyObject *resultobj; |
16850 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16851 | bool result; | |
16852 | PyObject * obj0 = 0 ; | |
16853 | char *kwnames[] = { | |
16854 | (char *) "self", NULL | |
16855 | }; | |
16856 | ||
16857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16860 | { |
16861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16862 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
16863 | ||
16864 | wxPyEndAllowThreads(__tstate); | |
16865 | if (PyErr_Occurred()) SWIG_fail; | |
16866 | } | |
16867 | { | |
16868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16869 | } | |
16870 | return resultobj; | |
16871 | fail: | |
16872 | return NULL; | |
16873 | } | |
16874 | ||
16875 | ||
c32bde28 | 16876 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16877 | PyObject *resultobj; |
16878 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16879 | bool result; | |
16880 | PyObject * obj0 = 0 ; | |
16881 | char *kwnames[] = { | |
16882 | (char *) "self", NULL | |
16883 | }; | |
16884 | ||
16885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16888 | { |
16889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16890 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
16891 | ||
16892 | wxPyEndAllowThreads(__tstate); | |
16893 | if (PyErr_Occurred()) SWIG_fail; | |
16894 | } | |
16895 | { | |
16896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16897 | } | |
16898 | return resultobj; | |
16899 | fail: | |
16900 | return NULL; | |
16901 | } | |
16902 | ||
16903 | ||
c32bde28 | 16904 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16905 | PyObject *resultobj; |
16906 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16907 | bool result; | |
16908 | PyObject * obj0 = 0 ; | |
16909 | char *kwnames[] = { | |
16910 | (char *) "self", NULL | |
16911 | }; | |
16912 | ||
16913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16916 | { |
16917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16918 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
16919 | ||
16920 | wxPyEndAllowThreads(__tstate); | |
16921 | if (PyErr_Occurred()) SWIG_fail; | |
16922 | } | |
16923 | { | |
16924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16925 | } | |
16926 | return resultobj; | |
16927 | fail: | |
16928 | return NULL; | |
16929 | } | |
16930 | ||
16931 | ||
c32bde28 | 16932 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16933 | PyObject *resultobj; |
16934 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16935 | bool result; | |
16936 | PyObject * obj0 = 0 ; | |
16937 | char *kwnames[] = { | |
16938 | (char *) "self", NULL | |
16939 | }; | |
16940 | ||
16941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16942 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16943 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16944 | { |
16945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16946 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
16947 | ||
16948 | wxPyEndAllowThreads(__tstate); | |
16949 | if (PyErr_Occurred()) SWIG_fail; | |
16950 | } | |
16951 | { | |
16952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16953 | } | |
16954 | return resultobj; | |
16955 | fail: | |
16956 | return NULL; | |
16957 | } | |
16958 | ||
16959 | ||
c32bde28 | 16960 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16961 | PyObject *resultobj; |
16962 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16963 | bool result; | |
16964 | PyObject * obj0 = 0 ; | |
16965 | char *kwnames[] = { | |
16966 | (char *) "self", NULL | |
16967 | }; | |
16968 | ||
16969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16972 | { |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16974 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
16975 | ||
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
16979 | { | |
16980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16981 | } | |
16982 | return resultobj; | |
16983 | fail: | |
16984 | return NULL; | |
16985 | } | |
16986 | ||
16987 | ||
c32bde28 | 16988 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16989 | PyObject *resultobj; |
16990 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16991 | bool result; | |
16992 | PyObject * obj0 = 0 ; | |
16993 | char *kwnames[] = { | |
16994 | (char *) "self", NULL | |
16995 | }; | |
16996 | ||
16997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17000 | { |
17001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17002 | result = (bool)(arg1)->LeftIsDown(); | |
17003 | ||
17004 | wxPyEndAllowThreads(__tstate); | |
17005 | if (PyErr_Occurred()) SWIG_fail; | |
17006 | } | |
17007 | { | |
17008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17009 | } | |
17010 | return resultobj; | |
17011 | fail: | |
17012 | return NULL; | |
17013 | } | |
17014 | ||
17015 | ||
c32bde28 | 17016 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17017 | PyObject *resultobj; |
17018 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17019 | bool result; | |
17020 | PyObject * obj0 = 0 ; | |
17021 | char *kwnames[] = { | |
17022 | (char *) "self", NULL | |
17023 | }; | |
17024 | ||
17025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17028 | { |
17029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17030 | result = (bool)(arg1)->MiddleIsDown(); | |
17031 | ||
17032 | wxPyEndAllowThreads(__tstate); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | } | |
17035 | { | |
17036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17037 | } | |
17038 | return resultobj; | |
17039 | fail: | |
17040 | return NULL; | |
17041 | } | |
17042 | ||
17043 | ||
c32bde28 | 17044 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17045 | PyObject *resultobj; |
17046 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17047 | bool result; | |
17048 | PyObject * obj0 = 0 ; | |
17049 | char *kwnames[] = { | |
17050 | (char *) "self", NULL | |
17051 | }; | |
17052 | ||
17053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17056 | { |
17057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17058 | result = (bool)(arg1)->RightIsDown(); | |
17059 | ||
17060 | wxPyEndAllowThreads(__tstate); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | } | |
17063 | { | |
17064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17065 | } | |
17066 | return resultobj; | |
17067 | fail: | |
17068 | return NULL; | |
17069 | } | |
17070 | ||
17071 | ||
c32bde28 | 17072 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17073 | PyObject *resultobj; |
17074 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17075 | bool result; | |
17076 | PyObject * obj0 = 0 ; | |
17077 | char *kwnames[] = { | |
17078 | (char *) "self", NULL | |
17079 | }; | |
17080 | ||
17081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17084 | { |
17085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17086 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
17087 | ||
17088 | wxPyEndAllowThreads(__tstate); | |
17089 | if (PyErr_Occurred()) SWIG_fail; | |
17090 | } | |
17091 | { | |
17092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17093 | } | |
17094 | return resultobj; | |
17095 | fail: | |
17096 | return NULL; | |
17097 | } | |
17098 | ||
17099 | ||
c32bde28 | 17100 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17101 | PyObject *resultobj; |
17102 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17103 | bool result; | |
17104 | PyObject * obj0 = 0 ; | |
17105 | char *kwnames[] = { | |
17106 | (char *) "self", NULL | |
17107 | }; | |
17108 | ||
17109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17112 | { |
17113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17114 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
17115 | ||
17116 | wxPyEndAllowThreads(__tstate); | |
17117 | if (PyErr_Occurred()) SWIG_fail; | |
17118 | } | |
17119 | { | |
17120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17121 | } | |
17122 | return resultobj; | |
17123 | fail: | |
17124 | return NULL; | |
17125 | } | |
17126 | ||
17127 | ||
c32bde28 | 17128 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17129 | PyObject *resultobj; |
17130 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17131 | bool result; | |
17132 | PyObject * obj0 = 0 ; | |
17133 | char *kwnames[] = { | |
17134 | (char *) "self", NULL | |
17135 | }; | |
17136 | ||
17137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17140 | { |
17141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17142 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
17143 | ||
17144 | wxPyEndAllowThreads(__tstate); | |
17145 | if (PyErr_Occurred()) SWIG_fail; | |
17146 | } | |
17147 | { | |
17148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17149 | } | |
17150 | return resultobj; | |
17151 | fail: | |
17152 | return NULL; | |
17153 | } | |
17154 | ||
17155 | ||
c32bde28 | 17156 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17157 | PyObject *resultobj; |
17158 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17159 | bool result; | |
17160 | PyObject * obj0 = 0 ; | |
17161 | char *kwnames[] = { | |
17162 | (char *) "self", NULL | |
17163 | }; | |
17164 | ||
17165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17168 | { |
17169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17170 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
17171 | ||
17172 | wxPyEndAllowThreads(__tstate); | |
17173 | if (PyErr_Occurred()) SWIG_fail; | |
17174 | } | |
17175 | { | |
17176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17177 | } | |
17178 | return resultobj; | |
17179 | fail: | |
17180 | return NULL; | |
17181 | } | |
17182 | ||
17183 | ||
c32bde28 | 17184 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17185 | PyObject *resultobj; |
17186 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17187 | wxPoint result; | |
17188 | PyObject * obj0 = 0 ; | |
17189 | char *kwnames[] = { | |
17190 | (char *) "self", NULL | |
17191 | }; | |
17192 | ||
17193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17196 | { |
17197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17198 | result = (arg1)->GetPosition(); | |
17199 | ||
17200 | wxPyEndAllowThreads(__tstate); | |
17201 | if (PyErr_Occurred()) SWIG_fail; | |
17202 | } | |
17203 | { | |
17204 | wxPoint * resultptr; | |
093d3ff1 | 17205 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
17206 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
17207 | } | |
17208 | return resultobj; | |
17209 | fail: | |
17210 | return NULL; | |
17211 | } | |
17212 | ||
17213 | ||
c32bde28 | 17214 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17215 | PyObject *resultobj; |
17216 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17217 | long *arg2 = (long *) 0 ; | |
17218 | long *arg3 = (long *) 0 ; | |
17219 | long temp2 ; | |
c32bde28 | 17220 | int res2 = 0 ; |
d55e5bfc | 17221 | long temp3 ; |
c32bde28 | 17222 | int res3 = 0 ; |
d55e5bfc RD |
17223 | PyObject * obj0 = 0 ; |
17224 | char *kwnames[] = { | |
17225 | (char *) "self", NULL | |
17226 | }; | |
17227 | ||
c32bde28 RD |
17228 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
17229 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 17230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17233 | { |
17234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17235 | (arg1)->GetPosition(arg2,arg3); | |
17236 | ||
17237 | wxPyEndAllowThreads(__tstate); | |
17238 | if (PyErr_Occurred()) SWIG_fail; | |
17239 | } | |
17240 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
17241 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
17242 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
17243 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
17244 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
17245 | return resultobj; |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
c32bde28 | 17251 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17252 | PyObject *resultobj; |
17253 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17254 | wxDC *arg2 = 0 ; | |
17255 | wxPoint result; | |
17256 | PyObject * obj0 = 0 ; | |
17257 | PyObject * obj1 = 0 ; | |
17258 | char *kwnames[] = { | |
17259 | (char *) "self",(char *) "dc", NULL | |
17260 | }; | |
17261 | ||
17262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17265 | { | |
17266 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17268 | if (arg2 == NULL) { | |
17269 | SWIG_null_ref("wxDC"); | |
17270 | } | |
17271 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
17272 | } |
17273 | { | |
17274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17275 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
17276 | ||
17277 | wxPyEndAllowThreads(__tstate); | |
17278 | if (PyErr_Occurred()) SWIG_fail; | |
17279 | } | |
17280 | { | |
17281 | wxPoint * resultptr; | |
093d3ff1 | 17282 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
17283 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
17284 | } | |
17285 | return resultobj; | |
17286 | fail: | |
17287 | return NULL; | |
17288 | } | |
17289 | ||
17290 | ||
c32bde28 | 17291 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17292 | PyObject *resultobj; |
17293 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17294 | int result; | |
17295 | PyObject * obj0 = 0 ; | |
17296 | char *kwnames[] = { | |
17297 | (char *) "self", NULL | |
17298 | }; | |
17299 | ||
17300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17303 | { |
17304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17305 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
17306 | ||
17307 | wxPyEndAllowThreads(__tstate); | |
17308 | if (PyErr_Occurred()) SWIG_fail; | |
17309 | } | |
093d3ff1 RD |
17310 | { |
17311 | resultobj = SWIG_From_int((int)(result)); | |
17312 | } | |
d55e5bfc RD |
17313 | return resultobj; |
17314 | fail: | |
17315 | return NULL; | |
17316 | } | |
17317 | ||
17318 | ||
c32bde28 | 17319 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17320 | PyObject *resultobj; |
17321 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17322 | int result; | |
17323 | PyObject * obj0 = 0 ; | |
17324 | char *kwnames[] = { | |
17325 | (char *) "self", NULL | |
17326 | }; | |
17327 | ||
17328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17331 | { |
17332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17333 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
17334 | ||
17335 | wxPyEndAllowThreads(__tstate); | |
17336 | if (PyErr_Occurred()) SWIG_fail; | |
17337 | } | |
093d3ff1 RD |
17338 | { |
17339 | resultobj = SWIG_From_int((int)(result)); | |
17340 | } | |
d55e5bfc RD |
17341 | return resultobj; |
17342 | fail: | |
17343 | return NULL; | |
17344 | } | |
17345 | ||
17346 | ||
c32bde28 | 17347 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17348 | PyObject *resultobj; |
17349 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17350 | int result; | |
17351 | PyObject * obj0 = 0 ; | |
17352 | char *kwnames[] = { | |
17353 | (char *) "self", NULL | |
17354 | }; | |
17355 | ||
17356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17357 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17358 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17359 | { |
17360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17361 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
17362 | ||
17363 | wxPyEndAllowThreads(__tstate); | |
17364 | if (PyErr_Occurred()) SWIG_fail; | |
17365 | } | |
093d3ff1 RD |
17366 | { |
17367 | resultobj = SWIG_From_int((int)(result)); | |
17368 | } | |
d55e5bfc RD |
17369 | return resultobj; |
17370 | fail: | |
17371 | return NULL; | |
17372 | } | |
17373 | ||
17374 | ||
c32bde28 | 17375 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17376 | PyObject *resultobj; |
17377 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17378 | int result; | |
17379 | PyObject * obj0 = 0 ; | |
17380 | char *kwnames[] = { | |
17381 | (char *) "self", NULL | |
17382 | }; | |
17383 | ||
17384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17387 | { |
17388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17389 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
17390 | ||
17391 | wxPyEndAllowThreads(__tstate); | |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
17393 | } | |
093d3ff1 RD |
17394 | { |
17395 | resultobj = SWIG_From_int((int)(result)); | |
17396 | } | |
d55e5bfc RD |
17397 | return resultobj; |
17398 | fail: | |
17399 | return NULL; | |
17400 | } | |
17401 | ||
17402 | ||
c32bde28 | 17403 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17404 | PyObject *resultobj; |
17405 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17406 | int result; | |
17407 | PyObject * obj0 = 0 ; | |
17408 | char *kwnames[] = { | |
17409 | (char *) "self", NULL | |
17410 | }; | |
17411 | ||
17412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17413 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17414 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17415 | { |
17416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17417 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
17418 | ||
17419 | wxPyEndAllowThreads(__tstate); | |
17420 | if (PyErr_Occurred()) SWIG_fail; | |
17421 | } | |
093d3ff1 RD |
17422 | { |
17423 | resultobj = SWIG_From_int((int)(result)); | |
17424 | } | |
d55e5bfc RD |
17425 | return resultobj; |
17426 | fail: | |
17427 | return NULL; | |
17428 | } | |
17429 | ||
17430 | ||
c32bde28 | 17431 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17432 | PyObject *resultobj; |
17433 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17434 | bool result; | |
17435 | PyObject * obj0 = 0 ; | |
17436 | char *kwnames[] = { | |
17437 | (char *) "self", NULL | |
17438 | }; | |
17439 | ||
17440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17443 | { |
17444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17445 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
17446 | ||
17447 | wxPyEndAllowThreads(__tstate); | |
17448 | if (PyErr_Occurred()) SWIG_fail; | |
17449 | } | |
17450 | { | |
17451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17452 | } | |
17453 | return resultobj; | |
17454 | fail: | |
17455 | return NULL; | |
17456 | } | |
17457 | ||
17458 | ||
c32bde28 | 17459 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17460 | PyObject *resultobj; |
17461 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17462 | int arg2 ; | |
17463 | PyObject * obj0 = 0 ; | |
17464 | PyObject * obj1 = 0 ; | |
17465 | char *kwnames[] = { | |
17466 | (char *) "self",(char *) "m_x", NULL | |
17467 | }; | |
17468 | ||
17469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17472 | { | |
17473 | arg2 = (int)(SWIG_As_int(obj1)); | |
17474 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17475 | } | |
d55e5bfc RD |
17476 | if (arg1) (arg1)->m_x = arg2; |
17477 | ||
17478 | Py_INCREF(Py_None); resultobj = Py_None; | |
17479 | return resultobj; | |
17480 | fail: | |
17481 | return NULL; | |
17482 | } | |
17483 | ||
17484 | ||
c32bde28 | 17485 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17486 | PyObject *resultobj; |
17487 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17488 | int result; | |
17489 | PyObject * obj0 = 0 ; | |
17490 | char *kwnames[] = { | |
17491 | (char *) "self", NULL | |
17492 | }; | |
17493 | ||
17494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17497 | result = (int) ((arg1)->m_x); |
17498 | ||
093d3ff1 RD |
17499 | { |
17500 | resultobj = SWIG_From_int((int)(result)); | |
17501 | } | |
d55e5bfc RD |
17502 | return resultobj; |
17503 | fail: | |
17504 | return NULL; | |
17505 | } | |
17506 | ||
17507 | ||
c32bde28 | 17508 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17509 | PyObject *resultobj; |
17510 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17511 | int arg2 ; | |
17512 | PyObject * obj0 = 0 ; | |
17513 | PyObject * obj1 = 0 ; | |
17514 | char *kwnames[] = { | |
17515 | (char *) "self",(char *) "m_y", NULL | |
17516 | }; | |
17517 | ||
17518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17521 | { | |
17522 | arg2 = (int)(SWIG_As_int(obj1)); | |
17523 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17524 | } | |
d55e5bfc RD |
17525 | if (arg1) (arg1)->m_y = arg2; |
17526 | ||
17527 | Py_INCREF(Py_None); resultobj = Py_None; | |
17528 | return resultobj; | |
17529 | fail: | |
17530 | return NULL; | |
17531 | } | |
17532 | ||
17533 | ||
c32bde28 | 17534 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17535 | PyObject *resultobj; |
17536 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17537 | int result; | |
17538 | PyObject * obj0 = 0 ; | |
17539 | char *kwnames[] = { | |
17540 | (char *) "self", NULL | |
17541 | }; | |
17542 | ||
17543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17546 | result = (int) ((arg1)->m_y); |
17547 | ||
093d3ff1 RD |
17548 | { |
17549 | resultobj = SWIG_From_int((int)(result)); | |
17550 | } | |
d55e5bfc RD |
17551 | return resultobj; |
17552 | fail: | |
17553 | return NULL; | |
17554 | } | |
17555 | ||
17556 | ||
c32bde28 | 17557 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17558 | PyObject *resultobj; |
17559 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17560 | bool arg2 ; | |
17561 | PyObject * obj0 = 0 ; | |
17562 | PyObject * obj1 = 0 ; | |
17563 | char *kwnames[] = { | |
17564 | (char *) "self",(char *) "m_leftDown", NULL | |
17565 | }; | |
17566 | ||
17567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17570 | { | |
17571 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17572 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17573 | } | |
d55e5bfc RD |
17574 | if (arg1) (arg1)->m_leftDown = arg2; |
17575 | ||
17576 | Py_INCREF(Py_None); resultobj = Py_None; | |
17577 | return resultobj; | |
17578 | fail: | |
17579 | return NULL; | |
17580 | } | |
17581 | ||
17582 | ||
c32bde28 | 17583 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17584 | PyObject *resultobj; |
17585 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17586 | bool result; | |
17587 | PyObject * obj0 = 0 ; | |
17588 | char *kwnames[] = { | |
17589 | (char *) "self", NULL | |
17590 | }; | |
17591 | ||
17592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17595 | result = (bool) ((arg1)->m_leftDown); |
17596 | ||
17597 | { | |
17598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17599 | } | |
17600 | return resultobj; | |
17601 | fail: | |
17602 | return NULL; | |
17603 | } | |
17604 | ||
17605 | ||
c32bde28 | 17606 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17607 | PyObject *resultobj; |
17608 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17609 | bool arg2 ; | |
17610 | PyObject * obj0 = 0 ; | |
17611 | PyObject * obj1 = 0 ; | |
17612 | char *kwnames[] = { | |
17613 | (char *) "self",(char *) "m_middleDown", NULL | |
17614 | }; | |
17615 | ||
17616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17619 | { | |
17620 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17621 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17622 | } | |
d55e5bfc RD |
17623 | if (arg1) (arg1)->m_middleDown = arg2; |
17624 | ||
17625 | Py_INCREF(Py_None); resultobj = Py_None; | |
17626 | return resultobj; | |
17627 | fail: | |
17628 | return NULL; | |
17629 | } | |
17630 | ||
17631 | ||
c32bde28 | 17632 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17633 | PyObject *resultobj; |
17634 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17635 | bool result; | |
17636 | PyObject * obj0 = 0 ; | |
17637 | char *kwnames[] = { | |
17638 | (char *) "self", NULL | |
17639 | }; | |
17640 | ||
17641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17644 | result = (bool) ((arg1)->m_middleDown); |
17645 | ||
17646 | { | |
17647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17648 | } | |
17649 | return resultobj; | |
17650 | fail: | |
17651 | return NULL; | |
17652 | } | |
17653 | ||
17654 | ||
c32bde28 | 17655 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17656 | PyObject *resultobj; |
17657 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17658 | bool arg2 ; | |
17659 | PyObject * obj0 = 0 ; | |
17660 | PyObject * obj1 = 0 ; | |
17661 | char *kwnames[] = { | |
17662 | (char *) "self",(char *) "m_rightDown", NULL | |
17663 | }; | |
17664 | ||
17665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17666 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17667 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17668 | { | |
17669 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17670 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17671 | } | |
d55e5bfc RD |
17672 | if (arg1) (arg1)->m_rightDown = arg2; |
17673 | ||
17674 | Py_INCREF(Py_None); resultobj = Py_None; | |
17675 | return resultobj; | |
17676 | fail: | |
17677 | return NULL; | |
17678 | } | |
17679 | ||
17680 | ||
c32bde28 | 17681 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17682 | PyObject *resultobj; |
17683 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17684 | bool result; | |
17685 | PyObject * obj0 = 0 ; | |
17686 | char *kwnames[] = { | |
17687 | (char *) "self", NULL | |
17688 | }; | |
17689 | ||
17690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17693 | result = (bool) ((arg1)->m_rightDown); |
17694 | ||
17695 | { | |
17696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17697 | } | |
17698 | return resultobj; | |
17699 | fail: | |
17700 | return NULL; | |
17701 | } | |
17702 | ||
17703 | ||
c32bde28 | 17704 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17705 | PyObject *resultobj; |
17706 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17707 | bool arg2 ; | |
17708 | PyObject * obj0 = 0 ; | |
17709 | PyObject * obj1 = 0 ; | |
17710 | char *kwnames[] = { | |
17711 | (char *) "self",(char *) "m_controlDown", NULL | |
17712 | }; | |
17713 | ||
17714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17717 | { | |
17718 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17719 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17720 | } | |
d55e5bfc RD |
17721 | if (arg1) (arg1)->m_controlDown = arg2; |
17722 | ||
17723 | Py_INCREF(Py_None); resultobj = Py_None; | |
17724 | return resultobj; | |
17725 | fail: | |
17726 | return NULL; | |
17727 | } | |
17728 | ||
17729 | ||
c32bde28 | 17730 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17731 | PyObject *resultobj; |
17732 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17733 | bool result; | |
17734 | PyObject * obj0 = 0 ; | |
17735 | char *kwnames[] = { | |
17736 | (char *) "self", NULL | |
17737 | }; | |
17738 | ||
17739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17742 | result = (bool) ((arg1)->m_controlDown); |
17743 | ||
17744 | { | |
17745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17746 | } | |
17747 | return resultobj; | |
17748 | fail: | |
17749 | return NULL; | |
17750 | } | |
17751 | ||
17752 | ||
c32bde28 | 17753 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17754 | PyObject *resultobj; |
17755 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17756 | bool arg2 ; | |
17757 | PyObject * obj0 = 0 ; | |
17758 | PyObject * obj1 = 0 ; | |
17759 | char *kwnames[] = { | |
17760 | (char *) "self",(char *) "m_shiftDown", NULL | |
17761 | }; | |
17762 | ||
17763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17766 | { | |
17767 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17768 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17769 | } | |
d55e5bfc RD |
17770 | if (arg1) (arg1)->m_shiftDown = arg2; |
17771 | ||
17772 | Py_INCREF(Py_None); resultobj = Py_None; | |
17773 | return resultobj; | |
17774 | fail: | |
17775 | return NULL; | |
17776 | } | |
17777 | ||
17778 | ||
c32bde28 | 17779 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17780 | PyObject *resultobj; |
17781 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17782 | bool result; | |
17783 | PyObject * obj0 = 0 ; | |
17784 | char *kwnames[] = { | |
17785 | (char *) "self", NULL | |
17786 | }; | |
17787 | ||
17788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17791 | result = (bool) ((arg1)->m_shiftDown); |
17792 | ||
17793 | { | |
17794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17795 | } | |
17796 | return resultobj; | |
17797 | fail: | |
17798 | return NULL; | |
17799 | } | |
17800 | ||
17801 | ||
c32bde28 | 17802 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17803 | PyObject *resultobj; |
17804 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17805 | bool arg2 ; | |
17806 | PyObject * obj0 = 0 ; | |
17807 | PyObject * obj1 = 0 ; | |
17808 | char *kwnames[] = { | |
17809 | (char *) "self",(char *) "m_altDown", NULL | |
17810 | }; | |
17811 | ||
17812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17815 | { | |
17816 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17817 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17818 | } | |
d55e5bfc RD |
17819 | if (arg1) (arg1)->m_altDown = arg2; |
17820 | ||
17821 | Py_INCREF(Py_None); resultobj = Py_None; | |
17822 | return resultobj; | |
17823 | fail: | |
17824 | return NULL; | |
17825 | } | |
17826 | ||
17827 | ||
c32bde28 | 17828 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17829 | PyObject *resultobj; |
17830 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17831 | bool result; | |
17832 | PyObject * obj0 = 0 ; | |
17833 | char *kwnames[] = { | |
17834 | (char *) "self", NULL | |
17835 | }; | |
17836 | ||
17837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17840 | result = (bool) ((arg1)->m_altDown); |
17841 | ||
17842 | { | |
17843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17844 | } | |
17845 | return resultobj; | |
17846 | fail: | |
17847 | return NULL; | |
17848 | } | |
17849 | ||
17850 | ||
c32bde28 | 17851 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17852 | PyObject *resultobj; |
17853 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17854 | bool arg2 ; | |
17855 | PyObject * obj0 = 0 ; | |
17856 | PyObject * obj1 = 0 ; | |
17857 | char *kwnames[] = { | |
17858 | (char *) "self",(char *) "m_metaDown", NULL | |
17859 | }; | |
17860 | ||
17861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17864 | { | |
17865 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17866 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17867 | } | |
d55e5bfc RD |
17868 | if (arg1) (arg1)->m_metaDown = arg2; |
17869 | ||
17870 | Py_INCREF(Py_None); resultobj = Py_None; | |
17871 | return resultobj; | |
17872 | fail: | |
17873 | return NULL; | |
17874 | } | |
17875 | ||
17876 | ||
c32bde28 | 17877 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17878 | PyObject *resultobj; |
17879 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17880 | bool result; | |
17881 | PyObject * obj0 = 0 ; | |
17882 | char *kwnames[] = { | |
17883 | (char *) "self", NULL | |
17884 | }; | |
17885 | ||
17886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17889 | result = (bool) ((arg1)->m_metaDown); |
17890 | ||
17891 | { | |
17892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17893 | } | |
17894 | return resultobj; | |
17895 | fail: | |
17896 | return NULL; | |
17897 | } | |
17898 | ||
17899 | ||
c32bde28 | 17900 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17901 | PyObject *resultobj; |
17902 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17903 | int arg2 ; | |
17904 | PyObject * obj0 = 0 ; | |
17905 | PyObject * obj1 = 0 ; | |
17906 | char *kwnames[] = { | |
17907 | (char *) "self",(char *) "m_wheelRotation", NULL | |
17908 | }; | |
17909 | ||
17910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17913 | { | |
17914 | arg2 = (int)(SWIG_As_int(obj1)); | |
17915 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17916 | } | |
d55e5bfc RD |
17917 | if (arg1) (arg1)->m_wheelRotation = arg2; |
17918 | ||
17919 | Py_INCREF(Py_None); resultobj = Py_None; | |
17920 | return resultobj; | |
17921 | fail: | |
17922 | return NULL; | |
17923 | } | |
17924 | ||
17925 | ||
c32bde28 | 17926 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17927 | PyObject *resultobj; |
17928 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17929 | int result; | |
17930 | PyObject * obj0 = 0 ; | |
17931 | char *kwnames[] = { | |
17932 | (char *) "self", NULL | |
17933 | }; | |
17934 | ||
17935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17938 | result = (int) ((arg1)->m_wheelRotation); |
17939 | ||
093d3ff1 RD |
17940 | { |
17941 | resultobj = SWIG_From_int((int)(result)); | |
17942 | } | |
d55e5bfc RD |
17943 | return resultobj; |
17944 | fail: | |
17945 | return NULL; | |
17946 | } | |
17947 | ||
17948 | ||
c32bde28 | 17949 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17950 | PyObject *resultobj; |
17951 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17952 | int arg2 ; | |
17953 | PyObject * obj0 = 0 ; | |
17954 | PyObject * obj1 = 0 ; | |
17955 | char *kwnames[] = { | |
17956 | (char *) "self",(char *) "m_wheelDelta", NULL | |
17957 | }; | |
17958 | ||
17959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17962 | { | |
17963 | arg2 = (int)(SWIG_As_int(obj1)); | |
17964 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17965 | } | |
d55e5bfc RD |
17966 | if (arg1) (arg1)->m_wheelDelta = arg2; |
17967 | ||
17968 | Py_INCREF(Py_None); resultobj = Py_None; | |
17969 | return resultobj; | |
17970 | fail: | |
17971 | return NULL; | |
17972 | } | |
17973 | ||
17974 | ||
c32bde28 | 17975 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17976 | PyObject *resultobj; |
17977 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17978 | int result; | |
17979 | PyObject * obj0 = 0 ; | |
17980 | char *kwnames[] = { | |
17981 | (char *) "self", NULL | |
17982 | }; | |
17983 | ||
17984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17987 | result = (int) ((arg1)->m_wheelDelta); |
17988 | ||
093d3ff1 RD |
17989 | { |
17990 | resultobj = SWIG_From_int((int)(result)); | |
17991 | } | |
d55e5bfc RD |
17992 | return resultobj; |
17993 | fail: | |
17994 | return NULL; | |
17995 | } | |
17996 | ||
17997 | ||
c32bde28 | 17998 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17999 | PyObject *resultobj; |
18000 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
18001 | int arg2 ; | |
18002 | PyObject * obj0 = 0 ; | |
18003 | PyObject * obj1 = 0 ; | |
18004 | char *kwnames[] = { | |
18005 | (char *) "self",(char *) "m_linesPerAction", NULL | |
18006 | }; | |
18007 | ||
18008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
18010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18011 | { | |
18012 | arg2 = (int)(SWIG_As_int(obj1)); | |
18013 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18014 | } | |
d55e5bfc RD |
18015 | if (arg1) (arg1)->m_linesPerAction = arg2; |
18016 | ||
18017 | Py_INCREF(Py_None); resultobj = Py_None; | |
18018 | return resultobj; | |
18019 | fail: | |
18020 | return NULL; | |
18021 | } | |
18022 | ||
18023 | ||
c32bde28 | 18024 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18025 | PyObject *resultobj; |
18026 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
18027 | int result; | |
18028 | PyObject * obj0 = 0 ; | |
18029 | char *kwnames[] = { | |
18030 | (char *) "self", NULL | |
18031 | }; | |
18032 | ||
18033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
18035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18036 | result = (int) ((arg1)->m_linesPerAction); |
18037 | ||
093d3ff1 RD |
18038 | { |
18039 | resultobj = SWIG_From_int((int)(result)); | |
18040 | } | |
d55e5bfc RD |
18041 | return resultobj; |
18042 | fail: | |
18043 | return NULL; | |
18044 | } | |
18045 | ||
18046 | ||
c32bde28 | 18047 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18048 | PyObject *obj; |
18049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18050 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
18051 | Py_INCREF(obj); | |
18052 | return Py_BuildValue((char *)""); | |
18053 | } | |
c32bde28 | 18054 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18055 | PyObject *resultobj; |
18056 | int arg1 = (int) 0 ; | |
18057 | int arg2 = (int) 0 ; | |
18058 | wxSetCursorEvent *result; | |
18059 | PyObject * obj0 = 0 ; | |
18060 | PyObject * obj1 = 0 ; | |
18061 | char *kwnames[] = { | |
18062 | (char *) "x",(char *) "y", NULL | |
18063 | }; | |
18064 | ||
18065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
18066 | if (obj0) { | |
093d3ff1 RD |
18067 | { |
18068 | arg1 = (int)(SWIG_As_int(obj0)); | |
18069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18070 | } | |
d55e5bfc RD |
18071 | } |
18072 | if (obj1) { | |
093d3ff1 RD |
18073 | { |
18074 | arg2 = (int)(SWIG_As_int(obj1)); | |
18075 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18076 | } | |
d55e5bfc RD |
18077 | } |
18078 | { | |
18079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18080 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
18081 | ||
18082 | wxPyEndAllowThreads(__tstate); | |
18083 | if (PyErr_Occurred()) SWIG_fail; | |
18084 | } | |
18085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
18086 | return resultobj; | |
18087 | fail: | |
18088 | return NULL; | |
18089 | } | |
18090 | ||
18091 | ||
c32bde28 | 18092 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18093 | PyObject *resultobj; |
18094 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
18095 | int result; | |
18096 | PyObject * obj0 = 0 ; | |
18097 | char *kwnames[] = { | |
18098 | (char *) "self", NULL | |
18099 | }; | |
18100 | ||
18101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18104 | { |
18105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18106 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
18107 | ||
18108 | wxPyEndAllowThreads(__tstate); | |
18109 | if (PyErr_Occurred()) SWIG_fail; | |
18110 | } | |
093d3ff1 RD |
18111 | { |
18112 | resultobj = SWIG_From_int((int)(result)); | |
18113 | } | |
d55e5bfc RD |
18114 | return resultobj; |
18115 | fail: | |
18116 | return NULL; | |
18117 | } | |
18118 | ||
18119 | ||
c32bde28 | 18120 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18121 | PyObject *resultobj; |
18122 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
18123 | int result; | |
18124 | PyObject * obj0 = 0 ; | |
18125 | char *kwnames[] = { | |
18126 | (char *) "self", NULL | |
18127 | }; | |
18128 | ||
18129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18132 | { |
18133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18134 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
18135 | ||
18136 | wxPyEndAllowThreads(__tstate); | |
18137 | if (PyErr_Occurred()) SWIG_fail; | |
18138 | } | |
093d3ff1 RD |
18139 | { |
18140 | resultobj = SWIG_From_int((int)(result)); | |
18141 | } | |
d55e5bfc RD |
18142 | return resultobj; |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
c32bde28 | 18148 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18149 | PyObject *resultobj; |
18150 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
18151 | wxCursor *arg2 = 0 ; | |
18152 | PyObject * obj0 = 0 ; | |
18153 | PyObject * obj1 = 0 ; | |
18154 | char *kwnames[] = { | |
18155 | (char *) "self",(char *) "cursor", NULL | |
18156 | }; | |
18157 | ||
18158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18161 | { | |
18162 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
18163 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18164 | if (arg2 == NULL) { | |
18165 | SWIG_null_ref("wxCursor"); | |
18166 | } | |
18167 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
18168 | } |
18169 | { | |
18170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18171 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
18172 | ||
18173 | wxPyEndAllowThreads(__tstate); | |
18174 | if (PyErr_Occurred()) SWIG_fail; | |
18175 | } | |
18176 | Py_INCREF(Py_None); resultobj = Py_None; | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
c32bde28 | 18183 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18184 | PyObject *resultobj; |
18185 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
18186 | wxCursor *result; | |
18187 | PyObject * obj0 = 0 ; | |
18188 | char *kwnames[] = { | |
18189 | (char *) "self", NULL | |
18190 | }; | |
18191 | ||
18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18195 | { |
18196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18197 | { | |
18198 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
18199 | result = (wxCursor *) &_result_ref; | |
18200 | } | |
18201 | ||
18202 | wxPyEndAllowThreads(__tstate); | |
18203 | if (PyErr_Occurred()) SWIG_fail; | |
18204 | } | |
18205 | { | |
18206 | wxCursor* resultptr = new wxCursor(*result); | |
18207 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
18208 | } | |
18209 | return resultobj; | |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
c32bde28 | 18215 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18216 | PyObject *resultobj; |
18217 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
18218 | bool result; | |
18219 | PyObject * obj0 = 0 ; | |
18220 | char *kwnames[] = { | |
18221 | (char *) "self", NULL | |
18222 | }; | |
18223 | ||
18224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18227 | { |
18228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18229 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
18230 | ||
18231 | wxPyEndAllowThreads(__tstate); | |
18232 | if (PyErr_Occurred()) SWIG_fail; | |
18233 | } | |
18234 | { | |
18235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18236 | } | |
18237 | return resultobj; | |
18238 | fail: | |
18239 | return NULL; | |
18240 | } | |
18241 | ||
18242 | ||
c32bde28 | 18243 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18244 | PyObject *obj; |
18245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18246 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
18247 | Py_INCREF(obj); | |
18248 | return Py_BuildValue((char *)""); | |
18249 | } | |
c32bde28 | 18250 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18251 | PyObject *resultobj; |
18252 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18253 | wxKeyEvent *result; | |
18254 | PyObject * obj0 = 0 ; | |
18255 | char *kwnames[] = { | |
18256 | (char *) "keyType", NULL | |
18257 | }; | |
18258 | ||
18259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
18260 | if (obj0) { | |
093d3ff1 RD |
18261 | { |
18262 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
18263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18264 | } | |
d55e5bfc RD |
18265 | } |
18266 | { | |
18267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18268 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
18269 | ||
18270 | wxPyEndAllowThreads(__tstate); | |
18271 | if (PyErr_Occurred()) SWIG_fail; | |
18272 | } | |
18273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
18274 | return resultobj; | |
18275 | fail: | |
18276 | return NULL; | |
18277 | } | |
18278 | ||
18279 | ||
c32bde28 | 18280 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18281 | PyObject *resultobj; |
18282 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18283 | bool result; | |
18284 | PyObject * obj0 = 0 ; | |
18285 | char *kwnames[] = { | |
18286 | (char *) "self", NULL | |
18287 | }; | |
18288 | ||
18289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18292 | { |
18293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18294 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
18295 | ||
18296 | wxPyEndAllowThreads(__tstate); | |
18297 | if (PyErr_Occurred()) SWIG_fail; | |
18298 | } | |
18299 | { | |
18300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18301 | } | |
18302 | return resultobj; | |
18303 | fail: | |
18304 | return NULL; | |
18305 | } | |
18306 | ||
18307 | ||
c32bde28 | 18308 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18309 | PyObject *resultobj; |
18310 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18311 | bool result; | |
18312 | PyObject * obj0 = 0 ; | |
18313 | char *kwnames[] = { | |
18314 | (char *) "self", NULL | |
18315 | }; | |
18316 | ||
18317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18320 | { |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | { | |
18328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18329 | } | |
18330 | return resultobj; | |
18331 | fail: | |
18332 | return NULL; | |
18333 | } | |
18334 | ||
18335 | ||
c32bde28 | 18336 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18337 | PyObject *resultobj; |
18338 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18339 | bool result; | |
18340 | PyObject * obj0 = 0 ; | |
18341 | char *kwnames[] = { | |
18342 | (char *) "self", NULL | |
18343 | }; | |
18344 | ||
18345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18348 | { |
18349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18350 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
18351 | ||
18352 | wxPyEndAllowThreads(__tstate); | |
18353 | if (PyErr_Occurred()) SWIG_fail; | |
18354 | } | |
18355 | { | |
18356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18357 | } | |
18358 | return resultobj; | |
18359 | fail: | |
18360 | return NULL; | |
18361 | } | |
18362 | ||
18363 | ||
c32bde28 | 18364 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18365 | PyObject *resultobj; |
18366 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18367 | bool result; | |
18368 | PyObject * obj0 = 0 ; | |
18369 | char *kwnames[] = { | |
18370 | (char *) "self", NULL | |
18371 | }; | |
18372 | ||
18373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18376 | { |
18377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18378 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
18379 | ||
18380 | wxPyEndAllowThreads(__tstate); | |
18381 | if (PyErr_Occurred()) SWIG_fail; | |
18382 | } | |
18383 | { | |
18384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18385 | } | |
18386 | return resultobj; | |
18387 | fail: | |
18388 | return NULL; | |
18389 | } | |
18390 | ||
18391 | ||
c32bde28 | 18392 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
18393 | PyObject *resultobj; |
18394 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18395 | bool result; | |
18396 | PyObject * obj0 = 0 ; | |
18397 | char *kwnames[] = { | |
18398 | (char *) "self", NULL | |
18399 | }; | |
18400 | ||
18401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
412d302d RD |
18404 | { |
18405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18406 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
18407 | ||
18408 | wxPyEndAllowThreads(__tstate); | |
18409 | if (PyErr_Occurred()) SWIG_fail; | |
18410 | } | |
18411 | { | |
18412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18413 | } | |
18414 | return resultobj; | |
18415 | fail: | |
18416 | return NULL; | |
18417 | } | |
18418 | ||
18419 | ||
c32bde28 | 18420 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18421 | PyObject *resultobj; |
18422 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18423 | bool result; | |
18424 | PyObject * obj0 = 0 ; | |
18425 | char *kwnames[] = { | |
18426 | (char *) "self", NULL | |
18427 | }; | |
18428 | ||
18429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18432 | { |
18433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18434 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
18435 | ||
18436 | wxPyEndAllowThreads(__tstate); | |
18437 | if (PyErr_Occurred()) SWIG_fail; | |
18438 | } | |
18439 | { | |
18440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18441 | } | |
18442 | return resultobj; | |
18443 | fail: | |
18444 | return NULL; | |
18445 | } | |
18446 | ||
18447 | ||
c32bde28 | 18448 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18449 | PyObject *resultobj; |
18450 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18451 | int result; | |
18452 | PyObject * obj0 = 0 ; | |
18453 | char *kwnames[] = { | |
18454 | (char *) "self", NULL | |
18455 | }; | |
18456 | ||
18457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18460 | { |
18461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18462 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
18463 | ||
18464 | wxPyEndAllowThreads(__tstate); | |
18465 | if (PyErr_Occurred()) SWIG_fail; | |
18466 | } | |
093d3ff1 RD |
18467 | { |
18468 | resultobj = SWIG_From_int((int)(result)); | |
18469 | } | |
d55e5bfc RD |
18470 | return resultobj; |
18471 | fail: | |
18472 | return NULL; | |
18473 | } | |
18474 | ||
18475 | ||
c32bde28 | 18476 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18477 | PyObject *resultobj; |
18478 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18479 | int result; | |
18480 | PyObject * obj0 = 0 ; | |
18481 | char *kwnames[] = { | |
18482 | (char *) "self", NULL | |
18483 | }; | |
18484 | ||
19272049 | 18485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
18486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18488 | { |
18489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 18490 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
18491 | |
18492 | wxPyEndAllowThreads(__tstate); | |
18493 | if (PyErr_Occurred()) SWIG_fail; | |
18494 | } | |
093d3ff1 RD |
18495 | { |
18496 | resultobj = SWIG_From_int((int)(result)); | |
18497 | } | |
d55e5bfc RD |
18498 | return resultobj; |
18499 | fail: | |
18500 | return NULL; | |
18501 | } | |
18502 | ||
18503 | ||
c32bde28 | 18504 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18505 | PyObject *resultobj; |
18506 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18507 | unsigned int result; | |
18508 | PyObject * obj0 = 0 ; | |
18509 | char *kwnames[] = { | |
18510 | (char *) "self", NULL | |
18511 | }; | |
18512 | ||
18513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18516 | { |
18517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18518 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
18519 | ||
18520 | wxPyEndAllowThreads(__tstate); | |
18521 | if (PyErr_Occurred()) SWIG_fail; | |
18522 | } | |
093d3ff1 RD |
18523 | { |
18524 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
18525 | } | |
d55e5bfc RD |
18526 | return resultobj; |
18527 | fail: | |
18528 | return NULL; | |
18529 | } | |
18530 | ||
18531 | ||
c32bde28 | 18532 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18533 | PyObject *resultobj; |
18534 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18535 | unsigned int result; | |
18536 | PyObject * obj0 = 0 ; | |
18537 | char *kwnames[] = { | |
18538 | (char *) "self", NULL | |
18539 | }; | |
18540 | ||
18541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18544 | { |
18545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18546 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
18547 | ||
18548 | wxPyEndAllowThreads(__tstate); | |
18549 | if (PyErr_Occurred()) SWIG_fail; | |
18550 | } | |
093d3ff1 RD |
18551 | { |
18552 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
18553 | } | |
d55e5bfc RD |
18554 | return resultobj; |
18555 | fail: | |
18556 | return NULL; | |
18557 | } | |
18558 | ||
18559 | ||
c32bde28 | 18560 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18561 | PyObject *resultobj; |
18562 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18563 | wxPoint result; | |
18564 | PyObject * obj0 = 0 ; | |
18565 | char *kwnames[] = { | |
18566 | (char *) "self", NULL | |
18567 | }; | |
18568 | ||
18569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18572 | { |
18573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18574 | result = (arg1)->GetPosition(); | |
18575 | ||
18576 | wxPyEndAllowThreads(__tstate); | |
18577 | if (PyErr_Occurred()) SWIG_fail; | |
18578 | } | |
18579 | { | |
18580 | wxPoint * resultptr; | |
093d3ff1 | 18581 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
18582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
18583 | } | |
18584 | return resultobj; | |
18585 | fail: | |
18586 | return NULL; | |
18587 | } | |
18588 | ||
18589 | ||
c32bde28 | 18590 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18591 | PyObject *resultobj; |
18592 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18593 | long *arg2 = (long *) 0 ; | |
18594 | long *arg3 = (long *) 0 ; | |
18595 | long temp2 ; | |
c32bde28 | 18596 | int res2 = 0 ; |
d55e5bfc | 18597 | long temp3 ; |
c32bde28 | 18598 | int res3 = 0 ; |
d55e5bfc RD |
18599 | PyObject * obj0 = 0 ; |
18600 | char *kwnames[] = { | |
18601 | (char *) "self", NULL | |
18602 | }; | |
18603 | ||
c32bde28 RD |
18604 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
18605 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 18606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
18607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18609 | { |
18610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18611 | (arg1)->GetPosition(arg2,arg3); | |
18612 | ||
18613 | wxPyEndAllowThreads(__tstate); | |
18614 | if (PyErr_Occurred()) SWIG_fail; | |
18615 | } | |
18616 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
18617 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
18618 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
18619 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
18620 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
18621 | return resultobj; |
18622 | fail: | |
18623 | return NULL; | |
18624 | } | |
18625 | ||
18626 | ||
c32bde28 | 18627 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18628 | PyObject *resultobj; |
18629 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18630 | int result; | |
18631 | PyObject * obj0 = 0 ; | |
18632 | char *kwnames[] = { | |
18633 | (char *) "self", NULL | |
18634 | }; | |
18635 | ||
18636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18637 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18638 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18639 | { |
18640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18641 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
18642 | ||
18643 | wxPyEndAllowThreads(__tstate); | |
18644 | if (PyErr_Occurred()) SWIG_fail; | |
18645 | } | |
093d3ff1 RD |
18646 | { |
18647 | resultobj = SWIG_From_int((int)(result)); | |
18648 | } | |
d55e5bfc RD |
18649 | return resultobj; |
18650 | fail: | |
18651 | return NULL; | |
18652 | } | |
18653 | ||
18654 | ||
c32bde28 | 18655 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18656 | PyObject *resultobj; |
18657 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18658 | int result; | |
18659 | PyObject * obj0 = 0 ; | |
18660 | char *kwnames[] = { | |
18661 | (char *) "self", NULL | |
18662 | }; | |
18663 | ||
18664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18667 | { |
18668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18669 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
18670 | ||
18671 | wxPyEndAllowThreads(__tstate); | |
18672 | if (PyErr_Occurred()) SWIG_fail; | |
18673 | } | |
093d3ff1 RD |
18674 | { |
18675 | resultobj = SWIG_From_int((int)(result)); | |
18676 | } | |
d55e5bfc RD |
18677 | return resultobj; |
18678 | fail: | |
18679 | return NULL; | |
18680 | } | |
18681 | ||
18682 | ||
c32bde28 | 18683 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18684 | PyObject *resultobj; |
18685 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18686 | int arg2 ; | |
18687 | PyObject * obj0 = 0 ; | |
18688 | PyObject * obj1 = 0 ; | |
18689 | char *kwnames[] = { | |
18690 | (char *) "self",(char *) "m_x", NULL | |
18691 | }; | |
18692 | ||
18693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18694 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18695 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18696 | { | |
18697 | arg2 = (int)(SWIG_As_int(obj1)); | |
18698 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18699 | } | |
d55e5bfc RD |
18700 | if (arg1) (arg1)->m_x = arg2; |
18701 | ||
18702 | Py_INCREF(Py_None); resultobj = Py_None; | |
18703 | return resultobj; | |
18704 | fail: | |
18705 | return NULL; | |
18706 | } | |
18707 | ||
18708 | ||
c32bde28 | 18709 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18710 | PyObject *resultobj; |
18711 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18712 | int result; | |
18713 | PyObject * obj0 = 0 ; | |
18714 | char *kwnames[] = { | |
18715 | (char *) "self", NULL | |
18716 | }; | |
18717 | ||
18718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18721 | result = (int) ((arg1)->m_x); |
18722 | ||
093d3ff1 RD |
18723 | { |
18724 | resultobj = SWIG_From_int((int)(result)); | |
18725 | } | |
d55e5bfc RD |
18726 | return resultobj; |
18727 | fail: | |
18728 | return NULL; | |
18729 | } | |
18730 | ||
18731 | ||
c32bde28 | 18732 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18733 | PyObject *resultobj; |
18734 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18735 | int arg2 ; | |
18736 | PyObject * obj0 = 0 ; | |
18737 | PyObject * obj1 = 0 ; | |
18738 | char *kwnames[] = { | |
18739 | (char *) "self",(char *) "m_y", NULL | |
18740 | }; | |
18741 | ||
18742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18745 | { | |
18746 | arg2 = (int)(SWIG_As_int(obj1)); | |
18747 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18748 | } | |
d55e5bfc RD |
18749 | if (arg1) (arg1)->m_y = arg2; |
18750 | ||
18751 | Py_INCREF(Py_None); resultobj = Py_None; | |
18752 | return resultobj; | |
18753 | fail: | |
18754 | return NULL; | |
18755 | } | |
18756 | ||
18757 | ||
c32bde28 | 18758 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18759 | PyObject *resultobj; |
18760 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18761 | int result; | |
18762 | PyObject * obj0 = 0 ; | |
18763 | char *kwnames[] = { | |
18764 | (char *) "self", NULL | |
18765 | }; | |
18766 | ||
18767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18770 | result = (int) ((arg1)->m_y); |
18771 | ||
093d3ff1 RD |
18772 | { |
18773 | resultobj = SWIG_From_int((int)(result)); | |
18774 | } | |
d55e5bfc RD |
18775 | return resultobj; |
18776 | fail: | |
18777 | return NULL; | |
18778 | } | |
18779 | ||
18780 | ||
c32bde28 | 18781 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18782 | PyObject *resultobj; |
18783 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18784 | long arg2 ; | |
18785 | PyObject * obj0 = 0 ; | |
18786 | PyObject * obj1 = 0 ; | |
18787 | char *kwnames[] = { | |
18788 | (char *) "self",(char *) "m_keyCode", NULL | |
18789 | }; | |
18790 | ||
18791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18794 | { | |
18795 | arg2 = (long)(SWIG_As_long(obj1)); | |
18796 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18797 | } | |
d55e5bfc RD |
18798 | if (arg1) (arg1)->m_keyCode = arg2; |
18799 | ||
18800 | Py_INCREF(Py_None); resultobj = Py_None; | |
18801 | return resultobj; | |
18802 | fail: | |
18803 | return NULL; | |
18804 | } | |
18805 | ||
18806 | ||
c32bde28 | 18807 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18808 | PyObject *resultobj; |
18809 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18810 | long result; | |
18811 | PyObject * obj0 = 0 ; | |
18812 | char *kwnames[] = { | |
18813 | (char *) "self", NULL | |
18814 | }; | |
18815 | ||
18816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18819 | result = (long) ((arg1)->m_keyCode); |
18820 | ||
093d3ff1 RD |
18821 | { |
18822 | resultobj = SWIG_From_long((long)(result)); | |
18823 | } | |
d55e5bfc RD |
18824 | return resultobj; |
18825 | fail: | |
18826 | return NULL; | |
18827 | } | |
18828 | ||
18829 | ||
c32bde28 | 18830 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18831 | PyObject *resultobj; |
18832 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18833 | bool arg2 ; | |
18834 | PyObject * obj0 = 0 ; | |
18835 | PyObject * obj1 = 0 ; | |
18836 | char *kwnames[] = { | |
18837 | (char *) "self",(char *) "m_controlDown", NULL | |
18838 | }; | |
18839 | ||
18840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18843 | { | |
18844 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18845 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18846 | } | |
d55e5bfc RD |
18847 | if (arg1) (arg1)->m_controlDown = arg2; |
18848 | ||
18849 | Py_INCREF(Py_None); resultobj = Py_None; | |
18850 | return resultobj; | |
18851 | fail: | |
18852 | return NULL; | |
18853 | } | |
18854 | ||
18855 | ||
c32bde28 | 18856 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18857 | PyObject *resultobj; |
18858 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18859 | bool result; | |
18860 | PyObject * obj0 = 0 ; | |
18861 | char *kwnames[] = { | |
18862 | (char *) "self", NULL | |
18863 | }; | |
18864 | ||
18865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18868 | result = (bool) ((arg1)->m_controlDown); |
18869 | ||
18870 | { | |
18871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18872 | } | |
18873 | return resultobj; | |
18874 | fail: | |
18875 | return NULL; | |
18876 | } | |
18877 | ||
18878 | ||
c32bde28 | 18879 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18880 | PyObject *resultobj; |
18881 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18882 | bool arg2 ; | |
18883 | PyObject * obj0 = 0 ; | |
18884 | PyObject * obj1 = 0 ; | |
18885 | char *kwnames[] = { | |
18886 | (char *) "self",(char *) "m_shiftDown", NULL | |
18887 | }; | |
18888 | ||
18889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18892 | { | |
18893 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18894 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18895 | } | |
d55e5bfc RD |
18896 | if (arg1) (arg1)->m_shiftDown = arg2; |
18897 | ||
18898 | Py_INCREF(Py_None); resultobj = Py_None; | |
18899 | return resultobj; | |
18900 | fail: | |
18901 | return NULL; | |
18902 | } | |
18903 | ||
18904 | ||
c32bde28 | 18905 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18906 | PyObject *resultobj; |
18907 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18908 | bool result; | |
18909 | PyObject * obj0 = 0 ; | |
18910 | char *kwnames[] = { | |
18911 | (char *) "self", NULL | |
18912 | }; | |
18913 | ||
18914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18915 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18916 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18917 | result = (bool) ((arg1)->m_shiftDown); |
18918 | ||
18919 | { | |
18920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18921 | } | |
18922 | return resultobj; | |
18923 | fail: | |
18924 | return NULL; | |
18925 | } | |
18926 | ||
18927 | ||
c32bde28 | 18928 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18929 | PyObject *resultobj; |
18930 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18931 | bool arg2 ; | |
18932 | PyObject * obj0 = 0 ; | |
18933 | PyObject * obj1 = 0 ; | |
18934 | char *kwnames[] = { | |
18935 | (char *) "self",(char *) "m_altDown", NULL | |
18936 | }; | |
18937 | ||
18938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18941 | { | |
18942 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18944 | } | |
d55e5bfc RD |
18945 | if (arg1) (arg1)->m_altDown = arg2; |
18946 | ||
18947 | Py_INCREF(Py_None); resultobj = Py_None; | |
18948 | return resultobj; | |
18949 | fail: | |
18950 | return NULL; | |
18951 | } | |
18952 | ||
18953 | ||
c32bde28 | 18954 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18955 | PyObject *resultobj; |
18956 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18957 | bool result; | |
18958 | PyObject * obj0 = 0 ; | |
18959 | char *kwnames[] = { | |
18960 | (char *) "self", NULL | |
18961 | }; | |
18962 | ||
18963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18966 | result = (bool) ((arg1)->m_altDown); |
18967 | ||
18968 | { | |
18969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18970 | } | |
18971 | return resultobj; | |
18972 | fail: | |
18973 | return NULL; | |
18974 | } | |
18975 | ||
18976 | ||
c32bde28 | 18977 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18978 | PyObject *resultobj; |
18979 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18980 | bool arg2 ; | |
18981 | PyObject * obj0 = 0 ; | |
18982 | PyObject * obj1 = 0 ; | |
18983 | char *kwnames[] = { | |
18984 | (char *) "self",(char *) "m_metaDown", NULL | |
18985 | }; | |
18986 | ||
18987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18990 | { | |
18991 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18992 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18993 | } | |
d55e5bfc RD |
18994 | if (arg1) (arg1)->m_metaDown = arg2; |
18995 | ||
18996 | Py_INCREF(Py_None); resultobj = Py_None; | |
18997 | return resultobj; | |
18998 | fail: | |
18999 | return NULL; | |
19000 | } | |
19001 | ||
19002 | ||
c32bde28 | 19003 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19004 | PyObject *resultobj; |
19005 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19006 | bool result; | |
19007 | PyObject * obj0 = 0 ; | |
19008 | char *kwnames[] = { | |
19009 | (char *) "self", NULL | |
19010 | }; | |
19011 | ||
19012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19015 | result = (bool) ((arg1)->m_metaDown); |
19016 | ||
19017 | { | |
19018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19019 | } | |
19020 | return resultobj; | |
19021 | fail: | |
19022 | return NULL; | |
19023 | } | |
19024 | ||
19025 | ||
c32bde28 | 19026 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19027 | PyObject *resultobj; |
19028 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19029 | bool arg2 ; | |
19030 | PyObject * obj0 = 0 ; | |
19031 | PyObject * obj1 = 0 ; | |
19032 | char *kwnames[] = { | |
19033 | (char *) "self",(char *) "m_scanCode", NULL | |
19034 | }; | |
19035 | ||
19036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19037 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19038 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19039 | { | |
19040 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19041 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19042 | } | |
d55e5bfc RD |
19043 | if (arg1) (arg1)->m_scanCode = arg2; |
19044 | ||
19045 | Py_INCREF(Py_None); resultobj = Py_None; | |
19046 | return resultobj; | |
19047 | fail: | |
19048 | return NULL; | |
19049 | } | |
19050 | ||
19051 | ||
c32bde28 | 19052 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19053 | PyObject *resultobj; |
19054 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19055 | bool result; | |
19056 | PyObject * obj0 = 0 ; | |
19057 | char *kwnames[] = { | |
19058 | (char *) "self", NULL | |
19059 | }; | |
19060 | ||
19061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19064 | result = (bool) ((arg1)->m_scanCode); |
19065 | ||
19066 | { | |
19067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19068 | } | |
19069 | return resultobj; | |
19070 | fail: | |
19071 | return NULL; | |
19072 | } | |
19073 | ||
19074 | ||
c32bde28 | 19075 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19076 | PyObject *resultobj; |
19077 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19078 | unsigned int arg2 ; | |
19079 | PyObject * obj0 = 0 ; | |
19080 | PyObject * obj1 = 0 ; | |
19081 | char *kwnames[] = { | |
19082 | (char *) "self",(char *) "m_rawCode", NULL | |
19083 | }; | |
19084 | ||
19085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19088 | { | |
19089 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
19090 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19091 | } | |
d55e5bfc RD |
19092 | if (arg1) (arg1)->m_rawCode = arg2; |
19093 | ||
19094 | Py_INCREF(Py_None); resultobj = Py_None; | |
19095 | return resultobj; | |
19096 | fail: | |
19097 | return NULL; | |
19098 | } | |
19099 | ||
19100 | ||
c32bde28 | 19101 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19102 | PyObject *resultobj; |
19103 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19104 | unsigned int result; | |
19105 | PyObject * obj0 = 0 ; | |
19106 | char *kwnames[] = { | |
19107 | (char *) "self", NULL | |
19108 | }; | |
19109 | ||
19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19113 | result = (unsigned int) ((arg1)->m_rawCode); |
19114 | ||
093d3ff1 RD |
19115 | { |
19116 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
19117 | } | |
d55e5bfc RD |
19118 | return resultobj; |
19119 | fail: | |
19120 | return NULL; | |
19121 | } | |
19122 | ||
19123 | ||
c32bde28 | 19124 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19125 | PyObject *resultobj; |
19126 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19127 | unsigned int arg2 ; | |
19128 | PyObject * obj0 = 0 ; | |
19129 | PyObject * obj1 = 0 ; | |
19130 | char *kwnames[] = { | |
19131 | (char *) "self",(char *) "m_rawFlags", NULL | |
19132 | }; | |
19133 | ||
19134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19137 | { | |
19138 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
19139 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19140 | } | |
d55e5bfc RD |
19141 | if (arg1) (arg1)->m_rawFlags = arg2; |
19142 | ||
19143 | Py_INCREF(Py_None); resultobj = Py_None; | |
19144 | return resultobj; | |
19145 | fail: | |
19146 | return NULL; | |
19147 | } | |
19148 | ||
19149 | ||
c32bde28 | 19150 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19151 | PyObject *resultobj; |
19152 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19153 | unsigned int result; | |
19154 | PyObject * obj0 = 0 ; | |
19155 | char *kwnames[] = { | |
19156 | (char *) "self", NULL | |
19157 | }; | |
19158 | ||
19159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19162 | result = (unsigned int) ((arg1)->m_rawFlags); |
19163 | ||
093d3ff1 RD |
19164 | { |
19165 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
19166 | } | |
d55e5bfc RD |
19167 | return resultobj; |
19168 | fail: | |
19169 | return NULL; | |
19170 | } | |
19171 | ||
19172 | ||
c32bde28 | 19173 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19174 | PyObject *obj; |
19175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19176 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
19177 | Py_INCREF(obj); | |
19178 | return Py_BuildValue((char *)""); | |
19179 | } | |
c32bde28 | 19180 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19181 | PyObject *resultobj; |
19182 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
19183 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
19184 | int arg2 = (int) 0 ; | |
19185 | wxSizeEvent *result; | |
19186 | wxSize temp1 ; | |
19187 | PyObject * obj0 = 0 ; | |
19188 | PyObject * obj1 = 0 ; | |
19189 | char *kwnames[] = { | |
19190 | (char *) "sz",(char *) "winid", NULL | |
19191 | }; | |
19192 | ||
19193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
19194 | if (obj0) { | |
19195 | { | |
19196 | arg1 = &temp1; | |
19197 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
19198 | } | |
19199 | } | |
19200 | if (obj1) { | |
093d3ff1 RD |
19201 | { |
19202 | arg2 = (int)(SWIG_As_int(obj1)); | |
19203 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19204 | } | |
d55e5bfc RD |
19205 | } |
19206 | { | |
19207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19208 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
19209 | ||
19210 | wxPyEndAllowThreads(__tstate); | |
19211 | if (PyErr_Occurred()) SWIG_fail; | |
19212 | } | |
19213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
19214 | return resultobj; | |
19215 | fail: | |
19216 | return NULL; | |
19217 | } | |
19218 | ||
19219 | ||
c32bde28 | 19220 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19221 | PyObject *resultobj; |
19222 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19223 | wxSize result; | |
19224 | PyObject * obj0 = 0 ; | |
19225 | char *kwnames[] = { | |
19226 | (char *) "self", NULL | |
19227 | }; | |
19228 | ||
19229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19232 | { |
19233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19234 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
19235 | ||
19236 | wxPyEndAllowThreads(__tstate); | |
19237 | if (PyErr_Occurred()) SWIG_fail; | |
19238 | } | |
19239 | { | |
19240 | wxSize * resultptr; | |
093d3ff1 | 19241 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
19242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
19243 | } | |
19244 | return resultobj; | |
19245 | fail: | |
19246 | return NULL; | |
19247 | } | |
19248 | ||
19249 | ||
c32bde28 | 19250 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19251 | PyObject *resultobj; |
19252 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19253 | wxRect result; | |
19254 | PyObject * obj0 = 0 ; | |
19255 | char *kwnames[] = { | |
19256 | (char *) "self", NULL | |
19257 | }; | |
19258 | ||
19259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19262 | { |
19263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19264 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
19265 | ||
19266 | wxPyEndAllowThreads(__tstate); | |
19267 | if (PyErr_Occurred()) SWIG_fail; | |
19268 | } | |
19269 | { | |
19270 | wxRect * resultptr; | |
093d3ff1 | 19271 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
19272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
19273 | } | |
19274 | return resultobj; | |
19275 | fail: | |
19276 | return NULL; | |
19277 | } | |
19278 | ||
19279 | ||
c32bde28 | 19280 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19281 | PyObject *resultobj; |
19282 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19283 | wxRect arg2 ; | |
d55e5bfc RD |
19284 | PyObject * obj0 = 0 ; |
19285 | PyObject * obj1 = 0 ; | |
19286 | char *kwnames[] = { | |
19287 | (char *) "self",(char *) "rect", NULL | |
19288 | }; | |
19289 | ||
19290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19293 | { | |
19294 | wxRect * argp; | |
19295 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION); | |
19296 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19297 | if (argp == NULL) { | |
19298 | SWIG_null_ref("wxRect"); | |
19299 | } | |
19300 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19301 | arg2 = *argp; | |
19302 | } | |
d55e5bfc RD |
19303 | { |
19304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19305 | (arg1)->SetRect(arg2); | |
19306 | ||
19307 | wxPyEndAllowThreads(__tstate); | |
19308 | if (PyErr_Occurred()) SWIG_fail; | |
19309 | } | |
19310 | Py_INCREF(Py_None); resultobj = Py_None; | |
19311 | return resultobj; | |
19312 | fail: | |
19313 | return NULL; | |
19314 | } | |
19315 | ||
19316 | ||
c32bde28 | 19317 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19318 | PyObject *resultobj; |
19319 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19320 | wxSize arg2 ; | |
d55e5bfc RD |
19321 | PyObject * obj0 = 0 ; |
19322 | PyObject * obj1 = 0 ; | |
19323 | char *kwnames[] = { | |
19324 | (char *) "self",(char *) "size", NULL | |
19325 | }; | |
19326 | ||
19327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19330 | { | |
19331 | wxSize * argp; | |
19332 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION); | |
19333 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19334 | if (argp == NULL) { | |
19335 | SWIG_null_ref("wxSize"); | |
19336 | } | |
19337 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19338 | arg2 = *argp; | |
19339 | } | |
d55e5bfc RD |
19340 | { |
19341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19342 | wxSizeEvent_SetSize(arg1,arg2); | |
19343 | ||
19344 | wxPyEndAllowThreads(__tstate); | |
19345 | if (PyErr_Occurred()) SWIG_fail; | |
19346 | } | |
19347 | Py_INCREF(Py_None); resultobj = Py_None; | |
19348 | return resultobj; | |
19349 | fail: | |
19350 | return NULL; | |
19351 | } | |
19352 | ||
19353 | ||
c32bde28 | 19354 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19355 | PyObject *resultobj; |
19356 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19357 | wxSize *arg2 = (wxSize *) 0 ; | |
19358 | PyObject * obj0 = 0 ; | |
19359 | PyObject * obj1 = 0 ; | |
19360 | char *kwnames[] = { | |
19361 | (char *) "self",(char *) "m_size", NULL | |
19362 | }; | |
19363 | ||
19364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19367 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); | |
19368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19369 | if (arg1) (arg1)->m_size = *arg2; |
19370 | ||
19371 | Py_INCREF(Py_None); resultobj = Py_None; | |
19372 | return resultobj; | |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
c32bde28 | 19378 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19379 | PyObject *resultobj; |
19380 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19381 | wxSize *result; | |
19382 | PyObject * obj0 = 0 ; | |
19383 | char *kwnames[] = { | |
19384 | (char *) "self", NULL | |
19385 | }; | |
19386 | ||
19387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19388 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19389 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19390 | result = (wxSize *)& ((arg1)->m_size); |
19391 | ||
19392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
19393 | return resultobj; | |
19394 | fail: | |
19395 | return NULL; | |
19396 | } | |
19397 | ||
19398 | ||
c32bde28 | 19399 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19400 | PyObject *resultobj; |
19401 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19402 | wxRect *arg2 = (wxRect *) 0 ; | |
19403 | PyObject * obj0 = 0 ; | |
19404 | PyObject * obj1 = 0 ; | |
19405 | char *kwnames[] = { | |
19406 | (char *) "self",(char *) "m_rect", NULL | |
19407 | }; | |
19408 | ||
19409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19412 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
19413 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19414 | if (arg1) (arg1)->m_rect = *arg2; |
19415 | ||
19416 | Py_INCREF(Py_None); resultobj = Py_None; | |
19417 | return resultobj; | |
19418 | fail: | |
19419 | return NULL; | |
19420 | } | |
19421 | ||
19422 | ||
c32bde28 | 19423 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19424 | PyObject *resultobj; |
19425 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19426 | wxRect *result; | |
19427 | PyObject * obj0 = 0 ; | |
19428 | char *kwnames[] = { | |
19429 | (char *) "self", NULL | |
19430 | }; | |
19431 | ||
19432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19433 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19434 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19435 | result = (wxRect *)& ((arg1)->m_rect); |
19436 | ||
19437 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
19438 | return resultobj; | |
19439 | fail: | |
19440 | return NULL; | |
19441 | } | |
19442 | ||
19443 | ||
c32bde28 | 19444 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19445 | PyObject *obj; |
19446 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19447 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
19448 | Py_INCREF(obj); | |
19449 | return Py_BuildValue((char *)""); | |
19450 | } | |
c32bde28 | 19451 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19452 | PyObject *resultobj; |
19453 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
19454 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
19455 | int arg2 = (int) 0 ; | |
19456 | wxMoveEvent *result; | |
19457 | wxPoint temp1 ; | |
19458 | PyObject * obj0 = 0 ; | |
19459 | PyObject * obj1 = 0 ; | |
19460 | char *kwnames[] = { | |
19461 | (char *) "pos",(char *) "winid", NULL | |
19462 | }; | |
19463 | ||
19464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
19465 | if (obj0) { | |
19466 | { | |
19467 | arg1 = &temp1; | |
19468 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
19469 | } | |
19470 | } | |
19471 | if (obj1) { | |
093d3ff1 RD |
19472 | { |
19473 | arg2 = (int)(SWIG_As_int(obj1)); | |
19474 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19475 | } | |
d55e5bfc RD |
19476 | } |
19477 | { | |
19478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19479 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
19480 | ||
19481 | wxPyEndAllowThreads(__tstate); | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
19483 | } | |
19484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
19485 | return resultobj; | |
19486 | fail: | |
19487 | return NULL; | |
19488 | } | |
19489 | ||
19490 | ||
c32bde28 | 19491 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19492 | PyObject *resultobj; |
19493 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
19494 | wxPoint result; | |
19495 | PyObject * obj0 = 0 ; | |
19496 | char *kwnames[] = { | |
19497 | (char *) "self", NULL | |
19498 | }; | |
19499 | ||
19500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
19502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19503 | { |
19504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19505 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
19506 | ||
19507 | wxPyEndAllowThreads(__tstate); | |
19508 | if (PyErr_Occurred()) SWIG_fail; | |
19509 | } | |
19510 | { | |
19511 | wxPoint * resultptr; | |
093d3ff1 | 19512 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
19513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
19514 | } | |
19515 | return resultobj; | |
19516 | fail: | |
19517 | return NULL; | |
19518 | } | |
19519 | ||
19520 | ||
c32bde28 | 19521 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19522 | PyObject *resultobj; |
19523 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
19524 | wxRect result; | |
19525 | PyObject * obj0 = 0 ; | |
19526 | char *kwnames[] = { | |
19527 | (char *) "self", NULL | |
19528 | }; | |
19529 | ||
19530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
19532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19533 | { |
19534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19535 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
19536 | ||
19537 | wxPyEndAllowThreads(__tstate); | |
19538 | if (PyErr_Occurred()) SWIG_fail; | |
19539 | } | |
19540 | { | |
19541 | wxRect * resultptr; | |
093d3ff1 | 19542 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
19543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
19544 | } | |
19545 | return resultobj; | |
19546 | fail: | |
19547 | return NULL; | |
19548 | } | |
19549 | ||
19550 | ||
c32bde28 | 19551 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19552 | PyObject *resultobj; |
19553 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
fef4c27a RD |
19554 | wxRect *arg2 = 0 ; |
19555 | wxRect temp2 ; | |
d55e5bfc RD |
19556 | PyObject * obj0 = 0 ; |
19557 | PyObject * obj1 = 0 ; | |
19558 | char *kwnames[] = { | |
19559 | (char *) "self",(char *) "rect", NULL | |
19560 | }; | |
19561 | ||
19562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
19564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19565 | { | |
fef4c27a RD |
19566 | arg2 = &temp2; |
19567 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
093d3ff1 | 19568 | } |
d55e5bfc RD |
19569 | { |
19570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 19571 | (arg1)->SetRect((wxRect const &)*arg2); |
d55e5bfc RD |
19572 | |
19573 | wxPyEndAllowThreads(__tstate); | |
19574 | if (PyErr_Occurred()) SWIG_fail; | |
19575 | } | |
19576 | Py_INCREF(Py_None); resultobj = Py_None; | |
19577 | return resultobj; | |
19578 | fail: | |
19579 | return NULL; | |
19580 | } | |
19581 | ||
19582 | ||
c32bde28 | 19583 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19584 | PyObject *resultobj; |
19585 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
fef4c27a RD |
19586 | wxPoint *arg2 = 0 ; |
19587 | wxPoint temp2 ; | |
d55e5bfc RD |
19588 | PyObject * obj0 = 0 ; |
19589 | PyObject * obj1 = 0 ; | |
19590 | char *kwnames[] = { | |
19591 | (char *) "self",(char *) "pos", NULL | |
19592 | }; | |
19593 | ||
19594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
19596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19597 | { | |
fef4c27a RD |
19598 | arg2 = &temp2; |
19599 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
093d3ff1 | 19600 | } |
d55e5bfc RD |
19601 | { |
19602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 19603 | (arg1)->SetPosition((wxPoint const &)*arg2); |
d55e5bfc RD |
19604 | |
19605 | wxPyEndAllowThreads(__tstate); | |
19606 | if (PyErr_Occurred()) SWIG_fail; | |
19607 | } | |
19608 | Py_INCREF(Py_None); resultobj = Py_None; | |
19609 | return resultobj; | |
19610 | fail: | |
19611 | return NULL; | |
19612 | } | |
19613 | ||
19614 | ||
c32bde28 | 19615 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19616 | PyObject *obj; |
19617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19618 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
19619 | Py_INCREF(obj); | |
19620 | return Py_BuildValue((char *)""); | |
19621 | } | |
c32bde28 | 19622 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19623 | PyObject *resultobj; |
19624 | int arg1 = (int) 0 ; | |
19625 | wxPaintEvent *result; | |
19626 | PyObject * obj0 = 0 ; | |
19627 | char *kwnames[] = { | |
19628 | (char *) "Id", NULL | |
19629 | }; | |
19630 | ||
19631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
19632 | if (obj0) { | |
093d3ff1 RD |
19633 | { |
19634 | arg1 = (int)(SWIG_As_int(obj0)); | |
19635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19636 | } | |
d55e5bfc RD |
19637 | } |
19638 | { | |
19639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19640 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
19641 | ||
19642 | wxPyEndAllowThreads(__tstate); | |
19643 | if (PyErr_Occurred()) SWIG_fail; | |
19644 | } | |
19645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
19646 | return resultobj; | |
19647 | fail: | |
19648 | return NULL; | |
19649 | } | |
19650 | ||
19651 | ||
c32bde28 | 19652 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19653 | PyObject *obj; |
19654 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19655 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
19656 | Py_INCREF(obj); | |
19657 | return Py_BuildValue((char *)""); | |
19658 | } | |
c32bde28 | 19659 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19660 | PyObject *resultobj; |
19661 | int arg1 = (int) 0 ; | |
19662 | wxNcPaintEvent *result; | |
19663 | PyObject * obj0 = 0 ; | |
19664 | char *kwnames[] = { | |
19665 | (char *) "winid", NULL | |
19666 | }; | |
19667 | ||
19668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
19669 | if (obj0) { | |
093d3ff1 RD |
19670 | { |
19671 | arg1 = (int)(SWIG_As_int(obj0)); | |
19672 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19673 | } | |
d55e5bfc RD |
19674 | } |
19675 | { | |
19676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19677 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
19678 | ||
19679 | wxPyEndAllowThreads(__tstate); | |
19680 | if (PyErr_Occurred()) SWIG_fail; | |
19681 | } | |
19682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
19683 | return resultobj; | |
19684 | fail: | |
19685 | return NULL; | |
19686 | } | |
19687 | ||
19688 | ||
c32bde28 | 19689 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19690 | PyObject *obj; |
19691 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19692 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
19693 | Py_INCREF(obj); | |
19694 | return Py_BuildValue((char *)""); | |
19695 | } | |
c32bde28 | 19696 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19697 | PyObject *resultobj; |
19698 | int arg1 = (int) 0 ; | |
19699 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
19700 | wxEraseEvent *result; | |
19701 | PyObject * obj0 = 0 ; | |
19702 | PyObject * obj1 = 0 ; | |
19703 | char *kwnames[] = { | |
19704 | (char *) "Id",(char *) "dc", NULL | |
19705 | }; | |
19706 | ||
19707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
19708 | if (obj0) { | |
093d3ff1 RD |
19709 | { |
19710 | arg1 = (int)(SWIG_As_int(obj0)); | |
19711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19712 | } | |
d55e5bfc RD |
19713 | } |
19714 | if (obj1) { | |
093d3ff1 RD |
19715 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
19716 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19717 | } |
19718 | { | |
19719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19720 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
19721 | ||
19722 | wxPyEndAllowThreads(__tstate); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
19725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
19726 | return resultobj; | |
19727 | fail: | |
19728 | return NULL; | |
19729 | } | |
19730 | ||
19731 | ||
c32bde28 | 19732 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19733 | PyObject *resultobj; |
19734 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
19735 | wxDC *result; | |
19736 | PyObject * obj0 = 0 ; | |
19737 | char *kwnames[] = { | |
19738 | (char *) "self", NULL | |
19739 | }; | |
19740 | ||
19741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEraseEvent, SWIG_POINTER_EXCEPTION | 0); |
19743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19744 | { |
19745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19746 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
19747 | ||
19748 | wxPyEndAllowThreads(__tstate); | |
19749 | if (PyErr_Occurred()) SWIG_fail; | |
19750 | } | |
19751 | { | |
412d302d | 19752 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19753 | } |
19754 | return resultobj; | |
19755 | fail: | |
19756 | return NULL; | |
19757 | } | |
19758 | ||
19759 | ||
c32bde28 | 19760 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19761 | PyObject *obj; |
19762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19763 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
19764 | Py_INCREF(obj); | |
19765 | return Py_BuildValue((char *)""); | |
19766 | } | |
c32bde28 | 19767 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19768 | PyObject *resultobj; |
19769 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19770 | int arg2 = (int) 0 ; | |
19771 | wxFocusEvent *result; | |
19772 | PyObject * obj0 = 0 ; | |
19773 | PyObject * obj1 = 0 ; | |
19774 | char *kwnames[] = { | |
19775 | (char *) "type",(char *) "winid", NULL | |
19776 | }; | |
19777 | ||
19778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
19779 | if (obj0) { | |
093d3ff1 RD |
19780 | { |
19781 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
19782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19783 | } | |
d55e5bfc RD |
19784 | } |
19785 | if (obj1) { | |
093d3ff1 RD |
19786 | { |
19787 | arg2 = (int)(SWIG_As_int(obj1)); | |
19788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19789 | } | |
d55e5bfc RD |
19790 | } |
19791 | { | |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
19794 | ||
19795 | wxPyEndAllowThreads(__tstate); | |
19796 | if (PyErr_Occurred()) SWIG_fail; | |
19797 | } | |
19798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
19799 | return resultobj; | |
19800 | fail: | |
19801 | return NULL; | |
19802 | } | |
19803 | ||
19804 | ||
c32bde28 | 19805 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19806 | PyObject *resultobj; |
19807 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
19808 | wxWindow *result; | |
19809 | PyObject * obj0 = 0 ; | |
19810 | char *kwnames[] = { | |
19811 | (char *) "self", NULL | |
19812 | }; | |
19813 | ||
19814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19815 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19816 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19817 | { |
19818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19819 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
19820 | ||
19821 | wxPyEndAllowThreads(__tstate); | |
19822 | if (PyErr_Occurred()) SWIG_fail; | |
19823 | } | |
19824 | { | |
412d302d | 19825 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19826 | } |
19827 | return resultobj; | |
19828 | fail: | |
19829 | return NULL; | |
19830 | } | |
19831 | ||
19832 | ||
c32bde28 | 19833 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19834 | PyObject *resultobj; |
19835 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
19836 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19837 | PyObject * obj0 = 0 ; | |
19838 | PyObject * obj1 = 0 ; | |
19839 | char *kwnames[] = { | |
19840 | (char *) "self",(char *) "win", NULL | |
19841 | }; | |
19842 | ||
19843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19846 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
19847 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19848 | { |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | (arg1)->SetWindow(arg2); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | Py_INCREF(Py_None); resultobj = Py_None; | |
19856 | return resultobj; | |
19857 | fail: | |
19858 | return NULL; | |
19859 | } | |
19860 | ||
19861 | ||
c32bde28 | 19862 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19863 | PyObject *obj; |
19864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19865 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
19866 | Py_INCREF(obj); | |
19867 | return Py_BuildValue((char *)""); | |
19868 | } | |
c32bde28 | 19869 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19870 | PyObject *resultobj; |
19871 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19872 | wxChildFocusEvent *result; | |
19873 | PyObject * obj0 = 0 ; | |
19874 | char *kwnames[] = { | |
19875 | (char *) "win", NULL | |
19876 | }; | |
19877 | ||
19878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
19879 | if (obj0) { | |
093d3ff1 RD |
19880 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
19881 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19882 | } |
19883 | { | |
19884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19885 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
19886 | ||
19887 | wxPyEndAllowThreads(__tstate); | |
19888 | if (PyErr_Occurred()) SWIG_fail; | |
19889 | } | |
19890 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
19891 | return resultobj; | |
19892 | fail: | |
19893 | return NULL; | |
19894 | } | |
19895 | ||
19896 | ||
c32bde28 | 19897 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19898 | PyObject *resultobj; |
19899 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
19900 | wxWindow *result; | |
19901 | PyObject * obj0 = 0 ; | |
19902 | char *kwnames[] = { | |
19903 | (char *) "self", NULL | |
19904 | }; | |
19905 | ||
19906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChildFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19909 | { |
19910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19911 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
19912 | ||
19913 | wxPyEndAllowThreads(__tstate); | |
19914 | if (PyErr_Occurred()) SWIG_fail; | |
19915 | } | |
19916 | { | |
412d302d | 19917 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19918 | } |
19919 | return resultobj; | |
19920 | fail: | |
19921 | return NULL; | |
19922 | } | |
19923 | ||
19924 | ||
c32bde28 | 19925 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19926 | PyObject *obj; |
19927 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19928 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
19929 | Py_INCREF(obj); | |
19930 | return Py_BuildValue((char *)""); | |
19931 | } | |
c32bde28 | 19932 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19933 | PyObject *resultobj; |
19934 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
ae8162c8 | 19935 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19936 | int arg3 = (int) 0 ; |
19937 | wxActivateEvent *result; | |
19938 | PyObject * obj0 = 0 ; | |
19939 | PyObject * obj1 = 0 ; | |
19940 | PyObject * obj2 = 0 ; | |
19941 | char *kwnames[] = { | |
19942 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
19943 | }; | |
19944 | ||
19945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19946 | if (obj0) { | |
093d3ff1 RD |
19947 | { |
19948 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
19949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19950 | } | |
d55e5bfc RD |
19951 | } |
19952 | if (obj1) { | |
093d3ff1 RD |
19953 | { |
19954 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19955 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19956 | } | |
d55e5bfc RD |
19957 | } |
19958 | if (obj2) { | |
093d3ff1 RD |
19959 | { |
19960 | arg3 = (int)(SWIG_As_int(obj2)); | |
19961 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19962 | } | |
d55e5bfc RD |
19963 | } |
19964 | { | |
19965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19966 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
19967 | ||
19968 | wxPyEndAllowThreads(__tstate); | |
19969 | if (PyErr_Occurred()) SWIG_fail; | |
19970 | } | |
19971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
19972 | return resultobj; | |
19973 | fail: | |
19974 | return NULL; | |
19975 | } | |
19976 | ||
19977 | ||
c32bde28 | 19978 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19979 | PyObject *resultobj; |
19980 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
19981 | bool result; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | char *kwnames[] = { | |
19984 | (char *) "self", NULL | |
19985 | }; | |
19986 | ||
19987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActivateEvent, SWIG_POINTER_EXCEPTION | 0); |
19989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19990 | { |
19991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19992 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
19993 | ||
19994 | wxPyEndAllowThreads(__tstate); | |
19995 | if (PyErr_Occurred()) SWIG_fail; | |
19996 | } | |
19997 | { | |
19998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19999 | } | |
20000 | return resultobj; | |
20001 | fail: | |
20002 | return NULL; | |
20003 | } | |
20004 | ||
20005 | ||
c32bde28 | 20006 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20007 | PyObject *obj; |
20008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20009 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
20010 | Py_INCREF(obj); | |
20011 | return Py_BuildValue((char *)""); | |
20012 | } | |
c32bde28 | 20013 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20014 | PyObject *resultobj; |
20015 | int arg1 = (int) 0 ; | |
20016 | wxInitDialogEvent *result; | |
20017 | PyObject * obj0 = 0 ; | |
20018 | char *kwnames[] = { | |
20019 | (char *) "Id", NULL | |
20020 | }; | |
20021 | ||
20022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
20023 | if (obj0) { | |
093d3ff1 RD |
20024 | { |
20025 | arg1 = (int)(SWIG_As_int(obj0)); | |
20026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20027 | } | |
d55e5bfc RD |
20028 | } |
20029 | { | |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
20032 | ||
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
20036 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
20037 | return resultobj; | |
20038 | fail: | |
20039 | return NULL; | |
20040 | } | |
20041 | ||
20042 | ||
c32bde28 | 20043 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20044 | PyObject *obj; |
20045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20046 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
20047 | Py_INCREF(obj); | |
20048 | return Py_BuildValue((char *)""); | |
20049 | } | |
c32bde28 | 20050 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20051 | PyObject *resultobj; |
20052 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20053 | int arg2 = (int) 0 ; | |
20054 | wxMenu *arg3 = (wxMenu *) NULL ; | |
20055 | wxMenuEvent *result; | |
20056 | PyObject * obj0 = 0 ; | |
20057 | PyObject * obj1 = 0 ; | |
20058 | PyObject * obj2 = 0 ; | |
20059 | char *kwnames[] = { | |
20060 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
20061 | }; | |
20062 | ||
20063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20064 | if (obj0) { | |
093d3ff1 RD |
20065 | { |
20066 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
20067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20068 | } | |
d55e5bfc RD |
20069 | } |
20070 | if (obj1) { | |
093d3ff1 RD |
20071 | { |
20072 | arg2 = (int)(SWIG_As_int(obj1)); | |
20073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20074 | } | |
d55e5bfc RD |
20075 | } |
20076 | if (obj2) { | |
093d3ff1 RD |
20077 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
20078 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
20079 | } |
20080 | { | |
20081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20082 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
20083 | ||
20084 | wxPyEndAllowThreads(__tstate); | |
20085 | if (PyErr_Occurred()) SWIG_fail; | |
20086 | } | |
20087 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
20088 | return resultobj; | |
20089 | fail: | |
20090 | return NULL; | |
20091 | } | |
20092 | ||
20093 | ||
c32bde28 | 20094 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20095 | PyObject *resultobj; |
20096 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
20097 | int result; | |
20098 | PyObject * obj0 = 0 ; | |
20099 | char *kwnames[] = { | |
20100 | (char *) "self", NULL | |
20101 | }; | |
20102 | ||
20103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20104 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
20105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20106 | { |
20107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20108 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
20109 | ||
20110 | wxPyEndAllowThreads(__tstate); | |
20111 | if (PyErr_Occurred()) SWIG_fail; | |
20112 | } | |
093d3ff1 RD |
20113 | { |
20114 | resultobj = SWIG_From_int((int)(result)); | |
20115 | } | |
d55e5bfc RD |
20116 | return resultobj; |
20117 | fail: | |
20118 | return NULL; | |
20119 | } | |
20120 | ||
20121 | ||
c32bde28 | 20122 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20123 | PyObject *resultobj; |
20124 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
20125 | bool result; | |
20126 | PyObject * obj0 = 0 ; | |
20127 | char *kwnames[] = { | |
20128 | (char *) "self", NULL | |
20129 | }; | |
20130 | ||
20131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
20133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20134 | { |
20135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20136 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
20137 | ||
20138 | wxPyEndAllowThreads(__tstate); | |
20139 | if (PyErr_Occurred()) SWIG_fail; | |
20140 | } | |
20141 | { | |
20142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20143 | } | |
20144 | return resultobj; | |
20145 | fail: | |
20146 | return NULL; | |
20147 | } | |
20148 | ||
20149 | ||
c32bde28 | 20150 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20151 | PyObject *resultobj; |
20152 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
20153 | wxMenu *result; | |
20154 | PyObject * obj0 = 0 ; | |
20155 | char *kwnames[] = { | |
20156 | (char *) "self", NULL | |
20157 | }; | |
20158 | ||
20159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
20161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20162 | { |
20163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20164 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
20165 | ||
20166 | wxPyEndAllowThreads(__tstate); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
20169 | { | |
412d302d | 20170 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20171 | } |
20172 | return resultobj; | |
20173 | fail: | |
20174 | return NULL; | |
20175 | } | |
20176 | ||
20177 | ||
c32bde28 | 20178 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20179 | PyObject *obj; |
20180 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20181 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
20182 | Py_INCREF(obj); | |
20183 | return Py_BuildValue((char *)""); | |
20184 | } | |
c32bde28 | 20185 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20186 | PyObject *resultobj; |
20187 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20188 | int arg2 = (int) 0 ; | |
20189 | wxCloseEvent *result; | |
20190 | PyObject * obj0 = 0 ; | |
20191 | PyObject * obj1 = 0 ; | |
20192 | char *kwnames[] = { | |
20193 | (char *) "type",(char *) "winid", NULL | |
20194 | }; | |
20195 | ||
20196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
20197 | if (obj0) { | |
093d3ff1 RD |
20198 | { |
20199 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
20200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20201 | } | |
d55e5bfc RD |
20202 | } |
20203 | if (obj1) { | |
093d3ff1 RD |
20204 | { |
20205 | arg2 = (int)(SWIG_As_int(obj1)); | |
20206 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20207 | } | |
d55e5bfc RD |
20208 | } |
20209 | { | |
20210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20211 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
20212 | ||
20213 | wxPyEndAllowThreads(__tstate); | |
20214 | if (PyErr_Occurred()) SWIG_fail; | |
20215 | } | |
20216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
20217 | return resultobj; | |
20218 | fail: | |
20219 | return NULL; | |
20220 | } | |
20221 | ||
20222 | ||
c32bde28 | 20223 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20224 | PyObject *resultobj; |
20225 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20226 | bool arg2 ; | |
20227 | PyObject * obj0 = 0 ; | |
20228 | PyObject * obj1 = 0 ; | |
20229 | char *kwnames[] = { | |
20230 | (char *) "self",(char *) "logOff", NULL | |
20231 | }; | |
20232 | ||
20233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20236 | { | |
20237 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20238 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20239 | } | |
d55e5bfc RD |
20240 | { |
20241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20242 | (arg1)->SetLoggingOff(arg2); | |
20243 | ||
20244 | wxPyEndAllowThreads(__tstate); | |
20245 | if (PyErr_Occurred()) SWIG_fail; | |
20246 | } | |
20247 | Py_INCREF(Py_None); resultobj = Py_None; | |
20248 | return resultobj; | |
20249 | fail: | |
20250 | return NULL; | |
20251 | } | |
20252 | ||
20253 | ||
c32bde28 | 20254 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20255 | PyObject *resultobj; |
20256 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20257 | bool result; | |
20258 | PyObject * obj0 = 0 ; | |
20259 | char *kwnames[] = { | |
20260 | (char *) "self", NULL | |
20261 | }; | |
20262 | ||
20263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20266 | { |
20267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20268 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
20269 | ||
20270 | wxPyEndAllowThreads(__tstate); | |
20271 | if (PyErr_Occurred()) SWIG_fail; | |
20272 | } | |
20273 | { | |
20274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20275 | } | |
20276 | return resultobj; | |
20277 | fail: | |
20278 | return NULL; | |
20279 | } | |
20280 | ||
20281 | ||
c32bde28 | 20282 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20283 | PyObject *resultobj; |
20284 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
ae8162c8 | 20285 | bool arg2 = (bool) true ; |
d55e5bfc RD |
20286 | PyObject * obj0 = 0 ; |
20287 | PyObject * obj1 = 0 ; | |
20288 | char *kwnames[] = { | |
20289 | (char *) "self",(char *) "veto", NULL | |
20290 | }; | |
20291 | ||
20292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 20295 | if (obj1) { |
093d3ff1 RD |
20296 | { |
20297 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20298 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20299 | } | |
d55e5bfc RD |
20300 | } |
20301 | { | |
20302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20303 | (arg1)->Veto(arg2); | |
20304 | ||
20305 | wxPyEndAllowThreads(__tstate); | |
20306 | if (PyErr_Occurred()) SWIG_fail; | |
20307 | } | |
20308 | Py_INCREF(Py_None); resultobj = Py_None; | |
20309 | return resultobj; | |
20310 | fail: | |
20311 | return NULL; | |
20312 | } | |
20313 | ||
20314 | ||
c32bde28 | 20315 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20316 | PyObject *resultobj; |
20317 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20318 | bool arg2 ; | |
20319 | PyObject * obj0 = 0 ; | |
20320 | PyObject * obj1 = 0 ; | |
20321 | char *kwnames[] = { | |
20322 | (char *) "self",(char *) "canVeto", NULL | |
20323 | }; | |
20324 | ||
20325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20328 | { | |
20329 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20330 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20331 | } | |
d55e5bfc RD |
20332 | { |
20333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20334 | (arg1)->SetCanVeto(arg2); | |
20335 | ||
20336 | wxPyEndAllowThreads(__tstate); | |
20337 | if (PyErr_Occurred()) SWIG_fail; | |
20338 | } | |
20339 | Py_INCREF(Py_None); resultobj = Py_None; | |
20340 | return resultobj; | |
20341 | fail: | |
20342 | return NULL; | |
20343 | } | |
20344 | ||
20345 | ||
c32bde28 | 20346 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20347 | PyObject *resultobj; |
20348 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20349 | bool result; | |
20350 | PyObject * obj0 = 0 ; | |
20351 | char *kwnames[] = { | |
20352 | (char *) "self", NULL | |
20353 | }; | |
20354 | ||
20355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20358 | { |
20359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20360 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
20361 | ||
20362 | wxPyEndAllowThreads(__tstate); | |
20363 | if (PyErr_Occurred()) SWIG_fail; | |
20364 | } | |
20365 | { | |
20366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20367 | } | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | return NULL; | |
20371 | } | |
20372 | ||
20373 | ||
c32bde28 | 20374 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20375 | PyObject *resultobj; |
20376 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20377 | bool result; | |
20378 | PyObject * obj0 = 0 ; | |
20379 | char *kwnames[] = { | |
20380 | (char *) "self", NULL | |
20381 | }; | |
20382 | ||
20383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20386 | { |
20387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20388 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
20389 | ||
20390 | wxPyEndAllowThreads(__tstate); | |
20391 | if (PyErr_Occurred()) SWIG_fail; | |
20392 | } | |
20393 | { | |
20394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20395 | } | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
c32bde28 | 20402 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20403 | PyObject *obj; |
20404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20405 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
20406 | Py_INCREF(obj); | |
20407 | return Py_BuildValue((char *)""); | |
20408 | } | |
c32bde28 | 20409 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20410 | PyObject *resultobj; |
20411 | int arg1 = (int) 0 ; | |
ae8162c8 | 20412 | bool arg2 = (bool) false ; |
d55e5bfc RD |
20413 | wxShowEvent *result; |
20414 | PyObject * obj0 = 0 ; | |
20415 | PyObject * obj1 = 0 ; | |
20416 | char *kwnames[] = { | |
20417 | (char *) "winid",(char *) "show", NULL | |
20418 | }; | |
20419 | ||
20420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
20421 | if (obj0) { | |
093d3ff1 RD |
20422 | { |
20423 | arg1 = (int)(SWIG_As_int(obj0)); | |
20424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20425 | } | |
d55e5bfc RD |
20426 | } |
20427 | if (obj1) { | |
093d3ff1 RD |
20428 | { |
20429 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20430 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20431 | } | |
d55e5bfc RD |
20432 | } |
20433 | { | |
20434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20435 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
20436 | ||
20437 | wxPyEndAllowThreads(__tstate); | |
20438 | if (PyErr_Occurred()) SWIG_fail; | |
20439 | } | |
20440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
20441 | return resultobj; | |
20442 | fail: | |
20443 | return NULL; | |
20444 | } | |
20445 | ||
20446 | ||
c32bde28 | 20447 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20448 | PyObject *resultobj; |
20449 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
20450 | bool arg2 ; | |
20451 | PyObject * obj0 = 0 ; | |
20452 | PyObject * obj1 = 0 ; | |
20453 | char *kwnames[] = { | |
20454 | (char *) "self",(char *) "show", NULL | |
20455 | }; | |
20456 | ||
20457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxShowEvent, SWIG_POINTER_EXCEPTION | 0); |
20459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20460 | { | |
20461 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20462 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20463 | } | |
d55e5bfc RD |
20464 | { |
20465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20466 | (arg1)->SetShow(arg2); | |
20467 | ||
20468 | wxPyEndAllowThreads(__tstate); | |
20469 | if (PyErr_Occurred()) SWIG_fail; | |
20470 | } | |
20471 | Py_INCREF(Py_None); resultobj = Py_None; | |
20472 | return resultobj; | |
20473 | fail: | |
20474 | return NULL; | |
20475 | } | |
20476 | ||
20477 | ||
c32bde28 | 20478 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20479 | PyObject *resultobj; |
20480 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
20481 | bool result; | |
20482 | PyObject * obj0 = 0 ; | |
20483 | char *kwnames[] = { | |
20484 | (char *) "self", NULL | |
20485 | }; | |
20486 | ||
20487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxShowEvent, SWIG_POINTER_EXCEPTION | 0); |
20489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20490 | { |
20491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20492 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
20493 | ||
20494 | wxPyEndAllowThreads(__tstate); | |
20495 | if (PyErr_Occurred()) SWIG_fail; | |
20496 | } | |
20497 | { | |
20498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20499 | } | |
20500 | return resultobj; | |
20501 | fail: | |
20502 | return NULL; | |
20503 | } | |
20504 | ||
20505 | ||
c32bde28 | 20506 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20507 | PyObject *obj; |
20508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20509 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
20510 | Py_INCREF(obj); | |
20511 | return Py_BuildValue((char *)""); | |
20512 | } | |
c32bde28 | 20513 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20514 | PyObject *resultobj; |
20515 | int arg1 = (int) 0 ; | |
ae8162c8 | 20516 | bool arg2 = (bool) true ; |
d55e5bfc RD |
20517 | wxIconizeEvent *result; |
20518 | PyObject * obj0 = 0 ; | |
20519 | PyObject * obj1 = 0 ; | |
20520 | char *kwnames[] = { | |
20521 | (char *) "id",(char *) "iconized", NULL | |
20522 | }; | |
20523 | ||
20524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
20525 | if (obj0) { | |
093d3ff1 RD |
20526 | { |
20527 | arg1 = (int)(SWIG_As_int(obj0)); | |
20528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20529 | } | |
d55e5bfc RD |
20530 | } |
20531 | if (obj1) { | |
093d3ff1 RD |
20532 | { |
20533 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20534 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20535 | } | |
d55e5bfc RD |
20536 | } |
20537 | { | |
20538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20539 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
20540 | ||
20541 | wxPyEndAllowThreads(__tstate); | |
20542 | if (PyErr_Occurred()) SWIG_fail; | |
20543 | } | |
20544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
20545 | return resultobj; | |
20546 | fail: | |
20547 | return NULL; | |
20548 | } | |
20549 | ||
20550 | ||
c32bde28 | 20551 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20552 | PyObject *resultobj; |
20553 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
20554 | bool result; | |
20555 | PyObject * obj0 = 0 ; | |
20556 | char *kwnames[] = { | |
20557 | (char *) "self", NULL | |
20558 | }; | |
20559 | ||
20560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconizeEvent, SWIG_POINTER_EXCEPTION | 0); |
20562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20563 | { |
20564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20565 | result = (bool)(arg1)->Iconized(); | |
20566 | ||
20567 | wxPyEndAllowThreads(__tstate); | |
20568 | if (PyErr_Occurred()) SWIG_fail; | |
20569 | } | |
20570 | { | |
20571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20572 | } | |
20573 | return resultobj; | |
20574 | fail: | |
20575 | return NULL; | |
20576 | } | |
20577 | ||
20578 | ||
c32bde28 | 20579 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20580 | PyObject *obj; |
20581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20582 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
20583 | Py_INCREF(obj); | |
20584 | return Py_BuildValue((char *)""); | |
20585 | } | |
c32bde28 | 20586 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20587 | PyObject *resultobj; |
20588 | int arg1 = (int) 0 ; | |
20589 | wxMaximizeEvent *result; | |
20590 | PyObject * obj0 = 0 ; | |
20591 | char *kwnames[] = { | |
20592 | (char *) "id", NULL | |
20593 | }; | |
20594 | ||
20595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
20596 | if (obj0) { | |
093d3ff1 RD |
20597 | { |
20598 | arg1 = (int)(SWIG_As_int(obj0)); | |
20599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20600 | } | |
d55e5bfc RD |
20601 | } |
20602 | { | |
20603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20604 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
20605 | ||
20606 | wxPyEndAllowThreads(__tstate); | |
20607 | if (PyErr_Occurred()) SWIG_fail; | |
20608 | } | |
20609 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
20610 | return resultobj; | |
20611 | fail: | |
20612 | return NULL; | |
20613 | } | |
20614 | ||
20615 | ||
c32bde28 | 20616 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20617 | PyObject *obj; |
20618 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20619 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
20620 | Py_INCREF(obj); | |
20621 | return Py_BuildValue((char *)""); | |
20622 | } | |
c32bde28 | 20623 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20624 | PyObject *resultobj; |
20625 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20626 | wxPoint result; | |
20627 | PyObject * obj0 = 0 ; | |
20628 | char *kwnames[] = { | |
20629 | (char *) "self", NULL | |
20630 | }; | |
20631 | ||
20632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20635 | { |
20636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20637 | result = (arg1)->GetPosition(); | |
20638 | ||
20639 | wxPyEndAllowThreads(__tstate); | |
20640 | if (PyErr_Occurred()) SWIG_fail; | |
20641 | } | |
20642 | { | |
20643 | wxPoint * resultptr; | |
093d3ff1 | 20644 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
20645 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
20646 | } | |
20647 | return resultobj; | |
20648 | fail: | |
20649 | return NULL; | |
20650 | } | |
20651 | ||
20652 | ||
c32bde28 | 20653 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20654 | PyObject *resultobj; |
20655 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20656 | int result; | |
20657 | PyObject * obj0 = 0 ; | |
20658 | char *kwnames[] = { | |
20659 | (char *) "self", NULL | |
20660 | }; | |
20661 | ||
20662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20665 | { |
20666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20667 | result = (int)(arg1)->GetNumberOfFiles(); | |
20668 | ||
20669 | wxPyEndAllowThreads(__tstate); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | } | |
093d3ff1 RD |
20672 | { |
20673 | resultobj = SWIG_From_int((int)(result)); | |
20674 | } | |
d55e5bfc RD |
20675 | return resultobj; |
20676 | fail: | |
20677 | return NULL; | |
20678 | } | |
20679 | ||
20680 | ||
c32bde28 | 20681 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20682 | PyObject *resultobj; |
20683 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20684 | PyObject *result; | |
20685 | PyObject * obj0 = 0 ; | |
20686 | char *kwnames[] = { | |
20687 | (char *) "self", NULL | |
20688 | }; | |
20689 | ||
20690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20693 | { |
20694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20695 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
20696 | ||
20697 | wxPyEndAllowThreads(__tstate); | |
20698 | if (PyErr_Occurred()) SWIG_fail; | |
20699 | } | |
20700 | resultobj = result; | |
20701 | return resultobj; | |
20702 | fail: | |
20703 | return NULL; | |
20704 | } | |
20705 | ||
20706 | ||
c32bde28 | 20707 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20708 | PyObject *obj; |
20709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20710 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
20711 | Py_INCREF(obj); | |
20712 | return Py_BuildValue((char *)""); | |
20713 | } | |
c32bde28 | 20714 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20715 | PyObject *resultobj; |
20716 | int arg1 = (int) 0 ; | |
20717 | wxUpdateUIEvent *result; | |
20718 | PyObject * obj0 = 0 ; | |
20719 | char *kwnames[] = { | |
20720 | (char *) "commandId", NULL | |
20721 | }; | |
20722 | ||
20723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
20724 | if (obj0) { | |
093d3ff1 RD |
20725 | { |
20726 | arg1 = (int)(SWIG_As_int(obj0)); | |
20727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20728 | } | |
d55e5bfc RD |
20729 | } |
20730 | { | |
20731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20732 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
20733 | ||
20734 | wxPyEndAllowThreads(__tstate); | |
20735 | if (PyErr_Occurred()) SWIG_fail; | |
20736 | } | |
20737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
20738 | return resultobj; | |
20739 | fail: | |
20740 | return NULL; | |
20741 | } | |
20742 | ||
20743 | ||
c32bde28 | 20744 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20745 | PyObject *resultobj; |
20746 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20747 | bool result; | |
20748 | PyObject * obj0 = 0 ; | |
20749 | char *kwnames[] = { | |
20750 | (char *) "self", NULL | |
20751 | }; | |
20752 | ||
20753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20756 | { |
20757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20758 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
20759 | ||
20760 | wxPyEndAllowThreads(__tstate); | |
20761 | if (PyErr_Occurred()) SWIG_fail; | |
20762 | } | |
20763 | { | |
20764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20765 | } | |
20766 | return resultobj; | |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
c32bde28 | 20772 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20773 | PyObject *resultobj; |
20774 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20775 | bool result; | |
20776 | PyObject * obj0 = 0 ; | |
20777 | char *kwnames[] = { | |
20778 | (char *) "self", NULL | |
20779 | }; | |
20780 | ||
20781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20784 | { |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
20787 | ||
20788 | wxPyEndAllowThreads(__tstate); | |
20789 | if (PyErr_Occurred()) SWIG_fail; | |
20790 | } | |
20791 | { | |
20792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20793 | } | |
20794 | return resultobj; | |
20795 | fail: | |
20796 | return NULL; | |
20797 | } | |
20798 | ||
20799 | ||
c32bde28 | 20800 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20801 | PyObject *resultobj; |
20802 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20803 | wxString result; | |
20804 | PyObject * obj0 = 0 ; | |
20805 | char *kwnames[] = { | |
20806 | (char *) "self", NULL | |
20807 | }; | |
20808 | ||
20809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20812 | { |
20813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20814 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
20815 | ||
20816 | wxPyEndAllowThreads(__tstate); | |
20817 | if (PyErr_Occurred()) SWIG_fail; | |
20818 | } | |
20819 | { | |
20820 | #if wxUSE_UNICODE | |
20821 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20822 | #else | |
20823 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20824 | #endif | |
20825 | } | |
20826 | return resultobj; | |
20827 | fail: | |
20828 | return NULL; | |
20829 | } | |
20830 | ||
20831 | ||
c32bde28 | 20832 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20833 | PyObject *resultobj; |
20834 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20835 | bool result; | |
20836 | PyObject * obj0 = 0 ; | |
20837 | char *kwnames[] = { | |
20838 | (char *) "self", NULL | |
20839 | }; | |
20840 | ||
20841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20844 | { |
20845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20846 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
20847 | ||
20848 | wxPyEndAllowThreads(__tstate); | |
20849 | if (PyErr_Occurred()) SWIG_fail; | |
20850 | } | |
20851 | { | |
20852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20853 | } | |
20854 | return resultobj; | |
20855 | fail: | |
20856 | return NULL; | |
20857 | } | |
20858 | ||
20859 | ||
c32bde28 | 20860 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20861 | PyObject *resultobj; |
20862 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20863 | bool result; | |
20864 | PyObject * obj0 = 0 ; | |
20865 | char *kwnames[] = { | |
20866 | (char *) "self", NULL | |
20867 | }; | |
20868 | ||
20869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20872 | { |
20873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20874 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
20875 | ||
20876 | wxPyEndAllowThreads(__tstate); | |
20877 | if (PyErr_Occurred()) SWIG_fail; | |
20878 | } | |
20879 | { | |
20880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20881 | } | |
20882 | return resultobj; | |
20883 | fail: | |
20884 | return NULL; | |
20885 | } | |
20886 | ||
20887 | ||
c32bde28 | 20888 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20889 | PyObject *resultobj; |
20890 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20891 | bool result; | |
20892 | PyObject * obj0 = 0 ; | |
20893 | char *kwnames[] = { | |
20894 | (char *) "self", NULL | |
20895 | }; | |
20896 | ||
20897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20900 | { |
20901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20902 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
20903 | ||
20904 | wxPyEndAllowThreads(__tstate); | |
20905 | if (PyErr_Occurred()) SWIG_fail; | |
20906 | } | |
20907 | { | |
20908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20909 | } | |
20910 | return resultobj; | |
20911 | fail: | |
20912 | return NULL; | |
20913 | } | |
20914 | ||
20915 | ||
c32bde28 | 20916 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20917 | PyObject *resultobj; |
20918 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20919 | bool arg2 ; | |
20920 | PyObject * obj0 = 0 ; | |
20921 | PyObject * obj1 = 0 ; | |
20922 | char *kwnames[] = { | |
20923 | (char *) "self",(char *) "check", NULL | |
20924 | }; | |
20925 | ||
20926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20929 | { | |
20930 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20931 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20932 | } | |
d55e5bfc RD |
20933 | { |
20934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20935 | (arg1)->Check(arg2); | |
20936 | ||
20937 | wxPyEndAllowThreads(__tstate); | |
20938 | if (PyErr_Occurred()) SWIG_fail; | |
20939 | } | |
20940 | Py_INCREF(Py_None); resultobj = Py_None; | |
20941 | return resultobj; | |
20942 | fail: | |
20943 | return NULL; | |
20944 | } | |
20945 | ||
20946 | ||
c32bde28 | 20947 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20948 | PyObject *resultobj; |
20949 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20950 | bool arg2 ; | |
20951 | PyObject * obj0 = 0 ; | |
20952 | PyObject * obj1 = 0 ; | |
20953 | char *kwnames[] = { | |
20954 | (char *) "self",(char *) "enable", NULL | |
20955 | }; | |
20956 | ||
20957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20960 | { | |
20961 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20962 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20963 | } | |
d55e5bfc RD |
20964 | { |
20965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20966 | (arg1)->Enable(arg2); | |
20967 | ||
20968 | wxPyEndAllowThreads(__tstate); | |
20969 | if (PyErr_Occurred()) SWIG_fail; | |
20970 | } | |
20971 | Py_INCREF(Py_None); resultobj = Py_None; | |
20972 | return resultobj; | |
20973 | fail: | |
20974 | return NULL; | |
20975 | } | |
20976 | ||
20977 | ||
c32bde28 | 20978 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20979 | PyObject *resultobj; |
20980 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20981 | wxString *arg2 = 0 ; | |
ae8162c8 | 20982 | bool temp2 = false ; |
d55e5bfc RD |
20983 | PyObject * obj0 = 0 ; |
20984 | PyObject * obj1 = 0 ; | |
20985 | char *kwnames[] = { | |
20986 | (char *) "self",(char *) "text", NULL | |
20987 | }; | |
20988 | ||
20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20992 | { |
20993 | arg2 = wxString_in_helper(obj1); | |
20994 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20995 | temp2 = true; |
d55e5bfc RD |
20996 | } |
20997 | { | |
20998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20999 | (arg1)->SetText((wxString const &)*arg2); | |
21000 | ||
21001 | wxPyEndAllowThreads(__tstate); | |
21002 | if (PyErr_Occurred()) SWIG_fail; | |
21003 | } | |
21004 | Py_INCREF(Py_None); resultobj = Py_None; | |
21005 | { | |
21006 | if (temp2) | |
21007 | delete arg2; | |
21008 | } | |
21009 | return resultobj; | |
21010 | fail: | |
21011 | { | |
21012 | if (temp2) | |
21013 | delete arg2; | |
21014 | } | |
21015 | return NULL; | |
21016 | } | |
21017 | ||
21018 | ||
c32bde28 | 21019 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21020 | PyObject *resultobj; |
21021 | long arg1 ; | |
21022 | PyObject * obj0 = 0 ; | |
21023 | char *kwnames[] = { | |
21024 | (char *) "updateInterval", NULL | |
21025 | }; | |
21026 | ||
21027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21028 | { |
21029 | arg1 = (long)(SWIG_As_long(obj0)); | |
21030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21031 | } | |
d55e5bfc RD |
21032 | { |
21033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21034 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
21035 | ||
21036 | wxPyEndAllowThreads(__tstate); | |
21037 | if (PyErr_Occurred()) SWIG_fail; | |
21038 | } | |
21039 | Py_INCREF(Py_None); resultobj = Py_None; | |
21040 | return resultobj; | |
21041 | fail: | |
21042 | return NULL; | |
21043 | } | |
21044 | ||
21045 | ||
c32bde28 | 21046 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21047 | PyObject *resultobj; |
21048 | long result; | |
21049 | char *kwnames[] = { | |
21050 | NULL | |
21051 | }; | |
21052 | ||
21053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
21054 | { | |
21055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21056 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
21057 | ||
21058 | wxPyEndAllowThreads(__tstate); | |
21059 | if (PyErr_Occurred()) SWIG_fail; | |
21060 | } | |
093d3ff1 RD |
21061 | { |
21062 | resultobj = SWIG_From_long((long)(result)); | |
21063 | } | |
d55e5bfc RD |
21064 | return resultobj; |
21065 | fail: | |
21066 | return NULL; | |
21067 | } | |
21068 | ||
21069 | ||
c32bde28 | 21070 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21071 | PyObject *resultobj; |
21072 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21073 | bool result; | |
21074 | PyObject * obj0 = 0 ; | |
21075 | char *kwnames[] = { | |
21076 | (char *) "win", NULL | |
21077 | }; | |
21078 | ||
21079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21082 | { |
21083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21084 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
21085 | ||
21086 | wxPyEndAllowThreads(__tstate); | |
21087 | if (PyErr_Occurred()) SWIG_fail; | |
21088 | } | |
21089 | { | |
21090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21091 | } | |
21092 | return resultobj; | |
21093 | fail: | |
21094 | return NULL; | |
21095 | } | |
21096 | ||
21097 | ||
c32bde28 | 21098 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21099 | PyObject *resultobj; |
21100 | char *kwnames[] = { | |
21101 | NULL | |
21102 | }; | |
21103 | ||
21104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
21105 | { | |
21106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21107 | wxUpdateUIEvent::ResetUpdateTime(); | |
21108 | ||
21109 | wxPyEndAllowThreads(__tstate); | |
21110 | if (PyErr_Occurred()) SWIG_fail; | |
21111 | } | |
21112 | Py_INCREF(Py_None); resultobj = Py_None; | |
21113 | return resultobj; | |
21114 | fail: | |
21115 | return NULL; | |
21116 | } | |
21117 | ||
21118 | ||
c32bde28 | 21119 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 21120 | PyObject *resultobj; |
093d3ff1 | 21121 | wxUpdateUIMode arg1 ; |
d55e5bfc RD |
21122 | PyObject * obj0 = 0 ; |
21123 | char *kwnames[] = { | |
21124 | (char *) "mode", NULL | |
21125 | }; | |
21126 | ||
21127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21128 | { |
21129 | arg1 = (wxUpdateUIMode)(SWIG_As_int(obj0)); | |
21130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21131 | } | |
d55e5bfc RD |
21132 | { |
21133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21134 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
21135 | ||
21136 | wxPyEndAllowThreads(__tstate); | |
21137 | if (PyErr_Occurred()) SWIG_fail; | |
21138 | } | |
21139 | Py_INCREF(Py_None); resultobj = Py_None; | |
21140 | return resultobj; | |
21141 | fail: | |
21142 | return NULL; | |
21143 | } | |
21144 | ||
21145 | ||
c32bde28 | 21146 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 21147 | PyObject *resultobj; |
093d3ff1 | 21148 | wxUpdateUIMode result; |
d55e5bfc RD |
21149 | char *kwnames[] = { |
21150 | NULL | |
21151 | }; | |
21152 | ||
21153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
21154 | { | |
21155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21156 | result = (wxUpdateUIMode)wxUpdateUIEvent::GetMode(); |
d55e5bfc RD |
21157 | |
21158 | wxPyEndAllowThreads(__tstate); | |
21159 | if (PyErr_Occurred()) SWIG_fail; | |
21160 | } | |
093d3ff1 | 21161 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
21162 | return resultobj; |
21163 | fail: | |
21164 | return NULL; | |
21165 | } | |
21166 | ||
21167 | ||
c32bde28 | 21168 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21169 | PyObject *obj; |
21170 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21171 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
21172 | Py_INCREF(obj); | |
21173 | return Py_BuildValue((char *)""); | |
21174 | } | |
c32bde28 | 21175 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21176 | PyObject *resultobj; |
21177 | wxSysColourChangedEvent *result; | |
21178 | char *kwnames[] = { | |
21179 | NULL | |
21180 | }; | |
21181 | ||
21182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
21183 | { | |
21184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21185 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
21186 | ||
21187 | wxPyEndAllowThreads(__tstate); | |
21188 | if (PyErr_Occurred()) SWIG_fail; | |
21189 | } | |
21190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
21191 | return resultobj; | |
21192 | fail: | |
21193 | return NULL; | |
21194 | } | |
21195 | ||
21196 | ||
c32bde28 | 21197 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21198 | PyObject *obj; |
21199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21200 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
21201 | Py_INCREF(obj); | |
21202 | return Py_BuildValue((char *)""); | |
21203 | } | |
c32bde28 | 21204 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21205 | PyObject *resultobj; |
21206 | int arg1 = (int) 0 ; | |
21207 | wxWindow *arg2 = (wxWindow *) NULL ; | |
21208 | wxMouseCaptureChangedEvent *result; | |
21209 | PyObject * obj0 = 0 ; | |
21210 | PyObject * obj1 = 0 ; | |
21211 | char *kwnames[] = { | |
21212 | (char *) "winid",(char *) "gainedCapture", NULL | |
21213 | }; | |
21214 | ||
21215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
21216 | if (obj0) { | |
093d3ff1 RD |
21217 | { |
21218 | arg1 = (int)(SWIG_As_int(obj0)); | |
21219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21220 | } | |
d55e5bfc RD |
21221 | } |
21222 | if (obj1) { | |
093d3ff1 RD |
21223 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
21225 | } |
21226 | { | |
21227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21228 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
21229 | ||
21230 | wxPyEndAllowThreads(__tstate); | |
21231 | if (PyErr_Occurred()) SWIG_fail; | |
21232 | } | |
21233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
21234 | return resultobj; | |
21235 | fail: | |
21236 | return NULL; | |
21237 | } | |
21238 | ||
21239 | ||
c32bde28 | 21240 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21241 | PyObject *resultobj; |
21242 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
21243 | wxWindow *result; | |
21244 | PyObject * obj0 = 0 ; | |
21245 | char *kwnames[] = { | |
21246 | (char *) "self", NULL | |
21247 | }; | |
21248 | ||
21249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
21251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21252 | { |
21253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21254 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
21255 | ||
21256 | wxPyEndAllowThreads(__tstate); | |
21257 | if (PyErr_Occurred()) SWIG_fail; | |
21258 | } | |
21259 | { | |
412d302d | 21260 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21261 | } |
21262 | return resultobj; | |
21263 | fail: | |
21264 | return NULL; | |
21265 | } | |
21266 | ||
21267 | ||
c32bde28 | 21268 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21269 | PyObject *obj; |
21270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21271 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
21272 | Py_INCREF(obj); | |
21273 | return Py_BuildValue((char *)""); | |
21274 | } | |
c32bde28 | 21275 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21276 | PyObject *resultobj; |
21277 | wxDisplayChangedEvent *result; | |
21278 | char *kwnames[] = { | |
21279 | NULL | |
21280 | }; | |
21281 | ||
21282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
21283 | { | |
21284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21285 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
21286 | ||
21287 | wxPyEndAllowThreads(__tstate); | |
21288 | if (PyErr_Occurred()) SWIG_fail; | |
21289 | } | |
21290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
21291 | return resultobj; | |
21292 | fail: | |
21293 | return NULL; | |
21294 | } | |
21295 | ||
21296 | ||
c32bde28 | 21297 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21298 | PyObject *obj; |
21299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21300 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
21301 | Py_INCREF(obj); | |
21302 | return Py_BuildValue((char *)""); | |
21303 | } | |
c32bde28 | 21304 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21305 | PyObject *resultobj; |
21306 | int arg1 = (int) 0 ; | |
21307 | wxPaletteChangedEvent *result; | |
21308 | PyObject * obj0 = 0 ; | |
21309 | char *kwnames[] = { | |
21310 | (char *) "id", NULL | |
21311 | }; | |
21312 | ||
21313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
21314 | if (obj0) { | |
093d3ff1 RD |
21315 | { |
21316 | arg1 = (int)(SWIG_As_int(obj0)); | |
21317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21318 | } | |
d55e5bfc RD |
21319 | } |
21320 | { | |
21321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21322 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
21323 | ||
21324 | wxPyEndAllowThreads(__tstate); | |
21325 | if (PyErr_Occurred()) SWIG_fail; | |
21326 | } | |
21327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
21328 | return resultobj; | |
21329 | fail: | |
21330 | return NULL; | |
21331 | } | |
21332 | ||
21333 | ||
c32bde28 | 21334 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21335 | PyObject *resultobj; |
21336 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
21337 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21338 | PyObject * obj0 = 0 ; | |
21339 | PyObject * obj1 = 0 ; | |
21340 | char *kwnames[] = { | |
21341 | (char *) "self",(char *) "win", NULL | |
21342 | }; | |
21343 | ||
21344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
21346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21347 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21348 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
21349 | { |
21350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21351 | (arg1)->SetChangedWindow(arg2); | |
21352 | ||
21353 | wxPyEndAllowThreads(__tstate); | |
21354 | if (PyErr_Occurred()) SWIG_fail; | |
21355 | } | |
21356 | Py_INCREF(Py_None); resultobj = Py_None; | |
21357 | return resultobj; | |
21358 | fail: | |
21359 | return NULL; | |
21360 | } | |
21361 | ||
21362 | ||
c32bde28 | 21363 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21364 | PyObject *resultobj; |
21365 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
21366 | wxWindow *result; | |
21367 | PyObject * obj0 = 0 ; | |
21368 | char *kwnames[] = { | |
21369 | (char *) "self", NULL | |
21370 | }; | |
21371 | ||
21372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21373 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
21374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21375 | { |
21376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21377 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
21378 | ||
21379 | wxPyEndAllowThreads(__tstate); | |
21380 | if (PyErr_Occurred()) SWIG_fail; | |
21381 | } | |
21382 | { | |
412d302d | 21383 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21384 | } |
21385 | return resultobj; | |
21386 | fail: | |
21387 | return NULL; | |
21388 | } | |
21389 | ||
21390 | ||
c32bde28 | 21391 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21392 | PyObject *obj; |
21393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21394 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
21395 | Py_INCREF(obj); | |
21396 | return Py_BuildValue((char *)""); | |
21397 | } | |
c32bde28 | 21398 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21399 | PyObject *resultobj; |
21400 | int arg1 = (int) 0 ; | |
21401 | wxQueryNewPaletteEvent *result; | |
21402 | PyObject * obj0 = 0 ; | |
21403 | char *kwnames[] = { | |
21404 | (char *) "winid", NULL | |
21405 | }; | |
21406 | ||
21407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
21408 | if (obj0) { | |
093d3ff1 RD |
21409 | { |
21410 | arg1 = (int)(SWIG_As_int(obj0)); | |
21411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21412 | } | |
d55e5bfc RD |
21413 | } |
21414 | { | |
21415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21416 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
21417 | ||
21418 | wxPyEndAllowThreads(__tstate); | |
21419 | if (PyErr_Occurred()) SWIG_fail; | |
21420 | } | |
21421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
21422 | return resultobj; | |
21423 | fail: | |
21424 | return NULL; | |
21425 | } | |
21426 | ||
21427 | ||
c32bde28 | 21428 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21429 | PyObject *resultobj; |
21430 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
21431 | bool arg2 ; | |
21432 | PyObject * obj0 = 0 ; | |
21433 | PyObject * obj1 = 0 ; | |
21434 | char *kwnames[] = { | |
21435 | (char *) "self",(char *) "realized", NULL | |
21436 | }; | |
21437 | ||
21438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_EXCEPTION | 0); |
21440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21441 | { | |
21442 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21443 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21444 | } | |
d55e5bfc RD |
21445 | { |
21446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21447 | (arg1)->SetPaletteRealized(arg2); | |
21448 | ||
21449 | wxPyEndAllowThreads(__tstate); | |
21450 | if (PyErr_Occurred()) SWIG_fail; | |
21451 | } | |
21452 | Py_INCREF(Py_None); resultobj = Py_None; | |
21453 | return resultobj; | |
21454 | fail: | |
21455 | return NULL; | |
21456 | } | |
21457 | ||
21458 | ||
c32bde28 | 21459 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21460 | PyObject *resultobj; |
21461 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
21462 | bool result; | |
21463 | PyObject * obj0 = 0 ; | |
21464 | char *kwnames[] = { | |
21465 | (char *) "self", NULL | |
21466 | }; | |
21467 | ||
21468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21469 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_EXCEPTION | 0); |
21470 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21471 | { |
21472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21473 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
21474 | ||
21475 | wxPyEndAllowThreads(__tstate); | |
21476 | if (PyErr_Occurred()) SWIG_fail; | |
21477 | } | |
21478 | { | |
21479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21480 | } | |
21481 | return resultobj; | |
21482 | fail: | |
21483 | return NULL; | |
21484 | } | |
21485 | ||
21486 | ||
c32bde28 | 21487 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21488 | PyObject *obj; |
21489 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21490 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
21491 | Py_INCREF(obj); | |
21492 | return Py_BuildValue((char *)""); | |
21493 | } | |
c32bde28 | 21494 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21495 | PyObject *resultobj; |
21496 | wxNavigationKeyEvent *result; | |
21497 | char *kwnames[] = { | |
21498 | NULL | |
21499 | }; | |
21500 | ||
21501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
21502 | { | |
21503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21504 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
21505 | ||
21506 | wxPyEndAllowThreads(__tstate); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
21508 | } | |
21509 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
21510 | return resultobj; | |
21511 | fail: | |
21512 | return NULL; | |
21513 | } | |
21514 | ||
21515 | ||
c32bde28 | 21516 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21517 | PyObject *resultobj; |
21518 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21519 | bool result; | |
21520 | PyObject * obj0 = 0 ; | |
21521 | char *kwnames[] = { | |
21522 | (char *) "self", NULL | |
21523 | }; | |
21524 | ||
21525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21528 | { |
21529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21530 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
21531 | ||
21532 | wxPyEndAllowThreads(__tstate); | |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | } | |
21535 | { | |
21536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21537 | } | |
21538 | return resultobj; | |
21539 | fail: | |
21540 | return NULL; | |
21541 | } | |
21542 | ||
21543 | ||
c32bde28 | 21544 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21545 | PyObject *resultobj; |
21546 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21547 | bool arg2 ; | |
21548 | PyObject * obj0 = 0 ; | |
21549 | PyObject * obj1 = 0 ; | |
21550 | char *kwnames[] = { | |
908b74cd | 21551 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
21552 | }; |
21553 | ||
21554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21555 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21556 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21557 | { | |
21558 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21559 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21560 | } | |
d55e5bfc RD |
21561 | { |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21563 | (arg1)->SetDirection(arg2); | |
21564 | ||
21565 | wxPyEndAllowThreads(__tstate); | |
21566 | if (PyErr_Occurred()) SWIG_fail; | |
21567 | } | |
21568 | Py_INCREF(Py_None); resultobj = Py_None; | |
21569 | return resultobj; | |
21570 | fail: | |
21571 | return NULL; | |
21572 | } | |
21573 | ||
21574 | ||
c32bde28 | 21575 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21576 | PyObject *resultobj; |
21577 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21578 | bool result; | |
21579 | PyObject * obj0 = 0 ; | |
21580 | char *kwnames[] = { | |
21581 | (char *) "self", NULL | |
21582 | }; | |
21583 | ||
21584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21587 | { |
21588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21589 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
21590 | ||
21591 | wxPyEndAllowThreads(__tstate); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
21594 | { | |
21595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21596 | } | |
21597 | return resultobj; | |
21598 | fail: | |
21599 | return NULL; | |
21600 | } | |
21601 | ||
21602 | ||
c32bde28 | 21603 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21604 | PyObject *resultobj; |
21605 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21606 | bool arg2 ; | |
21607 | PyObject * obj0 = 0 ; | |
21608 | PyObject * obj1 = 0 ; | |
21609 | char *kwnames[] = { | |
908b74cd | 21610 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
21611 | }; |
21612 | ||
21613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21616 | { | |
21617 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21618 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21619 | } | |
d55e5bfc RD |
21620 | { |
21621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21622 | (arg1)->SetWindowChange(arg2); | |
21623 | ||
21624 | wxPyEndAllowThreads(__tstate); | |
21625 | if (PyErr_Occurred()) SWIG_fail; | |
21626 | } | |
21627 | Py_INCREF(Py_None); resultobj = Py_None; | |
21628 | return resultobj; | |
21629 | fail: | |
21630 | return NULL; | |
21631 | } | |
21632 | ||
21633 | ||
68350608 RD |
21634 | static PyObject *_wrap_NavigationKeyEvent_IsFromTab(PyObject *, PyObject *args, PyObject *kwargs) { |
21635 | PyObject *resultobj; | |
21636 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21637 | bool result; | |
21638 | PyObject * obj0 = 0 ; | |
21639 | char *kwnames[] = { | |
21640 | (char *) "self", NULL | |
21641 | }; | |
21642 | ||
21643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsFromTab",kwnames,&obj0)) goto fail; | |
21644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
21645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21646 | { | |
21647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21648 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsFromTab(); | |
21649 | ||
21650 | wxPyEndAllowThreads(__tstate); | |
21651 | if (PyErr_Occurred()) SWIG_fail; | |
21652 | } | |
21653 | { | |
21654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21655 | } | |
21656 | return resultobj; | |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
21662 | static PyObject *_wrap_NavigationKeyEvent_SetFromTab(PyObject *, PyObject *args, PyObject *kwargs) { | |
21663 | PyObject *resultobj; | |
21664 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21665 | bool arg2 ; | |
21666 | PyObject * obj0 = 0 ; | |
21667 | PyObject * obj1 = 0 ; | |
21668 | char *kwnames[] = { | |
21669 | (char *) "self",(char *) "bIs", NULL | |
21670 | }; | |
21671 | ||
21672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFromTab",kwnames,&obj0,&obj1)) goto fail; | |
21673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
21674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21675 | { | |
21676 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21678 | } | |
21679 | { | |
21680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21681 | (arg1)->SetFromTab(arg2); | |
21682 | ||
21683 | wxPyEndAllowThreads(__tstate); | |
21684 | if (PyErr_Occurred()) SWIG_fail; | |
21685 | } | |
21686 | Py_INCREF(Py_None); resultobj = Py_None; | |
21687 | return resultobj; | |
21688 | fail: | |
21689 | return NULL; | |
21690 | } | |
21691 | ||
21692 | ||
c32bde28 | 21693 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
21694 | PyObject *resultobj; |
21695 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21696 | long arg2 ; | |
21697 | PyObject * obj0 = 0 ; | |
21698 | PyObject * obj1 = 0 ; | |
21699 | char *kwnames[] = { | |
21700 | (char *) "self",(char *) "flags", NULL | |
21701 | }; | |
21702 | ||
21703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21706 | { | |
21707 | arg2 = (long)(SWIG_As_long(obj1)); | |
21708 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21709 | } | |
908b74cd RD |
21710 | { |
21711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21712 | (arg1)->SetFlags(arg2); | |
21713 | ||
21714 | wxPyEndAllowThreads(__tstate); | |
21715 | if (PyErr_Occurred()) SWIG_fail; | |
21716 | } | |
21717 | Py_INCREF(Py_None); resultobj = Py_None; | |
21718 | return resultobj; | |
21719 | fail: | |
21720 | return NULL; | |
21721 | } | |
21722 | ||
21723 | ||
c32bde28 | 21724 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21725 | PyObject *resultobj; |
21726 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21727 | wxWindow *result; | |
21728 | PyObject * obj0 = 0 ; | |
21729 | char *kwnames[] = { | |
21730 | (char *) "self", NULL | |
21731 | }; | |
21732 | ||
21733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21736 | { |
21737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21738 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
21739 | ||
21740 | wxPyEndAllowThreads(__tstate); | |
21741 | if (PyErr_Occurred()) SWIG_fail; | |
21742 | } | |
21743 | { | |
412d302d | 21744 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21745 | } |
21746 | return resultobj; | |
21747 | fail: | |
21748 | return NULL; | |
21749 | } | |
21750 | ||
21751 | ||
c32bde28 | 21752 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21753 | PyObject *resultobj; |
21754 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21755 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21756 | PyObject * obj0 = 0 ; | |
21757 | PyObject * obj1 = 0 ; | |
21758 | char *kwnames[] = { | |
21759 | (char *) "self",(char *) "win", NULL | |
21760 | }; | |
21761 | ||
21762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21763 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21764 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21765 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21766 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
21767 | { |
21768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21769 | (arg1)->SetCurrentFocus(arg2); | |
21770 | ||
21771 | wxPyEndAllowThreads(__tstate); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
21773 | } | |
21774 | Py_INCREF(Py_None); resultobj = Py_None; | |
21775 | return resultobj; | |
21776 | fail: | |
21777 | return NULL; | |
21778 | } | |
21779 | ||
21780 | ||
c32bde28 | 21781 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21782 | PyObject *obj; |
21783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21784 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
21785 | Py_INCREF(obj); | |
21786 | return Py_BuildValue((char *)""); | |
21787 | } | |
c32bde28 | 21788 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21789 | PyObject *resultobj; |
21790 | wxWindow *arg1 = (wxWindow *) NULL ; | |
21791 | wxWindowCreateEvent *result; | |
21792 | PyObject * obj0 = 0 ; | |
21793 | char *kwnames[] = { | |
21794 | (char *) "win", NULL | |
21795 | }; | |
21796 | ||
21797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
21798 | if (obj0) { | |
093d3ff1 RD |
21799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21801 | } |
21802 | { | |
21803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21804 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
21805 | ||
21806 | wxPyEndAllowThreads(__tstate); | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | } | |
21809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
21810 | return resultobj; | |
21811 | fail: | |
21812 | return NULL; | |
21813 | } | |
21814 | ||
21815 | ||
c32bde28 | 21816 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21817 | PyObject *resultobj; |
21818 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
21819 | wxWindow *result; | |
21820 | PyObject * obj0 = 0 ; | |
21821 | char *kwnames[] = { | |
21822 | (char *) "self", NULL | |
21823 | }; | |
21824 | ||
21825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowCreateEvent, SWIG_POINTER_EXCEPTION | 0); |
21827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21828 | { |
21829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21830 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
21831 | ||
21832 | wxPyEndAllowThreads(__tstate); | |
21833 | if (PyErr_Occurred()) SWIG_fail; | |
21834 | } | |
21835 | { | |
412d302d | 21836 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21837 | } |
21838 | return resultobj; | |
21839 | fail: | |
21840 | return NULL; | |
21841 | } | |
21842 | ||
21843 | ||
c32bde28 | 21844 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21845 | PyObject *obj; |
21846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21847 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
21848 | Py_INCREF(obj); | |
21849 | return Py_BuildValue((char *)""); | |
21850 | } | |
c32bde28 | 21851 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21852 | PyObject *resultobj; |
21853 | wxWindow *arg1 = (wxWindow *) NULL ; | |
21854 | wxWindowDestroyEvent *result; | |
21855 | PyObject * obj0 = 0 ; | |
21856 | char *kwnames[] = { | |
21857 | (char *) "win", NULL | |
21858 | }; | |
21859 | ||
21860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
21861 | if (obj0) { | |
093d3ff1 RD |
21862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21864 | } |
21865 | { | |
21866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21867 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
21868 | ||
21869 | wxPyEndAllowThreads(__tstate); | |
21870 | if (PyErr_Occurred()) SWIG_fail; | |
21871 | } | |
21872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
21873 | return resultobj; | |
21874 | fail: | |
21875 | return NULL; | |
21876 | } | |
21877 | ||
21878 | ||
c32bde28 | 21879 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21880 | PyObject *resultobj; |
21881 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
21882 | wxWindow *result; | |
21883 | PyObject * obj0 = 0 ; | |
21884 | char *kwnames[] = { | |
21885 | (char *) "self", NULL | |
21886 | }; | |
21887 | ||
21888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDestroyEvent, SWIG_POINTER_EXCEPTION | 0); |
21890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21891 | { |
21892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21893 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
21894 | ||
21895 | wxPyEndAllowThreads(__tstate); | |
21896 | if (PyErr_Occurred()) SWIG_fail; | |
21897 | } | |
21898 | { | |
412d302d | 21899 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21900 | } |
21901 | return resultobj; | |
21902 | fail: | |
21903 | return NULL; | |
21904 | } | |
21905 | ||
21906 | ||
c32bde28 | 21907 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21908 | PyObject *obj; |
21909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21910 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
21911 | Py_INCREF(obj); | |
21912 | return Py_BuildValue((char *)""); | |
21913 | } | |
c32bde28 | 21914 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21915 | PyObject *resultobj; |
21916 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21917 | int arg2 = (int) 0 ; | |
21918 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21919 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21920 | wxContextMenuEvent *result; | |
21921 | wxPoint temp3 ; | |
21922 | PyObject * obj0 = 0 ; | |
21923 | PyObject * obj1 = 0 ; | |
21924 | PyObject * obj2 = 0 ; | |
21925 | char *kwnames[] = { | |
21926 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
21927 | }; | |
21928 | ||
21929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21930 | if (obj0) { | |
093d3ff1 RD |
21931 | { |
21932 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
21933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21934 | } | |
d55e5bfc RD |
21935 | } |
21936 | if (obj1) { | |
093d3ff1 RD |
21937 | { |
21938 | arg2 = (int)(SWIG_As_int(obj1)); | |
21939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21940 | } | |
d55e5bfc RD |
21941 | } |
21942 | if (obj2) { | |
21943 | { | |
21944 | arg3 = &temp3; | |
21945 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21946 | } | |
21947 | } | |
21948 | { | |
21949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21950 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
21951 | ||
21952 | wxPyEndAllowThreads(__tstate); | |
21953 | if (PyErr_Occurred()) SWIG_fail; | |
21954 | } | |
21955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
21956 | return resultobj; | |
21957 | fail: | |
21958 | return NULL; | |
21959 | } | |
21960 | ||
21961 | ||
c32bde28 | 21962 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21963 | PyObject *resultobj; |
21964 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
21965 | wxPoint *result; | |
21966 | PyObject * obj0 = 0 ; | |
21967 | char *kwnames[] = { | |
21968 | (char *) "self", NULL | |
21969 | }; | |
21970 | ||
21971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
21973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21974 | { |
21975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21976 | { | |
21977 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
21978 | result = (wxPoint *) &_result_ref; | |
21979 | } | |
21980 | ||
21981 | wxPyEndAllowThreads(__tstate); | |
21982 | if (PyErr_Occurred()) SWIG_fail; | |
21983 | } | |
21984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
21985 | return resultobj; | |
21986 | fail: | |
21987 | return NULL; | |
21988 | } | |
21989 | ||
21990 | ||
c32bde28 | 21991 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21992 | PyObject *resultobj; |
21993 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
21994 | wxPoint *arg2 = 0 ; | |
21995 | wxPoint temp2 ; | |
21996 | PyObject * obj0 = 0 ; | |
21997 | PyObject * obj1 = 0 ; | |
21998 | char *kwnames[] = { | |
21999 | (char *) "self",(char *) "pos", NULL | |
22000 | }; | |
22001 | ||
22002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
22004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22005 | { |
22006 | arg2 = &temp2; | |
22007 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22008 | } | |
22009 | { | |
22010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22011 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
22012 | ||
22013 | wxPyEndAllowThreads(__tstate); | |
22014 | if (PyErr_Occurred()) SWIG_fail; | |
22015 | } | |
22016 | Py_INCREF(Py_None); resultobj = Py_None; | |
22017 | return resultobj; | |
22018 | fail: | |
22019 | return NULL; | |
22020 | } | |
22021 | ||
22022 | ||
c32bde28 | 22023 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22024 | PyObject *obj; |
22025 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22026 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
22027 | Py_INCREF(obj); | |
22028 | return Py_BuildValue((char *)""); | |
22029 | } | |
c32bde28 | 22030 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22031 | PyObject *resultobj; |
22032 | wxIdleEvent *result; | |
22033 | char *kwnames[] = { | |
22034 | NULL | |
22035 | }; | |
22036 | ||
22037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
22038 | { | |
22039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22040 | result = (wxIdleEvent *)new wxIdleEvent(); | |
22041 | ||
22042 | wxPyEndAllowThreads(__tstate); | |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | } | |
22045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
22046 | return resultobj; | |
22047 | fail: | |
22048 | return NULL; | |
22049 | } | |
22050 | ||
22051 | ||
c32bde28 | 22052 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22053 | PyObject *resultobj; |
22054 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
ae8162c8 | 22055 | bool arg2 = (bool) true ; |
d55e5bfc RD |
22056 | PyObject * obj0 = 0 ; |
22057 | PyObject * obj1 = 0 ; | |
22058 | char *kwnames[] = { | |
22059 | (char *) "self",(char *) "needMore", NULL | |
22060 | }; | |
22061 | ||
22062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); |
22064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 22065 | if (obj1) { |
093d3ff1 RD |
22066 | { |
22067 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
22068 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22069 | } | |
d55e5bfc RD |
22070 | } |
22071 | { | |
22072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22073 | (arg1)->RequestMore(arg2); | |
22074 | ||
22075 | wxPyEndAllowThreads(__tstate); | |
22076 | if (PyErr_Occurred()) SWIG_fail; | |
22077 | } | |
22078 | Py_INCREF(Py_None); resultobj = Py_None; | |
22079 | return resultobj; | |
22080 | fail: | |
22081 | return NULL; | |
22082 | } | |
22083 | ||
22084 | ||
c32bde28 | 22085 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22086 | PyObject *resultobj; |
22087 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
22088 | bool result; | |
22089 | PyObject * obj0 = 0 ; | |
22090 | char *kwnames[] = { | |
22091 | (char *) "self", NULL | |
22092 | }; | |
22093 | ||
22094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); |
22096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22097 | { |
22098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22099 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
22100 | ||
22101 | wxPyEndAllowThreads(__tstate); | |
22102 | if (PyErr_Occurred()) SWIG_fail; | |
22103 | } | |
22104 | { | |
22105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22106 | } | |
22107 | return resultobj; | |
22108 | fail: | |
22109 | return NULL; | |
22110 | } | |
22111 | ||
22112 | ||
c32bde28 | 22113 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 22114 | PyObject *resultobj; |
093d3ff1 | 22115 | wxIdleMode arg1 ; |
d55e5bfc RD |
22116 | PyObject * obj0 = 0 ; |
22117 | char *kwnames[] = { | |
22118 | (char *) "mode", NULL | |
22119 | }; | |
22120 | ||
22121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22122 | { |
22123 | arg1 = (wxIdleMode)(SWIG_As_int(obj0)); | |
22124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22125 | } | |
d55e5bfc RD |
22126 | { |
22127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22128 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
22129 | ||
22130 | wxPyEndAllowThreads(__tstate); | |
22131 | if (PyErr_Occurred()) SWIG_fail; | |
22132 | } | |
22133 | Py_INCREF(Py_None); resultobj = Py_None; | |
22134 | return resultobj; | |
22135 | fail: | |
22136 | return NULL; | |
22137 | } | |
22138 | ||
22139 | ||
c32bde28 | 22140 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 22141 | PyObject *resultobj; |
093d3ff1 | 22142 | wxIdleMode result; |
d55e5bfc RD |
22143 | char *kwnames[] = { |
22144 | NULL | |
22145 | }; | |
22146 | ||
22147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
22148 | { | |
22149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22150 | result = (wxIdleMode)wxIdleEvent::GetMode(); |
d55e5bfc RD |
22151 | |
22152 | wxPyEndAllowThreads(__tstate); | |
22153 | if (PyErr_Occurred()) SWIG_fail; | |
22154 | } | |
093d3ff1 | 22155 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
22156 | return resultobj; |
22157 | fail: | |
22158 | return NULL; | |
22159 | } | |
22160 | ||
22161 | ||
c32bde28 | 22162 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22163 | PyObject *resultobj; |
22164 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22165 | bool result; | |
22166 | PyObject * obj0 = 0 ; | |
22167 | char *kwnames[] = { | |
22168 | (char *) "win", NULL | |
22169 | }; | |
22170 | ||
22171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
22173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22174 | { |
22175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22176 | result = (bool)wxIdleEvent::CanSend(arg1); | |
22177 | ||
22178 | wxPyEndAllowThreads(__tstate); | |
22179 | if (PyErr_Occurred()) SWIG_fail; | |
22180 | } | |
22181 | { | |
22182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22183 | } | |
22184 | return resultobj; | |
22185 | fail: | |
22186 | return NULL; | |
22187 | } | |
22188 | ||
22189 | ||
c32bde28 | 22190 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22191 | PyObject *obj; |
22192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22193 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
22194 | Py_INCREF(obj); | |
22195 | return Py_BuildValue((char *)""); | |
22196 | } | |
c32bde28 | 22197 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22198 | PyObject *resultobj; |
22199 | int arg1 = (int) 0 ; | |
22200 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
22201 | wxPyEvent *result; | |
22202 | PyObject * obj0 = 0 ; | |
22203 | PyObject * obj1 = 0 ; | |
22204 | char *kwnames[] = { | |
22205 | (char *) "winid",(char *) "commandType", NULL | |
22206 | }; | |
22207 | ||
22208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
22209 | if (obj0) { | |
093d3ff1 RD |
22210 | { |
22211 | arg1 = (int)(SWIG_As_int(obj0)); | |
22212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22213 | } | |
d55e5bfc RD |
22214 | } |
22215 | if (obj1) { | |
093d3ff1 RD |
22216 | { |
22217 | arg2 = (wxEventType)(SWIG_As_int(obj1)); | |
22218 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22219 | } | |
d55e5bfc RD |
22220 | } |
22221 | { | |
22222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22223 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
22224 | ||
22225 | wxPyEndAllowThreads(__tstate); | |
22226 | if (PyErr_Occurred()) SWIG_fail; | |
22227 | } | |
22228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
22229 | return resultobj; | |
22230 | fail: | |
22231 | return NULL; | |
22232 | } | |
22233 | ||
22234 | ||
c32bde28 | 22235 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22236 | PyObject *resultobj; |
22237 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
22238 | PyObject * obj0 = 0 ; | |
22239 | char *kwnames[] = { | |
22240 | (char *) "self", NULL | |
22241 | }; | |
22242 | ||
22243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
22245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22246 | { |
22247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22248 | delete arg1; | |
22249 | ||
22250 | wxPyEndAllowThreads(__tstate); | |
22251 | if (PyErr_Occurred()) SWIG_fail; | |
22252 | } | |
22253 | Py_INCREF(Py_None); resultobj = Py_None; | |
22254 | return resultobj; | |
22255 | fail: | |
22256 | return NULL; | |
22257 | } | |
22258 | ||
22259 | ||
c32bde28 | 22260 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22261 | PyObject *resultobj; |
22262 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
22263 | PyObject *arg2 = (PyObject *) 0 ; | |
22264 | PyObject * obj0 = 0 ; | |
22265 | PyObject * obj1 = 0 ; | |
22266 | char *kwnames[] = { | |
22267 | (char *) "self",(char *) "self", NULL | |
22268 | }; | |
22269 | ||
22270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
22272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22273 | arg2 = obj1; |
22274 | { | |
22275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22276 | (arg1)->SetSelf(arg2); | |
22277 | ||
22278 | wxPyEndAllowThreads(__tstate); | |
22279 | if (PyErr_Occurred()) SWIG_fail; | |
22280 | } | |
22281 | Py_INCREF(Py_None); resultobj = Py_None; | |
22282 | return resultobj; | |
22283 | fail: | |
22284 | return NULL; | |
22285 | } | |
22286 | ||
22287 | ||
c32bde28 | 22288 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22289 | PyObject *resultobj; |
22290 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
22291 | PyObject *result; | |
22292 | PyObject * obj0 = 0 ; | |
22293 | char *kwnames[] = { | |
22294 | (char *) "self", NULL | |
22295 | }; | |
22296 | ||
22297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
22299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22300 | { |
22301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22302 | result = (PyObject *)(arg1)->GetSelf(); | |
22303 | ||
22304 | wxPyEndAllowThreads(__tstate); | |
22305 | if (PyErr_Occurred()) SWIG_fail; | |
22306 | } | |
22307 | resultobj = result; | |
22308 | return resultobj; | |
22309 | fail: | |
22310 | return NULL; | |
22311 | } | |
22312 | ||
22313 | ||
c32bde28 | 22314 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22315 | PyObject *obj; |
22316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22317 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
22318 | Py_INCREF(obj); | |
22319 | return Py_BuildValue((char *)""); | |
22320 | } | |
c32bde28 | 22321 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22322 | PyObject *resultobj; |
22323 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22324 | int arg2 = (int) 0 ; | |
22325 | wxPyCommandEvent *result; | |
22326 | PyObject * obj0 = 0 ; | |
22327 | PyObject * obj1 = 0 ; | |
22328 | char *kwnames[] = { | |
22329 | (char *) "commandType",(char *) "id", NULL | |
22330 | }; | |
22331 | ||
22332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
22333 | if (obj0) { | |
093d3ff1 RD |
22334 | { |
22335 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
22336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22337 | } | |
d55e5bfc RD |
22338 | } |
22339 | if (obj1) { | |
093d3ff1 RD |
22340 | { |
22341 | arg2 = (int)(SWIG_As_int(obj1)); | |
22342 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22343 | } | |
d55e5bfc RD |
22344 | } |
22345 | { | |
22346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22347 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
22348 | ||
22349 | wxPyEndAllowThreads(__tstate); | |
22350 | if (PyErr_Occurred()) SWIG_fail; | |
22351 | } | |
22352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
22353 | return resultobj; | |
22354 | fail: | |
22355 | return NULL; | |
22356 | } | |
22357 | ||
22358 | ||
c32bde28 | 22359 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22360 | PyObject *resultobj; |
22361 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
22362 | PyObject * obj0 = 0 ; | |
22363 | char *kwnames[] = { | |
22364 | (char *) "self", NULL | |
22365 | }; | |
22366 | ||
22367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
22369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22370 | { |
22371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22372 | delete arg1; | |
22373 | ||
22374 | wxPyEndAllowThreads(__tstate); | |
22375 | if (PyErr_Occurred()) SWIG_fail; | |
22376 | } | |
22377 | Py_INCREF(Py_None); resultobj = Py_None; | |
22378 | return resultobj; | |
22379 | fail: | |
22380 | return NULL; | |
22381 | } | |
22382 | ||
22383 | ||
c32bde28 | 22384 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22385 | PyObject *resultobj; |
22386 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
22387 | PyObject *arg2 = (PyObject *) 0 ; | |
22388 | PyObject * obj0 = 0 ; | |
22389 | PyObject * obj1 = 0 ; | |
22390 | char *kwnames[] = { | |
22391 | (char *) "self",(char *) "self", NULL | |
22392 | }; | |
22393 | ||
22394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
22396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22397 | arg2 = obj1; |
22398 | { | |
22399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22400 | (arg1)->SetSelf(arg2); | |
22401 | ||
22402 | wxPyEndAllowThreads(__tstate); | |
22403 | if (PyErr_Occurred()) SWIG_fail; | |
22404 | } | |
22405 | Py_INCREF(Py_None); resultobj = Py_None; | |
22406 | return resultobj; | |
22407 | fail: | |
22408 | return NULL; | |
22409 | } | |
22410 | ||
22411 | ||
c32bde28 | 22412 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22413 | PyObject *resultobj; |
22414 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
22415 | PyObject *result; | |
22416 | PyObject * obj0 = 0 ; | |
22417 | char *kwnames[] = { | |
22418 | (char *) "self", NULL | |
22419 | }; | |
22420 | ||
22421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
22423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22424 | { |
22425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22426 | result = (PyObject *)(arg1)->GetSelf(); | |
22427 | ||
22428 | wxPyEndAllowThreads(__tstate); | |
22429 | if (PyErr_Occurred()) SWIG_fail; | |
22430 | } | |
22431 | resultobj = result; | |
22432 | return resultobj; | |
22433 | fail: | |
22434 | return NULL; | |
22435 | } | |
22436 | ||
22437 | ||
c32bde28 | 22438 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22439 | PyObject *obj; |
22440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22441 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
22442 | Py_INCREF(obj); | |
22443 | return Py_BuildValue((char *)""); | |
22444 | } | |
53aa7709 RD |
22445 | static PyObject *_wrap_new_DateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
22446 | PyObject *resultobj; | |
22447 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22448 | wxDateTime *arg2 = 0 ; | |
22449 | wxEventType arg3 ; | |
22450 | wxDateEvent *result; | |
22451 | PyObject * obj0 = 0 ; | |
22452 | PyObject * obj1 = 0 ; | |
22453 | PyObject * obj2 = 0 ; | |
22454 | char *kwnames[] = { | |
22455 | (char *) "win",(char *) "dt",(char *) "type", NULL | |
22456 | }; | |
22457 | ||
22458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_DateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
22460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22461 | { | |
22462 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22463 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22464 | if (arg2 == NULL) { | |
22465 | SWIG_null_ref("wxDateTime"); | |
22466 | } | |
22467 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22468 | } | |
22469 | { | |
22470 | arg3 = (wxEventType)(SWIG_As_int(obj2)); | |
22471 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22472 | } | |
22473 | { | |
22474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22475 | result = (wxDateEvent *)new wxDateEvent(arg1,(wxDateTime const &)*arg2,arg3); | |
22476 | ||
22477 | wxPyEndAllowThreads(__tstate); | |
22478 | if (PyErr_Occurred()) SWIG_fail; | |
22479 | } | |
22480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateEvent, 1); | |
22481 | return resultobj; | |
22482 | fail: | |
22483 | return NULL; | |
22484 | } | |
22485 | ||
22486 | ||
22487 | static PyObject *_wrap_DateEvent_GetDate(PyObject *, PyObject *args, PyObject *kwargs) { | |
22488 | PyObject *resultobj; | |
22489 | wxDateEvent *arg1 = (wxDateEvent *) 0 ; | |
22490 | wxDateTime *result; | |
22491 | PyObject * obj0 = 0 ; | |
22492 | char *kwnames[] = { | |
22493 | (char *) "self", NULL | |
22494 | }; | |
22495 | ||
22496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateEvent_GetDate",kwnames,&obj0)) goto fail; | |
22497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateEvent, SWIG_POINTER_EXCEPTION | 0); | |
22498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22499 | { | |
22500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22501 | { | |
22502 | wxDateTime const &_result_ref = ((wxDateEvent const *)arg1)->GetDate(); | |
22503 | result = (wxDateTime *) &_result_ref; | |
22504 | } | |
22505 | ||
22506 | wxPyEndAllowThreads(__tstate); | |
22507 | if (PyErr_Occurred()) SWIG_fail; | |
22508 | } | |
22509 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22510 | return resultobj; | |
22511 | fail: | |
22512 | return NULL; | |
22513 | } | |
22514 | ||
22515 | ||
22516 | static PyObject *_wrap_DateEvent_SetDate(PyObject *, PyObject *args, PyObject *kwargs) { | |
22517 | PyObject *resultobj; | |
22518 | wxDateEvent *arg1 = (wxDateEvent *) 0 ; | |
22519 | wxDateTime *arg2 = 0 ; | |
22520 | PyObject * obj0 = 0 ; | |
22521 | PyObject * obj1 = 0 ; | |
22522 | char *kwnames[] = { | |
22523 | (char *) "self",(char *) "date", NULL | |
22524 | }; | |
22525 | ||
22526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateEvent_SetDate",kwnames,&obj0,&obj1)) goto fail; | |
22527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateEvent, SWIG_POINTER_EXCEPTION | 0); | |
22528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22529 | { | |
22530 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22531 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22532 | if (arg2 == NULL) { | |
22533 | SWIG_null_ref("wxDateTime"); | |
22534 | } | |
22535 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22536 | } | |
22537 | { | |
22538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22539 | (arg1)->SetDate((wxDateTime const &)*arg2); | |
22540 | ||
22541 | wxPyEndAllowThreads(__tstate); | |
22542 | if (PyErr_Occurred()) SWIG_fail; | |
22543 | } | |
22544 | Py_INCREF(Py_None); resultobj = Py_None; | |
22545 | return resultobj; | |
22546 | fail: | |
22547 | return NULL; | |
22548 | } | |
22549 | ||
22550 | ||
22551 | static PyObject * DateEvent_swigregister(PyObject *, PyObject *args) { | |
22552 | PyObject *obj; | |
22553 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22554 | SWIG_TypeClientData(SWIGTYPE_p_wxDateEvent, obj); | |
22555 | Py_INCREF(obj); | |
22556 | return Py_BuildValue((char *)""); | |
22557 | } | |
c32bde28 | 22558 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22559 | PyObject *resultobj; |
22560 | wxPyApp *result; | |
22561 | char *kwnames[] = { | |
22562 | NULL | |
22563 | }; | |
22564 | ||
22565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
22566 | { | |
22567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22568 | result = (wxPyApp *)new_wxPyApp(); | |
22569 | ||
22570 | wxPyEndAllowThreads(__tstate); | |
22571 | if (PyErr_Occurred()) SWIG_fail; | |
22572 | } | |
b0f7404b | 22573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
22574 | return resultobj; |
22575 | fail: | |
22576 | return NULL; | |
22577 | } | |
22578 | ||
22579 | ||
c32bde28 | 22580 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22581 | PyObject *resultobj; |
22582 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22583 | PyObject * obj0 = 0 ; | |
22584 | char *kwnames[] = { | |
22585 | (char *) "self", NULL | |
22586 | }; | |
22587 | ||
22588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22591 | { |
22592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22593 | delete arg1; | |
22594 | ||
22595 | wxPyEndAllowThreads(__tstate); | |
22596 | if (PyErr_Occurred()) SWIG_fail; | |
22597 | } | |
22598 | Py_INCREF(Py_None); resultobj = Py_None; | |
22599 | return resultobj; | |
22600 | fail: | |
22601 | return NULL; | |
22602 | } | |
22603 | ||
22604 | ||
c32bde28 | 22605 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22606 | PyObject *resultobj; |
22607 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22608 | PyObject *arg2 = (PyObject *) 0 ; | |
22609 | PyObject *arg3 = (PyObject *) 0 ; | |
22610 | PyObject * obj0 = 0 ; | |
22611 | PyObject * obj1 = 0 ; | |
22612 | PyObject * obj2 = 0 ; | |
22613 | char *kwnames[] = { | |
22614 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22615 | }; | |
22616 | ||
22617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22620 | arg2 = obj1; |
22621 | arg3 = obj2; | |
22622 | { | |
22623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22624 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22625 | ||
22626 | wxPyEndAllowThreads(__tstate); | |
22627 | if (PyErr_Occurred()) SWIG_fail; | |
22628 | } | |
22629 | Py_INCREF(Py_None); resultobj = Py_None; | |
22630 | return resultobj; | |
22631 | fail: | |
22632 | return NULL; | |
22633 | } | |
22634 | ||
22635 | ||
c32bde28 | 22636 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22637 | PyObject *resultobj; |
22638 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22639 | wxString result; | |
22640 | PyObject * obj0 = 0 ; | |
22641 | char *kwnames[] = { | |
22642 | (char *) "self", NULL | |
22643 | }; | |
22644 | ||
22645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22648 | { |
22649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22650 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
22651 | ||
22652 | wxPyEndAllowThreads(__tstate); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | } | |
22655 | { | |
22656 | #if wxUSE_UNICODE | |
22657 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22658 | #else | |
22659 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22660 | #endif | |
22661 | } | |
22662 | return resultobj; | |
22663 | fail: | |
22664 | return NULL; | |
22665 | } | |
22666 | ||
22667 | ||
c32bde28 | 22668 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22669 | PyObject *resultobj; |
22670 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22671 | wxString *arg2 = 0 ; | |
ae8162c8 | 22672 | bool temp2 = false ; |
d55e5bfc RD |
22673 | PyObject * obj0 = 0 ; |
22674 | PyObject * obj1 = 0 ; | |
22675 | char *kwnames[] = { | |
22676 | (char *) "self",(char *) "name", NULL | |
22677 | }; | |
22678 | ||
22679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22682 | { |
22683 | arg2 = wxString_in_helper(obj1); | |
22684 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22685 | temp2 = true; |
d55e5bfc RD |
22686 | } |
22687 | { | |
22688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22689 | (arg1)->SetAppName((wxString const &)*arg2); | |
22690 | ||
22691 | wxPyEndAllowThreads(__tstate); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | } | |
22694 | Py_INCREF(Py_None); resultobj = Py_None; | |
22695 | { | |
22696 | if (temp2) | |
22697 | delete arg2; | |
22698 | } | |
22699 | return resultobj; | |
22700 | fail: | |
22701 | { | |
22702 | if (temp2) | |
22703 | delete arg2; | |
22704 | } | |
22705 | return NULL; | |
22706 | } | |
22707 | ||
22708 | ||
c32bde28 | 22709 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22710 | PyObject *resultobj; |
22711 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22712 | wxString result; | |
22713 | PyObject * obj0 = 0 ; | |
22714 | char *kwnames[] = { | |
22715 | (char *) "self", NULL | |
22716 | }; | |
22717 | ||
22718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22721 | { |
22722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22723 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
22724 | ||
22725 | wxPyEndAllowThreads(__tstate); | |
22726 | if (PyErr_Occurred()) SWIG_fail; | |
22727 | } | |
22728 | { | |
22729 | #if wxUSE_UNICODE | |
22730 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22731 | #else | |
22732 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22733 | #endif | |
22734 | } | |
22735 | return resultobj; | |
22736 | fail: | |
22737 | return NULL; | |
22738 | } | |
22739 | ||
22740 | ||
c32bde28 | 22741 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22742 | PyObject *resultobj; |
22743 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22744 | wxString *arg2 = 0 ; | |
ae8162c8 | 22745 | bool temp2 = false ; |
d55e5bfc RD |
22746 | PyObject * obj0 = 0 ; |
22747 | PyObject * obj1 = 0 ; | |
22748 | char *kwnames[] = { | |
22749 | (char *) "self",(char *) "name", NULL | |
22750 | }; | |
22751 | ||
22752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22755 | { |
22756 | arg2 = wxString_in_helper(obj1); | |
22757 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22758 | temp2 = true; |
d55e5bfc RD |
22759 | } |
22760 | { | |
22761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22762 | (arg1)->SetClassName((wxString const &)*arg2); | |
22763 | ||
22764 | wxPyEndAllowThreads(__tstate); | |
22765 | if (PyErr_Occurred()) SWIG_fail; | |
22766 | } | |
22767 | Py_INCREF(Py_None); resultobj = Py_None; | |
22768 | { | |
22769 | if (temp2) | |
22770 | delete arg2; | |
22771 | } | |
22772 | return resultobj; | |
22773 | fail: | |
22774 | { | |
22775 | if (temp2) | |
22776 | delete arg2; | |
22777 | } | |
22778 | return NULL; | |
22779 | } | |
22780 | ||
22781 | ||
c32bde28 | 22782 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22783 | PyObject *resultobj; |
22784 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22785 | wxString *result; | |
22786 | PyObject * obj0 = 0 ; | |
22787 | char *kwnames[] = { | |
22788 | (char *) "self", NULL | |
22789 | }; | |
22790 | ||
22791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22794 | { |
22795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22796 | { | |
22797 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
22798 | result = (wxString *) &_result_ref; | |
22799 | } | |
22800 | ||
22801 | wxPyEndAllowThreads(__tstate); | |
22802 | if (PyErr_Occurred()) SWIG_fail; | |
22803 | } | |
22804 | { | |
22805 | #if wxUSE_UNICODE | |
22806 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22807 | #else | |
22808 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22809 | #endif | |
22810 | } | |
22811 | return resultobj; | |
22812 | fail: | |
22813 | return NULL; | |
22814 | } | |
22815 | ||
22816 | ||
c32bde28 | 22817 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22818 | PyObject *resultobj; |
22819 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22820 | wxString *arg2 = 0 ; | |
ae8162c8 | 22821 | bool temp2 = false ; |
d55e5bfc RD |
22822 | PyObject * obj0 = 0 ; |
22823 | PyObject * obj1 = 0 ; | |
22824 | char *kwnames[] = { | |
22825 | (char *) "self",(char *) "name", NULL | |
22826 | }; | |
22827 | ||
22828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22831 | { |
22832 | arg2 = wxString_in_helper(obj1); | |
22833 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22834 | temp2 = true; |
d55e5bfc RD |
22835 | } |
22836 | { | |
22837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22838 | (arg1)->SetVendorName((wxString const &)*arg2); | |
22839 | ||
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | Py_INCREF(Py_None); resultobj = Py_None; | |
22844 | { | |
22845 | if (temp2) | |
22846 | delete arg2; | |
22847 | } | |
22848 | return resultobj; | |
22849 | fail: | |
22850 | { | |
22851 | if (temp2) | |
22852 | delete arg2; | |
22853 | } | |
22854 | return NULL; | |
22855 | } | |
22856 | ||
22857 | ||
c32bde28 | 22858 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22859 | PyObject *resultobj; |
22860 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22861 | wxAppTraits *result; | |
22862 | PyObject * obj0 = 0 ; | |
22863 | char *kwnames[] = { | |
22864 | (char *) "self", NULL | |
22865 | }; | |
22866 | ||
22867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22870 | { |
22871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22872 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
22873 | ||
22874 | wxPyEndAllowThreads(__tstate); | |
22875 | if (PyErr_Occurred()) SWIG_fail; | |
22876 | } | |
22877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
22878 | return resultobj; | |
22879 | fail: | |
22880 | return NULL; | |
22881 | } | |
22882 | ||
22883 | ||
c32bde28 | 22884 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22885 | PyObject *resultobj; |
22886 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22887 | PyObject * obj0 = 0 ; | |
22888 | char *kwnames[] = { | |
22889 | (char *) "self", NULL | |
22890 | }; | |
22891 | ||
22892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22895 | { |
22896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22897 | (arg1)->ProcessPendingEvents(); | |
22898 | ||
22899 | wxPyEndAllowThreads(__tstate); | |
22900 | if (PyErr_Occurred()) SWIG_fail; | |
22901 | } | |
22902 | Py_INCREF(Py_None); resultobj = Py_None; | |
22903 | return resultobj; | |
22904 | fail: | |
22905 | return NULL; | |
22906 | } | |
22907 | ||
22908 | ||
c32bde28 | 22909 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22910 | PyObject *resultobj; |
22911 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
ae8162c8 | 22912 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22913 | bool result; |
22914 | PyObject * obj0 = 0 ; | |
22915 | PyObject * obj1 = 0 ; | |
22916 | char *kwnames[] = { | |
22917 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
22918 | }; | |
22919 | ||
22920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 22923 | if (obj1) { |
093d3ff1 RD |
22924 | { |
22925 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
22926 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22927 | } | |
d55e5bfc RD |
22928 | } |
22929 | { | |
22930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22931 | result = (bool)(arg1)->Yield(arg2); | |
22932 | ||
22933 | wxPyEndAllowThreads(__tstate); | |
22934 | if (PyErr_Occurred()) SWIG_fail; | |
22935 | } | |
22936 | { | |
22937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22938 | } | |
22939 | return resultobj; | |
22940 | fail: | |
22941 | return NULL; | |
22942 | } | |
22943 | ||
22944 | ||
c32bde28 | 22945 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22946 | PyObject *resultobj; |
22947 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22948 | PyObject * obj0 = 0 ; | |
22949 | char *kwnames[] = { | |
22950 | (char *) "self", NULL | |
22951 | }; | |
22952 | ||
22953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22954 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22955 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22956 | { |
22957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22958 | (arg1)->WakeUpIdle(); | |
22959 | ||
22960 | wxPyEndAllowThreads(__tstate); | |
22961 | if (PyErr_Occurred()) SWIG_fail; | |
22962 | } | |
22963 | Py_INCREF(Py_None); resultobj = Py_None; | |
22964 | return resultobj; | |
22965 | fail: | |
22966 | return NULL; | |
22967 | } | |
22968 | ||
22969 | ||
84f85550 RD |
22970 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
22971 | PyObject *resultobj; | |
22972 | bool result; | |
22973 | char *kwnames[] = { | |
22974 | NULL | |
22975 | }; | |
22976 | ||
22977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
22978 | { | |
22979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22980 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
22981 | ||
22982 | wxPyEndAllowThreads(__tstate); | |
22983 | if (PyErr_Occurred()) SWIG_fail; | |
22984 | } | |
22985 | { | |
22986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22987 | } | |
22988 | return resultobj; | |
22989 | fail: | |
22990 | return NULL; | |
22991 | } | |
22992 | ||
22993 | ||
c32bde28 | 22994 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22995 | PyObject *resultobj; |
22996 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22997 | int result; | |
22998 | PyObject * obj0 = 0 ; | |
22999 | char *kwnames[] = { | |
23000 | (char *) "self", NULL | |
23001 | }; | |
23002 | ||
23003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23006 | { |
23007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23008 | result = (int)(arg1)->MainLoop(); | |
23009 | ||
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
093d3ff1 RD |
23013 | { |
23014 | resultobj = SWIG_From_int((int)(result)); | |
23015 | } | |
d55e5bfc RD |
23016 | return resultobj; |
23017 | fail: | |
23018 | return NULL; | |
23019 | } | |
23020 | ||
23021 | ||
c32bde28 | 23022 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23023 | PyObject *resultobj; |
23024 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23025 | PyObject * obj0 = 0 ; | |
23026 | char *kwnames[] = { | |
23027 | (char *) "self", NULL | |
23028 | }; | |
23029 | ||
23030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23033 | { |
23034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23035 | (arg1)->Exit(); | |
23036 | ||
23037 | wxPyEndAllowThreads(__tstate); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
23040 | Py_INCREF(Py_None); resultobj = Py_None; | |
23041 | return resultobj; | |
23042 | fail: | |
23043 | return NULL; | |
23044 | } | |
23045 | ||
23046 | ||
c32bde28 | 23047 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23048 | PyObject *resultobj; |
23049 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23050 | PyObject * obj0 = 0 ; | |
23051 | char *kwnames[] = { | |
23052 | (char *) "self", NULL | |
23053 | }; | |
23054 | ||
23055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23058 | { |
23059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23060 | (arg1)->ExitMainLoop(); | |
23061 | ||
23062 | wxPyEndAllowThreads(__tstate); | |
23063 | if (PyErr_Occurred()) SWIG_fail; | |
23064 | } | |
23065 | Py_INCREF(Py_None); resultobj = Py_None; | |
23066 | return resultobj; | |
23067 | fail: | |
23068 | return NULL; | |
23069 | } | |
23070 | ||
23071 | ||
c32bde28 | 23072 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23073 | PyObject *resultobj; |
23074 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23075 | bool result; | |
23076 | PyObject * obj0 = 0 ; | |
23077 | char *kwnames[] = { | |
23078 | (char *) "self", NULL | |
23079 | }; | |
23080 | ||
23081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23084 | { |
23085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23086 | result = (bool)(arg1)->Pending(); | |
23087 | ||
23088 | wxPyEndAllowThreads(__tstate); | |
23089 | if (PyErr_Occurred()) SWIG_fail; | |
23090 | } | |
23091 | { | |
23092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23093 | } | |
23094 | return resultobj; | |
23095 | fail: | |
23096 | return NULL; | |
23097 | } | |
23098 | ||
23099 | ||
c32bde28 | 23100 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23101 | PyObject *resultobj; |
23102 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23103 | bool result; | |
23104 | PyObject * obj0 = 0 ; | |
23105 | char *kwnames[] = { | |
23106 | (char *) "self", NULL | |
23107 | }; | |
23108 | ||
23109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23112 | { |
23113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23114 | result = (bool)(arg1)->Dispatch(); | |
23115 | ||
23116 | wxPyEndAllowThreads(__tstate); | |
23117 | if (PyErr_Occurred()) SWIG_fail; | |
23118 | } | |
23119 | { | |
23120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23121 | } | |
23122 | return resultobj; | |
23123 | fail: | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
c32bde28 | 23128 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23129 | PyObject *resultobj; |
23130 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23131 | bool result; | |
23132 | PyObject * obj0 = 0 ; | |
23133 | char *kwnames[] = { | |
23134 | (char *) "self", NULL | |
23135 | }; | |
23136 | ||
23137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23140 | { |
23141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23142 | result = (bool)(arg1)->ProcessIdle(); | |
23143 | ||
23144 | wxPyEndAllowThreads(__tstate); | |
23145 | if (PyErr_Occurred()) SWIG_fail; | |
23146 | } | |
23147 | { | |
23148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23149 | } | |
23150 | return resultobj; | |
23151 | fail: | |
23152 | return NULL; | |
23153 | } | |
23154 | ||
23155 | ||
c32bde28 | 23156 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23157 | PyObject *resultobj; |
23158 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23159 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23160 | wxIdleEvent *arg3 = 0 ; | |
23161 | bool result; | |
23162 | PyObject * obj0 = 0 ; | |
23163 | PyObject * obj1 = 0 ; | |
23164 | PyObject * obj2 = 0 ; | |
23165 | char *kwnames[] = { | |
23166 | (char *) "self",(char *) "win",(char *) "event", NULL | |
23167 | }; | |
23168 | ||
23169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23172 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23173 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23174 | { | |
23175 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); | |
23176 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23177 | if (arg3 == NULL) { | |
23178 | SWIG_null_ref("wxIdleEvent"); | |
23179 | } | |
23180 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
23181 | } |
23182 | { | |
23183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23184 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
23185 | ||
23186 | wxPyEndAllowThreads(__tstate); | |
23187 | if (PyErr_Occurred()) SWIG_fail; | |
23188 | } | |
23189 | { | |
23190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23191 | } | |
23192 | return resultobj; | |
23193 | fail: | |
23194 | return NULL; | |
23195 | } | |
23196 | ||
23197 | ||
c32bde28 | 23198 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23199 | PyObject *resultobj; |
23200 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23201 | bool result; | |
23202 | PyObject * obj0 = 0 ; | |
23203 | char *kwnames[] = { | |
23204 | (char *) "self", NULL | |
23205 | }; | |
23206 | ||
23207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23210 | { |
23211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23212 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
23213 | ||
23214 | wxPyEndAllowThreads(__tstate); | |
23215 | if (PyErr_Occurred()) SWIG_fail; | |
23216 | } | |
23217 | { | |
23218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23219 | } | |
23220 | return resultobj; | |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
c32bde28 | 23226 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23227 | PyObject *resultobj; |
23228 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23229 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23230 | PyObject * obj0 = 0 ; | |
23231 | PyObject * obj1 = 0 ; | |
23232 | char *kwnames[] = { | |
23233 | (char *) "self",(char *) "win", NULL | |
23234 | }; | |
23235 | ||
23236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23239 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23240 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23241 | { |
23242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23243 | (arg1)->SetTopWindow(arg2); | |
23244 | ||
23245 | wxPyEndAllowThreads(__tstate); | |
23246 | if (PyErr_Occurred()) SWIG_fail; | |
23247 | } | |
23248 | Py_INCREF(Py_None); resultobj = Py_None; | |
23249 | return resultobj; | |
23250 | fail: | |
23251 | return NULL; | |
23252 | } | |
23253 | ||
23254 | ||
c32bde28 | 23255 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23256 | PyObject *resultobj; |
23257 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23258 | wxWindow *result; | |
23259 | PyObject * obj0 = 0 ; | |
23260 | char *kwnames[] = { | |
23261 | (char *) "self", NULL | |
23262 | }; | |
23263 | ||
23264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23265 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23267 | { |
23268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23269 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
23270 | ||
23271 | wxPyEndAllowThreads(__tstate); | |
23272 | if (PyErr_Occurred()) SWIG_fail; | |
23273 | } | |
23274 | { | |
412d302d | 23275 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23276 | } |
23277 | return resultobj; | |
23278 | fail: | |
23279 | return NULL; | |
23280 | } | |
23281 | ||
23282 | ||
c32bde28 | 23283 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23284 | PyObject *resultobj; |
23285 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23286 | bool arg2 ; | |
23287 | PyObject * obj0 = 0 ; | |
23288 | PyObject * obj1 = 0 ; | |
23289 | char *kwnames[] = { | |
23290 | (char *) "self",(char *) "flag", NULL | |
23291 | }; | |
23292 | ||
23293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23296 | { | |
23297 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23298 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23299 | } | |
d55e5bfc RD |
23300 | { |
23301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23302 | (arg1)->SetExitOnFrameDelete(arg2); | |
23303 | ||
23304 | wxPyEndAllowThreads(__tstate); | |
23305 | if (PyErr_Occurred()) SWIG_fail; | |
23306 | } | |
23307 | Py_INCREF(Py_None); resultobj = Py_None; | |
23308 | return resultobj; | |
23309 | fail: | |
23310 | return NULL; | |
23311 | } | |
23312 | ||
23313 | ||
c32bde28 | 23314 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23315 | PyObject *resultobj; |
23316 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23317 | bool result; | |
23318 | PyObject * obj0 = 0 ; | |
23319 | char *kwnames[] = { | |
23320 | (char *) "self", NULL | |
23321 | }; | |
23322 | ||
23323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23326 | { |
23327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23328 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
23329 | ||
23330 | wxPyEndAllowThreads(__tstate); | |
23331 | if (PyErr_Occurred()) SWIG_fail; | |
23332 | } | |
23333 | { | |
23334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23335 | } | |
23336 | return resultobj; | |
23337 | fail: | |
23338 | return NULL; | |
23339 | } | |
23340 | ||
23341 | ||
c32bde28 | 23342 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23343 | PyObject *resultobj; |
23344 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23345 | bool arg2 ; | |
23346 | PyObject * obj0 = 0 ; | |
23347 | PyObject * obj1 = 0 ; | |
23348 | char *kwnames[] = { | |
23349 | (char *) "self",(char *) "flag", NULL | |
23350 | }; | |
23351 | ||
23352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23355 | { | |
23356 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23357 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23358 | } | |
d55e5bfc RD |
23359 | { |
23360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23361 | (arg1)->SetUseBestVisual(arg2); | |
23362 | ||
23363 | wxPyEndAllowThreads(__tstate); | |
23364 | if (PyErr_Occurred()) SWIG_fail; | |
23365 | } | |
23366 | Py_INCREF(Py_None); resultobj = Py_None; | |
23367 | return resultobj; | |
23368 | fail: | |
23369 | return NULL; | |
23370 | } | |
23371 | ||
23372 | ||
c32bde28 | 23373 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23374 | PyObject *resultobj; |
23375 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23376 | bool result; | |
23377 | PyObject * obj0 = 0 ; | |
23378 | char *kwnames[] = { | |
23379 | (char *) "self", NULL | |
23380 | }; | |
23381 | ||
23382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23385 | { |
23386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23387 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
23388 | ||
23389 | wxPyEndAllowThreads(__tstate); | |
23390 | if (PyErr_Occurred()) SWIG_fail; | |
23391 | } | |
23392 | { | |
23393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23394 | } | |
23395 | return resultobj; | |
23396 | fail: | |
23397 | return NULL; | |
23398 | } | |
23399 | ||
23400 | ||
c32bde28 | 23401 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23402 | PyObject *resultobj; |
23403 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23404 | int arg2 ; | |
23405 | PyObject * obj0 = 0 ; | |
23406 | PyObject * obj1 = 0 ; | |
23407 | char *kwnames[] = { | |
23408 | (char *) "self",(char *) "mode", NULL | |
23409 | }; | |
23410 | ||
23411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23414 | { | |
23415 | arg2 = (int)(SWIG_As_int(obj1)); | |
23416 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23417 | } | |
d55e5bfc RD |
23418 | { |
23419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23420 | (arg1)->SetPrintMode(arg2); | |
23421 | ||
23422 | wxPyEndAllowThreads(__tstate); | |
23423 | if (PyErr_Occurred()) SWIG_fail; | |
23424 | } | |
23425 | Py_INCREF(Py_None); resultobj = Py_None; | |
23426 | return resultobj; | |
23427 | fail: | |
23428 | return NULL; | |
23429 | } | |
23430 | ||
23431 | ||
c32bde28 | 23432 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23433 | PyObject *resultobj; |
23434 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23435 | int result; | |
23436 | PyObject * obj0 = 0 ; | |
23437 | char *kwnames[] = { | |
23438 | (char *) "self", NULL | |
23439 | }; | |
23440 | ||
23441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23442 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23443 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23444 | { |
23445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23446 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
23447 | ||
23448 | wxPyEndAllowThreads(__tstate); | |
23449 | if (PyErr_Occurred()) SWIG_fail; | |
23450 | } | |
093d3ff1 RD |
23451 | { |
23452 | resultobj = SWIG_From_int((int)(result)); | |
23453 | } | |
d55e5bfc RD |
23454 | return resultobj; |
23455 | fail: | |
23456 | return NULL; | |
23457 | } | |
23458 | ||
23459 | ||
c32bde28 | 23460 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23461 | PyObject *resultobj; |
23462 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23463 | int arg2 ; | |
23464 | PyObject * obj0 = 0 ; | |
23465 | PyObject * obj1 = 0 ; | |
23466 | char *kwnames[] = { | |
23467 | (char *) "self",(char *) "mode", NULL | |
23468 | }; | |
23469 | ||
23470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23473 | { | |
23474 | arg2 = (int)(SWIG_As_int(obj1)); | |
23475 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23476 | } | |
d55e5bfc RD |
23477 | { |
23478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23479 | (arg1)->SetAssertMode(arg2); | |
23480 | ||
23481 | wxPyEndAllowThreads(__tstate); | |
23482 | if (PyErr_Occurred()) SWIG_fail; | |
23483 | } | |
23484 | Py_INCREF(Py_None); resultobj = Py_None; | |
23485 | return resultobj; | |
23486 | fail: | |
23487 | return NULL; | |
23488 | } | |
23489 | ||
23490 | ||
c32bde28 | 23491 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23492 | PyObject *resultobj; |
23493 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23494 | int result; | |
23495 | PyObject * obj0 = 0 ; | |
23496 | char *kwnames[] = { | |
23497 | (char *) "self", NULL | |
23498 | }; | |
23499 | ||
23500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23503 | { |
23504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23505 | result = (int)(arg1)->GetAssertMode(); | |
23506 | ||
23507 | wxPyEndAllowThreads(__tstate); | |
23508 | if (PyErr_Occurred()) SWIG_fail; | |
23509 | } | |
093d3ff1 RD |
23510 | { |
23511 | resultobj = SWIG_From_int((int)(result)); | |
23512 | } | |
d55e5bfc RD |
23513 | return resultobj; |
23514 | fail: | |
23515 | return NULL; | |
23516 | } | |
23517 | ||
23518 | ||
c32bde28 | 23519 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23520 | PyObject *resultobj; |
23521 | bool result; | |
23522 | char *kwnames[] = { | |
23523 | NULL | |
23524 | }; | |
23525 | ||
23526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
23527 | { | |
23528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23529 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
23530 | ||
23531 | wxPyEndAllowThreads(__tstate); | |
23532 | if (PyErr_Occurred()) SWIG_fail; | |
23533 | } | |
23534 | { | |
23535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23536 | } | |
23537 | return resultobj; | |
23538 | fail: | |
23539 | return NULL; | |
23540 | } | |
23541 | ||
23542 | ||
c32bde28 | 23543 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23544 | PyObject *resultobj; |
23545 | long result; | |
23546 | char *kwnames[] = { | |
23547 | NULL | |
23548 | }; | |
23549 | ||
23550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
23551 | { | |
23552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23553 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
23554 | ||
23555 | wxPyEndAllowThreads(__tstate); | |
23556 | if (PyErr_Occurred()) SWIG_fail; | |
23557 | } | |
093d3ff1 RD |
23558 | { |
23559 | resultobj = SWIG_From_long((long)(result)); | |
23560 | } | |
d55e5bfc RD |
23561 | return resultobj; |
23562 | fail: | |
23563 | return NULL; | |
23564 | } | |
23565 | ||
23566 | ||
c32bde28 | 23567 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23568 | PyObject *resultobj; |
23569 | long result; | |
23570 | char *kwnames[] = { | |
23571 | NULL | |
23572 | }; | |
23573 | ||
23574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
23575 | { | |
23576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23577 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
23578 | ||
23579 | wxPyEndAllowThreads(__tstate); | |
23580 | if (PyErr_Occurred()) SWIG_fail; | |
23581 | } | |
093d3ff1 RD |
23582 | { |
23583 | resultobj = SWIG_From_long((long)(result)); | |
23584 | } | |
d55e5bfc RD |
23585 | return resultobj; |
23586 | fail: | |
23587 | return NULL; | |
23588 | } | |
23589 | ||
23590 | ||
c32bde28 | 23591 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23592 | PyObject *resultobj; |
23593 | long result; | |
23594 | char *kwnames[] = { | |
23595 | NULL | |
23596 | }; | |
23597 | ||
23598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
23599 | { | |
23600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23601 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
23602 | ||
23603 | wxPyEndAllowThreads(__tstate); | |
23604 | if (PyErr_Occurred()) SWIG_fail; | |
23605 | } | |
093d3ff1 RD |
23606 | { |
23607 | resultobj = SWIG_From_long((long)(result)); | |
23608 | } | |
d55e5bfc RD |
23609 | return resultobj; |
23610 | fail: | |
23611 | return NULL; | |
23612 | } | |
23613 | ||
23614 | ||
c32bde28 | 23615 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23616 | PyObject *resultobj; |
23617 | wxString result; | |
23618 | char *kwnames[] = { | |
23619 | NULL | |
23620 | }; | |
23621 | ||
23622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
23623 | { | |
23624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23625 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
23626 | ||
23627 | wxPyEndAllowThreads(__tstate); | |
23628 | if (PyErr_Occurred()) SWIG_fail; | |
23629 | } | |
23630 | { | |
23631 | #if wxUSE_UNICODE | |
23632 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23633 | #else | |
23634 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23635 | #endif | |
23636 | } | |
23637 | return resultobj; | |
23638 | fail: | |
23639 | return NULL; | |
23640 | } | |
23641 | ||
23642 | ||
c32bde28 | 23643 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23644 | PyObject *resultobj; |
23645 | bool arg1 ; | |
23646 | PyObject * obj0 = 0 ; | |
23647 | char *kwnames[] = { | |
23648 | (char *) "val", NULL | |
23649 | }; | |
23650 | ||
23651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23652 | { |
23653 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
23654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23655 | } | |
d55e5bfc RD |
23656 | { |
23657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23658 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
23659 | ||
23660 | wxPyEndAllowThreads(__tstate); | |
23661 | if (PyErr_Occurred()) SWIG_fail; | |
23662 | } | |
23663 | Py_INCREF(Py_None); resultobj = Py_None; | |
23664 | return resultobj; | |
23665 | fail: | |
23666 | return NULL; | |
23667 | } | |
23668 | ||
23669 | ||
c32bde28 | 23670 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23671 | PyObject *resultobj; |
23672 | long arg1 ; | |
23673 | PyObject * obj0 = 0 ; | |
23674 | char *kwnames[] = { | |
23675 | (char *) "val", NULL | |
23676 | }; | |
23677 | ||
23678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23679 | { |
23680 | arg1 = (long)(SWIG_As_long(obj0)); | |
23681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23682 | } | |
d55e5bfc RD |
23683 | { |
23684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23685 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
23686 | ||
23687 | wxPyEndAllowThreads(__tstate); | |
23688 | if (PyErr_Occurred()) SWIG_fail; | |
23689 | } | |
23690 | Py_INCREF(Py_None); resultobj = Py_None; | |
23691 | return resultobj; | |
23692 | fail: | |
23693 | return NULL; | |
23694 | } | |
23695 | ||
23696 | ||
c32bde28 | 23697 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23698 | PyObject *resultobj; |
23699 | long arg1 ; | |
23700 | PyObject * obj0 = 0 ; | |
23701 | char *kwnames[] = { | |
23702 | (char *) "val", NULL | |
23703 | }; | |
23704 | ||
23705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23706 | { |
23707 | arg1 = (long)(SWIG_As_long(obj0)); | |
23708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23709 | } | |
d55e5bfc RD |
23710 | { |
23711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23712 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
23713 | ||
23714 | wxPyEndAllowThreads(__tstate); | |
23715 | if (PyErr_Occurred()) SWIG_fail; | |
23716 | } | |
23717 | Py_INCREF(Py_None); resultobj = Py_None; | |
23718 | return resultobj; | |
23719 | fail: | |
23720 | return NULL; | |
23721 | } | |
23722 | ||
23723 | ||
c32bde28 | 23724 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23725 | PyObject *resultobj; |
23726 | long arg1 ; | |
23727 | PyObject * obj0 = 0 ; | |
23728 | char *kwnames[] = { | |
23729 | (char *) "val", NULL | |
23730 | }; | |
23731 | ||
23732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23733 | { |
23734 | arg1 = (long)(SWIG_As_long(obj0)); | |
23735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23736 | } | |
d55e5bfc RD |
23737 | { |
23738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23739 | wxPyApp::SetMacExitMenuItemId(arg1); | |
23740 | ||
23741 | wxPyEndAllowThreads(__tstate); | |
23742 | if (PyErr_Occurred()) SWIG_fail; | |
23743 | } | |
23744 | Py_INCREF(Py_None); resultobj = Py_None; | |
23745 | return resultobj; | |
23746 | fail: | |
23747 | return NULL; | |
23748 | } | |
23749 | ||
23750 | ||
c32bde28 | 23751 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23752 | PyObject *resultobj; |
23753 | wxString *arg1 = 0 ; | |
ae8162c8 | 23754 | bool temp1 = false ; |
d55e5bfc RD |
23755 | PyObject * obj0 = 0 ; |
23756 | char *kwnames[] = { | |
23757 | (char *) "val", NULL | |
23758 | }; | |
23759 | ||
23760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
23761 | { | |
23762 | arg1 = wxString_in_helper(obj0); | |
23763 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 23764 | temp1 = true; |
d55e5bfc RD |
23765 | } |
23766 | { | |
23767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23768 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
23769 | ||
23770 | wxPyEndAllowThreads(__tstate); | |
23771 | if (PyErr_Occurred()) SWIG_fail; | |
23772 | } | |
23773 | Py_INCREF(Py_None); resultobj = Py_None; | |
23774 | { | |
23775 | if (temp1) | |
23776 | delete arg1; | |
23777 | } | |
23778 | return resultobj; | |
23779 | fail: | |
23780 | { | |
23781 | if (temp1) | |
23782 | delete arg1; | |
23783 | } | |
23784 | return NULL; | |
23785 | } | |
23786 | ||
23787 | ||
c32bde28 | 23788 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23789 | PyObject *resultobj; |
23790 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23791 | PyObject * obj0 = 0 ; | |
23792 | char *kwnames[] = { | |
23793 | (char *) "self", NULL | |
23794 | }; | |
23795 | ||
23796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23799 | { |
23800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23801 | (arg1)->_BootstrapApp(); | |
23802 | ||
23803 | wxPyEndAllowThreads(__tstate); | |
23804 | if (PyErr_Occurred()) SWIG_fail; | |
23805 | } | |
23806 | Py_INCREF(Py_None); resultobj = Py_None; | |
23807 | return resultobj; | |
23808 | fail: | |
23809 | return NULL; | |
23810 | } | |
23811 | ||
23812 | ||
c32bde28 | 23813 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23814 | PyObject *resultobj; |
23815 | int result; | |
23816 | char *kwnames[] = { | |
23817 | NULL | |
23818 | }; | |
23819 | ||
23820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
23821 | { | |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23823 | result = (int)wxPyApp::GetComCtl32Version(); | |
23824 | ||
23825 | wxPyEndAllowThreads(__tstate); | |
23826 | if (PyErr_Occurred()) SWIG_fail; | |
23827 | } | |
093d3ff1 RD |
23828 | { |
23829 | resultobj = SWIG_From_int((int)(result)); | |
23830 | } | |
d55e5bfc RD |
23831 | return resultobj; |
23832 | fail: | |
23833 | return NULL; | |
23834 | } | |
23835 | ||
23836 | ||
c32bde28 | 23837 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23838 | PyObject *obj; |
23839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23840 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
23841 | Py_INCREF(obj); | |
23842 | return Py_BuildValue((char *)""); | |
23843 | } | |
c32bde28 | 23844 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23845 | PyObject *resultobj; |
23846 | char *kwnames[] = { | |
23847 | NULL | |
23848 | }; | |
23849 | ||
23850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
23851 | { | |
23852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23853 | wxExit(); | |
23854 | ||
23855 | wxPyEndAllowThreads(__tstate); | |
23856 | if (PyErr_Occurred()) SWIG_fail; | |
23857 | } | |
23858 | Py_INCREF(Py_None); resultobj = Py_None; | |
23859 | return resultobj; | |
23860 | fail: | |
23861 | return NULL; | |
23862 | } | |
23863 | ||
23864 | ||
c32bde28 | 23865 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23866 | PyObject *resultobj; |
23867 | bool result; | |
23868 | char *kwnames[] = { | |
23869 | NULL | |
23870 | }; | |
23871 | ||
23872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
23873 | { | |
23874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23875 | result = (bool)wxYield(); | |
23876 | ||
23877 | wxPyEndAllowThreads(__tstate); | |
23878 | if (PyErr_Occurred()) SWIG_fail; | |
23879 | } | |
23880 | { | |
23881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23882 | } | |
23883 | return resultobj; | |
23884 | fail: | |
23885 | return NULL; | |
23886 | } | |
23887 | ||
23888 | ||
c32bde28 | 23889 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23890 | PyObject *resultobj; |
23891 | bool result; | |
23892 | char *kwnames[] = { | |
23893 | NULL | |
23894 | }; | |
23895 | ||
23896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
23897 | { | |
23898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23899 | result = (bool)wxYieldIfNeeded(); | |
23900 | ||
23901 | wxPyEndAllowThreads(__tstate); | |
23902 | if (PyErr_Occurred()) SWIG_fail; | |
23903 | } | |
23904 | { | |
23905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23906 | } | |
23907 | return resultobj; | |
23908 | fail: | |
23909 | return NULL; | |
23910 | } | |
23911 | ||
23912 | ||
c32bde28 | 23913 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23914 | PyObject *resultobj; |
23915 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 23916 | bool arg2 = (bool) false ; |
d55e5bfc RD |
23917 | bool result; |
23918 | PyObject * obj0 = 0 ; | |
23919 | PyObject * obj1 = 0 ; | |
23920 | char *kwnames[] = { | |
23921 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
23922 | }; | |
23923 | ||
23924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
23925 | if (obj0) { | |
093d3ff1 RD |
23926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
23927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23928 | } |
23929 | if (obj1) { | |
093d3ff1 RD |
23930 | { |
23931 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23933 | } | |
d55e5bfc RD |
23934 | } |
23935 | { | |
23936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23937 | result = (bool)wxSafeYield(arg1,arg2); | |
23938 | ||
23939 | wxPyEndAllowThreads(__tstate); | |
23940 | if (PyErr_Occurred()) SWIG_fail; | |
23941 | } | |
23942 | { | |
23943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23944 | } | |
23945 | return resultobj; | |
23946 | fail: | |
23947 | return NULL; | |
23948 | } | |
23949 | ||
23950 | ||
c32bde28 | 23951 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23952 | PyObject *resultobj; |
23953 | char *kwnames[] = { | |
23954 | NULL | |
23955 | }; | |
23956 | ||
23957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
23958 | { | |
23959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23960 | wxWakeUpIdle(); | |
23961 | ||
23962 | wxPyEndAllowThreads(__tstate); | |
23963 | if (PyErr_Occurred()) SWIG_fail; | |
23964 | } | |
23965 | Py_INCREF(Py_None); resultobj = Py_None; | |
23966 | return resultobj; | |
23967 | fail: | |
23968 | return NULL; | |
23969 | } | |
23970 | ||
23971 | ||
c32bde28 | 23972 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23973 | PyObject *resultobj; |
23974 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
23975 | wxEvent *arg2 = 0 ; | |
23976 | PyObject * obj0 = 0 ; | |
23977 | PyObject * obj1 = 0 ; | |
23978 | char *kwnames[] = { | |
23979 | (char *) "dest",(char *) "event", NULL | |
23980 | }; | |
23981 | ||
23982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
23984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23985 | { | |
23986 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
23987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23988 | if (arg2 == NULL) { | |
23989 | SWIG_null_ref("wxEvent"); | |
23990 | } | |
23991 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23992 | } |
23993 | { | |
23994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23995 | wxPostEvent(arg1,*arg2); | |
23996 | ||
23997 | wxPyEndAllowThreads(__tstate); | |
23998 | if (PyErr_Occurred()) SWIG_fail; | |
23999 | } | |
24000 | Py_INCREF(Py_None); resultobj = Py_None; | |
24001 | return resultobj; | |
24002 | fail: | |
24003 | return NULL; | |
24004 | } | |
24005 | ||
24006 | ||
c32bde28 | 24007 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24008 | PyObject *resultobj; |
24009 | char *kwnames[] = { | |
24010 | NULL | |
24011 | }; | |
24012 | ||
24013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
24014 | { | |
24015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24016 | wxApp_CleanUp(); | |
24017 | ||
24018 | wxPyEndAllowThreads(__tstate); | |
24019 | if (PyErr_Occurred()) SWIG_fail; | |
24020 | } | |
24021 | Py_INCREF(Py_None); resultobj = Py_None; | |
24022 | return resultobj; | |
24023 | fail: | |
24024 | return NULL; | |
24025 | } | |
24026 | ||
24027 | ||
c32bde28 | 24028 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24029 | PyObject *resultobj; |
24030 | wxPyApp *result; | |
24031 | char *kwnames[] = { | |
24032 | NULL | |
24033 | }; | |
24034 | ||
24035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
24036 | { | |
24037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 24038 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
24039 | |
24040 | wxPyEndAllowThreads(__tstate); | |
24041 | if (PyErr_Occurred()) SWIG_fail; | |
24042 | } | |
24043 | { | |
412d302d | 24044 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24045 | } |
24046 | return resultobj; | |
24047 | fail: | |
24048 | return NULL; | |
24049 | } | |
24050 | ||
24051 | ||
5cbf236d RD |
24052 | static PyObject *_wrap_SetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
24053 | PyObject *resultobj; | |
093d3ff1 | 24054 | char *arg1 = (char *) 0 ; |
5cbf236d RD |
24055 | PyObject * obj0 = 0 ; |
24056 | char *kwnames[] = { | |
24057 | (char *) "encoding", NULL | |
24058 | }; | |
24059 | ||
24060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24061 | if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) { |
24062 | SWIG_arg_fail(1);SWIG_fail; | |
24063 | } | |
5cbf236d RD |
24064 | { |
24065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24066 | wxSetDefaultPyEncoding((char const *)arg1); | |
24067 | ||
24068 | wxPyEndAllowThreads(__tstate); | |
24069 | if (PyErr_Occurred()) SWIG_fail; | |
24070 | } | |
24071 | Py_INCREF(Py_None); resultobj = Py_None; | |
24072 | return resultobj; | |
24073 | fail: | |
24074 | return NULL; | |
24075 | } | |
24076 | ||
24077 | ||
24078 | static PyObject *_wrap_GetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
24079 | PyObject *resultobj; | |
24080 | char *result; | |
24081 | char *kwnames[] = { | |
24082 | NULL | |
24083 | }; | |
24084 | ||
24085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDefaultPyEncoding",kwnames)) goto fail; | |
24086 | { | |
24087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24088 | result = (char *)wxGetDefaultPyEncoding(); | |
24089 | ||
24090 | wxPyEndAllowThreads(__tstate); | |
24091 | if (PyErr_Occurred()) SWIG_fail; | |
24092 | } | |
24093 | resultobj = SWIG_FromCharPtr(result); | |
24094 | return resultobj; | |
24095 | fail: | |
24096 | return NULL; | |
24097 | } | |
24098 | ||
24099 | ||
ae8162c8 RD |
24100 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
24101 | PyObject *resultobj; | |
24102 | wxEventLoop *result; | |
24103 | char *kwnames[] = { | |
24104 | NULL | |
24105 | }; | |
24106 | ||
24107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
24108 | { | |
24109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24110 | result = (wxEventLoop *)new wxEventLoop(); | |
24111 | ||
24112 | wxPyEndAllowThreads(__tstate); | |
24113 | if (PyErr_Occurred()) SWIG_fail; | |
24114 | } | |
24115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
24116 | return resultobj; | |
24117 | fail: | |
24118 | return NULL; | |
24119 | } | |
24120 | ||
24121 | ||
24122 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
24123 | PyObject *resultobj; | |
24124 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24125 | PyObject * obj0 = 0 ; | |
24126 | char *kwnames[] = { | |
24127 | (char *) "self", NULL | |
24128 | }; | |
24129 | ||
24130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
24133 | { |
24134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24135 | delete arg1; | |
24136 | ||
24137 | wxPyEndAllowThreads(__tstate); | |
24138 | if (PyErr_Occurred()) SWIG_fail; | |
24139 | } | |
24140 | Py_INCREF(Py_None); resultobj = Py_None; | |
24141 | return resultobj; | |
24142 | fail: | |
24143 | return NULL; | |
24144 | } | |
24145 | ||
24146 | ||
24147 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
24148 | PyObject *resultobj; | |
24149 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24150 | int result; | |
24151 | PyObject * obj0 = 0 ; | |
24152 | char *kwnames[] = { | |
24153 | (char *) "self", NULL | |
24154 | }; | |
24155 | ||
24156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
24159 | { |
24160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24161 | result = (int)(arg1)->Run(); | |
24162 | ||
24163 | wxPyEndAllowThreads(__tstate); | |
24164 | if (PyErr_Occurred()) SWIG_fail; | |
24165 | } | |
093d3ff1 RD |
24166 | { |
24167 | resultobj = SWIG_From_int((int)(result)); | |
24168 | } | |
ae8162c8 RD |
24169 | return resultobj; |
24170 | fail: | |
24171 | return NULL; | |
24172 | } | |
24173 | ||
24174 | ||
24175 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
24176 | PyObject *resultobj; | |
24177 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24178 | int arg2 = (int) 0 ; | |
24179 | PyObject * obj0 = 0 ; | |
24180 | PyObject * obj1 = 0 ; | |
24181 | char *kwnames[] = { | |
24182 | (char *) "self",(char *) "rc", NULL | |
24183 | }; | |
24184 | ||
24185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 | 24188 | if (obj1) { |
093d3ff1 RD |
24189 | { |
24190 | arg2 = (int)(SWIG_As_int(obj1)); | |
24191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24192 | } | |
ae8162c8 RD |
24193 | } |
24194 | { | |
24195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24196 | (arg1)->Exit(arg2); | |
24197 | ||
24198 | wxPyEndAllowThreads(__tstate); | |
24199 | if (PyErr_Occurred()) SWIG_fail; | |
24200 | } | |
24201 | Py_INCREF(Py_None); resultobj = Py_None; | |
24202 | return resultobj; | |
24203 | fail: | |
24204 | return NULL; | |
24205 | } | |
24206 | ||
24207 | ||
24208 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
24209 | PyObject *resultobj; | |
24210 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24211 | bool result; | |
24212 | PyObject * obj0 = 0 ; | |
24213 | char *kwnames[] = { | |
24214 | (char *) "self", NULL | |
24215 | }; | |
24216 | ||
24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
24220 | { |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | { | |
24228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24229 | } | |
24230 | return resultobj; | |
24231 | fail: | |
24232 | return NULL; | |
24233 | } | |
24234 | ||
24235 | ||
24236 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
24237 | PyObject *resultobj; | |
24238 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24239 | bool result; | |
24240 | PyObject * obj0 = 0 ; | |
24241 | char *kwnames[] = { | |
24242 | (char *) "self", NULL | |
24243 | }; | |
24244 | ||
24245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
24248 | { |
24249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24250 | result = (bool)(arg1)->Dispatch(); | |
24251 | ||
24252 | wxPyEndAllowThreads(__tstate); | |
24253 | if (PyErr_Occurred()) SWIG_fail; | |
24254 | } | |
24255 | { | |
24256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24257 | } | |
24258 | return resultobj; | |
24259 | fail: | |
24260 | return NULL; | |
24261 | } | |
24262 | ||
24263 | ||
24264 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
24265 | PyObject *resultobj; | |
24266 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24267 | bool result; | |
24268 | PyObject * obj0 = 0 ; | |
24269 | char *kwnames[] = { | |
24270 | (char *) "self", NULL | |
24271 | }; | |
24272 | ||
24273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
24276 | { |
24277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24278 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
24279 | ||
24280 | wxPyEndAllowThreads(__tstate); | |
24281 | if (PyErr_Occurred()) SWIG_fail; | |
24282 | } | |
24283 | { | |
24284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24285 | } | |
24286 | return resultobj; | |
24287 | fail: | |
24288 | return NULL; | |
24289 | } | |
24290 | ||
24291 | ||
24292 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
24293 | PyObject *resultobj; | |
24294 | wxEventLoop *result; | |
24295 | char *kwnames[] = { | |
24296 | NULL | |
24297 | }; | |
24298 | ||
24299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
24300 | { | |
24301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24302 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
24303 | ||
24304 | wxPyEndAllowThreads(__tstate); | |
24305 | if (PyErr_Occurred()) SWIG_fail; | |
24306 | } | |
24307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
24308 | return resultobj; | |
24309 | fail: | |
24310 | return NULL; | |
24311 | } | |
24312 | ||
24313 | ||
24314 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
24315 | PyObject *resultobj; | |
24316 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24317 | PyObject * obj0 = 0 ; | |
24318 | char *kwnames[] = { | |
24319 | (char *) "loop", NULL | |
24320 | }; | |
24321 | ||
24322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
24325 | { |
24326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24327 | wxEventLoop::SetActive(arg1); | |
24328 | ||
24329 | wxPyEndAllowThreads(__tstate); | |
24330 | if (PyErr_Occurred()) SWIG_fail; | |
24331 | } | |
24332 | Py_INCREF(Py_None); resultobj = Py_None; | |
24333 | return resultobj; | |
24334 | fail: | |
24335 | return NULL; | |
24336 | } | |
24337 | ||
24338 | ||
24339 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
24340 | PyObject *obj; | |
24341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24342 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
24343 | Py_INCREF(obj); | |
24344 | return Py_BuildValue((char *)""); | |
24345 | } | |
c32bde28 | 24346 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24347 | PyObject *resultobj; |
24348 | int arg1 = (int) 0 ; | |
24349 | int arg2 = (int) 0 ; | |
24350 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
24351 | wxAcceleratorEntry *result; |
24352 | PyObject * obj0 = 0 ; | |
24353 | PyObject * obj1 = 0 ; | |
24354 | PyObject * obj2 = 0 ; | |
d55e5bfc | 24355 | char *kwnames[] = { |
c24da6d6 | 24356 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
24357 | }; |
24358 | ||
c24da6d6 | 24359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 24360 | if (obj0) { |
093d3ff1 RD |
24361 | { |
24362 | arg1 = (int)(SWIG_As_int(obj0)); | |
24363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24364 | } | |
d55e5bfc RD |
24365 | } |
24366 | if (obj1) { | |
093d3ff1 RD |
24367 | { |
24368 | arg2 = (int)(SWIG_As_int(obj1)); | |
24369 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24370 | } | |
d55e5bfc RD |
24371 | } |
24372 | if (obj2) { | |
093d3ff1 RD |
24373 | { |
24374 | arg3 = (int)(SWIG_As_int(obj2)); | |
24375 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24376 | } | |
d55e5bfc | 24377 | } |
d55e5bfc RD |
24378 | { |
24379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 24380 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
24381 | |
24382 | wxPyEndAllowThreads(__tstate); | |
24383 | if (PyErr_Occurred()) SWIG_fail; | |
24384 | } | |
24385 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
24386 | return resultobj; | |
24387 | fail: | |
24388 | return NULL; | |
24389 | } | |
24390 | ||
24391 | ||
c32bde28 | 24392 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24393 | PyObject *resultobj; |
24394 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24395 | PyObject * obj0 = 0 ; | |
24396 | char *kwnames[] = { | |
24397 | (char *) "self", NULL | |
24398 | }; | |
24399 | ||
24400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24403 | { |
24404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24405 | delete arg1; | |
24406 | ||
24407 | wxPyEndAllowThreads(__tstate); | |
24408 | if (PyErr_Occurred()) SWIG_fail; | |
24409 | } | |
24410 | Py_INCREF(Py_None); resultobj = Py_None; | |
24411 | return resultobj; | |
24412 | fail: | |
24413 | return NULL; | |
24414 | } | |
24415 | ||
24416 | ||
c32bde28 | 24417 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24418 | PyObject *resultobj; |
24419 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24420 | int arg2 ; | |
24421 | int arg3 ; | |
24422 | int arg4 ; | |
d55e5bfc RD |
24423 | PyObject * obj0 = 0 ; |
24424 | PyObject * obj1 = 0 ; | |
24425 | PyObject * obj2 = 0 ; | |
24426 | PyObject * obj3 = 0 ; | |
d55e5bfc | 24427 | char *kwnames[] = { |
c24da6d6 | 24428 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
24429 | }; |
24430 | ||
c24da6d6 | 24431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24434 | { | |
24435 | arg2 = (int)(SWIG_As_int(obj1)); | |
24436 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24437 | } | |
24438 | { | |
24439 | arg3 = (int)(SWIG_As_int(obj2)); | |
24440 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24441 | } | |
24442 | { | |
24443 | arg4 = (int)(SWIG_As_int(obj3)); | |
24444 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24445 | } | |
d55e5bfc RD |
24446 | { |
24447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 24448 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
24449 | |
24450 | wxPyEndAllowThreads(__tstate); | |
24451 | if (PyErr_Occurred()) SWIG_fail; | |
24452 | } | |
24453 | Py_INCREF(Py_None); resultobj = Py_None; | |
24454 | return resultobj; | |
24455 | fail: | |
24456 | return NULL; | |
24457 | } | |
24458 | ||
24459 | ||
c32bde28 | 24460 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24461 | PyObject *resultobj; |
24462 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24463 | int result; | |
24464 | PyObject * obj0 = 0 ; | |
24465 | char *kwnames[] = { | |
24466 | (char *) "self", NULL | |
24467 | }; | |
24468 | ||
24469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24472 | { |
24473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24474 | result = (int)(arg1)->GetFlags(); | |
24475 | ||
24476 | wxPyEndAllowThreads(__tstate); | |
24477 | if (PyErr_Occurred()) SWIG_fail; | |
24478 | } | |
093d3ff1 RD |
24479 | { |
24480 | resultobj = SWIG_From_int((int)(result)); | |
24481 | } | |
d55e5bfc RD |
24482 | return resultobj; |
24483 | fail: | |
24484 | return NULL; | |
24485 | } | |
24486 | ||
24487 | ||
c32bde28 | 24488 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24489 | PyObject *resultobj; |
24490 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24491 | int result; | |
24492 | PyObject * obj0 = 0 ; | |
24493 | char *kwnames[] = { | |
24494 | (char *) "self", NULL | |
24495 | }; | |
24496 | ||
24497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24500 | { |
24501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24502 | result = (int)(arg1)->GetKeyCode(); | |
24503 | ||
24504 | wxPyEndAllowThreads(__tstate); | |
24505 | if (PyErr_Occurred()) SWIG_fail; | |
24506 | } | |
093d3ff1 RD |
24507 | { |
24508 | resultobj = SWIG_From_int((int)(result)); | |
24509 | } | |
d55e5bfc RD |
24510 | return resultobj; |
24511 | fail: | |
24512 | return NULL; | |
24513 | } | |
24514 | ||
24515 | ||
c32bde28 | 24516 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24517 | PyObject *resultobj; |
24518 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24519 | int result; | |
24520 | PyObject * obj0 = 0 ; | |
24521 | char *kwnames[] = { | |
24522 | (char *) "self", NULL | |
24523 | }; | |
24524 | ||
24525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24528 | { |
24529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24530 | result = (int)(arg1)->GetCommand(); | |
24531 | ||
24532 | wxPyEndAllowThreads(__tstate); | |
24533 | if (PyErr_Occurred()) SWIG_fail; | |
24534 | } | |
093d3ff1 RD |
24535 | { |
24536 | resultobj = SWIG_From_int((int)(result)); | |
24537 | } | |
d55e5bfc RD |
24538 | return resultobj; |
24539 | fail: | |
24540 | return NULL; | |
24541 | } | |
24542 | ||
24543 | ||
c32bde28 | 24544 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24545 | PyObject *obj; |
24546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24547 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
24548 | Py_INCREF(obj); | |
24549 | return Py_BuildValue((char *)""); | |
24550 | } | |
c32bde28 | 24551 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24552 | PyObject *resultobj; |
24553 | int arg1 ; | |
24554 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
24555 | wxAcceleratorTable *result; | |
24556 | PyObject * obj0 = 0 ; | |
24557 | char *kwnames[] = { | |
24558 | (char *) "n", NULL | |
24559 | }; | |
24560 | ||
24561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
24562 | { | |
24563 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
24564 | if (arg2) arg1 = PyList_Size(obj0); | |
24565 | else arg1 = 0; | |
24566 | } | |
24567 | { | |
24568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24569 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
24570 | ||
24571 | wxPyEndAllowThreads(__tstate); | |
24572 | if (PyErr_Occurred()) SWIG_fail; | |
24573 | } | |
24574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
24575 | { | |
24576 | delete [] arg2; | |
24577 | } | |
24578 | return resultobj; | |
24579 | fail: | |
24580 | { | |
24581 | delete [] arg2; | |
24582 | } | |
24583 | return NULL; | |
24584 | } | |
24585 | ||
24586 | ||
c32bde28 | 24587 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24588 | PyObject *resultobj; |
24589 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
24590 | PyObject * obj0 = 0 ; | |
24591 | char *kwnames[] = { | |
24592 | (char *) "self", NULL | |
24593 | }; | |
24594 | ||
24595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); |
24597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24598 | { |
24599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24600 | delete arg1; | |
24601 | ||
24602 | wxPyEndAllowThreads(__tstate); | |
24603 | if (PyErr_Occurred()) SWIG_fail; | |
24604 | } | |
24605 | Py_INCREF(Py_None); resultobj = Py_None; | |
24606 | return resultobj; | |
24607 | fail: | |
24608 | return NULL; | |
24609 | } | |
24610 | ||
24611 | ||
c32bde28 | 24612 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24613 | PyObject *resultobj; |
24614 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
24615 | bool result; | |
24616 | PyObject * obj0 = 0 ; | |
24617 | char *kwnames[] = { | |
24618 | (char *) "self", NULL | |
24619 | }; | |
24620 | ||
24621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); |
24623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24624 | { |
24625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24626 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
24627 | ||
24628 | wxPyEndAllowThreads(__tstate); | |
24629 | if (PyErr_Occurred()) SWIG_fail; | |
24630 | } | |
24631 | { | |
24632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24633 | } | |
24634 | return resultobj; | |
24635 | fail: | |
24636 | return NULL; | |
24637 | } | |
24638 | ||
24639 | ||
c32bde28 | 24640 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24641 | PyObject *obj; |
24642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24643 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
24644 | Py_INCREF(obj); | |
24645 | return Py_BuildValue((char *)""); | |
24646 | } | |
c32bde28 | 24647 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
24648 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
24649 | return 1; | |
24650 | } | |
24651 | ||
24652 | ||
093d3ff1 | 24653 | static PyObject *_wrap_NullAcceleratorTable_get(void) { |
d55e5bfc RD |
24654 | PyObject *pyobj; |
24655 | ||
24656 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
24657 | return pyobj; | |
24658 | } | |
24659 | ||
24660 | ||
c32bde28 | 24661 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24662 | PyObject *resultobj; |
24663 | wxString *arg1 = 0 ; | |
24664 | wxAcceleratorEntry *result; | |
ae8162c8 | 24665 | bool temp1 = false ; |
d55e5bfc RD |
24666 | PyObject * obj0 = 0 ; |
24667 | char *kwnames[] = { | |
24668 | (char *) "label", NULL | |
24669 | }; | |
24670 | ||
24671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
24672 | { | |
24673 | arg1 = wxString_in_helper(obj0); | |
24674 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 24675 | temp1 = true; |
d55e5bfc RD |
24676 | } |
24677 | { | |
24678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24679 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
24680 | ||
24681 | wxPyEndAllowThreads(__tstate); | |
24682 | if (PyErr_Occurred()) SWIG_fail; | |
24683 | } | |
24684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
24685 | { | |
24686 | if (temp1) | |
24687 | delete arg1; | |
24688 | } | |
24689 | return resultobj; | |
24690 | fail: | |
24691 | { | |
24692 | if (temp1) | |
24693 | delete arg1; | |
24694 | } | |
24695 | return NULL; | |
24696 | } | |
24697 | ||
24698 | ||
c32bde28 | 24699 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
24700 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
24701 | return 1; | |
24702 | } | |
24703 | ||
24704 | ||
093d3ff1 | 24705 | static PyObject *_wrap_PanelNameStr_get(void) { |
d55e5bfc RD |
24706 | PyObject *pyobj; |
24707 | ||
24708 | { | |
24709 | #if wxUSE_UNICODE | |
24710 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
24711 | #else | |
24712 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
24713 | #endif | |
24714 | } | |
24715 | return pyobj; | |
24716 | } | |
24717 | ||
24718 | ||
c32bde28 | 24719 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24720 | PyObject *resultobj; |
24721 | wxVisualAttributes *result; | |
24722 | char *kwnames[] = { | |
24723 | NULL | |
24724 | }; | |
24725 | ||
24726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
24727 | { | |
24728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24729 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
24730 | ||
24731 | wxPyEndAllowThreads(__tstate); | |
24732 | if (PyErr_Occurred()) SWIG_fail; | |
24733 | } | |
24734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
24735 | return resultobj; | |
24736 | fail: | |
24737 | return NULL; | |
24738 | } | |
24739 | ||
24740 | ||
c32bde28 | 24741 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24742 | PyObject *resultobj; |
24743 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24744 | PyObject * obj0 = 0 ; | |
24745 | char *kwnames[] = { | |
24746 | (char *) "self", NULL | |
24747 | }; | |
24748 | ||
24749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24752 | { |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | delete_wxVisualAttributes(arg1); | |
24755 | ||
24756 | wxPyEndAllowThreads(__tstate); | |
24757 | if (PyErr_Occurred()) SWIG_fail; | |
24758 | } | |
24759 | Py_INCREF(Py_None); resultobj = Py_None; | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
c32bde28 | 24766 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24767 | PyObject *resultobj; |
24768 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24769 | wxFont *arg2 = (wxFont *) 0 ; | |
24770 | PyObject * obj0 = 0 ; | |
24771 | PyObject * obj1 = 0 ; | |
24772 | char *kwnames[] = { | |
24773 | (char *) "self",(char *) "font", NULL | |
24774 | }; | |
24775 | ||
24776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24777 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24778 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24779 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
24780 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24781 | if (arg1) (arg1)->font = *arg2; |
24782 | ||
24783 | Py_INCREF(Py_None); resultobj = Py_None; | |
24784 | return resultobj; | |
24785 | fail: | |
24786 | return NULL; | |
24787 | } | |
24788 | ||
24789 | ||
c32bde28 | 24790 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24791 | PyObject *resultobj; |
24792 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24793 | wxFont *result; | |
24794 | PyObject * obj0 = 0 ; | |
24795 | char *kwnames[] = { | |
24796 | (char *) "self", NULL | |
24797 | }; | |
24798 | ||
24799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24800 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24801 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24802 | result = (wxFont *)& ((arg1)->font); |
24803 | ||
24804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
24805 | return resultobj; | |
24806 | fail: | |
24807 | return NULL; | |
24808 | } | |
24809 | ||
24810 | ||
c32bde28 | 24811 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24812 | PyObject *resultobj; |
24813 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24814 | wxColour *arg2 = (wxColour *) 0 ; | |
24815 | PyObject * obj0 = 0 ; | |
24816 | PyObject * obj1 = 0 ; | |
24817 | char *kwnames[] = { | |
24818 | (char *) "self",(char *) "colFg", NULL | |
24819 | }; | |
24820 | ||
24821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24824 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
24825 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24826 | if (arg1) (arg1)->colFg = *arg2; |
24827 | ||
24828 | Py_INCREF(Py_None); resultobj = Py_None; | |
24829 | return resultobj; | |
24830 | fail: | |
24831 | return NULL; | |
24832 | } | |
24833 | ||
24834 | ||
c32bde28 | 24835 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24836 | PyObject *resultobj; |
24837 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24838 | wxColour *result; | |
24839 | PyObject * obj0 = 0 ; | |
24840 | char *kwnames[] = { | |
24841 | (char *) "self", NULL | |
24842 | }; | |
24843 | ||
24844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24847 | result = (wxColour *)& ((arg1)->colFg); |
24848 | ||
24849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
24850 | return resultobj; | |
24851 | fail: | |
24852 | return NULL; | |
24853 | } | |
24854 | ||
24855 | ||
c32bde28 | 24856 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24857 | PyObject *resultobj; |
24858 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24859 | wxColour *arg2 = (wxColour *) 0 ; | |
24860 | PyObject * obj0 = 0 ; | |
24861 | PyObject * obj1 = 0 ; | |
24862 | char *kwnames[] = { | |
24863 | (char *) "self",(char *) "colBg", NULL | |
24864 | }; | |
24865 | ||
24866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24869 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
24870 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24871 | if (arg1) (arg1)->colBg = *arg2; |
24872 | ||
24873 | Py_INCREF(Py_None); resultobj = Py_None; | |
24874 | return resultobj; | |
24875 | fail: | |
24876 | return NULL; | |
24877 | } | |
24878 | ||
24879 | ||
c32bde28 | 24880 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24881 | PyObject *resultobj; |
24882 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24883 | wxColour *result; | |
24884 | PyObject * obj0 = 0 ; | |
24885 | char *kwnames[] = { | |
24886 | (char *) "self", NULL | |
24887 | }; | |
24888 | ||
24889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24892 | result = (wxColour *)& ((arg1)->colBg); |
24893 | ||
24894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
24895 | return resultobj; | |
24896 | fail: | |
24897 | return NULL; | |
24898 | } | |
24899 | ||
24900 | ||
c32bde28 | 24901 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24902 | PyObject *obj; |
24903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24904 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
24905 | Py_INCREF(obj); | |
24906 | return Py_BuildValue((char *)""); | |
24907 | } | |
c32bde28 | 24908 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24909 | PyObject *resultobj; |
24910 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24911 | int arg2 = (int) (int)-1 ; | |
24912 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
24913 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24914 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24915 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24916 | long arg5 = (long) 0 ; | |
24917 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
24918 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
24919 | wxWindow *result; | |
24920 | wxPoint temp3 ; | |
24921 | wxSize temp4 ; | |
ae8162c8 | 24922 | bool temp6 = false ; |
d55e5bfc RD |
24923 | PyObject * obj0 = 0 ; |
24924 | PyObject * obj1 = 0 ; | |
24925 | PyObject * obj2 = 0 ; | |
24926 | PyObject * obj3 = 0 ; | |
24927 | PyObject * obj4 = 0 ; | |
24928 | PyObject * obj5 = 0 ; | |
24929 | char *kwnames[] = { | |
24930 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24931 | }; | |
24932 | ||
24933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
24934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 24936 | if (obj1) { |
093d3ff1 RD |
24937 | { |
24938 | arg2 = (int const)(SWIG_As_int(obj1)); | |
24939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24940 | } | |
d55e5bfc RD |
24941 | } |
24942 | if (obj2) { | |
24943 | { | |
24944 | arg3 = &temp3; | |
24945 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24946 | } | |
24947 | } | |
24948 | if (obj3) { | |
24949 | { | |
24950 | arg4 = &temp4; | |
24951 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24952 | } | |
24953 | } | |
24954 | if (obj4) { | |
093d3ff1 RD |
24955 | { |
24956 | arg5 = (long)(SWIG_As_long(obj4)); | |
24957 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24958 | } | |
d55e5bfc RD |
24959 | } |
24960 | if (obj5) { | |
24961 | { | |
24962 | arg6 = wxString_in_helper(obj5); | |
24963 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 24964 | temp6 = true; |
d55e5bfc RD |
24965 | } |
24966 | } | |
24967 | { | |
0439c23b | 24968 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24970 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
24971 | ||
24972 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24973 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 24974 | } |
b0f7404b | 24975 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
24976 | { |
24977 | if (temp6) | |
24978 | delete arg6; | |
24979 | } | |
24980 | return resultobj; | |
24981 | fail: | |
24982 | { | |
24983 | if (temp6) | |
24984 | delete arg6; | |
24985 | } | |
24986 | return NULL; | |
24987 | } | |
24988 | ||
24989 | ||
c32bde28 | 24990 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24991 | PyObject *resultobj; |
24992 | wxWindow *result; | |
24993 | char *kwnames[] = { | |
24994 | NULL | |
24995 | }; | |
24996 | ||
24997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
24998 | { | |
0439c23b | 24999 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25001 | result = (wxWindow *)new wxWindow(); | |
25002 | ||
25003 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25004 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 25005 | } |
b0f7404b | 25006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
25007 | return resultobj; |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
c32bde28 | 25013 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25014 | PyObject *resultobj; |
25015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25016 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25017 | int arg3 = (int) (int)-1 ; | |
25018 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25019 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25020 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25021 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25022 | long arg6 = (long) 0 ; | |
25023 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
25024 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25025 | bool result; | |
25026 | wxPoint temp4 ; | |
25027 | wxSize temp5 ; | |
ae8162c8 | 25028 | bool temp7 = false ; |
d55e5bfc RD |
25029 | PyObject * obj0 = 0 ; |
25030 | PyObject * obj1 = 0 ; | |
25031 | PyObject * obj2 = 0 ; | |
25032 | PyObject * obj3 = 0 ; | |
25033 | PyObject * obj4 = 0 ; | |
25034 | PyObject * obj5 = 0 ; | |
25035 | PyObject * obj6 = 0 ; | |
25036 | char *kwnames[] = { | |
25037 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25038 | }; | |
25039 | ||
25040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
25041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25043 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
25044 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 25045 | if (obj2) { |
093d3ff1 RD |
25046 | { |
25047 | arg3 = (int const)(SWIG_As_int(obj2)); | |
25048 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25049 | } | |
d55e5bfc RD |
25050 | } |
25051 | if (obj3) { | |
25052 | { | |
25053 | arg4 = &temp4; | |
25054 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25055 | } | |
25056 | } | |
25057 | if (obj4) { | |
25058 | { | |
25059 | arg5 = &temp5; | |
25060 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25061 | } | |
25062 | } | |
25063 | if (obj5) { | |
093d3ff1 RD |
25064 | { |
25065 | arg6 = (long)(SWIG_As_long(obj5)); | |
25066 | if (SWIG_arg_fail(6)) SWIG_fail; | |
25067 | } | |
d55e5bfc RD |
25068 | } |
25069 | if (obj6) { | |
25070 | { | |
25071 | arg7 = wxString_in_helper(obj6); | |
25072 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 25073 | temp7 = true; |
d55e5bfc RD |
25074 | } |
25075 | } | |
25076 | { | |
25077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25078 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
25079 | ||
25080 | wxPyEndAllowThreads(__tstate); | |
25081 | if (PyErr_Occurred()) SWIG_fail; | |
25082 | } | |
25083 | { | |
25084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25085 | } | |
25086 | { | |
25087 | if (temp7) | |
25088 | delete arg7; | |
25089 | } | |
25090 | return resultobj; | |
25091 | fail: | |
25092 | { | |
25093 | if (temp7) | |
25094 | delete arg7; | |
25095 | } | |
25096 | return NULL; | |
25097 | } | |
25098 | ||
25099 | ||
c32bde28 | 25100 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25101 | PyObject *resultobj; |
25102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 25103 | bool arg2 = (bool) false ; |
d55e5bfc RD |
25104 | bool result; |
25105 | PyObject * obj0 = 0 ; | |
25106 | PyObject * obj1 = 0 ; | |
25107 | char *kwnames[] = { | |
25108 | (char *) "self",(char *) "force", NULL | |
25109 | }; | |
25110 | ||
25111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 25114 | if (obj1) { |
093d3ff1 RD |
25115 | { |
25116 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
25117 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25118 | } | |
d55e5bfc RD |
25119 | } |
25120 | { | |
25121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25122 | result = (bool)(arg1)->Close(arg2); | |
25123 | ||
25124 | wxPyEndAllowThreads(__tstate); | |
25125 | if (PyErr_Occurred()) SWIG_fail; | |
25126 | } | |
25127 | { | |
25128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25129 | } | |
25130 | return resultobj; | |
25131 | fail: | |
25132 | return NULL; | |
25133 | } | |
25134 | ||
25135 | ||
c32bde28 | 25136 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25137 | PyObject *resultobj; |
25138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25139 | bool result; | |
25140 | PyObject * obj0 = 0 ; | |
25141 | char *kwnames[] = { | |
25142 | (char *) "self", NULL | |
25143 | }; | |
25144 | ||
25145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25148 | { |
25149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25150 | result = (bool)(arg1)->Destroy(); | |
25151 | ||
25152 | wxPyEndAllowThreads(__tstate); | |
25153 | if (PyErr_Occurred()) SWIG_fail; | |
25154 | } | |
25155 | { | |
25156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25157 | } | |
25158 | return resultobj; | |
25159 | fail: | |
25160 | return NULL; | |
25161 | } | |
25162 | ||
25163 | ||
c32bde28 | 25164 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25165 | PyObject *resultobj; |
25166 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25167 | bool result; | |
25168 | PyObject * obj0 = 0 ; | |
25169 | char *kwnames[] = { | |
25170 | (char *) "self", NULL | |
25171 | }; | |
25172 | ||
25173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25176 | { |
25177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25178 | result = (bool)(arg1)->DestroyChildren(); | |
25179 | ||
25180 | wxPyEndAllowThreads(__tstate); | |
25181 | if (PyErr_Occurred()) SWIG_fail; | |
25182 | } | |
25183 | { | |
25184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25185 | } | |
25186 | return resultobj; | |
25187 | fail: | |
25188 | return NULL; | |
25189 | } | |
25190 | ||
25191 | ||
c32bde28 | 25192 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25193 | PyObject *resultobj; |
25194 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25195 | bool result; | |
25196 | PyObject * obj0 = 0 ; | |
25197 | char *kwnames[] = { | |
25198 | (char *) "self", NULL | |
25199 | }; | |
25200 | ||
25201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25202 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25203 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25204 | { |
25205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25206 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
25207 | ||
25208 | wxPyEndAllowThreads(__tstate); | |
25209 | if (PyErr_Occurred()) SWIG_fail; | |
25210 | } | |
25211 | { | |
25212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25213 | } | |
25214 | return resultobj; | |
25215 | fail: | |
25216 | return NULL; | |
25217 | } | |
25218 | ||
25219 | ||
c32bde28 | 25220 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25221 | PyObject *resultobj; |
25222 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25223 | wxString *arg2 = 0 ; | |
ae8162c8 | 25224 | bool temp2 = false ; |
d55e5bfc RD |
25225 | PyObject * obj0 = 0 ; |
25226 | PyObject * obj1 = 0 ; | |
25227 | char *kwnames[] = { | |
25228 | (char *) "self",(char *) "title", NULL | |
25229 | }; | |
25230 | ||
25231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25234 | { |
25235 | arg2 = wxString_in_helper(obj1); | |
25236 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25237 | temp2 = true; |
d55e5bfc RD |
25238 | } |
25239 | { | |
25240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25241 | (arg1)->SetTitle((wxString const &)*arg2); | |
25242 | ||
25243 | wxPyEndAllowThreads(__tstate); | |
25244 | if (PyErr_Occurred()) SWIG_fail; | |
25245 | } | |
25246 | Py_INCREF(Py_None); resultobj = Py_None; | |
25247 | { | |
25248 | if (temp2) | |
25249 | delete arg2; | |
25250 | } | |
25251 | return resultobj; | |
25252 | fail: | |
25253 | { | |
25254 | if (temp2) | |
25255 | delete arg2; | |
25256 | } | |
25257 | return NULL; | |
25258 | } | |
25259 | ||
25260 | ||
c32bde28 | 25261 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25262 | PyObject *resultobj; |
25263 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25264 | wxString result; | |
25265 | PyObject * obj0 = 0 ; | |
25266 | char *kwnames[] = { | |
25267 | (char *) "self", NULL | |
25268 | }; | |
25269 | ||
25270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25273 | { |
25274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25275 | result = ((wxWindow const *)arg1)->GetTitle(); | |
25276 | ||
25277 | wxPyEndAllowThreads(__tstate); | |
25278 | if (PyErr_Occurred()) SWIG_fail; | |
25279 | } | |
25280 | { | |
25281 | #if wxUSE_UNICODE | |
25282 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25283 | #else | |
25284 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25285 | #endif | |
25286 | } | |
25287 | return resultobj; | |
25288 | fail: | |
25289 | return NULL; | |
25290 | } | |
25291 | ||
25292 | ||
c32bde28 | 25293 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25294 | PyObject *resultobj; |
25295 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25296 | wxString *arg2 = 0 ; | |
ae8162c8 | 25297 | bool temp2 = false ; |
d55e5bfc RD |
25298 | PyObject * obj0 = 0 ; |
25299 | PyObject * obj1 = 0 ; | |
25300 | char *kwnames[] = { | |
25301 | (char *) "self",(char *) "label", NULL | |
25302 | }; | |
25303 | ||
25304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25307 | { |
25308 | arg2 = wxString_in_helper(obj1); | |
25309 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25310 | temp2 = true; |
d55e5bfc RD |
25311 | } |
25312 | { | |
25313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25314 | (arg1)->SetLabel((wxString const &)*arg2); | |
25315 | ||
25316 | wxPyEndAllowThreads(__tstate); | |
25317 | if (PyErr_Occurred()) SWIG_fail; | |
25318 | } | |
25319 | Py_INCREF(Py_None); resultobj = Py_None; | |
25320 | { | |
25321 | if (temp2) | |
25322 | delete arg2; | |
25323 | } | |
25324 | return resultobj; | |
25325 | fail: | |
25326 | { | |
25327 | if (temp2) | |
25328 | delete arg2; | |
25329 | } | |
25330 | return NULL; | |
25331 | } | |
25332 | ||
25333 | ||
c32bde28 | 25334 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25335 | PyObject *resultobj; |
25336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25337 | wxString result; | |
25338 | PyObject * obj0 = 0 ; | |
25339 | char *kwnames[] = { | |
25340 | (char *) "self", NULL | |
25341 | }; | |
25342 | ||
25343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25346 | { |
25347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25348 | result = ((wxWindow const *)arg1)->GetLabel(); | |
25349 | ||
25350 | wxPyEndAllowThreads(__tstate); | |
25351 | if (PyErr_Occurred()) SWIG_fail; | |
25352 | } | |
25353 | { | |
25354 | #if wxUSE_UNICODE | |
25355 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25356 | #else | |
25357 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25358 | #endif | |
25359 | } | |
25360 | return resultobj; | |
25361 | fail: | |
25362 | return NULL; | |
25363 | } | |
25364 | ||
25365 | ||
c32bde28 | 25366 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25367 | PyObject *resultobj; |
25368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25369 | wxString *arg2 = 0 ; | |
ae8162c8 | 25370 | bool temp2 = false ; |
d55e5bfc RD |
25371 | PyObject * obj0 = 0 ; |
25372 | PyObject * obj1 = 0 ; | |
25373 | char *kwnames[] = { | |
25374 | (char *) "self",(char *) "name", NULL | |
25375 | }; | |
25376 | ||
25377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25380 | { |
25381 | arg2 = wxString_in_helper(obj1); | |
25382 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25383 | temp2 = true; |
d55e5bfc RD |
25384 | } |
25385 | { | |
25386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25387 | (arg1)->SetName((wxString const &)*arg2); | |
25388 | ||
25389 | wxPyEndAllowThreads(__tstate); | |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
25392 | Py_INCREF(Py_None); resultobj = Py_None; | |
25393 | { | |
25394 | if (temp2) | |
25395 | delete arg2; | |
25396 | } | |
25397 | return resultobj; | |
25398 | fail: | |
25399 | { | |
25400 | if (temp2) | |
25401 | delete arg2; | |
25402 | } | |
25403 | return NULL; | |
25404 | } | |
25405 | ||
25406 | ||
c32bde28 | 25407 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25408 | PyObject *resultobj; |
25409 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25410 | wxString result; | |
25411 | PyObject * obj0 = 0 ; | |
25412 | char *kwnames[] = { | |
25413 | (char *) "self", NULL | |
25414 | }; | |
25415 | ||
25416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25419 | { |
25420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25421 | result = ((wxWindow const *)arg1)->GetName(); | |
25422 | ||
25423 | wxPyEndAllowThreads(__tstate); | |
25424 | if (PyErr_Occurred()) SWIG_fail; | |
25425 | } | |
25426 | { | |
25427 | #if wxUSE_UNICODE | |
25428 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25429 | #else | |
25430 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25431 | #endif | |
25432 | } | |
25433 | return resultobj; | |
25434 | fail: | |
25435 | return NULL; | |
25436 | } | |
25437 | ||
25438 | ||
c32bde28 | 25439 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25440 | PyObject *resultobj; |
25441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 25442 | wxWindowVariant arg2 ; |
d55e5bfc RD |
25443 | PyObject * obj0 = 0 ; |
25444 | PyObject * obj1 = 0 ; | |
25445 | char *kwnames[] = { | |
25446 | (char *) "self",(char *) "variant", NULL | |
25447 | }; | |
25448 | ||
25449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25452 | { | |
25453 | arg2 = (wxWindowVariant)(SWIG_As_int(obj1)); | |
25454 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25455 | } | |
d55e5bfc RD |
25456 | { |
25457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25458 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
25459 | ||
25460 | wxPyEndAllowThreads(__tstate); | |
25461 | if (PyErr_Occurred()) SWIG_fail; | |
25462 | } | |
25463 | Py_INCREF(Py_None); resultobj = Py_None; | |
25464 | return resultobj; | |
25465 | fail: | |
25466 | return NULL; | |
25467 | } | |
25468 | ||
25469 | ||
c32bde28 | 25470 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25471 | PyObject *resultobj; |
25472 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 25473 | wxWindowVariant result; |
d55e5bfc RD |
25474 | PyObject * obj0 = 0 ; |
25475 | char *kwnames[] = { | |
25476 | (char *) "self", NULL | |
25477 | }; | |
25478 | ||
25479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25482 | { |
25483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25484 | result = (wxWindowVariant)((wxWindow const *)arg1)->GetWindowVariant(); |
d55e5bfc RD |
25485 | |
25486 | wxPyEndAllowThreads(__tstate); | |
25487 | if (PyErr_Occurred()) SWIG_fail; | |
25488 | } | |
093d3ff1 | 25489 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
25490 | return resultobj; |
25491 | fail: | |
25492 | return NULL; | |
25493 | } | |
25494 | ||
25495 | ||
c32bde28 | 25496 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25497 | PyObject *resultobj; |
25498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25499 | int arg2 ; | |
25500 | PyObject * obj0 = 0 ; | |
25501 | PyObject * obj1 = 0 ; | |
25502 | char *kwnames[] = { | |
25503 | (char *) "self",(char *) "winid", NULL | |
25504 | }; | |
25505 | ||
25506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25509 | { | |
25510 | arg2 = (int)(SWIG_As_int(obj1)); | |
25511 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25512 | } | |
d55e5bfc RD |
25513 | { |
25514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25515 | (arg1)->SetId(arg2); | |
25516 | ||
25517 | wxPyEndAllowThreads(__tstate); | |
25518 | if (PyErr_Occurred()) SWIG_fail; | |
25519 | } | |
25520 | Py_INCREF(Py_None); resultobj = Py_None; | |
25521 | return resultobj; | |
25522 | fail: | |
25523 | return NULL; | |
25524 | } | |
25525 | ||
25526 | ||
c32bde28 | 25527 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25528 | PyObject *resultobj; |
25529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25530 | int result; | |
25531 | PyObject * obj0 = 0 ; | |
25532 | char *kwnames[] = { | |
25533 | (char *) "self", NULL | |
25534 | }; | |
25535 | ||
25536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25539 | { |
25540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25541 | result = (int)((wxWindow const *)arg1)->GetId(); | |
25542 | ||
25543 | wxPyEndAllowThreads(__tstate); | |
25544 | if (PyErr_Occurred()) SWIG_fail; | |
25545 | } | |
093d3ff1 RD |
25546 | { |
25547 | resultobj = SWIG_From_int((int)(result)); | |
25548 | } | |
d55e5bfc RD |
25549 | return resultobj; |
25550 | fail: | |
25551 | return NULL; | |
25552 | } | |
25553 | ||
25554 | ||
c32bde28 | 25555 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25556 | PyObject *resultobj; |
25557 | int result; | |
25558 | char *kwnames[] = { | |
25559 | NULL | |
25560 | }; | |
25561 | ||
25562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
25563 | { | |
25564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25565 | result = (int)wxWindow::NewControlId(); | |
25566 | ||
25567 | wxPyEndAllowThreads(__tstate); | |
25568 | if (PyErr_Occurred()) SWIG_fail; | |
25569 | } | |
093d3ff1 RD |
25570 | { |
25571 | resultobj = SWIG_From_int((int)(result)); | |
25572 | } | |
d55e5bfc RD |
25573 | return resultobj; |
25574 | fail: | |
25575 | return NULL; | |
25576 | } | |
25577 | ||
25578 | ||
c32bde28 | 25579 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25580 | PyObject *resultobj; |
25581 | int arg1 ; | |
25582 | int result; | |
25583 | PyObject * obj0 = 0 ; | |
25584 | char *kwnames[] = { | |
25585 | (char *) "winid", NULL | |
25586 | }; | |
25587 | ||
25588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25589 | { |
25590 | arg1 = (int)(SWIG_As_int(obj0)); | |
25591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25592 | } | |
d55e5bfc RD |
25593 | { |
25594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25595 | result = (int)wxWindow::NextControlId(arg1); | |
25596 | ||
25597 | wxPyEndAllowThreads(__tstate); | |
25598 | if (PyErr_Occurred()) SWIG_fail; | |
25599 | } | |
093d3ff1 RD |
25600 | { |
25601 | resultobj = SWIG_From_int((int)(result)); | |
25602 | } | |
d55e5bfc RD |
25603 | return resultobj; |
25604 | fail: | |
25605 | return NULL; | |
25606 | } | |
25607 | ||
25608 | ||
c32bde28 | 25609 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25610 | PyObject *resultobj; |
25611 | int arg1 ; | |
25612 | int result; | |
25613 | PyObject * obj0 = 0 ; | |
25614 | char *kwnames[] = { | |
25615 | (char *) "winid", NULL | |
25616 | }; | |
25617 | ||
25618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25619 | { |
25620 | arg1 = (int)(SWIG_As_int(obj0)); | |
25621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25622 | } | |
d55e5bfc RD |
25623 | { |
25624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25625 | result = (int)wxWindow::PrevControlId(arg1); | |
25626 | ||
25627 | wxPyEndAllowThreads(__tstate); | |
25628 | if (PyErr_Occurred()) SWIG_fail; | |
25629 | } | |
093d3ff1 RD |
25630 | { |
25631 | resultobj = SWIG_From_int((int)(result)); | |
25632 | } | |
d55e5bfc RD |
25633 | return resultobj; |
25634 | fail: | |
25635 | return NULL; | |
25636 | } | |
25637 | ||
25638 | ||
c32bde28 | 25639 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25640 | PyObject *resultobj; |
25641 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25642 | wxSize *arg2 = 0 ; | |
25643 | wxSize temp2 ; | |
25644 | PyObject * obj0 = 0 ; | |
25645 | PyObject * obj1 = 0 ; | |
25646 | char *kwnames[] = { | |
25647 | (char *) "self",(char *) "size", NULL | |
25648 | }; | |
25649 | ||
25650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25653 | { |
25654 | arg2 = &temp2; | |
25655 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25656 | } | |
25657 | { | |
25658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25659 | (arg1)->SetSize((wxSize const &)*arg2); | |
25660 | ||
25661 | wxPyEndAllowThreads(__tstate); | |
25662 | if (PyErr_Occurred()) SWIG_fail; | |
25663 | } | |
25664 | Py_INCREF(Py_None); resultobj = Py_None; | |
25665 | return resultobj; | |
25666 | fail: | |
25667 | return NULL; | |
25668 | } | |
25669 | ||
25670 | ||
c32bde28 | 25671 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25672 | PyObject *resultobj; |
25673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25674 | int arg2 ; | |
25675 | int arg3 ; | |
25676 | int arg4 ; | |
25677 | int arg5 ; | |
25678 | int arg6 = (int) wxSIZE_AUTO ; | |
25679 | PyObject * obj0 = 0 ; | |
25680 | PyObject * obj1 = 0 ; | |
25681 | PyObject * obj2 = 0 ; | |
25682 | PyObject * obj3 = 0 ; | |
25683 | PyObject * obj4 = 0 ; | |
25684 | PyObject * obj5 = 0 ; | |
25685 | char *kwnames[] = { | |
25686 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
25687 | }; | |
25688 | ||
25689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
25690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25692 | { | |
25693 | arg2 = (int)(SWIG_As_int(obj1)); | |
25694 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25695 | } | |
25696 | { | |
25697 | arg3 = (int)(SWIG_As_int(obj2)); | |
25698 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25699 | } | |
25700 | { | |
25701 | arg4 = (int)(SWIG_As_int(obj3)); | |
25702 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25703 | } | |
25704 | { | |
25705 | arg5 = (int)(SWIG_As_int(obj4)); | |
25706 | if (SWIG_arg_fail(5)) SWIG_fail; | |
25707 | } | |
d55e5bfc | 25708 | if (obj5) { |
093d3ff1 RD |
25709 | { |
25710 | arg6 = (int)(SWIG_As_int(obj5)); | |
25711 | if (SWIG_arg_fail(6)) SWIG_fail; | |
25712 | } | |
d55e5bfc RD |
25713 | } |
25714 | { | |
25715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25716 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
25717 | ||
25718 | wxPyEndAllowThreads(__tstate); | |
25719 | if (PyErr_Occurred()) SWIG_fail; | |
25720 | } | |
25721 | Py_INCREF(Py_None); resultobj = Py_None; | |
25722 | return resultobj; | |
25723 | fail: | |
25724 | return NULL; | |
25725 | } | |
25726 | ||
25727 | ||
c32bde28 | 25728 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25729 | PyObject *resultobj; |
25730 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25731 | wxRect *arg2 = 0 ; | |
25732 | int arg3 = (int) wxSIZE_AUTO ; | |
25733 | wxRect temp2 ; | |
25734 | PyObject * obj0 = 0 ; | |
25735 | PyObject * obj1 = 0 ; | |
25736 | PyObject * obj2 = 0 ; | |
25737 | char *kwnames[] = { | |
25738 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
25739 | }; | |
25740 | ||
25741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25744 | { |
25745 | arg2 = &temp2; | |
25746 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25747 | } | |
25748 | if (obj2) { | |
093d3ff1 RD |
25749 | { |
25750 | arg3 = (int)(SWIG_As_int(obj2)); | |
25751 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25752 | } | |
d55e5bfc RD |
25753 | } |
25754 | { | |
25755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25756 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
25757 | ||
25758 | wxPyEndAllowThreads(__tstate); | |
25759 | if (PyErr_Occurred()) SWIG_fail; | |
25760 | } | |
25761 | Py_INCREF(Py_None); resultobj = Py_None; | |
25762 | return resultobj; | |
25763 | fail: | |
25764 | return NULL; | |
25765 | } | |
25766 | ||
25767 | ||
c32bde28 | 25768 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25769 | PyObject *resultobj; |
25770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25771 | int arg2 ; | |
25772 | int arg3 ; | |
25773 | PyObject * obj0 = 0 ; | |
25774 | PyObject * obj1 = 0 ; | |
25775 | PyObject * obj2 = 0 ; | |
25776 | char *kwnames[] = { | |
25777 | (char *) "self",(char *) "width",(char *) "height", NULL | |
25778 | }; | |
25779 | ||
25780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25783 | { | |
25784 | arg2 = (int)(SWIG_As_int(obj1)); | |
25785 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25786 | } | |
25787 | { | |
25788 | arg3 = (int)(SWIG_As_int(obj2)); | |
25789 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25790 | } | |
d55e5bfc RD |
25791 | { |
25792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25793 | (arg1)->SetSize(arg2,arg3); | |
25794 | ||
25795 | wxPyEndAllowThreads(__tstate); | |
25796 | if (PyErr_Occurred()) SWIG_fail; | |
25797 | } | |
25798 | Py_INCREF(Py_None); resultobj = Py_None; | |
25799 | return resultobj; | |
25800 | fail: | |
25801 | return NULL; | |
25802 | } | |
25803 | ||
25804 | ||
c32bde28 | 25805 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25806 | PyObject *resultobj; |
25807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25808 | wxPoint *arg2 = 0 ; | |
25809 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
25810 | wxPoint temp2 ; | |
25811 | PyObject * obj0 = 0 ; | |
25812 | PyObject * obj1 = 0 ; | |
25813 | PyObject * obj2 = 0 ; | |
25814 | char *kwnames[] = { | |
25815 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
25816 | }; | |
25817 | ||
25818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25821 | { |
25822 | arg2 = &temp2; | |
25823 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25824 | } | |
25825 | if (obj2) { | |
093d3ff1 RD |
25826 | { |
25827 | arg3 = (int)(SWIG_As_int(obj2)); | |
25828 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25829 | } | |
d55e5bfc RD |
25830 | } |
25831 | { | |
25832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25833 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
25834 | ||
25835 | wxPyEndAllowThreads(__tstate); | |
25836 | if (PyErr_Occurred()) SWIG_fail; | |
25837 | } | |
25838 | Py_INCREF(Py_None); resultobj = Py_None; | |
25839 | return resultobj; | |
25840 | fail: | |
25841 | return NULL; | |
25842 | } | |
25843 | ||
25844 | ||
c32bde28 | 25845 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25846 | PyObject *resultobj; |
25847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25848 | int arg2 ; | |
25849 | int arg3 ; | |
25850 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
25851 | PyObject * obj0 = 0 ; | |
25852 | PyObject * obj1 = 0 ; | |
25853 | PyObject * obj2 = 0 ; | |
25854 | PyObject * obj3 = 0 ; | |
25855 | char *kwnames[] = { | |
25856 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
25857 | }; | |
25858 | ||
25859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
25860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25862 | { | |
25863 | arg2 = (int)(SWIG_As_int(obj1)); | |
25864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25865 | } | |
25866 | { | |
25867 | arg3 = (int)(SWIG_As_int(obj2)); | |
25868 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25869 | } | |
d55e5bfc | 25870 | if (obj3) { |
093d3ff1 RD |
25871 | { |
25872 | arg4 = (int)(SWIG_As_int(obj3)); | |
25873 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25874 | } | |
d55e5bfc RD |
25875 | } |
25876 | { | |
25877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25878 | (arg1)->Move(arg2,arg3,arg4); | |
25879 | ||
25880 | wxPyEndAllowThreads(__tstate); | |
25881 | if (PyErr_Occurred()) SWIG_fail; | |
25882 | } | |
25883 | Py_INCREF(Py_None); resultobj = Py_None; | |
25884 | return resultobj; | |
25885 | fail: | |
25886 | return NULL; | |
25887 | } | |
25888 | ||
25889 | ||
c32bde28 | 25890 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
25891 | PyObject *resultobj; |
25892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25893 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
25894 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
25895 | wxSize temp2 ; | |
25896 | PyObject * obj0 = 0 ; | |
25897 | PyObject * obj1 = 0 ; | |
25898 | char *kwnames[] = { | |
25899 | (char *) "self",(char *) "size", NULL | |
25900 | }; | |
25901 | ||
25902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
f8167d6e RD |
25905 | if (obj1) { |
25906 | { | |
25907 | arg2 = &temp2; | |
25908 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25909 | } | |
25910 | } | |
25911 | { | |
25912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25913 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
25914 | ||
25915 | wxPyEndAllowThreads(__tstate); | |
25916 | if (PyErr_Occurred()) SWIG_fail; | |
25917 | } | |
25918 | Py_INCREF(Py_None); resultobj = Py_None; | |
25919 | return resultobj; | |
25920 | fail: | |
25921 | return NULL; | |
25922 | } | |
25923 | ||
25924 | ||
c32bde28 | 25925 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25926 | PyObject *resultobj; |
25927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25928 | PyObject * obj0 = 0 ; | |
25929 | char *kwnames[] = { | |
25930 | (char *) "self", NULL | |
25931 | }; | |
25932 | ||
25933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25936 | { |
25937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25938 | (arg1)->Raise(); | |
25939 | ||
25940 | wxPyEndAllowThreads(__tstate); | |
25941 | if (PyErr_Occurred()) SWIG_fail; | |
25942 | } | |
25943 | Py_INCREF(Py_None); resultobj = Py_None; | |
25944 | return resultobj; | |
25945 | fail: | |
25946 | return NULL; | |
25947 | } | |
25948 | ||
25949 | ||
c32bde28 | 25950 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25951 | PyObject *resultobj; |
25952 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25953 | PyObject * obj0 = 0 ; | |
25954 | char *kwnames[] = { | |
25955 | (char *) "self", NULL | |
25956 | }; | |
25957 | ||
25958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25959 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25960 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25961 | { |
25962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25963 | (arg1)->Lower(); | |
25964 | ||
25965 | wxPyEndAllowThreads(__tstate); | |
25966 | if (PyErr_Occurred()) SWIG_fail; | |
25967 | } | |
25968 | Py_INCREF(Py_None); resultobj = Py_None; | |
25969 | return resultobj; | |
25970 | fail: | |
25971 | return NULL; | |
25972 | } | |
25973 | ||
25974 | ||
c32bde28 | 25975 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25976 | PyObject *resultobj; |
25977 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25978 | wxSize *arg2 = 0 ; | |
25979 | wxSize temp2 ; | |
25980 | PyObject * obj0 = 0 ; | |
25981 | PyObject * obj1 = 0 ; | |
25982 | char *kwnames[] = { | |
25983 | (char *) "self",(char *) "size", NULL | |
25984 | }; | |
25985 | ||
25986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25987 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25988 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25989 | { |
25990 | arg2 = &temp2; | |
25991 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25992 | } | |
25993 | { | |
25994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25995 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
25996 | ||
25997 | wxPyEndAllowThreads(__tstate); | |
25998 | if (PyErr_Occurred()) SWIG_fail; | |
25999 | } | |
26000 | Py_INCREF(Py_None); resultobj = Py_None; | |
26001 | return resultobj; | |
26002 | fail: | |
26003 | return NULL; | |
26004 | } | |
26005 | ||
26006 | ||
c32bde28 | 26007 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26008 | PyObject *resultobj; |
26009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26010 | int arg2 ; | |
26011 | int arg3 ; | |
26012 | PyObject * obj0 = 0 ; | |
26013 | PyObject * obj1 = 0 ; | |
26014 | PyObject * obj2 = 0 ; | |
26015 | char *kwnames[] = { | |
26016 | (char *) "self",(char *) "width",(char *) "height", NULL | |
26017 | }; | |
26018 | ||
26019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
26020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26022 | { | |
26023 | arg2 = (int)(SWIG_As_int(obj1)); | |
26024 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26025 | } | |
26026 | { | |
26027 | arg3 = (int)(SWIG_As_int(obj2)); | |
26028 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26029 | } | |
d55e5bfc RD |
26030 | { |
26031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26032 | (arg1)->SetClientSize(arg2,arg3); | |
26033 | ||
26034 | wxPyEndAllowThreads(__tstate); | |
26035 | if (PyErr_Occurred()) SWIG_fail; | |
26036 | } | |
26037 | Py_INCREF(Py_None); resultobj = Py_None; | |
26038 | return resultobj; | |
26039 | fail: | |
26040 | return NULL; | |
26041 | } | |
26042 | ||
26043 | ||
c32bde28 | 26044 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26045 | PyObject *resultobj; |
26046 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26047 | wxRect *arg2 = 0 ; | |
26048 | wxRect temp2 ; | |
26049 | PyObject * obj0 = 0 ; | |
26050 | PyObject * obj1 = 0 ; | |
26051 | char *kwnames[] = { | |
26052 | (char *) "self",(char *) "rect", NULL | |
26053 | }; | |
26054 | ||
26055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26058 | { |
26059 | arg2 = &temp2; | |
26060 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26061 | } | |
26062 | { | |
26063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26064 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
26065 | ||
26066 | wxPyEndAllowThreads(__tstate); | |
26067 | if (PyErr_Occurred()) SWIG_fail; | |
26068 | } | |
26069 | Py_INCREF(Py_None); resultobj = Py_None; | |
26070 | return resultobj; | |
26071 | fail: | |
26072 | return NULL; | |
26073 | } | |
26074 | ||
26075 | ||
c32bde28 | 26076 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26077 | PyObject *resultobj; |
26078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26079 | wxPoint result; | |
26080 | PyObject * obj0 = 0 ; | |
26081 | char *kwnames[] = { | |
26082 | (char *) "self", NULL | |
26083 | }; | |
26084 | ||
26085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26088 | { |
26089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26090 | result = (arg1)->GetPosition(); | |
26091 | ||
26092 | wxPyEndAllowThreads(__tstate); | |
26093 | if (PyErr_Occurred()) SWIG_fail; | |
26094 | } | |
26095 | { | |
26096 | wxPoint * resultptr; | |
093d3ff1 | 26097 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
26098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
26099 | } | |
26100 | return resultobj; | |
26101 | fail: | |
26102 | return NULL; | |
26103 | } | |
26104 | ||
26105 | ||
c32bde28 | 26106 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26107 | PyObject *resultobj; |
26108 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26109 | int *arg2 = (int *) 0 ; | |
26110 | int *arg3 = (int *) 0 ; | |
26111 | int temp2 ; | |
c32bde28 | 26112 | int res2 = 0 ; |
d55e5bfc | 26113 | int temp3 ; |
c32bde28 | 26114 | int res3 = 0 ; |
d55e5bfc RD |
26115 | PyObject * obj0 = 0 ; |
26116 | char *kwnames[] = { | |
26117 | (char *) "self", NULL | |
26118 | }; | |
26119 | ||
c32bde28 RD |
26120 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26121 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 26122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26125 | { |
26126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26127 | (arg1)->GetPosition(arg2,arg3); | |
26128 | ||
26129 | wxPyEndAllowThreads(__tstate); | |
26130 | if (PyErr_Occurred()) SWIG_fail; | |
26131 | } | |
26132 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26133 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26134 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26135 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26136 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
26137 | return resultobj; |
26138 | fail: | |
26139 | return NULL; | |
26140 | } | |
26141 | ||
26142 | ||
c32bde28 | 26143 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26144 | PyObject *resultobj; |
26145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26146 | wxSize result; | |
26147 | PyObject * obj0 = 0 ; | |
26148 | char *kwnames[] = { | |
26149 | (char *) "self", NULL | |
26150 | }; | |
26151 | ||
26152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26155 | { |
26156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26157 | result = ((wxWindow const *)arg1)->GetSize(); | |
26158 | ||
26159 | wxPyEndAllowThreads(__tstate); | |
26160 | if (PyErr_Occurred()) SWIG_fail; | |
26161 | } | |
26162 | { | |
26163 | wxSize * resultptr; | |
093d3ff1 | 26164 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
26165 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26166 | } | |
26167 | return resultobj; | |
26168 | fail: | |
26169 | return NULL; | |
26170 | } | |
26171 | ||
26172 | ||
c32bde28 | 26173 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26174 | PyObject *resultobj; |
26175 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26176 | int *arg2 = (int *) 0 ; | |
26177 | int *arg3 = (int *) 0 ; | |
26178 | int temp2 ; | |
c32bde28 | 26179 | int res2 = 0 ; |
d55e5bfc | 26180 | int temp3 ; |
c32bde28 | 26181 | int res3 = 0 ; |
d55e5bfc RD |
26182 | PyObject * obj0 = 0 ; |
26183 | char *kwnames[] = { | |
26184 | (char *) "self", NULL | |
26185 | }; | |
26186 | ||
c32bde28 RD |
26187 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26188 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 26189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26192 | { |
26193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26194 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
26195 | ||
26196 | wxPyEndAllowThreads(__tstate); | |
26197 | if (PyErr_Occurred()) SWIG_fail; | |
26198 | } | |
26199 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26200 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26201 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26202 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26203 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
26204 | return resultobj; |
26205 | fail: | |
26206 | return NULL; | |
26207 | } | |
26208 | ||
26209 | ||
c32bde28 | 26210 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26211 | PyObject *resultobj; |
26212 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26213 | wxRect result; | |
26214 | PyObject * obj0 = 0 ; | |
26215 | char *kwnames[] = { | |
26216 | (char *) "self", NULL | |
26217 | }; | |
26218 | ||
26219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26222 | { |
26223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26224 | result = ((wxWindow const *)arg1)->GetRect(); | |
26225 | ||
26226 | wxPyEndAllowThreads(__tstate); | |
26227 | if (PyErr_Occurred()) SWIG_fail; | |
26228 | } | |
26229 | { | |
26230 | wxRect * resultptr; | |
093d3ff1 | 26231 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
26232 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
26233 | } | |
26234 | return resultobj; | |
26235 | fail: | |
26236 | return NULL; | |
26237 | } | |
26238 | ||
26239 | ||
c32bde28 | 26240 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26241 | PyObject *resultobj; |
26242 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26243 | wxSize result; | |
26244 | PyObject * obj0 = 0 ; | |
26245 | char *kwnames[] = { | |
26246 | (char *) "self", NULL | |
26247 | }; | |
26248 | ||
26249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26252 | { |
26253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26254 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
26255 | ||
26256 | wxPyEndAllowThreads(__tstate); | |
26257 | if (PyErr_Occurred()) SWIG_fail; | |
26258 | } | |
26259 | { | |
26260 | wxSize * resultptr; | |
093d3ff1 | 26261 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
26262 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26263 | } | |
26264 | return resultobj; | |
26265 | fail: | |
26266 | return NULL; | |
26267 | } | |
26268 | ||
26269 | ||
c32bde28 | 26270 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26271 | PyObject *resultobj; |
26272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26273 | int *arg2 = (int *) 0 ; | |
26274 | int *arg3 = (int *) 0 ; | |
26275 | int temp2 ; | |
c32bde28 | 26276 | int res2 = 0 ; |
d55e5bfc | 26277 | int temp3 ; |
c32bde28 | 26278 | int res3 = 0 ; |
d55e5bfc RD |
26279 | PyObject * obj0 = 0 ; |
26280 | char *kwnames[] = { | |
26281 | (char *) "self", NULL | |
26282 | }; | |
26283 | ||
c32bde28 RD |
26284 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26285 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 26286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26289 | { |
26290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26291 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
26292 | ||
26293 | wxPyEndAllowThreads(__tstate); | |
26294 | if (PyErr_Occurred()) SWIG_fail; | |
26295 | } | |
26296 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26297 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26298 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26299 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26300 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
26301 | return resultobj; |
26302 | fail: | |
26303 | return NULL; | |
26304 | } | |
26305 | ||
26306 | ||
c32bde28 | 26307 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26308 | PyObject *resultobj; |
26309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26310 | wxPoint result; | |
26311 | PyObject * obj0 = 0 ; | |
26312 | char *kwnames[] = { | |
26313 | (char *) "self", NULL | |
26314 | }; | |
26315 | ||
26316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26319 | { |
26320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26321 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
26322 | ||
26323 | wxPyEndAllowThreads(__tstate); | |
26324 | if (PyErr_Occurred()) SWIG_fail; | |
26325 | } | |
26326 | { | |
26327 | wxPoint * resultptr; | |
093d3ff1 | 26328 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
26329 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
26330 | } | |
26331 | return resultobj; | |
26332 | fail: | |
26333 | return NULL; | |
26334 | } | |
26335 | ||
26336 | ||
c32bde28 | 26337 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26338 | PyObject *resultobj; |
26339 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26340 | wxRect result; | |
26341 | PyObject * obj0 = 0 ; | |
26342 | char *kwnames[] = { | |
26343 | (char *) "self", NULL | |
26344 | }; | |
26345 | ||
26346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26349 | { |
26350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26351 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
26352 | ||
26353 | wxPyEndAllowThreads(__tstate); | |
26354 | if (PyErr_Occurred()) SWIG_fail; | |
26355 | } | |
26356 | { | |
26357 | wxRect * resultptr; | |
093d3ff1 | 26358 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
26359 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
26360 | } | |
26361 | return resultobj; | |
26362 | fail: | |
26363 | return NULL; | |
26364 | } | |
26365 | ||
26366 | ||
c32bde28 | 26367 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26368 | PyObject *resultobj; |
26369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26370 | wxSize result; | |
26371 | PyObject * obj0 = 0 ; | |
26372 | char *kwnames[] = { | |
26373 | (char *) "self", NULL | |
26374 | }; | |
26375 | ||
26376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26379 | { |
26380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26381 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
26382 | ||
26383 | wxPyEndAllowThreads(__tstate); | |
26384 | if (PyErr_Occurred()) SWIG_fail; | |
26385 | } | |
26386 | { | |
26387 | wxSize * resultptr; | |
093d3ff1 | 26388 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
26389 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26390 | } | |
26391 | return resultobj; | |
26392 | fail: | |
26393 | return NULL; | |
26394 | } | |
26395 | ||
26396 | ||
c32bde28 | 26397 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26398 | PyObject *resultobj; |
26399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26400 | int *arg2 = (int *) 0 ; | |
26401 | int *arg3 = (int *) 0 ; | |
26402 | int temp2 ; | |
c32bde28 | 26403 | int res2 = 0 ; |
d55e5bfc | 26404 | int temp3 ; |
c32bde28 | 26405 | int res3 = 0 ; |
d55e5bfc RD |
26406 | PyObject * obj0 = 0 ; |
26407 | char *kwnames[] = { | |
26408 | (char *) "self", NULL | |
26409 | }; | |
26410 | ||
c32bde28 RD |
26411 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26412 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 26413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26416 | { |
26417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26418 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
26419 | ||
26420 | wxPyEndAllowThreads(__tstate); | |
26421 | if (PyErr_Occurred()) SWIG_fail; | |
26422 | } | |
26423 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26424 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26425 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26426 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26427 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
26428 | return resultobj; |
26429 | fail: | |
26430 | return NULL; | |
26431 | } | |
26432 | ||
26433 | ||
c32bde28 | 26434 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
26435 | PyObject *resultobj; |
26436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26437 | PyObject * obj0 = 0 ; | |
26438 | char *kwnames[] = { | |
26439 | (char *) "self", NULL | |
26440 | }; | |
26441 | ||
26442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26443 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a001823c RD |
26445 | { |
26446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26447 | (arg1)->InvalidateBestSize(); | |
26448 | ||
26449 | wxPyEndAllowThreads(__tstate); | |
26450 | if (PyErr_Occurred()) SWIG_fail; | |
26451 | } | |
26452 | Py_INCREF(Py_None); resultobj = Py_None; | |
26453 | return resultobj; | |
26454 | fail: | |
26455 | return NULL; | |
26456 | } | |
26457 | ||
26458 | ||
c32bde28 | 26459 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
26460 | PyObject *resultobj; |
26461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26462 | wxSize result; | |
26463 | PyObject * obj0 = 0 ; | |
26464 | char *kwnames[] = { | |
26465 | (char *) "self", NULL | |
26466 | }; | |
26467 | ||
26468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26469 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26470 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a001823c RD |
26471 | { |
26472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26473 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
26474 | ||
26475 | wxPyEndAllowThreads(__tstate); | |
26476 | if (PyErr_Occurred()) SWIG_fail; | |
26477 | } | |
26478 | { | |
26479 | wxSize * resultptr; | |
093d3ff1 | 26480 | resultptr = new wxSize((wxSize &)(result)); |
a001823c RD |
26481 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26482 | } | |
26483 | return resultobj; | |
26484 | fail: | |
26485 | return NULL; | |
26486 | } | |
26487 | ||
26488 | ||
c32bde28 | 26489 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26490 | PyObject *resultobj; |
26491 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26492 | wxSize result; | |
26493 | PyObject * obj0 = 0 ; | |
26494 | char *kwnames[] = { | |
26495 | (char *) "self", NULL | |
26496 | }; | |
26497 | ||
26498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26501 | { |
26502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26503 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
26504 | ||
26505 | wxPyEndAllowThreads(__tstate); | |
26506 | if (PyErr_Occurred()) SWIG_fail; | |
26507 | } | |
26508 | { | |
26509 | wxSize * resultptr; | |
093d3ff1 | 26510 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
26511 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26512 | } | |
26513 | return resultobj; | |
26514 | fail: | |
26515 | return NULL; | |
26516 | } | |
26517 | ||
26518 | ||
c32bde28 | 26519 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26520 | PyObject *resultobj; |
26521 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26522 | int arg2 = (int) wxBOTH ; | |
26523 | PyObject * obj0 = 0 ; | |
26524 | PyObject * obj1 = 0 ; | |
26525 | char *kwnames[] = { | |
26526 | (char *) "self",(char *) "direction", NULL | |
26527 | }; | |
26528 | ||
26529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26532 | if (obj1) { |
093d3ff1 RD |
26533 | { |
26534 | arg2 = (int)(SWIG_As_int(obj1)); | |
26535 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26536 | } | |
d55e5bfc RD |
26537 | } |
26538 | { | |
26539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26540 | (arg1)->Center(arg2); | |
26541 | ||
26542 | wxPyEndAllowThreads(__tstate); | |
26543 | if (PyErr_Occurred()) SWIG_fail; | |
26544 | } | |
26545 | Py_INCREF(Py_None); resultobj = Py_None; | |
26546 | return resultobj; | |
26547 | fail: | |
26548 | return NULL; | |
26549 | } | |
26550 | ||
26551 | ||
c32bde28 | 26552 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26553 | PyObject *resultobj; |
26554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26555 | int arg2 = (int) wxBOTH ; | |
26556 | PyObject * obj0 = 0 ; | |
26557 | PyObject * obj1 = 0 ; | |
26558 | char *kwnames[] = { | |
26559 | (char *) "self",(char *) "dir", NULL | |
26560 | }; | |
26561 | ||
26562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26565 | if (obj1) { |
093d3ff1 RD |
26566 | { |
26567 | arg2 = (int)(SWIG_As_int(obj1)); | |
26568 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26569 | } | |
d55e5bfc RD |
26570 | } |
26571 | { | |
26572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26573 | (arg1)->CenterOnScreen(arg2); | |
26574 | ||
26575 | wxPyEndAllowThreads(__tstate); | |
26576 | if (PyErr_Occurred()) SWIG_fail; | |
26577 | } | |
26578 | Py_INCREF(Py_None); resultobj = Py_None; | |
26579 | return resultobj; | |
26580 | fail: | |
26581 | return NULL; | |
26582 | } | |
26583 | ||
26584 | ||
c32bde28 | 26585 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26586 | PyObject *resultobj; |
26587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26588 | int arg2 = (int) wxBOTH ; | |
26589 | PyObject * obj0 = 0 ; | |
26590 | PyObject * obj1 = 0 ; | |
26591 | char *kwnames[] = { | |
26592 | (char *) "self",(char *) "dir", NULL | |
26593 | }; | |
26594 | ||
26595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26598 | if (obj1) { |
093d3ff1 RD |
26599 | { |
26600 | arg2 = (int)(SWIG_As_int(obj1)); | |
26601 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26602 | } | |
d55e5bfc RD |
26603 | } |
26604 | { | |
26605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26606 | (arg1)->CenterOnParent(arg2); | |
26607 | ||
26608 | wxPyEndAllowThreads(__tstate); | |
26609 | if (PyErr_Occurred()) SWIG_fail; | |
26610 | } | |
26611 | Py_INCREF(Py_None); resultobj = Py_None; | |
26612 | return resultobj; | |
26613 | fail: | |
26614 | return NULL; | |
26615 | } | |
26616 | ||
26617 | ||
c32bde28 | 26618 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26619 | PyObject *resultobj; |
26620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26621 | PyObject * obj0 = 0 ; | |
26622 | char *kwnames[] = { | |
26623 | (char *) "self", NULL | |
26624 | }; | |
26625 | ||
26626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26629 | { |
26630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26631 | (arg1)->Fit(); | |
26632 | ||
26633 | wxPyEndAllowThreads(__tstate); | |
26634 | if (PyErr_Occurred()) SWIG_fail; | |
26635 | } | |
26636 | Py_INCREF(Py_None); resultobj = Py_None; | |
26637 | return resultobj; | |
26638 | fail: | |
26639 | return NULL; | |
26640 | } | |
26641 | ||
26642 | ||
c32bde28 | 26643 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26644 | PyObject *resultobj; |
26645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26646 | PyObject * obj0 = 0 ; | |
26647 | char *kwnames[] = { | |
26648 | (char *) "self", NULL | |
26649 | }; | |
26650 | ||
26651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26654 | { |
26655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26656 | (arg1)->FitInside(); | |
26657 | ||
26658 | wxPyEndAllowThreads(__tstate); | |
26659 | if (PyErr_Occurred()) SWIG_fail; | |
26660 | } | |
26661 | Py_INCREF(Py_None); resultobj = Py_None; | |
26662 | return resultobj; | |
26663 | fail: | |
26664 | return NULL; | |
26665 | } | |
26666 | ||
26667 | ||
c32bde28 | 26668 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26669 | PyObject *resultobj; |
26670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26671 | int arg2 ; | |
26672 | int arg3 ; | |
26673 | int arg4 = (int) -1 ; | |
26674 | int arg5 = (int) -1 ; | |
26675 | int arg6 = (int) -1 ; | |
26676 | int arg7 = (int) -1 ; | |
26677 | PyObject * obj0 = 0 ; | |
26678 | PyObject * obj1 = 0 ; | |
26679 | PyObject * obj2 = 0 ; | |
26680 | PyObject * obj3 = 0 ; | |
26681 | PyObject * obj4 = 0 ; | |
26682 | PyObject * obj5 = 0 ; | |
26683 | PyObject * obj6 = 0 ; | |
03837c5c RD |
26684 | char *kwnames[] = { |
26685 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
26686 | }; | |
d55e5bfc | 26687 | |
03837c5c | 26688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
26689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26691 | { | |
26692 | arg2 = (int)(SWIG_As_int(obj1)); | |
26693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26694 | } | |
26695 | { | |
26696 | arg3 = (int)(SWIG_As_int(obj2)); | |
26697 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26698 | } | |
d55e5bfc | 26699 | if (obj3) { |
093d3ff1 RD |
26700 | { |
26701 | arg4 = (int)(SWIG_As_int(obj3)); | |
26702 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26703 | } | |
d55e5bfc RD |
26704 | } |
26705 | if (obj4) { | |
093d3ff1 RD |
26706 | { |
26707 | arg5 = (int)(SWIG_As_int(obj4)); | |
26708 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26709 | } | |
d55e5bfc RD |
26710 | } |
26711 | if (obj5) { | |
093d3ff1 RD |
26712 | { |
26713 | arg6 = (int)(SWIG_As_int(obj5)); | |
26714 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26715 | } | |
d55e5bfc RD |
26716 | } |
26717 | if (obj6) { | |
093d3ff1 RD |
26718 | { |
26719 | arg7 = (int)(SWIG_As_int(obj6)); | |
26720 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26721 | } | |
d55e5bfc RD |
26722 | } |
26723 | { | |
26724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26725 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
26726 | ||
26727 | wxPyEndAllowThreads(__tstate); | |
26728 | if (PyErr_Occurred()) SWIG_fail; | |
26729 | } | |
26730 | Py_INCREF(Py_None); resultobj = Py_None; | |
26731 | return resultobj; | |
26732 | fail: | |
26733 | return NULL; | |
26734 | } | |
26735 | ||
26736 | ||
c32bde28 | 26737 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26738 | PyObject *resultobj; |
26739 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
26740 | wxSize *arg2 = 0 ; |
26741 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
26742 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
26743 | wxSize const &arg4_defvalue = wxDefaultSize ; |
26744 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
26745 | wxSize temp2 ; |
26746 | wxSize temp3 ; | |
03837c5c | 26747 | wxSize temp4 ; |
d55e5bfc RD |
26748 | PyObject * obj0 = 0 ; |
26749 | PyObject * obj1 = 0 ; | |
26750 | PyObject * obj2 = 0 ; | |
03837c5c RD |
26751 | PyObject * obj3 = 0 ; |
26752 | char *kwnames[] = { | |
26753 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
26754 | }; | |
d55e5bfc | 26755 | |
03837c5c | 26756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
26757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
26759 | { |
26760 | arg2 = &temp2; | |
26761 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 26762 | } |
908b74cd RD |
26763 | if (obj2) { |
26764 | { | |
26765 | arg3 = &temp3; | |
26766 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
26767 | } | |
d55e5bfc | 26768 | } |
03837c5c RD |
26769 | if (obj3) { |
26770 | { | |
26771 | arg4 = &temp4; | |
26772 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26773 | } | |
26774 | } | |
d55e5bfc RD |
26775 | { |
26776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 26777 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
26778 | |
26779 | wxPyEndAllowThreads(__tstate); | |
26780 | if (PyErr_Occurred()) SWIG_fail; | |
26781 | } | |
26782 | Py_INCREF(Py_None); resultobj = Py_None; | |
26783 | return resultobj; | |
26784 | fail: | |
26785 | return NULL; | |
26786 | } | |
26787 | ||
26788 | ||
c32bde28 | 26789 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26790 | PyObject *resultobj; |
26791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
26792 | int arg2 ; |
26793 | int arg3 ; | |
26794 | int arg4 = (int) -1 ; | |
26795 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
26796 | PyObject * obj0 = 0 ; |
26797 | PyObject * obj1 = 0 ; | |
26798 | PyObject * obj2 = 0 ; | |
908b74cd RD |
26799 | PyObject * obj3 = 0 ; |
26800 | PyObject * obj4 = 0 ; | |
03837c5c RD |
26801 | char *kwnames[] = { |
26802 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
26803 | }; | |
d55e5bfc | 26804 | |
03837c5c | 26805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
26806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26808 | { | |
26809 | arg2 = (int)(SWIG_As_int(obj1)); | |
26810 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26811 | } | |
26812 | { | |
26813 | arg3 = (int)(SWIG_As_int(obj2)); | |
26814 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26815 | } | |
908b74cd | 26816 | if (obj3) { |
093d3ff1 RD |
26817 | { |
26818 | arg4 = (int)(SWIG_As_int(obj3)); | |
26819 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26820 | } | |
d55e5bfc | 26821 | } |
908b74cd | 26822 | if (obj4) { |
093d3ff1 RD |
26823 | { |
26824 | arg5 = (int)(SWIG_As_int(obj4)); | |
26825 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26826 | } | |
d55e5bfc RD |
26827 | } |
26828 | { | |
26829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26830 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
26831 | |
26832 | wxPyEndAllowThreads(__tstate); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | } | |
26835 | Py_INCREF(Py_None); resultobj = Py_None; | |
26836 | return resultobj; | |
26837 | fail: | |
26838 | return NULL; | |
26839 | } | |
26840 | ||
26841 | ||
c32bde28 | 26842 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
26843 | PyObject *resultobj; |
26844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26845 | wxSize *arg2 = 0 ; | |
26846 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
26847 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
26848 | wxSize temp2 ; | |
26849 | wxSize temp3 ; | |
26850 | PyObject * obj0 = 0 ; | |
26851 | PyObject * obj1 = 0 ; | |
26852 | PyObject * obj2 = 0 ; | |
26853 | char *kwnames[] = { | |
26854 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
26855 | }; | |
d55e5bfc | 26856 | |
03837c5c | 26857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03837c5c RD |
26860 | { |
26861 | arg2 = &temp2; | |
26862 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 26863 | } |
03837c5c | 26864 | if (obj2) { |
d55e5bfc | 26865 | { |
03837c5c RD |
26866 | arg3 = &temp3; |
26867 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
26868 | } |
26869 | } | |
03837c5c RD |
26870 | { |
26871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26872 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
26873 | ||
26874 | wxPyEndAllowThreads(__tstate); | |
26875 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 26876 | } |
03837c5c RD |
26877 | Py_INCREF(Py_None); resultobj = Py_None; |
26878 | return resultobj; | |
26879 | fail: | |
d55e5bfc RD |
26880 | return NULL; |
26881 | } | |
26882 | ||
26883 | ||
c32bde28 | 26884 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26885 | PyObject *resultobj; |
26886 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 26887 | wxSize result; |
d55e5bfc RD |
26888 | PyObject * obj0 = 0 ; |
26889 | char *kwnames[] = { | |
26890 | (char *) "self", NULL | |
26891 | }; | |
26892 | ||
908b74cd | 26893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26896 | { |
26897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26898 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
26899 | |
26900 | wxPyEndAllowThreads(__tstate); | |
26901 | if (PyErr_Occurred()) SWIG_fail; | |
26902 | } | |
908b74cd RD |
26903 | { |
26904 | wxSize * resultptr; | |
093d3ff1 | 26905 | resultptr = new wxSize((wxSize &)(result)); |
908b74cd RD |
26906 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26907 | } | |
d55e5bfc RD |
26908 | return resultobj; |
26909 | fail: | |
26910 | return NULL; | |
26911 | } | |
26912 | ||
26913 | ||
c32bde28 | 26914 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26915 | PyObject *resultobj; |
26916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 26917 | wxSize result; |
d55e5bfc RD |
26918 | PyObject * obj0 = 0 ; |
26919 | char *kwnames[] = { | |
26920 | (char *) "self", NULL | |
26921 | }; | |
26922 | ||
908b74cd | 26923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26926 | { |
26927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26928 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
26929 | |
26930 | wxPyEndAllowThreads(__tstate); | |
26931 | if (PyErr_Occurred()) SWIG_fail; | |
26932 | } | |
908b74cd RD |
26933 | { |
26934 | wxSize * resultptr; | |
093d3ff1 | 26935 | resultptr = new wxSize((wxSize &)(result)); |
908b74cd RD |
26936 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26937 | } | |
d55e5bfc RD |
26938 | return resultobj; |
26939 | fail: | |
26940 | return NULL; | |
26941 | } | |
26942 | ||
26943 | ||
c32bde28 | 26944 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
26945 | PyObject *resultobj; |
26946 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26947 | wxSize *arg2 = 0 ; | |
26948 | wxSize temp2 ; | |
26949 | PyObject * obj0 = 0 ; | |
26950 | PyObject * obj1 = 0 ; | |
26951 | char *kwnames[] = { | |
26952 | (char *) "self",(char *) "minSize", NULL | |
26953 | }; | |
26954 | ||
26955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
26958 | { |
26959 | arg2 = &temp2; | |
26960 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26961 | } | |
26962 | { | |
26963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26964 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
26965 | ||
26966 | wxPyEndAllowThreads(__tstate); | |
26967 | if (PyErr_Occurred()) SWIG_fail; | |
26968 | } | |
26969 | Py_INCREF(Py_None); resultobj = Py_None; | |
26970 | return resultobj; | |
26971 | fail: | |
26972 | return NULL; | |
26973 | } | |
26974 | ||
26975 | ||
c32bde28 | 26976 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
26977 | PyObject *resultobj; |
26978 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26979 | wxSize *arg2 = 0 ; | |
26980 | wxSize temp2 ; | |
26981 | PyObject * obj0 = 0 ; | |
26982 | PyObject * obj1 = 0 ; | |
26983 | char *kwnames[] = { | |
26984 | (char *) "self",(char *) "maxSize", NULL | |
26985 | }; | |
26986 | ||
26987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
26990 | { |
26991 | arg2 = &temp2; | |
26992 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26993 | } | |
26994 | { | |
26995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26996 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
26997 | ||
26998 | wxPyEndAllowThreads(__tstate); | |
26999 | if (PyErr_Occurred()) SWIG_fail; | |
27000 | } | |
27001 | Py_INCREF(Py_None); resultobj = Py_None; | |
27002 | return resultobj; | |
27003 | fail: | |
27004 | return NULL; | |
27005 | } | |
27006 | ||
27007 | ||
c32bde28 | 27008 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27009 | PyObject *resultobj; |
27010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27011 | int result; | |
27012 | PyObject * obj0 = 0 ; | |
27013 | char *kwnames[] = { | |
27014 | (char *) "self", NULL | |
27015 | }; | |
27016 | ||
908b74cd | 27017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27020 | { |
27021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 27022 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
27023 | |
27024 | wxPyEndAllowThreads(__tstate); | |
27025 | if (PyErr_Occurred()) SWIG_fail; | |
27026 | } | |
093d3ff1 RD |
27027 | { |
27028 | resultobj = SWIG_From_int((int)(result)); | |
27029 | } | |
d55e5bfc RD |
27030 | return resultobj; |
27031 | fail: | |
27032 | return NULL; | |
27033 | } | |
27034 | ||
27035 | ||
c32bde28 | 27036 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27037 | PyObject *resultobj; |
27038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27039 | int result; | |
27040 | PyObject * obj0 = 0 ; | |
27041 | char *kwnames[] = { | |
27042 | (char *) "self", NULL | |
27043 | }; | |
27044 | ||
908b74cd | 27045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27048 | { |
27049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 27050 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
27051 | |
27052 | wxPyEndAllowThreads(__tstate); | |
27053 | if (PyErr_Occurred()) SWIG_fail; | |
27054 | } | |
093d3ff1 RD |
27055 | { |
27056 | resultobj = SWIG_From_int((int)(result)); | |
27057 | } | |
d55e5bfc RD |
27058 | return resultobj; |
27059 | fail: | |
27060 | return NULL; | |
27061 | } | |
27062 | ||
27063 | ||
c32bde28 | 27064 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27065 | PyObject *resultobj; |
27066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 27067 | int result; |
d55e5bfc RD |
27068 | PyObject * obj0 = 0 ; |
27069 | char *kwnames[] = { | |
27070 | (char *) "self", NULL | |
27071 | }; | |
27072 | ||
908b74cd | 27073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27076 | { |
27077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 27078 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
27079 | |
27080 | wxPyEndAllowThreads(__tstate); | |
27081 | if (PyErr_Occurred()) SWIG_fail; | |
27082 | } | |
093d3ff1 RD |
27083 | { |
27084 | resultobj = SWIG_From_int((int)(result)); | |
27085 | } | |
d55e5bfc RD |
27086 | return resultobj; |
27087 | fail: | |
27088 | return NULL; | |
27089 | } | |
27090 | ||
27091 | ||
c32bde28 | 27092 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27093 | PyObject *resultobj; |
27094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 27095 | int result; |
d55e5bfc RD |
27096 | PyObject * obj0 = 0 ; |
27097 | char *kwnames[] = { | |
27098 | (char *) "self", NULL | |
27099 | }; | |
27100 | ||
908b74cd | 27101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27104 | { |
27105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 27106 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
27107 | |
27108 | wxPyEndAllowThreads(__tstate); | |
27109 | if (PyErr_Occurred()) SWIG_fail; | |
27110 | } | |
093d3ff1 RD |
27111 | { |
27112 | resultobj = SWIG_From_int((int)(result)); | |
27113 | } | |
d55e5bfc RD |
27114 | return resultobj; |
27115 | fail: | |
27116 | return NULL; | |
27117 | } | |
27118 | ||
27119 | ||
c32bde28 | 27120 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27121 | PyObject *resultobj; |
27122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27123 | wxSize *arg2 = 0 ; | |
27124 | wxSize temp2 ; | |
27125 | PyObject * obj0 = 0 ; | |
27126 | PyObject * obj1 = 0 ; | |
27127 | char *kwnames[] = { | |
27128 | (char *) "self",(char *) "size", NULL | |
27129 | }; | |
27130 | ||
27131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27134 | { |
27135 | arg2 = &temp2; | |
27136 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
27137 | } | |
27138 | { | |
27139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27140 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
27141 | ||
27142 | wxPyEndAllowThreads(__tstate); | |
27143 | if (PyErr_Occurred()) SWIG_fail; | |
27144 | } | |
27145 | Py_INCREF(Py_None); resultobj = Py_None; | |
27146 | return resultobj; | |
27147 | fail: | |
27148 | return NULL; | |
27149 | } | |
27150 | ||
27151 | ||
c32bde28 | 27152 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27153 | PyObject *resultobj; |
27154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27155 | int arg2 ; | |
27156 | int arg3 ; | |
27157 | PyObject * obj0 = 0 ; | |
27158 | PyObject * obj1 = 0 ; | |
27159 | PyObject * obj2 = 0 ; | |
27160 | char *kwnames[] = { | |
27161 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27162 | }; | |
27163 | ||
27164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
27165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27167 | { | |
27168 | arg2 = (int)(SWIG_As_int(obj1)); | |
27169 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27170 | } | |
27171 | { | |
27172 | arg3 = (int)(SWIG_As_int(obj2)); | |
27173 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27174 | } | |
d55e5bfc RD |
27175 | { |
27176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27177 | (arg1)->SetVirtualSize(arg2,arg3); | |
27178 | ||
27179 | wxPyEndAllowThreads(__tstate); | |
27180 | if (PyErr_Occurred()) SWIG_fail; | |
27181 | } | |
27182 | Py_INCREF(Py_None); resultobj = Py_None; | |
27183 | return resultobj; | |
27184 | fail: | |
27185 | return NULL; | |
27186 | } | |
27187 | ||
27188 | ||
c32bde28 | 27189 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27190 | PyObject *resultobj; |
27191 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27192 | wxSize result; | |
27193 | PyObject * obj0 = 0 ; | |
27194 | char *kwnames[] = { | |
27195 | (char *) "self", NULL | |
27196 | }; | |
27197 | ||
27198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27201 | { |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27203 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
27204 | ||
27205 | wxPyEndAllowThreads(__tstate); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
27208 | { | |
27209 | wxSize * resultptr; | |
093d3ff1 | 27210 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
27211 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
27212 | } | |
27213 | return resultobj; | |
27214 | fail: | |
27215 | return NULL; | |
27216 | } | |
27217 | ||
27218 | ||
c32bde28 | 27219 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27220 | PyObject *resultobj; |
27221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27222 | int *arg2 = (int *) 0 ; | |
27223 | int *arg3 = (int *) 0 ; | |
27224 | int temp2 ; | |
c32bde28 | 27225 | int res2 = 0 ; |
d55e5bfc | 27226 | int temp3 ; |
c32bde28 | 27227 | int res3 = 0 ; |
d55e5bfc RD |
27228 | PyObject * obj0 = 0 ; |
27229 | char *kwnames[] = { | |
27230 | (char *) "self", NULL | |
27231 | }; | |
27232 | ||
c32bde28 RD |
27233 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
27234 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 27235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27238 | { |
27239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27240 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
27241 | ||
27242 | wxPyEndAllowThreads(__tstate); | |
27243 | if (PyErr_Occurred()) SWIG_fail; | |
27244 | } | |
27245 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27246 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27247 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27248 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27249 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27250 | return resultobj; |
27251 | fail: | |
27252 | return NULL; | |
27253 | } | |
27254 | ||
27255 | ||
c32bde28 | 27256 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27257 | PyObject *resultobj; |
27258 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27259 | wxSize result; | |
27260 | PyObject * obj0 = 0 ; | |
27261 | char *kwnames[] = { | |
27262 | (char *) "self", NULL | |
27263 | }; | |
27264 | ||
27265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27268 | { |
27269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27270 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
27271 | ||
27272 | wxPyEndAllowThreads(__tstate); | |
27273 | if (PyErr_Occurred()) SWIG_fail; | |
27274 | } | |
27275 | { | |
27276 | wxSize * resultptr; | |
093d3ff1 | 27277 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
27278 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
27279 | } | |
27280 | return resultobj; | |
27281 | fail: | |
27282 | return NULL; | |
27283 | } | |
27284 | ||
27285 | ||
c32bde28 | 27286 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27287 | PyObject *resultobj; |
27288 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 27289 | bool arg2 = (bool) true ; |
d55e5bfc RD |
27290 | bool result; |
27291 | PyObject * obj0 = 0 ; | |
27292 | PyObject * obj1 = 0 ; | |
27293 | char *kwnames[] = { | |
27294 | (char *) "self",(char *) "show", NULL | |
27295 | }; | |
27296 | ||
27297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 27300 | if (obj1) { |
093d3ff1 RD |
27301 | { |
27302 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27303 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27304 | } | |
d55e5bfc RD |
27305 | } |
27306 | { | |
27307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27308 | result = (bool)(arg1)->Show(arg2); | |
27309 | ||
27310 | wxPyEndAllowThreads(__tstate); | |
27311 | if (PyErr_Occurred()) SWIG_fail; | |
27312 | } | |
27313 | { | |
27314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27315 | } | |
27316 | return resultobj; | |
27317 | fail: | |
27318 | return NULL; | |
27319 | } | |
27320 | ||
27321 | ||
c32bde28 | 27322 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27323 | PyObject *resultobj; |
27324 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27325 | bool result; | |
27326 | PyObject * obj0 = 0 ; | |
27327 | char *kwnames[] = { | |
27328 | (char *) "self", NULL | |
27329 | }; | |
27330 | ||
27331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27332 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27333 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27334 | { |
27335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27336 | result = (bool)(arg1)->Hide(); | |
27337 | ||
27338 | wxPyEndAllowThreads(__tstate); | |
27339 | if (PyErr_Occurred()) SWIG_fail; | |
27340 | } | |
27341 | { | |
27342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27343 | } | |
27344 | return resultobj; | |
27345 | fail: | |
27346 | return NULL; | |
27347 | } | |
27348 | ||
27349 | ||
c32bde28 | 27350 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27351 | PyObject *resultobj; |
27352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 27353 | bool arg2 = (bool) true ; |
d55e5bfc RD |
27354 | bool result; |
27355 | PyObject * obj0 = 0 ; | |
27356 | PyObject * obj1 = 0 ; | |
27357 | char *kwnames[] = { | |
27358 | (char *) "self",(char *) "enable", NULL | |
27359 | }; | |
27360 | ||
27361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 27364 | if (obj1) { |
093d3ff1 RD |
27365 | { |
27366 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27367 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27368 | } | |
d55e5bfc RD |
27369 | } |
27370 | { | |
27371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27372 | result = (bool)(arg1)->Enable(arg2); | |
27373 | ||
27374 | wxPyEndAllowThreads(__tstate); | |
27375 | if (PyErr_Occurred()) SWIG_fail; | |
27376 | } | |
27377 | { | |
27378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27379 | } | |
27380 | return resultobj; | |
27381 | fail: | |
27382 | return NULL; | |
27383 | } | |
27384 | ||
27385 | ||
c32bde28 | 27386 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27387 | PyObject *resultobj; |
27388 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27389 | bool result; | |
27390 | PyObject * obj0 = 0 ; | |
27391 | char *kwnames[] = { | |
27392 | (char *) "self", NULL | |
27393 | }; | |
27394 | ||
27395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27398 | { |
27399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27400 | result = (bool)(arg1)->Disable(); | |
27401 | ||
27402 | wxPyEndAllowThreads(__tstate); | |
27403 | if (PyErr_Occurred()) SWIG_fail; | |
27404 | } | |
27405 | { | |
27406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27407 | } | |
27408 | return resultobj; | |
27409 | fail: | |
27410 | return NULL; | |
27411 | } | |
27412 | ||
27413 | ||
c32bde28 | 27414 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27415 | PyObject *resultobj; |
27416 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27417 | bool result; | |
27418 | PyObject * obj0 = 0 ; | |
27419 | char *kwnames[] = { | |
27420 | (char *) "self", NULL | |
27421 | }; | |
27422 | ||
27423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27426 | { |
27427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27428 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
27429 | ||
27430 | wxPyEndAllowThreads(__tstate); | |
27431 | if (PyErr_Occurred()) SWIG_fail; | |
27432 | } | |
27433 | { | |
27434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27435 | } | |
27436 | return resultobj; | |
27437 | fail: | |
27438 | return NULL; | |
27439 | } | |
27440 | ||
27441 | ||
c32bde28 | 27442 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27443 | PyObject *resultobj; |
27444 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27445 | bool result; | |
27446 | PyObject * obj0 = 0 ; | |
27447 | char *kwnames[] = { | |
27448 | (char *) "self", NULL | |
27449 | }; | |
27450 | ||
27451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27454 | { |
27455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27456 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
27457 | ||
27458 | wxPyEndAllowThreads(__tstate); | |
27459 | if (PyErr_Occurred()) SWIG_fail; | |
27460 | } | |
27461 | { | |
27462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27463 | } | |
27464 | return resultobj; | |
27465 | fail: | |
27466 | return NULL; | |
27467 | } | |
27468 | ||
27469 | ||
c32bde28 | 27470 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27471 | PyObject *resultobj; |
27472 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27473 | long arg2 ; | |
27474 | PyObject * obj0 = 0 ; | |
27475 | PyObject * obj1 = 0 ; | |
27476 | char *kwnames[] = { | |
27477 | (char *) "self",(char *) "style", NULL | |
27478 | }; | |
27479 | ||
27480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27483 | { | |
27484 | arg2 = (long)(SWIG_As_long(obj1)); | |
27485 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27486 | } | |
d55e5bfc RD |
27487 | { |
27488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27489 | (arg1)->SetWindowStyleFlag(arg2); | |
27490 | ||
27491 | wxPyEndAllowThreads(__tstate); | |
27492 | if (PyErr_Occurred()) SWIG_fail; | |
27493 | } | |
27494 | Py_INCREF(Py_None); resultobj = Py_None; | |
27495 | return resultobj; | |
27496 | fail: | |
27497 | return NULL; | |
27498 | } | |
27499 | ||
27500 | ||
c32bde28 | 27501 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27502 | PyObject *resultobj; |
27503 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27504 | long result; | |
27505 | PyObject * obj0 = 0 ; | |
27506 | char *kwnames[] = { | |
27507 | (char *) "self", NULL | |
27508 | }; | |
27509 | ||
27510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27513 | { |
27514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27515 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
27516 | ||
27517 | wxPyEndAllowThreads(__tstate); | |
27518 | if (PyErr_Occurred()) SWIG_fail; | |
27519 | } | |
093d3ff1 RD |
27520 | { |
27521 | resultobj = SWIG_From_long((long)(result)); | |
27522 | } | |
d55e5bfc RD |
27523 | return resultobj; |
27524 | fail: | |
27525 | return NULL; | |
27526 | } | |
27527 | ||
27528 | ||
c32bde28 | 27529 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27530 | PyObject *resultobj; |
27531 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27532 | int arg2 ; | |
27533 | bool result; | |
27534 | PyObject * obj0 = 0 ; | |
27535 | PyObject * obj1 = 0 ; | |
27536 | char *kwnames[] = { | |
27537 | (char *) "self",(char *) "flag", NULL | |
27538 | }; | |
27539 | ||
27540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27543 | { | |
27544 | arg2 = (int)(SWIG_As_int(obj1)); | |
27545 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27546 | } | |
d55e5bfc RD |
27547 | { |
27548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27549 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
27550 | ||
27551 | wxPyEndAllowThreads(__tstate); | |
27552 | if (PyErr_Occurred()) SWIG_fail; | |
27553 | } | |
27554 | { | |
27555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27556 | } | |
27557 | return resultobj; | |
27558 | fail: | |
27559 | return NULL; | |
27560 | } | |
27561 | ||
27562 | ||
c32bde28 | 27563 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27564 | PyObject *resultobj; |
27565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27566 | bool result; | |
27567 | PyObject * obj0 = 0 ; | |
27568 | char *kwnames[] = { | |
27569 | (char *) "self", NULL | |
27570 | }; | |
27571 | ||
27572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27575 | { |
27576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27577 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
27578 | ||
27579 | wxPyEndAllowThreads(__tstate); | |
27580 | if (PyErr_Occurred()) SWIG_fail; | |
27581 | } | |
27582 | { | |
27583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27584 | } | |
27585 | return resultobj; | |
27586 | fail: | |
27587 | return NULL; | |
27588 | } | |
27589 | ||
27590 | ||
c32bde28 | 27591 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27592 | PyObject *resultobj; |
27593 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27594 | long arg2 ; | |
27595 | PyObject * obj0 = 0 ; | |
27596 | PyObject * obj1 = 0 ; | |
27597 | char *kwnames[] = { | |
27598 | (char *) "self",(char *) "exStyle", NULL | |
27599 | }; | |
27600 | ||
27601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27602 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27604 | { | |
27605 | arg2 = (long)(SWIG_As_long(obj1)); | |
27606 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27607 | } | |
d55e5bfc RD |
27608 | { |
27609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27610 | (arg1)->SetExtraStyle(arg2); | |
27611 | ||
27612 | wxPyEndAllowThreads(__tstate); | |
27613 | if (PyErr_Occurred()) SWIG_fail; | |
27614 | } | |
27615 | Py_INCREF(Py_None); resultobj = Py_None; | |
27616 | return resultobj; | |
27617 | fail: | |
27618 | return NULL; | |
27619 | } | |
27620 | ||
27621 | ||
c32bde28 | 27622 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27623 | PyObject *resultobj; |
27624 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27625 | long result; | |
27626 | PyObject * obj0 = 0 ; | |
27627 | char *kwnames[] = { | |
27628 | (char *) "self", NULL | |
27629 | }; | |
27630 | ||
27631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27634 | { |
27635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27636 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
27637 | ||
27638 | wxPyEndAllowThreads(__tstate); | |
27639 | if (PyErr_Occurred()) SWIG_fail; | |
27640 | } | |
093d3ff1 RD |
27641 | { |
27642 | resultobj = SWIG_From_long((long)(result)); | |
27643 | } | |
d55e5bfc RD |
27644 | return resultobj; |
27645 | fail: | |
27646 | return NULL; | |
27647 | } | |
27648 | ||
27649 | ||
c32bde28 | 27650 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27651 | PyObject *resultobj; |
27652 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 27653 | bool arg2 = (bool) true ; |
d55e5bfc RD |
27654 | PyObject * obj0 = 0 ; |
27655 | PyObject * obj1 = 0 ; | |
27656 | char *kwnames[] = { | |
27657 | (char *) "self",(char *) "modal", NULL | |
27658 | }; | |
27659 | ||
27660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 27663 | if (obj1) { |
093d3ff1 RD |
27664 | { |
27665 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27667 | } | |
d55e5bfc RD |
27668 | } |
27669 | { | |
27670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27671 | (arg1)->MakeModal(arg2); | |
27672 | ||
27673 | wxPyEndAllowThreads(__tstate); | |
27674 | if (PyErr_Occurred()) SWIG_fail; | |
27675 | } | |
27676 | Py_INCREF(Py_None); resultobj = Py_None; | |
27677 | return resultobj; | |
27678 | fail: | |
27679 | return NULL; | |
27680 | } | |
27681 | ||
27682 | ||
c32bde28 | 27683 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27684 | PyObject *resultobj; |
27685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27686 | bool arg2 ; | |
27687 | PyObject * obj0 = 0 ; | |
27688 | PyObject * obj1 = 0 ; | |
27689 | char *kwnames[] = { | |
27690 | (char *) "self",(char *) "enableTheme", NULL | |
27691 | }; | |
27692 | ||
27693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27694 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27695 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27696 | { | |
27697 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27698 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27699 | } | |
d55e5bfc RD |
27700 | { |
27701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27702 | (arg1)->SetThemeEnabled(arg2); | |
27703 | ||
27704 | wxPyEndAllowThreads(__tstate); | |
27705 | if (PyErr_Occurred()) SWIG_fail; | |
27706 | } | |
27707 | Py_INCREF(Py_None); resultobj = Py_None; | |
27708 | return resultobj; | |
27709 | fail: | |
27710 | return NULL; | |
27711 | } | |
27712 | ||
27713 | ||
c32bde28 | 27714 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27715 | PyObject *resultobj; |
27716 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27717 | bool result; | |
27718 | PyObject * obj0 = 0 ; | |
27719 | char *kwnames[] = { | |
27720 | (char *) "self", NULL | |
27721 | }; | |
27722 | ||
27723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27726 | { |
27727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27728 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
27729 | ||
27730 | wxPyEndAllowThreads(__tstate); | |
27731 | if (PyErr_Occurred()) SWIG_fail; | |
27732 | } | |
27733 | { | |
27734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27735 | } | |
27736 | return resultobj; | |
27737 | fail: | |
27738 | return NULL; | |
27739 | } | |
27740 | ||
27741 | ||
c32bde28 | 27742 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27743 | PyObject *resultobj; |
27744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27745 | PyObject * obj0 = 0 ; | |
27746 | char *kwnames[] = { | |
27747 | (char *) "self", NULL | |
27748 | }; | |
27749 | ||
27750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27753 | { |
27754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27755 | (arg1)->SetFocus(); | |
27756 | ||
27757 | wxPyEndAllowThreads(__tstate); | |
27758 | if (PyErr_Occurred()) SWIG_fail; | |
27759 | } | |
27760 | Py_INCREF(Py_None); resultobj = Py_None; | |
27761 | return resultobj; | |
27762 | fail: | |
27763 | return NULL; | |
27764 | } | |
27765 | ||
27766 | ||
c32bde28 | 27767 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27768 | PyObject *resultobj; |
27769 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27770 | PyObject * obj0 = 0 ; | |
27771 | char *kwnames[] = { | |
27772 | (char *) "self", NULL | |
27773 | }; | |
27774 | ||
27775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27778 | { |
27779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27780 | (arg1)->SetFocusFromKbd(); | |
27781 | ||
27782 | wxPyEndAllowThreads(__tstate); | |
27783 | if (PyErr_Occurred()) SWIG_fail; | |
27784 | } | |
27785 | Py_INCREF(Py_None); resultobj = Py_None; | |
27786 | return resultobj; | |
27787 | fail: | |
27788 | return NULL; | |
27789 | } | |
27790 | ||
27791 | ||
c32bde28 | 27792 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27793 | PyObject *resultobj; |
27794 | wxWindow *result; | |
27795 | char *kwnames[] = { | |
27796 | NULL | |
27797 | }; | |
27798 | ||
27799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
27800 | { | |
0439c23b | 27801 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27803 | result = (wxWindow *)wxWindow::FindFocus(); | |
27804 | ||
27805 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27806 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
27807 | } |
27808 | { | |
412d302d | 27809 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27810 | } |
27811 | return resultobj; | |
27812 | fail: | |
27813 | return NULL; | |
27814 | } | |
27815 | ||
27816 | ||
c32bde28 | 27817 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27818 | PyObject *resultobj; |
27819 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27820 | bool result; | |
27821 | PyObject * obj0 = 0 ; | |
27822 | char *kwnames[] = { | |
27823 | (char *) "self", NULL | |
27824 | }; | |
27825 | ||
27826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27827 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27828 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27829 | { |
27830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27831 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
27832 | ||
27833 | wxPyEndAllowThreads(__tstate); | |
27834 | if (PyErr_Occurred()) SWIG_fail; | |
27835 | } | |
27836 | { | |
27837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27838 | } | |
27839 | return resultobj; | |
27840 | fail: | |
27841 | return NULL; | |
27842 | } | |
27843 | ||
27844 | ||
c32bde28 | 27845 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27846 | PyObject *resultobj; |
27847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27848 | bool result; | |
27849 | PyObject * obj0 = 0 ; | |
27850 | char *kwnames[] = { | |
27851 | (char *) "self", NULL | |
27852 | }; | |
27853 | ||
27854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27857 | { |
27858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27859 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
27860 | ||
27861 | wxPyEndAllowThreads(__tstate); | |
27862 | if (PyErr_Occurred()) SWIG_fail; | |
27863 | } | |
27864 | { | |
27865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27866 | } | |
27867 | return resultobj; | |
27868 | fail: | |
27869 | return NULL; | |
27870 | } | |
27871 | ||
27872 | ||
c32bde28 | 27873 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27874 | PyObject *resultobj; |
27875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27876 | wxWindow *result; | |
27877 | PyObject * obj0 = 0 ; | |
27878 | char *kwnames[] = { | |
27879 | (char *) "self", NULL | |
27880 | }; | |
27881 | ||
27882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27885 | { |
27886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27887 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
27888 | ||
27889 | wxPyEndAllowThreads(__tstate); | |
27890 | if (PyErr_Occurred()) SWIG_fail; | |
27891 | } | |
27892 | { | |
412d302d | 27893 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27894 | } |
27895 | return resultobj; | |
27896 | fail: | |
27897 | return NULL; | |
27898 | } | |
27899 | ||
27900 | ||
c32bde28 | 27901 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27902 | PyObject *resultobj; |
27903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27904 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27905 | wxWindow *result; | |
27906 | PyObject * obj0 = 0 ; | |
27907 | PyObject * obj1 = 0 ; | |
27908 | char *kwnames[] = { | |
27909 | (char *) "self",(char *) "child", NULL | |
27910 | }; | |
27911 | ||
27912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27915 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27916 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27917 | { |
27918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27919 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
27920 | ||
27921 | wxPyEndAllowThreads(__tstate); | |
27922 | if (PyErr_Occurred()) SWIG_fail; | |
27923 | } | |
27924 | { | |
412d302d | 27925 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27926 | } |
27927 | return resultobj; | |
27928 | fail: | |
27929 | return NULL; | |
27930 | } | |
27931 | ||
27932 | ||
c32bde28 | 27933 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27934 | PyObject *resultobj; |
27935 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27936 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27937 | PyObject * obj0 = 0 ; | |
27938 | PyObject * obj1 = 0 ; | |
27939 | char *kwnames[] = { | |
27940 | (char *) "self",(char *) "win", NULL | |
27941 | }; | |
27942 | ||
27943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27946 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27947 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27948 | { |
27949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27950 | (arg1)->SetTmpDefaultItem(arg2); | |
27951 | ||
27952 | wxPyEndAllowThreads(__tstate); | |
27953 | if (PyErr_Occurred()) SWIG_fail; | |
27954 | } | |
27955 | Py_INCREF(Py_None); resultobj = Py_None; | |
27956 | return resultobj; | |
27957 | fail: | |
27958 | return NULL; | |
27959 | } | |
27960 | ||
27961 | ||
c32bde28 | 27962 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
27963 | PyObject *resultobj; |
27964 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27965 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
27966 | bool result; | |
27967 | PyObject * obj0 = 0 ; | |
27968 | PyObject * obj1 = 0 ; | |
27969 | char *kwnames[] = { | |
27970 | (char *) "self",(char *) "flags", NULL | |
27971 | }; | |
27972 | ||
27973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27974 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27975 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd | 27976 | if (obj1) { |
093d3ff1 RD |
27977 | { |
27978 | arg2 = (int)(SWIG_As_int(obj1)); | |
27979 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27980 | } | |
908b74cd RD |
27981 | } |
27982 | { | |
27983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27984 | result = (bool)(arg1)->Navigate(arg2); | |
27985 | ||
27986 | wxPyEndAllowThreads(__tstate); | |
27987 | if (PyErr_Occurred()) SWIG_fail; | |
27988 | } | |
27989 | { | |
27990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27991 | } | |
27992 | return resultobj; | |
27993 | fail: | |
27994 | return NULL; | |
27995 | } | |
27996 | ||
27997 | ||
c32bde28 | 27998 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
27999 | PyObject *resultobj; |
28000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28001 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28002 | PyObject * obj0 = 0 ; | |
28003 | PyObject * obj1 = 0 ; | |
28004 | char *kwnames[] = { | |
28005 | (char *) "self",(char *) "win", NULL | |
28006 | }; | |
28007 | ||
28008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28011 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28012 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bf26d883 RD |
28013 | { |
28014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28015 | (arg1)->MoveAfterInTabOrder(arg2); | |
28016 | ||
28017 | wxPyEndAllowThreads(__tstate); | |
28018 | if (PyErr_Occurred()) SWIG_fail; | |
28019 | } | |
28020 | Py_INCREF(Py_None); resultobj = Py_None; | |
28021 | return resultobj; | |
28022 | fail: | |
28023 | return NULL; | |
28024 | } | |
28025 | ||
28026 | ||
c32bde28 | 28027 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
28028 | PyObject *resultobj; |
28029 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28030 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28031 | PyObject * obj0 = 0 ; | |
28032 | PyObject * obj1 = 0 ; | |
28033 | char *kwnames[] = { | |
28034 | (char *) "self",(char *) "win", NULL | |
28035 | }; | |
28036 | ||
28037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28038 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28039 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28040 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28041 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bf26d883 RD |
28042 | { |
28043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28044 | (arg1)->MoveBeforeInTabOrder(arg2); | |
28045 | ||
28046 | wxPyEndAllowThreads(__tstate); | |
28047 | if (PyErr_Occurred()) SWIG_fail; | |
28048 | } | |
28049 | Py_INCREF(Py_None); resultobj = Py_None; | |
28050 | return resultobj; | |
28051 | fail: | |
28052 | return NULL; | |
28053 | } | |
28054 | ||
28055 | ||
c32bde28 | 28056 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28057 | PyObject *resultobj; |
28058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28059 | PyObject *result; | |
28060 | PyObject * obj0 = 0 ; | |
28061 | char *kwnames[] = { | |
28062 | (char *) "self", NULL | |
28063 | }; | |
28064 | ||
28065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28068 | { |
28069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28070 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
28071 | ||
28072 | wxPyEndAllowThreads(__tstate); | |
28073 | if (PyErr_Occurred()) SWIG_fail; | |
28074 | } | |
28075 | resultobj = result; | |
28076 | return resultobj; | |
28077 | fail: | |
28078 | return NULL; | |
28079 | } | |
28080 | ||
28081 | ||
c32bde28 | 28082 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28083 | PyObject *resultobj; |
28084 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28085 | wxWindow *result; | |
28086 | PyObject * obj0 = 0 ; | |
28087 | char *kwnames[] = { | |
28088 | (char *) "self", NULL | |
28089 | }; | |
28090 | ||
28091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28094 | { |
28095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28096 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
28097 | ||
28098 | wxPyEndAllowThreads(__tstate); | |
28099 | if (PyErr_Occurred()) SWIG_fail; | |
28100 | } | |
28101 | { | |
412d302d | 28102 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28103 | } |
28104 | return resultobj; | |
28105 | fail: | |
28106 | return NULL; | |
28107 | } | |
28108 | ||
28109 | ||
c32bde28 | 28110 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28111 | PyObject *resultobj; |
28112 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28113 | wxWindow *result; | |
28114 | PyObject * obj0 = 0 ; | |
28115 | char *kwnames[] = { | |
28116 | (char *) "self", NULL | |
28117 | }; | |
28118 | ||
28119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28122 | { |
28123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28124 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
28125 | ||
28126 | wxPyEndAllowThreads(__tstate); | |
28127 | if (PyErr_Occurred()) SWIG_fail; | |
28128 | } | |
28129 | { | |
412d302d | 28130 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28131 | } |
28132 | return resultobj; | |
28133 | fail: | |
28134 | return NULL; | |
28135 | } | |
28136 | ||
28137 | ||
c32bde28 | 28138 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28139 | PyObject *resultobj; |
28140 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28141 | bool result; | |
28142 | PyObject * obj0 = 0 ; | |
28143 | char *kwnames[] = { | |
28144 | (char *) "self", NULL | |
28145 | }; | |
28146 | ||
28147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28150 | { |
28151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28152 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
28153 | ||
28154 | wxPyEndAllowThreads(__tstate); | |
28155 | if (PyErr_Occurred()) SWIG_fail; | |
28156 | } | |
28157 | { | |
28158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28159 | } | |
28160 | return resultobj; | |
28161 | fail: | |
28162 | return NULL; | |
28163 | } | |
28164 | ||
28165 | ||
c32bde28 | 28166 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28167 | PyObject *resultobj; |
28168 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28169 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28170 | bool result; | |
28171 | PyObject * obj0 = 0 ; | |
28172 | PyObject * obj1 = 0 ; | |
28173 | char *kwnames[] = { | |
28174 | (char *) "self",(char *) "newParent", NULL | |
28175 | }; | |
28176 | ||
28177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28180 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28182 | { |
28183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28184 | result = (bool)(arg1)->Reparent(arg2); | |
28185 | ||
28186 | wxPyEndAllowThreads(__tstate); | |
28187 | if (PyErr_Occurred()) SWIG_fail; | |
28188 | } | |
28189 | { | |
28190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28191 | } | |
28192 | return resultobj; | |
28193 | fail: | |
28194 | return NULL; | |
28195 | } | |
28196 | ||
28197 | ||
c32bde28 | 28198 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28199 | PyObject *resultobj; |
28200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28201 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28202 | PyObject * obj0 = 0 ; | |
28203 | PyObject * obj1 = 0 ; | |
28204 | char *kwnames[] = { | |
28205 | (char *) "self",(char *) "child", NULL | |
28206 | }; | |
28207 | ||
28208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28211 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28212 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28213 | { |
28214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28215 | (arg1)->AddChild(arg2); | |
28216 | ||
28217 | wxPyEndAllowThreads(__tstate); | |
28218 | if (PyErr_Occurred()) SWIG_fail; | |
28219 | } | |
28220 | Py_INCREF(Py_None); resultobj = Py_None; | |
28221 | return resultobj; | |
28222 | fail: | |
28223 | return NULL; | |
28224 | } | |
28225 | ||
28226 | ||
c32bde28 | 28227 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28228 | PyObject *resultobj; |
28229 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28230 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28231 | PyObject * obj0 = 0 ; | |
28232 | PyObject * obj1 = 0 ; | |
28233 | char *kwnames[] = { | |
28234 | (char *) "self",(char *) "child", NULL | |
28235 | }; | |
28236 | ||
28237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28240 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28241 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28242 | { |
28243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28244 | (arg1)->RemoveChild(arg2); | |
28245 | ||
28246 | wxPyEndAllowThreads(__tstate); | |
28247 | if (PyErr_Occurred()) SWIG_fail; | |
28248 | } | |
28249 | Py_INCREF(Py_None); resultobj = Py_None; | |
28250 | return resultobj; | |
28251 | fail: | |
28252 | return NULL; | |
28253 | } | |
28254 | ||
28255 | ||
c32bde28 | 28256 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28257 | PyObject *resultobj; |
28258 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28259 | long arg2 ; | |
28260 | wxWindow *result; | |
28261 | PyObject * obj0 = 0 ; | |
28262 | PyObject * obj1 = 0 ; | |
28263 | char *kwnames[] = { | |
28264 | (char *) "self",(char *) "winid", NULL | |
28265 | }; | |
28266 | ||
28267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28270 | { | |
28271 | arg2 = (long)(SWIG_As_long(obj1)); | |
28272 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28273 | } | |
d55e5bfc RD |
28274 | { |
28275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28276 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
28277 | ||
28278 | wxPyEndAllowThreads(__tstate); | |
28279 | if (PyErr_Occurred()) SWIG_fail; | |
28280 | } | |
28281 | { | |
412d302d | 28282 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28283 | } |
28284 | return resultobj; | |
28285 | fail: | |
28286 | return NULL; | |
28287 | } | |
28288 | ||
28289 | ||
c32bde28 | 28290 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28291 | PyObject *resultobj; |
28292 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28293 | wxString *arg2 = 0 ; | |
28294 | wxWindow *result; | |
ae8162c8 | 28295 | bool temp2 = false ; |
d55e5bfc RD |
28296 | PyObject * obj0 = 0 ; |
28297 | PyObject * obj1 = 0 ; | |
28298 | char *kwnames[] = { | |
28299 | (char *) "self",(char *) "name", NULL | |
28300 | }; | |
28301 | ||
28302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28305 | { |
28306 | arg2 = wxString_in_helper(obj1); | |
28307 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28308 | temp2 = true; |
d55e5bfc RD |
28309 | } |
28310 | { | |
28311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28312 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
28313 | ||
28314 | wxPyEndAllowThreads(__tstate); | |
28315 | if (PyErr_Occurred()) SWIG_fail; | |
28316 | } | |
28317 | { | |
412d302d | 28318 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28319 | } |
28320 | { | |
28321 | if (temp2) | |
28322 | delete arg2; | |
28323 | } | |
28324 | return resultobj; | |
28325 | fail: | |
28326 | { | |
28327 | if (temp2) | |
28328 | delete arg2; | |
28329 | } | |
28330 | return NULL; | |
28331 | } | |
28332 | ||
28333 | ||
c32bde28 | 28334 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28335 | PyObject *resultobj; |
28336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28337 | wxEvtHandler *result; | |
28338 | PyObject * obj0 = 0 ; | |
28339 | char *kwnames[] = { | |
28340 | (char *) "self", NULL | |
28341 | }; | |
28342 | ||
28343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28346 | { |
28347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28348 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
28349 | ||
28350 | wxPyEndAllowThreads(__tstate); | |
28351 | if (PyErr_Occurred()) SWIG_fail; | |
28352 | } | |
28353 | { | |
412d302d | 28354 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28355 | } |
28356 | return resultobj; | |
28357 | fail: | |
28358 | return NULL; | |
28359 | } | |
28360 | ||
28361 | ||
c32bde28 | 28362 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28363 | PyObject *resultobj; |
28364 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28365 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28366 | PyObject * obj0 = 0 ; | |
28367 | PyObject * obj1 = 0 ; | |
28368 | char *kwnames[] = { | |
28369 | (char *) "self",(char *) "handler", NULL | |
28370 | }; | |
28371 | ||
28372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28373 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28375 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
28376 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28377 | { |
28378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28379 | (arg1)->SetEventHandler(arg2); | |
28380 | ||
28381 | wxPyEndAllowThreads(__tstate); | |
28382 | if (PyErr_Occurred()) SWIG_fail; | |
28383 | } | |
28384 | Py_INCREF(Py_None); resultobj = Py_None; | |
28385 | return resultobj; | |
28386 | fail: | |
28387 | return NULL; | |
28388 | } | |
28389 | ||
28390 | ||
c32bde28 | 28391 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28392 | PyObject *resultobj; |
28393 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28394 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28395 | PyObject * obj0 = 0 ; | |
28396 | PyObject * obj1 = 0 ; | |
28397 | char *kwnames[] = { | |
28398 | (char *) "self",(char *) "handler", NULL | |
28399 | }; | |
28400 | ||
28401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28404 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
28405 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28406 | { |
28407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28408 | (arg1)->PushEventHandler(arg2); | |
28409 | ||
28410 | wxPyEndAllowThreads(__tstate); | |
28411 | if (PyErr_Occurred()) SWIG_fail; | |
28412 | } | |
28413 | Py_INCREF(Py_None); resultobj = Py_None; | |
28414 | return resultobj; | |
28415 | fail: | |
28416 | return NULL; | |
28417 | } | |
28418 | ||
28419 | ||
c32bde28 | 28420 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28421 | PyObject *resultobj; |
28422 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 28423 | bool arg2 = (bool) false ; |
d55e5bfc RD |
28424 | wxEvtHandler *result; |
28425 | PyObject * obj0 = 0 ; | |
28426 | PyObject * obj1 = 0 ; | |
28427 | char *kwnames[] = { | |
28428 | (char *) "self",(char *) "deleteHandler", NULL | |
28429 | }; | |
28430 | ||
28431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 28434 | if (obj1) { |
093d3ff1 RD |
28435 | { |
28436 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
28437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28438 | } | |
d55e5bfc RD |
28439 | } |
28440 | { | |
28441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28442 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
28443 | ||
28444 | wxPyEndAllowThreads(__tstate); | |
28445 | if (PyErr_Occurred()) SWIG_fail; | |
28446 | } | |
28447 | { | |
412d302d | 28448 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28449 | } |
28450 | return resultobj; | |
28451 | fail: | |
28452 | return NULL; | |
28453 | } | |
28454 | ||
28455 | ||
c32bde28 | 28456 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28457 | PyObject *resultobj; |
28458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28459 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28460 | bool result; | |
28461 | PyObject * obj0 = 0 ; | |
28462 | PyObject * obj1 = 0 ; | |
28463 | char *kwnames[] = { | |
28464 | (char *) "self",(char *) "handler", NULL | |
28465 | }; | |
28466 | ||
28467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28470 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
28471 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28472 | { |
28473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28474 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
28475 | ||
28476 | wxPyEndAllowThreads(__tstate); | |
28477 | if (PyErr_Occurred()) SWIG_fail; | |
28478 | } | |
28479 | { | |
28480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28481 | } | |
28482 | return resultobj; | |
28483 | fail: | |
28484 | return NULL; | |
28485 | } | |
28486 | ||
28487 | ||
c32bde28 | 28488 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28489 | PyObject *resultobj; |
28490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28491 | wxValidator *arg2 = 0 ; | |
28492 | PyObject * obj0 = 0 ; | |
28493 | PyObject * obj1 = 0 ; | |
28494 | char *kwnames[] = { | |
28495 | (char *) "self",(char *) "validator", NULL | |
28496 | }; | |
28497 | ||
28498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28501 | { | |
28502 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28503 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28504 | if (arg2 == NULL) { | |
28505 | SWIG_null_ref("wxValidator"); | |
28506 | } | |
28507 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28508 | } |
28509 | { | |
28510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28511 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
28512 | ||
28513 | wxPyEndAllowThreads(__tstate); | |
28514 | if (PyErr_Occurred()) SWIG_fail; | |
28515 | } | |
28516 | Py_INCREF(Py_None); resultobj = Py_None; | |
28517 | return resultobj; | |
28518 | fail: | |
28519 | return NULL; | |
28520 | } | |
28521 | ||
28522 | ||
c32bde28 | 28523 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28524 | PyObject *resultobj; |
28525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28526 | wxValidator *result; | |
28527 | PyObject * obj0 = 0 ; | |
28528 | char *kwnames[] = { | |
28529 | (char *) "self", NULL | |
28530 | }; | |
28531 | ||
28532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28535 | { |
28536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28537 | result = (wxValidator *)(arg1)->GetValidator(); | |
28538 | ||
28539 | wxPyEndAllowThreads(__tstate); | |
28540 | if (PyErr_Occurred()) SWIG_fail; | |
28541 | } | |
28542 | { | |
412d302d | 28543 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28544 | } |
28545 | return resultobj; | |
28546 | fail: | |
28547 | return NULL; | |
28548 | } | |
28549 | ||
28550 | ||
c32bde28 | 28551 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28552 | PyObject *resultobj; |
28553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28554 | bool result; | |
28555 | PyObject * obj0 = 0 ; | |
28556 | char *kwnames[] = { | |
28557 | (char *) "self", NULL | |
28558 | }; | |
28559 | ||
28560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28563 | { |
28564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28565 | result = (bool)(arg1)->Validate(); | |
28566 | ||
28567 | wxPyEndAllowThreads(__tstate); | |
28568 | if (PyErr_Occurred()) SWIG_fail; | |
28569 | } | |
28570 | { | |
28571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28572 | } | |
28573 | return resultobj; | |
28574 | fail: | |
28575 | return NULL; | |
28576 | } | |
28577 | ||
28578 | ||
c32bde28 | 28579 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28580 | PyObject *resultobj; |
28581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28582 | bool result; | |
28583 | PyObject * obj0 = 0 ; | |
28584 | char *kwnames[] = { | |
28585 | (char *) "self", NULL | |
28586 | }; | |
28587 | ||
28588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28591 | { |
28592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28593 | result = (bool)(arg1)->TransferDataToWindow(); | |
28594 | ||
28595 | wxPyEndAllowThreads(__tstate); | |
28596 | if (PyErr_Occurred()) SWIG_fail; | |
28597 | } | |
28598 | { | |
28599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28600 | } | |
28601 | return resultobj; | |
28602 | fail: | |
28603 | return NULL; | |
28604 | } | |
28605 | ||
28606 | ||
c32bde28 | 28607 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28608 | PyObject *resultobj; |
28609 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28610 | bool result; | |
28611 | PyObject * obj0 = 0 ; | |
28612 | char *kwnames[] = { | |
28613 | (char *) "self", NULL | |
28614 | }; | |
28615 | ||
28616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28619 | { |
28620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28621 | result = (bool)(arg1)->TransferDataFromWindow(); | |
28622 | ||
28623 | wxPyEndAllowThreads(__tstate); | |
28624 | if (PyErr_Occurred()) SWIG_fail; | |
28625 | } | |
28626 | { | |
28627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28628 | } | |
28629 | return resultobj; | |
28630 | fail: | |
28631 | return NULL; | |
28632 | } | |
28633 | ||
28634 | ||
c32bde28 | 28635 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28636 | PyObject *resultobj; |
28637 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28638 | PyObject * obj0 = 0 ; | |
28639 | char *kwnames[] = { | |
28640 | (char *) "self", NULL | |
28641 | }; | |
28642 | ||
28643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28646 | { |
28647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28648 | (arg1)->InitDialog(); | |
28649 | ||
28650 | wxPyEndAllowThreads(__tstate); | |
28651 | if (PyErr_Occurred()) SWIG_fail; | |
28652 | } | |
28653 | Py_INCREF(Py_None); resultobj = Py_None; | |
28654 | return resultobj; | |
28655 | fail: | |
28656 | return NULL; | |
28657 | } | |
28658 | ||
28659 | ||
c32bde28 | 28660 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28661 | PyObject *resultobj; |
28662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28663 | wxAcceleratorTable *arg2 = 0 ; | |
28664 | PyObject * obj0 = 0 ; | |
28665 | PyObject * obj1 = 0 ; | |
28666 | char *kwnames[] = { | |
28667 | (char *) "self",(char *) "accel", NULL | |
28668 | }; | |
28669 | ||
28670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28671 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28672 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28673 | { | |
28674 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); | |
28675 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28676 | if (arg2 == NULL) { | |
28677 | SWIG_null_ref("wxAcceleratorTable"); | |
28678 | } | |
28679 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28680 | } |
28681 | { | |
28682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28683 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
28684 | ||
28685 | wxPyEndAllowThreads(__tstate); | |
28686 | if (PyErr_Occurred()) SWIG_fail; | |
28687 | } | |
28688 | Py_INCREF(Py_None); resultobj = Py_None; | |
28689 | return resultobj; | |
28690 | fail: | |
28691 | return NULL; | |
28692 | } | |
28693 | ||
28694 | ||
c32bde28 | 28695 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28696 | PyObject *resultobj; |
28697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28698 | wxAcceleratorTable *result; | |
28699 | PyObject * obj0 = 0 ; | |
28700 | char *kwnames[] = { | |
28701 | (char *) "self", NULL | |
28702 | }; | |
28703 | ||
28704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28707 | { |
28708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28709 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
28710 | ||
28711 | wxPyEndAllowThreads(__tstate); | |
28712 | if (PyErr_Occurred()) SWIG_fail; | |
28713 | } | |
28714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
28715 | return resultobj; | |
28716 | fail: | |
28717 | return NULL; | |
28718 | } | |
28719 | ||
28720 | ||
c32bde28 | 28721 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28722 | PyObject *resultobj; |
28723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28724 | int arg2 ; | |
28725 | int arg3 ; | |
28726 | int arg4 ; | |
28727 | bool result; | |
28728 | PyObject * obj0 = 0 ; | |
28729 | PyObject * obj1 = 0 ; | |
28730 | PyObject * obj2 = 0 ; | |
28731 | PyObject * obj3 = 0 ; | |
28732 | char *kwnames[] = { | |
28733 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
28734 | }; | |
28735 | ||
28736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
28737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28739 | { | |
28740 | arg2 = (int)(SWIG_As_int(obj1)); | |
28741 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28742 | } | |
28743 | { | |
28744 | arg3 = (int)(SWIG_As_int(obj2)); | |
28745 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28746 | } | |
28747 | { | |
28748 | arg4 = (int)(SWIG_As_int(obj3)); | |
28749 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28750 | } | |
d55e5bfc RD |
28751 | { |
28752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28753 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
28754 | ||
28755 | wxPyEndAllowThreads(__tstate); | |
28756 | if (PyErr_Occurred()) SWIG_fail; | |
28757 | } | |
28758 | { | |
28759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28760 | } | |
28761 | return resultobj; | |
28762 | fail: | |
28763 | return NULL; | |
28764 | } | |
28765 | ||
28766 | ||
c32bde28 | 28767 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28768 | PyObject *resultobj; |
28769 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28770 | int arg2 ; | |
28771 | bool result; | |
28772 | PyObject * obj0 = 0 ; | |
28773 | PyObject * obj1 = 0 ; | |
28774 | char *kwnames[] = { | |
28775 | (char *) "self",(char *) "hotkeyId", NULL | |
28776 | }; | |
28777 | ||
28778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28781 | { | |
28782 | arg2 = (int)(SWIG_As_int(obj1)); | |
28783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28784 | } | |
d55e5bfc RD |
28785 | { |
28786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28787 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
28788 | ||
28789 | wxPyEndAllowThreads(__tstate); | |
28790 | if (PyErr_Occurred()) SWIG_fail; | |
28791 | } | |
28792 | { | |
28793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28794 | } | |
28795 | return resultobj; | |
28796 | fail: | |
28797 | return NULL; | |
28798 | } | |
28799 | ||
28800 | ||
c32bde28 | 28801 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28802 | PyObject *resultobj; |
28803 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28804 | wxPoint *arg2 = 0 ; | |
28805 | wxPoint result; | |
28806 | wxPoint temp2 ; | |
28807 | PyObject * obj0 = 0 ; | |
28808 | PyObject * obj1 = 0 ; | |
28809 | char *kwnames[] = { | |
28810 | (char *) "self",(char *) "pt", NULL | |
28811 | }; | |
28812 | ||
28813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28816 | { |
28817 | arg2 = &temp2; | |
28818 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28819 | } | |
28820 | { | |
28821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28822 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
28823 | ||
28824 | wxPyEndAllowThreads(__tstate); | |
28825 | if (PyErr_Occurred()) SWIG_fail; | |
28826 | } | |
28827 | { | |
28828 | wxPoint * resultptr; | |
093d3ff1 | 28829 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
28830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
28831 | } | |
28832 | return resultobj; | |
28833 | fail: | |
28834 | return NULL; | |
28835 | } | |
28836 | ||
28837 | ||
c32bde28 | 28838 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28839 | PyObject *resultobj; |
28840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28841 | wxSize *arg2 = 0 ; | |
28842 | wxSize result; | |
28843 | wxSize temp2 ; | |
28844 | PyObject * obj0 = 0 ; | |
28845 | PyObject * obj1 = 0 ; | |
28846 | char *kwnames[] = { | |
28847 | (char *) "self",(char *) "sz", NULL | |
28848 | }; | |
28849 | ||
28850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28853 | { |
28854 | arg2 = &temp2; | |
28855 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28856 | } | |
28857 | { | |
28858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28859 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
28860 | ||
28861 | wxPyEndAllowThreads(__tstate); | |
28862 | if (PyErr_Occurred()) SWIG_fail; | |
28863 | } | |
28864 | { | |
28865 | wxSize * resultptr; | |
093d3ff1 | 28866 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
28867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
28868 | } | |
28869 | return resultobj; | |
28870 | fail: | |
28871 | return NULL; | |
28872 | } | |
28873 | ||
28874 | ||
c32bde28 | 28875 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28876 | PyObject *resultobj; |
28877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28878 | wxPoint *arg2 = 0 ; | |
28879 | wxPoint result; | |
28880 | wxPoint temp2 ; | |
28881 | PyObject * obj0 = 0 ; | |
28882 | PyObject * obj1 = 0 ; | |
28883 | char *kwnames[] = { | |
28884 | (char *) "self",(char *) "pt", NULL | |
28885 | }; | |
28886 | ||
28887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28890 | { |
28891 | arg2 = &temp2; | |
28892 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28893 | } | |
28894 | { | |
28895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28896 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
28897 | ||
28898 | wxPyEndAllowThreads(__tstate); | |
28899 | if (PyErr_Occurred()) SWIG_fail; | |
28900 | } | |
28901 | { | |
28902 | wxPoint * resultptr; | |
093d3ff1 | 28903 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
28904 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
28905 | } | |
28906 | return resultobj; | |
28907 | fail: | |
28908 | return NULL; | |
28909 | } | |
28910 | ||
28911 | ||
c32bde28 | 28912 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28913 | PyObject *resultobj; |
28914 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28915 | wxSize *arg2 = 0 ; | |
28916 | wxSize result; | |
28917 | wxSize temp2 ; | |
28918 | PyObject * obj0 = 0 ; | |
28919 | PyObject * obj1 = 0 ; | |
28920 | char *kwnames[] = { | |
28921 | (char *) "self",(char *) "sz", NULL | |
28922 | }; | |
28923 | ||
28924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28927 | { |
28928 | arg2 = &temp2; | |
28929 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28930 | } | |
28931 | { | |
28932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28933 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
28934 | ||
28935 | wxPyEndAllowThreads(__tstate); | |
28936 | if (PyErr_Occurred()) SWIG_fail; | |
28937 | } | |
28938 | { | |
28939 | wxSize * resultptr; | |
093d3ff1 | 28940 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
28941 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
28942 | } | |
28943 | return resultobj; | |
28944 | fail: | |
28945 | return NULL; | |
28946 | } | |
28947 | ||
28948 | ||
c32bde28 | 28949 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28950 | PyObject *resultobj; |
28951 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28952 | wxPoint *arg2 = 0 ; | |
28953 | wxPoint result; | |
28954 | wxPoint temp2 ; | |
28955 | PyObject * obj0 = 0 ; | |
28956 | PyObject * obj1 = 0 ; | |
28957 | char *kwnames[] = { | |
28958 | (char *) "self",(char *) "pt", NULL | |
28959 | }; | |
28960 | ||
28961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28964 | { |
28965 | arg2 = &temp2; | |
28966 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28967 | } | |
28968 | { | |
28969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28970 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
28971 | ||
28972 | wxPyEndAllowThreads(__tstate); | |
28973 | if (PyErr_Occurred()) SWIG_fail; | |
28974 | } | |
28975 | { | |
28976 | wxPoint * resultptr; | |
093d3ff1 | 28977 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
28978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
28979 | } | |
28980 | return resultobj; | |
28981 | fail: | |
28982 | return NULL; | |
28983 | } | |
28984 | ||
28985 | ||
c32bde28 | 28986 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28987 | PyObject *resultobj; |
28988 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28989 | wxSize *arg2 = 0 ; | |
28990 | wxSize result; | |
28991 | wxSize temp2 ; | |
28992 | PyObject * obj0 = 0 ; | |
28993 | PyObject * obj1 = 0 ; | |
28994 | char *kwnames[] = { | |
28995 | (char *) "self",(char *) "sz", NULL | |
28996 | }; | |
28997 | ||
28998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29001 | { |
29002 | arg2 = &temp2; | |
29003 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29004 | } | |
29005 | { | |
29006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29007 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
29008 | ||
29009 | wxPyEndAllowThreads(__tstate); | |
29010 | if (PyErr_Occurred()) SWIG_fail; | |
29011 | } | |
29012 | { | |
29013 | wxSize * resultptr; | |
093d3ff1 | 29014 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
29015 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
29016 | } | |
29017 | return resultobj; | |
29018 | fail: | |
29019 | return NULL; | |
29020 | } | |
29021 | ||
29022 | ||
c32bde28 | 29023 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29024 | PyObject *resultobj; |
29025 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29026 | int arg2 ; | |
29027 | int arg3 ; | |
29028 | PyObject * obj0 = 0 ; | |
29029 | PyObject * obj1 = 0 ; | |
29030 | PyObject * obj2 = 0 ; | |
29031 | char *kwnames[] = { | |
29032 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29033 | }; | |
29034 | ||
29035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29038 | { | |
29039 | arg2 = (int)(SWIG_As_int(obj1)); | |
29040 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29041 | } | |
29042 | { | |
29043 | arg3 = (int)(SWIG_As_int(obj2)); | |
29044 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29045 | } | |
d55e5bfc RD |
29046 | { |
29047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29048 | (arg1)->WarpPointer(arg2,arg3); | |
29049 | ||
29050 | wxPyEndAllowThreads(__tstate); | |
29051 | if (PyErr_Occurred()) SWIG_fail; | |
29052 | } | |
29053 | Py_INCREF(Py_None); resultobj = Py_None; | |
29054 | return resultobj; | |
29055 | fail: | |
29056 | return NULL; | |
29057 | } | |
29058 | ||
29059 | ||
c32bde28 | 29060 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29061 | PyObject *resultobj; |
29062 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29063 | PyObject * obj0 = 0 ; | |
29064 | char *kwnames[] = { | |
29065 | (char *) "self", NULL | |
29066 | }; | |
29067 | ||
29068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29071 | { |
29072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29073 | (arg1)->CaptureMouse(); | |
29074 | ||
29075 | wxPyEndAllowThreads(__tstate); | |
29076 | if (PyErr_Occurred()) SWIG_fail; | |
29077 | } | |
29078 | Py_INCREF(Py_None); resultobj = Py_None; | |
29079 | return resultobj; | |
29080 | fail: | |
29081 | return NULL; | |
29082 | } | |
29083 | ||
29084 | ||
c32bde28 | 29085 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29086 | PyObject *resultobj; |
29087 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29088 | PyObject * obj0 = 0 ; | |
29089 | char *kwnames[] = { | |
29090 | (char *) "self", NULL | |
29091 | }; | |
29092 | ||
29093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29096 | { |
29097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29098 | (arg1)->ReleaseMouse(); | |
29099 | ||
29100 | wxPyEndAllowThreads(__tstate); | |
29101 | if (PyErr_Occurred()) SWIG_fail; | |
29102 | } | |
29103 | Py_INCREF(Py_None); resultobj = Py_None; | |
29104 | return resultobj; | |
29105 | fail: | |
29106 | return NULL; | |
29107 | } | |
29108 | ||
29109 | ||
c32bde28 | 29110 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29111 | PyObject *resultobj; |
29112 | wxWindow *result; | |
29113 | char *kwnames[] = { | |
29114 | NULL | |
29115 | }; | |
29116 | ||
29117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
29118 | { | |
0439c23b | 29119 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29121 | result = (wxWindow *)wxWindow::GetCapture(); | |
29122 | ||
29123 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29124 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29125 | } |
29126 | { | |
412d302d | 29127 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29128 | } |
29129 | return resultobj; | |
29130 | fail: | |
29131 | return NULL; | |
29132 | } | |
29133 | ||
29134 | ||
c32bde28 | 29135 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29136 | PyObject *resultobj; |
29137 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29138 | bool result; | |
29139 | PyObject * obj0 = 0 ; | |
29140 | char *kwnames[] = { | |
29141 | (char *) "self", NULL | |
29142 | }; | |
29143 | ||
29144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29147 | { |
29148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29149 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
29150 | ||
29151 | wxPyEndAllowThreads(__tstate); | |
29152 | if (PyErr_Occurred()) SWIG_fail; | |
29153 | } | |
29154 | { | |
29155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29156 | } | |
29157 | return resultobj; | |
29158 | fail: | |
29159 | return NULL; | |
29160 | } | |
29161 | ||
29162 | ||
c32bde28 | 29163 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29164 | PyObject *resultobj; |
29165 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 29166 | bool arg2 = (bool) true ; |
d55e5bfc RD |
29167 | wxRect *arg3 = (wxRect *) NULL ; |
29168 | PyObject * obj0 = 0 ; | |
29169 | PyObject * obj1 = 0 ; | |
29170 | PyObject * obj2 = 0 ; | |
29171 | char *kwnames[] = { | |
29172 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
29173 | }; | |
29174 | ||
29175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 29178 | if (obj1) { |
093d3ff1 RD |
29179 | { |
29180 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
29181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29182 | } | |
d55e5bfc RD |
29183 | } |
29184 | if (obj2) { | |
093d3ff1 RD |
29185 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
29186 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
29187 | } |
29188 | { | |
29189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29190 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
29191 | ||
29192 | wxPyEndAllowThreads(__tstate); | |
29193 | if (PyErr_Occurred()) SWIG_fail; | |
29194 | } | |
29195 | Py_INCREF(Py_None); resultobj = Py_None; | |
29196 | return resultobj; | |
29197 | fail: | |
29198 | return NULL; | |
29199 | } | |
29200 | ||
29201 | ||
c32bde28 | 29202 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29203 | PyObject *resultobj; |
29204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29205 | wxRect *arg2 = 0 ; | |
fef4c27a | 29206 | bool arg3 = (bool) true ; |
d55e5bfc RD |
29207 | wxRect temp2 ; |
29208 | PyObject * obj0 = 0 ; | |
29209 | PyObject * obj1 = 0 ; | |
fef4c27a | 29210 | PyObject * obj2 = 0 ; |
d55e5bfc | 29211 | char *kwnames[] = { |
fef4c27a | 29212 | (char *) "self",(char *) "rect",(char *) "eraseBackground", NULL |
d55e5bfc RD |
29213 | }; |
29214 | ||
fef4c27a | 29215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_RefreshRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29218 | { |
29219 | arg2 = &temp2; | |
29220 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29221 | } | |
fef4c27a RD |
29222 | if (obj2) { |
29223 | { | |
29224 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29225 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29226 | } | |
29227 | } | |
d55e5bfc RD |
29228 | { |
29229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 29230 | (arg1)->RefreshRect((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
29231 | |
29232 | wxPyEndAllowThreads(__tstate); | |
29233 | if (PyErr_Occurred()) SWIG_fail; | |
29234 | } | |
29235 | Py_INCREF(Py_None); resultobj = Py_None; | |
29236 | return resultobj; | |
29237 | fail: | |
29238 | return NULL; | |
29239 | } | |
29240 | ||
29241 | ||
c32bde28 | 29242 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29243 | PyObject *resultobj; |
29244 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29245 | PyObject * obj0 = 0 ; | |
29246 | char *kwnames[] = { | |
29247 | (char *) "self", NULL | |
29248 | }; | |
29249 | ||
29250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29253 | { |
29254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29255 | (arg1)->Update(); | |
29256 | ||
29257 | wxPyEndAllowThreads(__tstate); | |
29258 | if (PyErr_Occurred()) SWIG_fail; | |
29259 | } | |
29260 | Py_INCREF(Py_None); resultobj = Py_None; | |
29261 | return resultobj; | |
29262 | fail: | |
29263 | return NULL; | |
29264 | } | |
29265 | ||
29266 | ||
c32bde28 | 29267 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29268 | PyObject *resultobj; |
29269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29270 | PyObject * obj0 = 0 ; | |
29271 | char *kwnames[] = { | |
29272 | (char *) "self", NULL | |
29273 | }; | |
29274 | ||
29275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29278 | { |
29279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29280 | (arg1)->ClearBackground(); | |
29281 | ||
29282 | wxPyEndAllowThreads(__tstate); | |
29283 | if (PyErr_Occurred()) SWIG_fail; | |
29284 | } | |
29285 | Py_INCREF(Py_None); resultobj = Py_None; | |
29286 | return resultobj; | |
29287 | fail: | |
29288 | return NULL; | |
29289 | } | |
29290 | ||
29291 | ||
c32bde28 | 29292 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29293 | PyObject *resultobj; |
29294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29295 | PyObject * obj0 = 0 ; | |
29296 | char *kwnames[] = { | |
29297 | (char *) "self", NULL | |
29298 | }; | |
29299 | ||
29300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29303 | { |
29304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29305 | (arg1)->Freeze(); | |
29306 | ||
29307 | wxPyEndAllowThreads(__tstate); | |
29308 | if (PyErr_Occurred()) SWIG_fail; | |
29309 | } | |
29310 | Py_INCREF(Py_None); resultobj = Py_None; | |
29311 | return resultobj; | |
29312 | fail: | |
29313 | return NULL; | |
29314 | } | |
29315 | ||
29316 | ||
c32bde28 | 29317 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29318 | PyObject *resultobj; |
29319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29320 | PyObject * obj0 = 0 ; | |
29321 | char *kwnames[] = { | |
29322 | (char *) "self", NULL | |
29323 | }; | |
29324 | ||
29325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29328 | { |
29329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29330 | (arg1)->Thaw(); | |
29331 | ||
29332 | wxPyEndAllowThreads(__tstate); | |
29333 | if (PyErr_Occurred()) SWIG_fail; | |
29334 | } | |
29335 | Py_INCREF(Py_None); resultobj = Py_None; | |
29336 | return resultobj; | |
29337 | fail: | |
29338 | return NULL; | |
29339 | } | |
29340 | ||
29341 | ||
c32bde28 | 29342 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29343 | PyObject *resultobj; |
29344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29345 | wxDC *arg2 = 0 ; | |
29346 | PyObject * obj0 = 0 ; | |
29347 | PyObject * obj1 = 0 ; | |
29348 | char *kwnames[] = { | |
29349 | (char *) "self",(char *) "dc", NULL | |
29350 | }; | |
29351 | ||
29352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29355 | { | |
29356 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
29357 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29358 | if (arg2 == NULL) { | |
29359 | SWIG_null_ref("wxDC"); | |
29360 | } | |
29361 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29362 | } |
29363 | { | |
29364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29365 | (arg1)->PrepareDC(*arg2); | |
29366 | ||
29367 | wxPyEndAllowThreads(__tstate); | |
29368 | if (PyErr_Occurred()) SWIG_fail; | |
29369 | } | |
29370 | Py_INCREF(Py_None); resultobj = Py_None; | |
29371 | return resultobj; | |
29372 | fail: | |
29373 | return NULL; | |
29374 | } | |
29375 | ||
29376 | ||
c32bde28 | 29377 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29378 | PyObject *resultobj; |
29379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29380 | wxRegion *result; | |
29381 | PyObject * obj0 = 0 ; | |
29382 | char *kwnames[] = { | |
29383 | (char *) "self", NULL | |
29384 | }; | |
29385 | ||
29386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29389 | { |
29390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29391 | { | |
29392 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
29393 | result = (wxRegion *) &_result_ref; | |
29394 | } | |
29395 | ||
29396 | wxPyEndAllowThreads(__tstate); | |
29397 | if (PyErr_Occurred()) SWIG_fail; | |
29398 | } | |
29399 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
29400 | return resultobj; | |
29401 | fail: | |
29402 | return NULL; | |
29403 | } | |
29404 | ||
29405 | ||
c32bde28 | 29406 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29407 | PyObject *resultobj; |
29408 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29409 | wxRect result; | |
29410 | PyObject * obj0 = 0 ; | |
29411 | char *kwnames[] = { | |
29412 | (char *) "self", NULL | |
29413 | }; | |
29414 | ||
29415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29418 | { |
29419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29420 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
29421 | ||
29422 | wxPyEndAllowThreads(__tstate); | |
29423 | if (PyErr_Occurred()) SWIG_fail; | |
29424 | } | |
29425 | { | |
29426 | wxRect * resultptr; | |
093d3ff1 | 29427 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
29428 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
29429 | } | |
29430 | return resultobj; | |
29431 | fail: | |
29432 | return NULL; | |
29433 | } | |
29434 | ||
29435 | ||
c32bde28 | 29436 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29437 | PyObject *resultobj; |
29438 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29439 | int arg2 ; | |
29440 | int arg3 ; | |
29441 | int arg4 = (int) 1 ; | |
29442 | int arg5 = (int) 1 ; | |
29443 | bool result; | |
29444 | PyObject * obj0 = 0 ; | |
29445 | PyObject * obj1 = 0 ; | |
29446 | PyObject * obj2 = 0 ; | |
29447 | PyObject * obj3 = 0 ; | |
29448 | PyObject * obj4 = 0 ; | |
29449 | char *kwnames[] = { | |
29450 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29451 | }; | |
29452 | ||
29453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
29454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29456 | { | |
29457 | arg2 = (int)(SWIG_As_int(obj1)); | |
29458 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29459 | } | |
29460 | { | |
29461 | arg3 = (int)(SWIG_As_int(obj2)); | |
29462 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29463 | } | |
d55e5bfc | 29464 | if (obj3) { |
093d3ff1 RD |
29465 | { |
29466 | arg4 = (int)(SWIG_As_int(obj3)); | |
29467 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29468 | } | |
d55e5bfc RD |
29469 | } |
29470 | if (obj4) { | |
093d3ff1 RD |
29471 | { |
29472 | arg5 = (int)(SWIG_As_int(obj4)); | |
29473 | if (SWIG_arg_fail(5)) SWIG_fail; | |
29474 | } | |
d55e5bfc RD |
29475 | } |
29476 | { | |
29477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29478 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
29479 | ||
29480 | wxPyEndAllowThreads(__tstate); | |
29481 | if (PyErr_Occurred()) SWIG_fail; | |
29482 | } | |
29483 | { | |
29484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29485 | } | |
29486 | return resultobj; | |
29487 | fail: | |
29488 | return NULL; | |
29489 | } | |
29490 | ||
29491 | ||
c32bde28 | 29492 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29493 | PyObject *resultobj; |
29494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29495 | wxPoint *arg2 = 0 ; | |
29496 | bool result; | |
29497 | wxPoint temp2 ; | |
29498 | PyObject * obj0 = 0 ; | |
29499 | PyObject * obj1 = 0 ; | |
29500 | char *kwnames[] = { | |
29501 | (char *) "self",(char *) "pt", NULL | |
29502 | }; | |
29503 | ||
29504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29507 | { |
29508 | arg2 = &temp2; | |
29509 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29510 | } | |
29511 | { | |
29512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29513 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
29514 | ||
29515 | wxPyEndAllowThreads(__tstate); | |
29516 | if (PyErr_Occurred()) SWIG_fail; | |
29517 | } | |
29518 | { | |
29519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29520 | } | |
29521 | return resultobj; | |
29522 | fail: | |
29523 | return NULL; | |
29524 | } | |
29525 | ||
29526 | ||
c32bde28 | 29527 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29528 | PyObject *resultobj; |
29529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29530 | wxRect *arg2 = 0 ; | |
29531 | bool result; | |
29532 | wxRect temp2 ; | |
29533 | PyObject * obj0 = 0 ; | |
29534 | PyObject * obj1 = 0 ; | |
29535 | char *kwnames[] = { | |
29536 | (char *) "self",(char *) "rect", NULL | |
29537 | }; | |
29538 | ||
29539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29542 | { |
29543 | arg2 = &temp2; | |
29544 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29545 | } | |
29546 | { | |
29547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29548 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
29549 | ||
29550 | wxPyEndAllowThreads(__tstate); | |
29551 | if (PyErr_Occurred()) SWIG_fail; | |
29552 | } | |
29553 | { | |
29554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29555 | } | |
29556 | return resultobj; | |
29557 | fail: | |
29558 | return NULL; | |
29559 | } | |
29560 | ||
29561 | ||
c32bde28 | 29562 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29563 | PyObject *resultobj; |
29564 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29565 | wxVisualAttributes result; | |
29566 | PyObject * obj0 = 0 ; | |
29567 | char *kwnames[] = { | |
29568 | (char *) "self", NULL | |
29569 | }; | |
29570 | ||
29571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29574 | { |
29575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29576 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
29577 | ||
29578 | wxPyEndAllowThreads(__tstate); | |
29579 | if (PyErr_Occurred()) SWIG_fail; | |
29580 | } | |
29581 | { | |
29582 | wxVisualAttributes * resultptr; | |
093d3ff1 | 29583 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
29584 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
29585 | } | |
29586 | return resultobj; | |
29587 | fail: | |
29588 | return NULL; | |
29589 | } | |
29590 | ||
29591 | ||
c32bde28 | 29592 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 29593 | PyObject *resultobj; |
093d3ff1 | 29594 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
29595 | wxVisualAttributes result; |
29596 | PyObject * obj0 = 0 ; | |
29597 | char *kwnames[] = { | |
29598 | (char *) "variant", NULL | |
29599 | }; | |
29600 | ||
29601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
29602 | if (obj0) { | |
093d3ff1 RD |
29603 | { |
29604 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
29605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29606 | } | |
d55e5bfc RD |
29607 | } |
29608 | { | |
0439c23b | 29609 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29611 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
29612 | ||
29613 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29614 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29615 | } |
29616 | { | |
29617 | wxVisualAttributes * resultptr; | |
093d3ff1 | 29618 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
29619 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
29620 | } | |
29621 | return resultobj; | |
29622 | fail: | |
29623 | return NULL; | |
29624 | } | |
29625 | ||
29626 | ||
c32bde28 | 29627 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29628 | PyObject *resultobj; |
29629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29630 | wxColour *arg2 = 0 ; | |
29631 | bool result; | |
29632 | wxColour temp2 ; | |
29633 | PyObject * obj0 = 0 ; | |
29634 | PyObject * obj1 = 0 ; | |
29635 | char *kwnames[] = { | |
29636 | (char *) "self",(char *) "colour", NULL | |
29637 | }; | |
29638 | ||
29639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29642 | { |
29643 | arg2 = &temp2; | |
29644 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29645 | } | |
29646 | { | |
29647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29648 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
29649 | ||
29650 | wxPyEndAllowThreads(__tstate); | |
29651 | if (PyErr_Occurred()) SWIG_fail; | |
29652 | } | |
29653 | { | |
29654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29655 | } | |
29656 | return resultobj; | |
29657 | fail: | |
29658 | return NULL; | |
29659 | } | |
29660 | ||
29661 | ||
c32bde28 | 29662 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29663 | PyObject *resultobj; |
29664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29665 | wxColour *arg2 = 0 ; | |
29666 | wxColour temp2 ; | |
29667 | PyObject * obj0 = 0 ; | |
29668 | PyObject * obj1 = 0 ; | |
29669 | char *kwnames[] = { | |
29670 | (char *) "self",(char *) "colour", NULL | |
29671 | }; | |
29672 | ||
412d302d | 29673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
29674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29676 | { |
29677 | arg2 = &temp2; | |
29678 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29679 | } | |
29680 | { | |
29681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 29682 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
29683 | |
29684 | wxPyEndAllowThreads(__tstate); | |
29685 | if (PyErr_Occurred()) SWIG_fail; | |
29686 | } | |
29687 | Py_INCREF(Py_None); resultobj = Py_None; | |
29688 | return resultobj; | |
29689 | fail: | |
29690 | return NULL; | |
29691 | } | |
29692 | ||
29693 | ||
c32bde28 | 29694 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29695 | PyObject *resultobj; |
29696 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29697 | wxColour *arg2 = 0 ; | |
29698 | bool result; | |
29699 | wxColour temp2 ; | |
29700 | PyObject * obj0 = 0 ; | |
29701 | PyObject * obj1 = 0 ; | |
29702 | char *kwnames[] = { | |
29703 | (char *) "self",(char *) "colour", NULL | |
29704 | }; | |
29705 | ||
29706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29709 | { |
29710 | arg2 = &temp2; | |
29711 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29712 | } | |
29713 | { | |
29714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29715 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
29716 | ||
29717 | wxPyEndAllowThreads(__tstate); | |
29718 | if (PyErr_Occurred()) SWIG_fail; | |
29719 | } | |
29720 | { | |
29721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29722 | } | |
29723 | return resultobj; | |
29724 | fail: | |
29725 | return NULL; | |
29726 | } | |
29727 | ||
29728 | ||
c32bde28 | 29729 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29730 | PyObject *resultobj; |
29731 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29732 | wxColour *arg2 = 0 ; | |
29733 | wxColour temp2 ; | |
29734 | PyObject * obj0 = 0 ; | |
29735 | PyObject * obj1 = 0 ; | |
29736 | char *kwnames[] = { | |
29737 | (char *) "self",(char *) "colour", NULL | |
29738 | }; | |
29739 | ||
fa47d7a7 | 29740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
29741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29743 | { |
29744 | arg2 = &temp2; | |
29745 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29746 | } | |
29747 | { | |
29748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 29749 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
29750 | |
29751 | wxPyEndAllowThreads(__tstate); | |
29752 | if (PyErr_Occurred()) SWIG_fail; | |
29753 | } | |
29754 | Py_INCREF(Py_None); resultobj = Py_None; | |
29755 | return resultobj; | |
29756 | fail: | |
29757 | return NULL; | |
29758 | } | |
29759 | ||
29760 | ||
c32bde28 | 29761 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29762 | PyObject *resultobj; |
29763 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29764 | wxColour result; | |
29765 | PyObject * obj0 = 0 ; | |
29766 | char *kwnames[] = { | |
29767 | (char *) "self", NULL | |
29768 | }; | |
29769 | ||
29770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29771 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29773 | { |
29774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29775 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
29776 | ||
29777 | wxPyEndAllowThreads(__tstate); | |
29778 | if (PyErr_Occurred()) SWIG_fail; | |
29779 | } | |
29780 | { | |
29781 | wxColour * resultptr; | |
093d3ff1 | 29782 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
29783 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
29784 | } | |
29785 | return resultobj; | |
29786 | fail: | |
29787 | return NULL; | |
29788 | } | |
29789 | ||
29790 | ||
c32bde28 | 29791 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29792 | PyObject *resultobj; |
29793 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29794 | wxColour result; | |
29795 | PyObject * obj0 = 0 ; | |
29796 | char *kwnames[] = { | |
29797 | (char *) "self", NULL | |
29798 | }; | |
29799 | ||
29800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29801 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29802 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29803 | { |
29804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29805 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
29806 | ||
29807 | wxPyEndAllowThreads(__tstate); | |
29808 | if (PyErr_Occurred()) SWIG_fail; | |
29809 | } | |
29810 | { | |
29811 | wxColour * resultptr; | |
093d3ff1 | 29812 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
29813 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
29814 | } | |
29815 | return resultobj; | |
29816 | fail: | |
29817 | return NULL; | |
29818 | } | |
29819 | ||
29820 | ||
dcb8fc74 RD |
29821 | static PyObject *_wrap_Window_InheritsBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
29822 | PyObject *resultobj; | |
29823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29824 | bool result; | |
29825 | PyObject * obj0 = 0 ; | |
29826 | char *kwnames[] = { | |
29827 | (char *) "self", NULL | |
29828 | }; | |
29829 | ||
29830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritsBackgroundColour",kwnames,&obj0)) goto fail; | |
29831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
29832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29833 | { | |
29834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29835 | result = (bool)((wxWindow const *)arg1)->InheritsBackgroundColour(); | |
29836 | ||
29837 | wxPyEndAllowThreads(__tstate); | |
29838 | if (PyErr_Occurred()) SWIG_fail; | |
29839 | } | |
29840 | { | |
29841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29842 | } | |
29843 | return resultobj; | |
29844 | fail: | |
29845 | return NULL; | |
29846 | } | |
29847 | ||
29848 | ||
29849 | static PyObject *_wrap_Window_UseBgCol(PyObject *, PyObject *args, PyObject *kwargs) { | |
29850 | PyObject *resultobj; | |
29851 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29852 | bool result; | |
29853 | PyObject * obj0 = 0 ; | |
29854 | char *kwnames[] = { | |
29855 | (char *) "self", NULL | |
29856 | }; | |
29857 | ||
29858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_UseBgCol",kwnames,&obj0)) goto fail; | |
29859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
29860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29861 | { | |
29862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29863 | result = (bool)((wxWindow const *)arg1)->UseBgCol(); | |
29864 | ||
29865 | wxPyEndAllowThreads(__tstate); | |
29866 | if (PyErr_Occurred()) SWIG_fail; | |
29867 | } | |
29868 | { | |
29869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29870 | } | |
29871 | return resultobj; | |
29872 | fail: | |
29873 | return NULL; | |
29874 | } | |
29875 | ||
29876 | ||
c32bde28 | 29877 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
29878 | PyObject *resultobj; |
29879 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 29880 | wxBackgroundStyle arg2 ; |
0f63ec68 RD |
29881 | bool result; |
29882 | PyObject * obj0 = 0 ; | |
29883 | PyObject * obj1 = 0 ; | |
29884 | char *kwnames[] = { | |
29885 | (char *) "self",(char *) "style", NULL | |
29886 | }; | |
29887 | ||
29888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29891 | { | |
29892 | arg2 = (wxBackgroundStyle)(SWIG_As_int(obj1)); | |
29893 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29894 | } | |
0f63ec68 RD |
29895 | { |
29896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29897 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
29898 | ||
29899 | wxPyEndAllowThreads(__tstate); | |
29900 | if (PyErr_Occurred()) SWIG_fail; | |
29901 | } | |
29902 | { | |
29903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29904 | } | |
29905 | return resultobj; | |
29906 | fail: | |
29907 | return NULL; | |
29908 | } | |
29909 | ||
29910 | ||
c32bde28 | 29911 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
29912 | PyObject *resultobj; |
29913 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 29914 | wxBackgroundStyle result; |
0f63ec68 RD |
29915 | PyObject * obj0 = 0 ; |
29916 | char *kwnames[] = { | |
29917 | (char *) "self", NULL | |
29918 | }; | |
29919 | ||
29920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
0f63ec68 RD |
29923 | { |
29924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29925 | result = (wxBackgroundStyle)((wxWindow const *)arg1)->GetBackgroundStyle(); |
0f63ec68 RD |
29926 | |
29927 | wxPyEndAllowThreads(__tstate); | |
29928 | if (PyErr_Occurred()) SWIG_fail; | |
29929 | } | |
093d3ff1 | 29930 | resultobj = SWIG_From_int((result)); |
0f63ec68 RD |
29931 | return resultobj; |
29932 | fail: | |
29933 | return NULL; | |
29934 | } | |
29935 | ||
29936 | ||
51b83b37 RD |
29937 | static PyObject *_wrap_Window_HasTransparentBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
29938 | PyObject *resultobj; | |
29939 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29940 | bool result; | |
29941 | PyObject * obj0 = 0 ; | |
29942 | char *kwnames[] = { | |
29943 | (char *) "self", NULL | |
29944 | }; | |
29945 | ||
29946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasTransparentBackground",kwnames,&obj0)) goto fail; | |
29947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
29948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29949 | { | |
29950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29951 | result = (bool)(arg1)->HasTransparentBackground(); | |
29952 | ||
29953 | wxPyEndAllowThreads(__tstate); | |
29954 | if (PyErr_Occurred()) SWIG_fail; | |
29955 | } | |
29956 | { | |
29957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29958 | } | |
29959 | return resultobj; | |
29960 | fail: | |
29961 | return NULL; | |
29962 | } | |
29963 | ||
29964 | ||
c32bde28 | 29965 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29966 | PyObject *resultobj; |
29967 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29968 | wxCursor *arg2 = 0 ; | |
29969 | bool result; | |
29970 | PyObject * obj0 = 0 ; | |
29971 | PyObject * obj1 = 0 ; | |
29972 | char *kwnames[] = { | |
29973 | (char *) "self",(char *) "cursor", NULL | |
29974 | }; | |
29975 | ||
29976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29979 | { | |
29980 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
29981 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29982 | if (arg2 == NULL) { | |
29983 | SWIG_null_ref("wxCursor"); | |
29984 | } | |
29985 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29986 | } |
29987 | { | |
29988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29989 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
29990 | ||
29991 | wxPyEndAllowThreads(__tstate); | |
29992 | if (PyErr_Occurred()) SWIG_fail; | |
29993 | } | |
29994 | { | |
29995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29996 | } | |
29997 | return resultobj; | |
29998 | fail: | |
29999 | return NULL; | |
30000 | } | |
30001 | ||
30002 | ||
c32bde28 | 30003 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30004 | PyObject *resultobj; |
30005 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 30006 | wxCursor result; |
d55e5bfc RD |
30007 | PyObject * obj0 = 0 ; |
30008 | char *kwnames[] = { | |
30009 | (char *) "self", NULL | |
30010 | }; | |
30011 | ||
30012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30015 | { |
30016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 30017 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
30018 | |
30019 | wxPyEndAllowThreads(__tstate); | |
30020 | if (PyErr_Occurred()) SWIG_fail; | |
30021 | } | |
30022 | { | |
a001823c | 30023 | wxCursor * resultptr; |
093d3ff1 | 30024 | resultptr = new wxCursor((wxCursor &)(result)); |
a001823c | 30025 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); |
d55e5bfc RD |
30026 | } |
30027 | return resultobj; | |
30028 | fail: | |
30029 | return NULL; | |
30030 | } | |
30031 | ||
30032 | ||
c32bde28 | 30033 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30034 | PyObject *resultobj; |
30035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30036 | wxFont *arg2 = 0 ; | |
30037 | bool result; | |
30038 | PyObject * obj0 = 0 ; | |
30039 | PyObject * obj1 = 0 ; | |
30040 | char *kwnames[] = { | |
30041 | (char *) "self",(char *) "font", NULL | |
30042 | }; | |
30043 | ||
30044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30047 | { | |
30048 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
30049 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30050 | if (arg2 == NULL) { | |
30051 | SWIG_null_ref("wxFont"); | |
30052 | } | |
30053 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30054 | } |
30055 | { | |
30056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30057 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
30058 | ||
30059 | wxPyEndAllowThreads(__tstate); | |
30060 | if (PyErr_Occurred()) SWIG_fail; | |
30061 | } | |
30062 | { | |
30063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30064 | } | |
30065 | return resultobj; | |
30066 | fail: | |
30067 | return NULL; | |
30068 | } | |
30069 | ||
30070 | ||
c32bde28 | 30071 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30072 | PyObject *resultobj; |
30073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30074 | wxFont *arg2 = 0 ; | |
30075 | PyObject * obj0 = 0 ; | |
30076 | PyObject * obj1 = 0 ; | |
30077 | char *kwnames[] = { | |
30078 | (char *) "self",(char *) "font", NULL | |
30079 | }; | |
30080 | ||
fa47d7a7 | 30081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30084 | { | |
30085 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
30086 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30087 | if (arg2 == NULL) { | |
30088 | SWIG_null_ref("wxFont"); | |
30089 | } | |
30090 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30091 | } |
30092 | { | |
30093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 30094 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
30095 | |
30096 | wxPyEndAllowThreads(__tstate); | |
30097 | if (PyErr_Occurred()) SWIG_fail; | |
30098 | } | |
30099 | Py_INCREF(Py_None); resultobj = Py_None; | |
30100 | return resultobj; | |
30101 | fail: | |
30102 | return NULL; | |
30103 | } | |
30104 | ||
30105 | ||
c32bde28 | 30106 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30107 | PyObject *resultobj; |
30108 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 30109 | wxFont result; |
d55e5bfc RD |
30110 | PyObject * obj0 = 0 ; |
30111 | char *kwnames[] = { | |
30112 | (char *) "self", NULL | |
30113 | }; | |
30114 | ||
30115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30116 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30117 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30118 | { |
30119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 30120 | result = (arg1)->GetFont(); |
d55e5bfc RD |
30121 | |
30122 | wxPyEndAllowThreads(__tstate); | |
30123 | if (PyErr_Occurred()) SWIG_fail; | |
30124 | } | |
30125 | { | |
a001823c | 30126 | wxFont * resultptr; |
093d3ff1 | 30127 | resultptr = new wxFont((wxFont &)(result)); |
a001823c | 30128 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d55e5bfc RD |
30129 | } |
30130 | return resultobj; | |
30131 | fail: | |
30132 | return NULL; | |
30133 | } | |
30134 | ||
30135 | ||
c32bde28 | 30136 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30137 | PyObject *resultobj; |
30138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30139 | wxCaret *arg2 = (wxCaret *) 0 ; | |
30140 | PyObject * obj0 = 0 ; | |
30141 | PyObject * obj1 = 0 ; | |
30142 | char *kwnames[] = { | |
30143 | (char *) "self",(char *) "caret", NULL | |
30144 | }; | |
30145 | ||
30146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30149 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); | |
30150 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30151 | { |
30152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30153 | (arg1)->SetCaret(arg2); | |
30154 | ||
30155 | wxPyEndAllowThreads(__tstate); | |
30156 | if (PyErr_Occurred()) SWIG_fail; | |
30157 | } | |
30158 | Py_INCREF(Py_None); resultobj = Py_None; | |
30159 | return resultobj; | |
30160 | fail: | |
30161 | return NULL; | |
30162 | } | |
30163 | ||
30164 | ||
c32bde28 | 30165 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30166 | PyObject *resultobj; |
30167 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30168 | wxCaret *result; | |
30169 | PyObject * obj0 = 0 ; | |
30170 | char *kwnames[] = { | |
30171 | (char *) "self", NULL | |
30172 | }; | |
30173 | ||
30174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30177 | { |
30178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30179 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
30180 | ||
30181 | wxPyEndAllowThreads(__tstate); | |
30182 | if (PyErr_Occurred()) SWIG_fail; | |
30183 | } | |
30184 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
30185 | return resultobj; | |
30186 | fail: | |
30187 | return NULL; | |
30188 | } | |
30189 | ||
30190 | ||
c32bde28 | 30191 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30192 | PyObject *resultobj; |
30193 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30194 | int result; | |
30195 | PyObject * obj0 = 0 ; | |
30196 | char *kwnames[] = { | |
30197 | (char *) "self", NULL | |
30198 | }; | |
30199 | ||
30200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30203 | { |
30204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30205 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
30206 | ||
30207 | wxPyEndAllowThreads(__tstate); | |
30208 | if (PyErr_Occurred()) SWIG_fail; | |
30209 | } | |
093d3ff1 RD |
30210 | { |
30211 | resultobj = SWIG_From_int((int)(result)); | |
30212 | } | |
d55e5bfc RD |
30213 | return resultobj; |
30214 | fail: | |
30215 | return NULL; | |
30216 | } | |
30217 | ||
30218 | ||
c32bde28 | 30219 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30220 | PyObject *resultobj; |
30221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30222 | int result; | |
30223 | PyObject * obj0 = 0 ; | |
30224 | char *kwnames[] = { | |
30225 | (char *) "self", NULL | |
30226 | }; | |
30227 | ||
30228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30231 | { |
30232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30233 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
30234 | ||
30235 | wxPyEndAllowThreads(__tstate); | |
30236 | if (PyErr_Occurred()) SWIG_fail; | |
30237 | } | |
093d3ff1 RD |
30238 | { |
30239 | resultobj = SWIG_From_int((int)(result)); | |
30240 | } | |
d55e5bfc RD |
30241 | return resultobj; |
30242 | fail: | |
30243 | return NULL; | |
30244 | } | |
30245 | ||
30246 | ||
c32bde28 | 30247 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30248 | PyObject *resultobj; |
30249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30250 | wxString *arg2 = 0 ; | |
30251 | int *arg3 = (int *) 0 ; | |
30252 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 30253 | bool temp2 = false ; |
d55e5bfc | 30254 | int temp3 ; |
c32bde28 | 30255 | int res3 = 0 ; |
d55e5bfc | 30256 | int temp4 ; |
c32bde28 | 30257 | int res4 = 0 ; |
d55e5bfc RD |
30258 | PyObject * obj0 = 0 ; |
30259 | PyObject * obj1 = 0 ; | |
30260 | char *kwnames[] = { | |
30261 | (char *) "self",(char *) "string", NULL | |
30262 | }; | |
30263 | ||
c32bde28 RD |
30264 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
30265 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 30266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30269 | { |
30270 | arg2 = wxString_in_helper(obj1); | |
30271 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30272 | temp2 = true; |
d55e5bfc RD |
30273 | } |
30274 | { | |
30275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30276 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
30277 | ||
30278 | wxPyEndAllowThreads(__tstate); | |
30279 | if (PyErr_Occurred()) SWIG_fail; | |
30280 | } | |
30281 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30282 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30283 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
30284 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
30285 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30286 | { |
30287 | if (temp2) | |
30288 | delete arg2; | |
30289 | } | |
30290 | return resultobj; | |
30291 | fail: | |
30292 | { | |
30293 | if (temp2) | |
30294 | delete arg2; | |
30295 | } | |
30296 | return NULL; | |
30297 | } | |
30298 | ||
30299 | ||
c32bde28 | 30300 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30301 | PyObject *resultobj; |
30302 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30303 | wxString *arg2 = 0 ; | |
30304 | int *arg3 = (int *) 0 ; | |
30305 | int *arg4 = (int *) 0 ; | |
30306 | int *arg5 = (int *) 0 ; | |
30307 | int *arg6 = (int *) 0 ; | |
30308 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 30309 | bool temp2 = false ; |
d55e5bfc | 30310 | int temp3 ; |
c32bde28 | 30311 | int res3 = 0 ; |
d55e5bfc | 30312 | int temp4 ; |
c32bde28 | 30313 | int res4 = 0 ; |
d55e5bfc | 30314 | int temp5 ; |
c32bde28 | 30315 | int res5 = 0 ; |
d55e5bfc | 30316 | int temp6 ; |
c32bde28 | 30317 | int res6 = 0 ; |
d55e5bfc RD |
30318 | PyObject * obj0 = 0 ; |
30319 | PyObject * obj1 = 0 ; | |
30320 | PyObject * obj2 = 0 ; | |
30321 | char *kwnames[] = { | |
30322 | (char *) "self",(char *) "string",(char *) "font", NULL | |
30323 | }; | |
30324 | ||
c32bde28 RD |
30325 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
30326 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
30327 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
30328 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc | 30329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
30330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30332 | { |
30333 | arg2 = wxString_in_helper(obj1); | |
30334 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30335 | temp2 = true; |
d55e5bfc RD |
30336 | } |
30337 | if (obj2) { | |
093d3ff1 RD |
30338 | SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); |
30339 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
30340 | } |
30341 | { | |
30342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30343 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
30344 | ||
30345 | wxPyEndAllowThreads(__tstate); | |
30346 | if (PyErr_Occurred()) SWIG_fail; | |
30347 | } | |
30348 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30349 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30350 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
30351 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
30352 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
30353 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
30354 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
30355 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
30356 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30357 | { |
30358 | if (temp2) | |
30359 | delete arg2; | |
30360 | } | |
30361 | return resultobj; | |
30362 | fail: | |
30363 | { | |
30364 | if (temp2) | |
30365 | delete arg2; | |
30366 | } | |
30367 | return NULL; | |
30368 | } | |
30369 | ||
30370 | ||
c32bde28 | 30371 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30372 | PyObject *resultobj; |
30373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30374 | int *arg2 = (int *) 0 ; | |
30375 | int *arg3 = (int *) 0 ; | |
30376 | int temp2 ; | |
c32bde28 | 30377 | int res2 = 0 ; |
d55e5bfc | 30378 | int temp3 ; |
c32bde28 | 30379 | int res3 = 0 ; |
d55e5bfc RD |
30380 | PyObject * obj0 = 0 ; |
30381 | PyObject * obj1 = 0 ; | |
30382 | PyObject * obj2 = 0 ; | |
30383 | char *kwnames[] = { | |
30384 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30385 | }; | |
30386 | ||
30387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30388 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30389 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 30390 | { |
c32bde28 RD |
30391 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
30392 | temp2 = SWIG_As_int(obj1); | |
093d3ff1 | 30393 | if (SWIG_arg_fail(2)) SWIG_fail; |
c32bde28 RD |
30394 | arg2 = &temp2; |
30395 | res2 = SWIG_NEWOBJ; | |
30396 | } | |
d55e5bfc RD |
30397 | } |
30398 | { | |
c32bde28 RD |
30399 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
30400 | temp3 = SWIG_As_int(obj2); | |
093d3ff1 | 30401 | if (SWIG_arg_fail(3)) SWIG_fail; |
c32bde28 RD |
30402 | arg3 = &temp3; |
30403 | res3 = SWIG_NEWOBJ; | |
30404 | } | |
d55e5bfc RD |
30405 | } |
30406 | { | |
30407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30408 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
30409 | ||
30410 | wxPyEndAllowThreads(__tstate); | |
30411 | if (PyErr_Occurred()) SWIG_fail; | |
30412 | } | |
30413 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30414 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30415 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30416 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30417 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30418 | return resultobj; |
30419 | fail: | |
30420 | return NULL; | |
30421 | } | |
30422 | ||
30423 | ||
c32bde28 | 30424 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30425 | PyObject *resultobj; |
30426 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30427 | int *arg2 = (int *) 0 ; | |
30428 | int *arg3 = (int *) 0 ; | |
30429 | int temp2 ; | |
c32bde28 | 30430 | int res2 = 0 ; |
d55e5bfc | 30431 | int temp3 ; |
c32bde28 | 30432 | int res3 = 0 ; |
d55e5bfc RD |
30433 | PyObject * obj0 = 0 ; |
30434 | PyObject * obj1 = 0 ; | |
30435 | PyObject * obj2 = 0 ; | |
30436 | char *kwnames[] = { | |
30437 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30438 | }; | |
30439 | ||
30440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 30443 | { |
c32bde28 RD |
30444 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
30445 | temp2 = SWIG_As_int(obj1); | |
093d3ff1 | 30446 | if (SWIG_arg_fail(2)) SWIG_fail; |
c32bde28 RD |
30447 | arg2 = &temp2; |
30448 | res2 = SWIG_NEWOBJ; | |
30449 | } | |
d55e5bfc RD |
30450 | } |
30451 | { | |
c32bde28 RD |
30452 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
30453 | temp3 = SWIG_As_int(obj2); | |
093d3ff1 | 30454 | if (SWIG_arg_fail(3)) SWIG_fail; |
c32bde28 RD |
30455 | arg3 = &temp3; |
30456 | res3 = SWIG_NEWOBJ; | |
30457 | } | |
d55e5bfc RD |
30458 | } |
30459 | { | |
30460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30461 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
30462 | ||
30463 | wxPyEndAllowThreads(__tstate); | |
30464 | if (PyErr_Occurred()) SWIG_fail; | |
30465 | } | |
30466 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30467 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30468 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30469 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30470 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30471 | return resultobj; |
30472 | fail: | |
30473 | return NULL; | |
30474 | } | |
30475 | ||
30476 | ||
c32bde28 | 30477 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30478 | PyObject *resultobj; |
30479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30480 | wxPoint *arg2 = 0 ; | |
30481 | wxPoint result; | |
30482 | wxPoint temp2 ; | |
30483 | PyObject * obj0 = 0 ; | |
30484 | PyObject * obj1 = 0 ; | |
30485 | char *kwnames[] = { | |
30486 | (char *) "self",(char *) "pt", NULL | |
30487 | }; | |
30488 | ||
30489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30490 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30491 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30492 | { |
30493 | arg2 = &temp2; | |
30494 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30495 | } | |
30496 | { | |
30497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30498 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
30499 | ||
30500 | wxPyEndAllowThreads(__tstate); | |
30501 | if (PyErr_Occurred()) SWIG_fail; | |
30502 | } | |
30503 | { | |
30504 | wxPoint * resultptr; | |
093d3ff1 | 30505 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
30506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
30507 | } | |
30508 | return resultobj; | |
30509 | fail: | |
30510 | return NULL; | |
30511 | } | |
30512 | ||
30513 | ||
c32bde28 | 30514 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30515 | PyObject *resultobj; |
30516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30517 | wxPoint *arg2 = 0 ; | |
30518 | wxPoint result; | |
30519 | wxPoint temp2 ; | |
30520 | PyObject * obj0 = 0 ; | |
30521 | PyObject * obj1 = 0 ; | |
30522 | char *kwnames[] = { | |
30523 | (char *) "self",(char *) "pt", NULL | |
30524 | }; | |
30525 | ||
30526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30529 | { |
30530 | arg2 = &temp2; | |
30531 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30532 | } | |
30533 | { | |
30534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30535 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
30536 | ||
30537 | wxPyEndAllowThreads(__tstate); | |
30538 | if (PyErr_Occurred()) SWIG_fail; | |
30539 | } | |
30540 | { | |
30541 | wxPoint * resultptr; | |
093d3ff1 | 30542 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
30543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
30544 | } | |
30545 | return resultobj; | |
30546 | fail: | |
30547 | return NULL; | |
30548 | } | |
30549 | ||
30550 | ||
c32bde28 | 30551 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30552 | PyObject *resultobj; |
30553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30554 | int arg2 ; | |
30555 | int arg3 ; | |
093d3ff1 | 30556 | wxHitTest result; |
d55e5bfc RD |
30557 | PyObject * obj0 = 0 ; |
30558 | PyObject * obj1 = 0 ; | |
30559 | PyObject * obj2 = 0 ; | |
30560 | char *kwnames[] = { | |
30561 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30562 | }; | |
30563 | ||
30564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30567 | { | |
30568 | arg2 = (int)(SWIG_As_int(obj1)); | |
30569 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30570 | } | |
30571 | { | |
30572 | arg3 = (int)(SWIG_As_int(obj2)); | |
30573 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30574 | } | |
d55e5bfc RD |
30575 | { |
30576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30577 | result = (wxHitTest)((wxWindow const *)arg1)->HitTest(arg2,arg3); |
d55e5bfc RD |
30578 | |
30579 | wxPyEndAllowThreads(__tstate); | |
30580 | if (PyErr_Occurred()) SWIG_fail; | |
30581 | } | |
093d3ff1 | 30582 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30583 | return resultobj; |
30584 | fail: | |
30585 | return NULL; | |
30586 | } | |
30587 | ||
30588 | ||
c32bde28 | 30589 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30590 | PyObject *resultobj; |
30591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30592 | wxPoint *arg2 = 0 ; | |
093d3ff1 | 30593 | wxHitTest result; |
d55e5bfc RD |
30594 | wxPoint temp2 ; |
30595 | PyObject * obj0 = 0 ; | |
30596 | PyObject * obj1 = 0 ; | |
30597 | char *kwnames[] = { | |
30598 | (char *) "self",(char *) "pt", NULL | |
30599 | }; | |
30600 | ||
30601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30602 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30604 | { |
30605 | arg2 = &temp2; | |
30606 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30607 | } | |
30608 | { | |
30609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30610 | result = (wxHitTest)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); |
d55e5bfc RD |
30611 | |
30612 | wxPyEndAllowThreads(__tstate); | |
30613 | if (PyErr_Occurred()) SWIG_fail; | |
30614 | } | |
093d3ff1 | 30615 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30616 | return resultobj; |
30617 | fail: | |
30618 | return NULL; | |
30619 | } | |
30620 | ||
30621 | ||
c32bde28 | 30622 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
30623 | PyObject *resultobj; |
30624 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30625 | long arg2 ; | |
093d3ff1 | 30626 | wxBorder result; |
d55e5bfc RD |
30627 | PyObject * obj0 = 0 ; |
30628 | PyObject * obj1 = 0 ; | |
30629 | ||
30630 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30633 | { | |
30634 | arg2 = (long)(SWIG_As_long(obj1)); | |
30635 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30636 | } | |
d55e5bfc RD |
30637 | { |
30638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30639 | result = (wxBorder)((wxWindow const *)arg1)->GetBorder(arg2); |
d55e5bfc RD |
30640 | |
30641 | wxPyEndAllowThreads(__tstate); | |
30642 | if (PyErr_Occurred()) SWIG_fail; | |
30643 | } | |
093d3ff1 | 30644 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30645 | return resultobj; |
30646 | fail: | |
30647 | return NULL; | |
30648 | } | |
30649 | ||
30650 | ||
c32bde28 | 30651 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
30652 | PyObject *resultobj; |
30653 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 30654 | wxBorder result; |
d55e5bfc RD |
30655 | PyObject * obj0 = 0 ; |
30656 | ||
30657 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
093d3ff1 RD |
30658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30660 | { |
30661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30662 | result = (wxBorder)((wxWindow const *)arg1)->GetBorder(); |
d55e5bfc RD |
30663 | |
30664 | wxPyEndAllowThreads(__tstate); | |
30665 | if (PyErr_Occurred()) SWIG_fail; | |
30666 | } | |
093d3ff1 | 30667 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
30668 | return resultobj; |
30669 | fail: | |
30670 | return NULL; | |
30671 | } | |
30672 | ||
30673 | ||
30674 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
30675 | int argc; | |
30676 | PyObject *argv[3]; | |
30677 | int ii; | |
30678 | ||
30679 | argc = PyObject_Length(args); | |
30680 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
30681 | argv[ii] = PyTuple_GetItem(args,ii); | |
30682 | } | |
30683 | if (argc == 1) { | |
30684 | int _v; | |
30685 | { | |
30686 | void *ptr; | |
30687 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
30688 | _v = 0; | |
30689 | PyErr_Clear(); | |
30690 | } else { | |
30691 | _v = 1; | |
30692 | } | |
30693 | } | |
30694 | if (_v) { | |
30695 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
30696 | } | |
30697 | } | |
30698 | if (argc == 2) { | |
30699 | int _v; | |
30700 | { | |
30701 | void *ptr; | |
30702 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
30703 | _v = 0; | |
30704 | PyErr_Clear(); | |
30705 | } else { | |
30706 | _v = 1; | |
30707 | } | |
30708 | } | |
30709 | if (_v) { | |
c32bde28 | 30710 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
30711 | if (_v) { |
30712 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
30713 | } | |
30714 | } | |
30715 | } | |
30716 | ||
093d3ff1 | 30717 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'Window_GetBorder'"); |
d55e5bfc RD |
30718 | return NULL; |
30719 | } | |
30720 | ||
30721 | ||
c32bde28 | 30722 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30723 | PyObject *resultobj; |
30724 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30725 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
30726 | PyObject * obj0 = 0 ; | |
30727 | PyObject * obj1 = 0 ; | |
30728 | char *kwnames[] = { | |
30729 | (char *) "self",(char *) "flags", NULL | |
30730 | }; | |
30731 | ||
30732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 30735 | if (obj1) { |
093d3ff1 RD |
30736 | { |
30737 | arg2 = (long)(SWIG_As_long(obj1)); | |
30738 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30739 | } | |
d55e5bfc RD |
30740 | } |
30741 | { | |
30742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30743 | (arg1)->UpdateWindowUI(arg2); | |
30744 | ||
30745 | wxPyEndAllowThreads(__tstate); | |
30746 | if (PyErr_Occurred()) SWIG_fail; | |
30747 | } | |
30748 | Py_INCREF(Py_None); resultobj = Py_None; | |
30749 | return resultobj; | |
30750 | fail: | |
30751 | return NULL; | |
30752 | } | |
30753 | ||
30754 | ||
c32bde28 | 30755 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30756 | PyObject *resultobj; |
30757 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30758 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
30759 | int arg3 = (int) -1 ; |
30760 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
30761 | bool result; |
30762 | PyObject * obj0 = 0 ; | |
30763 | PyObject * obj1 = 0 ; | |
30764 | PyObject * obj2 = 0 ; | |
30765 | PyObject * obj3 = 0 ; | |
30766 | char *kwnames[] = { | |
30767 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
30768 | }; | |
30769 | ||
7a0b95b0 | 30770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30771 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30773 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
30774 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7a0b95b0 | 30775 | if (obj2) { |
093d3ff1 RD |
30776 | { |
30777 | arg3 = (int)(SWIG_As_int(obj2)); | |
30778 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30779 | } | |
7a0b95b0 RD |
30780 | } |
30781 | if (obj3) { | |
093d3ff1 RD |
30782 | { |
30783 | arg4 = (int)(SWIG_As_int(obj3)); | |
30784 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30785 | } | |
7a0b95b0 | 30786 | } |
d55e5bfc RD |
30787 | { |
30788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30789 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
30790 | ||
30791 | wxPyEndAllowThreads(__tstate); | |
30792 | if (PyErr_Occurred()) SWIG_fail; | |
30793 | } | |
30794 | { | |
30795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30796 | } | |
30797 | return resultobj; | |
30798 | fail: | |
30799 | return NULL; | |
30800 | } | |
30801 | ||
30802 | ||
c32bde28 | 30803 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30804 | PyObject *resultobj; |
30805 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30806 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
30807 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30808 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
30809 | bool result; |
30810 | wxPoint temp3 ; | |
30811 | PyObject * obj0 = 0 ; | |
30812 | PyObject * obj1 = 0 ; | |
30813 | PyObject * obj2 = 0 ; | |
30814 | char *kwnames[] = { | |
30815 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
30816 | }; | |
30817 | ||
7a0b95b0 | 30818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
30819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30821 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
30822 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7a0b95b0 RD |
30823 | if (obj2) { |
30824 | { | |
30825 | arg3 = &temp3; | |
30826 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30827 | } | |
d55e5bfc RD |
30828 | } |
30829 | { | |
30830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30831 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
30832 | ||
30833 | wxPyEndAllowThreads(__tstate); | |
30834 | if (PyErr_Occurred()) SWIG_fail; | |
30835 | } | |
30836 | { | |
30837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30838 | } | |
30839 | return resultobj; | |
30840 | fail: | |
30841 | return NULL; | |
30842 | } | |
30843 | ||
30844 | ||
c32bde28 | 30845 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30846 | PyObject *resultobj; |
30847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30848 | long result; | |
30849 | PyObject * obj0 = 0 ; | |
30850 | char *kwnames[] = { | |
30851 | (char *) "self", NULL | |
30852 | }; | |
30853 | ||
30854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30857 | { |
30858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30859 | result = (long)wxWindow_GetHandle(arg1); | |
30860 | ||
30861 | wxPyEndAllowThreads(__tstate); | |
30862 | if (PyErr_Occurred()) SWIG_fail; | |
30863 | } | |
093d3ff1 RD |
30864 | { |
30865 | resultobj = SWIG_From_long((long)(result)); | |
30866 | } | |
d55e5bfc RD |
30867 | return resultobj; |
30868 | fail: | |
30869 | return NULL; | |
30870 | } | |
30871 | ||
30872 | ||
7e63a440 RD |
30873 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
30874 | PyObject *resultobj; | |
30875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30876 | long arg2 ; | |
30877 | PyObject * obj0 = 0 ; | |
30878 | PyObject * obj1 = 0 ; | |
30879 | char *kwnames[] = { | |
30880 | (char *) "self",(char *) "handle", NULL | |
30881 | }; | |
30882 | ||
30883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30886 | { | |
30887 | arg2 = (long)(SWIG_As_long(obj1)); | |
30888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30889 | } | |
7e63a440 RD |
30890 | { |
30891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30892 | wxWindow_AssociateHandle(arg1,arg2); | |
30893 | ||
30894 | wxPyEndAllowThreads(__tstate); | |
30895 | if (PyErr_Occurred()) SWIG_fail; | |
30896 | } | |
30897 | Py_INCREF(Py_None); resultobj = Py_None; | |
30898 | return resultobj; | |
30899 | fail: | |
30900 | return NULL; | |
30901 | } | |
30902 | ||
30903 | ||
30904 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
30905 | PyObject *resultobj; | |
30906 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30907 | PyObject * obj0 = 0 ; | |
30908 | char *kwnames[] = { | |
30909 | (char *) "self", NULL | |
30910 | }; | |
30911 | ||
30912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7e63a440 RD |
30915 | { |
30916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30917 | (arg1)->DissociateHandle(); | |
30918 | ||
30919 | wxPyEndAllowThreads(__tstate); | |
30920 | if (PyErr_Occurred()) SWIG_fail; | |
30921 | } | |
30922 | Py_INCREF(Py_None); resultobj = Py_None; | |
30923 | return resultobj; | |
30924 | fail: | |
30925 | return NULL; | |
30926 | } | |
30927 | ||
30928 | ||
c32bde28 | 30929 | static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30930 | PyObject *resultobj; |
30931 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30932 | wxPaintEvent *arg2 = 0 ; | |
30933 | PyObject * obj0 = 0 ; | |
30934 | PyObject * obj1 = 0 ; | |
30935 | char *kwnames[] = { | |
30936 | (char *) "self",(char *) "event", NULL | |
30937 | }; | |
30938 | ||
30939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30942 | { | |
30943 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPaintEvent, SWIG_POINTER_EXCEPTION | 0); | |
30944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30945 | if (arg2 == NULL) { | |
30946 | SWIG_null_ref("wxPaintEvent"); | |
30947 | } | |
30948 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30949 | } |
30950 | { | |
30951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30952 | (arg1)->OnPaint(*arg2); | |
30953 | ||
30954 | wxPyEndAllowThreads(__tstate); | |
30955 | if (PyErr_Occurred()) SWIG_fail; | |
30956 | } | |
30957 | Py_INCREF(Py_None); resultobj = Py_None; | |
30958 | return resultobj; | |
30959 | fail: | |
30960 | return NULL; | |
30961 | } | |
30962 | ||
30963 | ||
c32bde28 | 30964 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30965 | PyObject *resultobj; |
30966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30967 | int arg2 ; | |
30968 | bool result; | |
30969 | PyObject * obj0 = 0 ; | |
30970 | PyObject * obj1 = 0 ; | |
30971 | char *kwnames[] = { | |
30972 | (char *) "self",(char *) "orient", NULL | |
30973 | }; | |
30974 | ||
30975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30978 | { | |
30979 | arg2 = (int)(SWIG_As_int(obj1)); | |
30980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30981 | } | |
d55e5bfc RD |
30982 | { |
30983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30984 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
30985 | ||
30986 | wxPyEndAllowThreads(__tstate); | |
30987 | if (PyErr_Occurred()) SWIG_fail; | |
30988 | } | |
30989 | { | |
30990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30991 | } | |
30992 | return resultobj; | |
30993 | fail: | |
30994 | return NULL; | |
30995 | } | |
30996 | ||
30997 | ||
c32bde28 | 30998 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30999 | PyObject *resultobj; |
31000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31001 | int arg2 ; | |
31002 | int arg3 ; | |
31003 | int arg4 ; | |
31004 | int arg5 ; | |
ae8162c8 | 31005 | bool arg6 = (bool) true ; |
d55e5bfc RD |
31006 | PyObject * obj0 = 0 ; |
31007 | PyObject * obj1 = 0 ; | |
31008 | PyObject * obj2 = 0 ; | |
31009 | PyObject * obj3 = 0 ; | |
31010 | PyObject * obj4 = 0 ; | |
31011 | PyObject * obj5 = 0 ; | |
31012 | char *kwnames[] = { | |
79fccf9d | 31013 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
31014 | }; |
31015 | ||
31016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
31017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31019 | { | |
31020 | arg2 = (int)(SWIG_As_int(obj1)); | |
31021 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31022 | } | |
31023 | { | |
31024 | arg3 = (int)(SWIG_As_int(obj2)); | |
31025 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31026 | } | |
31027 | { | |
31028 | arg4 = (int)(SWIG_As_int(obj3)); | |
31029 | if (SWIG_arg_fail(4)) SWIG_fail; | |
31030 | } | |
31031 | { | |
31032 | arg5 = (int)(SWIG_As_int(obj4)); | |
31033 | if (SWIG_arg_fail(5)) SWIG_fail; | |
31034 | } | |
d55e5bfc | 31035 | if (obj5) { |
093d3ff1 RD |
31036 | { |
31037 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
31038 | if (SWIG_arg_fail(6)) SWIG_fail; | |
31039 | } | |
d55e5bfc RD |
31040 | } |
31041 | { | |
31042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31043 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
31044 | ||
31045 | wxPyEndAllowThreads(__tstate); | |
31046 | if (PyErr_Occurred()) SWIG_fail; | |
31047 | } | |
31048 | Py_INCREF(Py_None); resultobj = Py_None; | |
31049 | return resultobj; | |
31050 | fail: | |
31051 | return NULL; | |
31052 | } | |
31053 | ||
31054 | ||
c32bde28 | 31055 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31056 | PyObject *resultobj; |
31057 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31058 | int arg2 ; | |
31059 | int arg3 ; | |
ae8162c8 | 31060 | bool arg4 = (bool) true ; |
d55e5bfc RD |
31061 | PyObject * obj0 = 0 ; |
31062 | PyObject * obj1 = 0 ; | |
31063 | PyObject * obj2 = 0 ; | |
31064 | PyObject * obj3 = 0 ; | |
31065 | char *kwnames[] = { | |
31066 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
31067 | }; | |
31068 | ||
31069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
31070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31072 | { | |
31073 | arg2 = (int)(SWIG_As_int(obj1)); | |
31074 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31075 | } | |
31076 | { | |
31077 | arg3 = (int)(SWIG_As_int(obj2)); | |
31078 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31079 | } | |
d55e5bfc | 31080 | if (obj3) { |
093d3ff1 RD |
31081 | { |
31082 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
31083 | if (SWIG_arg_fail(4)) SWIG_fail; | |
31084 | } | |
d55e5bfc RD |
31085 | } |
31086 | { | |
31087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31088 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
31089 | ||
31090 | wxPyEndAllowThreads(__tstate); | |
31091 | if (PyErr_Occurred()) SWIG_fail; | |
31092 | } | |
31093 | Py_INCREF(Py_None); resultobj = Py_None; | |
31094 | return resultobj; | |
31095 | fail: | |
31096 | return NULL; | |
31097 | } | |
31098 | ||
31099 | ||
c32bde28 | 31100 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31101 | PyObject *resultobj; |
31102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31103 | int arg2 ; | |
31104 | int result; | |
31105 | PyObject * obj0 = 0 ; | |
31106 | PyObject * obj1 = 0 ; | |
31107 | char *kwnames[] = { | |
31108 | (char *) "self",(char *) "orientation", NULL | |
31109 | }; | |
31110 | ||
31111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31114 | { | |
31115 | arg2 = (int)(SWIG_As_int(obj1)); | |
31116 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31117 | } | |
d55e5bfc RD |
31118 | { |
31119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31120 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
31121 | ||
31122 | wxPyEndAllowThreads(__tstate); | |
31123 | if (PyErr_Occurred()) SWIG_fail; | |
31124 | } | |
093d3ff1 RD |
31125 | { |
31126 | resultobj = SWIG_From_int((int)(result)); | |
31127 | } | |
d55e5bfc RD |
31128 | return resultobj; |
31129 | fail: | |
31130 | return NULL; | |
31131 | } | |
31132 | ||
31133 | ||
c32bde28 | 31134 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31135 | PyObject *resultobj; |
31136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31137 | int arg2 ; | |
31138 | int result; | |
31139 | PyObject * obj0 = 0 ; | |
31140 | PyObject * obj1 = 0 ; | |
31141 | char *kwnames[] = { | |
31142 | (char *) "self",(char *) "orientation", NULL | |
31143 | }; | |
31144 | ||
31145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31148 | { | |
31149 | arg2 = (int)(SWIG_As_int(obj1)); | |
31150 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31151 | } | |
d55e5bfc RD |
31152 | { |
31153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31154 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
31155 | ||
31156 | wxPyEndAllowThreads(__tstate); | |
31157 | if (PyErr_Occurred()) SWIG_fail; | |
31158 | } | |
093d3ff1 RD |
31159 | { |
31160 | resultobj = SWIG_From_int((int)(result)); | |
31161 | } | |
d55e5bfc RD |
31162 | return resultobj; |
31163 | fail: | |
31164 | return NULL; | |
31165 | } | |
31166 | ||
31167 | ||
c32bde28 | 31168 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31169 | PyObject *resultobj; |
31170 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31171 | int arg2 ; | |
31172 | int result; | |
31173 | PyObject * obj0 = 0 ; | |
31174 | PyObject * obj1 = 0 ; | |
31175 | char *kwnames[] = { | |
31176 | (char *) "self",(char *) "orientation", NULL | |
31177 | }; | |
31178 | ||
31179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31182 | { | |
31183 | arg2 = (int)(SWIG_As_int(obj1)); | |
31184 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31185 | } | |
d55e5bfc RD |
31186 | { |
31187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31188 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
31189 | ||
31190 | wxPyEndAllowThreads(__tstate); | |
31191 | if (PyErr_Occurred()) SWIG_fail; | |
31192 | } | |
093d3ff1 RD |
31193 | { |
31194 | resultobj = SWIG_From_int((int)(result)); | |
31195 | } | |
d55e5bfc RD |
31196 | return resultobj; |
31197 | fail: | |
31198 | return NULL; | |
31199 | } | |
31200 | ||
31201 | ||
c32bde28 | 31202 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31203 | PyObject *resultobj; |
31204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31205 | int arg2 ; | |
31206 | int arg3 ; | |
31207 | wxRect *arg4 = (wxRect *) NULL ; | |
31208 | PyObject * obj0 = 0 ; | |
31209 | PyObject * obj1 = 0 ; | |
31210 | PyObject * obj2 = 0 ; | |
31211 | PyObject * obj3 = 0 ; | |
31212 | char *kwnames[] = { | |
31213 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
31214 | }; | |
31215 | ||
31216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
31217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31219 | { | |
31220 | arg2 = (int)(SWIG_As_int(obj1)); | |
31221 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31222 | } | |
31223 | { | |
31224 | arg3 = (int)(SWIG_As_int(obj2)); | |
31225 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31226 | } | |
d55e5bfc | 31227 | if (obj3) { |
093d3ff1 RD |
31228 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
31229 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
31230 | } |
31231 | { | |
31232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31233 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
31234 | ||
31235 | wxPyEndAllowThreads(__tstate); | |
31236 | if (PyErr_Occurred()) SWIG_fail; | |
31237 | } | |
31238 | Py_INCREF(Py_None); resultobj = Py_None; | |
31239 | return resultobj; | |
31240 | fail: | |
31241 | return NULL; | |
31242 | } | |
31243 | ||
31244 | ||
c32bde28 | 31245 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31246 | PyObject *resultobj; |
31247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31248 | int arg2 ; | |
31249 | bool result; | |
31250 | PyObject * obj0 = 0 ; | |
31251 | PyObject * obj1 = 0 ; | |
31252 | char *kwnames[] = { | |
31253 | (char *) "self",(char *) "lines", NULL | |
31254 | }; | |
31255 | ||
31256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31259 | { | |
31260 | arg2 = (int)(SWIG_As_int(obj1)); | |
31261 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31262 | } | |
d55e5bfc RD |
31263 | { |
31264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31265 | result = (bool)(arg1)->ScrollLines(arg2); | |
31266 | ||
31267 | wxPyEndAllowThreads(__tstate); | |
31268 | if (PyErr_Occurred()) SWIG_fail; | |
31269 | } | |
31270 | { | |
31271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31272 | } | |
31273 | return resultobj; | |
31274 | fail: | |
31275 | return NULL; | |
31276 | } | |
31277 | ||
31278 | ||
c32bde28 | 31279 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31280 | PyObject *resultobj; |
31281 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31282 | int arg2 ; | |
31283 | bool result; | |
31284 | PyObject * obj0 = 0 ; | |
31285 | PyObject * obj1 = 0 ; | |
31286 | char *kwnames[] = { | |
31287 | (char *) "self",(char *) "pages", NULL | |
31288 | }; | |
31289 | ||
31290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31293 | { | |
31294 | arg2 = (int)(SWIG_As_int(obj1)); | |
31295 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31296 | } | |
d55e5bfc RD |
31297 | { |
31298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31299 | result = (bool)(arg1)->ScrollPages(arg2); | |
31300 | ||
31301 | wxPyEndAllowThreads(__tstate); | |
31302 | if (PyErr_Occurred()) SWIG_fail; | |
31303 | } | |
31304 | { | |
31305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31306 | } | |
31307 | return resultobj; | |
31308 | fail: | |
31309 | return NULL; | |
31310 | } | |
31311 | ||
31312 | ||
c32bde28 | 31313 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31314 | PyObject *resultobj; |
31315 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31316 | bool result; | |
31317 | PyObject * obj0 = 0 ; | |
31318 | char *kwnames[] = { | |
31319 | (char *) "self", NULL | |
31320 | }; | |
31321 | ||
31322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31325 | { |
31326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31327 | result = (bool)(arg1)->LineUp(); | |
31328 | ||
31329 | wxPyEndAllowThreads(__tstate); | |
31330 | if (PyErr_Occurred()) SWIG_fail; | |
31331 | } | |
31332 | { | |
31333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31334 | } | |
31335 | return resultobj; | |
31336 | fail: | |
31337 | return NULL; | |
31338 | } | |
31339 | ||
31340 | ||
c32bde28 | 31341 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31342 | PyObject *resultobj; |
31343 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31344 | bool result; | |
31345 | PyObject * obj0 = 0 ; | |
31346 | char *kwnames[] = { | |
31347 | (char *) "self", NULL | |
31348 | }; | |
31349 | ||
31350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31353 | { |
31354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31355 | result = (bool)(arg1)->LineDown(); | |
31356 | ||
31357 | wxPyEndAllowThreads(__tstate); | |
31358 | if (PyErr_Occurred()) SWIG_fail; | |
31359 | } | |
31360 | { | |
31361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31362 | } | |
31363 | return resultobj; | |
31364 | fail: | |
31365 | return NULL; | |
31366 | } | |
31367 | ||
31368 | ||
c32bde28 | 31369 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31370 | PyObject *resultobj; |
31371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31372 | bool result; | |
31373 | PyObject * obj0 = 0 ; | |
31374 | char *kwnames[] = { | |
31375 | (char *) "self", NULL | |
31376 | }; | |
31377 | ||
31378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31379 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31381 | { |
31382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31383 | result = (bool)(arg1)->PageUp(); | |
31384 | ||
31385 | wxPyEndAllowThreads(__tstate); | |
31386 | if (PyErr_Occurred()) SWIG_fail; | |
31387 | } | |
31388 | { | |
31389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31390 | } | |
31391 | return resultobj; | |
31392 | fail: | |
31393 | return NULL; | |
31394 | } | |
31395 | ||
31396 | ||
c32bde28 | 31397 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31398 | PyObject *resultobj; |
31399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31400 | bool result; | |
31401 | PyObject * obj0 = 0 ; | |
31402 | char *kwnames[] = { | |
31403 | (char *) "self", NULL | |
31404 | }; | |
31405 | ||
31406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31409 | { |
31410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31411 | result = (bool)(arg1)->PageDown(); | |
31412 | ||
31413 | wxPyEndAllowThreads(__tstate); | |
31414 | if (PyErr_Occurred()) SWIG_fail; | |
31415 | } | |
31416 | { | |
31417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31418 | } | |
31419 | return resultobj; | |
31420 | fail: | |
31421 | return NULL; | |
31422 | } | |
31423 | ||
31424 | ||
c32bde28 | 31425 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31426 | PyObject *resultobj; |
31427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31428 | wxString *arg2 = 0 ; | |
ae8162c8 | 31429 | bool temp2 = false ; |
d55e5bfc RD |
31430 | PyObject * obj0 = 0 ; |
31431 | PyObject * obj1 = 0 ; | |
31432 | char *kwnames[] = { | |
31433 | (char *) "self",(char *) "text", NULL | |
31434 | }; | |
31435 | ||
31436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31439 | { |
31440 | arg2 = wxString_in_helper(obj1); | |
31441 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31442 | temp2 = true; |
d55e5bfc RD |
31443 | } |
31444 | { | |
31445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31446 | (arg1)->SetHelpText((wxString const &)*arg2); | |
31447 | ||
31448 | wxPyEndAllowThreads(__tstate); | |
31449 | if (PyErr_Occurred()) SWIG_fail; | |
31450 | } | |
31451 | Py_INCREF(Py_None); resultobj = Py_None; | |
31452 | { | |
31453 | if (temp2) | |
31454 | delete arg2; | |
31455 | } | |
31456 | return resultobj; | |
31457 | fail: | |
31458 | { | |
31459 | if (temp2) | |
31460 | delete arg2; | |
31461 | } | |
31462 | return NULL; | |
31463 | } | |
31464 | ||
31465 | ||
c32bde28 | 31466 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31467 | PyObject *resultobj; |
31468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31469 | wxString *arg2 = 0 ; | |
ae8162c8 | 31470 | bool temp2 = false ; |
d55e5bfc RD |
31471 | PyObject * obj0 = 0 ; |
31472 | PyObject * obj1 = 0 ; | |
31473 | char *kwnames[] = { | |
31474 | (char *) "self",(char *) "text", NULL | |
31475 | }; | |
31476 | ||
31477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31480 | { |
31481 | arg2 = wxString_in_helper(obj1); | |
31482 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31483 | temp2 = true; |
d55e5bfc RD |
31484 | } |
31485 | { | |
31486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31487 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
31488 | ||
31489 | wxPyEndAllowThreads(__tstate); | |
31490 | if (PyErr_Occurred()) SWIG_fail; | |
31491 | } | |
31492 | Py_INCREF(Py_None); resultobj = Py_None; | |
31493 | { | |
31494 | if (temp2) | |
31495 | delete arg2; | |
31496 | } | |
31497 | return resultobj; | |
31498 | fail: | |
31499 | { | |
31500 | if (temp2) | |
31501 | delete arg2; | |
31502 | } | |
31503 | return NULL; | |
31504 | } | |
31505 | ||
31506 | ||
c32bde28 | 31507 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31508 | PyObject *resultobj; |
31509 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31510 | wxString result; | |
31511 | PyObject * obj0 = 0 ; | |
31512 | char *kwnames[] = { | |
31513 | (char *) "self", NULL | |
31514 | }; | |
31515 | ||
31516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31519 | { |
31520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31521 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
31522 | ||
31523 | wxPyEndAllowThreads(__tstate); | |
31524 | if (PyErr_Occurred()) SWIG_fail; | |
31525 | } | |
31526 | { | |
31527 | #if wxUSE_UNICODE | |
31528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31529 | #else | |
31530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31531 | #endif | |
31532 | } | |
31533 | return resultobj; | |
31534 | fail: | |
31535 | return NULL; | |
31536 | } | |
31537 | ||
31538 | ||
c32bde28 | 31539 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31540 | PyObject *resultobj; |
31541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31542 | wxString *arg2 = 0 ; | |
ae8162c8 | 31543 | bool temp2 = false ; |
d55e5bfc RD |
31544 | PyObject * obj0 = 0 ; |
31545 | PyObject * obj1 = 0 ; | |
31546 | char *kwnames[] = { | |
31547 | (char *) "self",(char *) "tip", NULL | |
31548 | }; | |
31549 | ||
31550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31553 | { |
31554 | arg2 = wxString_in_helper(obj1); | |
31555 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31556 | temp2 = true; |
d55e5bfc RD |
31557 | } |
31558 | { | |
31559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31560 | (arg1)->SetToolTip((wxString const &)*arg2); | |
31561 | ||
31562 | wxPyEndAllowThreads(__tstate); | |
31563 | if (PyErr_Occurred()) SWIG_fail; | |
31564 | } | |
31565 | Py_INCREF(Py_None); resultobj = Py_None; | |
31566 | { | |
31567 | if (temp2) | |
31568 | delete arg2; | |
31569 | } | |
31570 | return resultobj; | |
31571 | fail: | |
31572 | { | |
31573 | if (temp2) | |
31574 | delete arg2; | |
31575 | } | |
31576 | return NULL; | |
31577 | } | |
31578 | ||
31579 | ||
c32bde28 | 31580 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31581 | PyObject *resultobj; |
31582 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31583 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
31584 | PyObject * obj0 = 0 ; | |
31585 | PyObject * obj1 = 0 ; | |
31586 | char *kwnames[] = { | |
31587 | (char *) "self",(char *) "tip", NULL | |
31588 | }; | |
31589 | ||
31590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31593 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); | |
31594 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31595 | { |
31596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31597 | (arg1)->SetToolTip(arg2); | |
31598 | ||
31599 | wxPyEndAllowThreads(__tstate); | |
31600 | if (PyErr_Occurred()) SWIG_fail; | |
31601 | } | |
31602 | Py_INCREF(Py_None); resultobj = Py_None; | |
31603 | return resultobj; | |
31604 | fail: | |
31605 | return NULL; | |
31606 | } | |
31607 | ||
31608 | ||
c32bde28 | 31609 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31610 | PyObject *resultobj; |
31611 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31612 | wxToolTip *result; | |
31613 | PyObject * obj0 = 0 ; | |
31614 | char *kwnames[] = { | |
31615 | (char *) "self", NULL | |
31616 | }; | |
31617 | ||
31618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31621 | { |
31622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31623 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
31624 | ||
31625 | wxPyEndAllowThreads(__tstate); | |
31626 | if (PyErr_Occurred()) SWIG_fail; | |
31627 | } | |
31628 | { | |
412d302d | 31629 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31630 | } |
31631 | return resultobj; | |
31632 | fail: | |
31633 | return NULL; | |
31634 | } | |
31635 | ||
31636 | ||
c32bde28 | 31637 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31638 | PyObject *resultobj; |
31639 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31640 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
31641 | PyObject * obj0 = 0 ; | |
31642 | PyObject * obj1 = 0 ; | |
31643 | char *kwnames[] = { | |
31644 | (char *) "self",(char *) "dropTarget", NULL | |
31645 | }; | |
31646 | ||
31647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31650 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
31651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31652 | { |
31653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31654 | (arg1)->SetDropTarget(arg2); | |
31655 | ||
31656 | wxPyEndAllowThreads(__tstate); | |
31657 | if (PyErr_Occurred()) SWIG_fail; | |
31658 | } | |
31659 | Py_INCREF(Py_None); resultobj = Py_None; | |
31660 | return resultobj; | |
31661 | fail: | |
31662 | return NULL; | |
31663 | } | |
31664 | ||
31665 | ||
c32bde28 | 31666 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31667 | PyObject *resultobj; |
31668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31669 | wxPyDropTarget *result; | |
31670 | PyObject * obj0 = 0 ; | |
31671 | char *kwnames[] = { | |
31672 | (char *) "self", NULL | |
31673 | }; | |
31674 | ||
31675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31678 | { |
31679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31680 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
31681 | ||
31682 | wxPyEndAllowThreads(__tstate); | |
31683 | if (PyErr_Occurred()) SWIG_fail; | |
31684 | } | |
31685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
31686 | return resultobj; | |
31687 | fail: | |
31688 | return NULL; | |
31689 | } | |
31690 | ||
31691 | ||
c32bde28 | 31692 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31693 | PyObject *resultobj; |
31694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31695 | bool arg2 ; | |
31696 | PyObject * obj0 = 0 ; | |
31697 | PyObject * obj1 = 0 ; | |
31698 | char *kwnames[] = { | |
31699 | (char *) "self",(char *) "accept", NULL | |
31700 | }; | |
31701 | ||
31702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31705 | { | |
31706 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
31707 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31708 | } | |
d55e5bfc RD |
31709 | { |
31710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31711 | (arg1)->DragAcceptFiles(arg2); | |
31712 | ||
31713 | wxPyEndAllowThreads(__tstate); | |
31714 | if (PyErr_Occurred()) SWIG_fail; | |
31715 | } | |
31716 | Py_INCREF(Py_None); resultobj = Py_None; | |
31717 | return resultobj; | |
31718 | fail: | |
31719 | return NULL; | |
31720 | } | |
31721 | ||
31722 | ||
c32bde28 | 31723 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31724 | PyObject *resultobj; |
31725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31726 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
31727 | PyObject * obj0 = 0 ; | |
31728 | PyObject * obj1 = 0 ; | |
31729 | char *kwnames[] = { | |
31730 | (char *) "self",(char *) "constraints", NULL | |
31731 | }; | |
31732 | ||
31733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31736 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); | |
31737 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31738 | { |
31739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31740 | (arg1)->SetConstraints(arg2); | |
31741 | ||
31742 | wxPyEndAllowThreads(__tstate); | |
31743 | if (PyErr_Occurred()) SWIG_fail; | |
31744 | } | |
31745 | Py_INCREF(Py_None); resultobj = Py_None; | |
31746 | return resultobj; | |
31747 | fail: | |
31748 | return NULL; | |
31749 | } | |
31750 | ||
31751 | ||
c32bde28 | 31752 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31753 | PyObject *resultobj; |
31754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31755 | wxLayoutConstraints *result; | |
31756 | PyObject * obj0 = 0 ; | |
31757 | char *kwnames[] = { | |
31758 | (char *) "self", NULL | |
31759 | }; | |
31760 | ||
31761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31764 | { |
31765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31766 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
31767 | ||
31768 | wxPyEndAllowThreads(__tstate); | |
31769 | if (PyErr_Occurred()) SWIG_fail; | |
31770 | } | |
31771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
31772 | return resultobj; | |
31773 | fail: | |
31774 | return NULL; | |
31775 | } | |
31776 | ||
31777 | ||
c32bde28 | 31778 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31779 | PyObject *resultobj; |
31780 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31781 | bool arg2 ; | |
31782 | PyObject * obj0 = 0 ; | |
31783 | PyObject * obj1 = 0 ; | |
31784 | char *kwnames[] = { | |
31785 | (char *) "self",(char *) "autoLayout", NULL | |
31786 | }; | |
31787 | ||
31788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31791 | { | |
31792 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
31793 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31794 | } | |
d55e5bfc RD |
31795 | { |
31796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31797 | (arg1)->SetAutoLayout(arg2); | |
31798 | ||
31799 | wxPyEndAllowThreads(__tstate); | |
31800 | if (PyErr_Occurred()) SWIG_fail; | |
31801 | } | |
31802 | Py_INCREF(Py_None); resultobj = Py_None; | |
31803 | return resultobj; | |
31804 | fail: | |
31805 | return NULL; | |
31806 | } | |
31807 | ||
31808 | ||
c32bde28 | 31809 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31810 | PyObject *resultobj; |
31811 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31812 | bool result; | |
31813 | PyObject * obj0 = 0 ; | |
31814 | char *kwnames[] = { | |
31815 | (char *) "self", NULL | |
31816 | }; | |
31817 | ||
31818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31821 | { |
31822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31823 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
31824 | ||
31825 | wxPyEndAllowThreads(__tstate); | |
31826 | if (PyErr_Occurred()) SWIG_fail; | |
31827 | } | |
31828 | { | |
31829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31830 | } | |
31831 | return resultobj; | |
31832 | fail: | |
31833 | return NULL; | |
31834 | } | |
31835 | ||
31836 | ||
c32bde28 | 31837 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31838 | PyObject *resultobj; |
31839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31840 | bool result; | |
31841 | PyObject * obj0 = 0 ; | |
31842 | char *kwnames[] = { | |
31843 | (char *) "self", NULL | |
31844 | }; | |
31845 | ||
31846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31849 | { |
31850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31851 | result = (bool)(arg1)->Layout(); | |
31852 | ||
31853 | wxPyEndAllowThreads(__tstate); | |
31854 | if (PyErr_Occurred()) SWIG_fail; | |
31855 | } | |
31856 | { | |
31857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31858 | } | |
31859 | return resultobj; | |
31860 | fail: | |
31861 | return NULL; | |
31862 | } | |
31863 | ||
31864 | ||
c32bde28 | 31865 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31866 | PyObject *resultobj; |
31867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31868 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 31869 | bool arg3 = (bool) true ; |
d55e5bfc RD |
31870 | PyObject * obj0 = 0 ; |
31871 | PyObject * obj1 = 0 ; | |
31872 | PyObject * obj2 = 0 ; | |
31873 | char *kwnames[] = { | |
31874 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
31875 | }; | |
31876 | ||
31877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
31878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31880 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31881 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 31882 | if (obj2) { |
093d3ff1 RD |
31883 | { |
31884 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
31885 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31886 | } | |
d55e5bfc RD |
31887 | } |
31888 | { | |
31889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31890 | (arg1)->SetSizer(arg2,arg3); | |
31891 | ||
31892 | wxPyEndAllowThreads(__tstate); | |
31893 | if (PyErr_Occurred()) SWIG_fail; | |
31894 | } | |
31895 | Py_INCREF(Py_None); resultobj = Py_None; | |
31896 | return resultobj; | |
31897 | fail: | |
31898 | return NULL; | |
31899 | } | |
31900 | ||
31901 | ||
c32bde28 | 31902 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31903 | PyObject *resultobj; |
31904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31905 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 31906 | bool arg3 = (bool) true ; |
d55e5bfc RD |
31907 | PyObject * obj0 = 0 ; |
31908 | PyObject * obj1 = 0 ; | |
31909 | PyObject * obj2 = 0 ; | |
31910 | char *kwnames[] = { | |
31911 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
31912 | }; | |
31913 | ||
31914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
31915 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31916 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31917 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31918 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 31919 | if (obj2) { |
093d3ff1 RD |
31920 | { |
31921 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
31922 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31923 | } | |
d55e5bfc RD |
31924 | } |
31925 | { | |
31926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31927 | (arg1)->SetSizerAndFit(arg2,arg3); | |
31928 | ||
31929 | wxPyEndAllowThreads(__tstate); | |
31930 | if (PyErr_Occurred()) SWIG_fail; | |
31931 | } | |
31932 | Py_INCREF(Py_None); resultobj = Py_None; | |
31933 | return resultobj; | |
31934 | fail: | |
31935 | return NULL; | |
31936 | } | |
31937 | ||
31938 | ||
c32bde28 | 31939 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31940 | PyObject *resultobj; |
31941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31942 | wxSizer *result; | |
31943 | PyObject * obj0 = 0 ; | |
31944 | char *kwnames[] = { | |
31945 | (char *) "self", NULL | |
31946 | }; | |
31947 | ||
31948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31951 | { |
31952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31953 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
31954 | ||
31955 | wxPyEndAllowThreads(__tstate); | |
31956 | if (PyErr_Occurred()) SWIG_fail; | |
31957 | } | |
31958 | { | |
412d302d | 31959 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
31960 | } |
31961 | return resultobj; | |
31962 | fail: | |
31963 | return NULL; | |
31964 | } | |
31965 | ||
31966 | ||
c32bde28 | 31967 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31968 | PyObject *resultobj; |
31969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31970 | wxSizer *arg2 = (wxSizer *) 0 ; | |
31971 | PyObject * obj0 = 0 ; | |
31972 | PyObject * obj1 = 0 ; | |
31973 | char *kwnames[] = { | |
31974 | (char *) "self",(char *) "sizer", NULL | |
31975 | }; | |
31976 | ||
31977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31980 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31981 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31982 | { |
31983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31984 | (arg1)->SetContainingSizer(arg2); | |
31985 | ||
31986 | wxPyEndAllowThreads(__tstate); | |
31987 | if (PyErr_Occurred()) SWIG_fail; | |
31988 | } | |
31989 | Py_INCREF(Py_None); resultobj = Py_None; | |
31990 | return resultobj; | |
31991 | fail: | |
31992 | return NULL; | |
31993 | } | |
31994 | ||
31995 | ||
c32bde28 | 31996 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31997 | PyObject *resultobj; |
31998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31999 | wxSizer *result; | |
32000 | PyObject * obj0 = 0 ; | |
32001 | char *kwnames[] = { | |
32002 | (char *) "self", NULL | |
32003 | }; | |
32004 | ||
32005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32008 | { |
32009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32010 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
32011 | ||
32012 | wxPyEndAllowThreads(__tstate); | |
32013 | if (PyErr_Occurred()) SWIG_fail; | |
32014 | } | |
32015 | { | |
412d302d | 32016 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
32017 | } |
32018 | return resultobj; | |
32019 | fail: | |
32020 | return NULL; | |
32021 | } | |
32022 | ||
32023 | ||
c32bde28 | 32024 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32025 | PyObject *resultobj; |
32026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32027 | PyObject * obj0 = 0 ; | |
32028 | char *kwnames[] = { | |
32029 | (char *) "self", NULL | |
32030 | }; | |
32031 | ||
32032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32035 | { |
32036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32037 | (arg1)->InheritAttributes(); | |
32038 | ||
32039 | wxPyEndAllowThreads(__tstate); | |
32040 | if (PyErr_Occurred()) SWIG_fail; | |
32041 | } | |
32042 | Py_INCREF(Py_None); resultobj = Py_None; | |
32043 | return resultobj; | |
32044 | fail: | |
32045 | return NULL; | |
32046 | } | |
32047 | ||
32048 | ||
c32bde28 | 32049 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32050 | PyObject *resultobj; |
32051 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32052 | bool result; | |
32053 | PyObject * obj0 = 0 ; | |
32054 | char *kwnames[] = { | |
32055 | (char *) "self", NULL | |
32056 | }; | |
32057 | ||
32058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32061 | { |
32062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32063 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
32064 | ||
32065 | wxPyEndAllowThreads(__tstate); | |
32066 | if (PyErr_Occurred()) SWIG_fail; | |
32067 | } | |
32068 | { | |
32069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32070 | } | |
32071 | return resultobj; | |
32072 | fail: | |
32073 | return NULL; | |
32074 | } | |
32075 | ||
32076 | ||
c32bde28 | 32077 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32078 | PyObject *obj; |
32079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32080 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
32081 | Py_INCREF(obj); | |
32082 | return Py_BuildValue((char *)""); | |
32083 | } | |
c32bde28 | 32084 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32085 | PyObject *resultobj; |
32086 | long arg1 ; | |
32087 | wxWindow *arg2 = (wxWindow *) NULL ; | |
32088 | wxWindow *result; | |
32089 | PyObject * obj0 = 0 ; | |
32090 | PyObject * obj1 = 0 ; | |
32091 | char *kwnames[] = { | |
32092 | (char *) "id",(char *) "parent", NULL | |
32093 | }; | |
32094 | ||
32095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32096 | { |
32097 | arg1 = (long)(SWIG_As_long(obj0)); | |
32098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32099 | } | |
d55e5bfc | 32100 | if (obj1) { |
093d3ff1 RD |
32101 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32102 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32103 | } |
32104 | { | |
0439c23b | 32105 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32107 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
32108 | ||
32109 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32110 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32111 | } |
32112 | { | |
412d302d | 32113 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32114 | } |
32115 | return resultobj; | |
32116 | fail: | |
32117 | return NULL; | |
32118 | } | |
32119 | ||
32120 | ||
c32bde28 | 32121 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32122 | PyObject *resultobj; |
32123 | wxString *arg1 = 0 ; | |
32124 | wxWindow *arg2 = (wxWindow *) NULL ; | |
32125 | wxWindow *result; | |
ae8162c8 | 32126 | bool temp1 = false ; |
d55e5bfc RD |
32127 | PyObject * obj0 = 0 ; |
32128 | PyObject * obj1 = 0 ; | |
32129 | char *kwnames[] = { | |
32130 | (char *) "name",(char *) "parent", NULL | |
32131 | }; | |
32132 | ||
32133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
32134 | { | |
32135 | arg1 = wxString_in_helper(obj0); | |
32136 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 32137 | temp1 = true; |
d55e5bfc RD |
32138 | } |
32139 | if (obj1) { | |
093d3ff1 RD |
32140 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32141 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32142 | } |
32143 | { | |
0439c23b | 32144 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32146 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
32147 | ||
32148 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32149 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32150 | } |
32151 | { | |
412d302d | 32152 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32153 | } |
32154 | { | |
32155 | if (temp1) | |
32156 | delete arg1; | |
32157 | } | |
32158 | return resultobj; | |
32159 | fail: | |
32160 | { | |
32161 | if (temp1) | |
32162 | delete arg1; | |
32163 | } | |
32164 | return NULL; | |
32165 | } | |
32166 | ||
32167 | ||
c32bde28 | 32168 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32169 | PyObject *resultobj; |
32170 | wxString *arg1 = 0 ; | |
32171 | wxWindow *arg2 = (wxWindow *) NULL ; | |
32172 | wxWindow *result; | |
ae8162c8 | 32173 | bool temp1 = false ; |
d55e5bfc RD |
32174 | PyObject * obj0 = 0 ; |
32175 | PyObject * obj1 = 0 ; | |
32176 | char *kwnames[] = { | |
32177 | (char *) "label",(char *) "parent", NULL | |
32178 | }; | |
32179 | ||
32180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
32181 | { | |
32182 | arg1 = wxString_in_helper(obj0); | |
32183 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 32184 | temp1 = true; |
d55e5bfc RD |
32185 | } |
32186 | if (obj1) { | |
093d3ff1 RD |
32187 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32188 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32189 | } |
32190 | { | |
0439c23b | 32191 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32193 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
32194 | ||
32195 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32196 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32197 | } |
32198 | { | |
412d302d | 32199 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32200 | } |
32201 | { | |
32202 | if (temp1) | |
32203 | delete arg1; | |
32204 | } | |
32205 | return resultobj; | |
32206 | fail: | |
32207 | { | |
32208 | if (temp1) | |
32209 | delete arg1; | |
32210 | } | |
32211 | return NULL; | |
32212 | } | |
32213 | ||
32214 | ||
c32bde28 | 32215 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32216 | PyObject *resultobj; |
32217 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32218 | unsigned long arg2 ; | |
32219 | wxWindow *result; | |
32220 | PyObject * obj0 = 0 ; | |
32221 | PyObject * obj1 = 0 ; | |
32222 | char *kwnames[] = { | |
32223 | (char *) "parent",(char *) "_hWnd", NULL | |
32224 | }; | |
32225 | ||
32226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32229 | { | |
32230 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
32231 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32232 | } | |
d55e5bfc RD |
32233 | { |
32234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32235 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
32236 | ||
32237 | wxPyEndAllowThreads(__tstate); | |
32238 | if (PyErr_Occurred()) SWIG_fail; | |
32239 | } | |
32240 | { | |
412d302d | 32241 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32242 | } |
32243 | return resultobj; | |
32244 | fail: | |
32245 | return NULL; | |
32246 | } | |
32247 | ||
32248 | ||
c32bde28 | 32249 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32250 | PyObject *resultobj; |
32251 | wxValidator *result; | |
32252 | char *kwnames[] = { | |
32253 | NULL | |
32254 | }; | |
32255 | ||
32256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
32257 | { | |
32258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32259 | result = (wxValidator *)new wxValidator(); | |
32260 | ||
32261 | wxPyEndAllowThreads(__tstate); | |
32262 | if (PyErr_Occurred()) SWIG_fail; | |
32263 | } | |
b0f7404b | 32264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
32265 | return resultobj; |
32266 | fail: | |
32267 | return NULL; | |
32268 | } | |
32269 | ||
32270 | ||
c32bde28 | 32271 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32272 | PyObject *resultobj; |
32273 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32274 | wxValidator *result; | |
32275 | PyObject * obj0 = 0 ; | |
32276 | char *kwnames[] = { | |
32277 | (char *) "self", NULL | |
32278 | }; | |
32279 | ||
32280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32283 | { |
32284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32285 | result = (wxValidator *)(arg1)->Clone(); | |
32286 | ||
32287 | wxPyEndAllowThreads(__tstate); | |
32288 | if (PyErr_Occurred()) SWIG_fail; | |
32289 | } | |
32290 | { | |
412d302d | 32291 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32292 | } |
32293 | return resultobj; | |
32294 | fail: | |
32295 | return NULL; | |
32296 | } | |
32297 | ||
32298 | ||
c32bde28 | 32299 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32300 | PyObject *resultobj; |
32301 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32302 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32303 | bool result; | |
32304 | PyObject * obj0 = 0 ; | |
32305 | PyObject * obj1 = 0 ; | |
32306 | char *kwnames[] = { | |
32307 | (char *) "self",(char *) "parent", NULL | |
32308 | }; | |
32309 | ||
32310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32313 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32314 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32315 | { |
32316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32317 | result = (bool)(arg1)->Validate(arg2); | |
32318 | ||
32319 | wxPyEndAllowThreads(__tstate); | |
32320 | if (PyErr_Occurred()) SWIG_fail; | |
32321 | } | |
32322 | { | |
32323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32324 | } | |
32325 | return resultobj; | |
32326 | fail: | |
32327 | return NULL; | |
32328 | } | |
32329 | ||
32330 | ||
c32bde28 | 32331 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32332 | PyObject *resultobj; |
32333 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32334 | bool result; | |
32335 | PyObject * obj0 = 0 ; | |
32336 | char *kwnames[] = { | |
32337 | (char *) "self", NULL | |
32338 | }; | |
32339 | ||
32340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32343 | { |
32344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32345 | result = (bool)(arg1)->TransferToWindow(); | |
32346 | ||
32347 | wxPyEndAllowThreads(__tstate); | |
32348 | if (PyErr_Occurred()) SWIG_fail; | |
32349 | } | |
32350 | { | |
32351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32352 | } | |
32353 | return resultobj; | |
32354 | fail: | |
32355 | return NULL; | |
32356 | } | |
32357 | ||
32358 | ||
c32bde28 | 32359 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32360 | PyObject *resultobj; |
32361 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32362 | bool result; | |
32363 | PyObject * obj0 = 0 ; | |
32364 | char *kwnames[] = { | |
32365 | (char *) "self", NULL | |
32366 | }; | |
32367 | ||
32368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32371 | { |
32372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32373 | result = (bool)(arg1)->TransferFromWindow(); | |
32374 | ||
32375 | wxPyEndAllowThreads(__tstate); | |
32376 | if (PyErr_Occurred()) SWIG_fail; | |
32377 | } | |
32378 | { | |
32379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32380 | } | |
32381 | return resultobj; | |
32382 | fail: | |
32383 | return NULL; | |
32384 | } | |
32385 | ||
32386 | ||
c32bde28 | 32387 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32388 | PyObject *resultobj; |
32389 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32390 | wxWindow *result; | |
32391 | PyObject * obj0 = 0 ; | |
32392 | char *kwnames[] = { | |
32393 | (char *) "self", NULL | |
32394 | }; | |
32395 | ||
32396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32399 | { |
32400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32401 | result = (wxWindow *)(arg1)->GetWindow(); | |
32402 | ||
32403 | wxPyEndAllowThreads(__tstate); | |
32404 | if (PyErr_Occurred()) SWIG_fail; | |
32405 | } | |
32406 | { | |
412d302d | 32407 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32408 | } |
32409 | return resultobj; | |
32410 | fail: | |
32411 | return NULL; | |
32412 | } | |
32413 | ||
32414 | ||
c32bde28 | 32415 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32416 | PyObject *resultobj; |
32417 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32418 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32419 | PyObject * obj0 = 0 ; | |
32420 | PyObject * obj1 = 0 ; | |
32421 | char *kwnames[] = { | |
32422 | (char *) "self",(char *) "window", NULL | |
32423 | }; | |
32424 | ||
32425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32428 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32429 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32430 | { |
32431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32432 | (arg1)->SetWindow(arg2); | |
32433 | ||
32434 | wxPyEndAllowThreads(__tstate); | |
32435 | if (PyErr_Occurred()) SWIG_fail; | |
32436 | } | |
32437 | Py_INCREF(Py_None); resultobj = Py_None; | |
32438 | return resultobj; | |
32439 | fail: | |
32440 | return NULL; | |
32441 | } | |
32442 | ||
32443 | ||
c32bde28 | 32444 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32445 | PyObject *resultobj; |
32446 | bool result; | |
32447 | char *kwnames[] = { | |
32448 | NULL | |
32449 | }; | |
32450 | ||
32451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
32452 | { | |
32453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32454 | result = (bool)wxValidator::IsSilent(); | |
32455 | ||
32456 | wxPyEndAllowThreads(__tstate); | |
32457 | if (PyErr_Occurred()) SWIG_fail; | |
32458 | } | |
32459 | { | |
32460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32461 | } | |
32462 | return resultobj; | |
32463 | fail: | |
32464 | return NULL; | |
32465 | } | |
32466 | ||
32467 | ||
c32bde28 | 32468 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 32469 | PyObject *resultobj; |
ae8162c8 | 32470 | int arg1 = (int) true ; |
d55e5bfc RD |
32471 | PyObject * obj0 = 0 ; |
32472 | char *kwnames[] = { | |
32473 | (char *) "doIt", NULL | |
32474 | }; | |
32475 | ||
32476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
32477 | if (obj0) { | |
093d3ff1 RD |
32478 | { |
32479 | arg1 = (int)(SWIG_As_int(obj0)); | |
32480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32481 | } | |
d55e5bfc RD |
32482 | } |
32483 | { | |
32484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32485 | wxValidator::SetBellOnError(arg1); | |
32486 | ||
32487 | wxPyEndAllowThreads(__tstate); | |
32488 | if (PyErr_Occurred()) SWIG_fail; | |
32489 | } | |
32490 | Py_INCREF(Py_None); resultobj = Py_None; | |
32491 | return resultobj; | |
32492 | fail: | |
32493 | return NULL; | |
32494 | } | |
32495 | ||
32496 | ||
c32bde28 | 32497 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32498 | PyObject *obj; |
32499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32500 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
32501 | Py_INCREF(obj); | |
32502 | return Py_BuildValue((char *)""); | |
32503 | } | |
c32bde28 | 32504 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32505 | PyObject *resultobj; |
32506 | wxPyValidator *result; | |
32507 | char *kwnames[] = { | |
32508 | NULL | |
32509 | }; | |
32510 | ||
32511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
32512 | { | |
32513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32514 | result = (wxPyValidator *)new wxPyValidator(); | |
32515 | ||
32516 | wxPyEndAllowThreads(__tstate); | |
32517 | if (PyErr_Occurred()) SWIG_fail; | |
32518 | } | |
32519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
32520 | return resultobj; | |
32521 | fail: | |
32522 | return NULL; | |
32523 | } | |
32524 | ||
32525 | ||
c32bde28 | 32526 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32527 | PyObject *resultobj; |
32528 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
32529 | PyObject *arg2 = (PyObject *) 0 ; | |
32530 | PyObject *arg3 = (PyObject *) 0 ; | |
ae8162c8 | 32531 | int arg4 = (int) true ; |
d55e5bfc RD |
32532 | PyObject * obj0 = 0 ; |
32533 | PyObject * obj1 = 0 ; | |
32534 | PyObject * obj2 = 0 ; | |
32535 | PyObject * obj3 = 0 ; | |
32536 | char *kwnames[] = { | |
32537 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
32538 | }; | |
32539 | ||
32540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
32541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyValidator, SWIG_POINTER_EXCEPTION | 0); |
32542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32543 | arg2 = obj1; |
32544 | arg3 = obj2; | |
32545 | if (obj3) { | |
093d3ff1 RD |
32546 | { |
32547 | arg4 = (int)(SWIG_As_int(obj3)); | |
32548 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32549 | } | |
d55e5bfc RD |
32550 | } |
32551 | { | |
32552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32553 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
32554 | ||
32555 | wxPyEndAllowThreads(__tstate); | |
32556 | if (PyErr_Occurred()) SWIG_fail; | |
32557 | } | |
32558 | Py_INCREF(Py_None); resultobj = Py_None; | |
32559 | return resultobj; | |
32560 | fail: | |
32561 | return NULL; | |
32562 | } | |
32563 | ||
32564 | ||
c32bde28 | 32565 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32566 | PyObject *obj; |
32567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32568 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
32569 | Py_INCREF(obj); | |
32570 | return Py_BuildValue((char *)""); | |
32571 | } | |
c32bde28 | 32572 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
32573 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
32574 | return 1; | |
32575 | } | |
32576 | ||
32577 | ||
093d3ff1 | 32578 | static PyObject *_wrap_DefaultValidator_get(void) { |
d55e5bfc RD |
32579 | PyObject *pyobj; |
32580 | ||
32581 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
32582 | return pyobj; | |
32583 | } | |
32584 | ||
32585 | ||
c32bde28 | 32586 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32587 | PyObject *resultobj; |
32588 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
32589 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
32590 | long arg2 = (long) 0 ; | |
32591 | wxMenu *result; | |
ae8162c8 | 32592 | bool temp1 = false ; |
d55e5bfc RD |
32593 | PyObject * obj0 = 0 ; |
32594 | PyObject * obj1 = 0 ; | |
32595 | char *kwnames[] = { | |
32596 | (char *) "title",(char *) "style", NULL | |
32597 | }; | |
32598 | ||
32599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
32600 | if (obj0) { | |
32601 | { | |
32602 | arg1 = wxString_in_helper(obj0); | |
32603 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 32604 | temp1 = true; |
d55e5bfc RD |
32605 | } |
32606 | } | |
32607 | if (obj1) { | |
093d3ff1 RD |
32608 | { |
32609 | arg2 = (long)(SWIG_As_long(obj1)); | |
32610 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32611 | } | |
d55e5bfc RD |
32612 | } |
32613 | { | |
0439c23b | 32614 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32616 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
32617 | ||
32618 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32619 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 32620 | } |
b0f7404b | 32621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
32622 | { |
32623 | if (temp1) | |
32624 | delete arg1; | |
32625 | } | |
32626 | return resultobj; | |
32627 | fail: | |
32628 | { | |
32629 | if (temp1) | |
32630 | delete arg1; | |
32631 | } | |
32632 | return NULL; | |
32633 | } | |
32634 | ||
32635 | ||
c32bde28 | 32636 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32637 | PyObject *resultobj; |
32638 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32639 | int arg2 ; | |
32640 | wxString *arg3 = 0 ; | |
32641 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32642 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 32643 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc | 32644 | wxMenuItem *result; |
ae8162c8 RD |
32645 | bool temp3 = false ; |
32646 | bool temp4 = false ; | |
d55e5bfc RD |
32647 | PyObject * obj0 = 0 ; |
32648 | PyObject * obj1 = 0 ; | |
32649 | PyObject * obj2 = 0 ; | |
32650 | PyObject * obj3 = 0 ; | |
32651 | PyObject * obj4 = 0 ; | |
32652 | char *kwnames[] = { | |
32653 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
32654 | }; | |
32655 | ||
32656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32659 | { | |
32660 | arg2 = (int)(SWIG_As_int(obj1)); | |
32661 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32662 | } | |
d55e5bfc RD |
32663 | { |
32664 | arg3 = wxString_in_helper(obj2); | |
32665 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32666 | temp3 = true; |
d55e5bfc RD |
32667 | } |
32668 | if (obj3) { | |
32669 | { | |
32670 | arg4 = wxString_in_helper(obj3); | |
32671 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32672 | temp4 = true; |
d55e5bfc RD |
32673 | } |
32674 | } | |
32675 | if (obj4) { | |
093d3ff1 RD |
32676 | { |
32677 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
32678 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32679 | } | |
d55e5bfc RD |
32680 | } |
32681 | { | |
32682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32683 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
32684 | ||
32685 | wxPyEndAllowThreads(__tstate); | |
32686 | if (PyErr_Occurred()) SWIG_fail; | |
32687 | } | |
32688 | { | |
412d302d | 32689 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32690 | } |
32691 | { | |
32692 | if (temp3) | |
32693 | delete arg3; | |
32694 | } | |
32695 | { | |
32696 | if (temp4) | |
32697 | delete arg4; | |
32698 | } | |
32699 | return resultobj; | |
32700 | fail: | |
32701 | { | |
32702 | if (temp3) | |
32703 | delete arg3; | |
32704 | } | |
32705 | { | |
32706 | if (temp4) | |
32707 | delete arg4; | |
32708 | } | |
32709 | return NULL; | |
32710 | } | |
32711 | ||
32712 | ||
c32bde28 | 32713 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32714 | PyObject *resultobj; |
32715 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32716 | wxMenuItem *result; | |
32717 | PyObject * obj0 = 0 ; | |
32718 | char *kwnames[] = { | |
32719 | (char *) "self", NULL | |
32720 | }; | |
32721 | ||
32722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32725 | { |
32726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32727 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
32728 | ||
32729 | wxPyEndAllowThreads(__tstate); | |
32730 | if (PyErr_Occurred()) SWIG_fail; | |
32731 | } | |
32732 | { | |
412d302d | 32733 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32734 | } |
32735 | return resultobj; | |
32736 | fail: | |
32737 | return NULL; | |
32738 | } | |
32739 | ||
32740 | ||
c32bde28 | 32741 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32742 | PyObject *resultobj; |
32743 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32744 | int arg2 ; | |
32745 | wxString *arg3 = 0 ; | |
32746 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32747 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32748 | wxMenuItem *result; | |
ae8162c8 RD |
32749 | bool temp3 = false ; |
32750 | bool temp4 = false ; | |
d55e5bfc RD |
32751 | PyObject * obj0 = 0 ; |
32752 | PyObject * obj1 = 0 ; | |
32753 | PyObject * obj2 = 0 ; | |
32754 | PyObject * obj3 = 0 ; | |
32755 | char *kwnames[] = { | |
32756 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
32757 | }; | |
32758 | ||
32759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
32760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32762 | { | |
32763 | arg2 = (int)(SWIG_As_int(obj1)); | |
32764 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32765 | } | |
d55e5bfc RD |
32766 | { |
32767 | arg3 = wxString_in_helper(obj2); | |
32768 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32769 | temp3 = true; |
d55e5bfc RD |
32770 | } |
32771 | if (obj3) { | |
32772 | { | |
32773 | arg4 = wxString_in_helper(obj3); | |
32774 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32775 | temp4 = true; |
d55e5bfc RD |
32776 | } |
32777 | } | |
32778 | { | |
32779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32780 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
32781 | ||
32782 | wxPyEndAllowThreads(__tstate); | |
32783 | if (PyErr_Occurred()) SWIG_fail; | |
32784 | } | |
32785 | { | |
412d302d | 32786 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32787 | } |
32788 | { | |
32789 | if (temp3) | |
32790 | delete arg3; | |
32791 | } | |
32792 | { | |
32793 | if (temp4) | |
32794 | delete arg4; | |
32795 | } | |
32796 | return resultobj; | |
32797 | fail: | |
32798 | { | |
32799 | if (temp3) | |
32800 | delete arg3; | |
32801 | } | |
32802 | { | |
32803 | if (temp4) | |
32804 | delete arg4; | |
32805 | } | |
32806 | return NULL; | |
32807 | } | |
32808 | ||
32809 | ||
c32bde28 | 32810 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32811 | PyObject *resultobj; |
32812 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32813 | int arg2 ; | |
32814 | wxString *arg3 = 0 ; | |
32815 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32816 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32817 | wxMenuItem *result; | |
ae8162c8 RD |
32818 | bool temp3 = false ; |
32819 | bool temp4 = false ; | |
d55e5bfc RD |
32820 | PyObject * obj0 = 0 ; |
32821 | PyObject * obj1 = 0 ; | |
32822 | PyObject * obj2 = 0 ; | |
32823 | PyObject * obj3 = 0 ; | |
32824 | char *kwnames[] = { | |
32825 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
32826 | }; | |
32827 | ||
32828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
32829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32831 | { | |
32832 | arg2 = (int)(SWIG_As_int(obj1)); | |
32833 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32834 | } | |
d55e5bfc RD |
32835 | { |
32836 | arg3 = wxString_in_helper(obj2); | |
32837 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32838 | temp3 = true; |
d55e5bfc RD |
32839 | } |
32840 | if (obj3) { | |
32841 | { | |
32842 | arg4 = wxString_in_helper(obj3); | |
32843 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32844 | temp4 = true; |
d55e5bfc RD |
32845 | } |
32846 | } | |
32847 | { | |
32848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32849 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
32850 | ||
32851 | wxPyEndAllowThreads(__tstate); | |
32852 | if (PyErr_Occurred()) SWIG_fail; | |
32853 | } | |
32854 | { | |
412d302d | 32855 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32856 | } |
32857 | { | |
32858 | if (temp3) | |
32859 | delete arg3; | |
32860 | } | |
32861 | { | |
32862 | if (temp4) | |
32863 | delete arg4; | |
32864 | } | |
32865 | return resultobj; | |
32866 | fail: | |
32867 | { | |
32868 | if (temp3) | |
32869 | delete arg3; | |
32870 | } | |
32871 | { | |
32872 | if (temp4) | |
32873 | delete arg4; | |
32874 | } | |
32875 | return NULL; | |
32876 | } | |
32877 | ||
32878 | ||
c32bde28 | 32879 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32880 | PyObject *resultobj; |
32881 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32882 | int arg2 ; | |
32883 | wxString *arg3 = 0 ; | |
32884 | wxMenu *arg4 = (wxMenu *) 0 ; | |
32885 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
32886 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
32887 | wxMenuItem *result; | |
ae8162c8 RD |
32888 | bool temp3 = false ; |
32889 | bool temp5 = false ; | |
d55e5bfc RD |
32890 | PyObject * obj0 = 0 ; |
32891 | PyObject * obj1 = 0 ; | |
32892 | PyObject * obj2 = 0 ; | |
32893 | PyObject * obj3 = 0 ; | |
32894 | PyObject * obj4 = 0 ; | |
32895 | char *kwnames[] = { | |
32896 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
32897 | }; | |
32898 | ||
32899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32902 | { | |
32903 | arg2 = (int)(SWIG_As_int(obj1)); | |
32904 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32905 | } | |
d55e5bfc RD |
32906 | { |
32907 | arg3 = wxString_in_helper(obj2); | |
32908 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32909 | temp3 = true; |
d55e5bfc | 32910 | } |
093d3ff1 RD |
32911 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32912 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
32913 | if (obj4) { |
32914 | { | |
32915 | arg5 = wxString_in_helper(obj4); | |
32916 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 32917 | temp5 = true; |
d55e5bfc RD |
32918 | } |
32919 | } | |
32920 | { | |
32921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32922 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
32923 | ||
32924 | wxPyEndAllowThreads(__tstate); | |
32925 | if (PyErr_Occurred()) SWIG_fail; | |
32926 | } | |
32927 | { | |
412d302d | 32928 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32929 | } |
32930 | { | |
32931 | if (temp3) | |
32932 | delete arg3; | |
32933 | } | |
32934 | { | |
32935 | if (temp5) | |
32936 | delete arg5; | |
32937 | } | |
32938 | return resultobj; | |
32939 | fail: | |
32940 | { | |
32941 | if (temp3) | |
32942 | delete arg3; | |
32943 | } | |
32944 | { | |
32945 | if (temp5) | |
32946 | delete arg5; | |
32947 | } | |
32948 | return NULL; | |
32949 | } | |
32950 | ||
32951 | ||
c32bde28 | 32952 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32953 | PyObject *resultobj; |
32954 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32955 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
32956 | wxMenuItem *result; | |
32957 | PyObject * obj0 = 0 ; | |
32958 | PyObject * obj1 = 0 ; | |
32959 | char *kwnames[] = { | |
32960 | (char *) "self",(char *) "item", NULL | |
32961 | }; | |
32962 | ||
32963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32966 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
32967 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32968 | { |
32969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32970 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
32971 | ||
32972 | wxPyEndAllowThreads(__tstate); | |
32973 | if (PyErr_Occurred()) SWIG_fail; | |
32974 | } | |
32975 | { | |
412d302d | 32976 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32977 | } |
32978 | return resultobj; | |
32979 | fail: | |
32980 | return NULL; | |
32981 | } | |
32982 | ||
32983 | ||
c32bde28 | 32984 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32985 | PyObject *resultobj; |
32986 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32987 | PyObject * obj0 = 0 ; | |
32988 | char *kwnames[] = { | |
32989 | (char *) "self", NULL | |
32990 | }; | |
32991 | ||
32992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32995 | { |
32996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32997 | (arg1)->Break(); | |
32998 | ||
32999 | wxPyEndAllowThreads(__tstate); | |
33000 | if (PyErr_Occurred()) SWIG_fail; | |
33001 | } | |
33002 | Py_INCREF(Py_None); resultobj = Py_None; | |
33003 | return resultobj; | |
33004 | fail: | |
33005 | return NULL; | |
33006 | } | |
33007 | ||
33008 | ||
c32bde28 | 33009 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33010 | PyObject *resultobj; |
33011 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33012 | size_t arg2 ; | |
33013 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
33014 | wxMenuItem *result; | |
33015 | PyObject * obj0 = 0 ; | |
33016 | PyObject * obj1 = 0 ; | |
33017 | PyObject * obj2 = 0 ; | |
33018 | char *kwnames[] = { | |
33019 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
33020 | }; | |
33021 | ||
33022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33025 | { | |
33026 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33028 | } | |
33029 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33030 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
33031 | { |
33032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33033 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
33034 | ||
33035 | wxPyEndAllowThreads(__tstate); | |
33036 | if (PyErr_Occurred()) SWIG_fail; | |
33037 | } | |
33038 | { | |
412d302d | 33039 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33040 | } |
33041 | return resultobj; | |
33042 | fail: | |
33043 | return NULL; | |
33044 | } | |
33045 | ||
33046 | ||
c32bde28 | 33047 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33048 | PyObject *resultobj; |
33049 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33050 | size_t arg2 ; | |
33051 | int arg3 ; | |
33052 | wxString *arg4 = 0 ; | |
33053 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
33054 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
093d3ff1 | 33055 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc | 33056 | wxMenuItem *result; |
ae8162c8 RD |
33057 | bool temp4 = false ; |
33058 | bool temp5 = false ; | |
d55e5bfc RD |
33059 | PyObject * obj0 = 0 ; |
33060 | PyObject * obj1 = 0 ; | |
33061 | PyObject * obj2 = 0 ; | |
33062 | PyObject * obj3 = 0 ; | |
33063 | PyObject * obj4 = 0 ; | |
33064 | PyObject * obj5 = 0 ; | |
33065 | char *kwnames[] = { | |
33066 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
33067 | }; | |
33068 | ||
33069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
33070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33072 | { | |
33073 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33074 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33075 | } | |
33076 | { | |
33077 | arg3 = (int)(SWIG_As_int(obj2)); | |
33078 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33079 | } | |
d55e5bfc RD |
33080 | { |
33081 | arg4 = wxString_in_helper(obj3); | |
33082 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33083 | temp4 = true; |
d55e5bfc RD |
33084 | } |
33085 | if (obj4) { | |
33086 | { | |
33087 | arg5 = wxString_in_helper(obj4); | |
33088 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 33089 | temp5 = true; |
d55e5bfc RD |
33090 | } |
33091 | } | |
33092 | if (obj5) { | |
093d3ff1 RD |
33093 | { |
33094 | arg6 = (wxItemKind)(SWIG_As_int(obj5)); | |
33095 | if (SWIG_arg_fail(6)) SWIG_fail; | |
33096 | } | |
d55e5bfc RD |
33097 | } |
33098 | { | |
33099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33100 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
33101 | ||
33102 | wxPyEndAllowThreads(__tstate); | |
33103 | if (PyErr_Occurred()) SWIG_fail; | |
33104 | } | |
33105 | { | |
412d302d | 33106 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33107 | } |
33108 | { | |
33109 | if (temp4) | |
33110 | delete arg4; | |
33111 | } | |
33112 | { | |
33113 | if (temp5) | |
33114 | delete arg5; | |
33115 | } | |
33116 | return resultobj; | |
33117 | fail: | |
33118 | { | |
33119 | if (temp4) | |
33120 | delete arg4; | |
33121 | } | |
33122 | { | |
33123 | if (temp5) | |
33124 | delete arg5; | |
33125 | } | |
33126 | return NULL; | |
33127 | } | |
33128 | ||
33129 | ||
c32bde28 | 33130 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33131 | PyObject *resultobj; |
33132 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33133 | size_t arg2 ; | |
33134 | wxMenuItem *result; | |
33135 | PyObject * obj0 = 0 ; | |
33136 | PyObject * obj1 = 0 ; | |
33137 | char *kwnames[] = { | |
33138 | (char *) "self",(char *) "pos", NULL | |
33139 | }; | |
33140 | ||
33141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33144 | { | |
33145 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33146 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33147 | } | |
d55e5bfc RD |
33148 | { |
33149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33150 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
33151 | ||
33152 | wxPyEndAllowThreads(__tstate); | |
33153 | if (PyErr_Occurred()) SWIG_fail; | |
33154 | } | |
33155 | { | |
412d302d | 33156 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33157 | } |
33158 | return resultobj; | |
33159 | fail: | |
33160 | return NULL; | |
33161 | } | |
33162 | ||
33163 | ||
c32bde28 | 33164 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33165 | PyObject *resultobj; |
33166 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33167 | size_t arg2 ; | |
33168 | int arg3 ; | |
33169 | wxString *arg4 = 0 ; | |
33170 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
33171 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
33172 | wxMenuItem *result; | |
ae8162c8 RD |
33173 | bool temp4 = false ; |
33174 | bool temp5 = false ; | |
d55e5bfc RD |
33175 | PyObject * obj0 = 0 ; |
33176 | PyObject * obj1 = 0 ; | |
33177 | PyObject * obj2 = 0 ; | |
33178 | PyObject * obj3 = 0 ; | |
33179 | PyObject * obj4 = 0 ; | |
33180 | char *kwnames[] = { | |
33181 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
33182 | }; | |
33183 | ||
33184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
33185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33187 | { | |
33188 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33189 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33190 | } | |
33191 | { | |
33192 | arg3 = (int)(SWIG_As_int(obj2)); | |
33193 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33194 | } | |
d55e5bfc RD |
33195 | { |
33196 | arg4 = wxString_in_helper(obj3); | |
33197 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33198 | temp4 = true; |
d55e5bfc RD |
33199 | } |
33200 | if (obj4) { | |
33201 | { | |
33202 | arg5 = wxString_in_helper(obj4); | |
33203 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 33204 | temp5 = true; |
d55e5bfc RD |
33205 | } |
33206 | } | |
33207 | { | |
33208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33209 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
33210 | ||
33211 | wxPyEndAllowThreads(__tstate); | |
33212 | if (PyErr_Occurred()) SWIG_fail; | |
33213 | } | |
33214 | { | |
412d302d | 33215 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33216 | } |
33217 | { | |
33218 | if (temp4) | |
33219 | delete arg4; | |
33220 | } | |
33221 | { | |
33222 | if (temp5) | |
33223 | delete arg5; | |
33224 | } | |
33225 | return resultobj; | |
33226 | fail: | |
33227 | { | |
33228 | if (temp4) | |
33229 | delete arg4; | |
33230 | } | |
33231 | { | |
33232 | if (temp5) | |
33233 | delete arg5; | |
33234 | } | |
33235 | return NULL; | |
33236 | } | |
33237 | ||
33238 | ||
c32bde28 | 33239 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33240 | PyObject *resultobj; |
33241 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33242 | size_t arg2 ; | |
33243 | int arg3 ; | |
33244 | wxString *arg4 = 0 ; | |
33245 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
33246 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
33247 | wxMenuItem *result; | |
ae8162c8 RD |
33248 | bool temp4 = false ; |
33249 | bool temp5 = false ; | |
d55e5bfc RD |
33250 | PyObject * obj0 = 0 ; |
33251 | PyObject * obj1 = 0 ; | |
33252 | PyObject * obj2 = 0 ; | |
33253 | PyObject * obj3 = 0 ; | |
33254 | PyObject * obj4 = 0 ; | |
33255 | char *kwnames[] = { | |
33256 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
33257 | }; | |
33258 | ||
33259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
33260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33262 | { | |
33263 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33264 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33265 | } | |
33266 | { | |
33267 | arg3 = (int)(SWIG_As_int(obj2)); | |
33268 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33269 | } | |
d55e5bfc RD |
33270 | { |
33271 | arg4 = wxString_in_helper(obj3); | |
33272 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33273 | temp4 = true; |
d55e5bfc RD |
33274 | } |
33275 | if (obj4) { | |
33276 | { | |
33277 | arg5 = wxString_in_helper(obj4); | |
33278 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 33279 | temp5 = true; |
d55e5bfc RD |
33280 | } |
33281 | } | |
33282 | { | |
33283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33284 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
33285 | ||
33286 | wxPyEndAllowThreads(__tstate); | |
33287 | if (PyErr_Occurred()) SWIG_fail; | |
33288 | } | |
33289 | { | |
412d302d | 33290 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33291 | } |
33292 | { | |
33293 | if (temp4) | |
33294 | delete arg4; | |
33295 | } | |
33296 | { | |
33297 | if (temp5) | |
33298 | delete arg5; | |
33299 | } | |
33300 | return resultobj; | |
33301 | fail: | |
33302 | { | |
33303 | if (temp4) | |
33304 | delete arg4; | |
33305 | } | |
33306 | { | |
33307 | if (temp5) | |
33308 | delete arg5; | |
33309 | } | |
33310 | return NULL; | |
33311 | } | |
33312 | ||
33313 | ||
c32bde28 | 33314 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33315 | PyObject *resultobj; |
33316 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33317 | size_t arg2 ; | |
33318 | int arg3 ; | |
33319 | wxString *arg4 = 0 ; | |
33320 | wxMenu *arg5 = (wxMenu *) 0 ; | |
33321 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
33322 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
33323 | wxMenuItem *result; | |
ae8162c8 RD |
33324 | bool temp4 = false ; |
33325 | bool temp6 = false ; | |
d55e5bfc RD |
33326 | PyObject * obj0 = 0 ; |
33327 | PyObject * obj1 = 0 ; | |
33328 | PyObject * obj2 = 0 ; | |
33329 | PyObject * obj3 = 0 ; | |
33330 | PyObject * obj4 = 0 ; | |
33331 | PyObject * obj5 = 0 ; | |
33332 | char *kwnames[] = { | |
33333 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
33334 | }; | |
33335 | ||
33336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
33337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33339 | { | |
33340 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33341 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33342 | } | |
33343 | { | |
33344 | arg3 = (int)(SWIG_As_int(obj2)); | |
33345 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33346 | } | |
d55e5bfc RD |
33347 | { |
33348 | arg4 = wxString_in_helper(obj3); | |
33349 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33350 | temp4 = true; |
d55e5bfc | 33351 | } |
093d3ff1 RD |
33352 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33353 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
33354 | if (obj5) { |
33355 | { | |
33356 | arg6 = wxString_in_helper(obj5); | |
33357 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 33358 | temp6 = true; |
d55e5bfc RD |
33359 | } |
33360 | } | |
33361 | { | |
33362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33363 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
33364 | ||
33365 | wxPyEndAllowThreads(__tstate); | |
33366 | if (PyErr_Occurred()) SWIG_fail; | |
33367 | } | |
33368 | { | |
412d302d | 33369 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33370 | } |
33371 | { | |
33372 | if (temp4) | |
33373 | delete arg4; | |
33374 | } | |
33375 | { | |
33376 | if (temp6) | |
33377 | delete arg6; | |
33378 | } | |
33379 | return resultobj; | |
33380 | fail: | |
33381 | { | |
33382 | if (temp4) | |
33383 | delete arg4; | |
33384 | } | |
33385 | { | |
33386 | if (temp6) | |
33387 | delete arg6; | |
33388 | } | |
33389 | return NULL; | |
33390 | } | |
33391 | ||
33392 | ||
c32bde28 | 33393 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33394 | PyObject *resultobj; |
33395 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33396 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
33397 | wxMenuItem *result; | |
33398 | PyObject * obj0 = 0 ; | |
33399 | PyObject * obj1 = 0 ; | |
33400 | char *kwnames[] = { | |
33401 | (char *) "self",(char *) "item", NULL | |
33402 | }; | |
33403 | ||
33404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33405 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33406 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33407 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33408 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33409 | { |
33410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33411 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
33412 | ||
33413 | wxPyEndAllowThreads(__tstate); | |
33414 | if (PyErr_Occurred()) SWIG_fail; | |
33415 | } | |
33416 | { | |
412d302d | 33417 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33418 | } |
33419 | return resultobj; | |
33420 | fail: | |
33421 | return NULL; | |
33422 | } | |
33423 | ||
33424 | ||
c32bde28 | 33425 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33426 | PyObject *resultobj; |
33427 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33428 | int arg2 ; | |
33429 | wxString *arg3 = 0 ; | |
33430 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
33431 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 33432 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc | 33433 | wxMenuItem *result; |
ae8162c8 RD |
33434 | bool temp3 = false ; |
33435 | bool temp4 = false ; | |
d55e5bfc RD |
33436 | PyObject * obj0 = 0 ; |
33437 | PyObject * obj1 = 0 ; | |
33438 | PyObject * obj2 = 0 ; | |
33439 | PyObject * obj3 = 0 ; | |
33440 | PyObject * obj4 = 0 ; | |
33441 | char *kwnames[] = { | |
33442 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
33443 | }; | |
33444 | ||
33445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
33446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33448 | { | |
33449 | arg2 = (int)(SWIG_As_int(obj1)); | |
33450 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33451 | } | |
d55e5bfc RD |
33452 | { |
33453 | arg3 = wxString_in_helper(obj2); | |
33454 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33455 | temp3 = true; |
d55e5bfc RD |
33456 | } |
33457 | if (obj3) { | |
33458 | { | |
33459 | arg4 = wxString_in_helper(obj3); | |
33460 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33461 | temp4 = true; |
d55e5bfc RD |
33462 | } |
33463 | } | |
33464 | if (obj4) { | |
093d3ff1 RD |
33465 | { |
33466 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
33467 | if (SWIG_arg_fail(5)) SWIG_fail; | |
33468 | } | |
d55e5bfc RD |
33469 | } |
33470 | { | |
33471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33472 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
33473 | ||
33474 | wxPyEndAllowThreads(__tstate); | |
33475 | if (PyErr_Occurred()) SWIG_fail; | |
33476 | } | |
33477 | { | |
412d302d | 33478 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33479 | } |
33480 | { | |
33481 | if (temp3) | |
33482 | delete arg3; | |
33483 | } | |
33484 | { | |
33485 | if (temp4) | |
33486 | delete arg4; | |
33487 | } | |
33488 | return resultobj; | |
33489 | fail: | |
33490 | { | |
33491 | if (temp3) | |
33492 | delete arg3; | |
33493 | } | |
33494 | { | |
33495 | if (temp4) | |
33496 | delete arg4; | |
33497 | } | |
33498 | return NULL; | |
33499 | } | |
33500 | ||
33501 | ||
c32bde28 | 33502 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33503 | PyObject *resultobj; |
33504 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33505 | wxMenuItem *result; | |
33506 | PyObject * obj0 = 0 ; | |
33507 | char *kwnames[] = { | |
33508 | (char *) "self", NULL | |
33509 | }; | |
33510 | ||
33511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33514 | { |
33515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33516 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
33517 | ||
33518 | wxPyEndAllowThreads(__tstate); | |
33519 | if (PyErr_Occurred()) SWIG_fail; | |
33520 | } | |
33521 | { | |
412d302d | 33522 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33523 | } |
33524 | return resultobj; | |
33525 | fail: | |
33526 | return NULL; | |
33527 | } | |
33528 | ||
33529 | ||
c32bde28 | 33530 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33531 | PyObject *resultobj; |
33532 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33533 | int arg2 ; | |
33534 | wxString *arg3 = 0 ; | |
33535 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
33536 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
33537 | wxMenuItem *result; | |
ae8162c8 RD |
33538 | bool temp3 = false ; |
33539 | bool temp4 = false ; | |
d55e5bfc RD |
33540 | PyObject * obj0 = 0 ; |
33541 | PyObject * obj1 = 0 ; | |
33542 | PyObject * obj2 = 0 ; | |
33543 | PyObject * obj3 = 0 ; | |
33544 | char *kwnames[] = { | |
33545 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
33546 | }; | |
33547 | ||
33548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
33549 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33550 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33551 | { | |
33552 | arg2 = (int)(SWIG_As_int(obj1)); | |
33553 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33554 | } | |
d55e5bfc RD |
33555 | { |
33556 | arg3 = wxString_in_helper(obj2); | |
33557 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33558 | temp3 = true; |
d55e5bfc RD |
33559 | } |
33560 | if (obj3) { | |
33561 | { | |
33562 | arg4 = wxString_in_helper(obj3); | |
33563 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33564 | temp4 = true; |
d55e5bfc RD |
33565 | } |
33566 | } | |
33567 | { | |
33568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33569 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
33570 | ||
33571 | wxPyEndAllowThreads(__tstate); | |
33572 | if (PyErr_Occurred()) SWIG_fail; | |
33573 | } | |
33574 | { | |
412d302d | 33575 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33576 | } |
33577 | { | |
33578 | if (temp3) | |
33579 | delete arg3; | |
33580 | } | |
33581 | { | |
33582 | if (temp4) | |
33583 | delete arg4; | |
33584 | } | |
33585 | return resultobj; | |
33586 | fail: | |
33587 | { | |
33588 | if (temp3) | |
33589 | delete arg3; | |
33590 | } | |
33591 | { | |
33592 | if (temp4) | |
33593 | delete arg4; | |
33594 | } | |
33595 | return NULL; | |
33596 | } | |
33597 | ||
33598 | ||
c32bde28 | 33599 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33600 | PyObject *resultobj; |
33601 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33602 | int arg2 ; | |
33603 | wxString *arg3 = 0 ; | |
33604 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
33605 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
33606 | wxMenuItem *result; | |
ae8162c8 RD |
33607 | bool temp3 = false ; |
33608 | bool temp4 = false ; | |
d55e5bfc RD |
33609 | PyObject * obj0 = 0 ; |
33610 | PyObject * obj1 = 0 ; | |
33611 | PyObject * obj2 = 0 ; | |
33612 | PyObject * obj3 = 0 ; | |
33613 | char *kwnames[] = { | |
33614 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
33615 | }; | |
33616 | ||
33617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
33618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33620 | { | |
33621 | arg2 = (int)(SWIG_As_int(obj1)); | |
33622 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33623 | } | |
d55e5bfc RD |
33624 | { |
33625 | arg3 = wxString_in_helper(obj2); | |
33626 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33627 | temp3 = true; |
d55e5bfc RD |
33628 | } |
33629 | if (obj3) { | |
33630 | { | |
33631 | arg4 = wxString_in_helper(obj3); | |
33632 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33633 | temp4 = true; |
d55e5bfc RD |
33634 | } |
33635 | } | |
33636 | { | |
33637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33638 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
33639 | ||
33640 | wxPyEndAllowThreads(__tstate); | |
33641 | if (PyErr_Occurred()) SWIG_fail; | |
33642 | } | |
33643 | { | |
412d302d | 33644 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33645 | } |
33646 | { | |
33647 | if (temp3) | |
33648 | delete arg3; | |
33649 | } | |
33650 | { | |
33651 | if (temp4) | |
33652 | delete arg4; | |
33653 | } | |
33654 | return resultobj; | |
33655 | fail: | |
33656 | { | |
33657 | if (temp3) | |
33658 | delete arg3; | |
33659 | } | |
33660 | { | |
33661 | if (temp4) | |
33662 | delete arg4; | |
33663 | } | |
33664 | return NULL; | |
33665 | } | |
33666 | ||
33667 | ||
c32bde28 | 33668 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33669 | PyObject *resultobj; |
33670 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33671 | int arg2 ; | |
33672 | wxString *arg3 = 0 ; | |
33673 | wxMenu *arg4 = (wxMenu *) 0 ; | |
33674 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
33675 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
33676 | wxMenuItem *result; | |
ae8162c8 RD |
33677 | bool temp3 = false ; |
33678 | bool temp5 = false ; | |
d55e5bfc RD |
33679 | PyObject * obj0 = 0 ; |
33680 | PyObject * obj1 = 0 ; | |
33681 | PyObject * obj2 = 0 ; | |
33682 | PyObject * obj3 = 0 ; | |
33683 | PyObject * obj4 = 0 ; | |
33684 | char *kwnames[] = { | |
33685 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
33686 | }; | |
33687 | ||
33688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
33689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33691 | { | |
33692 | arg2 = (int)(SWIG_As_int(obj1)); | |
33693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33694 | } | |
d55e5bfc RD |
33695 | { |
33696 | arg3 = wxString_in_helper(obj2); | |
33697 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33698 | temp3 = true; |
d55e5bfc | 33699 | } |
093d3ff1 RD |
33700 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33701 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
33702 | if (obj4) { |
33703 | { | |
33704 | arg5 = wxString_in_helper(obj4); | |
33705 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 33706 | temp5 = true; |
d55e5bfc RD |
33707 | } |
33708 | } | |
33709 | { | |
33710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33711 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
33712 | ||
33713 | wxPyEndAllowThreads(__tstate); | |
33714 | if (PyErr_Occurred()) SWIG_fail; | |
33715 | } | |
33716 | { | |
412d302d | 33717 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33718 | } |
33719 | { | |
33720 | if (temp3) | |
33721 | delete arg3; | |
33722 | } | |
33723 | { | |
33724 | if (temp5) | |
33725 | delete arg5; | |
33726 | } | |
33727 | return resultobj; | |
33728 | fail: | |
33729 | { | |
33730 | if (temp3) | |
33731 | delete arg3; | |
33732 | } | |
33733 | { | |
33734 | if (temp5) | |
33735 | delete arg5; | |
33736 | } | |
33737 | return NULL; | |
33738 | } | |
33739 | ||
33740 | ||
c32bde28 | 33741 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33742 | PyObject *resultobj; |
33743 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33744 | int arg2 ; | |
33745 | wxMenuItem *result; | |
33746 | PyObject * obj0 = 0 ; | |
33747 | PyObject * obj1 = 0 ; | |
33748 | char *kwnames[] = { | |
33749 | (char *) "self",(char *) "id", NULL | |
33750 | }; | |
33751 | ||
33752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33755 | { | |
33756 | arg2 = (int)(SWIG_As_int(obj1)); | |
33757 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33758 | } | |
d55e5bfc RD |
33759 | { |
33760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33761 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
33762 | ||
33763 | wxPyEndAllowThreads(__tstate); | |
33764 | if (PyErr_Occurred()) SWIG_fail; | |
33765 | } | |
33766 | { | |
412d302d | 33767 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33768 | } |
33769 | return resultobj; | |
33770 | fail: | |
33771 | return NULL; | |
33772 | } | |
33773 | ||
33774 | ||
c32bde28 | 33775 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33776 | PyObject *resultobj; |
33777 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33778 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
33779 | wxMenuItem *result; | |
33780 | PyObject * obj0 = 0 ; | |
33781 | PyObject * obj1 = 0 ; | |
33782 | char *kwnames[] = { | |
33783 | (char *) "self",(char *) "item", NULL | |
33784 | }; | |
33785 | ||
33786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33789 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33790 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33791 | { |
33792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33793 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
33794 | ||
33795 | wxPyEndAllowThreads(__tstate); | |
33796 | if (PyErr_Occurred()) SWIG_fail; | |
33797 | } | |
33798 | { | |
412d302d | 33799 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33800 | } |
33801 | return resultobj; | |
33802 | fail: | |
33803 | return NULL; | |
33804 | } | |
33805 | ||
33806 | ||
c32bde28 | 33807 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33808 | PyObject *resultobj; |
33809 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33810 | int arg2 ; | |
33811 | bool result; | |
33812 | PyObject * obj0 = 0 ; | |
33813 | PyObject * obj1 = 0 ; | |
33814 | char *kwnames[] = { | |
33815 | (char *) "self",(char *) "id", NULL | |
33816 | }; | |
33817 | ||
33818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33821 | { | |
33822 | arg2 = (int)(SWIG_As_int(obj1)); | |
33823 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33824 | } | |
d55e5bfc RD |
33825 | { |
33826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33827 | result = (bool)(arg1)->Delete(arg2); | |
33828 | ||
33829 | wxPyEndAllowThreads(__tstate); | |
33830 | if (PyErr_Occurred()) SWIG_fail; | |
33831 | } | |
33832 | { | |
33833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33834 | } | |
33835 | return resultobj; | |
33836 | fail: | |
33837 | return NULL; | |
33838 | } | |
33839 | ||
33840 | ||
c32bde28 | 33841 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33842 | PyObject *resultobj; |
33843 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33844 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
33845 | bool result; | |
33846 | PyObject * obj0 = 0 ; | |
33847 | PyObject * obj1 = 0 ; | |
33848 | char *kwnames[] = { | |
33849 | (char *) "self",(char *) "item", NULL | |
33850 | }; | |
33851 | ||
33852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33855 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33856 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33857 | { |
33858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33859 | result = (bool)(arg1)->Delete(arg2); | |
33860 | ||
33861 | wxPyEndAllowThreads(__tstate); | |
33862 | if (PyErr_Occurred()) SWIG_fail; | |
33863 | } | |
33864 | { | |
33865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33866 | } | |
33867 | return resultobj; | |
33868 | fail: | |
33869 | return NULL; | |
33870 | } | |
33871 | ||
33872 | ||
c32bde28 | 33873 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33874 | PyObject *resultobj; |
33875 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33876 | PyObject * obj0 = 0 ; | |
33877 | char *kwnames[] = { | |
33878 | (char *) "self", NULL | |
33879 | }; | |
33880 | ||
33881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33884 | { |
33885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33886 | wxMenu_Destroy(arg1); | |
33887 | ||
33888 | wxPyEndAllowThreads(__tstate); | |
33889 | if (PyErr_Occurred()) SWIG_fail; | |
33890 | } | |
33891 | Py_INCREF(Py_None); resultobj = Py_None; | |
33892 | return resultobj; | |
33893 | fail: | |
33894 | return NULL; | |
33895 | } | |
33896 | ||
33897 | ||
c32bde28 | 33898 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33899 | PyObject *resultobj; |
33900 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33901 | int arg2 ; | |
33902 | bool result; | |
33903 | PyObject * obj0 = 0 ; | |
33904 | PyObject * obj1 = 0 ; | |
33905 | char *kwnames[] = { | |
33906 | (char *) "self",(char *) "id", NULL | |
33907 | }; | |
33908 | ||
33909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33912 | { | |
33913 | arg2 = (int)(SWIG_As_int(obj1)); | |
33914 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33915 | } | |
d55e5bfc RD |
33916 | { |
33917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33918 | result = (bool)(arg1)->Destroy(arg2); | |
33919 | ||
33920 | wxPyEndAllowThreads(__tstate); | |
33921 | if (PyErr_Occurred()) SWIG_fail; | |
33922 | } | |
33923 | { | |
33924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33925 | } | |
33926 | return resultobj; | |
33927 | fail: | |
33928 | return NULL; | |
33929 | } | |
33930 | ||
33931 | ||
c32bde28 | 33932 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33933 | PyObject *resultobj; |
33934 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33935 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
33936 | bool result; | |
33937 | PyObject * obj0 = 0 ; | |
33938 | PyObject * obj1 = 0 ; | |
33939 | char *kwnames[] = { | |
33940 | (char *) "self",(char *) "item", NULL | |
33941 | }; | |
33942 | ||
33943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33946 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33947 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33948 | { |
33949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33950 | result = (bool)(arg1)->Destroy(arg2); | |
33951 | ||
33952 | wxPyEndAllowThreads(__tstate); | |
33953 | if (PyErr_Occurred()) SWIG_fail; | |
33954 | } | |
33955 | { | |
33956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33957 | } | |
33958 | return resultobj; | |
33959 | fail: | |
33960 | return NULL; | |
33961 | } | |
33962 | ||
33963 | ||
c32bde28 | 33964 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33965 | PyObject *resultobj; |
33966 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33967 | size_t result; | |
33968 | PyObject * obj0 = 0 ; | |
33969 | char *kwnames[] = { | |
33970 | (char *) "self", NULL | |
33971 | }; | |
33972 | ||
33973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33974 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33975 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33976 | { |
33977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33978 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
33979 | ||
33980 | wxPyEndAllowThreads(__tstate); | |
33981 | if (PyErr_Occurred()) SWIG_fail; | |
33982 | } | |
093d3ff1 RD |
33983 | { |
33984 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
33985 | } | |
d55e5bfc RD |
33986 | return resultobj; |
33987 | fail: | |
33988 | return NULL; | |
33989 | } | |
33990 | ||
33991 | ||
c32bde28 | 33992 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33993 | PyObject *resultobj; |
33994 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33995 | PyObject *result; | |
33996 | PyObject * obj0 = 0 ; | |
33997 | char *kwnames[] = { | |
33998 | (char *) "self", NULL | |
33999 | }; | |
34000 | ||
34001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34002 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34004 | { |
34005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34006 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
34007 | ||
34008 | wxPyEndAllowThreads(__tstate); | |
34009 | if (PyErr_Occurred()) SWIG_fail; | |
34010 | } | |
34011 | resultobj = result; | |
34012 | return resultobj; | |
34013 | fail: | |
34014 | return NULL; | |
34015 | } | |
34016 | ||
34017 | ||
c32bde28 | 34018 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34019 | PyObject *resultobj; |
34020 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34021 | wxString *arg2 = 0 ; | |
34022 | int result; | |
ae8162c8 | 34023 | bool temp2 = false ; |
d55e5bfc RD |
34024 | PyObject * obj0 = 0 ; |
34025 | PyObject * obj1 = 0 ; | |
34026 | char *kwnames[] = { | |
34027 | (char *) "self",(char *) "item", NULL | |
34028 | }; | |
34029 | ||
34030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34033 | { |
34034 | arg2 = wxString_in_helper(obj1); | |
34035 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34036 | temp2 = true; |
d55e5bfc RD |
34037 | } |
34038 | { | |
34039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34040 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
34041 | ||
34042 | wxPyEndAllowThreads(__tstate); | |
34043 | if (PyErr_Occurred()) SWIG_fail; | |
34044 | } | |
093d3ff1 RD |
34045 | { |
34046 | resultobj = SWIG_From_int((int)(result)); | |
34047 | } | |
d55e5bfc RD |
34048 | { |
34049 | if (temp2) | |
34050 | delete arg2; | |
34051 | } | |
34052 | return resultobj; | |
34053 | fail: | |
34054 | { | |
34055 | if (temp2) | |
34056 | delete arg2; | |
34057 | } | |
34058 | return NULL; | |
34059 | } | |
34060 | ||
34061 | ||
c32bde28 | 34062 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34063 | PyObject *resultobj; |
34064 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34065 | int arg2 ; | |
34066 | wxMenuItem *result; | |
34067 | PyObject * obj0 = 0 ; | |
34068 | PyObject * obj1 = 0 ; | |
34069 | char *kwnames[] = { | |
34070 | (char *) "self",(char *) "id", NULL | |
34071 | }; | |
34072 | ||
34073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34076 | { | |
34077 | arg2 = (int)(SWIG_As_int(obj1)); | |
34078 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34079 | } | |
d55e5bfc RD |
34080 | { |
34081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34082 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
34083 | ||
34084 | wxPyEndAllowThreads(__tstate); | |
34085 | if (PyErr_Occurred()) SWIG_fail; | |
34086 | } | |
34087 | { | |
412d302d | 34088 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34089 | } |
34090 | return resultobj; | |
34091 | fail: | |
34092 | return NULL; | |
34093 | } | |
34094 | ||
34095 | ||
c32bde28 | 34096 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34097 | PyObject *resultobj; |
34098 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34099 | size_t arg2 ; | |
34100 | wxMenuItem *result; | |
34101 | PyObject * obj0 = 0 ; | |
34102 | PyObject * obj1 = 0 ; | |
34103 | char *kwnames[] = { | |
34104 | (char *) "self",(char *) "position", NULL | |
34105 | }; | |
34106 | ||
34107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34110 | { | |
34111 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34112 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34113 | } | |
d55e5bfc RD |
34114 | { |
34115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34116 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
34117 | ||
34118 | wxPyEndAllowThreads(__tstate); | |
34119 | if (PyErr_Occurred()) SWIG_fail; | |
34120 | } | |
34121 | { | |
412d302d | 34122 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34123 | } |
34124 | return resultobj; | |
34125 | fail: | |
34126 | return NULL; | |
34127 | } | |
34128 | ||
34129 | ||
c32bde28 | 34130 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34131 | PyObject *resultobj; |
34132 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34133 | int arg2 ; | |
34134 | bool arg3 ; | |
34135 | PyObject * obj0 = 0 ; | |
34136 | PyObject * obj1 = 0 ; | |
34137 | PyObject * obj2 = 0 ; | |
34138 | char *kwnames[] = { | |
34139 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
34140 | }; | |
34141 | ||
34142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34145 | { | |
34146 | arg2 = (int)(SWIG_As_int(obj1)); | |
34147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34148 | } | |
34149 | { | |
34150 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
34151 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34152 | } | |
d55e5bfc RD |
34153 | { |
34154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34155 | (arg1)->Enable(arg2,arg3); | |
34156 | ||
34157 | wxPyEndAllowThreads(__tstate); | |
34158 | if (PyErr_Occurred()) SWIG_fail; | |
34159 | } | |
34160 | Py_INCREF(Py_None); resultobj = Py_None; | |
34161 | return resultobj; | |
34162 | fail: | |
34163 | return NULL; | |
34164 | } | |
34165 | ||
34166 | ||
c32bde28 | 34167 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34168 | PyObject *resultobj; |
34169 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34170 | int arg2 ; | |
34171 | bool result; | |
34172 | PyObject * obj0 = 0 ; | |
34173 | PyObject * obj1 = 0 ; | |
34174 | char *kwnames[] = { | |
34175 | (char *) "self",(char *) "id", NULL | |
34176 | }; | |
34177 | ||
34178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34181 | { | |
34182 | arg2 = (int)(SWIG_As_int(obj1)); | |
34183 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34184 | } | |
d55e5bfc RD |
34185 | { |
34186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34187 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
34188 | ||
34189 | wxPyEndAllowThreads(__tstate); | |
34190 | if (PyErr_Occurred()) SWIG_fail; | |
34191 | } | |
34192 | { | |
34193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34194 | } | |
34195 | return resultobj; | |
34196 | fail: | |
34197 | return NULL; | |
34198 | } | |
34199 | ||
34200 | ||
c32bde28 | 34201 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34202 | PyObject *resultobj; |
34203 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34204 | int arg2 ; | |
34205 | bool arg3 ; | |
34206 | PyObject * obj0 = 0 ; | |
34207 | PyObject * obj1 = 0 ; | |
34208 | PyObject * obj2 = 0 ; | |
34209 | char *kwnames[] = { | |
34210 | (char *) "self",(char *) "id",(char *) "check", NULL | |
34211 | }; | |
34212 | ||
34213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34216 | { | |
34217 | arg2 = (int)(SWIG_As_int(obj1)); | |
34218 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34219 | } | |
34220 | { | |
34221 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
34222 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34223 | } | |
d55e5bfc RD |
34224 | { |
34225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34226 | (arg1)->Check(arg2,arg3); | |
34227 | ||
34228 | wxPyEndAllowThreads(__tstate); | |
34229 | if (PyErr_Occurred()) SWIG_fail; | |
34230 | } | |
34231 | Py_INCREF(Py_None); resultobj = Py_None; | |
34232 | return resultobj; | |
34233 | fail: | |
34234 | return NULL; | |
34235 | } | |
34236 | ||
34237 | ||
c32bde28 | 34238 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34239 | PyObject *resultobj; |
34240 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34241 | int arg2 ; | |
34242 | bool result; | |
34243 | PyObject * obj0 = 0 ; | |
34244 | PyObject * obj1 = 0 ; | |
34245 | char *kwnames[] = { | |
34246 | (char *) "self",(char *) "id", NULL | |
34247 | }; | |
34248 | ||
34249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34252 | { | |
34253 | arg2 = (int)(SWIG_As_int(obj1)); | |
34254 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34255 | } | |
d55e5bfc RD |
34256 | { |
34257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34258 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
34259 | ||
34260 | wxPyEndAllowThreads(__tstate); | |
34261 | if (PyErr_Occurred()) SWIG_fail; | |
34262 | } | |
34263 | { | |
34264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34265 | } | |
34266 | return resultobj; | |
34267 | fail: | |
34268 | return NULL; | |
34269 | } | |
34270 | ||
34271 | ||
c32bde28 | 34272 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34273 | PyObject *resultobj; |
34274 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34275 | int arg2 ; | |
34276 | wxString *arg3 = 0 ; | |
ae8162c8 | 34277 | bool temp3 = false ; |
d55e5bfc RD |
34278 | PyObject * obj0 = 0 ; |
34279 | PyObject * obj1 = 0 ; | |
34280 | PyObject * obj2 = 0 ; | |
34281 | char *kwnames[] = { | |
34282 | (char *) "self",(char *) "id",(char *) "label", NULL | |
34283 | }; | |
34284 | ||
34285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34288 | { | |
34289 | arg2 = (int)(SWIG_As_int(obj1)); | |
34290 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34291 | } | |
d55e5bfc RD |
34292 | { |
34293 | arg3 = wxString_in_helper(obj2); | |
34294 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34295 | temp3 = true; |
d55e5bfc RD |
34296 | } |
34297 | { | |
34298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34299 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
34300 | ||
34301 | wxPyEndAllowThreads(__tstate); | |
34302 | if (PyErr_Occurred()) SWIG_fail; | |
34303 | } | |
34304 | Py_INCREF(Py_None); resultobj = Py_None; | |
34305 | { | |
34306 | if (temp3) | |
34307 | delete arg3; | |
34308 | } | |
34309 | return resultobj; | |
34310 | fail: | |
34311 | { | |
34312 | if (temp3) | |
34313 | delete arg3; | |
34314 | } | |
34315 | return NULL; | |
34316 | } | |
34317 | ||
34318 | ||
c32bde28 | 34319 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34320 | PyObject *resultobj; |
34321 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34322 | int arg2 ; | |
34323 | wxString result; | |
34324 | PyObject * obj0 = 0 ; | |
34325 | PyObject * obj1 = 0 ; | |
34326 | char *kwnames[] = { | |
34327 | (char *) "self",(char *) "id", NULL | |
34328 | }; | |
34329 | ||
34330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34333 | { | |
34334 | arg2 = (int)(SWIG_As_int(obj1)); | |
34335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34336 | } | |
d55e5bfc RD |
34337 | { |
34338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34339 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
34340 | ||
34341 | wxPyEndAllowThreads(__tstate); | |
34342 | if (PyErr_Occurred()) SWIG_fail; | |
34343 | } | |
34344 | { | |
34345 | #if wxUSE_UNICODE | |
34346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34347 | #else | |
34348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34349 | #endif | |
34350 | } | |
34351 | return resultobj; | |
34352 | fail: | |
34353 | return NULL; | |
34354 | } | |
34355 | ||
34356 | ||
c32bde28 | 34357 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34358 | PyObject *resultobj; |
34359 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34360 | int arg2 ; | |
34361 | wxString *arg3 = 0 ; | |
ae8162c8 | 34362 | bool temp3 = false ; |
d55e5bfc RD |
34363 | PyObject * obj0 = 0 ; |
34364 | PyObject * obj1 = 0 ; | |
34365 | PyObject * obj2 = 0 ; | |
34366 | char *kwnames[] = { | |
34367 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
34368 | }; | |
34369 | ||
34370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34373 | { | |
34374 | arg2 = (int)(SWIG_As_int(obj1)); | |
34375 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34376 | } | |
d55e5bfc RD |
34377 | { |
34378 | arg3 = wxString_in_helper(obj2); | |
34379 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34380 | temp3 = true; |
d55e5bfc RD |
34381 | } |
34382 | { | |
34383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34384 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
34385 | ||
34386 | wxPyEndAllowThreads(__tstate); | |
34387 | if (PyErr_Occurred()) SWIG_fail; | |
34388 | } | |
34389 | Py_INCREF(Py_None); resultobj = Py_None; | |
34390 | { | |
34391 | if (temp3) | |
34392 | delete arg3; | |
34393 | } | |
34394 | return resultobj; | |
34395 | fail: | |
34396 | { | |
34397 | if (temp3) | |
34398 | delete arg3; | |
34399 | } | |
34400 | return NULL; | |
34401 | } | |
34402 | ||
34403 | ||
c32bde28 | 34404 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34405 | PyObject *resultobj; |
34406 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34407 | int arg2 ; | |
34408 | wxString result; | |
34409 | PyObject * obj0 = 0 ; | |
34410 | PyObject * obj1 = 0 ; | |
34411 | char *kwnames[] = { | |
34412 | (char *) "self",(char *) "id", NULL | |
34413 | }; | |
34414 | ||
34415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34418 | { | |
34419 | arg2 = (int)(SWIG_As_int(obj1)); | |
34420 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34421 | } | |
d55e5bfc RD |
34422 | { |
34423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34424 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
34425 | ||
34426 | wxPyEndAllowThreads(__tstate); | |
34427 | if (PyErr_Occurred()) SWIG_fail; | |
34428 | } | |
34429 | { | |
34430 | #if wxUSE_UNICODE | |
34431 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34432 | #else | |
34433 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34434 | #endif | |
34435 | } | |
34436 | return resultobj; | |
34437 | fail: | |
34438 | return NULL; | |
34439 | } | |
34440 | ||
34441 | ||
c32bde28 | 34442 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34443 | PyObject *resultobj; |
34444 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34445 | wxString *arg2 = 0 ; | |
ae8162c8 | 34446 | bool temp2 = false ; |
d55e5bfc RD |
34447 | PyObject * obj0 = 0 ; |
34448 | PyObject * obj1 = 0 ; | |
34449 | char *kwnames[] = { | |
34450 | (char *) "self",(char *) "title", NULL | |
34451 | }; | |
34452 | ||
34453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34456 | { |
34457 | arg2 = wxString_in_helper(obj1); | |
34458 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34459 | temp2 = true; |
d55e5bfc RD |
34460 | } |
34461 | { | |
34462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34463 | (arg1)->SetTitle((wxString const &)*arg2); | |
34464 | ||
34465 | wxPyEndAllowThreads(__tstate); | |
34466 | if (PyErr_Occurred()) SWIG_fail; | |
34467 | } | |
34468 | Py_INCREF(Py_None); resultobj = Py_None; | |
34469 | { | |
34470 | if (temp2) | |
34471 | delete arg2; | |
34472 | } | |
34473 | return resultobj; | |
34474 | fail: | |
34475 | { | |
34476 | if (temp2) | |
34477 | delete arg2; | |
34478 | } | |
34479 | return NULL; | |
34480 | } | |
34481 | ||
34482 | ||
c32bde28 | 34483 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34484 | PyObject *resultobj; |
34485 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34486 | wxString result; | |
34487 | PyObject * obj0 = 0 ; | |
34488 | char *kwnames[] = { | |
34489 | (char *) "self", NULL | |
34490 | }; | |
34491 | ||
34492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34495 | { |
34496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34497 | result = ((wxMenu const *)arg1)->GetTitle(); | |
34498 | ||
34499 | wxPyEndAllowThreads(__tstate); | |
34500 | if (PyErr_Occurred()) SWIG_fail; | |
34501 | } | |
34502 | { | |
34503 | #if wxUSE_UNICODE | |
34504 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34505 | #else | |
34506 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34507 | #endif | |
34508 | } | |
34509 | return resultobj; | |
34510 | fail: | |
34511 | return NULL; | |
34512 | } | |
34513 | ||
34514 | ||
c32bde28 | 34515 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34516 | PyObject *resultobj; |
34517 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34518 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
34519 | PyObject * obj0 = 0 ; | |
34520 | PyObject * obj1 = 0 ; | |
34521 | char *kwnames[] = { | |
34522 | (char *) "self",(char *) "handler", NULL | |
34523 | }; | |
34524 | ||
34525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34528 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
34529 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34530 | { |
34531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34532 | (arg1)->SetEventHandler(arg2); | |
34533 | ||
34534 | wxPyEndAllowThreads(__tstate); | |
34535 | if (PyErr_Occurred()) SWIG_fail; | |
34536 | } | |
34537 | Py_INCREF(Py_None); resultobj = Py_None; | |
34538 | return resultobj; | |
34539 | fail: | |
34540 | return NULL; | |
34541 | } | |
34542 | ||
34543 | ||
c32bde28 | 34544 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34545 | PyObject *resultobj; |
34546 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34547 | wxEvtHandler *result; | |
34548 | PyObject * obj0 = 0 ; | |
34549 | char *kwnames[] = { | |
34550 | (char *) "self", NULL | |
34551 | }; | |
34552 | ||
34553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34556 | { |
34557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34558 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
34559 | ||
34560 | wxPyEndAllowThreads(__tstate); | |
34561 | if (PyErr_Occurred()) SWIG_fail; | |
34562 | } | |
34563 | { | |
412d302d | 34564 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34565 | } |
34566 | return resultobj; | |
34567 | fail: | |
34568 | return NULL; | |
34569 | } | |
34570 | ||
34571 | ||
c32bde28 | 34572 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34573 | PyObject *resultobj; |
34574 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34575 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34576 | PyObject * obj0 = 0 ; | |
34577 | PyObject * obj1 = 0 ; | |
34578 | char *kwnames[] = { | |
34579 | (char *) "self",(char *) "win", NULL | |
34580 | }; | |
34581 | ||
34582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34583 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34584 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34585 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34586 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34587 | { |
34588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34589 | (arg1)->SetInvokingWindow(arg2); | |
34590 | ||
34591 | wxPyEndAllowThreads(__tstate); | |
34592 | if (PyErr_Occurred()) SWIG_fail; | |
34593 | } | |
34594 | Py_INCREF(Py_None); resultobj = Py_None; | |
34595 | return resultobj; | |
34596 | fail: | |
34597 | return NULL; | |
34598 | } | |
34599 | ||
34600 | ||
c32bde28 | 34601 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34602 | PyObject *resultobj; |
34603 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34604 | wxWindow *result; | |
34605 | PyObject * obj0 = 0 ; | |
34606 | char *kwnames[] = { | |
34607 | (char *) "self", NULL | |
34608 | }; | |
34609 | ||
34610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34611 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34612 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34613 | { |
34614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34615 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
34616 | ||
34617 | wxPyEndAllowThreads(__tstate); | |
34618 | if (PyErr_Occurred()) SWIG_fail; | |
34619 | } | |
34620 | { | |
412d302d | 34621 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34622 | } |
34623 | return resultobj; | |
34624 | fail: | |
34625 | return NULL; | |
34626 | } | |
34627 | ||
34628 | ||
c32bde28 | 34629 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34630 | PyObject *resultobj; |
34631 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34632 | long result; | |
34633 | PyObject * obj0 = 0 ; | |
34634 | char *kwnames[] = { | |
34635 | (char *) "self", NULL | |
34636 | }; | |
34637 | ||
34638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34641 | { |
34642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34643 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
34644 | ||
34645 | wxPyEndAllowThreads(__tstate); | |
34646 | if (PyErr_Occurred()) SWIG_fail; | |
34647 | } | |
093d3ff1 RD |
34648 | { |
34649 | resultobj = SWIG_From_long((long)(result)); | |
34650 | } | |
d55e5bfc RD |
34651 | return resultobj; |
34652 | fail: | |
34653 | return NULL; | |
34654 | } | |
34655 | ||
34656 | ||
c32bde28 | 34657 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34658 | PyObject *resultobj; |
34659 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34660 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
34661 | PyObject * obj0 = 0 ; | |
34662 | PyObject * obj1 = 0 ; | |
34663 | char *kwnames[] = { | |
34664 | (char *) "self",(char *) "source", NULL | |
34665 | }; | |
34666 | ||
34667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 34670 | if (obj1) { |
093d3ff1 RD |
34671 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
34672 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34673 | } |
34674 | { | |
34675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34676 | (arg1)->UpdateUI(arg2); | |
34677 | ||
34678 | wxPyEndAllowThreads(__tstate); | |
34679 | if (PyErr_Occurred()) SWIG_fail; | |
34680 | } | |
34681 | Py_INCREF(Py_None); resultobj = Py_None; | |
34682 | return resultobj; | |
34683 | fail: | |
34684 | return NULL; | |
34685 | } | |
34686 | ||
34687 | ||
c32bde28 | 34688 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34689 | PyObject *resultobj; |
34690 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34691 | wxMenuBar *result; | |
34692 | PyObject * obj0 = 0 ; | |
34693 | char *kwnames[] = { | |
34694 | (char *) "self", NULL | |
34695 | }; | |
34696 | ||
34697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34698 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34699 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34700 | { |
34701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34702 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
34703 | ||
34704 | wxPyEndAllowThreads(__tstate); | |
34705 | if (PyErr_Occurred()) SWIG_fail; | |
34706 | } | |
34707 | { | |
412d302d | 34708 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34709 | } |
34710 | return resultobj; | |
34711 | fail: | |
34712 | return NULL; | |
34713 | } | |
34714 | ||
34715 | ||
c32bde28 | 34716 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34717 | PyObject *resultobj; |
34718 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34719 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
34720 | PyObject * obj0 = 0 ; | |
34721 | PyObject * obj1 = 0 ; | |
34722 | char *kwnames[] = { | |
34723 | (char *) "self",(char *) "menubar", NULL | |
34724 | }; | |
34725 | ||
34726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34729 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuBarBase, SWIG_POINTER_EXCEPTION | 0); | |
34730 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34731 | { |
34732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34733 | (arg1)->Attach(arg2); | |
34734 | ||
34735 | wxPyEndAllowThreads(__tstate); | |
34736 | if (PyErr_Occurred()) SWIG_fail; | |
34737 | } | |
34738 | Py_INCREF(Py_None); resultobj = Py_None; | |
34739 | return resultobj; | |
34740 | fail: | |
34741 | return NULL; | |
34742 | } | |
34743 | ||
34744 | ||
c32bde28 | 34745 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34746 | PyObject *resultobj; |
34747 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34748 | PyObject * obj0 = 0 ; | |
34749 | char *kwnames[] = { | |
34750 | (char *) "self", NULL | |
34751 | }; | |
34752 | ||
34753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34756 | { |
34757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34758 | (arg1)->Detach(); | |
34759 | ||
34760 | wxPyEndAllowThreads(__tstate); | |
34761 | if (PyErr_Occurred()) SWIG_fail; | |
34762 | } | |
34763 | Py_INCREF(Py_None); resultobj = Py_None; | |
34764 | return resultobj; | |
34765 | fail: | |
34766 | return NULL; | |
34767 | } | |
34768 | ||
34769 | ||
c32bde28 | 34770 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34771 | PyObject *resultobj; |
34772 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34773 | bool result; | |
34774 | PyObject * obj0 = 0 ; | |
34775 | char *kwnames[] = { | |
34776 | (char *) "self", NULL | |
34777 | }; | |
34778 | ||
34779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34782 | { |
34783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34784 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
34785 | ||
34786 | wxPyEndAllowThreads(__tstate); | |
34787 | if (PyErr_Occurred()) SWIG_fail; | |
34788 | } | |
34789 | { | |
34790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34791 | } | |
34792 | return resultobj; | |
34793 | fail: | |
34794 | return NULL; | |
34795 | } | |
34796 | ||
34797 | ||
c32bde28 | 34798 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34799 | PyObject *resultobj; |
34800 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34801 | wxMenu *arg2 = (wxMenu *) 0 ; | |
34802 | PyObject * obj0 = 0 ; | |
34803 | PyObject * obj1 = 0 ; | |
34804 | char *kwnames[] = { | |
34805 | (char *) "self",(char *) "parent", NULL | |
34806 | }; | |
34807 | ||
34808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34811 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34812 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34813 | { |
34814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34815 | (arg1)->SetParent(arg2); | |
34816 | ||
34817 | wxPyEndAllowThreads(__tstate); | |
34818 | if (PyErr_Occurred()) SWIG_fail; | |
34819 | } | |
34820 | Py_INCREF(Py_None); resultobj = Py_None; | |
34821 | return resultobj; | |
34822 | fail: | |
34823 | return NULL; | |
34824 | } | |
34825 | ||
34826 | ||
c32bde28 | 34827 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34828 | PyObject *resultobj; |
34829 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34830 | wxMenu *result; | |
34831 | PyObject * obj0 = 0 ; | |
34832 | char *kwnames[] = { | |
34833 | (char *) "self", NULL | |
34834 | }; | |
34835 | ||
34836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34837 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34838 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34839 | { |
34840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34841 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
34842 | ||
34843 | wxPyEndAllowThreads(__tstate); | |
34844 | if (PyErr_Occurred()) SWIG_fail; | |
34845 | } | |
34846 | { | |
412d302d | 34847 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34848 | } |
34849 | return resultobj; | |
34850 | fail: | |
34851 | return NULL; | |
34852 | } | |
34853 | ||
34854 | ||
c32bde28 | 34855 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34856 | PyObject *obj; |
34857 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34858 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
34859 | Py_INCREF(obj); | |
34860 | return Py_BuildValue((char *)""); | |
34861 | } | |
c32bde28 | 34862 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34863 | PyObject *resultobj; |
34864 | long arg1 = (long) 0 ; | |
34865 | wxMenuBar *result; | |
34866 | PyObject * obj0 = 0 ; | |
34867 | char *kwnames[] = { | |
34868 | (char *) "style", NULL | |
34869 | }; | |
34870 | ||
34871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
34872 | if (obj0) { | |
093d3ff1 RD |
34873 | { |
34874 | arg1 = (long)(SWIG_As_long(obj0)); | |
34875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34876 | } | |
d55e5bfc RD |
34877 | } |
34878 | { | |
0439c23b | 34879 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34881 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
34882 | ||
34883 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34884 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34885 | } |
b0f7404b | 34886 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
34887 | return resultobj; |
34888 | fail: | |
34889 | return NULL; | |
34890 | } | |
34891 | ||
34892 | ||
c32bde28 | 34893 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34894 | PyObject *resultobj; |
34895 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34896 | wxMenu *arg2 = (wxMenu *) 0 ; | |
34897 | wxString *arg3 = 0 ; | |
34898 | bool result; | |
ae8162c8 | 34899 | bool temp3 = false ; |
d55e5bfc RD |
34900 | PyObject * obj0 = 0 ; |
34901 | PyObject * obj1 = 0 ; | |
34902 | PyObject * obj2 = 0 ; | |
34903 | char *kwnames[] = { | |
34904 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
34905 | }; | |
34906 | ||
34907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34908 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34909 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34910 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34911 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34912 | { |
34913 | arg3 = wxString_in_helper(obj2); | |
34914 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34915 | temp3 = true; |
d55e5bfc RD |
34916 | } |
34917 | { | |
34918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34919 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
34920 | ||
34921 | wxPyEndAllowThreads(__tstate); | |
34922 | if (PyErr_Occurred()) SWIG_fail; | |
34923 | } | |
34924 | { | |
34925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34926 | } | |
34927 | { | |
34928 | if (temp3) | |
34929 | delete arg3; | |
34930 | } | |
34931 | return resultobj; | |
34932 | fail: | |
34933 | { | |
34934 | if (temp3) | |
34935 | delete arg3; | |
34936 | } | |
34937 | return NULL; | |
34938 | } | |
34939 | ||
34940 | ||
c32bde28 | 34941 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34942 | PyObject *resultobj; |
34943 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34944 | size_t arg2 ; | |
34945 | wxMenu *arg3 = (wxMenu *) 0 ; | |
34946 | wxString *arg4 = 0 ; | |
34947 | bool result; | |
ae8162c8 | 34948 | bool temp4 = false ; |
d55e5bfc RD |
34949 | PyObject * obj0 = 0 ; |
34950 | PyObject * obj1 = 0 ; | |
34951 | PyObject * obj2 = 0 ; | |
34952 | PyObject * obj3 = 0 ; | |
34953 | char *kwnames[] = { | |
34954 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
34955 | }; | |
34956 | ||
34957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
34958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34960 | { | |
34961 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34962 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34963 | } | |
34964 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34965 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
34966 | { |
34967 | arg4 = wxString_in_helper(obj3); | |
34968 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 34969 | temp4 = true; |
d55e5bfc RD |
34970 | } |
34971 | { | |
34972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34973 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
34974 | ||
34975 | wxPyEndAllowThreads(__tstate); | |
34976 | if (PyErr_Occurred()) SWIG_fail; | |
34977 | } | |
34978 | { | |
34979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34980 | } | |
34981 | { | |
34982 | if (temp4) | |
34983 | delete arg4; | |
34984 | } | |
34985 | return resultobj; | |
34986 | fail: | |
34987 | { | |
34988 | if (temp4) | |
34989 | delete arg4; | |
34990 | } | |
34991 | return NULL; | |
34992 | } | |
34993 | ||
34994 | ||
c32bde28 | 34995 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34996 | PyObject *resultobj; |
34997 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34998 | size_t result; | |
34999 | PyObject * obj0 = 0 ; | |
35000 | char *kwnames[] = { | |
35001 | (char *) "self", NULL | |
35002 | }; | |
35003 | ||
35004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35005 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35006 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35007 | { |
35008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35009 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
35010 | ||
35011 | wxPyEndAllowThreads(__tstate); | |
35012 | if (PyErr_Occurred()) SWIG_fail; | |
35013 | } | |
093d3ff1 RD |
35014 | { |
35015 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
35016 | } | |
d55e5bfc RD |
35017 | return resultobj; |
35018 | fail: | |
35019 | return NULL; | |
35020 | } | |
35021 | ||
35022 | ||
c32bde28 | 35023 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35024 | PyObject *resultobj; |
35025 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35026 | size_t arg2 ; | |
35027 | wxMenu *result; | |
35028 | PyObject * obj0 = 0 ; | |
35029 | PyObject * obj1 = 0 ; | |
35030 | char *kwnames[] = { | |
35031 | (char *) "self",(char *) "pos", NULL | |
35032 | }; | |
35033 | ||
35034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35037 | { | |
35038 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35040 | } | |
d55e5bfc RD |
35041 | { |
35042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35043 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
35044 | ||
35045 | wxPyEndAllowThreads(__tstate); | |
35046 | if (PyErr_Occurred()) SWIG_fail; | |
35047 | } | |
35048 | { | |
412d302d | 35049 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35050 | } |
35051 | return resultobj; | |
35052 | fail: | |
35053 | return NULL; | |
35054 | } | |
35055 | ||
35056 | ||
c32bde28 | 35057 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35058 | PyObject *resultobj; |
35059 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35060 | size_t arg2 ; | |
35061 | wxMenu *arg3 = (wxMenu *) 0 ; | |
35062 | wxString *arg4 = 0 ; | |
35063 | wxMenu *result; | |
ae8162c8 | 35064 | bool temp4 = false ; |
d55e5bfc RD |
35065 | PyObject * obj0 = 0 ; |
35066 | PyObject * obj1 = 0 ; | |
35067 | PyObject * obj2 = 0 ; | |
35068 | PyObject * obj3 = 0 ; | |
35069 | char *kwnames[] = { | |
35070 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
35071 | }; | |
35072 | ||
35073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
35074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35076 | { | |
35077 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35078 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35079 | } | |
35080 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
35081 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
35082 | { |
35083 | arg4 = wxString_in_helper(obj3); | |
35084 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 35085 | temp4 = true; |
d55e5bfc RD |
35086 | } |
35087 | { | |
35088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35089 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
35090 | ||
35091 | wxPyEndAllowThreads(__tstate); | |
35092 | if (PyErr_Occurred()) SWIG_fail; | |
35093 | } | |
35094 | { | |
412d302d | 35095 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35096 | } |
35097 | { | |
35098 | if (temp4) | |
35099 | delete arg4; | |
35100 | } | |
35101 | return resultobj; | |
35102 | fail: | |
35103 | { | |
35104 | if (temp4) | |
35105 | delete arg4; | |
35106 | } | |
35107 | return NULL; | |
35108 | } | |
35109 | ||
35110 | ||
c32bde28 | 35111 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35112 | PyObject *resultobj; |
35113 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35114 | size_t arg2 ; | |
35115 | wxMenu *result; | |
35116 | PyObject * obj0 = 0 ; | |
35117 | PyObject * obj1 = 0 ; | |
35118 | char *kwnames[] = { | |
35119 | (char *) "self",(char *) "pos", NULL | |
35120 | }; | |
35121 | ||
35122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35125 | { | |
35126 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35127 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35128 | } | |
d55e5bfc RD |
35129 | { |
35130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35131 | result = (wxMenu *)(arg1)->Remove(arg2); | |
35132 | ||
35133 | wxPyEndAllowThreads(__tstate); | |
35134 | if (PyErr_Occurred()) SWIG_fail; | |
35135 | } | |
35136 | { | |
412d302d | 35137 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35138 | } |
35139 | return resultobj; | |
35140 | fail: | |
35141 | return NULL; | |
35142 | } | |
35143 | ||
35144 | ||
c32bde28 | 35145 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35146 | PyObject *resultobj; |
35147 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35148 | size_t arg2 ; | |
35149 | bool arg3 ; | |
35150 | PyObject * obj0 = 0 ; | |
35151 | PyObject * obj1 = 0 ; | |
35152 | PyObject * obj2 = 0 ; | |
35153 | char *kwnames[] = { | |
35154 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
35155 | }; | |
35156 | ||
35157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35160 | { | |
35161 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35163 | } | |
35164 | { | |
35165 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
35166 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35167 | } | |
d55e5bfc RD |
35168 | { |
35169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35170 | (arg1)->EnableTop(arg2,arg3); | |
35171 | ||
35172 | wxPyEndAllowThreads(__tstate); | |
35173 | if (PyErr_Occurred()) SWIG_fail; | |
35174 | } | |
35175 | Py_INCREF(Py_None); resultobj = Py_None; | |
35176 | return resultobj; | |
35177 | fail: | |
35178 | return NULL; | |
35179 | } | |
35180 | ||
35181 | ||
c32bde28 | 35182 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35183 | PyObject *resultobj; |
35184 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35185 | size_t arg2 ; | |
35186 | bool result; | |
35187 | PyObject * obj0 = 0 ; | |
35188 | PyObject * obj1 = 0 ; | |
35189 | char *kwnames[] = { | |
35190 | (char *) "self",(char *) "pos", NULL | |
35191 | }; | |
35192 | ||
35193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35196 | { | |
35197 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35198 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35199 | } | |
d55e5bfc RD |
35200 | { |
35201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35202 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
35203 | ||
35204 | wxPyEndAllowThreads(__tstate); | |
35205 | if (PyErr_Occurred()) SWIG_fail; | |
35206 | } | |
35207 | { | |
35208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35209 | } | |
35210 | return resultobj; | |
35211 | fail: | |
35212 | return NULL; | |
35213 | } | |
35214 | ||
35215 | ||
c32bde28 | 35216 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35217 | PyObject *resultobj; |
35218 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35219 | size_t arg2 ; | |
35220 | wxString *arg3 = 0 ; | |
ae8162c8 | 35221 | bool temp3 = false ; |
d55e5bfc RD |
35222 | PyObject * obj0 = 0 ; |
35223 | PyObject * obj1 = 0 ; | |
35224 | PyObject * obj2 = 0 ; | |
35225 | char *kwnames[] = { | |
35226 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
35227 | }; | |
35228 | ||
35229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35232 | { | |
35233 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35234 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35235 | } | |
d55e5bfc RD |
35236 | { |
35237 | arg3 = wxString_in_helper(obj2); | |
35238 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35239 | temp3 = true; |
d55e5bfc RD |
35240 | } |
35241 | { | |
35242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35243 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
35244 | ||
35245 | wxPyEndAllowThreads(__tstate); | |
35246 | if (PyErr_Occurred()) SWIG_fail; | |
35247 | } | |
35248 | Py_INCREF(Py_None); resultobj = Py_None; | |
35249 | { | |
35250 | if (temp3) | |
35251 | delete arg3; | |
35252 | } | |
35253 | return resultobj; | |
35254 | fail: | |
35255 | { | |
35256 | if (temp3) | |
35257 | delete arg3; | |
35258 | } | |
35259 | return NULL; | |
35260 | } | |
35261 | ||
35262 | ||
c32bde28 | 35263 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35264 | PyObject *resultobj; |
35265 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35266 | size_t arg2 ; | |
35267 | wxString result; | |
35268 | PyObject * obj0 = 0 ; | |
35269 | PyObject * obj1 = 0 ; | |
35270 | char *kwnames[] = { | |
35271 | (char *) "self",(char *) "pos", NULL | |
35272 | }; | |
35273 | ||
35274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35275 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35276 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35277 | { | |
35278 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35279 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35280 | } | |
d55e5bfc RD |
35281 | { |
35282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35283 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
35284 | ||
35285 | wxPyEndAllowThreads(__tstate); | |
35286 | if (PyErr_Occurred()) SWIG_fail; | |
35287 | } | |
35288 | { | |
35289 | #if wxUSE_UNICODE | |
35290 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35291 | #else | |
35292 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35293 | #endif | |
35294 | } | |
35295 | return resultobj; | |
35296 | fail: | |
35297 | return NULL; | |
35298 | } | |
35299 | ||
35300 | ||
c32bde28 | 35301 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35302 | PyObject *resultobj; |
35303 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35304 | wxString *arg2 = 0 ; | |
35305 | wxString *arg3 = 0 ; | |
35306 | int result; | |
ae8162c8 RD |
35307 | bool temp2 = false ; |
35308 | bool temp3 = false ; | |
d55e5bfc RD |
35309 | PyObject * obj0 = 0 ; |
35310 | PyObject * obj1 = 0 ; | |
35311 | PyObject * obj2 = 0 ; | |
35312 | char *kwnames[] = { | |
35313 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
35314 | }; | |
35315 | ||
35316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35319 | { |
35320 | arg2 = wxString_in_helper(obj1); | |
35321 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 35322 | temp2 = true; |
d55e5bfc RD |
35323 | } |
35324 | { | |
35325 | arg3 = wxString_in_helper(obj2); | |
35326 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35327 | temp3 = true; |
d55e5bfc RD |
35328 | } |
35329 | { | |
35330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35331 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
35332 | ||
35333 | wxPyEndAllowThreads(__tstate); | |
35334 | if (PyErr_Occurred()) SWIG_fail; | |
35335 | } | |
093d3ff1 RD |
35336 | { |
35337 | resultobj = SWIG_From_int((int)(result)); | |
35338 | } | |
d55e5bfc RD |
35339 | { |
35340 | if (temp2) | |
35341 | delete arg2; | |
35342 | } | |
35343 | { | |
35344 | if (temp3) | |
35345 | delete arg3; | |
35346 | } | |
35347 | return resultobj; | |
35348 | fail: | |
35349 | { | |
35350 | if (temp2) | |
35351 | delete arg2; | |
35352 | } | |
35353 | { | |
35354 | if (temp3) | |
35355 | delete arg3; | |
35356 | } | |
35357 | return NULL; | |
35358 | } | |
35359 | ||
35360 | ||
c32bde28 | 35361 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35362 | PyObject *resultobj; |
35363 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35364 | int arg2 ; | |
35365 | wxMenuItem *result; | |
35366 | PyObject * obj0 = 0 ; | |
35367 | PyObject * obj1 = 0 ; | |
35368 | char *kwnames[] = { | |
35369 | (char *) "self",(char *) "id", NULL | |
35370 | }; | |
35371 | ||
35372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35373 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35375 | { | |
35376 | arg2 = (int)(SWIG_As_int(obj1)); | |
35377 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35378 | } | |
d55e5bfc RD |
35379 | { |
35380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35381 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
35382 | ||
35383 | wxPyEndAllowThreads(__tstate); | |
35384 | if (PyErr_Occurred()) SWIG_fail; | |
35385 | } | |
35386 | { | |
412d302d | 35387 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35388 | } |
35389 | return resultobj; | |
35390 | fail: | |
35391 | return NULL; | |
35392 | } | |
35393 | ||
35394 | ||
c32bde28 | 35395 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35396 | PyObject *resultobj; |
35397 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35398 | wxString *arg2 = 0 ; | |
35399 | int result; | |
ae8162c8 | 35400 | bool temp2 = false ; |
d55e5bfc RD |
35401 | PyObject * obj0 = 0 ; |
35402 | PyObject * obj1 = 0 ; | |
35403 | char *kwnames[] = { | |
35404 | (char *) "self",(char *) "title", NULL | |
35405 | }; | |
35406 | ||
35407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35410 | { |
35411 | arg2 = wxString_in_helper(obj1); | |
35412 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 35413 | temp2 = true; |
d55e5bfc RD |
35414 | } |
35415 | { | |
35416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35417 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
35418 | ||
35419 | wxPyEndAllowThreads(__tstate); | |
35420 | if (PyErr_Occurred()) SWIG_fail; | |
35421 | } | |
093d3ff1 RD |
35422 | { |
35423 | resultobj = SWIG_From_int((int)(result)); | |
35424 | } | |
d55e5bfc RD |
35425 | { |
35426 | if (temp2) | |
35427 | delete arg2; | |
35428 | } | |
35429 | return resultobj; | |
35430 | fail: | |
35431 | { | |
35432 | if (temp2) | |
35433 | delete arg2; | |
35434 | } | |
35435 | return NULL; | |
35436 | } | |
35437 | ||
35438 | ||
c32bde28 | 35439 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35440 | PyObject *resultobj; |
35441 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35442 | int arg2 ; | |
35443 | bool arg3 ; | |
35444 | PyObject * obj0 = 0 ; | |
35445 | PyObject * obj1 = 0 ; | |
35446 | PyObject * obj2 = 0 ; | |
35447 | char *kwnames[] = { | |
35448 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
35449 | }; | |
35450 | ||
35451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35454 | { | |
35455 | arg2 = (int)(SWIG_As_int(obj1)); | |
35456 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35457 | } | |
35458 | { | |
35459 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
35460 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35461 | } | |
d55e5bfc RD |
35462 | { |
35463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35464 | (arg1)->Enable(arg2,arg3); | |
35465 | ||
35466 | wxPyEndAllowThreads(__tstate); | |
35467 | if (PyErr_Occurred()) SWIG_fail; | |
35468 | } | |
35469 | Py_INCREF(Py_None); resultobj = Py_None; | |
35470 | return resultobj; | |
35471 | fail: | |
35472 | return NULL; | |
35473 | } | |
35474 | ||
35475 | ||
c32bde28 | 35476 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35477 | PyObject *resultobj; |
35478 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35479 | int arg2 ; | |
35480 | bool arg3 ; | |
35481 | PyObject * obj0 = 0 ; | |
35482 | PyObject * obj1 = 0 ; | |
35483 | PyObject * obj2 = 0 ; | |
35484 | char *kwnames[] = { | |
35485 | (char *) "self",(char *) "id",(char *) "check", NULL | |
35486 | }; | |
35487 | ||
35488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35491 | { | |
35492 | arg2 = (int)(SWIG_As_int(obj1)); | |
35493 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35494 | } | |
35495 | { | |
35496 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
35497 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35498 | } | |
d55e5bfc RD |
35499 | { |
35500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35501 | (arg1)->Check(arg2,arg3); | |
35502 | ||
35503 | wxPyEndAllowThreads(__tstate); | |
35504 | if (PyErr_Occurred()) SWIG_fail; | |
35505 | } | |
35506 | Py_INCREF(Py_None); resultobj = Py_None; | |
35507 | return resultobj; | |
35508 | fail: | |
35509 | return NULL; | |
35510 | } | |
35511 | ||
35512 | ||
c32bde28 | 35513 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35514 | PyObject *resultobj; |
35515 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35516 | int arg2 ; | |
35517 | bool result; | |
35518 | PyObject * obj0 = 0 ; | |
35519 | PyObject * obj1 = 0 ; | |
35520 | char *kwnames[] = { | |
35521 | (char *) "self",(char *) "id", NULL | |
35522 | }; | |
35523 | ||
35524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35525 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35526 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35527 | { | |
35528 | arg2 = (int)(SWIG_As_int(obj1)); | |
35529 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35530 | } | |
d55e5bfc RD |
35531 | { |
35532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35533 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
35534 | ||
35535 | wxPyEndAllowThreads(__tstate); | |
35536 | if (PyErr_Occurred()) SWIG_fail; | |
35537 | } | |
35538 | { | |
35539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35540 | } | |
35541 | return resultobj; | |
35542 | fail: | |
35543 | return NULL; | |
35544 | } | |
35545 | ||
35546 | ||
c32bde28 | 35547 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35548 | PyObject *resultobj; |
35549 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35550 | int arg2 ; | |
35551 | bool result; | |
35552 | PyObject * obj0 = 0 ; | |
35553 | PyObject * obj1 = 0 ; | |
35554 | char *kwnames[] = { | |
35555 | (char *) "self",(char *) "id", NULL | |
35556 | }; | |
35557 | ||
35558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35561 | { | |
35562 | arg2 = (int)(SWIG_As_int(obj1)); | |
35563 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35564 | } | |
d55e5bfc RD |
35565 | { |
35566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35567 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
35568 | ||
35569 | wxPyEndAllowThreads(__tstate); | |
35570 | if (PyErr_Occurred()) SWIG_fail; | |
35571 | } | |
35572 | { | |
35573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35574 | } | |
35575 | return resultobj; | |
35576 | fail: | |
35577 | return NULL; | |
35578 | } | |
35579 | ||
35580 | ||
c32bde28 | 35581 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35582 | PyObject *resultobj; |
35583 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35584 | int arg2 ; | |
35585 | wxString *arg3 = 0 ; | |
ae8162c8 | 35586 | bool temp3 = false ; |
d55e5bfc RD |
35587 | PyObject * obj0 = 0 ; |
35588 | PyObject * obj1 = 0 ; | |
35589 | PyObject * obj2 = 0 ; | |
35590 | char *kwnames[] = { | |
35591 | (char *) "self",(char *) "id",(char *) "label", NULL | |
35592 | }; | |
35593 | ||
35594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35597 | { | |
35598 | arg2 = (int)(SWIG_As_int(obj1)); | |
35599 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35600 | } | |
d55e5bfc RD |
35601 | { |
35602 | arg3 = wxString_in_helper(obj2); | |
35603 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35604 | temp3 = true; |
d55e5bfc RD |
35605 | } |
35606 | { | |
35607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35608 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
35609 | ||
35610 | wxPyEndAllowThreads(__tstate); | |
35611 | if (PyErr_Occurred()) SWIG_fail; | |
35612 | } | |
35613 | Py_INCREF(Py_None); resultobj = Py_None; | |
35614 | { | |
35615 | if (temp3) | |
35616 | delete arg3; | |
35617 | } | |
35618 | return resultobj; | |
35619 | fail: | |
35620 | { | |
35621 | if (temp3) | |
35622 | delete arg3; | |
35623 | } | |
35624 | return NULL; | |
35625 | } | |
35626 | ||
35627 | ||
c32bde28 | 35628 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35629 | PyObject *resultobj; |
35630 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35631 | int arg2 ; | |
35632 | wxString result; | |
35633 | PyObject * obj0 = 0 ; | |
35634 | PyObject * obj1 = 0 ; | |
35635 | char *kwnames[] = { | |
35636 | (char *) "self",(char *) "id", NULL | |
35637 | }; | |
35638 | ||
35639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35642 | { | |
35643 | arg2 = (int)(SWIG_As_int(obj1)); | |
35644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35645 | } | |
d55e5bfc RD |
35646 | { |
35647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35648 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
35649 | ||
35650 | wxPyEndAllowThreads(__tstate); | |
35651 | if (PyErr_Occurred()) SWIG_fail; | |
35652 | } | |
35653 | { | |
35654 | #if wxUSE_UNICODE | |
35655 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35656 | #else | |
35657 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35658 | #endif | |
35659 | } | |
35660 | return resultobj; | |
35661 | fail: | |
35662 | return NULL; | |
35663 | } | |
35664 | ||
35665 | ||
c32bde28 | 35666 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35667 | PyObject *resultobj; |
35668 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35669 | int arg2 ; | |
35670 | wxString *arg3 = 0 ; | |
ae8162c8 | 35671 | bool temp3 = false ; |
d55e5bfc RD |
35672 | PyObject * obj0 = 0 ; |
35673 | PyObject * obj1 = 0 ; | |
35674 | PyObject * obj2 = 0 ; | |
35675 | char *kwnames[] = { | |
35676 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
35677 | }; | |
35678 | ||
35679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35682 | { | |
35683 | arg2 = (int)(SWIG_As_int(obj1)); | |
35684 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35685 | } | |
d55e5bfc RD |
35686 | { |
35687 | arg3 = wxString_in_helper(obj2); | |
35688 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35689 | temp3 = true; |
d55e5bfc RD |
35690 | } |
35691 | { | |
35692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35693 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
35694 | ||
35695 | wxPyEndAllowThreads(__tstate); | |
35696 | if (PyErr_Occurred()) SWIG_fail; | |
35697 | } | |
35698 | Py_INCREF(Py_None); resultobj = Py_None; | |
35699 | { | |
35700 | if (temp3) | |
35701 | delete arg3; | |
35702 | } | |
35703 | return resultobj; | |
35704 | fail: | |
35705 | { | |
35706 | if (temp3) | |
35707 | delete arg3; | |
35708 | } | |
35709 | return NULL; | |
35710 | } | |
35711 | ||
35712 | ||
c32bde28 | 35713 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35714 | PyObject *resultobj; |
35715 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35716 | int arg2 ; | |
35717 | wxString result; | |
35718 | PyObject * obj0 = 0 ; | |
35719 | PyObject * obj1 = 0 ; | |
35720 | char *kwnames[] = { | |
35721 | (char *) "self",(char *) "id", NULL | |
35722 | }; | |
35723 | ||
35724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35727 | { | |
35728 | arg2 = (int)(SWIG_As_int(obj1)); | |
35729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35730 | } | |
d55e5bfc RD |
35731 | { |
35732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35733 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
35734 | ||
35735 | wxPyEndAllowThreads(__tstate); | |
35736 | if (PyErr_Occurred()) SWIG_fail; | |
35737 | } | |
35738 | { | |
35739 | #if wxUSE_UNICODE | |
35740 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35741 | #else | |
35742 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35743 | #endif | |
35744 | } | |
35745 | return resultobj; | |
35746 | fail: | |
35747 | return NULL; | |
35748 | } | |
35749 | ||
35750 | ||
c32bde28 | 35751 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35752 | PyObject *resultobj; |
35753 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35754 | wxFrame *result; | |
35755 | PyObject * obj0 = 0 ; | |
35756 | char *kwnames[] = { | |
35757 | (char *) "self", NULL | |
35758 | }; | |
35759 | ||
35760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35763 | { |
35764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35765 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
35766 | ||
35767 | wxPyEndAllowThreads(__tstate); | |
35768 | if (PyErr_Occurred()) SWIG_fail; | |
35769 | } | |
35770 | { | |
412d302d | 35771 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35772 | } |
35773 | return resultobj; | |
35774 | fail: | |
35775 | return NULL; | |
35776 | } | |
35777 | ||
35778 | ||
c32bde28 | 35779 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35780 | PyObject *resultobj; |
35781 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35782 | bool result; | |
35783 | PyObject * obj0 = 0 ; | |
35784 | char *kwnames[] = { | |
35785 | (char *) "self", NULL | |
35786 | }; | |
35787 | ||
35788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35791 | { |
35792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35793 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
35794 | ||
35795 | wxPyEndAllowThreads(__tstate); | |
35796 | if (PyErr_Occurred()) SWIG_fail; | |
35797 | } | |
35798 | { | |
35799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35800 | } | |
35801 | return resultobj; | |
35802 | fail: | |
35803 | return NULL; | |
35804 | } | |
35805 | ||
35806 | ||
c32bde28 | 35807 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35808 | PyObject *resultobj; |
35809 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35810 | wxFrame *arg2 = (wxFrame *) 0 ; | |
35811 | PyObject * obj0 = 0 ; | |
35812 | PyObject * obj1 = 0 ; | |
35813 | char *kwnames[] = { | |
35814 | (char *) "self",(char *) "frame", NULL | |
35815 | }; | |
35816 | ||
35817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35820 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); | |
35821 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
35822 | { |
35823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35824 | (arg1)->Attach(arg2); | |
35825 | ||
35826 | wxPyEndAllowThreads(__tstate); | |
35827 | if (PyErr_Occurred()) SWIG_fail; | |
35828 | } | |
35829 | Py_INCREF(Py_None); resultobj = Py_None; | |
35830 | return resultobj; | |
35831 | fail: | |
35832 | return NULL; | |
35833 | } | |
35834 | ||
35835 | ||
c32bde28 | 35836 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35837 | PyObject *resultobj; |
35838 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35839 | PyObject * obj0 = 0 ; | |
35840 | char *kwnames[] = { | |
35841 | (char *) "self", NULL | |
35842 | }; | |
35843 | ||
35844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35847 | { |
35848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35849 | (arg1)->Detach(); | |
35850 | ||
35851 | wxPyEndAllowThreads(__tstate); | |
35852 | if (PyErr_Occurred()) SWIG_fail; | |
35853 | } | |
35854 | Py_INCREF(Py_None); resultobj = Py_None; | |
35855 | return resultobj; | |
35856 | fail: | |
35857 | return NULL; | |
35858 | } | |
35859 | ||
35860 | ||
c32bde28 | 35861 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35862 | PyObject *obj; |
35863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35864 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
35865 | Py_INCREF(obj); | |
35866 | return Py_BuildValue((char *)""); | |
35867 | } | |
c32bde28 | 35868 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35869 | PyObject *resultobj; |
35870 | wxMenu *arg1 = (wxMenu *) NULL ; | |
35871 | int arg2 = (int) wxID_ANY ; | |
35872 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
35873 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
35874 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
35875 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 35876 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc RD |
35877 | wxMenu *arg6 = (wxMenu *) NULL ; |
35878 | wxMenuItem *result; | |
ae8162c8 RD |
35879 | bool temp3 = false ; |
35880 | bool temp4 = false ; | |
d55e5bfc RD |
35881 | PyObject * obj0 = 0 ; |
35882 | PyObject * obj1 = 0 ; | |
35883 | PyObject * obj2 = 0 ; | |
35884 | PyObject * obj3 = 0 ; | |
35885 | PyObject * obj4 = 0 ; | |
35886 | PyObject * obj5 = 0 ; | |
35887 | char *kwnames[] = { | |
35888 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
35889 | }; | |
35890 | ||
35891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35892 | if (obj0) { | |
093d3ff1 RD |
35893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
35894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35895 | } |
35896 | if (obj1) { | |
093d3ff1 RD |
35897 | { |
35898 | arg2 = (int)(SWIG_As_int(obj1)); | |
35899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35900 | } | |
d55e5bfc RD |
35901 | } |
35902 | if (obj2) { | |
35903 | { | |
35904 | arg3 = wxString_in_helper(obj2); | |
35905 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35906 | temp3 = true; |
d55e5bfc RD |
35907 | } |
35908 | } | |
35909 | if (obj3) { | |
35910 | { | |
35911 | arg4 = wxString_in_helper(obj3); | |
35912 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 35913 | temp4 = true; |
d55e5bfc RD |
35914 | } |
35915 | } | |
35916 | if (obj4) { | |
093d3ff1 RD |
35917 | { |
35918 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
35919 | if (SWIG_arg_fail(5)) SWIG_fail; | |
35920 | } | |
d55e5bfc RD |
35921 | } |
35922 | if (obj5) { | |
093d3ff1 RD |
35923 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
35924 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
35925 | } |
35926 | { | |
35927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35928 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
35929 | ||
35930 | wxPyEndAllowThreads(__tstate); | |
35931 | if (PyErr_Occurred()) SWIG_fail; | |
35932 | } | |
35933 | { | |
412d302d | 35934 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
35935 | } |
35936 | { | |
35937 | if (temp3) | |
35938 | delete arg3; | |
35939 | } | |
35940 | { | |
35941 | if (temp4) | |
35942 | delete arg4; | |
35943 | } | |
35944 | return resultobj; | |
35945 | fail: | |
35946 | { | |
35947 | if (temp3) | |
35948 | delete arg3; | |
35949 | } | |
35950 | { | |
35951 | if (temp4) | |
35952 | delete arg4; | |
35953 | } | |
35954 | return NULL; | |
35955 | } | |
35956 | ||
35957 | ||
c32bde28 | 35958 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35959 | PyObject *resultobj; |
35960 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35961 | wxMenu *result; | |
35962 | PyObject * obj0 = 0 ; | |
35963 | char *kwnames[] = { | |
35964 | (char *) "self", NULL | |
35965 | }; | |
35966 | ||
35967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35970 | { |
35971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35972 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
35973 | ||
35974 | wxPyEndAllowThreads(__tstate); | |
35975 | if (PyErr_Occurred()) SWIG_fail; | |
35976 | } | |
35977 | { | |
412d302d | 35978 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35979 | } |
35980 | return resultobj; | |
35981 | fail: | |
35982 | return NULL; | |
35983 | } | |
35984 | ||
35985 | ||
c32bde28 | 35986 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35987 | PyObject *resultobj; |
35988 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35989 | wxMenu *arg2 = (wxMenu *) 0 ; | |
35990 | PyObject * obj0 = 0 ; | |
35991 | PyObject * obj1 = 0 ; | |
35992 | char *kwnames[] = { | |
35993 | (char *) "self",(char *) "menu", NULL | |
35994 | }; | |
35995 | ||
35996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35999 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
36000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36001 | { |
36002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36003 | (arg1)->SetMenu(arg2); | |
36004 | ||
36005 | wxPyEndAllowThreads(__tstate); | |
36006 | if (PyErr_Occurred()) SWIG_fail; | |
36007 | } | |
36008 | Py_INCREF(Py_None); resultobj = Py_None; | |
36009 | return resultobj; | |
36010 | fail: | |
36011 | return NULL; | |
36012 | } | |
36013 | ||
36014 | ||
c32bde28 | 36015 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36016 | PyObject *resultobj; |
36017 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36018 | int arg2 ; | |
36019 | PyObject * obj0 = 0 ; | |
36020 | PyObject * obj1 = 0 ; | |
36021 | char *kwnames[] = { | |
36022 | (char *) "self",(char *) "id", NULL | |
36023 | }; | |
36024 | ||
36025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36028 | { | |
36029 | arg2 = (int)(SWIG_As_int(obj1)); | |
36030 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36031 | } | |
d55e5bfc RD |
36032 | { |
36033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36034 | (arg1)->SetId(arg2); | |
36035 | ||
36036 | wxPyEndAllowThreads(__tstate); | |
36037 | if (PyErr_Occurred()) SWIG_fail; | |
36038 | } | |
36039 | Py_INCREF(Py_None); resultobj = Py_None; | |
36040 | return resultobj; | |
36041 | fail: | |
36042 | return NULL; | |
36043 | } | |
36044 | ||
36045 | ||
c32bde28 | 36046 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36047 | PyObject *resultobj; |
36048 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36049 | int result; | |
36050 | PyObject * obj0 = 0 ; | |
36051 | char *kwnames[] = { | |
36052 | (char *) "self", NULL | |
36053 | }; | |
36054 | ||
36055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36058 | { |
36059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36060 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
36061 | ||
36062 | wxPyEndAllowThreads(__tstate); | |
36063 | if (PyErr_Occurred()) SWIG_fail; | |
36064 | } | |
093d3ff1 RD |
36065 | { |
36066 | resultobj = SWIG_From_int((int)(result)); | |
36067 | } | |
d55e5bfc RD |
36068 | return resultobj; |
36069 | fail: | |
36070 | return NULL; | |
36071 | } | |
36072 | ||
36073 | ||
c32bde28 | 36074 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36075 | PyObject *resultobj; |
36076 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36077 | bool result; | |
36078 | PyObject * obj0 = 0 ; | |
36079 | char *kwnames[] = { | |
36080 | (char *) "self", NULL | |
36081 | }; | |
36082 | ||
36083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36086 | { |
36087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36088 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
36089 | ||
36090 | wxPyEndAllowThreads(__tstate); | |
36091 | if (PyErr_Occurred()) SWIG_fail; | |
36092 | } | |
36093 | { | |
36094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36095 | } | |
36096 | return resultobj; | |
36097 | fail: | |
36098 | return NULL; | |
36099 | } | |
36100 | ||
36101 | ||
c32bde28 | 36102 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36103 | PyObject *resultobj; |
36104 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36105 | wxString *arg2 = 0 ; | |
ae8162c8 | 36106 | bool temp2 = false ; |
d55e5bfc RD |
36107 | PyObject * obj0 = 0 ; |
36108 | PyObject * obj1 = 0 ; | |
36109 | char *kwnames[] = { | |
36110 | (char *) "self",(char *) "str", NULL | |
36111 | }; | |
36112 | ||
36113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36114 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36115 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36116 | { |
36117 | arg2 = wxString_in_helper(obj1); | |
36118 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 36119 | temp2 = true; |
d55e5bfc RD |
36120 | } |
36121 | { | |
36122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36123 | (arg1)->SetText((wxString const &)*arg2); | |
36124 | ||
36125 | wxPyEndAllowThreads(__tstate); | |
36126 | if (PyErr_Occurred()) SWIG_fail; | |
36127 | } | |
36128 | Py_INCREF(Py_None); resultobj = Py_None; | |
36129 | { | |
36130 | if (temp2) | |
36131 | delete arg2; | |
36132 | } | |
36133 | return resultobj; | |
36134 | fail: | |
36135 | { | |
36136 | if (temp2) | |
36137 | delete arg2; | |
36138 | } | |
36139 | return NULL; | |
36140 | } | |
36141 | ||
36142 | ||
c32bde28 | 36143 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36144 | PyObject *resultobj; |
36145 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36146 | wxString result; | |
36147 | PyObject * obj0 = 0 ; | |
36148 | char *kwnames[] = { | |
36149 | (char *) "self", NULL | |
36150 | }; | |
36151 | ||
36152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36155 | { |
36156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36157 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
36158 | ||
36159 | wxPyEndAllowThreads(__tstate); | |
36160 | if (PyErr_Occurred()) SWIG_fail; | |
36161 | } | |
36162 | { | |
36163 | #if wxUSE_UNICODE | |
36164 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36165 | #else | |
36166 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36167 | #endif | |
36168 | } | |
36169 | return resultobj; | |
36170 | fail: | |
36171 | return NULL; | |
36172 | } | |
36173 | ||
36174 | ||
c32bde28 | 36175 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36176 | PyObject *resultobj; |
36177 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36178 | wxString *result; | |
36179 | PyObject * obj0 = 0 ; | |
36180 | char *kwnames[] = { | |
36181 | (char *) "self", NULL | |
36182 | }; | |
36183 | ||
36184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36187 | { |
36188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36189 | { | |
36190 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
36191 | result = (wxString *) &_result_ref; | |
36192 | } | |
36193 | ||
36194 | wxPyEndAllowThreads(__tstate); | |
36195 | if (PyErr_Occurred()) SWIG_fail; | |
36196 | } | |
36197 | { | |
36198 | #if wxUSE_UNICODE | |
36199 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
36200 | #else | |
36201 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
36202 | #endif | |
36203 | } | |
36204 | return resultobj; | |
36205 | fail: | |
36206 | return NULL; | |
36207 | } | |
36208 | ||
36209 | ||
c32bde28 | 36210 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36211 | PyObject *resultobj; |
36212 | wxString *arg1 = 0 ; | |
36213 | wxString result; | |
ae8162c8 | 36214 | bool temp1 = false ; |
d55e5bfc RD |
36215 | PyObject * obj0 = 0 ; |
36216 | char *kwnames[] = { | |
36217 | (char *) "text", NULL | |
36218 | }; | |
36219 | ||
36220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
36221 | { | |
36222 | arg1 = wxString_in_helper(obj0); | |
36223 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 36224 | temp1 = true; |
d55e5bfc RD |
36225 | } |
36226 | { | |
36227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36228 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
36229 | ||
36230 | wxPyEndAllowThreads(__tstate); | |
36231 | if (PyErr_Occurred()) SWIG_fail; | |
36232 | } | |
36233 | { | |
36234 | #if wxUSE_UNICODE | |
36235 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36236 | #else | |
36237 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36238 | #endif | |
36239 | } | |
36240 | { | |
36241 | if (temp1) | |
36242 | delete arg1; | |
36243 | } | |
36244 | return resultobj; | |
36245 | fail: | |
36246 | { | |
36247 | if (temp1) | |
36248 | delete arg1; | |
36249 | } | |
36250 | return NULL; | |
36251 | } | |
36252 | ||
36253 | ||
c32bde28 | 36254 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36255 | PyObject *resultobj; |
36256 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
093d3ff1 | 36257 | wxItemKind result; |
d55e5bfc RD |
36258 | PyObject * obj0 = 0 ; |
36259 | char *kwnames[] = { | |
36260 | (char *) "self", NULL | |
36261 | }; | |
36262 | ||
36263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36266 | { |
36267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 36268 | result = (wxItemKind)((wxMenuItem const *)arg1)->GetKind(); |
d55e5bfc RD |
36269 | |
36270 | wxPyEndAllowThreads(__tstate); | |
36271 | if (PyErr_Occurred()) SWIG_fail; | |
36272 | } | |
093d3ff1 | 36273 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
36274 | return resultobj; |
36275 | fail: | |
36276 | return NULL; | |
36277 | } | |
36278 | ||
36279 | ||
c32bde28 | 36280 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36281 | PyObject *resultobj; |
36282 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
093d3ff1 | 36283 | wxItemKind arg2 ; |
d55e5bfc RD |
36284 | PyObject * obj0 = 0 ; |
36285 | PyObject * obj1 = 0 ; | |
36286 | char *kwnames[] = { | |
36287 | (char *) "self",(char *) "kind", NULL | |
36288 | }; | |
36289 | ||
36290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36293 | { | |
36294 | arg2 = (wxItemKind)(SWIG_As_int(obj1)); | |
36295 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36296 | } | |
d55e5bfc RD |
36297 | { |
36298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36299 | (arg1)->SetKind((wxItemKind )arg2); | |
36300 | ||
36301 | wxPyEndAllowThreads(__tstate); | |
36302 | if (PyErr_Occurred()) SWIG_fail; | |
36303 | } | |
36304 | Py_INCREF(Py_None); resultobj = Py_None; | |
36305 | return resultobj; | |
36306 | fail: | |
36307 | return NULL; | |
36308 | } | |
36309 | ||
36310 | ||
c32bde28 | 36311 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36312 | PyObject *resultobj; |
36313 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36314 | bool arg2 ; | |
36315 | PyObject * obj0 = 0 ; | |
36316 | PyObject * obj1 = 0 ; | |
36317 | char *kwnames[] = { | |
36318 | (char *) "self",(char *) "checkable", NULL | |
36319 | }; | |
36320 | ||
36321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36322 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36323 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36324 | { | |
36325 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
36326 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36327 | } | |
d55e5bfc RD |
36328 | { |
36329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36330 | (arg1)->SetCheckable(arg2); | |
36331 | ||
36332 | wxPyEndAllowThreads(__tstate); | |
36333 | if (PyErr_Occurred()) SWIG_fail; | |
36334 | } | |
36335 | Py_INCREF(Py_None); resultobj = Py_None; | |
36336 | return resultobj; | |
36337 | fail: | |
36338 | return NULL; | |
36339 | } | |
36340 | ||
36341 | ||
c32bde28 | 36342 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36343 | PyObject *resultobj; |
36344 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36345 | bool result; | |
36346 | PyObject * obj0 = 0 ; | |
36347 | char *kwnames[] = { | |
36348 | (char *) "self", NULL | |
36349 | }; | |
36350 | ||
36351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36352 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36353 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36354 | { |
36355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36356 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
36357 | ||
36358 | wxPyEndAllowThreads(__tstate); | |
36359 | if (PyErr_Occurred()) SWIG_fail; | |
36360 | } | |
36361 | { | |
36362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36363 | } | |
36364 | return resultobj; | |
36365 | fail: | |
36366 | return NULL; | |
36367 | } | |
36368 | ||
36369 | ||
c32bde28 | 36370 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36371 | PyObject *resultobj; |
36372 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36373 | bool result; | |
36374 | PyObject * obj0 = 0 ; | |
36375 | char *kwnames[] = { | |
36376 | (char *) "self", NULL | |
36377 | }; | |
36378 | ||
36379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36382 | { |
36383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36384 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
36385 | ||
36386 | wxPyEndAllowThreads(__tstate); | |
36387 | if (PyErr_Occurred()) SWIG_fail; | |
36388 | } | |
36389 | { | |
36390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36391 | } | |
36392 | return resultobj; | |
36393 | fail: | |
36394 | return NULL; | |
36395 | } | |
36396 | ||
36397 | ||
c32bde28 | 36398 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36399 | PyObject *resultobj; |
36400 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36401 | wxMenu *arg2 = (wxMenu *) 0 ; | |
36402 | PyObject * obj0 = 0 ; | |
36403 | PyObject * obj1 = 0 ; | |
36404 | char *kwnames[] = { | |
36405 | (char *) "self",(char *) "menu", NULL | |
36406 | }; | |
36407 | ||
36408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36411 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
36412 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36413 | { |
36414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36415 | (arg1)->SetSubMenu(arg2); | |
36416 | ||
36417 | wxPyEndAllowThreads(__tstate); | |
36418 | if (PyErr_Occurred()) SWIG_fail; | |
36419 | } | |
36420 | Py_INCREF(Py_None); resultobj = Py_None; | |
36421 | return resultobj; | |
36422 | fail: | |
36423 | return NULL; | |
36424 | } | |
36425 | ||
36426 | ||
c32bde28 | 36427 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36428 | PyObject *resultobj; |
36429 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36430 | wxMenu *result; | |
36431 | PyObject * obj0 = 0 ; | |
36432 | char *kwnames[] = { | |
36433 | (char *) "self", NULL | |
36434 | }; | |
36435 | ||
36436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36439 | { |
36440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36441 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
36442 | ||
36443 | wxPyEndAllowThreads(__tstate); | |
36444 | if (PyErr_Occurred()) SWIG_fail; | |
36445 | } | |
36446 | { | |
412d302d | 36447 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
36448 | } |
36449 | return resultobj; | |
36450 | fail: | |
36451 | return NULL; | |
36452 | } | |
36453 | ||
36454 | ||
c32bde28 | 36455 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36456 | PyObject *resultobj; |
36457 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 36458 | bool arg2 = (bool) true ; |
d55e5bfc RD |
36459 | PyObject * obj0 = 0 ; |
36460 | PyObject * obj1 = 0 ; | |
36461 | char *kwnames[] = { | |
36462 | (char *) "self",(char *) "enable", NULL | |
36463 | }; | |
36464 | ||
36465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 36468 | if (obj1) { |
093d3ff1 RD |
36469 | { |
36470 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
36471 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36472 | } | |
d55e5bfc RD |
36473 | } |
36474 | { | |
36475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36476 | (arg1)->Enable(arg2); | |
36477 | ||
36478 | wxPyEndAllowThreads(__tstate); | |
36479 | if (PyErr_Occurred()) SWIG_fail; | |
36480 | } | |
36481 | Py_INCREF(Py_None); resultobj = Py_None; | |
36482 | return resultobj; | |
36483 | fail: | |
36484 | return NULL; | |
36485 | } | |
36486 | ||
36487 | ||
c32bde28 | 36488 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36489 | PyObject *resultobj; |
36490 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36491 | bool result; | |
36492 | PyObject * obj0 = 0 ; | |
36493 | char *kwnames[] = { | |
36494 | (char *) "self", NULL | |
36495 | }; | |
36496 | ||
36497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36500 | { |
36501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36502 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
36503 | ||
36504 | wxPyEndAllowThreads(__tstate); | |
36505 | if (PyErr_Occurred()) SWIG_fail; | |
36506 | } | |
36507 | { | |
36508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36509 | } | |
36510 | return resultobj; | |
36511 | fail: | |
36512 | return NULL; | |
36513 | } | |
36514 | ||
36515 | ||
c32bde28 | 36516 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36517 | PyObject *resultobj; |
36518 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 36519 | bool arg2 = (bool) true ; |
d55e5bfc RD |
36520 | PyObject * obj0 = 0 ; |
36521 | PyObject * obj1 = 0 ; | |
36522 | char *kwnames[] = { | |
36523 | (char *) "self",(char *) "check", NULL | |
36524 | }; | |
36525 | ||
36526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 36529 | if (obj1) { |
093d3ff1 RD |
36530 | { |
36531 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
36532 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36533 | } | |
d55e5bfc RD |
36534 | } |
36535 | { | |
36536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36537 | (arg1)->Check(arg2); | |
36538 | ||
36539 | wxPyEndAllowThreads(__tstate); | |
36540 | if (PyErr_Occurred()) SWIG_fail; | |
36541 | } | |
36542 | Py_INCREF(Py_None); resultobj = Py_None; | |
36543 | return resultobj; | |
36544 | fail: | |
36545 | return NULL; | |
36546 | } | |
36547 | ||
36548 | ||
c32bde28 | 36549 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36550 | PyObject *resultobj; |
36551 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36552 | bool result; | |
36553 | PyObject * obj0 = 0 ; | |
36554 | char *kwnames[] = { | |
36555 | (char *) "self", NULL | |
36556 | }; | |
36557 | ||
36558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36561 | { |
36562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36563 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
36564 | ||
36565 | wxPyEndAllowThreads(__tstate); | |
36566 | if (PyErr_Occurred()) SWIG_fail; | |
36567 | } | |
36568 | { | |
36569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36570 | } | |
36571 | return resultobj; | |
36572 | fail: | |
36573 | return NULL; | |
36574 | } | |
36575 | ||
36576 | ||
c32bde28 | 36577 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36578 | PyObject *resultobj; |
36579 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36580 | PyObject * obj0 = 0 ; | |
36581 | char *kwnames[] = { | |
36582 | (char *) "self", NULL | |
36583 | }; | |
36584 | ||
36585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36588 | { |
36589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36590 | (arg1)->Toggle(); | |
36591 | ||
36592 | wxPyEndAllowThreads(__tstate); | |
36593 | if (PyErr_Occurred()) SWIG_fail; | |
36594 | } | |
36595 | Py_INCREF(Py_None); resultobj = Py_None; | |
36596 | return resultobj; | |
36597 | fail: | |
36598 | return NULL; | |
36599 | } | |
36600 | ||
36601 | ||
c32bde28 | 36602 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36603 | PyObject *resultobj; |
36604 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36605 | wxString *arg2 = 0 ; | |
ae8162c8 | 36606 | bool temp2 = false ; |
d55e5bfc RD |
36607 | PyObject * obj0 = 0 ; |
36608 | PyObject * obj1 = 0 ; | |
36609 | char *kwnames[] = { | |
36610 | (char *) "self",(char *) "str", NULL | |
36611 | }; | |
36612 | ||
36613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36616 | { |
36617 | arg2 = wxString_in_helper(obj1); | |
36618 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 36619 | temp2 = true; |
d55e5bfc RD |
36620 | } |
36621 | { | |
36622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36623 | (arg1)->SetHelp((wxString const &)*arg2); | |
36624 | ||
36625 | wxPyEndAllowThreads(__tstate); | |
36626 | if (PyErr_Occurred()) SWIG_fail; | |
36627 | } | |
36628 | Py_INCREF(Py_None); resultobj = Py_None; | |
36629 | { | |
36630 | if (temp2) | |
36631 | delete arg2; | |
36632 | } | |
36633 | return resultobj; | |
36634 | fail: | |
36635 | { | |
36636 | if (temp2) | |
36637 | delete arg2; | |
36638 | } | |
36639 | return NULL; | |
36640 | } | |
36641 | ||
36642 | ||
c32bde28 | 36643 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36644 | PyObject *resultobj; |
36645 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36646 | wxString *result; | |
36647 | PyObject * obj0 = 0 ; | |
36648 | char *kwnames[] = { | |
36649 | (char *) "self", NULL | |
36650 | }; | |
36651 | ||
36652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36655 | { |
36656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36657 | { | |
36658 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
36659 | result = (wxString *) &_result_ref; | |
36660 | } | |
36661 | ||
36662 | wxPyEndAllowThreads(__tstate); | |
36663 | if (PyErr_Occurred()) SWIG_fail; | |
36664 | } | |
36665 | { | |
36666 | #if wxUSE_UNICODE | |
36667 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
36668 | #else | |
36669 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
36670 | #endif | |
36671 | } | |
36672 | return resultobj; | |
36673 | fail: | |
36674 | return NULL; | |
36675 | } | |
36676 | ||
36677 | ||
c32bde28 | 36678 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36679 | PyObject *resultobj; |
36680 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36681 | wxAcceleratorEntry *result; | |
36682 | PyObject * obj0 = 0 ; | |
36683 | char *kwnames[] = { | |
36684 | (char *) "self", NULL | |
36685 | }; | |
36686 | ||
36687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36690 | { |
36691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36692 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
36693 | ||
36694 | wxPyEndAllowThreads(__tstate); | |
36695 | if (PyErr_Occurred()) SWIG_fail; | |
36696 | } | |
36697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
36698 | return resultobj; | |
36699 | fail: | |
36700 | return NULL; | |
36701 | } | |
36702 | ||
36703 | ||
c32bde28 | 36704 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36705 | PyObject *resultobj; |
36706 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36707 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
36708 | PyObject * obj0 = 0 ; | |
36709 | PyObject * obj1 = 0 ; | |
36710 | char *kwnames[] = { | |
36711 | (char *) "self",(char *) "accel", NULL | |
36712 | }; | |
36713 | ||
36714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36717 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); | |
36718 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36719 | { |
36720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36721 | (arg1)->SetAccel(arg2); | |
36722 | ||
36723 | wxPyEndAllowThreads(__tstate); | |
36724 | if (PyErr_Occurred()) SWIG_fail; | |
36725 | } | |
36726 | Py_INCREF(Py_None); resultobj = Py_None; | |
36727 | return resultobj; | |
36728 | fail: | |
36729 | return NULL; | |
36730 | } | |
36731 | ||
36732 | ||
c32bde28 | 36733 | static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36734 | PyObject *resultobj; |
36735 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36736 | wxFont *arg2 = 0 ; | |
36737 | PyObject * obj0 = 0 ; | |
36738 | PyObject * obj1 = 0 ; | |
36739 | char *kwnames[] = { | |
36740 | (char *) "self",(char *) "font", NULL | |
36741 | }; | |
36742 | ||
36743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36746 | { | |
36747 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
36748 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36749 | if (arg2 == NULL) { | |
36750 | SWIG_null_ref("wxFont"); | |
36751 | } | |
36752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36753 | } |
36754 | { | |
36755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36756 | (arg1)->SetFont((wxFont const &)*arg2); | |
36757 | ||
36758 | wxPyEndAllowThreads(__tstate); | |
36759 | if (PyErr_Occurred()) SWIG_fail; | |
36760 | } | |
36761 | Py_INCREF(Py_None); resultobj = Py_None; | |
36762 | return resultobj; | |
36763 | fail: | |
36764 | return NULL; | |
36765 | } | |
36766 | ||
36767 | ||
c32bde28 | 36768 | static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36769 | PyObject *resultobj; |
36770 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36771 | wxFont result; | |
36772 | PyObject * obj0 = 0 ; | |
36773 | char *kwnames[] = { | |
36774 | (char *) "self", NULL | |
36775 | }; | |
36776 | ||
36777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36780 | { |
36781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36782 | result = (arg1)->GetFont(); | |
36783 | ||
36784 | wxPyEndAllowThreads(__tstate); | |
36785 | if (PyErr_Occurred()) SWIG_fail; | |
36786 | } | |
36787 | { | |
36788 | wxFont * resultptr; | |
093d3ff1 | 36789 | resultptr = new wxFont((wxFont &)(result)); |
d55e5bfc RD |
36790 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
36791 | } | |
36792 | return resultobj; | |
36793 | fail: | |
36794 | return NULL; | |
36795 | } | |
36796 | ||
36797 | ||
c32bde28 | 36798 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36799 | PyObject *resultobj; |
36800 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36801 | wxColour *arg2 = 0 ; | |
36802 | wxColour temp2 ; | |
36803 | PyObject * obj0 = 0 ; | |
36804 | PyObject * obj1 = 0 ; | |
36805 | char *kwnames[] = { | |
36806 | (char *) "self",(char *) "colText", NULL | |
36807 | }; | |
36808 | ||
36809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36812 | { |
36813 | arg2 = &temp2; | |
36814 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
36815 | } | |
36816 | { | |
36817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36818 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
36819 | ||
36820 | wxPyEndAllowThreads(__tstate); | |
36821 | if (PyErr_Occurred()) SWIG_fail; | |
36822 | } | |
36823 | Py_INCREF(Py_None); resultobj = Py_None; | |
36824 | return resultobj; | |
36825 | fail: | |
36826 | return NULL; | |
36827 | } | |
36828 | ||
36829 | ||
c32bde28 | 36830 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36831 | PyObject *resultobj; |
36832 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36833 | wxColour result; | |
36834 | PyObject * obj0 = 0 ; | |
36835 | char *kwnames[] = { | |
36836 | (char *) "self", NULL | |
36837 | }; | |
36838 | ||
36839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36840 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36841 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36842 | { |
36843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36844 | result = (arg1)->GetTextColour(); | |
36845 | ||
36846 | wxPyEndAllowThreads(__tstate); | |
36847 | if (PyErr_Occurred()) SWIG_fail; | |
36848 | } | |
36849 | { | |
36850 | wxColour * resultptr; | |
093d3ff1 | 36851 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
36852 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
36853 | } | |
36854 | return resultobj; | |
36855 | fail: | |
36856 | return NULL; | |
36857 | } | |
36858 | ||
36859 | ||
c32bde28 | 36860 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36861 | PyObject *resultobj; |
36862 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36863 | wxColour *arg2 = 0 ; | |
36864 | wxColour temp2 ; | |
36865 | PyObject * obj0 = 0 ; | |
36866 | PyObject * obj1 = 0 ; | |
36867 | char *kwnames[] = { | |
36868 | (char *) "self",(char *) "colBack", NULL | |
36869 | }; | |
36870 | ||
36871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36874 | { |
36875 | arg2 = &temp2; | |
36876 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
36877 | } | |
36878 | { | |
36879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36880 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
36881 | ||
36882 | wxPyEndAllowThreads(__tstate); | |
36883 | if (PyErr_Occurred()) SWIG_fail; | |
36884 | } | |
36885 | Py_INCREF(Py_None); resultobj = Py_None; | |
36886 | return resultobj; | |
36887 | fail: | |
36888 | return NULL; | |
36889 | } | |
36890 | ||
36891 | ||
c32bde28 | 36892 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36893 | PyObject *resultobj; |
36894 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36895 | wxColour result; | |
36896 | PyObject * obj0 = 0 ; | |
36897 | char *kwnames[] = { | |
36898 | (char *) "self", NULL | |
36899 | }; | |
36900 | ||
36901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36902 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36903 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36904 | { |
36905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36906 | result = (arg1)->GetBackgroundColour(); | |
36907 | ||
36908 | wxPyEndAllowThreads(__tstate); | |
36909 | if (PyErr_Occurred()) SWIG_fail; | |
36910 | } | |
36911 | { | |
36912 | wxColour * resultptr; | |
093d3ff1 | 36913 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
36914 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
36915 | } | |
36916 | return resultobj; | |
36917 | fail: | |
36918 | return NULL; | |
36919 | } | |
36920 | ||
36921 | ||
c32bde28 | 36922 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36923 | PyObject *resultobj; |
36924 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36925 | wxBitmap *arg2 = 0 ; | |
36926 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
36927 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
36928 | PyObject * obj0 = 0 ; | |
36929 | PyObject * obj1 = 0 ; | |
36930 | PyObject * obj2 = 0 ; | |
36931 | char *kwnames[] = { | |
36932 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
36933 | }; | |
36934 | ||
36935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
36936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36938 | { | |
36939 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36940 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36941 | if (arg2 == NULL) { | |
36942 | SWIG_null_ref("wxBitmap"); | |
36943 | } | |
36944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36945 | } |
36946 | if (obj2) { | |
093d3ff1 RD |
36947 | { |
36948 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36949 | if (SWIG_arg_fail(3)) SWIG_fail; | |
36950 | if (arg3 == NULL) { | |
36951 | SWIG_null_ref("wxBitmap"); | |
36952 | } | |
36953 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
36954 | } |
36955 | } | |
36956 | { | |
36957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36958 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
36959 | ||
36960 | wxPyEndAllowThreads(__tstate); | |
36961 | if (PyErr_Occurred()) SWIG_fail; | |
36962 | } | |
36963 | Py_INCREF(Py_None); resultobj = Py_None; | |
36964 | return resultobj; | |
36965 | fail: | |
36966 | return NULL; | |
36967 | } | |
36968 | ||
36969 | ||
c32bde28 | 36970 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36971 | PyObject *resultobj; |
36972 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36973 | wxBitmap *arg2 = 0 ; | |
36974 | PyObject * obj0 = 0 ; | |
36975 | PyObject * obj1 = 0 ; | |
36976 | char *kwnames[] = { | |
36977 | (char *) "self",(char *) "bmpDisabled", NULL | |
36978 | }; | |
36979 | ||
36980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36983 | { | |
36984 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36985 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36986 | if (arg2 == NULL) { | |
36987 | SWIG_null_ref("wxBitmap"); | |
36988 | } | |
36989 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36990 | } |
36991 | { | |
36992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36993 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
36994 | ||
36995 | wxPyEndAllowThreads(__tstate); | |
36996 | if (PyErr_Occurred()) SWIG_fail; | |
36997 | } | |
36998 | Py_INCREF(Py_None); resultobj = Py_None; | |
36999 | return resultobj; | |
37000 | fail: | |
37001 | return NULL; | |
37002 | } | |
37003 | ||
37004 | ||
c32bde28 | 37005 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37006 | PyObject *resultobj; |
37007 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37008 | wxBitmap *result; | |
37009 | PyObject * obj0 = 0 ; | |
37010 | char *kwnames[] = { | |
37011 | (char *) "self", NULL | |
37012 | }; | |
37013 | ||
37014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37017 | { |
37018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37019 | { | |
37020 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
37021 | result = (wxBitmap *) &_result_ref; | |
37022 | } | |
37023 | ||
37024 | wxPyEndAllowThreads(__tstate); | |
37025 | if (PyErr_Occurred()) SWIG_fail; | |
37026 | } | |
37027 | { | |
37028 | wxBitmap* resultptr = new wxBitmap(*result); | |
37029 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
37030 | } | |
37031 | return resultobj; | |
37032 | fail: | |
37033 | return NULL; | |
37034 | } | |
37035 | ||
37036 | ||
c32bde28 | 37037 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37038 | PyObject *resultobj; |
37039 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37040 | int arg2 ; | |
37041 | PyObject * obj0 = 0 ; | |
37042 | PyObject * obj1 = 0 ; | |
37043 | char *kwnames[] = { | |
37044 | (char *) "self",(char *) "nWidth", NULL | |
37045 | }; | |
37046 | ||
37047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37050 | { | |
37051 | arg2 = (int)(SWIG_As_int(obj1)); | |
37052 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37053 | } | |
d55e5bfc RD |
37054 | { |
37055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37056 | (arg1)->SetMarginWidth(arg2); | |
37057 | ||
37058 | wxPyEndAllowThreads(__tstate); | |
37059 | if (PyErr_Occurred()) SWIG_fail; | |
37060 | } | |
37061 | Py_INCREF(Py_None); resultobj = Py_None; | |
37062 | return resultobj; | |
37063 | fail: | |
37064 | return NULL; | |
37065 | } | |
37066 | ||
37067 | ||
c32bde28 | 37068 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37069 | PyObject *resultobj; |
37070 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37071 | int result; | |
37072 | PyObject * obj0 = 0 ; | |
37073 | char *kwnames[] = { | |
37074 | (char *) "self", NULL | |
37075 | }; | |
37076 | ||
37077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37080 | { |
37081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37082 | result = (int)(arg1)->GetMarginWidth(); | |
37083 | ||
37084 | wxPyEndAllowThreads(__tstate); | |
37085 | if (PyErr_Occurred()) SWIG_fail; | |
37086 | } | |
093d3ff1 RD |
37087 | { |
37088 | resultobj = SWIG_From_int((int)(result)); | |
37089 | } | |
d55e5bfc RD |
37090 | return resultobj; |
37091 | fail: | |
37092 | return NULL; | |
37093 | } | |
37094 | ||
37095 | ||
c32bde28 | 37096 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37097 | PyObject *resultobj; |
37098 | int result; | |
37099 | char *kwnames[] = { | |
37100 | NULL | |
37101 | }; | |
37102 | ||
37103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
37104 | { | |
37105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37106 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
37107 | ||
37108 | wxPyEndAllowThreads(__tstate); | |
37109 | if (PyErr_Occurred()) SWIG_fail; | |
37110 | } | |
093d3ff1 RD |
37111 | { |
37112 | resultobj = SWIG_From_int((int)(result)); | |
37113 | } | |
d55e5bfc RD |
37114 | return resultobj; |
37115 | fail: | |
37116 | return NULL; | |
37117 | } | |
37118 | ||
37119 | ||
c32bde28 | 37120 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37121 | PyObject *resultobj; |
37122 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37123 | bool result; | |
37124 | PyObject * obj0 = 0 ; | |
37125 | char *kwnames[] = { | |
37126 | (char *) "self", NULL | |
37127 | }; | |
37128 | ||
37129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37132 | { |
37133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37134 | result = (bool)(arg1)->IsOwnerDrawn(); | |
37135 | ||
37136 | wxPyEndAllowThreads(__tstate); | |
37137 | if (PyErr_Occurred()) SWIG_fail; | |
37138 | } | |
37139 | { | |
37140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37141 | } | |
37142 | return resultobj; | |
37143 | fail: | |
37144 | return NULL; | |
37145 | } | |
37146 | ||
37147 | ||
c32bde28 | 37148 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37149 | PyObject *resultobj; |
37150 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 37151 | bool arg2 = (bool) true ; |
d55e5bfc RD |
37152 | PyObject * obj0 = 0 ; |
37153 | PyObject * obj1 = 0 ; | |
37154 | char *kwnames[] = { | |
37155 | (char *) "self",(char *) "ownerDrawn", NULL | |
37156 | }; | |
37157 | ||
37158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 37161 | if (obj1) { |
093d3ff1 RD |
37162 | { |
37163 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
37164 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37165 | } | |
d55e5bfc RD |
37166 | } |
37167 | { | |
37168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37169 | (arg1)->SetOwnerDrawn(arg2); | |
37170 | ||
37171 | wxPyEndAllowThreads(__tstate); | |
37172 | if (PyErr_Occurred()) SWIG_fail; | |
37173 | } | |
37174 | Py_INCREF(Py_None); resultobj = Py_None; | |
37175 | return resultobj; | |
37176 | fail: | |
37177 | return NULL; | |
37178 | } | |
37179 | ||
37180 | ||
c32bde28 | 37181 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37182 | PyObject *resultobj; |
37183 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37184 | PyObject * obj0 = 0 ; | |
37185 | char *kwnames[] = { | |
37186 | (char *) "self", NULL | |
37187 | }; | |
37188 | ||
37189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37192 | { |
37193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37194 | (arg1)->ResetOwnerDrawn(); | |
37195 | ||
37196 | wxPyEndAllowThreads(__tstate); | |
37197 | if (PyErr_Occurred()) SWIG_fail; | |
37198 | } | |
37199 | Py_INCREF(Py_None); resultobj = Py_None; | |
37200 | return resultobj; | |
37201 | fail: | |
37202 | return NULL; | |
37203 | } | |
37204 | ||
37205 | ||
c32bde28 | 37206 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37207 | PyObject *resultobj; |
37208 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37209 | wxBitmap *arg2 = 0 ; | |
37210 | PyObject * obj0 = 0 ; | |
37211 | PyObject * obj1 = 0 ; | |
37212 | char *kwnames[] = { | |
37213 | (char *) "self",(char *) "bitmap", NULL | |
37214 | }; | |
37215 | ||
37216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37219 | { | |
37220 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
37221 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37222 | if (arg2 == NULL) { | |
37223 | SWIG_null_ref("wxBitmap"); | |
37224 | } | |
37225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
37226 | } |
37227 | { | |
37228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37229 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
37230 | ||
37231 | wxPyEndAllowThreads(__tstate); | |
37232 | if (PyErr_Occurred()) SWIG_fail; | |
37233 | } | |
37234 | Py_INCREF(Py_None); resultobj = Py_None; | |
37235 | return resultobj; | |
37236 | fail: | |
37237 | return NULL; | |
37238 | } | |
37239 | ||
37240 | ||
c32bde28 | 37241 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37242 | PyObject *resultobj; |
37243 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37244 | wxBitmap *result; | |
37245 | PyObject * obj0 = 0 ; | |
37246 | char *kwnames[] = { | |
37247 | (char *) "self", NULL | |
37248 | }; | |
37249 | ||
37250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37253 | { |
37254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37255 | { | |
37256 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
37257 | result = (wxBitmap *) &_result_ref; | |
37258 | } | |
37259 | ||
37260 | wxPyEndAllowThreads(__tstate); | |
37261 | if (PyErr_Occurred()) SWIG_fail; | |
37262 | } | |
37263 | { | |
37264 | wxBitmap* resultptr = new wxBitmap(*result); | |
37265 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
37266 | } | |
37267 | return resultobj; | |
37268 | fail: | |
37269 | return NULL; | |
37270 | } | |
37271 | ||
37272 | ||
c32bde28 | 37273 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37274 | PyObject *obj; |
37275 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37276 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
37277 | Py_INCREF(obj); | |
37278 | return Py_BuildValue((char *)""); | |
37279 | } | |
c32bde28 | 37280 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
37281 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
37282 | return 1; | |
37283 | } | |
37284 | ||
37285 | ||
093d3ff1 | 37286 | static PyObject *_wrap_ControlNameStr_get(void) { |
d55e5bfc RD |
37287 | PyObject *pyobj; |
37288 | ||
37289 | { | |
37290 | #if wxUSE_UNICODE | |
37291 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
37292 | #else | |
37293 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
37294 | #endif | |
37295 | } | |
37296 | return pyobj; | |
37297 | } | |
37298 | ||
37299 | ||
c32bde28 | 37300 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37301 | PyObject *resultobj; |
37302 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 37303 | int arg2 = (int) -1 ; |
d55e5bfc RD |
37304 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
37305 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
37306 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
37307 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
37308 | long arg5 = (long) 0 ; | |
37309 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
37310 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
37311 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
37312 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
37313 | wxControl *result; | |
37314 | wxPoint temp3 ; | |
37315 | wxSize temp4 ; | |
ae8162c8 | 37316 | bool temp7 = false ; |
d55e5bfc RD |
37317 | PyObject * obj0 = 0 ; |
37318 | PyObject * obj1 = 0 ; | |
37319 | PyObject * obj2 = 0 ; | |
37320 | PyObject * obj3 = 0 ; | |
37321 | PyObject * obj4 = 0 ; | |
37322 | PyObject * obj5 = 0 ; | |
37323 | PyObject * obj6 = 0 ; | |
37324 | char *kwnames[] = { | |
37325 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
37326 | }; | |
37327 | ||
248ed943 | 37328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
37329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
37330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 37331 | if (obj1) { |
093d3ff1 RD |
37332 | { |
37333 | arg2 = (int)(SWIG_As_int(obj1)); | |
37334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37335 | } | |
248ed943 | 37336 | } |
d55e5bfc RD |
37337 | if (obj2) { |
37338 | { | |
37339 | arg3 = &temp3; | |
37340 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37341 | } | |
37342 | } | |
37343 | if (obj3) { | |
37344 | { | |
37345 | arg4 = &temp4; | |
37346 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
37347 | } | |
37348 | } | |
37349 | if (obj4) { | |
093d3ff1 RD |
37350 | { |
37351 | arg5 = (long)(SWIG_As_long(obj4)); | |
37352 | if (SWIG_arg_fail(5)) SWIG_fail; | |
37353 | } | |
d55e5bfc RD |
37354 | } |
37355 | if (obj5) { | |
093d3ff1 RD |
37356 | { |
37357 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
37358 | if (SWIG_arg_fail(6)) SWIG_fail; | |
37359 | if (arg6 == NULL) { | |
37360 | SWIG_null_ref("wxValidator"); | |
37361 | } | |
37362 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
37363 | } |
37364 | } | |
37365 | if (obj6) { | |
37366 | { | |
37367 | arg7 = wxString_in_helper(obj6); | |
37368 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 37369 | temp7 = true; |
d55e5bfc RD |
37370 | } |
37371 | } | |
37372 | { | |
0439c23b | 37373 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
37374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
37375 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
37376 | ||
37377 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 37378 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 37379 | } |
b0f7404b | 37380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
37381 | { |
37382 | if (temp7) | |
37383 | delete arg7; | |
37384 | } | |
37385 | return resultobj; | |
37386 | fail: | |
37387 | { | |
37388 | if (temp7) | |
37389 | delete arg7; | |
37390 | } | |
37391 | return NULL; | |
37392 | } | |
37393 | ||
37394 | ||
c32bde28 | 37395 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37396 | PyObject *resultobj; |
37397 | wxControl *result; | |
37398 | char *kwnames[] = { | |
37399 | NULL | |
37400 | }; | |
37401 | ||
37402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
37403 | { | |
0439c23b | 37404 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
37405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
37406 | result = (wxControl *)new wxControl(); | |
37407 | ||
37408 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 37409 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 37410 | } |
b0f7404b | 37411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
37412 | return resultobj; |
37413 | fail: | |
37414 | return NULL; | |
37415 | } | |
37416 | ||
37417 | ||
c32bde28 | 37418 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37419 | PyObject *resultobj; |
37420 | wxControl *arg1 = (wxControl *) 0 ; | |
37421 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 37422 | int arg3 = (int) -1 ; |
d55e5bfc RD |
37423 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
37424 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
37425 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
37426 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
37427 | long arg6 = (long) 0 ; | |
37428 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
37429 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
37430 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
37431 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
37432 | bool result; | |
37433 | wxPoint temp4 ; | |
37434 | wxSize temp5 ; | |
ae8162c8 | 37435 | bool temp8 = false ; |
d55e5bfc RD |
37436 | PyObject * obj0 = 0 ; |
37437 | PyObject * obj1 = 0 ; | |
37438 | PyObject * obj2 = 0 ; | |
37439 | PyObject * obj3 = 0 ; | |
37440 | PyObject * obj4 = 0 ; | |
37441 | PyObject * obj5 = 0 ; | |
37442 | PyObject * obj6 = 0 ; | |
37443 | PyObject * obj7 = 0 ; | |
37444 | char *kwnames[] = { | |
37445 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
37446 | }; | |
37447 | ||
248ed943 | 37448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
37449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
37450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37451 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
37452 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 37453 | if (obj2) { |
093d3ff1 RD |
37454 | { |
37455 | arg3 = (int)(SWIG_As_int(obj2)); | |
37456 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37457 | } | |
248ed943 | 37458 | } |
d55e5bfc RD |
37459 | if (obj3) { |
37460 | { | |
37461 | arg4 = &temp4; | |
37462 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
37463 | } | |
37464 | } | |
37465 | if (obj4) { | |
37466 | { | |
37467 | arg5 = &temp5; | |
37468 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
37469 | } | |
37470 | } | |
37471 | if (obj5) { | |
093d3ff1 RD |
37472 | { |
37473 | arg6 = (long)(SWIG_As_long(obj5)); | |
37474 | if (SWIG_arg_fail(6)) SWIG_fail; | |
37475 | } | |
d55e5bfc RD |
37476 | } |
37477 | if (obj6) { | |
093d3ff1 RD |
37478 | { |
37479 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
37480 | if (SWIG_arg_fail(7)) SWIG_fail; | |
37481 | if (arg7 == NULL) { | |
37482 | SWIG_null_ref("wxValidator"); | |
37483 | } | |
37484 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
37485 | } |
37486 | } | |
37487 | if (obj7) { | |
37488 | { | |
37489 | arg8 = wxString_in_helper(obj7); | |
37490 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 37491 | temp8 = true; |
d55e5bfc RD |
37492 | } |
37493 | } | |
37494 | { | |
37495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37496 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
37497 | ||
37498 | wxPyEndAllowThreads(__tstate); | |
37499 | if (PyErr_Occurred()) SWIG_fail; | |
37500 | } | |
37501 | { | |
37502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37503 | } | |
37504 | { | |
37505 | if (temp8) | |
37506 | delete arg8; | |
37507 | } | |
37508 | return resultobj; | |
37509 | fail: | |
37510 | { | |
37511 | if (temp8) | |
37512 | delete arg8; | |
37513 | } | |
37514 | return NULL; | |
37515 | } | |
37516 | ||
37517 | ||
c32bde28 | 37518 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37519 | PyObject *resultobj; |
37520 | wxControl *arg1 = (wxControl *) 0 ; | |
37521 | wxCommandEvent *arg2 = 0 ; | |
37522 | PyObject * obj0 = 0 ; | |
37523 | PyObject * obj1 = 0 ; | |
37524 | char *kwnames[] = { | |
37525 | (char *) "self",(char *) "event", NULL | |
37526 | }; | |
37527 | ||
37528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
37530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37531 | { | |
37532 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); | |
37533 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37534 | if (arg2 == NULL) { | |
37535 | SWIG_null_ref("wxCommandEvent"); | |
37536 | } | |
37537 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
37538 | } |
37539 | { | |
37540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37541 | (arg1)->Command(*arg2); | |
37542 | ||
37543 | wxPyEndAllowThreads(__tstate); | |
37544 | if (PyErr_Occurred()) SWIG_fail; | |
37545 | } | |
37546 | Py_INCREF(Py_None); resultobj = Py_None; | |
37547 | return resultobj; | |
37548 | fail: | |
37549 | return NULL; | |
37550 | } | |
37551 | ||
37552 | ||
c32bde28 | 37553 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37554 | PyObject *resultobj; |
37555 | wxControl *arg1 = (wxControl *) 0 ; | |
37556 | wxString result; | |
37557 | PyObject * obj0 = 0 ; | |
37558 | char *kwnames[] = { | |
37559 | (char *) "self", NULL | |
37560 | }; | |
37561 | ||
37562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
37564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37565 | { |
37566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37567 | result = (arg1)->GetLabel(); | |
37568 | ||
37569 | wxPyEndAllowThreads(__tstate); | |
37570 | if (PyErr_Occurred()) SWIG_fail; | |
37571 | } | |
37572 | { | |
37573 | #if wxUSE_UNICODE | |
37574 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37575 | #else | |
37576 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37577 | #endif | |
37578 | } | |
37579 | return resultobj; | |
37580 | fail: | |
37581 | return NULL; | |
37582 | } | |
37583 | ||
37584 | ||
c32bde28 | 37585 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37586 | PyObject *resultobj; |
37587 | wxControl *arg1 = (wxControl *) 0 ; | |
37588 | wxString *arg2 = 0 ; | |
ae8162c8 | 37589 | bool temp2 = false ; |
d55e5bfc RD |
37590 | PyObject * obj0 = 0 ; |
37591 | PyObject * obj1 = 0 ; | |
37592 | char *kwnames[] = { | |
37593 | (char *) "self",(char *) "label", NULL | |
37594 | }; | |
37595 | ||
37596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
37598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37599 | { |
37600 | arg2 = wxString_in_helper(obj1); | |
37601 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 37602 | temp2 = true; |
d55e5bfc RD |
37603 | } |
37604 | { | |
37605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37606 | (arg1)->SetLabel((wxString const &)*arg2); | |
37607 | ||
37608 | wxPyEndAllowThreads(__tstate); | |
37609 | if (PyErr_Occurred()) SWIG_fail; | |
37610 | } | |
37611 | Py_INCREF(Py_None); resultobj = Py_None; | |
37612 | { | |
37613 | if (temp2) | |
37614 | delete arg2; | |
37615 | } | |
37616 | return resultobj; | |
37617 | fail: | |
37618 | { | |
37619 | if (temp2) | |
37620 | delete arg2; | |
37621 | } | |
37622 | return NULL; | |
37623 | } | |
37624 | ||
37625 | ||
c32bde28 | 37626 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 37627 | PyObject *resultobj; |
093d3ff1 | 37628 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
37629 | wxVisualAttributes result; |
37630 | PyObject * obj0 = 0 ; | |
37631 | char *kwnames[] = { | |
37632 | (char *) "variant", NULL | |
37633 | }; | |
37634 | ||
37635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
37636 | if (obj0) { | |
093d3ff1 RD |
37637 | { |
37638 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
37639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37640 | } | |
d55e5bfc RD |
37641 | } |
37642 | { | |
a001823c | 37643 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
37644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
37645 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
37646 | ||
37647 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 37648 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
37649 | } |
37650 | { | |
37651 | wxVisualAttributes * resultptr; | |
093d3ff1 | 37652 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
37653 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
37654 | } | |
37655 | return resultobj; | |
37656 | fail: | |
37657 | return NULL; | |
37658 | } | |
37659 | ||
37660 | ||
c32bde28 | 37661 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37662 | PyObject *obj; |
37663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37664 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
37665 | Py_INCREF(obj); | |
37666 | return Py_BuildValue((char *)""); | |
37667 | } | |
c32bde28 | 37668 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37669 | PyObject *resultobj; |
37670 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37671 | wxString *arg2 = 0 ; | |
37672 | PyObject *arg3 = (PyObject *) NULL ; | |
37673 | int result; | |
ae8162c8 | 37674 | bool temp2 = false ; |
d55e5bfc RD |
37675 | PyObject * obj0 = 0 ; |
37676 | PyObject * obj1 = 0 ; | |
37677 | PyObject * obj2 = 0 ; | |
37678 | char *kwnames[] = { | |
37679 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
37680 | }; | |
37681 | ||
37682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
37683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37685 | { |
37686 | arg2 = wxString_in_helper(obj1); | |
37687 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 37688 | temp2 = true; |
d55e5bfc RD |
37689 | } |
37690 | if (obj2) { | |
37691 | arg3 = obj2; | |
37692 | } | |
37693 | { | |
37694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37695 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
37696 | ||
37697 | wxPyEndAllowThreads(__tstate); | |
37698 | if (PyErr_Occurred()) SWIG_fail; | |
37699 | } | |
093d3ff1 RD |
37700 | { |
37701 | resultobj = SWIG_From_int((int)(result)); | |
37702 | } | |
d55e5bfc RD |
37703 | { |
37704 | if (temp2) | |
37705 | delete arg2; | |
37706 | } | |
37707 | return resultobj; | |
37708 | fail: | |
37709 | { | |
37710 | if (temp2) | |
37711 | delete arg2; | |
37712 | } | |
37713 | return NULL; | |
37714 | } | |
37715 | ||
37716 | ||
c32bde28 | 37717 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37718 | PyObject *resultobj; |
37719 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37720 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 37721 | bool temp2 = false ; |
d55e5bfc RD |
37722 | PyObject * obj0 = 0 ; |
37723 | PyObject * obj1 = 0 ; | |
37724 | char *kwnames[] = { | |
37725 | (char *) "self",(char *) "strings", NULL | |
37726 | }; | |
37727 | ||
37728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37731 | { |
37732 | if (! PySequence_Check(obj1)) { | |
37733 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
37734 | SWIG_fail; | |
37735 | } | |
37736 | arg2 = new wxArrayString; | |
ae8162c8 | 37737 | temp2 = true; |
d55e5bfc RD |
37738 | int i, len=PySequence_Length(obj1); |
37739 | for (i=0; i<len; i++) { | |
37740 | PyObject* item = PySequence_GetItem(obj1, i); | |
37741 | #if wxUSE_UNICODE | |
37742 | PyObject* str = PyObject_Unicode(item); | |
37743 | #else | |
37744 | PyObject* str = PyObject_Str(item); | |
37745 | #endif | |
37746 | if (PyErr_Occurred()) SWIG_fail; | |
37747 | arg2->Add(Py2wxString(str)); | |
37748 | Py_DECREF(item); | |
37749 | Py_DECREF(str); | |
37750 | } | |
37751 | } | |
37752 | { | |
37753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37754 | (arg1)->Append((wxArrayString const &)*arg2); | |
37755 | ||
37756 | wxPyEndAllowThreads(__tstate); | |
37757 | if (PyErr_Occurred()) SWIG_fail; | |
37758 | } | |
37759 | Py_INCREF(Py_None); resultobj = Py_None; | |
37760 | { | |
37761 | if (temp2) delete arg2; | |
37762 | } | |
37763 | return resultobj; | |
37764 | fail: | |
37765 | { | |
37766 | if (temp2) delete arg2; | |
37767 | } | |
37768 | return NULL; | |
37769 | } | |
37770 | ||
37771 | ||
c32bde28 | 37772 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37773 | PyObject *resultobj; |
37774 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37775 | wxString *arg2 = 0 ; | |
37776 | int arg3 ; | |
37777 | PyObject *arg4 = (PyObject *) NULL ; | |
37778 | int result; | |
ae8162c8 | 37779 | bool temp2 = false ; |
d55e5bfc RD |
37780 | PyObject * obj0 = 0 ; |
37781 | PyObject * obj1 = 0 ; | |
37782 | PyObject * obj2 = 0 ; | |
37783 | PyObject * obj3 = 0 ; | |
37784 | char *kwnames[] = { | |
37785 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
37786 | }; | |
37787 | ||
37788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
37789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37791 | { |
37792 | arg2 = wxString_in_helper(obj1); | |
37793 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 37794 | temp2 = true; |
d55e5bfc | 37795 | } |
093d3ff1 RD |
37796 | { |
37797 | arg3 = (int)(SWIG_As_int(obj2)); | |
37798 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37799 | } | |
d55e5bfc RD |
37800 | if (obj3) { |
37801 | arg4 = obj3; | |
37802 | } | |
37803 | { | |
37804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37805 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
37806 | ||
37807 | wxPyEndAllowThreads(__tstate); | |
37808 | if (PyErr_Occurred()) SWIG_fail; | |
37809 | } | |
093d3ff1 RD |
37810 | { |
37811 | resultobj = SWIG_From_int((int)(result)); | |
37812 | } | |
d55e5bfc RD |
37813 | { |
37814 | if (temp2) | |
37815 | delete arg2; | |
37816 | } | |
37817 | return resultobj; | |
37818 | fail: | |
37819 | { | |
37820 | if (temp2) | |
37821 | delete arg2; | |
37822 | } | |
37823 | return NULL; | |
37824 | } | |
37825 | ||
37826 | ||
c32bde28 | 37827 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37828 | PyObject *resultobj; |
37829 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37830 | PyObject * obj0 = 0 ; | |
37831 | char *kwnames[] = { | |
37832 | (char *) "self", NULL | |
37833 | }; | |
37834 | ||
37835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37838 | { |
37839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37840 | (arg1)->Clear(); | |
37841 | ||
37842 | wxPyEndAllowThreads(__tstate); | |
37843 | if (PyErr_Occurred()) SWIG_fail; | |
37844 | } | |
37845 | Py_INCREF(Py_None); resultobj = Py_None; | |
37846 | return resultobj; | |
37847 | fail: | |
37848 | return NULL; | |
37849 | } | |
37850 | ||
37851 | ||
c32bde28 | 37852 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37853 | PyObject *resultobj; |
37854 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37855 | int arg2 ; | |
37856 | PyObject * obj0 = 0 ; | |
37857 | PyObject * obj1 = 0 ; | |
37858 | char *kwnames[] = { | |
37859 | (char *) "self",(char *) "n", NULL | |
37860 | }; | |
37861 | ||
37862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37863 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37864 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37865 | { | |
37866 | arg2 = (int)(SWIG_As_int(obj1)); | |
37867 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37868 | } | |
d55e5bfc RD |
37869 | { |
37870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37871 | (arg1)->Delete(arg2); | |
37872 | ||
37873 | wxPyEndAllowThreads(__tstate); | |
37874 | if (PyErr_Occurred()) SWIG_fail; | |
37875 | } | |
37876 | Py_INCREF(Py_None); resultobj = Py_None; | |
37877 | return resultobj; | |
37878 | fail: | |
37879 | return NULL; | |
37880 | } | |
37881 | ||
37882 | ||
53aa7709 RD |
37883 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
37884 | PyObject *resultobj; | |
37885 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37886 | int arg2 ; | |
37887 | PyObject *result; | |
37888 | PyObject * obj0 = 0 ; | |
37889 | PyObject * obj1 = 0 ; | |
37890 | char *kwnames[] = { | |
37891 | (char *) "self",(char *) "n", NULL | |
37892 | }; | |
37893 | ||
37894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
37895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); | |
37896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37897 | { | |
37898 | arg2 = (int)(SWIG_As_int(obj1)); | |
37899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37900 | } | |
37901 | { | |
37902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37903 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
37904 | ||
37905 | wxPyEndAllowThreads(__tstate); | |
37906 | if (PyErr_Occurred()) SWIG_fail; | |
37907 | } | |
37908 | resultobj = result; | |
37909 | return resultobj; | |
37910 | fail: | |
37911 | return NULL; | |
37912 | } | |
37913 | ||
37914 | ||
37915 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { | |
37916 | PyObject *resultobj; | |
37917 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37918 | int arg2 ; | |
37919 | PyObject *arg3 = (PyObject *) 0 ; | |
37920 | PyObject * obj0 = 0 ; | |
37921 | PyObject * obj1 = 0 ; | |
37922 | PyObject * obj2 = 0 ; | |
37923 | char *kwnames[] = { | |
37924 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
37925 | }; | |
37926 | ||
37927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); | |
37929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37930 | { | |
37931 | arg2 = (int)(SWIG_As_int(obj1)); | |
37932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37933 | } | |
37934 | arg3 = obj2; | |
37935 | { | |
37936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37937 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
37938 | ||
37939 | wxPyEndAllowThreads(__tstate); | |
37940 | if (PyErr_Occurred()) SWIG_fail; | |
37941 | } | |
37942 | Py_INCREF(Py_None); resultobj = Py_None; | |
37943 | return resultobj; | |
37944 | fail: | |
37945 | return NULL; | |
37946 | } | |
37947 | ||
37948 | ||
c32bde28 | 37949 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37950 | PyObject *resultobj; |
37951 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37952 | int result; | |
37953 | PyObject * obj0 = 0 ; | |
37954 | char *kwnames[] = { | |
37955 | (char *) "self", NULL | |
37956 | }; | |
37957 | ||
37958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37959 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37960 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37961 | { |
37962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37963 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
37964 | ||
37965 | wxPyEndAllowThreads(__tstate); | |
37966 | if (PyErr_Occurred()) SWIG_fail; | |
37967 | } | |
093d3ff1 RD |
37968 | { |
37969 | resultobj = SWIG_From_int((int)(result)); | |
37970 | } | |
d55e5bfc RD |
37971 | return resultobj; |
37972 | fail: | |
37973 | return NULL; | |
37974 | } | |
37975 | ||
37976 | ||
c32bde28 | 37977 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37978 | PyObject *resultobj; |
37979 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37980 | bool result; | |
37981 | PyObject * obj0 = 0 ; | |
37982 | char *kwnames[] = { | |
37983 | (char *) "self", NULL | |
37984 | }; | |
37985 | ||
37986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37987 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37988 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37989 | { |
37990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37991 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
37992 | ||
37993 | wxPyEndAllowThreads(__tstate); | |
37994 | if (PyErr_Occurred()) SWIG_fail; | |
37995 | } | |
37996 | { | |
37997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37998 | } | |
37999 | return resultobj; | |
38000 | fail: | |
38001 | return NULL; | |
38002 | } | |
38003 | ||
38004 | ||
c32bde28 | 38005 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38006 | PyObject *resultobj; |
38007 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38008 | int arg2 ; | |
38009 | wxString result; | |
38010 | PyObject * obj0 = 0 ; | |
38011 | PyObject * obj1 = 0 ; | |
38012 | char *kwnames[] = { | |
38013 | (char *) "self",(char *) "n", NULL | |
38014 | }; | |
38015 | ||
38016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38019 | { | |
38020 | arg2 = (int)(SWIG_As_int(obj1)); | |
38021 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38022 | } | |
d55e5bfc RD |
38023 | { |
38024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38025 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
38026 | ||
38027 | wxPyEndAllowThreads(__tstate); | |
38028 | if (PyErr_Occurred()) SWIG_fail; | |
38029 | } | |
38030 | { | |
38031 | #if wxUSE_UNICODE | |
38032 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38033 | #else | |
38034 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38035 | #endif | |
38036 | } | |
38037 | return resultobj; | |
38038 | fail: | |
38039 | return NULL; | |
38040 | } | |
38041 | ||
38042 | ||
c32bde28 | 38043 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38044 | PyObject *resultobj; |
38045 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38046 | wxArrayString result; | |
38047 | PyObject * obj0 = 0 ; | |
38048 | char *kwnames[] = { | |
38049 | (char *) "self", NULL | |
38050 | }; | |
38051 | ||
38052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38055 | { |
38056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38057 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
38058 | ||
38059 | wxPyEndAllowThreads(__tstate); | |
38060 | if (PyErr_Occurred()) SWIG_fail; | |
38061 | } | |
38062 | { | |
38063 | resultobj = wxArrayString2PyList_helper(result); | |
38064 | } | |
38065 | return resultobj; | |
38066 | fail: | |
38067 | return NULL; | |
38068 | } | |
38069 | ||
38070 | ||
c32bde28 | 38071 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38072 | PyObject *resultobj; |
38073 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38074 | int arg2 ; | |
38075 | wxString *arg3 = 0 ; | |
ae8162c8 | 38076 | bool temp3 = false ; |
d55e5bfc RD |
38077 | PyObject * obj0 = 0 ; |
38078 | PyObject * obj1 = 0 ; | |
38079 | PyObject * obj2 = 0 ; | |
38080 | char *kwnames[] = { | |
38081 | (char *) "self",(char *) "n",(char *) "s", NULL | |
38082 | }; | |
38083 | ||
38084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
38085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38087 | { | |
38088 | arg2 = (int)(SWIG_As_int(obj1)); | |
38089 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38090 | } | |
d55e5bfc RD |
38091 | { |
38092 | arg3 = wxString_in_helper(obj2); | |
38093 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 38094 | temp3 = true; |
d55e5bfc RD |
38095 | } |
38096 | { | |
38097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38098 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
38099 | ||
38100 | wxPyEndAllowThreads(__tstate); | |
38101 | if (PyErr_Occurred()) SWIG_fail; | |
38102 | } | |
38103 | Py_INCREF(Py_None); resultobj = Py_None; | |
38104 | { | |
38105 | if (temp3) | |
38106 | delete arg3; | |
38107 | } | |
38108 | return resultobj; | |
38109 | fail: | |
38110 | { | |
38111 | if (temp3) | |
38112 | delete arg3; | |
38113 | } | |
38114 | return NULL; | |
38115 | } | |
38116 | ||
38117 | ||
c32bde28 | 38118 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38119 | PyObject *resultobj; |
38120 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38121 | wxString *arg2 = 0 ; | |
38122 | int result; | |
ae8162c8 | 38123 | bool temp2 = false ; |
d55e5bfc RD |
38124 | PyObject * obj0 = 0 ; |
38125 | PyObject * obj1 = 0 ; | |
38126 | char *kwnames[] = { | |
38127 | (char *) "self",(char *) "s", NULL | |
38128 | }; | |
38129 | ||
38130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38133 | { |
38134 | arg2 = wxString_in_helper(obj1); | |
38135 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 38136 | temp2 = true; |
d55e5bfc RD |
38137 | } |
38138 | { | |
38139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38140 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
38141 | ||
38142 | wxPyEndAllowThreads(__tstate); | |
38143 | if (PyErr_Occurred()) SWIG_fail; | |
38144 | } | |
093d3ff1 RD |
38145 | { |
38146 | resultobj = SWIG_From_int((int)(result)); | |
38147 | } | |
d55e5bfc RD |
38148 | { |
38149 | if (temp2) | |
38150 | delete arg2; | |
38151 | } | |
38152 | return resultobj; | |
38153 | fail: | |
38154 | { | |
38155 | if (temp2) | |
38156 | delete arg2; | |
38157 | } | |
38158 | return NULL; | |
38159 | } | |
38160 | ||
38161 | ||
53aa7709 | 38162 | static PyObject *_wrap_ItemContainer_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38163 | PyObject *resultobj; |
38164 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38165 | int arg2 ; | |
38166 | PyObject * obj0 = 0 ; | |
38167 | PyObject * obj1 = 0 ; | |
38168 | char *kwnames[] = { | |
38169 | (char *) "self",(char *) "n", NULL | |
38170 | }; | |
38171 | ||
53aa7709 | 38172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
38173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38175 | { | |
38176 | arg2 = (int)(SWIG_As_int(obj1)); | |
38177 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38178 | } | |
d55e5bfc RD |
38179 | { |
38180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 38181 | (arg1)->SetSelection(arg2); |
d55e5bfc RD |
38182 | |
38183 | wxPyEndAllowThreads(__tstate); | |
38184 | if (PyErr_Occurred()) SWIG_fail; | |
38185 | } | |
38186 | Py_INCREF(Py_None); resultobj = Py_None; | |
38187 | return resultobj; | |
38188 | fail: | |
38189 | return NULL; | |
38190 | } | |
38191 | ||
38192 | ||
c32bde28 | 38193 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38194 | PyObject *resultobj; |
38195 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38196 | int result; | |
38197 | PyObject * obj0 = 0 ; | |
38198 | char *kwnames[] = { | |
38199 | (char *) "self", NULL | |
38200 | }; | |
38201 | ||
38202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38203 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38204 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38205 | { |
38206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38207 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
38208 | ||
38209 | wxPyEndAllowThreads(__tstate); | |
38210 | if (PyErr_Occurred()) SWIG_fail; | |
38211 | } | |
093d3ff1 RD |
38212 | { |
38213 | resultobj = SWIG_From_int((int)(result)); | |
38214 | } | |
d55e5bfc RD |
38215 | return resultobj; |
38216 | fail: | |
38217 | return NULL; | |
38218 | } | |
38219 | ||
38220 | ||
53aa7709 | 38221 | static PyObject *_wrap_ItemContainer_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38222 | PyObject *resultobj; |
38223 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
53aa7709 RD |
38224 | wxString *arg2 = 0 ; |
38225 | bool result; | |
38226 | bool temp2 = false ; | |
d55e5bfc | 38227 | PyObject * obj0 = 0 ; |
53aa7709 | 38228 | PyObject * obj1 = 0 ; |
d55e5bfc | 38229 | char *kwnames[] = { |
53aa7709 | 38230 | (char *) "self",(char *) "s", NULL |
d55e5bfc RD |
38231 | }; |
38232 | ||
53aa7709 | 38233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
38234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
53aa7709 RD |
38236 | { |
38237 | arg2 = wxString_in_helper(obj1); | |
38238 | if (arg2 == NULL) SWIG_fail; | |
38239 | temp2 = true; | |
38240 | } | |
d55e5bfc RD |
38241 | { |
38242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 38243 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d55e5bfc RD |
38244 | |
38245 | wxPyEndAllowThreads(__tstate); | |
38246 | if (PyErr_Occurred()) SWIG_fail; | |
38247 | } | |
38248 | { | |
53aa7709 RD |
38249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
38250 | } | |
38251 | { | |
38252 | if (temp2) | |
38253 | delete arg2; | |
d55e5bfc RD |
38254 | } |
38255 | return resultobj; | |
38256 | fail: | |
53aa7709 RD |
38257 | { |
38258 | if (temp2) | |
38259 | delete arg2; | |
38260 | } | |
d55e5bfc RD |
38261 | return NULL; |
38262 | } | |
38263 | ||
38264 | ||
53aa7709 | 38265 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38266 | PyObject *resultobj; |
38267 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
53aa7709 | 38268 | wxString result; |
d55e5bfc | 38269 | PyObject * obj0 = 0 ; |
d55e5bfc | 38270 | char *kwnames[] = { |
53aa7709 | 38271 | (char *) "self", NULL |
d55e5bfc RD |
38272 | }; |
38273 | ||
53aa7709 | 38274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
38275 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38276 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38277 | { |
38278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 38279 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); |
d55e5bfc RD |
38280 | |
38281 | wxPyEndAllowThreads(__tstate); | |
38282 | if (PyErr_Occurred()) SWIG_fail; | |
38283 | } | |
53aa7709 RD |
38284 | { |
38285 | #if wxUSE_UNICODE | |
38286 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38287 | #else | |
38288 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38289 | #endif | |
38290 | } | |
d55e5bfc RD |
38291 | return resultobj; |
38292 | fail: | |
38293 | return NULL; | |
38294 | } | |
38295 | ||
38296 | ||
53aa7709 | 38297 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38298 | PyObject *resultobj; |
38299 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38300 | int arg2 ; | |
d55e5bfc RD |
38301 | PyObject * obj0 = 0 ; |
38302 | PyObject * obj1 = 0 ; | |
d55e5bfc | 38303 | char *kwnames[] = { |
53aa7709 | 38304 | (char *) "self",(char *) "n", NULL |
d55e5bfc RD |
38305 | }; |
38306 | ||
53aa7709 | 38307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
38308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38310 | { | |
38311 | arg2 = (int)(SWIG_As_int(obj1)); | |
38312 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38313 | } | |
d55e5bfc RD |
38314 | { |
38315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 38316 | (arg1)->Select(arg2); |
d55e5bfc RD |
38317 | |
38318 | wxPyEndAllowThreads(__tstate); | |
38319 | if (PyErr_Occurred()) SWIG_fail; | |
38320 | } | |
38321 | Py_INCREF(Py_None); resultobj = Py_None; | |
38322 | return resultobj; | |
38323 | fail: | |
38324 | return NULL; | |
38325 | } | |
38326 | ||
38327 | ||
c32bde28 | 38328 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38329 | PyObject *obj; |
38330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38331 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
38332 | Py_INCREF(obj); | |
38333 | return Py_BuildValue((char *)""); | |
38334 | } | |
c32bde28 | 38335 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38336 | PyObject *obj; |
38337 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38338 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
38339 | Py_INCREF(obj); | |
38340 | return Py_BuildValue((char *)""); | |
38341 | } | |
c32bde28 | 38342 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38343 | PyObject *resultobj; |
38344 | wxSizerItem *result; | |
38345 | char *kwnames[] = { | |
38346 | NULL | |
38347 | }; | |
38348 | ||
38349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
38350 | { | |
38351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38352 | result = (wxSizerItem *)new wxSizerItem(); | |
38353 | ||
38354 | wxPyEndAllowThreads(__tstate); | |
38355 | if (PyErr_Occurred()) SWIG_fail; | |
38356 | } | |
38357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
38358 | return resultobj; | |
38359 | fail: | |
38360 | return NULL; | |
38361 | } | |
38362 | ||
38363 | ||
c32bde28 | 38364 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 38365 | PyObject *resultobj; |
248ed943 | 38366 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
38367 | int arg2 ; |
38368 | int arg3 ; | |
38369 | int arg4 ; | |
248ed943 | 38370 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
38371 | wxSizerItem *result; |
38372 | PyObject * obj0 = 0 ; | |
38373 | PyObject * obj1 = 0 ; | |
38374 | PyObject * obj2 = 0 ; | |
38375 | PyObject * obj3 = 0 ; | |
38376 | PyObject * obj4 = 0 ; | |
d55e5bfc | 38377 | char *kwnames[] = { |
248ed943 | 38378 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
38379 | }; |
38380 | ||
248ed943 | 38381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
38382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
38383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38384 | { | |
38385 | arg2 = (int)(SWIG_As_int(obj1)); | |
38386 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38387 | } | |
38388 | { | |
38389 | arg3 = (int)(SWIG_As_int(obj2)); | |
38390 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38391 | } | |
38392 | { | |
38393 | arg4 = (int)(SWIG_As_int(obj3)); | |
38394 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38395 | } | |
248ed943 RD |
38396 | if (obj4) { |
38397 | arg5 = obj4; | |
38398 | } | |
d55e5bfc RD |
38399 | { |
38400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38401 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
38402 | |
38403 | wxPyEndAllowThreads(__tstate); | |
38404 | if (PyErr_Occurred()) SWIG_fail; | |
38405 | } | |
38406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
38407 | return resultobj; | |
38408 | fail: | |
38409 | return NULL; | |
38410 | } | |
38411 | ||
38412 | ||
c32bde28 | 38413 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 38414 | PyObject *resultobj; |
248ed943 | 38415 | int arg1 ; |
d55e5bfc RD |
38416 | int arg2 ; |
38417 | int arg3 ; | |
38418 | int arg4 ; | |
248ed943 RD |
38419 | int arg5 ; |
38420 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
38421 | wxSizerItem *result; |
38422 | PyObject * obj0 = 0 ; | |
38423 | PyObject * obj1 = 0 ; | |
38424 | PyObject * obj2 = 0 ; | |
38425 | PyObject * obj3 = 0 ; | |
38426 | PyObject * obj4 = 0 ; | |
248ed943 | 38427 | PyObject * obj5 = 0 ; |
d55e5bfc | 38428 | char *kwnames[] = { |
248ed943 | 38429 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
38430 | }; |
38431 | ||
248ed943 | 38432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
38433 | { |
38434 | arg1 = (int)(SWIG_As_int(obj0)); | |
38435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38436 | } | |
38437 | { | |
38438 | arg2 = (int)(SWIG_As_int(obj1)); | |
38439 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38440 | } | |
38441 | { | |
38442 | arg3 = (int)(SWIG_As_int(obj2)); | |
38443 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38444 | } | |
38445 | { | |
38446 | arg4 = (int)(SWIG_As_int(obj3)); | |
38447 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38448 | } | |
38449 | { | |
38450 | arg5 = (int)(SWIG_As_int(obj4)); | |
38451 | if (SWIG_arg_fail(5)) SWIG_fail; | |
38452 | } | |
248ed943 RD |
38453 | if (obj5) { |
38454 | arg6 = obj5; | |
38455 | } | |
d55e5bfc RD |
38456 | { |
38457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38458 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38459 | |
38460 | wxPyEndAllowThreads(__tstate); | |
38461 | if (PyErr_Occurred()) SWIG_fail; | |
38462 | } | |
38463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
38464 | return resultobj; | |
38465 | fail: | |
38466 | return NULL; | |
38467 | } | |
38468 | ||
38469 | ||
c32bde28 | 38470 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38471 | PyObject *resultobj; |
38472 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38473 | int arg2 ; | |
38474 | int arg3 ; | |
38475 | int arg4 ; | |
248ed943 | 38476 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
38477 | wxSizerItem *result; |
38478 | PyObject * obj0 = 0 ; | |
38479 | PyObject * obj1 = 0 ; | |
38480 | PyObject * obj2 = 0 ; | |
38481 | PyObject * obj3 = 0 ; | |
38482 | PyObject * obj4 = 0 ; | |
38483 | char *kwnames[] = { | |
38484 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38485 | }; | |
38486 | ||
248ed943 | 38487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
38488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38490 | { | |
38491 | arg2 = (int)(SWIG_As_int(obj1)); | |
38492 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38493 | } | |
38494 | { | |
38495 | arg3 = (int)(SWIG_As_int(obj2)); | |
38496 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38497 | } | |
38498 | { | |
38499 | arg4 = (int)(SWIG_As_int(obj3)); | |
38500 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38501 | } | |
248ed943 RD |
38502 | if (obj4) { |
38503 | arg5 = obj4; | |
38504 | } | |
d55e5bfc RD |
38505 | { |
38506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38507 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
38508 | |
38509 | wxPyEndAllowThreads(__tstate); | |
38510 | if (PyErr_Occurred()) SWIG_fail; | |
38511 | } | |
38512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
38513 | return resultobj; | |
38514 | fail: | |
38515 | return NULL; | |
38516 | } | |
38517 | ||
38518 | ||
c32bde28 | 38519 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38520 | PyObject *resultobj; |
38521 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38522 | PyObject * obj0 = 0 ; | |
38523 | char *kwnames[] = { | |
38524 | (char *) "self", NULL | |
38525 | }; | |
38526 | ||
38527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38530 | { |
38531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38532 | (arg1)->DeleteWindows(); | |
38533 | ||
38534 | wxPyEndAllowThreads(__tstate); | |
38535 | if (PyErr_Occurred()) SWIG_fail; | |
38536 | } | |
38537 | Py_INCREF(Py_None); resultobj = Py_None; | |
38538 | return resultobj; | |
38539 | fail: | |
38540 | return NULL; | |
38541 | } | |
38542 | ||
38543 | ||
c32bde28 | 38544 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38545 | PyObject *resultobj; |
38546 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38547 | PyObject * obj0 = 0 ; | |
38548 | char *kwnames[] = { | |
38549 | (char *) "self", NULL | |
38550 | }; | |
38551 | ||
38552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38553 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38554 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38555 | { |
38556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38557 | (arg1)->DetachSizer(); | |
38558 | ||
38559 | wxPyEndAllowThreads(__tstate); | |
38560 | if (PyErr_Occurred()) SWIG_fail; | |
38561 | } | |
38562 | Py_INCREF(Py_None); resultobj = Py_None; | |
38563 | return resultobj; | |
38564 | fail: | |
38565 | return NULL; | |
38566 | } | |
38567 | ||
38568 | ||
c32bde28 | 38569 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38570 | PyObject *resultobj; |
38571 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38572 | wxSize result; | |
38573 | PyObject * obj0 = 0 ; | |
38574 | char *kwnames[] = { | |
38575 | (char *) "self", NULL | |
38576 | }; | |
38577 | ||
38578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38581 | { |
38582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38583 | result = (arg1)->GetSize(); | |
38584 | ||
38585 | wxPyEndAllowThreads(__tstate); | |
38586 | if (PyErr_Occurred()) SWIG_fail; | |
38587 | } | |
38588 | { | |
38589 | wxSize * resultptr; | |
093d3ff1 | 38590 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
38591 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
38592 | } | |
38593 | return resultobj; | |
38594 | fail: | |
38595 | return NULL; | |
38596 | } | |
38597 | ||
38598 | ||
c32bde28 | 38599 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38600 | PyObject *resultobj; |
38601 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38602 | wxSize result; | |
38603 | PyObject * obj0 = 0 ; | |
38604 | char *kwnames[] = { | |
38605 | (char *) "self", NULL | |
38606 | }; | |
38607 | ||
38608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38611 | { |
38612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38613 | result = (arg1)->CalcMin(); | |
38614 | ||
38615 | wxPyEndAllowThreads(__tstate); | |
38616 | if (PyErr_Occurred()) SWIG_fail; | |
38617 | } | |
38618 | { | |
38619 | wxSize * resultptr; | |
093d3ff1 | 38620 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
38621 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
38622 | } | |
38623 | return resultobj; | |
38624 | fail: | |
38625 | return NULL; | |
38626 | } | |
38627 | ||
38628 | ||
c32bde28 | 38629 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38630 | PyObject *resultobj; |
38631 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38632 | wxPoint arg2 ; | |
38633 | wxSize arg3 ; | |
d55e5bfc RD |
38634 | PyObject * obj0 = 0 ; |
38635 | PyObject * obj1 = 0 ; | |
38636 | PyObject * obj2 = 0 ; | |
38637 | char *kwnames[] = { | |
38638 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
38639 | }; | |
38640 | ||
38641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
38642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38644 | { | |
38645 | wxPoint * argp; | |
38646 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION); | |
38647 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38648 | if (argp == NULL) { | |
38649 | SWIG_null_ref("wxPoint"); | |
38650 | } | |
38651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38652 | arg2 = *argp; | |
38653 | } | |
38654 | { | |
38655 | wxSize * argp; | |
38656 | SWIG_Python_ConvertPtr(obj2, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION); | |
38657 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38658 | if (argp == NULL) { | |
38659 | SWIG_null_ref("wxSize"); | |
38660 | } | |
38661 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38662 | arg3 = *argp; | |
38663 | } | |
d55e5bfc RD |
38664 | { |
38665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38666 | (arg1)->SetDimension(arg2,arg3); | |
38667 | ||
38668 | wxPyEndAllowThreads(__tstate); | |
38669 | if (PyErr_Occurred()) SWIG_fail; | |
38670 | } | |
38671 | Py_INCREF(Py_None); resultobj = Py_None; | |
38672 | return resultobj; | |
38673 | fail: | |
38674 | return NULL; | |
38675 | } | |
38676 | ||
38677 | ||
c32bde28 | 38678 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38679 | PyObject *resultobj; |
38680 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38681 | wxSize result; | |
38682 | PyObject * obj0 = 0 ; | |
38683 | char *kwnames[] = { | |
38684 | (char *) "self", NULL | |
38685 | }; | |
38686 | ||
38687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38690 | { |
38691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38692 | result = (arg1)->GetMinSize(); | |
38693 | ||
38694 | wxPyEndAllowThreads(__tstate); | |
38695 | if (PyErr_Occurred()) SWIG_fail; | |
38696 | } | |
38697 | { | |
38698 | wxSize * resultptr; | |
093d3ff1 | 38699 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
38700 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
38701 | } | |
38702 | return resultobj; | |
38703 | fail: | |
38704 | return NULL; | |
38705 | } | |
38706 | ||
38707 | ||
c32bde28 | 38708 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
38709 | PyObject *resultobj; |
38710 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38711 | wxSize result; | |
38712 | PyObject * obj0 = 0 ; | |
38713 | char *kwnames[] = { | |
38714 | (char *) "self", NULL | |
38715 | }; | |
38716 | ||
38717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a001823c RD |
38720 | { |
38721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38722 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
38723 | ||
38724 | wxPyEndAllowThreads(__tstate); | |
38725 | if (PyErr_Occurred()) SWIG_fail; | |
38726 | } | |
38727 | { | |
38728 | wxSize * resultptr; | |
093d3ff1 | 38729 | resultptr = new wxSize((wxSize &)(result)); |
a001823c RD |
38730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
38731 | } | |
38732 | return resultobj; | |
38733 | fail: | |
38734 | return NULL; | |
38735 | } | |
38736 | ||
38737 | ||
c32bde28 | 38738 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38739 | PyObject *resultobj; |
38740 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38741 | int arg2 ; | |
38742 | int arg3 ; | |
38743 | PyObject * obj0 = 0 ; | |
38744 | PyObject * obj1 = 0 ; | |
38745 | PyObject * obj2 = 0 ; | |
38746 | char *kwnames[] = { | |
38747 | (char *) "self",(char *) "x",(char *) "y", NULL | |
38748 | }; | |
38749 | ||
38750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
38751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38753 | { | |
38754 | arg2 = (int)(SWIG_As_int(obj1)); | |
38755 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38756 | } | |
38757 | { | |
38758 | arg3 = (int)(SWIG_As_int(obj2)); | |
38759 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38760 | } | |
d55e5bfc RD |
38761 | { |
38762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38763 | (arg1)->SetInitSize(arg2,arg3); | |
38764 | ||
38765 | wxPyEndAllowThreads(__tstate); | |
38766 | if (PyErr_Occurred()) SWIG_fail; | |
38767 | } | |
38768 | Py_INCREF(Py_None); resultobj = Py_None; | |
38769 | return resultobj; | |
38770 | fail: | |
38771 | return NULL; | |
38772 | } | |
38773 | ||
38774 | ||
c32bde28 | 38775 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38776 | PyObject *resultobj; |
38777 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38778 | int arg2 ; | |
38779 | int arg3 ; | |
38780 | PyObject * obj0 = 0 ; | |
38781 | PyObject * obj1 = 0 ; | |
38782 | PyObject * obj2 = 0 ; | |
38783 | char *kwnames[] = { | |
38784 | (char *) "self",(char *) "width",(char *) "height", NULL | |
38785 | }; | |
38786 | ||
38787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
38788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38790 | { | |
38791 | arg2 = (int)(SWIG_As_int(obj1)); | |
38792 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38793 | } | |
38794 | { | |
38795 | arg3 = (int)(SWIG_As_int(obj2)); | |
38796 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38797 | } | |
d55e5bfc RD |
38798 | { |
38799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38800 | (arg1)->SetRatio(arg2,arg3); | |
38801 | ||
38802 | wxPyEndAllowThreads(__tstate); | |
38803 | if (PyErr_Occurred()) SWIG_fail; | |
38804 | } | |
38805 | Py_INCREF(Py_None); resultobj = Py_None; | |
38806 | return resultobj; | |
38807 | fail: | |
38808 | return NULL; | |
38809 | } | |
38810 | ||
38811 | ||
c32bde28 | 38812 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38813 | PyObject *resultobj; |
38814 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
88c6b281 RD |
38815 | wxSize *arg2 = 0 ; |
38816 | wxSize temp2 ; | |
d55e5bfc RD |
38817 | PyObject * obj0 = 0 ; |
38818 | PyObject * obj1 = 0 ; | |
38819 | char *kwnames[] = { | |
38820 | (char *) "self",(char *) "size", NULL | |
38821 | }; | |
38822 | ||
38823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38824 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38826 | { | |
88c6b281 RD |
38827 | arg2 = &temp2; |
38828 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
093d3ff1 | 38829 | } |
d55e5bfc RD |
38830 | { |
38831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
88c6b281 | 38832 | (arg1)->SetRatio((wxSize const &)*arg2); |
d55e5bfc RD |
38833 | |
38834 | wxPyEndAllowThreads(__tstate); | |
38835 | if (PyErr_Occurred()) SWIG_fail; | |
38836 | } | |
38837 | Py_INCREF(Py_None); resultobj = Py_None; | |
38838 | return resultobj; | |
38839 | fail: | |
38840 | return NULL; | |
38841 | } | |
38842 | ||
38843 | ||
c32bde28 | 38844 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38845 | PyObject *resultobj; |
38846 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38847 | float arg2 ; | |
38848 | PyObject * obj0 = 0 ; | |
38849 | PyObject * obj1 = 0 ; | |
38850 | char *kwnames[] = { | |
38851 | (char *) "self",(char *) "ratio", NULL | |
38852 | }; | |
38853 | ||
38854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38857 | { | |
38858 | arg2 = (float)(SWIG_As_float(obj1)); | |
38859 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38860 | } | |
d55e5bfc RD |
38861 | { |
38862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38863 | (arg1)->SetRatio(arg2); | |
38864 | ||
38865 | wxPyEndAllowThreads(__tstate); | |
38866 | if (PyErr_Occurred()) SWIG_fail; | |
38867 | } | |
38868 | Py_INCREF(Py_None); resultobj = Py_None; | |
38869 | return resultobj; | |
38870 | fail: | |
38871 | return NULL; | |
38872 | } | |
38873 | ||
38874 | ||
c32bde28 | 38875 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38876 | PyObject *resultobj; |
38877 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38878 | float result; | |
38879 | PyObject * obj0 = 0 ; | |
38880 | char *kwnames[] = { | |
38881 | (char *) "self", NULL | |
38882 | }; | |
38883 | ||
38884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38887 | { |
38888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38889 | result = (float)(arg1)->GetRatio(); | |
38890 | ||
38891 | wxPyEndAllowThreads(__tstate); | |
38892 | if (PyErr_Occurred()) SWIG_fail; | |
38893 | } | |
093d3ff1 RD |
38894 | { |
38895 | resultobj = SWIG_From_float((float)(result)); | |
38896 | } | |
d55e5bfc RD |
38897 | return resultobj; |
38898 | fail: | |
38899 | return NULL; | |
38900 | } | |
38901 | ||
38902 | ||
c1cb24a4 RD |
38903 | static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
38904 | PyObject *resultobj; | |
38905 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38906 | wxRect result; | |
38907 | PyObject * obj0 = 0 ; | |
38908 | char *kwnames[] = { | |
38909 | (char *) "self", NULL | |
38910 | }; | |
38911 | ||
38912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
38915 | { |
38916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38917 | result = (arg1)->GetRect(); | |
38918 | ||
38919 | wxPyEndAllowThreads(__tstate); | |
38920 | if (PyErr_Occurred()) SWIG_fail; | |
38921 | } | |
38922 | { | |
38923 | wxRect * resultptr; | |
093d3ff1 | 38924 | resultptr = new wxRect((wxRect &)(result)); |
c1cb24a4 RD |
38925 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
38926 | } | |
38927 | return resultobj; | |
38928 | fail: | |
38929 | return NULL; | |
38930 | } | |
38931 | ||
38932 | ||
c32bde28 | 38933 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38934 | PyObject *resultobj; |
38935 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38936 | bool result; | |
38937 | PyObject * obj0 = 0 ; | |
38938 | char *kwnames[] = { | |
38939 | (char *) "self", NULL | |
38940 | }; | |
38941 | ||
38942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38943 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38944 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38945 | { |
38946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38947 | result = (bool)(arg1)->IsWindow(); | |
38948 | ||
38949 | wxPyEndAllowThreads(__tstate); | |
38950 | if (PyErr_Occurred()) SWIG_fail; | |
38951 | } | |
38952 | { | |
38953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38954 | } | |
38955 | return resultobj; | |
38956 | fail: | |
38957 | return NULL; | |
38958 | } | |
38959 | ||
38960 | ||
c32bde28 | 38961 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38962 | PyObject *resultobj; |
38963 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38964 | bool result; | |
38965 | PyObject * obj0 = 0 ; | |
38966 | char *kwnames[] = { | |
38967 | (char *) "self", NULL | |
38968 | }; | |
38969 | ||
38970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38971 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38972 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38973 | { |
38974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38975 | result = (bool)(arg1)->IsSizer(); | |
38976 | ||
38977 | wxPyEndAllowThreads(__tstate); | |
38978 | if (PyErr_Occurred()) SWIG_fail; | |
38979 | } | |
38980 | { | |
38981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38982 | } | |
38983 | return resultobj; | |
38984 | fail: | |
38985 | return NULL; | |
38986 | } | |
38987 | ||
38988 | ||
c32bde28 | 38989 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38990 | PyObject *resultobj; |
38991 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38992 | bool result; | |
38993 | PyObject * obj0 = 0 ; | |
38994 | char *kwnames[] = { | |
38995 | (char *) "self", NULL | |
38996 | }; | |
38997 | ||
38998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39001 | { |
39002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39003 | result = (bool)(arg1)->IsSpacer(); | |
39004 | ||
39005 | wxPyEndAllowThreads(__tstate); | |
39006 | if (PyErr_Occurred()) SWIG_fail; | |
39007 | } | |
39008 | { | |
39009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39010 | } | |
39011 | return resultobj; | |
39012 | fail: | |
39013 | return NULL; | |
39014 | } | |
39015 | ||
39016 | ||
c32bde28 | 39017 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39018 | PyObject *resultobj; |
39019 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39020 | int arg2 ; | |
39021 | PyObject * obj0 = 0 ; | |
39022 | PyObject * obj1 = 0 ; | |
39023 | char *kwnames[] = { | |
39024 | (char *) "self",(char *) "proportion", NULL | |
39025 | }; | |
39026 | ||
39027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39030 | { | |
39031 | arg2 = (int)(SWIG_As_int(obj1)); | |
39032 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39033 | } | |
d55e5bfc RD |
39034 | { |
39035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39036 | (arg1)->SetProportion(arg2); | |
39037 | ||
39038 | wxPyEndAllowThreads(__tstate); | |
39039 | if (PyErr_Occurred()) SWIG_fail; | |
39040 | } | |
39041 | Py_INCREF(Py_None); resultobj = Py_None; | |
39042 | return resultobj; | |
39043 | fail: | |
39044 | return NULL; | |
39045 | } | |
39046 | ||
39047 | ||
c32bde28 | 39048 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39049 | PyObject *resultobj; |
39050 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39051 | int result; | |
39052 | PyObject * obj0 = 0 ; | |
39053 | char *kwnames[] = { | |
39054 | (char *) "self", NULL | |
39055 | }; | |
39056 | ||
39057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39060 | { |
39061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39062 | result = (int)(arg1)->GetProportion(); | |
39063 | ||
39064 | wxPyEndAllowThreads(__tstate); | |
39065 | if (PyErr_Occurred()) SWIG_fail; | |
39066 | } | |
093d3ff1 RD |
39067 | { |
39068 | resultobj = SWIG_From_int((int)(result)); | |
39069 | } | |
d55e5bfc RD |
39070 | return resultobj; |
39071 | fail: | |
39072 | return NULL; | |
39073 | } | |
39074 | ||
39075 | ||
c32bde28 | 39076 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39077 | PyObject *resultobj; |
39078 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39079 | int arg2 ; | |
39080 | PyObject * obj0 = 0 ; | |
39081 | PyObject * obj1 = 0 ; | |
39082 | char *kwnames[] = { | |
39083 | (char *) "self",(char *) "flag", NULL | |
39084 | }; | |
39085 | ||
39086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39089 | { | |
39090 | arg2 = (int)(SWIG_As_int(obj1)); | |
39091 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39092 | } | |
d55e5bfc RD |
39093 | { |
39094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39095 | (arg1)->SetFlag(arg2); | |
39096 | ||
39097 | wxPyEndAllowThreads(__tstate); | |
39098 | if (PyErr_Occurred()) SWIG_fail; | |
39099 | } | |
39100 | Py_INCREF(Py_None); resultobj = Py_None; | |
39101 | return resultobj; | |
39102 | fail: | |
39103 | return NULL; | |
39104 | } | |
39105 | ||
39106 | ||
c32bde28 | 39107 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39108 | PyObject *resultobj; |
39109 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39110 | int result; | |
39111 | PyObject * obj0 = 0 ; | |
39112 | char *kwnames[] = { | |
39113 | (char *) "self", NULL | |
39114 | }; | |
39115 | ||
39116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39119 | { |
39120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39121 | result = (int)(arg1)->GetFlag(); | |
39122 | ||
39123 | wxPyEndAllowThreads(__tstate); | |
39124 | if (PyErr_Occurred()) SWIG_fail; | |
39125 | } | |
093d3ff1 RD |
39126 | { |
39127 | resultobj = SWIG_From_int((int)(result)); | |
39128 | } | |
d55e5bfc RD |
39129 | return resultobj; |
39130 | fail: | |
39131 | return NULL; | |
39132 | } | |
39133 | ||
39134 | ||
c32bde28 | 39135 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39136 | PyObject *resultobj; |
39137 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39138 | int arg2 ; | |
39139 | PyObject * obj0 = 0 ; | |
39140 | PyObject * obj1 = 0 ; | |
39141 | char *kwnames[] = { | |
39142 | (char *) "self",(char *) "border", NULL | |
39143 | }; | |
39144 | ||
39145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39148 | { | |
39149 | arg2 = (int)(SWIG_As_int(obj1)); | |
39150 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39151 | } | |
d55e5bfc RD |
39152 | { |
39153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39154 | (arg1)->SetBorder(arg2); | |
39155 | ||
39156 | wxPyEndAllowThreads(__tstate); | |
39157 | if (PyErr_Occurred()) SWIG_fail; | |
39158 | } | |
39159 | Py_INCREF(Py_None); resultobj = Py_None; | |
39160 | return resultobj; | |
39161 | fail: | |
39162 | return NULL; | |
39163 | } | |
39164 | ||
39165 | ||
c32bde28 | 39166 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39167 | PyObject *resultobj; |
39168 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39169 | int result; | |
39170 | PyObject * obj0 = 0 ; | |
39171 | char *kwnames[] = { | |
39172 | (char *) "self", NULL | |
39173 | }; | |
39174 | ||
39175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39178 | { |
39179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39180 | result = (int)(arg1)->GetBorder(); | |
39181 | ||
39182 | wxPyEndAllowThreads(__tstate); | |
39183 | if (PyErr_Occurred()) SWIG_fail; | |
39184 | } | |
093d3ff1 RD |
39185 | { |
39186 | resultobj = SWIG_From_int((int)(result)); | |
39187 | } | |
d55e5bfc RD |
39188 | return resultobj; |
39189 | fail: | |
39190 | return NULL; | |
39191 | } | |
39192 | ||
39193 | ||
c32bde28 | 39194 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39195 | PyObject *resultobj; |
39196 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39197 | wxWindow *result; | |
39198 | PyObject * obj0 = 0 ; | |
39199 | char *kwnames[] = { | |
39200 | (char *) "self", NULL | |
39201 | }; | |
39202 | ||
39203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39206 | { |
39207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39208 | result = (wxWindow *)(arg1)->GetWindow(); | |
39209 | ||
39210 | wxPyEndAllowThreads(__tstate); | |
39211 | if (PyErr_Occurred()) SWIG_fail; | |
39212 | } | |
39213 | { | |
412d302d | 39214 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
39215 | } |
39216 | return resultobj; | |
39217 | fail: | |
39218 | return NULL; | |
39219 | } | |
39220 | ||
39221 | ||
c32bde28 | 39222 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39223 | PyObject *resultobj; |
39224 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39225 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39226 | PyObject * obj0 = 0 ; | |
39227 | PyObject * obj1 = 0 ; | |
39228 | char *kwnames[] = { | |
39229 | (char *) "self",(char *) "window", NULL | |
39230 | }; | |
39231 | ||
39232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39235 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
39236 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
39237 | { |
39238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39239 | (arg1)->SetWindow(arg2); | |
39240 | ||
39241 | wxPyEndAllowThreads(__tstate); | |
39242 | if (PyErr_Occurred()) SWIG_fail; | |
39243 | } | |
39244 | Py_INCREF(Py_None); resultobj = Py_None; | |
39245 | return resultobj; | |
39246 | fail: | |
39247 | return NULL; | |
39248 | } | |
39249 | ||
39250 | ||
c32bde28 | 39251 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39252 | PyObject *resultobj; |
39253 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39254 | wxSizer *result; | |
39255 | PyObject * obj0 = 0 ; | |
39256 | char *kwnames[] = { | |
39257 | (char *) "self", NULL | |
39258 | }; | |
39259 | ||
39260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39263 | { |
39264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39265 | result = (wxSizer *)(arg1)->GetSizer(); | |
39266 | ||
39267 | wxPyEndAllowThreads(__tstate); | |
39268 | if (PyErr_Occurred()) SWIG_fail; | |
39269 | } | |
39270 | { | |
412d302d | 39271 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
39272 | } |
39273 | return resultobj; | |
39274 | fail: | |
39275 | return NULL; | |
39276 | } | |
39277 | ||
39278 | ||
c32bde28 | 39279 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39280 | PyObject *resultobj; |
39281 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39282 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39283 | PyObject * obj0 = 0 ; | |
39284 | PyObject * obj1 = 0 ; | |
39285 | char *kwnames[] = { | |
39286 | (char *) "self",(char *) "sizer", NULL | |
39287 | }; | |
39288 | ||
39289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39292 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
39293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
39294 | { |
39295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39296 | (arg1)->SetSizer(arg2); | |
39297 | ||
39298 | wxPyEndAllowThreads(__tstate); | |
39299 | if (PyErr_Occurred()) SWIG_fail; | |
39300 | } | |
39301 | Py_INCREF(Py_None); resultobj = Py_None; | |
39302 | return resultobj; | |
39303 | fail: | |
39304 | return NULL; | |
39305 | } | |
39306 | ||
39307 | ||
c32bde28 | 39308 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39309 | PyObject *resultobj; |
39310 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39311 | wxSize *result; | |
39312 | PyObject * obj0 = 0 ; | |
39313 | char *kwnames[] = { | |
39314 | (char *) "self", NULL | |
39315 | }; | |
39316 | ||
39317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39320 | { |
39321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39322 | { | |
39323 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
39324 | result = (wxSize *) &_result_ref; | |
39325 | } | |
39326 | ||
39327 | wxPyEndAllowThreads(__tstate); | |
39328 | if (PyErr_Occurred()) SWIG_fail; | |
39329 | } | |
39330 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
39331 | return resultobj; | |
39332 | fail: | |
39333 | return NULL; | |
39334 | } | |
39335 | ||
39336 | ||
c32bde28 | 39337 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39338 | PyObject *resultobj; |
39339 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39340 | wxSize *arg2 = 0 ; | |
39341 | wxSize temp2 ; | |
39342 | PyObject * obj0 = 0 ; | |
39343 | PyObject * obj1 = 0 ; | |
39344 | char *kwnames[] = { | |
39345 | (char *) "self",(char *) "size", NULL | |
39346 | }; | |
39347 | ||
39348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39351 | { |
39352 | arg2 = &temp2; | |
39353 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
39354 | } | |
39355 | { | |
39356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39357 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
39358 | ||
39359 | wxPyEndAllowThreads(__tstate); | |
39360 | if (PyErr_Occurred()) SWIG_fail; | |
39361 | } | |
39362 | Py_INCREF(Py_None); resultobj = Py_None; | |
39363 | return resultobj; | |
39364 | fail: | |
39365 | return NULL; | |
39366 | } | |
39367 | ||
39368 | ||
c32bde28 | 39369 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39370 | PyObject *resultobj; |
39371 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39372 | bool arg2 ; | |
39373 | PyObject * obj0 = 0 ; | |
39374 | PyObject * obj1 = 0 ; | |
39375 | char *kwnames[] = { | |
39376 | (char *) "self",(char *) "show", NULL | |
39377 | }; | |
39378 | ||
39379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39382 | { | |
39383 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
39384 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39385 | } | |
d55e5bfc RD |
39386 | { |
39387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39388 | (arg1)->Show(arg2); | |
39389 | ||
39390 | wxPyEndAllowThreads(__tstate); | |
39391 | if (PyErr_Occurred()) SWIG_fail; | |
39392 | } | |
39393 | Py_INCREF(Py_None); resultobj = Py_None; | |
39394 | return resultobj; | |
39395 | fail: | |
39396 | return NULL; | |
39397 | } | |
39398 | ||
39399 | ||
c32bde28 | 39400 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39401 | PyObject *resultobj; |
39402 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39403 | bool result; | |
39404 | PyObject * obj0 = 0 ; | |
39405 | char *kwnames[] = { | |
39406 | (char *) "self", NULL | |
39407 | }; | |
39408 | ||
39409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39412 | { |
39413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39414 | result = (bool)(arg1)->IsShown(); | |
39415 | ||
39416 | wxPyEndAllowThreads(__tstate); | |
39417 | if (PyErr_Occurred()) SWIG_fail; | |
39418 | } | |
39419 | { | |
39420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39421 | } | |
39422 | return resultobj; | |
39423 | fail: | |
39424 | return NULL; | |
39425 | } | |
39426 | ||
39427 | ||
c32bde28 | 39428 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39429 | PyObject *resultobj; |
39430 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39431 | wxPoint result; | |
39432 | PyObject * obj0 = 0 ; | |
39433 | char *kwnames[] = { | |
39434 | (char *) "self", NULL | |
39435 | }; | |
39436 | ||
39437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39438 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39439 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39440 | { |
39441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39442 | result = (arg1)->GetPosition(); | |
39443 | ||
39444 | wxPyEndAllowThreads(__tstate); | |
39445 | if (PyErr_Occurred()) SWIG_fail; | |
39446 | } | |
39447 | { | |
39448 | wxPoint * resultptr; | |
093d3ff1 | 39449 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
39450 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
39451 | } | |
39452 | return resultobj; | |
39453 | fail: | |
39454 | return NULL; | |
39455 | } | |
39456 | ||
39457 | ||
c32bde28 | 39458 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39459 | PyObject *resultobj; |
39460 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39461 | PyObject *result; | |
39462 | PyObject * obj0 = 0 ; | |
39463 | char *kwnames[] = { | |
39464 | (char *) "self", NULL | |
39465 | }; | |
39466 | ||
39467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39470 | { |
39471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39472 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
39473 | ||
39474 | wxPyEndAllowThreads(__tstate); | |
39475 | if (PyErr_Occurred()) SWIG_fail; | |
39476 | } | |
39477 | resultobj = result; | |
39478 | return resultobj; | |
39479 | fail: | |
39480 | return NULL; | |
39481 | } | |
39482 | ||
39483 | ||
c32bde28 | 39484 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39485 | PyObject *obj; |
39486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39487 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
39488 | Py_INCREF(obj); | |
39489 | return Py_BuildValue((char *)""); | |
39490 | } | |
c32bde28 | 39491 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39492 | PyObject *resultobj; |
39493 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39494 | PyObject *arg2 = (PyObject *) 0 ; | |
39495 | PyObject * obj0 = 0 ; | |
39496 | PyObject * obj1 = 0 ; | |
39497 | char *kwnames[] = { | |
39498 | (char *) "self",(char *) "_self", NULL | |
39499 | }; | |
39500 | ||
39501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39504 | arg2 = obj1; |
39505 | { | |
39506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39507 | wxSizer__setOORInfo(arg1,arg2); | |
39508 | ||
39509 | wxPyEndAllowThreads(__tstate); | |
39510 | if (PyErr_Occurred()) SWIG_fail; | |
39511 | } | |
39512 | Py_INCREF(Py_None); resultobj = Py_None; | |
39513 | return resultobj; | |
39514 | fail: | |
39515 | return NULL; | |
39516 | } | |
39517 | ||
39518 | ||
c32bde28 | 39519 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39520 | PyObject *resultobj; |
39521 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39522 | PyObject *arg2 = (PyObject *) 0 ; | |
39523 | int arg3 = (int) 0 ; | |
39524 | int arg4 = (int) 0 ; | |
39525 | int arg5 = (int) 0 ; | |
39526 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 39527 | wxSizerItem *result; |
d55e5bfc RD |
39528 | PyObject * obj0 = 0 ; |
39529 | PyObject * obj1 = 0 ; | |
39530 | PyObject * obj2 = 0 ; | |
39531 | PyObject * obj3 = 0 ; | |
39532 | PyObject * obj4 = 0 ; | |
39533 | PyObject * obj5 = 0 ; | |
39534 | char *kwnames[] = { | |
39535 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
39536 | }; | |
39537 | ||
39538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
39539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39541 | arg2 = obj1; |
39542 | if (obj2) { | |
093d3ff1 RD |
39543 | { |
39544 | arg3 = (int)(SWIG_As_int(obj2)); | |
39545 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39546 | } | |
d55e5bfc RD |
39547 | } |
39548 | if (obj3) { | |
093d3ff1 RD |
39549 | { |
39550 | arg4 = (int)(SWIG_As_int(obj3)); | |
39551 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39552 | } | |
d55e5bfc RD |
39553 | } |
39554 | if (obj4) { | |
093d3ff1 RD |
39555 | { |
39556 | arg5 = (int)(SWIG_As_int(obj4)); | |
39557 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39558 | } | |
d55e5bfc RD |
39559 | } |
39560 | if (obj5) { | |
39561 | arg6 = obj5; | |
39562 | } | |
39563 | { | |
39564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39565 | result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
39566 | |
39567 | wxPyEndAllowThreads(__tstate); | |
39568 | if (PyErr_Occurred()) SWIG_fail; | |
39569 | } | |
c1cb24a4 | 39570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
39571 | return resultobj; |
39572 | fail: | |
39573 | return NULL; | |
39574 | } | |
39575 | ||
39576 | ||
c32bde28 | 39577 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39578 | PyObject *resultobj; |
39579 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39580 | int arg2 ; | |
39581 | PyObject *arg3 = (PyObject *) 0 ; | |
39582 | int arg4 = (int) 0 ; | |
39583 | int arg5 = (int) 0 ; | |
39584 | int arg6 = (int) 0 ; | |
39585 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 39586 | wxSizerItem *result; |
d55e5bfc RD |
39587 | PyObject * obj0 = 0 ; |
39588 | PyObject * obj1 = 0 ; | |
39589 | PyObject * obj2 = 0 ; | |
39590 | PyObject * obj3 = 0 ; | |
39591 | PyObject * obj4 = 0 ; | |
39592 | PyObject * obj5 = 0 ; | |
39593 | PyObject * obj6 = 0 ; | |
39594 | char *kwnames[] = { | |
39595 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
39596 | }; | |
39597 | ||
39598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
39599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39601 | { | |
39602 | arg2 = (int)(SWIG_As_int(obj1)); | |
39603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39604 | } | |
d55e5bfc RD |
39605 | arg3 = obj2; |
39606 | if (obj3) { | |
093d3ff1 RD |
39607 | { |
39608 | arg4 = (int)(SWIG_As_int(obj3)); | |
39609 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39610 | } | |
d55e5bfc RD |
39611 | } |
39612 | if (obj4) { | |
093d3ff1 RD |
39613 | { |
39614 | arg5 = (int)(SWIG_As_int(obj4)); | |
39615 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39616 | } | |
d55e5bfc RD |
39617 | } |
39618 | if (obj5) { | |
093d3ff1 RD |
39619 | { |
39620 | arg6 = (int)(SWIG_As_int(obj5)); | |
39621 | if (SWIG_arg_fail(6)) SWIG_fail; | |
39622 | } | |
d55e5bfc RD |
39623 | } |
39624 | if (obj6) { | |
39625 | arg7 = obj6; | |
39626 | } | |
39627 | { | |
39628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39629 | result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
39630 | |
39631 | wxPyEndAllowThreads(__tstate); | |
39632 | if (PyErr_Occurred()) SWIG_fail; | |
39633 | } | |
c1cb24a4 | 39634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
39635 | return resultobj; |
39636 | fail: | |
39637 | return NULL; | |
39638 | } | |
39639 | ||
39640 | ||
c32bde28 | 39641 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39642 | PyObject *resultobj; |
39643 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39644 | PyObject *arg2 = (PyObject *) 0 ; | |
39645 | int arg3 = (int) 0 ; | |
39646 | int arg4 = (int) 0 ; | |
39647 | int arg5 = (int) 0 ; | |
39648 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 39649 | wxSizerItem *result; |
d55e5bfc RD |
39650 | PyObject * obj0 = 0 ; |
39651 | PyObject * obj1 = 0 ; | |
39652 | PyObject * obj2 = 0 ; | |
39653 | PyObject * obj3 = 0 ; | |
39654 | PyObject * obj4 = 0 ; | |
39655 | PyObject * obj5 = 0 ; | |
39656 | char *kwnames[] = { | |
39657 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
39658 | }; | |
39659 | ||
39660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
39661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39663 | arg2 = obj1; |
39664 | if (obj2) { | |
093d3ff1 RD |
39665 | { |
39666 | arg3 = (int)(SWIG_As_int(obj2)); | |
39667 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39668 | } | |
d55e5bfc RD |
39669 | } |
39670 | if (obj3) { | |
093d3ff1 RD |
39671 | { |
39672 | arg4 = (int)(SWIG_As_int(obj3)); | |
39673 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39674 | } | |
d55e5bfc RD |
39675 | } |
39676 | if (obj4) { | |
093d3ff1 RD |
39677 | { |
39678 | arg5 = (int)(SWIG_As_int(obj4)); | |
39679 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39680 | } | |
d55e5bfc RD |
39681 | } |
39682 | if (obj5) { | |
39683 | arg6 = obj5; | |
39684 | } | |
39685 | { | |
39686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39687 | result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
39688 | |
39689 | wxPyEndAllowThreads(__tstate); | |
39690 | if (PyErr_Occurred()) SWIG_fail; | |
39691 | } | |
c1cb24a4 | 39692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
39693 | return resultobj; |
39694 | fail: | |
39695 | return NULL; | |
39696 | } | |
39697 | ||
39698 | ||
c32bde28 | 39699 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39700 | PyObject *resultobj; |
39701 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39702 | PyObject *arg2 = (PyObject *) 0 ; | |
39703 | bool result; | |
39704 | PyObject * obj0 = 0 ; | |
39705 | PyObject * obj1 = 0 ; | |
39706 | char *kwnames[] = { | |
39707 | (char *) "self",(char *) "item", NULL | |
39708 | }; | |
39709 | ||
39710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39713 | arg2 = obj1; |
39714 | { | |
39715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39716 | result = (bool)wxSizer_Remove(arg1,arg2); | |
39717 | ||
39718 | wxPyEndAllowThreads(__tstate); | |
39719 | if (PyErr_Occurred()) SWIG_fail; | |
39720 | } | |
39721 | { | |
39722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39723 | } | |
39724 | return resultobj; | |
39725 | fail: | |
39726 | return NULL; | |
39727 | } | |
39728 | ||
39729 | ||
c32bde28 | 39730 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
39731 | PyObject *resultobj; |
39732 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39733 | PyObject *arg2 = (PyObject *) 0 ; | |
39734 | bool result; | |
39735 | PyObject * obj0 = 0 ; | |
39736 | PyObject * obj1 = 0 ; | |
39737 | char *kwnames[] = { | |
39738 | (char *) "self",(char *) "item", NULL | |
39739 | }; | |
39740 | ||
39741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a6bba1e RD |
39744 | arg2 = obj1; |
39745 | { | |
39746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39747 | result = (bool)wxSizer_Detach(arg1,arg2); | |
39748 | ||
39749 | wxPyEndAllowThreads(__tstate); | |
39750 | if (PyErr_Occurred()) SWIG_fail; | |
39751 | } | |
39752 | { | |
39753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39754 | } | |
39755 | return resultobj; | |
39756 | fail: | |
39757 | return NULL; | |
39758 | } | |
39759 | ||
39760 | ||
c1cb24a4 RD |
39761 | static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
39762 | PyObject *resultobj; | |
39763 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39764 | PyObject *arg2 = (PyObject *) 0 ; | |
39765 | wxSizerItem *result; | |
39766 | PyObject * obj0 = 0 ; | |
39767 | PyObject * obj1 = 0 ; | |
39768 | char *kwnames[] = { | |
39769 | (char *) "self",(char *) "item", NULL | |
39770 | }; | |
39771 | ||
39772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
39775 | arg2 = obj1; |
39776 | { | |
39777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39778 | result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2); | |
39779 | ||
39780 | wxPyEndAllowThreads(__tstate); | |
39781 | if (PyErr_Occurred()) SWIG_fail; | |
39782 | } | |
39783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); | |
39784 | return resultobj; | |
39785 | fail: | |
39786 | return NULL; | |
39787 | } | |
39788 | ||
39789 | ||
c32bde28 | 39790 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39791 | PyObject *resultobj; |
39792 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39793 | PyObject *arg2 = (PyObject *) 0 ; | |
39794 | wxSize *arg3 = 0 ; | |
39795 | wxSize temp3 ; | |
39796 | PyObject * obj0 = 0 ; | |
39797 | PyObject * obj1 = 0 ; | |
39798 | PyObject * obj2 = 0 ; | |
39799 | char *kwnames[] = { | |
39800 | (char *) "self",(char *) "item",(char *) "size", NULL | |
39801 | }; | |
39802 | ||
39803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
39804 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39805 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39806 | arg2 = obj1; |
39807 | { | |
39808 | arg3 = &temp3; | |
39809 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
39810 | } | |
39811 | { | |
39812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39813 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
39814 | ||
39815 | wxPyEndAllowThreads(__tstate); | |
39816 | if (PyErr_Occurred()) SWIG_fail; | |
39817 | } | |
39818 | Py_INCREF(Py_None); resultobj = Py_None; | |
39819 | return resultobj; | |
39820 | fail: | |
39821 | return NULL; | |
39822 | } | |
39823 | ||
39824 | ||
c32bde28 | 39825 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39826 | PyObject *resultobj; |
39827 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39828 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 39829 | wxSizerItem *result; |
d55e5bfc RD |
39830 | PyObject * obj0 = 0 ; |
39831 | PyObject * obj1 = 0 ; | |
39832 | char *kwnames[] = { | |
39833 | (char *) "self",(char *) "item", NULL | |
39834 | }; | |
39835 | ||
39836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39837 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39838 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39839 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
39840 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
39841 | { |
39842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39843 | result = (wxSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
39844 | |
39845 | wxPyEndAllowThreads(__tstate); | |
39846 | if (PyErr_Occurred()) SWIG_fail; | |
39847 | } | |
c1cb24a4 | 39848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
39849 | return resultobj; |
39850 | fail: | |
39851 | return NULL; | |
39852 | } | |
39853 | ||
39854 | ||
c32bde28 | 39855 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39856 | PyObject *resultobj; |
39857 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39858 | size_t arg2 ; | |
39859 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 39860 | wxSizerItem *result; |
d55e5bfc RD |
39861 | PyObject * obj0 = 0 ; |
39862 | PyObject * obj1 = 0 ; | |
39863 | PyObject * obj2 = 0 ; | |
39864 | char *kwnames[] = { | |
39865 | (char *) "self",(char *) "index",(char *) "item", NULL | |
39866 | }; | |
39867 | ||
39868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
39869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39871 | { | |
39872 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
39873 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39874 | } | |
39875 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
39876 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
39877 | { |
39878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39879 | result = (wxSizerItem *)(arg1)->Insert(arg2,arg3); |
d55e5bfc RD |
39880 | |
39881 | wxPyEndAllowThreads(__tstate); | |
39882 | if (PyErr_Occurred()) SWIG_fail; | |
39883 | } | |
c1cb24a4 | 39884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
39885 | return resultobj; |
39886 | fail: | |
39887 | return NULL; | |
39888 | } | |
39889 | ||
39890 | ||
c32bde28 | 39891 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39892 | PyObject *resultobj; |
39893 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39894 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 39895 | wxSizerItem *result; |
d55e5bfc RD |
39896 | PyObject * obj0 = 0 ; |
39897 | PyObject * obj1 = 0 ; | |
39898 | char *kwnames[] = { | |
39899 | (char *) "self",(char *) "item", NULL | |
39900 | }; | |
39901 | ||
39902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39905 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
39906 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
39907 | { |
39908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39909 | result = (wxSizerItem *)(arg1)->Prepend(arg2); |
d55e5bfc RD |
39910 | |
39911 | wxPyEndAllowThreads(__tstate); | |
39912 | if (PyErr_Occurred()) SWIG_fail; | |
39913 | } | |
c1cb24a4 | 39914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
39915 | return resultobj; |
39916 | fail: | |
39917 | return NULL; | |
39918 | } | |
39919 | ||
39920 | ||
c32bde28 | 39921 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39922 | PyObject *resultobj; |
39923 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39924 | int arg2 ; | |
39925 | int arg3 ; | |
39926 | int arg4 ; | |
39927 | int arg5 ; | |
39928 | PyObject * obj0 = 0 ; | |
39929 | PyObject * obj1 = 0 ; | |
39930 | PyObject * obj2 = 0 ; | |
39931 | PyObject * obj3 = 0 ; | |
39932 | PyObject * obj4 = 0 ; | |
39933 | char *kwnames[] = { | |
39934 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
39935 | }; | |
39936 | ||
39937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
39938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39940 | { | |
39941 | arg2 = (int)(SWIG_As_int(obj1)); | |
39942 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39943 | } | |
39944 | { | |
39945 | arg3 = (int)(SWIG_As_int(obj2)); | |
39946 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39947 | } | |
39948 | { | |
39949 | arg4 = (int)(SWIG_As_int(obj3)); | |
39950 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39951 | } | |
39952 | { | |
39953 | arg5 = (int)(SWIG_As_int(obj4)); | |
39954 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39955 | } | |
d55e5bfc RD |
39956 | { |
39957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39958 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
39959 | ||
39960 | wxPyEndAllowThreads(__tstate); | |
39961 | if (PyErr_Occurred()) SWIG_fail; | |
39962 | } | |
39963 | Py_INCREF(Py_None); resultobj = Py_None; | |
39964 | return resultobj; | |
39965 | fail: | |
39966 | return NULL; | |
39967 | } | |
39968 | ||
39969 | ||
c32bde28 | 39970 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39971 | PyObject *resultobj; |
39972 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39973 | wxSize *arg2 = 0 ; | |
39974 | wxSize temp2 ; | |
39975 | PyObject * obj0 = 0 ; | |
39976 | PyObject * obj1 = 0 ; | |
39977 | char *kwnames[] = { | |
39978 | (char *) "self",(char *) "size", NULL | |
39979 | }; | |
39980 | ||
39981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39984 | { |
39985 | arg2 = &temp2; | |
39986 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
39987 | } | |
39988 | { | |
39989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39990 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
39991 | ||
39992 | wxPyEndAllowThreads(__tstate); | |
39993 | if (PyErr_Occurred()) SWIG_fail; | |
39994 | } | |
39995 | Py_INCREF(Py_None); resultobj = Py_None; | |
39996 | return resultobj; | |
39997 | fail: | |
39998 | return NULL; | |
39999 | } | |
40000 | ||
40001 | ||
c32bde28 | 40002 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40003 | PyObject *resultobj; |
40004 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40005 | wxSize result; | |
40006 | PyObject * obj0 = 0 ; | |
40007 | char *kwnames[] = { | |
40008 | (char *) "self", NULL | |
40009 | }; | |
40010 | ||
40011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40014 | { |
40015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40016 | result = (arg1)->GetSize(); | |
40017 | ||
40018 | wxPyEndAllowThreads(__tstate); | |
40019 | if (PyErr_Occurred()) SWIG_fail; | |
40020 | } | |
40021 | { | |
40022 | wxSize * resultptr; | |
093d3ff1 | 40023 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
40024 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
40025 | } | |
40026 | return resultobj; | |
40027 | fail: | |
40028 | return NULL; | |
40029 | } | |
40030 | ||
40031 | ||
c32bde28 | 40032 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40033 | PyObject *resultobj; |
40034 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40035 | wxPoint result; | |
40036 | PyObject * obj0 = 0 ; | |
40037 | char *kwnames[] = { | |
40038 | (char *) "self", NULL | |
40039 | }; | |
40040 | ||
40041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40044 | { |
40045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40046 | result = (arg1)->GetPosition(); | |
40047 | ||
40048 | wxPyEndAllowThreads(__tstate); | |
40049 | if (PyErr_Occurred()) SWIG_fail; | |
40050 | } | |
40051 | { | |
40052 | wxPoint * resultptr; | |
093d3ff1 | 40053 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
40054 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
40055 | } | |
40056 | return resultobj; | |
40057 | fail: | |
40058 | return NULL; | |
40059 | } | |
40060 | ||
40061 | ||
c32bde28 | 40062 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40063 | PyObject *resultobj; |
40064 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40065 | wxSize result; | |
40066 | PyObject * obj0 = 0 ; | |
40067 | char *kwnames[] = { | |
40068 | (char *) "self", NULL | |
40069 | }; | |
40070 | ||
40071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40074 | { |
40075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40076 | result = (arg1)->GetMinSize(); | |
40077 | ||
40078 | wxPyEndAllowThreads(__tstate); | |
40079 | if (PyErr_Occurred()) SWIG_fail; | |
40080 | } | |
40081 | { | |
40082 | wxSize * resultptr; | |
093d3ff1 | 40083 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
40084 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
40085 | } | |
40086 | return resultobj; | |
40087 | fail: | |
40088 | return NULL; | |
40089 | } | |
40090 | ||
40091 | ||
c32bde28 | 40092 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40093 | PyObject *resultobj; |
40094 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40095 | PyObject * obj0 = 0 ; | |
40096 | char *kwnames[] = { | |
40097 | (char *) "self", NULL | |
40098 | }; | |
40099 | ||
40100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40103 | { |
40104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40105 | (arg1)->RecalcSizes(); | |
40106 | ||
40107 | wxPyEndAllowThreads(__tstate); | |
40108 | if (PyErr_Occurred()) SWIG_fail; | |
40109 | } | |
40110 | Py_INCREF(Py_None); resultobj = Py_None; | |
40111 | return resultobj; | |
40112 | fail: | |
40113 | return NULL; | |
40114 | } | |
40115 | ||
40116 | ||
c32bde28 | 40117 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40118 | PyObject *resultobj; |
40119 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40120 | wxSize result; | |
40121 | PyObject * obj0 = 0 ; | |
40122 | char *kwnames[] = { | |
40123 | (char *) "self", NULL | |
40124 | }; | |
40125 | ||
40126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40129 | { |
40130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40131 | result = (arg1)->CalcMin(); | |
40132 | ||
40133 | wxPyEndAllowThreads(__tstate); | |
40134 | if (PyErr_Occurred()) SWIG_fail; | |
40135 | } | |
40136 | { | |
40137 | wxSize * resultptr; | |
093d3ff1 | 40138 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
40139 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
40140 | } | |
40141 | return resultobj; | |
40142 | fail: | |
40143 | return NULL; | |
40144 | } | |
40145 | ||
40146 | ||
c32bde28 | 40147 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40148 | PyObject *resultobj; |
40149 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40150 | PyObject * obj0 = 0 ; | |
40151 | char *kwnames[] = { | |
40152 | (char *) "self", NULL | |
40153 | }; | |
40154 | ||
40155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40156 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40157 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40158 | { |
40159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40160 | (arg1)->Layout(); | |
40161 | ||
40162 | wxPyEndAllowThreads(__tstate); | |
40163 | if (PyErr_Occurred()) SWIG_fail; | |
40164 | } | |
40165 | Py_INCREF(Py_None); resultobj = Py_None; | |
40166 | return resultobj; | |
40167 | fail: | |
40168 | return NULL; | |
40169 | } | |
40170 | ||
40171 | ||
c32bde28 | 40172 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40173 | PyObject *resultobj; |
40174 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40175 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40176 | wxSize result; | |
40177 | PyObject * obj0 = 0 ; | |
40178 | PyObject * obj1 = 0 ; | |
40179 | char *kwnames[] = { | |
40180 | (char *) "self",(char *) "window", NULL | |
40181 | }; | |
40182 | ||
40183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40186 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
40187 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
40188 | { |
40189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40190 | result = (arg1)->Fit(arg2); | |
40191 | ||
40192 | wxPyEndAllowThreads(__tstate); | |
40193 | if (PyErr_Occurred()) SWIG_fail; | |
40194 | } | |
40195 | { | |
40196 | wxSize * resultptr; | |
093d3ff1 | 40197 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
40198 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
40199 | } | |
40200 | return resultobj; | |
40201 | fail: | |
40202 | return NULL; | |
40203 | } | |
40204 | ||
40205 | ||
c32bde28 | 40206 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40207 | PyObject *resultobj; |
40208 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40210 | PyObject * obj0 = 0 ; | |
40211 | PyObject * obj1 = 0 ; | |
40212 | char *kwnames[] = { | |
40213 | (char *) "self",(char *) "window", NULL | |
40214 | }; | |
40215 | ||
40216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40219 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
40220 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
40221 | { |
40222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40223 | (arg1)->FitInside(arg2); | |
40224 | ||
40225 | wxPyEndAllowThreads(__tstate); | |
40226 | if (PyErr_Occurred()) SWIG_fail; | |
40227 | } | |
40228 | Py_INCREF(Py_None); resultobj = Py_None; | |
40229 | return resultobj; | |
40230 | fail: | |
40231 | return NULL; | |
40232 | } | |
40233 | ||
40234 | ||
c32bde28 | 40235 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40236 | PyObject *resultobj; |
40237 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40238 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40239 | PyObject * obj0 = 0 ; | |
40240 | PyObject * obj1 = 0 ; | |
40241 | char *kwnames[] = { | |
40242 | (char *) "self",(char *) "window", NULL | |
40243 | }; | |
40244 | ||
40245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40248 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
40249 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
40250 | { |
40251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40252 | (arg1)->SetSizeHints(arg2); | |
40253 | ||
40254 | wxPyEndAllowThreads(__tstate); | |
40255 | if (PyErr_Occurred()) SWIG_fail; | |
40256 | } | |
40257 | Py_INCREF(Py_None); resultobj = Py_None; | |
40258 | return resultobj; | |
40259 | fail: | |
40260 | return NULL; | |
40261 | } | |
40262 | ||
40263 | ||
c32bde28 | 40264 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40265 | PyObject *resultobj; |
40266 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40267 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40268 | PyObject * obj0 = 0 ; | |
40269 | PyObject * obj1 = 0 ; | |
40270 | char *kwnames[] = { | |
40271 | (char *) "self",(char *) "window", NULL | |
40272 | }; | |
40273 | ||
40274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40275 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40276 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40277 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
40278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
40279 | { |
40280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40281 | (arg1)->SetVirtualSizeHints(arg2); | |
40282 | ||
40283 | wxPyEndAllowThreads(__tstate); | |
40284 | if (PyErr_Occurred()) SWIG_fail; | |
40285 | } | |
40286 | Py_INCREF(Py_None); resultobj = Py_None; | |
40287 | return resultobj; | |
40288 | fail: | |
40289 | return NULL; | |
40290 | } | |
40291 | ||
40292 | ||
c32bde28 | 40293 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40294 | PyObject *resultobj; |
40295 | wxSizer *arg1 = (wxSizer *) 0 ; | |
ae8162c8 | 40296 | bool arg2 = (bool) false ; |
d55e5bfc RD |
40297 | PyObject * obj0 = 0 ; |
40298 | PyObject * obj1 = 0 ; | |
40299 | char *kwnames[] = { | |
248ed943 | 40300 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
40301 | }; |
40302 | ||
40303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 40306 | if (obj1) { |
093d3ff1 RD |
40307 | { |
40308 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
40309 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40310 | } | |
d55e5bfc RD |
40311 | } |
40312 | { | |
40313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40314 | (arg1)->Clear(arg2); | |
40315 | ||
40316 | wxPyEndAllowThreads(__tstate); | |
40317 | if (PyErr_Occurred()) SWIG_fail; | |
40318 | } | |
40319 | Py_INCREF(Py_None); resultobj = Py_None; | |
40320 | return resultobj; | |
40321 | fail: | |
40322 | return NULL; | |
40323 | } | |
40324 | ||
40325 | ||
c32bde28 | 40326 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40327 | PyObject *resultobj; |
40328 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40329 | PyObject * obj0 = 0 ; | |
40330 | char *kwnames[] = { | |
40331 | (char *) "self", NULL | |
40332 | }; | |
40333 | ||
40334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40337 | { |
40338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40339 | (arg1)->DeleteWindows(); | |
40340 | ||
40341 | wxPyEndAllowThreads(__tstate); | |
40342 | if (PyErr_Occurred()) SWIG_fail; | |
40343 | } | |
40344 | Py_INCREF(Py_None); resultobj = Py_None; | |
40345 | return resultobj; | |
40346 | fail: | |
40347 | return NULL; | |
40348 | } | |
40349 | ||
40350 | ||
c32bde28 | 40351 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40352 | PyObject *resultobj; |
40353 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40354 | PyObject *result; | |
40355 | PyObject * obj0 = 0 ; | |
40356 | char *kwnames[] = { | |
40357 | (char *) "self", NULL | |
40358 | }; | |
40359 | ||
40360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40363 | { |
40364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40365 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
40366 | ||
40367 | wxPyEndAllowThreads(__tstate); | |
40368 | if (PyErr_Occurred()) SWIG_fail; | |
40369 | } | |
40370 | resultobj = result; | |
40371 | return resultobj; | |
40372 | fail: | |
40373 | return NULL; | |
40374 | } | |
40375 | ||
40376 | ||
c32bde28 | 40377 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40378 | PyObject *resultobj; |
40379 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40380 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 RD |
40381 | bool arg3 = (bool) true ; |
40382 | bool arg4 = (bool) false ; | |
7e63a440 | 40383 | bool result; |
d55e5bfc RD |
40384 | PyObject * obj0 = 0 ; |
40385 | PyObject * obj1 = 0 ; | |
40386 | PyObject * obj2 = 0 ; | |
7e63a440 | 40387 | PyObject * obj3 = 0 ; |
d55e5bfc | 40388 | char *kwnames[] = { |
7e63a440 | 40389 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
40390 | }; |
40391 | ||
7e63a440 | 40392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
40393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40395 | arg2 = obj1; |
40396 | if (obj2) { | |
093d3ff1 RD |
40397 | { |
40398 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
40399 | if (SWIG_arg_fail(3)) SWIG_fail; | |
40400 | } | |
d55e5bfc | 40401 | } |
7e63a440 | 40402 | if (obj3) { |
093d3ff1 RD |
40403 | { |
40404 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
40405 | if (SWIG_arg_fail(4)) SWIG_fail; | |
40406 | } | |
7e63a440 | 40407 | } |
d55e5bfc RD |
40408 | { |
40409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e63a440 | 40410 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
40411 | |
40412 | wxPyEndAllowThreads(__tstate); | |
40413 | if (PyErr_Occurred()) SWIG_fail; | |
40414 | } | |
7e63a440 RD |
40415 | { |
40416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40417 | } | |
d55e5bfc RD |
40418 | return resultobj; |
40419 | fail: | |
40420 | return NULL; | |
40421 | } | |
40422 | ||
40423 | ||
c32bde28 | 40424 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40425 | PyObject *resultobj; |
40426 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40427 | PyObject *arg2 = (PyObject *) 0 ; | |
40428 | bool result; | |
40429 | PyObject * obj0 = 0 ; | |
40430 | PyObject * obj1 = 0 ; | |
40431 | char *kwnames[] = { | |
40432 | (char *) "self",(char *) "item", NULL | |
40433 | }; | |
40434 | ||
40435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40438 | arg2 = obj1; |
40439 | { | |
40440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40441 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
40442 | ||
40443 | wxPyEndAllowThreads(__tstate); | |
40444 | if (PyErr_Occurred()) SWIG_fail; | |
40445 | } | |
40446 | { | |
40447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40448 | } | |
40449 | return resultobj; | |
40450 | fail: | |
40451 | return NULL; | |
40452 | } | |
40453 | ||
40454 | ||
c32bde28 | 40455 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40456 | PyObject *resultobj; |
40457 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40458 | bool arg2 ; | |
40459 | PyObject * obj0 = 0 ; | |
40460 | PyObject * obj1 = 0 ; | |
40461 | char *kwnames[] = { | |
40462 | (char *) "self",(char *) "show", NULL | |
40463 | }; | |
40464 | ||
40465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40468 | { | |
40469 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
40470 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40471 | } | |
d55e5bfc RD |
40472 | { |
40473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40474 | (arg1)->ShowItems(arg2); | |
40475 | ||
40476 | wxPyEndAllowThreads(__tstate); | |
40477 | if (PyErr_Occurred()) SWIG_fail; | |
40478 | } | |
40479 | Py_INCREF(Py_None); resultobj = Py_None; | |
40480 | return resultobj; | |
40481 | fail: | |
40482 | return NULL; | |
40483 | } | |
40484 | ||
40485 | ||
c32bde28 | 40486 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40487 | PyObject *obj; |
40488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40489 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
40490 | Py_INCREF(obj); | |
40491 | return Py_BuildValue((char *)""); | |
40492 | } | |
c32bde28 | 40493 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40494 | PyObject *resultobj; |
40495 | wxPySizer *result; | |
40496 | char *kwnames[] = { | |
40497 | NULL | |
40498 | }; | |
40499 | ||
40500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
40501 | { | |
40502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40503 | result = (wxPySizer *)new wxPySizer(); | |
40504 | ||
40505 | wxPyEndAllowThreads(__tstate); | |
40506 | if (PyErr_Occurred()) SWIG_fail; | |
40507 | } | |
40508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
40509 | return resultobj; | |
40510 | fail: | |
40511 | return NULL; | |
40512 | } | |
40513 | ||
40514 | ||
c32bde28 | 40515 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40516 | PyObject *resultobj; |
40517 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
40518 | PyObject *arg2 = (PyObject *) 0 ; | |
40519 | PyObject *arg3 = (PyObject *) 0 ; | |
40520 | PyObject * obj0 = 0 ; | |
40521 | PyObject * obj1 = 0 ; | |
40522 | PyObject * obj2 = 0 ; | |
40523 | char *kwnames[] = { | |
40524 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
40525 | }; | |
40526 | ||
40527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
40528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPySizer, SWIG_POINTER_EXCEPTION | 0); |
40529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40530 | arg2 = obj1; |
40531 | arg3 = obj2; | |
40532 | { | |
40533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40534 | (arg1)->_setCallbackInfo(arg2,arg3); | |
40535 | ||
40536 | wxPyEndAllowThreads(__tstate); | |
40537 | if (PyErr_Occurred()) SWIG_fail; | |
40538 | } | |
40539 | Py_INCREF(Py_None); resultobj = Py_None; | |
40540 | return resultobj; | |
40541 | fail: | |
40542 | return NULL; | |
40543 | } | |
40544 | ||
40545 | ||
c32bde28 | 40546 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40547 | PyObject *obj; |
40548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40549 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
40550 | Py_INCREF(obj); | |
40551 | return Py_BuildValue((char *)""); | |
40552 | } | |
c32bde28 | 40553 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40554 | PyObject *resultobj; |
40555 | int arg1 = (int) wxHORIZONTAL ; | |
40556 | wxBoxSizer *result; | |
40557 | PyObject * obj0 = 0 ; | |
40558 | char *kwnames[] = { | |
40559 | (char *) "orient", NULL | |
40560 | }; | |
40561 | ||
40562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
40563 | if (obj0) { | |
093d3ff1 RD |
40564 | { |
40565 | arg1 = (int)(SWIG_As_int(obj0)); | |
40566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40567 | } | |
d55e5bfc RD |
40568 | } |
40569 | { | |
40570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40571 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
40572 | ||
40573 | wxPyEndAllowThreads(__tstate); | |
40574 | if (PyErr_Occurred()) SWIG_fail; | |
40575 | } | |
40576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
40577 | return resultobj; | |
40578 | fail: | |
40579 | return NULL; | |
40580 | } | |
40581 | ||
40582 | ||
c32bde28 | 40583 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40584 | PyObject *resultobj; |
40585 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
40586 | int result; | |
40587 | PyObject * obj0 = 0 ; | |
40588 | char *kwnames[] = { | |
40589 | (char *) "self", NULL | |
40590 | }; | |
40591 | ||
40592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
40594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40595 | { |
40596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40597 | result = (int)(arg1)->GetOrientation(); | |
40598 | ||
40599 | wxPyEndAllowThreads(__tstate); | |
40600 | if (PyErr_Occurred()) SWIG_fail; | |
40601 | } | |
093d3ff1 RD |
40602 | { |
40603 | resultobj = SWIG_From_int((int)(result)); | |
40604 | } | |
d55e5bfc RD |
40605 | return resultobj; |
40606 | fail: | |
40607 | return NULL; | |
40608 | } | |
40609 | ||
40610 | ||
c32bde28 | 40611 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40612 | PyObject *resultobj; |
40613 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
40614 | int arg2 ; | |
40615 | PyObject * obj0 = 0 ; | |
40616 | PyObject * obj1 = 0 ; | |
40617 | char *kwnames[] = { | |
40618 | (char *) "self",(char *) "orient", NULL | |
40619 | }; | |
40620 | ||
40621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
40623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40624 | { | |
40625 | arg2 = (int)(SWIG_As_int(obj1)); | |
40626 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40627 | } | |
d55e5bfc RD |
40628 | { |
40629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40630 | (arg1)->SetOrientation(arg2); | |
40631 | ||
40632 | wxPyEndAllowThreads(__tstate); | |
40633 | if (PyErr_Occurred()) SWIG_fail; | |
40634 | } | |
40635 | Py_INCREF(Py_None); resultobj = Py_None; | |
40636 | return resultobj; | |
40637 | fail: | |
40638 | return NULL; | |
40639 | } | |
40640 | ||
40641 | ||
c32bde28 | 40642 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40643 | PyObject *obj; |
40644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40645 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
40646 | Py_INCREF(obj); | |
40647 | return Py_BuildValue((char *)""); | |
40648 | } | |
c32bde28 | 40649 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40650 | PyObject *resultobj; |
40651 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
40652 | int arg2 = (int) wxHORIZONTAL ; | |
40653 | wxStaticBoxSizer *result; | |
40654 | PyObject * obj0 = 0 ; | |
40655 | PyObject * obj1 = 0 ; | |
40656 | char *kwnames[] = { | |
40657 | (char *) "box",(char *) "orient", NULL | |
40658 | }; | |
40659 | ||
40660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
40662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 40663 | if (obj1) { |
093d3ff1 RD |
40664 | { |
40665 | arg2 = (int)(SWIG_As_int(obj1)); | |
40666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40667 | } | |
d55e5bfc RD |
40668 | } |
40669 | { | |
40670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40671 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
40672 | ||
40673 | wxPyEndAllowThreads(__tstate); | |
40674 | if (PyErr_Occurred()) SWIG_fail; | |
40675 | } | |
40676 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
40677 | return resultobj; | |
40678 | fail: | |
40679 | return NULL; | |
40680 | } | |
40681 | ||
40682 | ||
c32bde28 | 40683 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40684 | PyObject *resultobj; |
40685 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
40686 | wxStaticBox *result; | |
40687 | PyObject * obj0 = 0 ; | |
40688 | char *kwnames[] = { | |
40689 | (char *) "self", NULL | |
40690 | }; | |
40691 | ||
40692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
40694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40695 | { |
40696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40697 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
40698 | ||
40699 | wxPyEndAllowThreads(__tstate); | |
40700 | if (PyErr_Occurred()) SWIG_fail; | |
40701 | } | |
40702 | { | |
412d302d | 40703 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
40704 | } |
40705 | return resultobj; | |
40706 | fail: | |
40707 | return NULL; | |
40708 | } | |
40709 | ||
40710 | ||
c32bde28 | 40711 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40712 | PyObject *obj; |
40713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40714 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
40715 | Py_INCREF(obj); | |
40716 | return Py_BuildValue((char *)""); | |
40717 | } | |
c32bde28 | 40718 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40719 | PyObject *resultobj; |
40720 | int arg1 = (int) 1 ; | |
40721 | int arg2 = (int) 0 ; | |
40722 | int arg3 = (int) 0 ; | |
40723 | int arg4 = (int) 0 ; | |
40724 | wxGridSizer *result; | |
40725 | PyObject * obj0 = 0 ; | |
40726 | PyObject * obj1 = 0 ; | |
40727 | PyObject * obj2 = 0 ; | |
40728 | PyObject * obj3 = 0 ; | |
40729 | char *kwnames[] = { | |
40730 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
40731 | }; | |
40732 | ||
40733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40734 | if (obj0) { | |
093d3ff1 RD |
40735 | { |
40736 | arg1 = (int)(SWIG_As_int(obj0)); | |
40737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40738 | } | |
d55e5bfc RD |
40739 | } |
40740 | if (obj1) { | |
093d3ff1 RD |
40741 | { |
40742 | arg2 = (int)(SWIG_As_int(obj1)); | |
40743 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40744 | } | |
d55e5bfc RD |
40745 | } |
40746 | if (obj2) { | |
093d3ff1 RD |
40747 | { |
40748 | arg3 = (int)(SWIG_As_int(obj2)); | |
40749 | if (SWIG_arg_fail(3)) SWIG_fail; | |
40750 | } | |
d55e5bfc RD |
40751 | } |
40752 | if (obj3) { | |
093d3ff1 RD |
40753 | { |
40754 | arg4 = (int)(SWIG_As_int(obj3)); | |
40755 | if (SWIG_arg_fail(4)) SWIG_fail; | |
40756 | } | |
d55e5bfc RD |
40757 | } |
40758 | { | |
40759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40760 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
40761 | ||
40762 | wxPyEndAllowThreads(__tstate); | |
40763 | if (PyErr_Occurred()) SWIG_fail; | |
40764 | } | |
40765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
40766 | return resultobj; | |
40767 | fail: | |
40768 | return NULL; | |
40769 | } | |
40770 | ||
40771 | ||
c32bde28 | 40772 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40773 | PyObject *resultobj; |
40774 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40775 | int arg2 ; | |
40776 | PyObject * obj0 = 0 ; | |
40777 | PyObject * obj1 = 0 ; | |
40778 | char *kwnames[] = { | |
40779 | (char *) "self",(char *) "cols", NULL | |
40780 | }; | |
40781 | ||
40782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40785 | { | |
40786 | arg2 = (int)(SWIG_As_int(obj1)); | |
40787 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40788 | } | |
d55e5bfc RD |
40789 | { |
40790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40791 | (arg1)->SetCols(arg2); | |
40792 | ||
40793 | wxPyEndAllowThreads(__tstate); | |
40794 | if (PyErr_Occurred()) SWIG_fail; | |
40795 | } | |
40796 | Py_INCREF(Py_None); resultobj = Py_None; | |
40797 | return resultobj; | |
40798 | fail: | |
40799 | return NULL; | |
40800 | } | |
40801 | ||
40802 | ||
c32bde28 | 40803 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40804 | PyObject *resultobj; |
40805 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40806 | int arg2 ; | |
40807 | PyObject * obj0 = 0 ; | |
40808 | PyObject * obj1 = 0 ; | |
40809 | char *kwnames[] = { | |
40810 | (char *) "self",(char *) "rows", NULL | |
40811 | }; | |
40812 | ||
40813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40816 | { | |
40817 | arg2 = (int)(SWIG_As_int(obj1)); | |
40818 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40819 | } | |
d55e5bfc RD |
40820 | { |
40821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40822 | (arg1)->SetRows(arg2); | |
40823 | ||
40824 | wxPyEndAllowThreads(__tstate); | |
40825 | if (PyErr_Occurred()) SWIG_fail; | |
40826 | } | |
40827 | Py_INCREF(Py_None); resultobj = Py_None; | |
40828 | return resultobj; | |
40829 | fail: | |
40830 | return NULL; | |
40831 | } | |
40832 | ||
40833 | ||
c32bde28 | 40834 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40835 | PyObject *resultobj; |
40836 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40837 | int arg2 ; | |
40838 | PyObject * obj0 = 0 ; | |
40839 | PyObject * obj1 = 0 ; | |
40840 | char *kwnames[] = { | |
40841 | (char *) "self",(char *) "gap", NULL | |
40842 | }; | |
40843 | ||
40844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40847 | { | |
40848 | arg2 = (int)(SWIG_As_int(obj1)); | |
40849 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40850 | } | |
d55e5bfc RD |
40851 | { |
40852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40853 | (arg1)->SetVGap(arg2); | |
40854 | ||
40855 | wxPyEndAllowThreads(__tstate); | |
40856 | if (PyErr_Occurred()) SWIG_fail; | |
40857 | } | |
40858 | Py_INCREF(Py_None); resultobj = Py_None; | |
40859 | return resultobj; | |
40860 | fail: | |
40861 | return NULL; | |
40862 | } | |
40863 | ||
40864 | ||
c32bde28 | 40865 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40866 | PyObject *resultobj; |
40867 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40868 | int arg2 ; | |
40869 | PyObject * obj0 = 0 ; | |
40870 | PyObject * obj1 = 0 ; | |
40871 | char *kwnames[] = { | |
40872 | (char *) "self",(char *) "gap", NULL | |
40873 | }; | |
40874 | ||
40875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40878 | { | |
40879 | arg2 = (int)(SWIG_As_int(obj1)); | |
40880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40881 | } | |
d55e5bfc RD |
40882 | { |
40883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40884 | (arg1)->SetHGap(arg2); | |
40885 | ||
40886 | wxPyEndAllowThreads(__tstate); | |
40887 | if (PyErr_Occurred()) SWIG_fail; | |
40888 | } | |
40889 | Py_INCREF(Py_None); resultobj = Py_None; | |
40890 | return resultobj; | |
40891 | fail: | |
40892 | return NULL; | |
40893 | } | |
40894 | ||
40895 | ||
c32bde28 | 40896 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40897 | PyObject *resultobj; |
40898 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40899 | int result; | |
40900 | PyObject * obj0 = 0 ; | |
40901 | char *kwnames[] = { | |
40902 | (char *) "self", NULL | |
40903 | }; | |
40904 | ||
40905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40908 | { |
40909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40910 | result = (int)(arg1)->GetCols(); | |
40911 | ||
40912 | wxPyEndAllowThreads(__tstate); | |
40913 | if (PyErr_Occurred()) SWIG_fail; | |
40914 | } | |
093d3ff1 RD |
40915 | { |
40916 | resultobj = SWIG_From_int((int)(result)); | |
40917 | } | |
d55e5bfc RD |
40918 | return resultobj; |
40919 | fail: | |
40920 | return NULL; | |
40921 | } | |
40922 | ||
40923 | ||
c32bde28 | 40924 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40925 | PyObject *resultobj; |
40926 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40927 | int result; | |
40928 | PyObject * obj0 = 0 ; | |
40929 | char *kwnames[] = { | |
40930 | (char *) "self", NULL | |
40931 | }; | |
40932 | ||
40933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40936 | { |
40937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40938 | result = (int)(arg1)->GetRows(); | |
40939 | ||
40940 | wxPyEndAllowThreads(__tstate); | |
40941 | if (PyErr_Occurred()) SWIG_fail; | |
40942 | } | |
093d3ff1 RD |
40943 | { |
40944 | resultobj = SWIG_From_int((int)(result)); | |
40945 | } | |
d55e5bfc RD |
40946 | return resultobj; |
40947 | fail: | |
40948 | return NULL; | |
40949 | } | |
40950 | ||
40951 | ||
c32bde28 | 40952 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40953 | PyObject *resultobj; |
40954 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40955 | int result; | |
40956 | PyObject * obj0 = 0 ; | |
40957 | char *kwnames[] = { | |
40958 | (char *) "self", NULL | |
40959 | }; | |
40960 | ||
40961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40964 | { |
40965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40966 | result = (int)(arg1)->GetVGap(); | |
40967 | ||
40968 | wxPyEndAllowThreads(__tstate); | |
40969 | if (PyErr_Occurred()) SWIG_fail; | |
40970 | } | |
093d3ff1 RD |
40971 | { |
40972 | resultobj = SWIG_From_int((int)(result)); | |
40973 | } | |
d55e5bfc RD |
40974 | return resultobj; |
40975 | fail: | |
40976 | return NULL; | |
40977 | } | |
40978 | ||
40979 | ||
c32bde28 | 40980 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40981 | PyObject *resultobj; |
40982 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40983 | int result; | |
40984 | PyObject * obj0 = 0 ; | |
40985 | char *kwnames[] = { | |
40986 | (char *) "self", NULL | |
40987 | }; | |
40988 | ||
40989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40992 | { |
40993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40994 | result = (int)(arg1)->GetHGap(); | |
40995 | ||
40996 | wxPyEndAllowThreads(__tstate); | |
40997 | if (PyErr_Occurred()) SWIG_fail; | |
40998 | } | |
093d3ff1 RD |
40999 | { |
41000 | resultobj = SWIG_From_int((int)(result)); | |
41001 | } | |
d55e5bfc RD |
41002 | return resultobj; |
41003 | fail: | |
41004 | return NULL; | |
41005 | } | |
41006 | ||
41007 | ||
c32bde28 | 41008 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41009 | PyObject *obj; |
41010 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41011 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
41012 | Py_INCREF(obj); | |
41013 | return Py_BuildValue((char *)""); | |
41014 | } | |
c32bde28 | 41015 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41016 | PyObject *resultobj; |
41017 | int arg1 = (int) 1 ; | |
41018 | int arg2 = (int) 0 ; | |
41019 | int arg3 = (int) 0 ; | |
41020 | int arg4 = (int) 0 ; | |
41021 | wxFlexGridSizer *result; | |
41022 | PyObject * obj0 = 0 ; | |
41023 | PyObject * obj1 = 0 ; | |
41024 | PyObject * obj2 = 0 ; | |
41025 | PyObject * obj3 = 0 ; | |
41026 | char *kwnames[] = { | |
41027 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
41028 | }; | |
41029 | ||
41030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
41031 | if (obj0) { | |
093d3ff1 RD |
41032 | { |
41033 | arg1 = (int)(SWIG_As_int(obj0)); | |
41034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41035 | } | |
d55e5bfc RD |
41036 | } |
41037 | if (obj1) { | |
093d3ff1 RD |
41038 | { |
41039 | arg2 = (int)(SWIG_As_int(obj1)); | |
41040 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41041 | } | |
d55e5bfc RD |
41042 | } |
41043 | if (obj2) { | |
093d3ff1 RD |
41044 | { |
41045 | arg3 = (int)(SWIG_As_int(obj2)); | |
41046 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41047 | } | |
d55e5bfc RD |
41048 | } |
41049 | if (obj3) { | |
093d3ff1 RD |
41050 | { |
41051 | arg4 = (int)(SWIG_As_int(obj3)); | |
41052 | if (SWIG_arg_fail(4)) SWIG_fail; | |
41053 | } | |
d55e5bfc RD |
41054 | } |
41055 | { | |
41056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41057 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
41058 | ||
41059 | wxPyEndAllowThreads(__tstate); | |
41060 | if (PyErr_Occurred()) SWIG_fail; | |
41061 | } | |
41062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
41063 | return resultobj; | |
41064 | fail: | |
41065 | return NULL; | |
41066 | } | |
41067 | ||
41068 | ||
c32bde28 | 41069 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41070 | PyObject *resultobj; |
41071 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41072 | size_t arg2 ; | |
41073 | int arg3 = (int) 0 ; | |
41074 | PyObject * obj0 = 0 ; | |
41075 | PyObject * obj1 = 0 ; | |
41076 | PyObject * obj2 = 0 ; | |
41077 | char *kwnames[] = { | |
41078 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
41079 | }; | |
41080 | ||
41081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
41082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41084 | { | |
41085 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
41086 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41087 | } | |
d55e5bfc | 41088 | if (obj2) { |
093d3ff1 RD |
41089 | { |
41090 | arg3 = (int)(SWIG_As_int(obj2)); | |
41091 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41092 | } | |
d55e5bfc RD |
41093 | } |
41094 | { | |
41095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41096 | (arg1)->AddGrowableRow(arg2,arg3); | |
41097 | ||
41098 | wxPyEndAllowThreads(__tstate); | |
41099 | if (PyErr_Occurred()) SWIG_fail; | |
41100 | } | |
41101 | Py_INCREF(Py_None); resultobj = Py_None; | |
41102 | return resultobj; | |
41103 | fail: | |
41104 | return NULL; | |
41105 | } | |
41106 | ||
41107 | ||
c32bde28 | 41108 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41109 | PyObject *resultobj; |
41110 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41111 | size_t arg2 ; | |
41112 | PyObject * obj0 = 0 ; | |
41113 | PyObject * obj1 = 0 ; | |
41114 | char *kwnames[] = { | |
41115 | (char *) "self",(char *) "idx", NULL | |
41116 | }; | |
41117 | ||
41118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41121 | { | |
41122 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
41123 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41124 | } | |
d55e5bfc RD |
41125 | { |
41126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41127 | (arg1)->RemoveGrowableRow(arg2); | |
41128 | ||
41129 | wxPyEndAllowThreads(__tstate); | |
41130 | if (PyErr_Occurred()) SWIG_fail; | |
41131 | } | |
41132 | Py_INCREF(Py_None); resultobj = Py_None; | |
41133 | return resultobj; | |
41134 | fail: | |
41135 | return NULL; | |
41136 | } | |
41137 | ||
41138 | ||
c32bde28 | 41139 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41140 | PyObject *resultobj; |
41141 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41142 | size_t arg2 ; | |
41143 | int arg3 = (int) 0 ; | |
41144 | PyObject * obj0 = 0 ; | |
41145 | PyObject * obj1 = 0 ; | |
41146 | PyObject * obj2 = 0 ; | |
41147 | char *kwnames[] = { | |
41148 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
41149 | }; | |
41150 | ||
41151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
41152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41154 | { | |
41155 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
41156 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41157 | } | |
d55e5bfc | 41158 | if (obj2) { |
093d3ff1 RD |
41159 | { |
41160 | arg3 = (int)(SWIG_As_int(obj2)); | |
41161 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41162 | } | |
d55e5bfc RD |
41163 | } |
41164 | { | |
41165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41166 | (arg1)->AddGrowableCol(arg2,arg3); | |
41167 | ||
41168 | wxPyEndAllowThreads(__tstate); | |
41169 | if (PyErr_Occurred()) SWIG_fail; | |
41170 | } | |
41171 | Py_INCREF(Py_None); resultobj = Py_None; | |
41172 | return resultobj; | |
41173 | fail: | |
41174 | return NULL; | |
41175 | } | |
41176 | ||
41177 | ||
c32bde28 | 41178 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41179 | PyObject *resultobj; |
41180 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41181 | size_t arg2 ; | |
41182 | PyObject * obj0 = 0 ; | |
41183 | PyObject * obj1 = 0 ; | |
41184 | char *kwnames[] = { | |
41185 | (char *) "self",(char *) "idx", NULL | |
41186 | }; | |
41187 | ||
41188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41191 | { | |
41192 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
41193 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41194 | } | |
d55e5bfc RD |
41195 | { |
41196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41197 | (arg1)->RemoveGrowableCol(arg2); | |
41198 | ||
41199 | wxPyEndAllowThreads(__tstate); | |
41200 | if (PyErr_Occurred()) SWIG_fail; | |
41201 | } | |
41202 | Py_INCREF(Py_None); resultobj = Py_None; | |
41203 | return resultobj; | |
41204 | fail: | |
41205 | return NULL; | |
41206 | } | |
41207 | ||
41208 | ||
c32bde28 | 41209 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41210 | PyObject *resultobj; |
41211 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41212 | int arg2 ; | |
41213 | PyObject * obj0 = 0 ; | |
41214 | PyObject * obj1 = 0 ; | |
41215 | char *kwnames[] = { | |
41216 | (char *) "self",(char *) "direction", NULL | |
41217 | }; | |
41218 | ||
41219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41222 | { | |
41223 | arg2 = (int)(SWIG_As_int(obj1)); | |
41224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41225 | } | |
d55e5bfc RD |
41226 | { |
41227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41228 | (arg1)->SetFlexibleDirection(arg2); | |
41229 | ||
41230 | wxPyEndAllowThreads(__tstate); | |
41231 | if (PyErr_Occurred()) SWIG_fail; | |
41232 | } | |
41233 | Py_INCREF(Py_None); resultobj = Py_None; | |
41234 | return resultobj; | |
41235 | fail: | |
41236 | return NULL; | |
41237 | } | |
41238 | ||
41239 | ||
c32bde28 | 41240 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41241 | PyObject *resultobj; |
41242 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41243 | int result; | |
41244 | PyObject * obj0 = 0 ; | |
41245 | char *kwnames[] = { | |
41246 | (char *) "self", NULL | |
41247 | }; | |
41248 | ||
41249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41252 | { |
41253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41254 | result = (int)(arg1)->GetFlexibleDirection(); | |
41255 | ||
41256 | wxPyEndAllowThreads(__tstate); | |
41257 | if (PyErr_Occurred()) SWIG_fail; | |
41258 | } | |
093d3ff1 RD |
41259 | { |
41260 | resultobj = SWIG_From_int((int)(result)); | |
41261 | } | |
d55e5bfc RD |
41262 | return resultobj; |
41263 | fail: | |
41264 | return NULL; | |
41265 | } | |
41266 | ||
41267 | ||
c32bde28 | 41268 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41269 | PyObject *resultobj; |
41270 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
093d3ff1 | 41271 | wxFlexSizerGrowMode arg2 ; |
d55e5bfc RD |
41272 | PyObject * obj0 = 0 ; |
41273 | PyObject * obj1 = 0 ; | |
41274 | char *kwnames[] = { | |
41275 | (char *) "self",(char *) "mode", NULL | |
41276 | }; | |
41277 | ||
41278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41279 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41280 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41281 | { | |
41282 | arg2 = (wxFlexSizerGrowMode)(SWIG_As_int(obj1)); | |
41283 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41284 | } | |
d55e5bfc RD |
41285 | { |
41286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41287 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
41288 | ||
41289 | wxPyEndAllowThreads(__tstate); | |
41290 | if (PyErr_Occurred()) SWIG_fail; | |
41291 | } | |
41292 | Py_INCREF(Py_None); resultobj = Py_None; | |
41293 | return resultobj; | |
41294 | fail: | |
41295 | return NULL; | |
41296 | } | |
41297 | ||
41298 | ||
c32bde28 | 41299 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41300 | PyObject *resultobj; |
41301 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
093d3ff1 | 41302 | wxFlexSizerGrowMode result; |
d55e5bfc RD |
41303 | PyObject * obj0 = 0 ; |
41304 | char *kwnames[] = { | |
41305 | (char *) "self", NULL | |
41306 | }; | |
41307 | ||
41308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41311 | { |
41312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 41313 | result = (wxFlexSizerGrowMode)(arg1)->GetNonFlexibleGrowMode(); |
d55e5bfc RD |
41314 | |
41315 | wxPyEndAllowThreads(__tstate); | |
41316 | if (PyErr_Occurred()) SWIG_fail; | |
41317 | } | |
093d3ff1 | 41318 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
41319 | return resultobj; |
41320 | fail: | |
41321 | return NULL; | |
41322 | } | |
41323 | ||
41324 | ||
c32bde28 | 41325 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41326 | PyObject *resultobj; |
41327 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41328 | wxArrayInt *result; | |
41329 | PyObject * obj0 = 0 ; | |
41330 | char *kwnames[] = { | |
41331 | (char *) "self", NULL | |
41332 | }; | |
41333 | ||
41334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41337 | { |
41338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41339 | { | |
41340 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
41341 | result = (wxArrayInt *) &_result_ref; | |
41342 | } | |
41343 | ||
41344 | wxPyEndAllowThreads(__tstate); | |
41345 | if (PyErr_Occurred()) SWIG_fail; | |
41346 | } | |
41347 | { | |
41348 | resultobj = PyList_New(0); | |
41349 | size_t idx; | |
41350 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
41351 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
41352 | PyList_Append(resultobj, val); | |
41353 | Py_DECREF(val); | |
41354 | } | |
41355 | } | |
41356 | return resultobj; | |
41357 | fail: | |
41358 | return NULL; | |
41359 | } | |
41360 | ||
41361 | ||
c32bde28 | 41362 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41363 | PyObject *resultobj; |
41364 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41365 | wxArrayInt *result; | |
41366 | PyObject * obj0 = 0 ; | |
41367 | char *kwnames[] = { | |
41368 | (char *) "self", NULL | |
41369 | }; | |
41370 | ||
41371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41374 | { |
41375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41376 | { | |
41377 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
41378 | result = (wxArrayInt *) &_result_ref; | |
41379 | } | |
41380 | ||
41381 | wxPyEndAllowThreads(__tstate); | |
41382 | if (PyErr_Occurred()) SWIG_fail; | |
41383 | } | |
41384 | { | |
41385 | resultobj = PyList_New(0); | |
41386 | size_t idx; | |
41387 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
41388 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
41389 | PyList_Append(resultobj, val); | |
41390 | Py_DECREF(val); | |
41391 | } | |
41392 | } | |
41393 | return resultobj; | |
41394 | fail: | |
41395 | return NULL; | |
41396 | } | |
41397 | ||
41398 | ||
c32bde28 | 41399 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41400 | PyObject *obj; |
41401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41402 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
41403 | Py_INCREF(obj); | |
41404 | return Py_BuildValue((char *)""); | |
41405 | } | |
62d32a5f RD |
41406 | static PyObject *_wrap_new_StdDialogButtonSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
41407 | PyObject *resultobj; | |
41408 | wxStdDialogButtonSizer *result; | |
41409 | char *kwnames[] = { | |
41410 | NULL | |
41411 | }; | |
41412 | ||
41413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StdDialogButtonSizer",kwnames)) goto fail; | |
41414 | { | |
41415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41416 | result = (wxStdDialogButtonSizer *)new wxStdDialogButtonSizer(); | |
41417 | ||
41418 | wxPyEndAllowThreads(__tstate); | |
41419 | if (PyErr_Occurred()) SWIG_fail; | |
41420 | } | |
41421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStdDialogButtonSizer, 1); | |
41422 | return resultobj; | |
41423 | fail: | |
41424 | return NULL; | |
41425 | } | |
41426 | ||
41427 | ||
41428 | static PyObject *_wrap_StdDialogButtonSizer_AddButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41429 | PyObject *resultobj; | |
41430 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41431 | wxButton *arg2 = (wxButton *) 0 ; | |
41432 | PyObject * obj0 = 0 ; | |
41433 | PyObject * obj1 = 0 ; | |
41434 | char *kwnames[] = { | |
41435 | (char *) "self",(char *) "button", NULL | |
41436 | }; | |
41437 | ||
41438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_AddButton",kwnames,&obj0,&obj1)) goto fail; | |
41439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41441 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
41442 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41443 | { | |
41444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41445 | (arg1)->AddButton(arg2); | |
41446 | ||
41447 | wxPyEndAllowThreads(__tstate); | |
41448 | if (PyErr_Occurred()) SWIG_fail; | |
41449 | } | |
41450 | Py_INCREF(Py_None); resultobj = Py_None; | |
41451 | return resultobj; | |
41452 | fail: | |
41453 | return NULL; | |
41454 | } | |
41455 | ||
41456 | ||
53aa7709 | 41457 | static PyObject *_wrap_StdDialogButtonSizer_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
62d32a5f RD |
41458 | PyObject *resultobj; |
41459 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41460 | PyObject * obj0 = 0 ; | |
41461 | char *kwnames[] = { | |
41462 | (char *) "self", NULL | |
41463 | }; | |
41464 | ||
53aa7709 | 41465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_Realize",kwnames,&obj0)) goto fail; |
62d32a5f RD |
41466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); |
41467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41468 | { | |
41469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 41470 | (arg1)->Realize(); |
62d32a5f RD |
41471 | |
41472 | wxPyEndAllowThreads(__tstate); | |
41473 | if (PyErr_Occurred()) SWIG_fail; | |
41474 | } | |
41475 | Py_INCREF(Py_None); resultobj = Py_None; | |
41476 | return resultobj; | |
41477 | fail: | |
41478 | return NULL; | |
41479 | } | |
41480 | ||
41481 | ||
51b83b37 RD |
41482 | static PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) { |
41483 | PyObject *resultobj; | |
41484 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41485 | wxButton *arg2 = (wxButton *) 0 ; | |
41486 | PyObject * obj0 = 0 ; | |
41487 | PyObject * obj1 = 0 ; | |
41488 | char *kwnames[] = { | |
41489 | (char *) "self",(char *) "button", NULL | |
41490 | }; | |
41491 | ||
41492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) goto fail; | |
41493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41495 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
41496 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41497 | { | |
41498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41499 | (arg1)->SetAffirmativeButton(arg2); | |
41500 | ||
41501 | wxPyEndAllowThreads(__tstate); | |
41502 | if (PyErr_Occurred()) SWIG_fail; | |
41503 | } | |
41504 | Py_INCREF(Py_None); resultobj = Py_None; | |
41505 | return resultobj; | |
41506 | fail: | |
41507 | return NULL; | |
41508 | } | |
41509 | ||
41510 | ||
41511 | static PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41512 | PyObject *resultobj; | |
41513 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41514 | wxButton *arg2 = (wxButton *) 0 ; | |
41515 | PyObject * obj0 = 0 ; | |
41516 | PyObject * obj1 = 0 ; | |
41517 | char *kwnames[] = { | |
41518 | (char *) "self",(char *) "button", NULL | |
41519 | }; | |
41520 | ||
41521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) goto fail; | |
41522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41524 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
41525 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41526 | { | |
41527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41528 | (arg1)->SetNegativeButton(arg2); | |
41529 | ||
41530 | wxPyEndAllowThreads(__tstate); | |
41531 | if (PyErr_Occurred()) SWIG_fail; | |
41532 | } | |
41533 | Py_INCREF(Py_None); resultobj = Py_None; | |
41534 | return resultobj; | |
41535 | fail: | |
41536 | return NULL; | |
41537 | } | |
41538 | ||
41539 | ||
41540 | static PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41541 | PyObject *resultobj; | |
41542 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41543 | wxButton *arg2 = (wxButton *) 0 ; | |
41544 | PyObject * obj0 = 0 ; | |
41545 | PyObject * obj1 = 0 ; | |
41546 | char *kwnames[] = { | |
41547 | (char *) "self",(char *) "button", NULL | |
41548 | }; | |
41549 | ||
41550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) goto fail; | |
41551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41553 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
41554 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41555 | { | |
41556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41557 | (arg1)->SetCancelButton(arg2); | |
41558 | ||
41559 | wxPyEndAllowThreads(__tstate); | |
41560 | if (PyErr_Occurred()) SWIG_fail; | |
41561 | } | |
41562 | Py_INCREF(Py_None); resultobj = Py_None; | |
41563 | return resultobj; | |
41564 | fail: | |
41565 | return NULL; | |
41566 | } | |
41567 | ||
41568 | ||
62d32a5f RD |
41569 | static PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) { |
41570 | PyObject *resultobj; | |
41571 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41572 | wxButton *result; | |
41573 | PyObject * obj0 = 0 ; | |
41574 | char *kwnames[] = { | |
41575 | (char *) "self", NULL | |
41576 | }; | |
41577 | ||
41578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetAffirmativeButton",kwnames,&obj0)) goto fail; | |
41579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41581 | { | |
41582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41583 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetAffirmativeButton(); | |
41584 | ||
41585 | wxPyEndAllowThreads(__tstate); | |
41586 | if (PyErr_Occurred()) SWIG_fail; | |
41587 | } | |
41588 | { | |
41589 | resultobj = wxPyMake_wxObject(result, 0); | |
41590 | } | |
41591 | return resultobj; | |
41592 | fail: | |
41593 | return NULL; | |
41594 | } | |
41595 | ||
41596 | ||
41597 | static PyObject *_wrap_StdDialogButtonSizer_GetApplyButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41598 | PyObject *resultobj; | |
41599 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41600 | wxButton *result; | |
41601 | PyObject * obj0 = 0 ; | |
41602 | char *kwnames[] = { | |
41603 | (char *) "self", NULL | |
41604 | }; | |
41605 | ||
41606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetApplyButton",kwnames,&obj0)) goto fail; | |
41607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41609 | { | |
41610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41611 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetApplyButton(); | |
41612 | ||
41613 | wxPyEndAllowThreads(__tstate); | |
41614 | if (PyErr_Occurred()) SWIG_fail; | |
41615 | } | |
41616 | { | |
41617 | resultobj = wxPyMake_wxObject(result, 0); | |
41618 | } | |
41619 | return resultobj; | |
41620 | fail: | |
41621 | return NULL; | |
41622 | } | |
41623 | ||
41624 | ||
41625 | static PyObject *_wrap_StdDialogButtonSizer_GetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41626 | PyObject *resultobj; | |
41627 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41628 | wxButton *result; | |
41629 | PyObject * obj0 = 0 ; | |
41630 | char *kwnames[] = { | |
41631 | (char *) "self", NULL | |
41632 | }; | |
41633 | ||
41634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetNegativeButton",kwnames,&obj0)) goto fail; | |
41635 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41636 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41637 | { | |
41638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41639 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetNegativeButton(); | |
41640 | ||
41641 | wxPyEndAllowThreads(__tstate); | |
41642 | if (PyErr_Occurred()) SWIG_fail; | |
41643 | } | |
41644 | { | |
41645 | resultobj = wxPyMake_wxObject(result, 0); | |
41646 | } | |
41647 | return resultobj; | |
41648 | fail: | |
41649 | return NULL; | |
41650 | } | |
41651 | ||
41652 | ||
41653 | static PyObject *_wrap_StdDialogButtonSizer_GetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41654 | PyObject *resultobj; | |
41655 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41656 | wxButton *result; | |
41657 | PyObject * obj0 = 0 ; | |
41658 | char *kwnames[] = { | |
41659 | (char *) "self", NULL | |
41660 | }; | |
41661 | ||
41662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetCancelButton",kwnames,&obj0)) goto fail; | |
41663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41665 | { | |
41666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41667 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetCancelButton(); | |
41668 | ||
41669 | wxPyEndAllowThreads(__tstate); | |
41670 | if (PyErr_Occurred()) SWIG_fail; | |
41671 | } | |
41672 | { | |
41673 | resultobj = wxPyMake_wxObject(result, 0); | |
41674 | } | |
41675 | return resultobj; | |
41676 | fail: | |
41677 | return NULL; | |
41678 | } | |
41679 | ||
41680 | ||
41681 | static PyObject *_wrap_StdDialogButtonSizer_GetHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41682 | PyObject *resultobj; | |
41683 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41684 | wxButton *result; | |
41685 | PyObject * obj0 = 0 ; | |
41686 | char *kwnames[] = { | |
41687 | (char *) "self", NULL | |
41688 | }; | |
41689 | ||
41690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetHelpButton",kwnames,&obj0)) goto fail; | |
41691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41693 | { | |
41694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41695 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetHelpButton(); | |
41696 | ||
41697 | wxPyEndAllowThreads(__tstate); | |
41698 | if (PyErr_Occurred()) SWIG_fail; | |
41699 | } | |
41700 | { | |
41701 | resultobj = wxPyMake_wxObject(result, 0); | |
41702 | } | |
41703 | return resultobj; | |
41704 | fail: | |
41705 | return NULL; | |
41706 | } | |
41707 | ||
41708 | ||
41709 | static PyObject * StdDialogButtonSizer_swigregister(PyObject *, PyObject *args) { | |
41710 | PyObject *obj; | |
41711 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41712 | SWIG_TypeClientData(SWIGTYPE_p_wxStdDialogButtonSizer, obj); | |
41713 | Py_INCREF(obj); | |
41714 | return Py_BuildValue((char *)""); | |
41715 | } | |
c32bde28 | 41716 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41717 | PyObject *resultobj; |
41718 | int arg1 = (int) 0 ; | |
41719 | int arg2 = (int) 0 ; | |
41720 | wxGBPosition *result; | |
41721 | PyObject * obj0 = 0 ; | |
41722 | PyObject * obj1 = 0 ; | |
41723 | char *kwnames[] = { | |
41724 | (char *) "row",(char *) "col", NULL | |
41725 | }; | |
41726 | ||
41727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
41728 | if (obj0) { | |
093d3ff1 RD |
41729 | { |
41730 | arg1 = (int)(SWIG_As_int(obj0)); | |
41731 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41732 | } | |
d55e5bfc RD |
41733 | } |
41734 | if (obj1) { | |
093d3ff1 RD |
41735 | { |
41736 | arg2 = (int)(SWIG_As_int(obj1)); | |
41737 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41738 | } | |
d55e5bfc RD |
41739 | } |
41740 | { | |
41741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41742 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
41743 | ||
41744 | wxPyEndAllowThreads(__tstate); | |
41745 | if (PyErr_Occurred()) SWIG_fail; | |
41746 | } | |
41747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
41748 | return resultobj; | |
41749 | fail: | |
41750 | return NULL; | |
41751 | } | |
41752 | ||
41753 | ||
c32bde28 | 41754 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41755 | PyObject *resultobj; |
41756 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41757 | int result; | |
41758 | PyObject * obj0 = 0 ; | |
41759 | char *kwnames[] = { | |
41760 | (char *) "self", NULL | |
41761 | }; | |
41762 | ||
41763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41766 | { |
41767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41768 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
41769 | ||
41770 | wxPyEndAllowThreads(__tstate); | |
41771 | if (PyErr_Occurred()) SWIG_fail; | |
41772 | } | |
093d3ff1 RD |
41773 | { |
41774 | resultobj = SWIG_From_int((int)(result)); | |
41775 | } | |
d55e5bfc RD |
41776 | return resultobj; |
41777 | fail: | |
41778 | return NULL; | |
41779 | } | |
41780 | ||
41781 | ||
c32bde28 | 41782 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41783 | PyObject *resultobj; |
41784 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41785 | int result; | |
41786 | PyObject * obj0 = 0 ; | |
41787 | char *kwnames[] = { | |
41788 | (char *) "self", NULL | |
41789 | }; | |
41790 | ||
41791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41794 | { |
41795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41796 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
41797 | ||
41798 | wxPyEndAllowThreads(__tstate); | |
41799 | if (PyErr_Occurred()) SWIG_fail; | |
41800 | } | |
093d3ff1 RD |
41801 | { |
41802 | resultobj = SWIG_From_int((int)(result)); | |
41803 | } | |
d55e5bfc RD |
41804 | return resultobj; |
41805 | fail: | |
41806 | return NULL; | |
41807 | } | |
41808 | ||
41809 | ||
c32bde28 | 41810 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41811 | PyObject *resultobj; |
41812 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41813 | int arg2 ; | |
41814 | PyObject * obj0 = 0 ; | |
41815 | PyObject * obj1 = 0 ; | |
41816 | char *kwnames[] = { | |
41817 | (char *) "self",(char *) "row", NULL | |
41818 | }; | |
41819 | ||
41820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41823 | { | |
41824 | arg2 = (int)(SWIG_As_int(obj1)); | |
41825 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41826 | } | |
d55e5bfc RD |
41827 | { |
41828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41829 | (arg1)->SetRow(arg2); | |
41830 | ||
41831 | wxPyEndAllowThreads(__tstate); | |
41832 | if (PyErr_Occurred()) SWIG_fail; | |
41833 | } | |
41834 | Py_INCREF(Py_None); resultobj = Py_None; | |
41835 | return resultobj; | |
41836 | fail: | |
41837 | return NULL; | |
41838 | } | |
41839 | ||
41840 | ||
c32bde28 | 41841 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41842 | PyObject *resultobj; |
41843 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41844 | int arg2 ; | |
41845 | PyObject * obj0 = 0 ; | |
41846 | PyObject * obj1 = 0 ; | |
41847 | char *kwnames[] = { | |
41848 | (char *) "self",(char *) "col", NULL | |
41849 | }; | |
41850 | ||
41851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41854 | { | |
41855 | arg2 = (int)(SWIG_As_int(obj1)); | |
41856 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41857 | } | |
d55e5bfc RD |
41858 | { |
41859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41860 | (arg1)->SetCol(arg2); | |
41861 | ||
41862 | wxPyEndAllowThreads(__tstate); | |
41863 | if (PyErr_Occurred()) SWIG_fail; | |
41864 | } | |
41865 | Py_INCREF(Py_None); resultobj = Py_None; | |
41866 | return resultobj; | |
41867 | fail: | |
41868 | return NULL; | |
41869 | } | |
41870 | ||
41871 | ||
c32bde28 | 41872 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41873 | PyObject *resultobj; |
41874 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41875 | wxGBPosition *arg2 = 0 ; | |
41876 | bool result; | |
41877 | wxGBPosition temp2 ; | |
41878 | PyObject * obj0 = 0 ; | |
41879 | PyObject * obj1 = 0 ; | |
41880 | char *kwnames[] = { | |
41881 | (char *) "self",(char *) "other", NULL | |
41882 | }; | |
41883 | ||
41884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41887 | { |
41888 | arg2 = &temp2; | |
41889 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41890 | } | |
41891 | { | |
41892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41893 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
41894 | ||
41895 | wxPyEndAllowThreads(__tstate); | |
41896 | if (PyErr_Occurred()) SWIG_fail; | |
41897 | } | |
41898 | { | |
41899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41900 | } | |
41901 | return resultobj; | |
41902 | fail: | |
41903 | return NULL; | |
41904 | } | |
41905 | ||
41906 | ||
c32bde28 | 41907 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41908 | PyObject *resultobj; |
41909 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41910 | wxGBPosition *arg2 = 0 ; | |
41911 | bool result; | |
41912 | wxGBPosition temp2 ; | |
41913 | PyObject * obj0 = 0 ; | |
41914 | PyObject * obj1 = 0 ; | |
41915 | char *kwnames[] = { | |
41916 | (char *) "self",(char *) "other", NULL | |
41917 | }; | |
41918 | ||
41919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41920 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41921 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41922 | { |
41923 | arg2 = &temp2; | |
41924 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41925 | } | |
41926 | { | |
41927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41928 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
41929 | ||
41930 | wxPyEndAllowThreads(__tstate); | |
41931 | if (PyErr_Occurred()) SWIG_fail; | |
41932 | } | |
41933 | { | |
41934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41935 | } | |
41936 | return resultobj; | |
41937 | fail: | |
41938 | return NULL; | |
41939 | } | |
41940 | ||
41941 | ||
c32bde28 | 41942 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41943 | PyObject *resultobj; |
41944 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41945 | int arg2 = (int) 0 ; | |
41946 | int arg3 = (int) 0 ; | |
41947 | PyObject * obj0 = 0 ; | |
41948 | PyObject * obj1 = 0 ; | |
41949 | PyObject * obj2 = 0 ; | |
41950 | char *kwnames[] = { | |
41951 | (char *) "self",(char *) "row",(char *) "col", NULL | |
41952 | }; | |
41953 | ||
41954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
41955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 41957 | if (obj1) { |
093d3ff1 RD |
41958 | { |
41959 | arg2 = (int)(SWIG_As_int(obj1)); | |
41960 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41961 | } | |
d55e5bfc RD |
41962 | } |
41963 | if (obj2) { | |
093d3ff1 RD |
41964 | { |
41965 | arg3 = (int)(SWIG_As_int(obj2)); | |
41966 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41967 | } | |
d55e5bfc RD |
41968 | } |
41969 | { | |
41970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41971 | wxGBPosition_Set(arg1,arg2,arg3); | |
41972 | ||
41973 | wxPyEndAllowThreads(__tstate); | |
41974 | if (PyErr_Occurred()) SWIG_fail; | |
41975 | } | |
41976 | Py_INCREF(Py_None); resultobj = Py_None; | |
41977 | return resultobj; | |
41978 | fail: | |
41979 | return NULL; | |
41980 | } | |
41981 | ||
41982 | ||
c32bde28 | 41983 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41984 | PyObject *resultobj; |
41985 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41986 | PyObject *result; | |
41987 | PyObject * obj0 = 0 ; | |
41988 | char *kwnames[] = { | |
41989 | (char *) "self", NULL | |
41990 | }; | |
41991 | ||
41992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41995 | { |
41996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41997 | result = (PyObject *)wxGBPosition_Get(arg1); | |
41998 | ||
41999 | wxPyEndAllowThreads(__tstate); | |
42000 | if (PyErr_Occurred()) SWIG_fail; | |
42001 | } | |
42002 | resultobj = result; | |
42003 | return resultobj; | |
42004 | fail: | |
42005 | return NULL; | |
42006 | } | |
42007 | ||
42008 | ||
c32bde28 | 42009 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
42010 | PyObject *obj; |
42011 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
42012 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
42013 | Py_INCREF(obj); | |
42014 | return Py_BuildValue((char *)""); | |
42015 | } | |
c32bde28 | 42016 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42017 | PyObject *resultobj; |
42018 | int arg1 = (int) 1 ; | |
42019 | int arg2 = (int) 1 ; | |
42020 | wxGBSpan *result; | |
42021 | PyObject * obj0 = 0 ; | |
42022 | PyObject * obj1 = 0 ; | |
42023 | char *kwnames[] = { | |
42024 | (char *) "rowspan",(char *) "colspan", NULL | |
42025 | }; | |
42026 | ||
42027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
42028 | if (obj0) { | |
093d3ff1 RD |
42029 | { |
42030 | arg1 = (int)(SWIG_As_int(obj0)); | |
42031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42032 | } | |
d55e5bfc RD |
42033 | } |
42034 | if (obj1) { | |
093d3ff1 RD |
42035 | { |
42036 | arg2 = (int)(SWIG_As_int(obj1)); | |
42037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42038 | } | |
d55e5bfc RD |
42039 | } |
42040 | { | |
42041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42042 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
42043 | ||
42044 | wxPyEndAllowThreads(__tstate); | |
42045 | if (PyErr_Occurred()) SWIG_fail; | |
42046 | } | |
42047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
42048 | return resultobj; | |
42049 | fail: | |
42050 | return NULL; | |
42051 | } | |
42052 | ||
42053 | ||
c32bde28 | 42054 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42055 | PyObject *resultobj; |
42056 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42057 | int result; | |
42058 | PyObject * obj0 = 0 ; | |
42059 | char *kwnames[] = { | |
42060 | (char *) "self", NULL | |
42061 | }; | |
42062 | ||
42063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42066 | { |
42067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42068 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
42069 | ||
42070 | wxPyEndAllowThreads(__tstate); | |
42071 | if (PyErr_Occurred()) SWIG_fail; | |
42072 | } | |
093d3ff1 RD |
42073 | { |
42074 | resultobj = SWIG_From_int((int)(result)); | |
42075 | } | |
d55e5bfc RD |
42076 | return resultobj; |
42077 | fail: | |
42078 | return NULL; | |
42079 | } | |
42080 | ||
42081 | ||
c32bde28 | 42082 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42083 | PyObject *resultobj; |
42084 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42085 | int result; | |
42086 | PyObject * obj0 = 0 ; | |
42087 | char *kwnames[] = { | |
42088 | (char *) "self", NULL | |
42089 | }; | |
42090 | ||
42091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42094 | { |
42095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42096 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
42097 | ||
42098 | wxPyEndAllowThreads(__tstate); | |
42099 | if (PyErr_Occurred()) SWIG_fail; | |
42100 | } | |
093d3ff1 RD |
42101 | { |
42102 | resultobj = SWIG_From_int((int)(result)); | |
42103 | } | |
d55e5bfc RD |
42104 | return resultobj; |
42105 | fail: | |
42106 | return NULL; | |
42107 | } | |
42108 | ||
42109 | ||
c32bde28 | 42110 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42111 | PyObject *resultobj; |
42112 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42113 | int arg2 ; | |
42114 | PyObject * obj0 = 0 ; | |
42115 | PyObject * obj1 = 0 ; | |
42116 | char *kwnames[] = { | |
42117 | (char *) "self",(char *) "rowspan", NULL | |
42118 | }; | |
42119 | ||
42120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42123 | { | |
42124 | arg2 = (int)(SWIG_As_int(obj1)); | |
42125 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42126 | } | |
d55e5bfc RD |
42127 | { |
42128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42129 | (arg1)->SetRowspan(arg2); | |
42130 | ||
42131 | wxPyEndAllowThreads(__tstate); | |
42132 | if (PyErr_Occurred()) SWIG_fail; | |
42133 | } | |
42134 | Py_INCREF(Py_None); resultobj = Py_None; | |
42135 | return resultobj; | |
42136 | fail: | |
42137 | return NULL; | |
42138 | } | |
42139 | ||
42140 | ||
c32bde28 | 42141 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42142 | PyObject *resultobj; |
42143 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42144 | int arg2 ; | |
42145 | PyObject * obj0 = 0 ; | |
42146 | PyObject * obj1 = 0 ; | |
42147 | char *kwnames[] = { | |
42148 | (char *) "self",(char *) "colspan", NULL | |
42149 | }; | |
42150 | ||
42151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42154 | { | |
42155 | arg2 = (int)(SWIG_As_int(obj1)); | |
42156 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42157 | } | |
d55e5bfc RD |
42158 | { |
42159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42160 | (arg1)->SetColspan(arg2); | |
42161 | ||
42162 | wxPyEndAllowThreads(__tstate); | |
42163 | if (PyErr_Occurred()) SWIG_fail; | |
42164 | } | |
42165 | Py_INCREF(Py_None); resultobj = Py_None; | |
42166 | return resultobj; | |
42167 | fail: | |
42168 | return NULL; | |
42169 | } | |
42170 | ||
42171 | ||
c32bde28 | 42172 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42173 | PyObject *resultobj; |
42174 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42175 | wxGBSpan *arg2 = 0 ; | |
42176 | bool result; | |
42177 | wxGBSpan temp2 ; | |
42178 | PyObject * obj0 = 0 ; | |
42179 | PyObject * obj1 = 0 ; | |
42180 | char *kwnames[] = { | |
42181 | (char *) "self",(char *) "other", NULL | |
42182 | }; | |
42183 | ||
42184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42187 | { |
42188 | arg2 = &temp2; | |
42189 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
42190 | } | |
42191 | { | |
42192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42193 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
42194 | ||
42195 | wxPyEndAllowThreads(__tstate); | |
42196 | if (PyErr_Occurred()) SWIG_fail; | |
42197 | } | |
42198 | { | |
42199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42200 | } | |
42201 | return resultobj; | |
42202 | fail: | |
42203 | return NULL; | |
42204 | } | |
42205 | ||
42206 | ||
c32bde28 | 42207 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42208 | PyObject *resultobj; |
42209 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42210 | wxGBSpan *arg2 = 0 ; | |
42211 | bool result; | |
42212 | wxGBSpan temp2 ; | |
42213 | PyObject * obj0 = 0 ; | |
42214 | PyObject * obj1 = 0 ; | |
42215 | char *kwnames[] = { | |
42216 | (char *) "self",(char *) "other", NULL | |
42217 | }; | |
42218 | ||
42219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42222 | { |
42223 | arg2 = &temp2; | |
42224 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
42225 | } | |
42226 | { | |
42227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42228 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
42229 | ||
42230 | wxPyEndAllowThreads(__tstate); | |
42231 | if (PyErr_Occurred()) SWIG_fail; | |
42232 | } | |
42233 | { | |
42234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42235 | } | |
42236 | return resultobj; | |
42237 | fail: | |
42238 | return NULL; | |
42239 | } | |
42240 | ||
42241 | ||
c32bde28 | 42242 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42243 | PyObject *resultobj; |
42244 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42245 | int arg2 = (int) 1 ; | |
42246 | int arg3 = (int) 1 ; | |
42247 | PyObject * obj0 = 0 ; | |
42248 | PyObject * obj1 = 0 ; | |
42249 | PyObject * obj2 = 0 ; | |
42250 | char *kwnames[] = { | |
42251 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
42252 | }; | |
42253 | ||
42254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 42257 | if (obj1) { |
093d3ff1 RD |
42258 | { |
42259 | arg2 = (int)(SWIG_As_int(obj1)); | |
42260 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42261 | } | |
d55e5bfc RD |
42262 | } |
42263 | if (obj2) { | |
093d3ff1 RD |
42264 | { |
42265 | arg3 = (int)(SWIG_As_int(obj2)); | |
42266 | if (SWIG_arg_fail(3)) SWIG_fail; | |
42267 | } | |
d55e5bfc RD |
42268 | } |
42269 | { | |
42270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42271 | wxGBSpan_Set(arg1,arg2,arg3); | |
42272 | ||
42273 | wxPyEndAllowThreads(__tstate); | |
42274 | if (PyErr_Occurred()) SWIG_fail; | |
42275 | } | |
42276 | Py_INCREF(Py_None); resultobj = Py_None; | |
42277 | return resultobj; | |
42278 | fail: | |
42279 | return NULL; | |
42280 | } | |
42281 | ||
42282 | ||
c32bde28 | 42283 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42284 | PyObject *resultobj; |
42285 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42286 | PyObject *result; | |
42287 | PyObject * obj0 = 0 ; | |
42288 | char *kwnames[] = { | |
42289 | (char *) "self", NULL | |
42290 | }; | |
42291 | ||
42292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42295 | { |
42296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42297 | result = (PyObject *)wxGBSpan_Get(arg1); | |
42298 | ||
42299 | wxPyEndAllowThreads(__tstate); | |
42300 | if (PyErr_Occurred()) SWIG_fail; | |
42301 | } | |
42302 | resultobj = result; | |
42303 | return resultobj; | |
42304 | fail: | |
42305 | return NULL; | |
42306 | } | |
42307 | ||
42308 | ||
c32bde28 | 42309 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
42310 | PyObject *obj; |
42311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
42312 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
42313 | Py_INCREF(obj); | |
42314 | return Py_BuildValue((char *)""); | |
42315 | } | |
c32bde28 | 42316 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
42317 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
42318 | return 1; | |
42319 | } | |
42320 | ||
42321 | ||
093d3ff1 | 42322 | static PyObject *_wrap_DefaultSpan_get(void) { |
d55e5bfc RD |
42323 | PyObject *pyobj; |
42324 | ||
42325 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
42326 | return pyobj; | |
42327 | } | |
42328 | ||
42329 | ||
c32bde28 | 42330 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42331 | PyObject *resultobj; |
42332 | wxGBSizerItem *result; | |
42333 | char *kwnames[] = { | |
42334 | NULL | |
42335 | }; | |
42336 | ||
42337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
42338 | { | |
42339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42340 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
42341 | ||
42342 | wxPyEndAllowThreads(__tstate); | |
42343 | if (PyErr_Occurred()) SWIG_fail; | |
42344 | } | |
42345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
42346 | return resultobj; | |
42347 | fail: | |
42348 | return NULL; | |
42349 | } | |
42350 | ||
42351 | ||
c32bde28 | 42352 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42353 | PyObject *resultobj; |
42354 | wxWindow *arg1 = (wxWindow *) 0 ; | |
42355 | wxGBPosition *arg2 = 0 ; | |
42356 | wxGBSpan *arg3 = 0 ; | |
42357 | int arg4 ; | |
42358 | int arg5 ; | |
248ed943 | 42359 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
42360 | wxGBSizerItem *result; |
42361 | wxGBPosition temp2 ; | |
42362 | wxGBSpan temp3 ; | |
42363 | PyObject * obj0 = 0 ; | |
42364 | PyObject * obj1 = 0 ; | |
42365 | PyObject * obj2 = 0 ; | |
42366 | PyObject * obj3 = 0 ; | |
42367 | PyObject * obj4 = 0 ; | |
42368 | PyObject * obj5 = 0 ; | |
42369 | char *kwnames[] = { | |
42370 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
42371 | }; | |
42372 | ||
248ed943 | 42373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
42374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
42375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42376 | { |
42377 | arg2 = &temp2; | |
42378 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
42379 | } | |
42380 | { | |
42381 | arg3 = &temp3; | |
42382 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42383 | } | |
093d3ff1 RD |
42384 | { |
42385 | arg4 = (int)(SWIG_As_int(obj3)); | |
42386 | if (SWIG_arg_fail(4)) SWIG_fail; | |
42387 | } | |
42388 | { | |
42389 | arg5 = (int)(SWIG_As_int(obj4)); | |
42390 | if (SWIG_arg_fail(5)) SWIG_fail; | |
42391 | } | |
248ed943 RD |
42392 | if (obj5) { |
42393 | arg6 = obj5; | |
42394 | } | |
d55e5bfc RD |
42395 | { |
42396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 42397 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
42398 | |
42399 | wxPyEndAllowThreads(__tstate); | |
42400 | if (PyErr_Occurred()) SWIG_fail; | |
42401 | } | |
42402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
42403 | return resultobj; | |
42404 | fail: | |
42405 | return NULL; | |
42406 | } | |
42407 | ||
42408 | ||
c32bde28 | 42409 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42410 | PyObject *resultobj; |
42411 | wxSizer *arg1 = (wxSizer *) 0 ; | |
42412 | wxGBPosition *arg2 = 0 ; | |
42413 | wxGBSpan *arg3 = 0 ; | |
42414 | int arg4 ; | |
42415 | int arg5 ; | |
248ed943 | 42416 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
42417 | wxGBSizerItem *result; |
42418 | wxGBPosition temp2 ; | |
42419 | wxGBSpan temp3 ; | |
42420 | PyObject * obj0 = 0 ; | |
42421 | PyObject * obj1 = 0 ; | |
42422 | PyObject * obj2 = 0 ; | |
42423 | PyObject * obj3 = 0 ; | |
42424 | PyObject * obj4 = 0 ; | |
42425 | PyObject * obj5 = 0 ; | |
42426 | char *kwnames[] = { | |
42427 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
42428 | }; | |
42429 | ||
248ed943 | 42430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
42431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
42432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42433 | { |
42434 | arg2 = &temp2; | |
42435 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
42436 | } | |
42437 | { | |
42438 | arg3 = &temp3; | |
42439 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42440 | } | |
093d3ff1 RD |
42441 | { |
42442 | arg4 = (int)(SWIG_As_int(obj3)); | |
42443 | if (SWIG_arg_fail(4)) SWIG_fail; | |
42444 | } | |
42445 | { | |
42446 | arg5 = (int)(SWIG_As_int(obj4)); | |
42447 | if (SWIG_arg_fail(5)) SWIG_fail; | |
42448 | } | |
248ed943 RD |
42449 | if (obj5) { |
42450 | arg6 = obj5; | |
42451 | } | |
d55e5bfc RD |
42452 | { |
42453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 42454 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
42455 | |
42456 | wxPyEndAllowThreads(__tstate); | |
42457 | if (PyErr_Occurred()) SWIG_fail; | |
42458 | } | |
42459 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
42460 | return resultobj; | |
42461 | fail: | |
42462 | return NULL; | |
42463 | } | |
42464 | ||
42465 | ||
c32bde28 | 42466 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42467 | PyObject *resultobj; |
42468 | int arg1 ; | |
42469 | int arg2 ; | |
42470 | wxGBPosition *arg3 = 0 ; | |
42471 | wxGBSpan *arg4 = 0 ; | |
42472 | int arg5 ; | |
42473 | int arg6 ; | |
248ed943 | 42474 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
42475 | wxGBSizerItem *result; |
42476 | wxGBPosition temp3 ; | |
42477 | wxGBSpan temp4 ; | |
42478 | PyObject * obj0 = 0 ; | |
42479 | PyObject * obj1 = 0 ; | |
42480 | PyObject * obj2 = 0 ; | |
42481 | PyObject * obj3 = 0 ; | |
42482 | PyObject * obj4 = 0 ; | |
42483 | PyObject * obj5 = 0 ; | |
42484 | PyObject * obj6 = 0 ; | |
42485 | char *kwnames[] = { | |
42486 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
42487 | }; | |
42488 | ||
248ed943 | 42489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
42490 | { |
42491 | arg1 = (int)(SWIG_As_int(obj0)); | |
42492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42493 | } | |
42494 | { | |
42495 | arg2 = (int)(SWIG_As_int(obj1)); | |
42496 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42497 | } | |
d55e5bfc RD |
42498 | { |
42499 | arg3 = &temp3; | |
42500 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
42501 | } | |
42502 | { | |
42503 | arg4 = &temp4; | |
42504 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
42505 | } | |
093d3ff1 RD |
42506 | { |
42507 | arg5 = (int)(SWIG_As_int(obj4)); | |
42508 | if (SWIG_arg_fail(5)) SWIG_fail; | |
42509 | } | |
42510 | { | |
42511 | arg6 = (int)(SWIG_As_int(obj5)); | |
42512 | if (SWIG_arg_fail(6)) SWIG_fail; | |
42513 | } | |
248ed943 RD |
42514 | if (obj6) { |
42515 | arg7 = obj6; | |
42516 | } | |
d55e5bfc RD |
42517 | { |
42518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 42519 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
42520 | |
42521 | wxPyEndAllowThreads(__tstate); | |
42522 | if (PyErr_Occurred()) SWIG_fail; | |
42523 | } | |
42524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
42525 | return resultobj; | |
42526 | fail: | |
42527 | return NULL; | |
42528 | } | |
42529 | ||
42530 | ||
c32bde28 | 42531 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42532 | PyObject *resultobj; |
42533 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42534 | wxGBPosition result; | |
42535 | PyObject * obj0 = 0 ; | |
42536 | char *kwnames[] = { | |
42537 | (char *) "self", NULL | |
42538 | }; | |
42539 | ||
42540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42543 | { |
42544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42545 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
42546 | ||
42547 | wxPyEndAllowThreads(__tstate); | |
42548 | if (PyErr_Occurred()) SWIG_fail; | |
42549 | } | |
42550 | { | |
42551 | wxGBPosition * resultptr; | |
093d3ff1 | 42552 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
d55e5bfc RD |
42553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
42554 | } | |
42555 | return resultobj; | |
42556 | fail: | |
42557 | return NULL; | |
42558 | } | |
42559 | ||
42560 | ||
c32bde28 | 42561 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42562 | PyObject *resultobj; |
42563 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42564 | wxGBSpan result; | |
42565 | PyObject * obj0 = 0 ; | |
42566 | char *kwnames[] = { | |
42567 | (char *) "self", NULL | |
42568 | }; | |
42569 | ||
42570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42573 | { |
42574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42575 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
42576 | ||
42577 | wxPyEndAllowThreads(__tstate); | |
42578 | if (PyErr_Occurred()) SWIG_fail; | |
42579 | } | |
42580 | { | |
42581 | wxGBSpan * resultptr; | |
093d3ff1 | 42582 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
d55e5bfc RD |
42583 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
42584 | } | |
42585 | return resultobj; | |
42586 | fail: | |
42587 | return NULL; | |
42588 | } | |
42589 | ||
42590 | ||
c32bde28 | 42591 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42592 | PyObject *resultobj; |
42593 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42594 | wxGBPosition *arg2 = 0 ; | |
42595 | bool result; | |
42596 | wxGBPosition temp2 ; | |
42597 | PyObject * obj0 = 0 ; | |
42598 | PyObject * obj1 = 0 ; | |
42599 | char *kwnames[] = { | |
42600 | (char *) "self",(char *) "pos", NULL | |
42601 | }; | |
42602 | ||
42603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42606 | { |
42607 | arg2 = &temp2; | |
42608 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
42609 | } | |
42610 | { | |
42611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42612 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
42613 | ||
42614 | wxPyEndAllowThreads(__tstate); | |
42615 | if (PyErr_Occurred()) SWIG_fail; | |
42616 | } | |
42617 | { | |
42618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42619 | } | |
42620 | return resultobj; | |
42621 | fail: | |
42622 | return NULL; | |
42623 | } | |
42624 | ||
42625 | ||
c32bde28 | 42626 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42627 | PyObject *resultobj; |
42628 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42629 | wxGBSpan *arg2 = 0 ; | |
42630 | bool result; | |
42631 | wxGBSpan temp2 ; | |
42632 | PyObject * obj0 = 0 ; | |
42633 | PyObject * obj1 = 0 ; | |
42634 | char *kwnames[] = { | |
42635 | (char *) "self",(char *) "span", NULL | |
42636 | }; | |
42637 | ||
42638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42641 | { |
42642 | arg2 = &temp2; | |
42643 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
42644 | } | |
42645 | { | |
42646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42647 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
42648 | ||
42649 | wxPyEndAllowThreads(__tstate); | |
42650 | if (PyErr_Occurred()) SWIG_fail; | |
42651 | } | |
42652 | { | |
42653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42654 | } | |
42655 | return resultobj; | |
42656 | fail: | |
42657 | return NULL; | |
42658 | } | |
42659 | ||
42660 | ||
c32bde28 | 42661 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42662 | PyObject *resultobj; |
42663 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42664 | wxGBSizerItem *arg2 = 0 ; | |
42665 | bool result; | |
42666 | PyObject * obj0 = 0 ; | |
42667 | PyObject * obj1 = 0 ; | |
248ed943 RD |
42668 | char *kwnames[] = { |
42669 | (char *) "self",(char *) "other", NULL | |
42670 | }; | |
d55e5bfc | 42671 | |
248ed943 | 42672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
42673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42675 | { | |
42676 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
42677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42678 | if (arg2 == NULL) { | |
42679 | SWIG_null_ref("wxGBSizerItem"); | |
42680 | } | |
42681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42682 | } |
42683 | { | |
42684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42685 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
42686 | ||
42687 | wxPyEndAllowThreads(__tstate); | |
42688 | if (PyErr_Occurred()) SWIG_fail; | |
42689 | } | |
42690 | { | |
42691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42692 | } | |
42693 | return resultobj; | |
42694 | fail: | |
42695 | return NULL; | |
42696 | } | |
42697 | ||
42698 | ||
c32bde28 | 42699 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42700 | PyObject *resultobj; |
42701 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42702 | wxGBPosition *arg2 = 0 ; | |
42703 | wxGBSpan *arg3 = 0 ; | |
42704 | bool result; | |
42705 | wxGBPosition temp2 ; | |
42706 | wxGBSpan temp3 ; | |
42707 | PyObject * obj0 = 0 ; | |
42708 | PyObject * obj1 = 0 ; | |
42709 | PyObject * obj2 = 0 ; | |
248ed943 RD |
42710 | char *kwnames[] = { |
42711 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
42712 | }; | |
d55e5bfc | 42713 | |
248ed943 | 42714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
42715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42717 | { |
42718 | arg2 = &temp2; | |
42719 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
42720 | } | |
42721 | { | |
42722 | arg3 = &temp3; | |
42723 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42724 | } | |
42725 | { | |
42726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42727 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
42728 | ||
42729 | wxPyEndAllowThreads(__tstate); | |
42730 | if (PyErr_Occurred()) SWIG_fail; | |
42731 | } | |
42732 | { | |
42733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42734 | } | |
42735 | return resultobj; | |
42736 | fail: | |
42737 | return NULL; | |
42738 | } | |
42739 | ||
42740 | ||
c32bde28 | 42741 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42742 | PyObject *resultobj; |
42743 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 42744 | wxGBPosition result; |
d55e5bfc | 42745 | PyObject * obj0 = 0 ; |
d55e5bfc | 42746 | char *kwnames[] = { |
248ed943 | 42747 | (char *) "self", NULL |
d55e5bfc RD |
42748 | }; |
42749 | ||
248ed943 | 42750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
42751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42753 | { |
42754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 42755 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
42756 | |
42757 | wxPyEndAllowThreads(__tstate); | |
42758 | if (PyErr_Occurred()) SWIG_fail; | |
42759 | } | |
248ed943 RD |
42760 | { |
42761 | wxGBPosition * resultptr; | |
093d3ff1 | 42762 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
248ed943 RD |
42763 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
42764 | } | |
d55e5bfc RD |
42765 | return resultobj; |
42766 | fail: | |
42767 | return NULL; | |
42768 | } | |
42769 | ||
42770 | ||
c32bde28 | 42771 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42772 | PyObject *resultobj; |
42773 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42774 | wxGridBagSizer *result; | |
42775 | PyObject * obj0 = 0 ; | |
42776 | char *kwnames[] = { | |
42777 | (char *) "self", NULL | |
42778 | }; | |
42779 | ||
42780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42783 | { |
42784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42785 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
42786 | ||
42787 | wxPyEndAllowThreads(__tstate); | |
42788 | if (PyErr_Occurred()) SWIG_fail; | |
42789 | } | |
42790 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
42791 | return resultobj; | |
42792 | fail: | |
42793 | return NULL; | |
42794 | } | |
42795 | ||
42796 | ||
c32bde28 | 42797 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42798 | PyObject *resultobj; |
42799 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42800 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
42801 | PyObject * obj0 = 0 ; | |
42802 | PyObject * obj1 = 0 ; | |
42803 | char *kwnames[] = { | |
42804 | (char *) "self",(char *) "sizer", NULL | |
42805 | }; | |
42806 | ||
42807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42810 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); | |
42811 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42812 | { |
42813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42814 | (arg1)->SetGBSizer(arg2); | |
42815 | ||
42816 | wxPyEndAllowThreads(__tstate); | |
42817 | if (PyErr_Occurred()) SWIG_fail; | |
42818 | } | |
42819 | Py_INCREF(Py_None); resultobj = Py_None; | |
42820 | return resultobj; | |
42821 | fail: | |
42822 | return NULL; | |
42823 | } | |
42824 | ||
42825 | ||
c32bde28 | 42826 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
42827 | PyObject *obj; |
42828 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
42829 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
42830 | Py_INCREF(obj); | |
42831 | return Py_BuildValue((char *)""); | |
42832 | } | |
c32bde28 | 42833 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42834 | PyObject *resultobj; |
42835 | int arg1 = (int) 0 ; | |
42836 | int arg2 = (int) 0 ; | |
42837 | wxGridBagSizer *result; | |
42838 | PyObject * obj0 = 0 ; | |
42839 | PyObject * obj1 = 0 ; | |
42840 | char *kwnames[] = { | |
42841 | (char *) "vgap",(char *) "hgap", NULL | |
42842 | }; | |
42843 | ||
42844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
42845 | if (obj0) { | |
093d3ff1 RD |
42846 | { |
42847 | arg1 = (int)(SWIG_As_int(obj0)); | |
42848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42849 | } | |
d55e5bfc RD |
42850 | } |
42851 | if (obj1) { | |
093d3ff1 RD |
42852 | { |
42853 | arg2 = (int)(SWIG_As_int(obj1)); | |
42854 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42855 | } | |
d55e5bfc RD |
42856 | } |
42857 | { | |
42858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42859 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
42860 | ||
42861 | wxPyEndAllowThreads(__tstate); | |
42862 | if (PyErr_Occurred()) SWIG_fail; | |
42863 | } | |
42864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
42865 | return resultobj; | |
42866 | fail: | |
42867 | return NULL; | |
42868 | } | |
42869 | ||
42870 | ||
c32bde28 | 42871 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42872 | PyObject *resultobj; |
42873 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42874 | PyObject *arg2 = (PyObject *) 0 ; | |
42875 | wxGBPosition *arg3 = 0 ; | |
42876 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
42877 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
42878 | int arg5 = (int) 0 ; | |
42879 | int arg6 = (int) 0 ; | |
42880 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 42881 | wxGBSizerItem *result; |
d55e5bfc RD |
42882 | wxGBPosition temp3 ; |
42883 | wxGBSpan temp4 ; | |
42884 | PyObject * obj0 = 0 ; | |
42885 | PyObject * obj1 = 0 ; | |
42886 | PyObject * obj2 = 0 ; | |
42887 | PyObject * obj3 = 0 ; | |
42888 | PyObject * obj4 = 0 ; | |
42889 | PyObject * obj5 = 0 ; | |
42890 | PyObject * obj6 = 0 ; | |
42891 | char *kwnames[] = { | |
42892 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
42893 | }; | |
42894 | ||
42895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
42896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42898 | arg2 = obj1; |
42899 | { | |
42900 | arg3 = &temp3; | |
42901 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
42902 | } | |
42903 | if (obj3) { | |
42904 | { | |
42905 | arg4 = &temp4; | |
42906 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
42907 | } | |
42908 | } | |
42909 | if (obj4) { | |
093d3ff1 RD |
42910 | { |
42911 | arg5 = (int)(SWIG_As_int(obj4)); | |
42912 | if (SWIG_arg_fail(5)) SWIG_fail; | |
42913 | } | |
d55e5bfc RD |
42914 | } |
42915 | if (obj5) { | |
093d3ff1 RD |
42916 | { |
42917 | arg6 = (int)(SWIG_As_int(obj5)); | |
42918 | if (SWIG_arg_fail(6)) SWIG_fail; | |
42919 | } | |
d55e5bfc RD |
42920 | } |
42921 | if (obj6) { | |
42922 | arg7 = obj6; | |
42923 | } | |
42924 | { | |
42925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 42926 | result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
42927 | |
42928 | wxPyEndAllowThreads(__tstate); | |
42929 | if (PyErr_Occurred()) SWIG_fail; | |
42930 | } | |
c1cb24a4 | 42931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
42932 | return resultobj; |
42933 | fail: | |
42934 | return NULL; | |
42935 | } | |
42936 | ||
42937 | ||
c32bde28 | 42938 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42939 | PyObject *resultobj; |
42940 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42941 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
c1cb24a4 | 42942 | wxGBSizerItem *result; |
d55e5bfc RD |
42943 | PyObject * obj0 = 0 ; |
42944 | PyObject * obj1 = 0 ; | |
42945 | char *kwnames[] = { | |
42946 | (char *) "self",(char *) "item", NULL | |
42947 | }; | |
42948 | ||
42949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42952 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
42953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42954 | { |
42955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 42956 | result = (wxGBSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
42957 | |
42958 | wxPyEndAllowThreads(__tstate); | |
42959 | if (PyErr_Occurred()) SWIG_fail; | |
42960 | } | |
c1cb24a4 | 42961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
42962 | return resultobj; |
42963 | fail: | |
42964 | return NULL; | |
42965 | } | |
42966 | ||
42967 | ||
84f85550 RD |
42968 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
42969 | PyObject *resultobj; | |
42970 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42971 | int arg2 ; | |
42972 | int arg3 ; | |
42973 | wxSize result; | |
42974 | PyObject * obj0 = 0 ; | |
42975 | PyObject * obj1 = 0 ; | |
42976 | PyObject * obj2 = 0 ; | |
42977 | char *kwnames[] = { | |
42978 | (char *) "self",(char *) "row",(char *) "col", NULL | |
42979 | }; | |
42980 | ||
42981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42984 | { | |
42985 | arg2 = (int)(SWIG_As_int(obj1)); | |
42986 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42987 | } | |
42988 | { | |
42989 | arg3 = (int)(SWIG_As_int(obj2)); | |
42990 | if (SWIG_arg_fail(3)) SWIG_fail; | |
42991 | } | |
84f85550 RD |
42992 | { |
42993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42994 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
42995 | ||
42996 | wxPyEndAllowThreads(__tstate); | |
42997 | if (PyErr_Occurred()) SWIG_fail; | |
42998 | } | |
42999 | { | |
43000 | wxSize * resultptr; | |
093d3ff1 | 43001 | resultptr = new wxSize((wxSize &)(result)); |
84f85550 RD |
43002 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
43003 | } | |
43004 | return resultobj; | |
43005 | fail: | |
43006 | return NULL; | |
43007 | } | |
43008 | ||
43009 | ||
c32bde28 | 43010 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43011 | PyObject *resultobj; |
43012 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43013 | wxSize result; | |
43014 | PyObject * obj0 = 0 ; | |
43015 | char *kwnames[] = { | |
43016 | (char *) "self", NULL | |
43017 | }; | |
43018 | ||
43019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43022 | { |
43023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43024 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
43025 | ||
43026 | wxPyEndAllowThreads(__tstate); | |
43027 | if (PyErr_Occurred()) SWIG_fail; | |
43028 | } | |
43029 | { | |
43030 | wxSize * resultptr; | |
093d3ff1 | 43031 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
43032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
43033 | } | |
43034 | return resultobj; | |
43035 | fail: | |
43036 | return NULL; | |
43037 | } | |
43038 | ||
43039 | ||
c32bde28 | 43040 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43041 | PyObject *resultobj; |
43042 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43043 | wxSize *arg2 = 0 ; | |
43044 | wxSize temp2 ; | |
43045 | PyObject * obj0 = 0 ; | |
43046 | PyObject * obj1 = 0 ; | |
43047 | char *kwnames[] = { | |
43048 | (char *) "self",(char *) "sz", NULL | |
43049 | }; | |
43050 | ||
43051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43054 | { |
43055 | arg2 = &temp2; | |
43056 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
43057 | } | |
43058 | { | |
43059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43060 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
43061 | ||
43062 | wxPyEndAllowThreads(__tstate); | |
43063 | if (PyErr_Occurred()) SWIG_fail; | |
43064 | } | |
43065 | Py_INCREF(Py_None); resultobj = Py_None; | |
43066 | return resultobj; | |
43067 | fail: | |
43068 | return NULL; | |
43069 | } | |
43070 | ||
43071 | ||
c32bde28 | 43072 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
43073 | PyObject *resultobj; |
43074 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43075 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43076 | wxGBPosition result; | |
43077 | PyObject * obj0 = 0 ; | |
43078 | PyObject * obj1 = 0 ; | |
43079 | ||
43080 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43083 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43084 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43085 | { |
43086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43087 | result = (arg1)->GetItemPosition(arg2); | |
43088 | ||
43089 | wxPyEndAllowThreads(__tstate); | |
43090 | if (PyErr_Occurred()) SWIG_fail; | |
43091 | } | |
43092 | { | |
43093 | wxGBPosition * resultptr; | |
093d3ff1 | 43094 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
d55e5bfc RD |
43095 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
43096 | } | |
43097 | return resultobj; | |
43098 | fail: | |
43099 | return NULL; | |
43100 | } | |
43101 | ||
43102 | ||
c32bde28 | 43103 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
43104 | PyObject *resultobj; |
43105 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43106 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43107 | wxGBPosition result; | |
43108 | PyObject * obj0 = 0 ; | |
43109 | PyObject * obj1 = 0 ; | |
43110 | ||
43111 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43114 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43115 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43116 | { |
43117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43118 | result = (arg1)->GetItemPosition(arg2); | |
43119 | ||
43120 | wxPyEndAllowThreads(__tstate); | |
43121 | if (PyErr_Occurred()) SWIG_fail; | |
43122 | } | |
43123 | { | |
43124 | wxGBPosition * resultptr; | |
093d3ff1 | 43125 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
d55e5bfc RD |
43126 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
43127 | } | |
43128 | return resultobj; | |
43129 | fail: | |
43130 | return NULL; | |
43131 | } | |
43132 | ||
43133 | ||
c32bde28 | 43134 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
43135 | PyObject *resultobj; |
43136 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43137 | size_t arg2 ; | |
43138 | wxGBPosition result; | |
43139 | PyObject * obj0 = 0 ; | |
43140 | PyObject * obj1 = 0 ; | |
43141 | ||
43142 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43145 | { | |
43146 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
43147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43148 | } | |
d55e5bfc RD |
43149 | { |
43150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43151 | result = (arg1)->GetItemPosition(arg2); | |
43152 | ||
43153 | wxPyEndAllowThreads(__tstate); | |
43154 | if (PyErr_Occurred()) SWIG_fail; | |
43155 | } | |
43156 | { | |
43157 | wxGBPosition * resultptr; | |
093d3ff1 | 43158 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
d55e5bfc RD |
43159 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
43160 | } | |
43161 | return resultobj; | |
43162 | fail: | |
43163 | return NULL; | |
43164 | } | |
43165 | ||
43166 | ||
43167 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
43168 | int argc; | |
43169 | PyObject *argv[3]; | |
43170 | int ii; | |
43171 | ||
43172 | argc = PyObject_Length(args); | |
43173 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
43174 | argv[ii] = PyTuple_GetItem(args,ii); | |
43175 | } | |
43176 | if (argc == 2) { | |
43177 | int _v; | |
43178 | { | |
43179 | void *ptr; | |
43180 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43181 | _v = 0; | |
43182 | PyErr_Clear(); | |
43183 | } else { | |
43184 | _v = 1; | |
43185 | } | |
43186 | } | |
43187 | if (_v) { | |
43188 | { | |
43189 | void *ptr; | |
43190 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
43191 | _v = 0; | |
43192 | PyErr_Clear(); | |
43193 | } else { | |
43194 | _v = 1; | |
43195 | } | |
43196 | } | |
43197 | if (_v) { | |
43198 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
43199 | } | |
43200 | } | |
43201 | } | |
43202 | if (argc == 2) { | |
43203 | int _v; | |
43204 | { | |
43205 | void *ptr; | |
43206 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43207 | _v = 0; | |
43208 | PyErr_Clear(); | |
43209 | } else { | |
43210 | _v = 1; | |
43211 | } | |
43212 | } | |
43213 | if (_v) { | |
43214 | { | |
43215 | void *ptr; | |
43216 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
43217 | _v = 0; | |
43218 | PyErr_Clear(); | |
43219 | } else { | |
43220 | _v = 1; | |
43221 | } | |
43222 | } | |
43223 | if (_v) { | |
43224 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
43225 | } | |
43226 | } | |
43227 | } | |
43228 | if (argc == 2) { | |
43229 | int _v; | |
43230 | { | |
43231 | void *ptr; | |
43232 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43233 | _v = 0; | |
43234 | PyErr_Clear(); | |
43235 | } else { | |
43236 | _v = 1; | |
43237 | } | |
43238 | } | |
43239 | if (_v) { | |
c32bde28 | 43240 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
43241 | if (_v) { |
43242 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
43243 | } | |
43244 | } | |
43245 | } | |
43246 | ||
093d3ff1 | 43247 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); |
d55e5bfc RD |
43248 | return NULL; |
43249 | } | |
43250 | ||
43251 | ||
c32bde28 | 43252 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
43253 | PyObject *resultobj; |
43254 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43255 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43256 | wxGBPosition *arg3 = 0 ; | |
43257 | bool result; | |
43258 | wxGBPosition temp3 ; | |
43259 | PyObject * obj0 = 0 ; | |
43260 | PyObject * obj1 = 0 ; | |
43261 | PyObject * obj2 = 0 ; | |
43262 | ||
43263 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43266 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43268 | { |
43269 | arg3 = &temp3; | |
43270 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
43271 | } | |
43272 | { | |
43273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43274 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
43275 | ||
43276 | wxPyEndAllowThreads(__tstate); | |
43277 | if (PyErr_Occurred()) SWIG_fail; | |
43278 | } | |
43279 | { | |
43280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43281 | } | |
43282 | return resultobj; | |
43283 | fail: | |
43284 | return NULL; | |
43285 | } | |
43286 | ||
43287 | ||
c32bde28 | 43288 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
43289 | PyObject *resultobj; |
43290 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43291 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43292 | wxGBPosition *arg3 = 0 ; | |
43293 | bool result; | |
43294 | wxGBPosition temp3 ; | |
43295 | PyObject * obj0 = 0 ; | |
43296 | PyObject * obj1 = 0 ; | |
43297 | PyObject * obj2 = 0 ; | |
43298 | ||
43299 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43302 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43303 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43304 | { |
43305 | arg3 = &temp3; | |
43306 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
43307 | } | |
43308 | { | |
43309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43310 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
43311 | ||
43312 | wxPyEndAllowThreads(__tstate); | |
43313 | if (PyErr_Occurred()) SWIG_fail; | |
43314 | } | |
43315 | { | |
43316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43317 | } | |
43318 | return resultobj; | |
43319 | fail: | |
43320 | return NULL; | |
43321 | } | |
43322 | ||
43323 | ||
c32bde28 | 43324 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
43325 | PyObject *resultobj; |
43326 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43327 | size_t arg2 ; | |
43328 | wxGBPosition *arg3 = 0 ; | |
43329 | bool result; | |
43330 | wxGBPosition temp3 ; | |
43331 | PyObject * obj0 = 0 ; | |
43332 | PyObject * obj1 = 0 ; | |
43333 | PyObject * obj2 = 0 ; | |
43334 | ||
43335 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43338 | { | |
43339 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
43340 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43341 | } | |
d55e5bfc RD |
43342 | { |
43343 | arg3 = &temp3; | |
43344 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
43345 | } | |
43346 | { | |
43347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43348 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
43349 | ||
43350 | wxPyEndAllowThreads(__tstate); | |
43351 | if (PyErr_Occurred()) SWIG_fail; | |
43352 | } | |
43353 | { | |
43354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43355 | } | |
43356 | return resultobj; | |
43357 | fail: | |
43358 | return NULL; | |
43359 | } | |
43360 | ||
43361 | ||
43362 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
43363 | int argc; | |
43364 | PyObject *argv[4]; | |
43365 | int ii; | |
43366 | ||
43367 | argc = PyObject_Length(args); | |
43368 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
43369 | argv[ii] = PyTuple_GetItem(args,ii); | |
43370 | } | |
43371 | if (argc == 3) { | |
43372 | int _v; | |
43373 | { | |
43374 | void *ptr; | |
43375 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43376 | _v = 0; | |
43377 | PyErr_Clear(); | |
43378 | } else { | |
43379 | _v = 1; | |
43380 | } | |
43381 | } | |
43382 | if (_v) { | |
43383 | { | |
43384 | void *ptr; | |
43385 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
43386 | _v = 0; | |
43387 | PyErr_Clear(); | |
43388 | } else { | |
43389 | _v = 1; | |
43390 | } | |
43391 | } | |
43392 | if (_v) { | |
43393 | { | |
43394 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
43395 | } | |
43396 | if (_v) { | |
43397 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
43398 | } | |
43399 | } | |
43400 | } | |
43401 | } | |
43402 | if (argc == 3) { | |
43403 | int _v; | |
43404 | { | |
43405 | void *ptr; | |
43406 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43407 | _v = 0; | |
43408 | PyErr_Clear(); | |
43409 | } else { | |
43410 | _v = 1; | |
43411 | } | |
43412 | } | |
43413 | if (_v) { | |
43414 | { | |
43415 | void *ptr; | |
43416 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
43417 | _v = 0; | |
43418 | PyErr_Clear(); | |
43419 | } else { | |
43420 | _v = 1; | |
43421 | } | |
43422 | } | |
43423 | if (_v) { | |
43424 | { | |
43425 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
43426 | } | |
43427 | if (_v) { | |
43428 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
43429 | } | |
43430 | } | |
43431 | } | |
43432 | } | |
43433 | if (argc == 3) { | |
43434 | int _v; | |
43435 | { | |
43436 | void *ptr; | |
43437 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43438 | _v = 0; | |
43439 | PyErr_Clear(); | |
43440 | } else { | |
43441 | _v = 1; | |
43442 | } | |
43443 | } | |
43444 | if (_v) { | |
c32bde28 | 43445 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
43446 | if (_v) { |
43447 | { | |
43448 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
43449 | } | |
43450 | if (_v) { | |
43451 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
43452 | } | |
43453 | } | |
43454 | } | |
43455 | } | |
43456 | ||
093d3ff1 | 43457 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); |
d55e5bfc RD |
43458 | return NULL; |
43459 | } | |
43460 | ||
43461 | ||
c32bde28 | 43462 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
43463 | PyObject *resultobj; |
43464 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43465 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43466 | wxGBSpan result; | |
43467 | PyObject * obj0 = 0 ; | |
43468 | PyObject * obj1 = 0 ; | |
43469 | ||
43470 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43473 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43474 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43475 | { |
43476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43477 | result = (arg1)->GetItemSpan(arg2); | |
43478 | ||
43479 | wxPyEndAllowThreads(__tstate); | |
43480 | if (PyErr_Occurred()) SWIG_fail; | |
43481 | } | |
43482 | { | |
43483 | wxGBSpan * resultptr; | |
093d3ff1 | 43484 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
d55e5bfc RD |
43485 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
43486 | } | |
43487 | return resultobj; | |
43488 | fail: | |
43489 | return NULL; | |
43490 | } | |
43491 | ||
43492 | ||
c32bde28 | 43493 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
43494 | PyObject *resultobj; |
43495 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43496 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43497 | wxGBSpan result; | |
43498 | PyObject * obj0 = 0 ; | |
43499 | PyObject * obj1 = 0 ; | |
43500 | ||
43501 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43504 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43505 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43506 | { |
43507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43508 | result = (arg1)->GetItemSpan(arg2); | |
43509 | ||
43510 | wxPyEndAllowThreads(__tstate); | |
43511 | if (PyErr_Occurred()) SWIG_fail; | |
43512 | } | |
43513 | { | |
43514 | wxGBSpan * resultptr; | |
093d3ff1 | 43515 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
d55e5bfc RD |
43516 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
43517 | } | |
43518 | return resultobj; | |
43519 | fail: | |
43520 | return NULL; | |
43521 | } | |
43522 | ||
43523 | ||
c32bde28 | 43524 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
43525 | PyObject *resultobj; |
43526 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43527 | size_t arg2 ; | |
43528 | wxGBSpan result; | |
43529 | PyObject * obj0 = 0 ; | |
43530 | PyObject * obj1 = 0 ; | |
43531 | ||
43532 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43535 | { | |
43536 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
43537 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43538 | } | |
d55e5bfc RD |
43539 | { |
43540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43541 | result = (arg1)->GetItemSpan(arg2); | |
43542 | ||
43543 | wxPyEndAllowThreads(__tstate); | |
43544 | if (PyErr_Occurred()) SWIG_fail; | |
43545 | } | |
43546 | { | |
43547 | wxGBSpan * resultptr; | |
093d3ff1 | 43548 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
d55e5bfc RD |
43549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
43550 | } | |
43551 | return resultobj; | |
43552 | fail: | |
43553 | return NULL; | |
43554 | } | |
43555 | ||
43556 | ||
43557 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
43558 | int argc; | |
43559 | PyObject *argv[3]; | |
43560 | int ii; | |
43561 | ||
43562 | argc = PyObject_Length(args); | |
43563 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
43564 | argv[ii] = PyTuple_GetItem(args,ii); | |
43565 | } | |
43566 | if (argc == 2) { | |
43567 | int _v; | |
43568 | { | |
43569 | void *ptr; | |
43570 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43571 | _v = 0; | |
43572 | PyErr_Clear(); | |
43573 | } else { | |
43574 | _v = 1; | |
43575 | } | |
43576 | } | |
43577 | if (_v) { | |
43578 | { | |
43579 | void *ptr; | |
43580 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
43581 | _v = 0; | |
43582 | PyErr_Clear(); | |
43583 | } else { | |
43584 | _v = 1; | |
43585 | } | |
43586 | } | |
43587 | if (_v) { | |
43588 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
43589 | } | |
43590 | } | |
43591 | } | |
43592 | if (argc == 2) { | |
43593 | int _v; | |
43594 | { | |
43595 | void *ptr; | |
43596 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43597 | _v = 0; | |
43598 | PyErr_Clear(); | |
43599 | } else { | |
43600 | _v = 1; | |
43601 | } | |
43602 | } | |
43603 | if (_v) { | |
43604 | { | |
43605 | void *ptr; | |
43606 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
43607 | _v = 0; | |
43608 | PyErr_Clear(); | |
43609 | } else { | |
43610 | _v = 1; | |
43611 | } | |
43612 | } | |
43613 | if (_v) { | |
43614 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
43615 | } | |
43616 | } | |
43617 | } | |
43618 | if (argc == 2) { | |
43619 | int _v; | |
43620 | { | |
43621 | void *ptr; | |
43622 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43623 | _v = 0; | |
43624 | PyErr_Clear(); | |
43625 | } else { | |
43626 | _v = 1; | |
43627 | } | |
43628 | } | |
43629 | if (_v) { | |
c32bde28 | 43630 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
43631 | if (_v) { |
43632 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
43633 | } | |
43634 | } | |
43635 | } | |
43636 | ||
093d3ff1 | 43637 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); |
d55e5bfc RD |
43638 | return NULL; |
43639 | } | |
43640 | ||
43641 | ||
c32bde28 | 43642 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
43643 | PyObject *resultobj; |
43644 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43646 | wxGBSpan *arg3 = 0 ; | |
43647 | bool result; | |
43648 | wxGBSpan temp3 ; | |
43649 | PyObject * obj0 = 0 ; | |
43650 | PyObject * obj1 = 0 ; | |
43651 | PyObject * obj2 = 0 ; | |
43652 | ||
43653 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43656 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43657 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43658 | { |
43659 | arg3 = &temp3; | |
43660 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
43661 | } | |
43662 | { | |
43663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43664 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
43665 | ||
43666 | wxPyEndAllowThreads(__tstate); | |
43667 | if (PyErr_Occurred()) SWIG_fail; | |
43668 | } | |
43669 | { | |
43670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43671 | } | |
43672 | return resultobj; | |
43673 | fail: | |
43674 | return NULL; | |
43675 | } | |
43676 | ||
43677 | ||
c32bde28 | 43678 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
43679 | PyObject *resultobj; |
43680 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43681 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43682 | wxGBSpan *arg3 = 0 ; | |
43683 | bool result; | |
43684 | wxGBSpan temp3 ; | |
43685 | PyObject * obj0 = 0 ; | |
43686 | PyObject * obj1 = 0 ; | |
43687 | PyObject * obj2 = 0 ; | |
43688 | ||
43689 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43692 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43694 | { |
43695 | arg3 = &temp3; | |
43696 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
43697 | } | |
43698 | { | |
43699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43700 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
43701 | ||
43702 | wxPyEndAllowThreads(__tstate); | |
43703 | if (PyErr_Occurred()) SWIG_fail; | |
43704 | } | |
43705 | { | |
43706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43707 | } | |
43708 | return resultobj; | |
43709 | fail: | |
43710 | return NULL; | |
43711 | } | |
43712 | ||
43713 | ||
c32bde28 | 43714 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
43715 | PyObject *resultobj; |
43716 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43717 | size_t arg2 ; | |
43718 | wxGBSpan *arg3 = 0 ; | |
43719 | bool result; | |
43720 | wxGBSpan temp3 ; | |
43721 | PyObject * obj0 = 0 ; | |
43722 | PyObject * obj1 = 0 ; | |
43723 | PyObject * obj2 = 0 ; | |
43724 | ||
43725 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43728 | { | |
43729 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
43730 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43731 | } | |
d55e5bfc RD |
43732 | { |
43733 | arg3 = &temp3; | |
43734 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
43735 | } | |
43736 | { | |
43737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43738 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
43739 | ||
43740 | wxPyEndAllowThreads(__tstate); | |
43741 | if (PyErr_Occurred()) SWIG_fail; | |
43742 | } | |
43743 | { | |
43744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43745 | } | |
43746 | return resultobj; | |
43747 | fail: | |
43748 | return NULL; | |
43749 | } | |
43750 | ||
43751 | ||
43752 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
43753 | int argc; | |
43754 | PyObject *argv[4]; | |
43755 | int ii; | |
43756 | ||
43757 | argc = PyObject_Length(args); | |
43758 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
43759 | argv[ii] = PyTuple_GetItem(args,ii); | |
43760 | } | |
43761 | if (argc == 3) { | |
43762 | int _v; | |
43763 | { | |
43764 | void *ptr; | |
43765 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43766 | _v = 0; | |
43767 | PyErr_Clear(); | |
43768 | } else { | |
43769 | _v = 1; | |
43770 | } | |
43771 | } | |
43772 | if (_v) { | |
43773 | { | |
43774 | void *ptr; | |
43775 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
43776 | _v = 0; | |
43777 | PyErr_Clear(); | |
43778 | } else { | |
43779 | _v = 1; | |
43780 | } | |
43781 | } | |
43782 | if (_v) { | |
43783 | { | |
43784 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
43785 | } | |
43786 | if (_v) { | |
43787 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
43788 | } | |
43789 | } | |
43790 | } | |
43791 | } | |
43792 | if (argc == 3) { | |
43793 | int _v; | |
43794 | { | |
43795 | void *ptr; | |
43796 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43797 | _v = 0; | |
43798 | PyErr_Clear(); | |
43799 | } else { | |
43800 | _v = 1; | |
43801 | } | |
43802 | } | |
43803 | if (_v) { | |
43804 | { | |
43805 | void *ptr; | |
43806 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
43807 | _v = 0; | |
43808 | PyErr_Clear(); | |
43809 | } else { | |
43810 | _v = 1; | |
43811 | } | |
43812 | } | |
43813 | if (_v) { | |
43814 | { | |
43815 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
43816 | } | |
43817 | if (_v) { | |
43818 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
43819 | } | |
43820 | } | |
43821 | } | |
43822 | } | |
43823 | if (argc == 3) { | |
43824 | int _v; | |
43825 | { | |
43826 | void *ptr; | |
43827 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43828 | _v = 0; | |
43829 | PyErr_Clear(); | |
43830 | } else { | |
43831 | _v = 1; | |
43832 | } | |
43833 | } | |
43834 | if (_v) { | |
c32bde28 | 43835 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
43836 | if (_v) { |
43837 | { | |
43838 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
43839 | } | |
43840 | if (_v) { | |
43841 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
43842 | } | |
43843 | } | |
43844 | } | |
43845 | } | |
43846 | ||
093d3ff1 | 43847 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); |
d55e5bfc RD |
43848 | return NULL; |
43849 | } | |
43850 | ||
43851 | ||
c32bde28 | 43852 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
43853 | PyObject *resultobj; |
43854 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43855 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43856 | wxGBSizerItem *result; | |
43857 | PyObject * obj0 = 0 ; | |
43858 | PyObject * obj1 = 0 ; | |
43859 | ||
43860 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43863 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43865 | { |
43866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43867 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
43868 | ||
43869 | wxPyEndAllowThreads(__tstate); | |
43870 | if (PyErr_Occurred()) SWIG_fail; | |
43871 | } | |
43872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
43873 | return resultobj; | |
43874 | fail: | |
43875 | return NULL; | |
43876 | } | |
43877 | ||
43878 | ||
c32bde28 | 43879 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
43880 | PyObject *resultobj; |
43881 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43882 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43883 | wxGBSizerItem *result; | |
43884 | PyObject * obj0 = 0 ; | |
43885 | PyObject * obj1 = 0 ; | |
43886 | ||
43887 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43890 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43891 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43892 | { |
43893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43894 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
43895 | ||
43896 | wxPyEndAllowThreads(__tstate); | |
43897 | if (PyErr_Occurred()) SWIG_fail; | |
43898 | } | |
43899 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
43900 | return resultobj; | |
43901 | fail: | |
43902 | return NULL; | |
43903 | } | |
43904 | ||
43905 | ||
43906 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
43907 | int argc; | |
43908 | PyObject *argv[3]; | |
43909 | int ii; | |
43910 | ||
43911 | argc = PyObject_Length(args); | |
43912 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
43913 | argv[ii] = PyTuple_GetItem(args,ii); | |
43914 | } | |
43915 | if (argc == 2) { | |
43916 | int _v; | |
43917 | { | |
43918 | void *ptr; | |
43919 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43920 | _v = 0; | |
43921 | PyErr_Clear(); | |
43922 | } else { | |
43923 | _v = 1; | |
43924 | } | |
43925 | } | |
43926 | if (_v) { | |
43927 | { | |
43928 | void *ptr; | |
43929 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
43930 | _v = 0; | |
43931 | PyErr_Clear(); | |
43932 | } else { | |
43933 | _v = 1; | |
43934 | } | |
43935 | } | |
43936 | if (_v) { | |
43937 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
43938 | } | |
43939 | } | |
43940 | } | |
43941 | if (argc == 2) { | |
43942 | int _v; | |
43943 | { | |
43944 | void *ptr; | |
43945 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43946 | _v = 0; | |
43947 | PyErr_Clear(); | |
43948 | } else { | |
43949 | _v = 1; | |
43950 | } | |
43951 | } | |
43952 | if (_v) { | |
43953 | { | |
43954 | void *ptr; | |
43955 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
43956 | _v = 0; | |
43957 | PyErr_Clear(); | |
43958 | } else { | |
43959 | _v = 1; | |
43960 | } | |
43961 | } | |
43962 | if (_v) { | |
43963 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
43964 | } | |
43965 | } | |
43966 | } | |
43967 | ||
093d3ff1 | 43968 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_FindItem'"); |
d55e5bfc RD |
43969 | return NULL; |
43970 | } | |
43971 | ||
43972 | ||
c32bde28 | 43973 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43974 | PyObject *resultobj; |
43975 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43976 | wxGBPosition *arg2 = 0 ; | |
43977 | wxGBSizerItem *result; | |
43978 | wxGBPosition temp2 ; | |
43979 | PyObject * obj0 = 0 ; | |
43980 | PyObject * obj1 = 0 ; | |
43981 | char *kwnames[] = { | |
43982 | (char *) "self",(char *) "pos", NULL | |
43983 | }; | |
43984 | ||
43985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43988 | { |
43989 | arg2 = &temp2; | |
43990 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
43991 | } | |
43992 | { | |
43993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43994 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
43995 | ||
43996 | wxPyEndAllowThreads(__tstate); | |
43997 | if (PyErr_Occurred()) SWIG_fail; | |
43998 | } | |
43999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
44000 | return resultobj; | |
44001 | fail: | |
44002 | return NULL; | |
44003 | } | |
44004 | ||
44005 | ||
c32bde28 | 44006 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44007 | PyObject *resultobj; |
44008 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
44009 | wxPoint *arg2 = 0 ; | |
44010 | wxGBSizerItem *result; | |
44011 | wxPoint temp2 ; | |
44012 | PyObject * obj0 = 0 ; | |
44013 | PyObject * obj1 = 0 ; | |
44014 | char *kwnames[] = { | |
44015 | (char *) "self",(char *) "pt", NULL | |
44016 | }; | |
44017 | ||
44018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
44020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44021 | { |
44022 | arg2 = &temp2; | |
44023 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
44024 | } | |
44025 | { | |
44026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44027 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
44028 | ||
44029 | wxPyEndAllowThreads(__tstate); | |
44030 | if (PyErr_Occurred()) SWIG_fail; | |
44031 | } | |
44032 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
44033 | return resultobj; | |
44034 | fail: | |
44035 | return NULL; | |
44036 | } | |
44037 | ||
44038 | ||
c32bde28 | 44039 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44040 | PyObject *resultobj; |
44041 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
44042 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
44043 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
44044 | bool result; | |
44045 | PyObject * obj0 = 0 ; | |
44046 | PyObject * obj1 = 0 ; | |
44047 | PyObject * obj2 = 0 ; | |
248ed943 RD |
44048 | char *kwnames[] = { |
44049 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
44050 | }; | |
d55e5bfc | 44051 | |
248ed943 | 44052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
44053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
44054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44055 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
44056 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 44057 | if (obj2) { |
093d3ff1 RD |
44058 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
44059 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
44060 | } |
44061 | { | |
44062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44063 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
44064 | ||
44065 | wxPyEndAllowThreads(__tstate); | |
44066 | if (PyErr_Occurred()) SWIG_fail; | |
44067 | } | |
44068 | { | |
44069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44070 | } | |
44071 | return resultobj; | |
44072 | fail: | |
44073 | return NULL; | |
44074 | } | |
44075 | ||
44076 | ||
c32bde28 | 44077 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44078 | PyObject *resultobj; |
44079 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
44080 | wxGBPosition *arg2 = 0 ; | |
44081 | wxGBSpan *arg3 = 0 ; | |
44082 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
44083 | bool result; | |
44084 | wxGBPosition temp2 ; | |
44085 | wxGBSpan temp3 ; | |
44086 | PyObject * obj0 = 0 ; | |
44087 | PyObject * obj1 = 0 ; | |
44088 | PyObject * obj2 = 0 ; | |
44089 | PyObject * obj3 = 0 ; | |
248ed943 RD |
44090 | char *kwnames[] = { |
44091 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
44092 | }; | |
d55e5bfc | 44093 | |
248ed943 | 44094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
44095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
44096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44097 | { |
44098 | arg2 = &temp2; | |
44099 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
44100 | } | |
44101 | { | |
44102 | arg3 = &temp3; | |
44103 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
44104 | } | |
44105 | if (obj3) { | |
093d3ff1 RD |
44106 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
44107 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
44108 | } |
44109 | { | |
44110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44111 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
44112 | ||
44113 | wxPyEndAllowThreads(__tstate); | |
44114 | if (PyErr_Occurred()) SWIG_fail; | |
44115 | } | |
44116 | { | |
44117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44118 | } | |
44119 | return resultobj; | |
44120 | fail: | |
44121 | return NULL; | |
44122 | } | |
44123 | ||
44124 | ||
c32bde28 | 44125 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
44126 | PyObject *obj; |
44127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
44128 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
44129 | Py_INCREF(obj); | |
44130 | return Py_BuildValue((char *)""); | |
44131 | } | |
c32bde28 | 44132 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44133 | PyObject *resultobj; |
44134 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44135 | wxRelationship arg2 ; |
d55e5bfc | 44136 | wxWindow *arg3 = (wxWindow *) 0 ; |
093d3ff1 | 44137 | wxEdge arg4 ; |
d55e5bfc RD |
44138 | int arg5 = (int) 0 ; |
44139 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
44140 | PyObject * obj0 = 0 ; | |
44141 | PyObject * obj1 = 0 ; | |
44142 | PyObject * obj2 = 0 ; | |
44143 | PyObject * obj3 = 0 ; | |
44144 | PyObject * obj4 = 0 ; | |
44145 | PyObject * obj5 = 0 ; | |
44146 | char *kwnames[] = { | |
44147 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
44148 | }; | |
44149 | ||
44150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
44151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44153 | { | |
44154 | arg2 = (wxRelationship)(SWIG_As_int(obj1)); | |
44155 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44156 | } | |
44157 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44158 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44159 | { | |
44160 | arg4 = (wxEdge)(SWIG_As_int(obj3)); | |
44161 | if (SWIG_arg_fail(4)) SWIG_fail; | |
44162 | } | |
d55e5bfc | 44163 | if (obj4) { |
093d3ff1 RD |
44164 | { |
44165 | arg5 = (int)(SWIG_As_int(obj4)); | |
44166 | if (SWIG_arg_fail(5)) SWIG_fail; | |
44167 | } | |
d55e5bfc RD |
44168 | } |
44169 | if (obj5) { | |
093d3ff1 RD |
44170 | { |
44171 | arg6 = (int)(SWIG_As_int(obj5)); | |
44172 | if (SWIG_arg_fail(6)) SWIG_fail; | |
44173 | } | |
d55e5bfc RD |
44174 | } |
44175 | { | |
44176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44177 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
44178 | ||
44179 | wxPyEndAllowThreads(__tstate); | |
44180 | if (PyErr_Occurred()) SWIG_fail; | |
44181 | } | |
44182 | Py_INCREF(Py_None); resultobj = Py_None; | |
44183 | return resultobj; | |
44184 | fail: | |
44185 | return NULL; | |
44186 | } | |
44187 | ||
44188 | ||
c32bde28 | 44189 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44190 | PyObject *resultobj; |
44191 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44192 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44193 | int arg3 = (int) 0 ; | |
44194 | PyObject * obj0 = 0 ; | |
44195 | PyObject * obj1 = 0 ; | |
44196 | PyObject * obj2 = 0 ; | |
44197 | char *kwnames[] = { | |
44198 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
44199 | }; | |
44200 | ||
44201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
44202 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44203 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44204 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44205 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 44206 | if (obj2) { |
093d3ff1 RD |
44207 | { |
44208 | arg3 = (int)(SWIG_As_int(obj2)); | |
44209 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44210 | } | |
d55e5bfc RD |
44211 | } |
44212 | { | |
44213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44214 | (arg1)->LeftOf(arg2,arg3); | |
44215 | ||
44216 | wxPyEndAllowThreads(__tstate); | |
44217 | if (PyErr_Occurred()) SWIG_fail; | |
44218 | } | |
44219 | Py_INCREF(Py_None); resultobj = Py_None; | |
44220 | return resultobj; | |
44221 | fail: | |
44222 | return NULL; | |
44223 | } | |
44224 | ||
44225 | ||
c32bde28 | 44226 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44227 | PyObject *resultobj; |
44228 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44229 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44230 | int arg3 = (int) 0 ; | |
44231 | PyObject * obj0 = 0 ; | |
44232 | PyObject * obj1 = 0 ; | |
44233 | PyObject * obj2 = 0 ; | |
44234 | char *kwnames[] = { | |
44235 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
44236 | }; | |
44237 | ||
44238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
44239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44241 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 44243 | if (obj2) { |
093d3ff1 RD |
44244 | { |
44245 | arg3 = (int)(SWIG_As_int(obj2)); | |
44246 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44247 | } | |
d55e5bfc RD |
44248 | } |
44249 | { | |
44250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44251 | (arg1)->RightOf(arg2,arg3); | |
44252 | ||
44253 | wxPyEndAllowThreads(__tstate); | |
44254 | if (PyErr_Occurred()) SWIG_fail; | |
44255 | } | |
44256 | Py_INCREF(Py_None); resultobj = Py_None; | |
44257 | return resultobj; | |
44258 | fail: | |
44259 | return NULL; | |
44260 | } | |
44261 | ||
44262 | ||
c32bde28 | 44263 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44264 | PyObject *resultobj; |
44265 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44266 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44267 | int arg3 = (int) 0 ; | |
44268 | PyObject * obj0 = 0 ; | |
44269 | PyObject * obj1 = 0 ; | |
44270 | PyObject * obj2 = 0 ; | |
44271 | char *kwnames[] = { | |
44272 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
44273 | }; | |
44274 | ||
44275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
44276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44278 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44279 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 44280 | if (obj2) { |
093d3ff1 RD |
44281 | { |
44282 | arg3 = (int)(SWIG_As_int(obj2)); | |
44283 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44284 | } | |
d55e5bfc RD |
44285 | } |
44286 | { | |
44287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44288 | (arg1)->Above(arg2,arg3); | |
44289 | ||
44290 | wxPyEndAllowThreads(__tstate); | |
44291 | if (PyErr_Occurred()) SWIG_fail; | |
44292 | } | |
44293 | Py_INCREF(Py_None); resultobj = Py_None; | |
44294 | return resultobj; | |
44295 | fail: | |
44296 | return NULL; | |
44297 | } | |
44298 | ||
44299 | ||
c32bde28 | 44300 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44301 | PyObject *resultobj; |
44302 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44303 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44304 | int arg3 = (int) 0 ; | |
44305 | PyObject * obj0 = 0 ; | |
44306 | PyObject * obj1 = 0 ; | |
44307 | PyObject * obj2 = 0 ; | |
44308 | char *kwnames[] = { | |
44309 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
44310 | }; | |
44311 | ||
44312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
44313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44315 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44316 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 44317 | if (obj2) { |
093d3ff1 RD |
44318 | { |
44319 | arg3 = (int)(SWIG_As_int(obj2)); | |
44320 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44321 | } | |
d55e5bfc RD |
44322 | } |
44323 | { | |
44324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44325 | (arg1)->Below(arg2,arg3); | |
44326 | ||
44327 | wxPyEndAllowThreads(__tstate); | |
44328 | if (PyErr_Occurred()) SWIG_fail; | |
44329 | } | |
44330 | Py_INCREF(Py_None); resultobj = Py_None; | |
44331 | return resultobj; | |
44332 | fail: | |
44333 | return NULL; | |
44334 | } | |
44335 | ||
44336 | ||
c32bde28 | 44337 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44338 | PyObject *resultobj; |
44339 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44340 | wxWindow *arg2 = (wxWindow *) 0 ; | |
093d3ff1 | 44341 | wxEdge arg3 ; |
d55e5bfc RD |
44342 | int arg4 = (int) 0 ; |
44343 | PyObject * obj0 = 0 ; | |
44344 | PyObject * obj1 = 0 ; | |
44345 | PyObject * obj2 = 0 ; | |
44346 | PyObject * obj3 = 0 ; | |
44347 | char *kwnames[] = { | |
44348 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
44349 | }; | |
44350 | ||
44351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
44352 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44353 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44354 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44356 | { | |
44357 | arg3 = (wxEdge)(SWIG_As_int(obj2)); | |
44358 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44359 | } | |
d55e5bfc | 44360 | if (obj3) { |
093d3ff1 RD |
44361 | { |
44362 | arg4 = (int)(SWIG_As_int(obj3)); | |
44363 | if (SWIG_arg_fail(4)) SWIG_fail; | |
44364 | } | |
d55e5bfc RD |
44365 | } |
44366 | { | |
44367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44368 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
44369 | ||
44370 | wxPyEndAllowThreads(__tstate); | |
44371 | if (PyErr_Occurred()) SWIG_fail; | |
44372 | } | |
44373 | Py_INCREF(Py_None); resultobj = Py_None; | |
44374 | return resultobj; | |
44375 | fail: | |
44376 | return NULL; | |
44377 | } | |
44378 | ||
44379 | ||
c32bde28 | 44380 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44381 | PyObject *resultobj; |
44382 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44383 | wxWindow *arg2 = (wxWindow *) 0 ; | |
093d3ff1 | 44384 | wxEdge arg3 ; |
d55e5bfc RD |
44385 | int arg4 ; |
44386 | PyObject * obj0 = 0 ; | |
44387 | PyObject * obj1 = 0 ; | |
44388 | PyObject * obj2 = 0 ; | |
44389 | PyObject * obj3 = 0 ; | |
44390 | char *kwnames[] = { | |
44391 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
44392 | }; | |
44393 | ||
44394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
44395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44397 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44399 | { | |
44400 | arg3 = (wxEdge)(SWIG_As_int(obj2)); | |
44401 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44402 | } | |
44403 | { | |
44404 | arg4 = (int)(SWIG_As_int(obj3)); | |
44405 | if (SWIG_arg_fail(4)) SWIG_fail; | |
44406 | } | |
d55e5bfc RD |
44407 | { |
44408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44409 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
44410 | ||
44411 | wxPyEndAllowThreads(__tstate); | |
44412 | if (PyErr_Occurred()) SWIG_fail; | |
44413 | } | |
44414 | Py_INCREF(Py_None); resultobj = Py_None; | |
44415 | return resultobj; | |
44416 | fail: | |
44417 | return NULL; | |
44418 | } | |
44419 | ||
44420 | ||
c32bde28 | 44421 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44422 | PyObject *resultobj; |
44423 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44424 | int arg2 ; | |
44425 | PyObject * obj0 = 0 ; | |
44426 | PyObject * obj1 = 0 ; | |
44427 | char *kwnames[] = { | |
44428 | (char *) "self",(char *) "val", NULL | |
44429 | }; | |
44430 | ||
44431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44434 | { | |
44435 | arg2 = (int)(SWIG_As_int(obj1)); | |
44436 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44437 | } | |
d55e5bfc RD |
44438 | { |
44439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44440 | (arg1)->Absolute(arg2); | |
44441 | ||
44442 | wxPyEndAllowThreads(__tstate); | |
44443 | if (PyErr_Occurred()) SWIG_fail; | |
44444 | } | |
44445 | Py_INCREF(Py_None); resultobj = Py_None; | |
44446 | return resultobj; | |
44447 | fail: | |
44448 | return NULL; | |
44449 | } | |
44450 | ||
44451 | ||
c32bde28 | 44452 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44453 | PyObject *resultobj; |
44454 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44455 | PyObject * obj0 = 0 ; | |
44456 | char *kwnames[] = { | |
44457 | (char *) "self", NULL | |
44458 | }; | |
44459 | ||
44460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44463 | { |
44464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44465 | (arg1)->Unconstrained(); | |
44466 | ||
44467 | wxPyEndAllowThreads(__tstate); | |
44468 | if (PyErr_Occurred()) SWIG_fail; | |
44469 | } | |
44470 | Py_INCREF(Py_None); resultobj = Py_None; | |
44471 | return resultobj; | |
44472 | fail: | |
44473 | return NULL; | |
44474 | } | |
44475 | ||
44476 | ||
c32bde28 | 44477 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44478 | PyObject *resultobj; |
44479 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44480 | PyObject * obj0 = 0 ; | |
44481 | char *kwnames[] = { | |
44482 | (char *) "self", NULL | |
44483 | }; | |
44484 | ||
44485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44488 | { |
44489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44490 | (arg1)->AsIs(); | |
44491 | ||
44492 | wxPyEndAllowThreads(__tstate); | |
44493 | if (PyErr_Occurred()) SWIG_fail; | |
44494 | } | |
44495 | Py_INCREF(Py_None); resultobj = Py_None; | |
44496 | return resultobj; | |
44497 | fail: | |
44498 | return NULL; | |
44499 | } | |
44500 | ||
44501 | ||
c32bde28 | 44502 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44503 | PyObject *resultobj; |
44504 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44505 | wxWindow *result; | |
44506 | PyObject * obj0 = 0 ; | |
44507 | char *kwnames[] = { | |
44508 | (char *) "self", NULL | |
44509 | }; | |
44510 | ||
44511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44514 | { |
44515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44516 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
44517 | ||
44518 | wxPyEndAllowThreads(__tstate); | |
44519 | if (PyErr_Occurred()) SWIG_fail; | |
44520 | } | |
44521 | { | |
412d302d | 44522 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
44523 | } |
44524 | return resultobj; | |
44525 | fail: | |
44526 | return NULL; | |
44527 | } | |
44528 | ||
44529 | ||
c32bde28 | 44530 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44531 | PyObject *resultobj; |
44532 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44533 | wxEdge result; |
d55e5bfc RD |
44534 | PyObject * obj0 = 0 ; |
44535 | char *kwnames[] = { | |
44536 | (char *) "self", NULL | |
44537 | }; | |
44538 | ||
44539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44542 | { |
44543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 44544 | result = (wxEdge)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); |
d55e5bfc RD |
44545 | |
44546 | wxPyEndAllowThreads(__tstate); | |
44547 | if (PyErr_Occurred()) SWIG_fail; | |
44548 | } | |
093d3ff1 | 44549 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
44550 | return resultobj; |
44551 | fail: | |
44552 | return NULL; | |
44553 | } | |
44554 | ||
44555 | ||
c32bde28 | 44556 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44557 | PyObject *resultobj; |
44558 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44559 | wxEdge arg2 ; |
d55e5bfc RD |
44560 | PyObject * obj0 = 0 ; |
44561 | PyObject * obj1 = 0 ; | |
44562 | char *kwnames[] = { | |
44563 | (char *) "self",(char *) "which", NULL | |
44564 | }; | |
44565 | ||
44566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44569 | { | |
44570 | arg2 = (wxEdge)(SWIG_As_int(obj1)); | |
44571 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44572 | } | |
d55e5bfc RD |
44573 | { |
44574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44575 | (arg1)->SetEdge((wxEdge )arg2); | |
44576 | ||
44577 | wxPyEndAllowThreads(__tstate); | |
44578 | if (PyErr_Occurred()) SWIG_fail; | |
44579 | } | |
44580 | Py_INCREF(Py_None); resultobj = Py_None; | |
44581 | return resultobj; | |
44582 | fail: | |
44583 | return NULL; | |
44584 | } | |
44585 | ||
44586 | ||
c32bde28 | 44587 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44588 | PyObject *resultobj; |
44589 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44590 | int arg2 ; | |
44591 | PyObject * obj0 = 0 ; | |
44592 | PyObject * obj1 = 0 ; | |
44593 | char *kwnames[] = { | |
44594 | (char *) "self",(char *) "v", NULL | |
44595 | }; | |
44596 | ||
44597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44600 | { | |
44601 | arg2 = (int)(SWIG_As_int(obj1)); | |
44602 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44603 | } | |
d55e5bfc RD |
44604 | { |
44605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44606 | (arg1)->SetValue(arg2); | |
44607 | ||
44608 | wxPyEndAllowThreads(__tstate); | |
44609 | if (PyErr_Occurred()) SWIG_fail; | |
44610 | } | |
44611 | Py_INCREF(Py_None); resultobj = Py_None; | |
44612 | return resultobj; | |
44613 | fail: | |
44614 | return NULL; | |
44615 | } | |
44616 | ||
44617 | ||
c32bde28 | 44618 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44619 | PyObject *resultobj; |
44620 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44621 | int result; | |
44622 | PyObject * obj0 = 0 ; | |
44623 | char *kwnames[] = { | |
44624 | (char *) "self", NULL | |
44625 | }; | |
44626 | ||
44627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44630 | { |
44631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44632 | result = (int)(arg1)->GetMargin(); | |
44633 | ||
44634 | wxPyEndAllowThreads(__tstate); | |
44635 | if (PyErr_Occurred()) SWIG_fail; | |
44636 | } | |
093d3ff1 RD |
44637 | { |
44638 | resultobj = SWIG_From_int((int)(result)); | |
44639 | } | |
d55e5bfc RD |
44640 | return resultobj; |
44641 | fail: | |
44642 | return NULL; | |
44643 | } | |
44644 | ||
44645 | ||
c32bde28 | 44646 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44647 | PyObject *resultobj; |
44648 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44649 | int arg2 ; | |
44650 | PyObject * obj0 = 0 ; | |
44651 | PyObject * obj1 = 0 ; | |
44652 | char *kwnames[] = { | |
44653 | (char *) "self",(char *) "m", NULL | |
44654 | }; | |
44655 | ||
44656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44659 | { | |
44660 | arg2 = (int)(SWIG_As_int(obj1)); | |
44661 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44662 | } | |
d55e5bfc RD |
44663 | { |
44664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44665 | (arg1)->SetMargin(arg2); | |
44666 | ||
44667 | wxPyEndAllowThreads(__tstate); | |
44668 | if (PyErr_Occurred()) SWIG_fail; | |
44669 | } | |
44670 | Py_INCREF(Py_None); resultobj = Py_None; | |
44671 | return resultobj; | |
44672 | fail: | |
44673 | return NULL; | |
44674 | } | |
44675 | ||
44676 | ||
c32bde28 | 44677 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44678 | PyObject *resultobj; |
44679 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44680 | int result; | |
44681 | PyObject * obj0 = 0 ; | |
44682 | char *kwnames[] = { | |
44683 | (char *) "self", NULL | |
44684 | }; | |
44685 | ||
44686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44689 | { |
44690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44691 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
44692 | ||
44693 | wxPyEndAllowThreads(__tstate); | |
44694 | if (PyErr_Occurred()) SWIG_fail; | |
44695 | } | |
093d3ff1 RD |
44696 | { |
44697 | resultobj = SWIG_From_int((int)(result)); | |
44698 | } | |
d55e5bfc RD |
44699 | return resultobj; |
44700 | fail: | |
44701 | return NULL; | |
44702 | } | |
44703 | ||
44704 | ||
c32bde28 | 44705 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44706 | PyObject *resultobj; |
44707 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44708 | int result; | |
44709 | PyObject * obj0 = 0 ; | |
44710 | char *kwnames[] = { | |
44711 | (char *) "self", NULL | |
44712 | }; | |
44713 | ||
44714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44717 | { |
44718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44719 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
44720 | ||
44721 | wxPyEndAllowThreads(__tstate); | |
44722 | if (PyErr_Occurred()) SWIG_fail; | |
44723 | } | |
093d3ff1 RD |
44724 | { |
44725 | resultobj = SWIG_From_int((int)(result)); | |
44726 | } | |
d55e5bfc RD |
44727 | return resultobj; |
44728 | fail: | |
44729 | return NULL; | |
44730 | } | |
44731 | ||
44732 | ||
c32bde28 | 44733 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44734 | PyObject *resultobj; |
44735 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44736 | int result; | |
44737 | PyObject * obj0 = 0 ; | |
44738 | char *kwnames[] = { | |
44739 | (char *) "self", NULL | |
44740 | }; | |
44741 | ||
44742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44745 | { |
44746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44747 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
44748 | ||
44749 | wxPyEndAllowThreads(__tstate); | |
44750 | if (PyErr_Occurred()) SWIG_fail; | |
44751 | } | |
093d3ff1 RD |
44752 | { |
44753 | resultobj = SWIG_From_int((int)(result)); | |
44754 | } | |
d55e5bfc RD |
44755 | return resultobj; |
44756 | fail: | |
44757 | return NULL; | |
44758 | } | |
44759 | ||
44760 | ||
c32bde28 | 44761 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44762 | PyObject *resultobj; |
44763 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44764 | bool result; | |
44765 | PyObject * obj0 = 0 ; | |
44766 | char *kwnames[] = { | |
44767 | (char *) "self", NULL | |
44768 | }; | |
44769 | ||
44770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44771 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44773 | { |
44774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44775 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
44776 | ||
44777 | wxPyEndAllowThreads(__tstate); | |
44778 | if (PyErr_Occurred()) SWIG_fail; | |
44779 | } | |
44780 | { | |
44781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44782 | } | |
44783 | return resultobj; | |
44784 | fail: | |
44785 | return NULL; | |
44786 | } | |
44787 | ||
44788 | ||
c32bde28 | 44789 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44790 | PyObject *resultobj; |
44791 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44792 | bool arg2 ; | |
44793 | PyObject * obj0 = 0 ; | |
44794 | PyObject * obj1 = 0 ; | |
44795 | char *kwnames[] = { | |
44796 | (char *) "self",(char *) "d", NULL | |
44797 | }; | |
44798 | ||
44799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44800 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44801 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44802 | { | |
44803 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
44804 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44805 | } | |
d55e5bfc RD |
44806 | { |
44807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44808 | (arg1)->SetDone(arg2); | |
44809 | ||
44810 | wxPyEndAllowThreads(__tstate); | |
44811 | if (PyErr_Occurred()) SWIG_fail; | |
44812 | } | |
44813 | Py_INCREF(Py_None); resultobj = Py_None; | |
44814 | return resultobj; | |
44815 | fail: | |
44816 | return NULL; | |
44817 | } | |
44818 | ||
44819 | ||
c32bde28 | 44820 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44821 | PyObject *resultobj; |
44822 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44823 | wxRelationship result; |
d55e5bfc RD |
44824 | PyObject * obj0 = 0 ; |
44825 | char *kwnames[] = { | |
44826 | (char *) "self", NULL | |
44827 | }; | |
44828 | ||
44829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44832 | { |
44833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 44834 | result = (wxRelationship)(arg1)->GetRelationship(); |
d55e5bfc RD |
44835 | |
44836 | wxPyEndAllowThreads(__tstate); | |
44837 | if (PyErr_Occurred()) SWIG_fail; | |
44838 | } | |
093d3ff1 | 44839 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
44840 | return resultobj; |
44841 | fail: | |
44842 | return NULL; | |
44843 | } | |
44844 | ||
44845 | ||
c32bde28 | 44846 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44847 | PyObject *resultobj; |
44848 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44849 | wxRelationship arg2 ; |
d55e5bfc RD |
44850 | PyObject * obj0 = 0 ; |
44851 | PyObject * obj1 = 0 ; | |
44852 | char *kwnames[] = { | |
44853 | (char *) "self",(char *) "r", NULL | |
44854 | }; | |
44855 | ||
44856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44859 | { | |
44860 | arg2 = (wxRelationship)(SWIG_As_int(obj1)); | |
44861 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44862 | } | |
d55e5bfc RD |
44863 | { |
44864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44865 | (arg1)->SetRelationship((wxRelationship )arg2); | |
44866 | ||
44867 | wxPyEndAllowThreads(__tstate); | |
44868 | if (PyErr_Occurred()) SWIG_fail; | |
44869 | } | |
44870 | Py_INCREF(Py_None); resultobj = Py_None; | |
44871 | return resultobj; | |
44872 | fail: | |
44873 | return NULL; | |
44874 | } | |
44875 | ||
44876 | ||
c32bde28 | 44877 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44878 | PyObject *resultobj; |
44879 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44880 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44881 | bool result; | |
44882 | PyObject * obj0 = 0 ; | |
44883 | PyObject * obj1 = 0 ; | |
44884 | char *kwnames[] = { | |
44885 | (char *) "self",(char *) "otherW", NULL | |
44886 | }; | |
44887 | ||
44888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44891 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
44893 | { |
44894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44895 | result = (bool)(arg1)->ResetIfWin(arg2); | |
44896 | ||
44897 | wxPyEndAllowThreads(__tstate); | |
44898 | if (PyErr_Occurred()) SWIG_fail; | |
44899 | } | |
44900 | { | |
44901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44902 | } | |
44903 | return resultobj; | |
44904 | fail: | |
44905 | return NULL; | |
44906 | } | |
44907 | ||
44908 | ||
c32bde28 | 44909 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44910 | PyObject *resultobj; |
44911 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44912 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
44913 | wxWindow *arg3 = (wxWindow *) 0 ; | |
44914 | bool result; | |
44915 | PyObject * obj0 = 0 ; | |
44916 | PyObject * obj1 = 0 ; | |
44917 | PyObject * obj2 = 0 ; | |
44918 | char *kwnames[] = { | |
44919 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
44920 | }; | |
44921 | ||
44922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
44923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44925 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); | |
44926 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44927 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44928 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
44929 | { |
44930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44931 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
44932 | ||
44933 | wxPyEndAllowThreads(__tstate); | |
44934 | if (PyErr_Occurred()) SWIG_fail; | |
44935 | } | |
44936 | { | |
44937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44938 | } | |
44939 | return resultobj; | |
44940 | fail: | |
44941 | return NULL; | |
44942 | } | |
44943 | ||
44944 | ||
c32bde28 | 44945 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44946 | PyObject *resultobj; |
44947 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44948 | wxEdge arg2 ; |
d55e5bfc RD |
44949 | wxWindow *arg3 = (wxWindow *) 0 ; |
44950 | wxWindow *arg4 = (wxWindow *) 0 ; | |
44951 | int result; | |
44952 | PyObject * obj0 = 0 ; | |
44953 | PyObject * obj1 = 0 ; | |
44954 | PyObject * obj2 = 0 ; | |
44955 | PyObject * obj3 = 0 ; | |
44956 | char *kwnames[] = { | |
44957 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
44958 | }; | |
44959 | ||
44960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
44961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44963 | { | |
44964 | arg2 = (wxEdge)(SWIG_As_int(obj1)); | |
44965 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44966 | } | |
44967 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44968 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44969 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44970 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
44971 | { |
44972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44973 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
44974 | ||
44975 | wxPyEndAllowThreads(__tstate); | |
44976 | if (PyErr_Occurred()) SWIG_fail; | |
44977 | } | |
093d3ff1 RD |
44978 | { |
44979 | resultobj = SWIG_From_int((int)(result)); | |
44980 | } | |
d55e5bfc RD |
44981 | return resultobj; |
44982 | fail: | |
44983 | return NULL; | |
44984 | } | |
44985 | ||
44986 | ||
c32bde28 | 44987 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
44988 | PyObject *obj; |
44989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
44990 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
44991 | Py_INCREF(obj); | |
44992 | return Py_BuildValue((char *)""); | |
44993 | } | |
c32bde28 | 44994 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44995 | PyObject *resultobj; |
44996 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44997 | wxIndividualLayoutConstraint *result; | |
44998 | PyObject * obj0 = 0 ; | |
44999 | char *kwnames[] = { | |
45000 | (char *) "self", NULL | |
45001 | }; | |
45002 | ||
45003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45006 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
45007 | ||
45008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
45009 | return resultobj; | |
45010 | fail: | |
45011 | return NULL; | |
45012 | } | |
45013 | ||
45014 | ||
c32bde28 | 45015 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45016 | PyObject *resultobj; |
45017 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45018 | wxIndividualLayoutConstraint *result; | |
45019 | PyObject * obj0 = 0 ; | |
45020 | char *kwnames[] = { | |
45021 | (char *) "self", NULL | |
45022 | }; | |
45023 | ||
45024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45027 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
45028 | ||
45029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
45030 | return resultobj; | |
45031 | fail: | |
45032 | return NULL; | |
45033 | } | |
45034 | ||
45035 | ||
c32bde28 | 45036 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45037 | PyObject *resultobj; |
45038 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45039 | wxIndividualLayoutConstraint *result; | |
45040 | PyObject * obj0 = 0 ; | |
45041 | char *kwnames[] = { | |
45042 | (char *) "self", NULL | |
45043 | }; | |
45044 | ||
45045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45048 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
45049 | ||
45050 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
45051 | return resultobj; | |
45052 | fail: | |
45053 | return NULL; | |
45054 | } | |
45055 | ||
45056 | ||
c32bde28 | 45057 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45058 | PyObject *resultobj; |
45059 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45060 | wxIndividualLayoutConstraint *result; | |
45061 | PyObject * obj0 = 0 ; | |
45062 | char *kwnames[] = { | |
45063 | (char *) "self", NULL | |
45064 | }; | |
45065 | ||
45066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45069 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
45070 | ||
45071 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
45072 | return resultobj; | |
45073 | fail: | |
45074 | return NULL; | |
45075 | } | |
45076 | ||
45077 | ||
c32bde28 | 45078 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45079 | PyObject *resultobj; |
45080 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45081 | wxIndividualLayoutConstraint *result; | |
45082 | PyObject * obj0 = 0 ; | |
45083 | char *kwnames[] = { | |
45084 | (char *) "self", NULL | |
45085 | }; | |
45086 | ||
45087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45088 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45089 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45090 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
45091 | ||
45092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
45093 | return resultobj; | |
45094 | fail: | |
45095 | return NULL; | |
45096 | } | |
45097 | ||
45098 | ||
c32bde28 | 45099 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45100 | PyObject *resultobj; |
45101 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45102 | wxIndividualLayoutConstraint *result; | |
45103 | PyObject * obj0 = 0 ; | |
45104 | char *kwnames[] = { | |
45105 | (char *) "self", NULL | |
45106 | }; | |
45107 | ||
45108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45111 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
45112 | ||
45113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
45114 | return resultobj; | |
45115 | fail: | |
45116 | return NULL; | |
45117 | } | |
45118 | ||
45119 | ||
c32bde28 | 45120 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45121 | PyObject *resultobj; |
45122 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45123 | wxIndividualLayoutConstraint *result; | |
45124 | PyObject * obj0 = 0 ; | |
45125 | char *kwnames[] = { | |
45126 | (char *) "self", NULL | |
45127 | }; | |
45128 | ||
45129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45132 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
45133 | ||
45134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
45135 | return resultobj; | |
45136 | fail: | |
45137 | return NULL; | |
45138 | } | |
45139 | ||
45140 | ||
c32bde28 | 45141 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45142 | PyObject *resultobj; |
45143 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45144 | wxIndividualLayoutConstraint *result; | |
45145 | PyObject * obj0 = 0 ; | |
45146 | char *kwnames[] = { | |
45147 | (char *) "self", NULL | |
45148 | }; | |
45149 | ||
45150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45153 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
45154 | ||
45155 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
45156 | return resultobj; | |
45157 | fail: | |
45158 | return NULL; | |
45159 | } | |
45160 | ||
45161 | ||
c32bde28 | 45162 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45163 | PyObject *resultobj; |
45164 | wxLayoutConstraints *result; | |
45165 | char *kwnames[] = { | |
45166 | NULL | |
45167 | }; | |
45168 | ||
45169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
45170 | { | |
45171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45172 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
45173 | ||
45174 | wxPyEndAllowThreads(__tstate); | |
45175 | if (PyErr_Occurred()) SWIG_fail; | |
45176 | } | |
45177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
45178 | return resultobj; | |
45179 | fail: | |
45180 | return NULL; | |
45181 | } | |
45182 | ||
45183 | ||
c32bde28 | 45184 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45185 | PyObject *resultobj; |
45186 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45187 | wxWindow *arg2 = (wxWindow *) 0 ; | |
45188 | int *arg3 = (int *) 0 ; | |
45189 | bool result; | |
45190 | int temp3 ; | |
c32bde28 | 45191 | int res3 = 0 ; |
d55e5bfc RD |
45192 | PyObject * obj0 = 0 ; |
45193 | PyObject * obj1 = 0 ; | |
45194 | char *kwnames[] = { | |
45195 | (char *) "self",(char *) "win", NULL | |
45196 | }; | |
45197 | ||
c32bde28 | 45198 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc | 45199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
45200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
45202 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
45203 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
45204 | { |
45205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45206 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
45207 | ||
45208 | wxPyEndAllowThreads(__tstate); | |
45209 | if (PyErr_Occurred()) SWIG_fail; | |
45210 | } | |
45211 | { | |
45212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45213 | } | |
c32bde28 RD |
45214 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
45215 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
45216 | return resultobj; |
45217 | fail: | |
45218 | return NULL; | |
45219 | } | |
45220 | ||
45221 | ||
c32bde28 | 45222 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
45223 | PyObject *resultobj; |
45224 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45225 | bool result; | |
45226 | PyObject * obj0 = 0 ; | |
45227 | char *kwnames[] = { | |
45228 | (char *) "self", NULL | |
45229 | }; | |
45230 | ||
45231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
45234 | { |
45235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45236 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
45237 | ||
45238 | wxPyEndAllowThreads(__tstate); | |
45239 | if (PyErr_Occurred()) SWIG_fail; | |
45240 | } | |
45241 | { | |
45242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45243 | } | |
45244 | return resultobj; | |
45245 | fail: | |
45246 | return NULL; | |
45247 | } | |
45248 | ||
45249 | ||
c32bde28 | 45250 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
45251 | PyObject *obj; |
45252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
45253 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
45254 | Py_INCREF(obj); | |
45255 | return Py_BuildValue((char *)""); | |
45256 | } | |
45257 | static PyMethodDef SwigMethods[] = { | |
093d3ff1 RD |
45258 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL}, |
45259 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL}, | |
45260 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45261 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45262 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL}, | |
45263 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45264 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45265 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45266 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45267 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45268 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45269 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45270 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45271 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45272 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45273 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45274 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45275 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45276 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45277 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45278 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45279 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45280 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45281 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45282 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45283 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL}, | |
45284 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45285 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45286 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45287 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45288 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45289 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45290 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45291 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45292 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45293 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45294 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45295 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45296 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL}, | |
45297 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45298 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45299 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45300 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45301 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45302 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45303 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45304 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45305 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45306 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45307 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45308 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45309 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45310 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45311 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL}, | |
45312 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45313 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45314 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45315 | { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45316 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45317 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45318 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45319 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45320 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45321 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45322 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45323 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45324 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45325 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45326 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45327 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45328 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
aff4cc5c | 45329 | { (char *)"Rect_IsEmpty", (PyCFunction) _wrap_Rect_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45330 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, |
45331 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45332 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45333 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45334 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45335 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45336 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45337 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45338 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45339 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45340 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45341 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45342 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45343 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45344 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45345 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45346 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45347 | { (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45348 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45349 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45350 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45351 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45352 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45353 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45354 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45355 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45356 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45357 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45358 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45359 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45360 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45361 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45362 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45363 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45364 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45365 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL}, | |
45366 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45367 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45368 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45369 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45370 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45371 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45372 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45373 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45374 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45375 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45376 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45377 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45378 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45379 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45380 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45381 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45382 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45383 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45384 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45385 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45386 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45387 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45388 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45389 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45390 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45391 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45392 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45393 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL}, | |
45394 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45395 | { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45396 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45397 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45398 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45399 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45400 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45401 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45402 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45403 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45404 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45405 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45406 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45407 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45408 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45409 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45410 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45411 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45412 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL}, | |
45413 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45414 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL}, | |
45415 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45416 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45417 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45418 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45419 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45420 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45421 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45422 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL}, | |
45423 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL}, | |
45424 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45425 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45426 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45427 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45428 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45429 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45430 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45431 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45432 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45433 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45434 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45435 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL}, | |
45436 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45437 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45438 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45439 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45440 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45441 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45442 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45443 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45444 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45445 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45446 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45447 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL}, | |
45448 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45449 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45450 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45451 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL}, | |
45452 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45453 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45454 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45455 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45456 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45457 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL}, | |
45458 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45459 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45460 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45461 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45462 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45463 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45464 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45465 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45466 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45467 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL}, | |
45468 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45469 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45470 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45471 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45472 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45473 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45474 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45475 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45476 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45477 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL}, | |
45478 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45479 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45480 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
f1cbd8fa RD |
45481 | { (char *)"ImageHistogram_GetCount", (PyCFunction) _wrap_ImageHistogram_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
45482 | { (char *)"ImageHistogram_GetCountRGB", (PyCFunction) _wrap_ImageHistogram_GetCountRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45483 | { (char *)"ImageHistogram_GetCountColour", (PyCFunction) _wrap_ImageHistogram_GetCountColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
45484 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL}, |
45485 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45486 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45487 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45488 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45489 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45490 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45491 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45492 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45493 | { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45494 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45495 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45496 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45497 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45498 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
aff4cc5c | 45499 | { (char *)"Image_Resize", (PyCFunction) _wrap_Image_Resize, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 45500 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, |
aff4cc5c | 45501 | { (char *)"Image_SetRGBRect", (PyCFunction) _wrap_Image_SetRGBRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45502 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL}, |
45503 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45504 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45505 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45506 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45507 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
68350608 | 45508 | { (char *)"Image_InitAlpha", (PyCFunction) _wrap_Image_InitAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45509 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
45510 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45511 | { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45512 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45513 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45514 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45515 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45516 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45517 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45518 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45519 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45520 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45521 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45522 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45523 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45524 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45525 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45526 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
aff4cc5c | 45527 | { (char *)"Image_Size", (PyCFunction) _wrap_Image_Size, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45528 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, |
45529 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45530 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45531 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45532 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45533 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45534 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45535 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45536 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45537 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45538 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
aff4cc5c | 45539 | { (char *)"Image_GetOrFindMaskColour", (PyCFunction) _wrap_Image_GetOrFindMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45540 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL}, |
45541 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45542 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45543 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45544 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45545 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45546 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45547 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45548 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45549 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45550 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45551 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45552 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45553 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45554 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45555 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45556 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45557 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45558 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45559 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45560 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45561 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45562 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45563 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL}, | |
45564 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45565 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL}, | |
45566 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45567 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL}, | |
45568 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45569 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL}, | |
45570 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45571 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL}, | |
45572 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45573 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL}, | |
45574 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45575 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL}, | |
45576 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45577 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL}, | |
45578 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45579 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL}, | |
45580 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45581 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL}, | |
45582 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45583 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL}, | |
45584 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45585 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL}, | |
45586 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45587 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL}, | |
45588 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45589 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45590 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45591 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45592 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45593 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45594 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45595 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45596 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45597 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45598 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45599 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45600 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45601 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL}, | |
45602 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45603 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45604 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45605 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45606 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45607 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45608 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45609 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45610 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45611 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45612 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45613 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45614 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45615 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45616 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45617 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45618 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45619 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL}, | |
45620 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45621 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45622 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL}, | |
45623 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45624 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45625 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL}, | |
45626 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45627 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45628 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45629 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45630 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45631 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45632 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45633 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45634 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45635 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45636 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45637 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL}, | |
45638 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45639 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45640 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45641 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45642 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL}, | |
45643 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45644 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45645 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45646 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45647 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45648 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL}, | |
45649 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45650 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45651 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45652 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45653 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45654 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL}, | |
45655 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45656 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45657 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45658 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45659 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45660 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45661 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45662 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45663 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45664 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45665 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45666 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45667 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45668 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45669 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45670 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45671 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45672 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45673 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45674 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45675 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45676 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45677 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45678 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45679 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45680 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45681 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45682 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45683 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45684 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45685 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45686 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45687 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45688 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45689 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45690 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45691 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45692 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45693 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45694 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45695 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45696 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45697 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45698 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45699 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45700 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45701 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45702 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45703 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45704 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45705 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45706 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45707 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45708 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45709 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45710 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45711 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45712 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45713 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45714 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45715 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45716 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45717 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL}, | |
45718 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45719 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45720 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45721 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45722 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45723 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45724 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL}, | |
45725 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45726 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45727 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45728 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45729 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45730 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45731 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45732 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45733 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45734 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45735 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45736 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45737 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45738 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45739 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45740 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45741 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45742 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45743 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45744 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45745 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45746 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45747 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45748 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45749 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45750 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45751 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45752 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45753 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45754 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45755 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45756 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45757 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45758 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45759 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45760 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL}, | |
45761 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45762 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45763 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45764 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45765 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45766 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45767 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45768 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45769 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45770 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL}, | |
45771 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45772 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45773 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45774 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45775 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
45776 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL}, |
45777 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45778 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL}, | |
45779 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45780 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL}, | |
45781 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45782 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45783 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL}, | |
45784 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45785 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45786 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45787 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL}, | |
45788 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45789 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45790 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL}, | |
45791 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45792 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45793 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL}, | |
45794 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45795 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL}, | |
45796 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45797 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45798 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45799 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45800 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL}, | |
45801 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45802 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45803 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45804 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45805 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45806 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45807 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45808 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL}, | |
45809 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45810 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45811 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45812 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL}, | |
45813 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45814 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45815 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL}, | |
45816 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45817 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL}, | |
45818 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45819 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45820 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45821 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL}, | |
45822 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45823 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45824 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45825 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45826 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45827 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45828 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45829 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45830 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45831 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45832 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45833 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45834 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45835 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45836 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45837 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45838 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL}, | |
45839 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45840 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL}, | |
45841 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45842 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45843 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL}, | |
45844 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45845 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL}, | |
45846 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45847 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45848 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45849 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL}, | |
45850 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45851 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45852 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45853 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL}, | |
45854 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45855 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45856 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45857 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45858 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
68350608 RD |
45859 | { (char *)"NavigationKeyEvent_IsFromTab", (PyCFunction) _wrap_NavigationKeyEvent_IsFromTab, METH_VARARGS | METH_KEYWORDS, NULL}, |
45860 | { (char *)"NavigationKeyEvent_SetFromTab", (PyCFunction) _wrap_NavigationKeyEvent_SetFromTab, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
45861 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
45862 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45863 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45864 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL}, | |
45865 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45866 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45867 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL}, | |
45868 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45869 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45870 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL}, | |
45871 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45872 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45873 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45874 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL}, | |
45875 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45876 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45877 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45878 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45879 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45880 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45881 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL}, | |
45882 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45883 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45884 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45885 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45886 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL}, | |
45887 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45888 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45889 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45890 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45891 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL}, | |
53aa7709 RD |
45892 | { (char *)"new_DateEvent", (PyCFunction) _wrap_new_DateEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
45893 | { (char *)"DateEvent_GetDate", (PyCFunction) _wrap_DateEvent_GetDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45894 | { (char *)"DateEvent_SetDate", (PyCFunction) _wrap_DateEvent_SetDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45895 | { (char *)"DateEvent_swigregister", DateEvent_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
45896 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL}, |
45897 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45898 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45899 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45900 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45901 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45902 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45903 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45904 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45905 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45906 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45907 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45908 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45909 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45910 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45911 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45912 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45913 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45914 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45915 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45916 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45917 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45918 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45919 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45920 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45921 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45922 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45923 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45924 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45925 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45926 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45927 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45928 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45929 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45930 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45931 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45932 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45933 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45934 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45935 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45936 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45937 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45938 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45939 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45940 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL}, | |
45941 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45942 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45943 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45944 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45945 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45946 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45947 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45948 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45949 | { (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45950 | { (char *)"GetDefaultPyEncoding", (PyCFunction) _wrap_GetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45951 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45952 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45953 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45954 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45955 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45956 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45957 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45958 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45959 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45960 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL}, | |
45961 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45962 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45963 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45964 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45965 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45966 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45967 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL}, | |
45968 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45969 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45970 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45971 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL}, | |
45972 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45973 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45974 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45975 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45976 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45977 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45978 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45979 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45980 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45981 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL}, | |
45982 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45983 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45984 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45985 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45986 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45987 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45988 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45989 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45990 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45991 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45992 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45993 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45994 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45995 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45996 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45997 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45998 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45999 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46000 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46001 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46002 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46003 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46004 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46005 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46006 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46007 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46008 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46009 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46010 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46011 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46012 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46013 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46014 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46015 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46016 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46017 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46018 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46019 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46020 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46021 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46022 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46023 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46024 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46025 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46026 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46027 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46028 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46029 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46030 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46031 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46032 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46033 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46034 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46035 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46036 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46037 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46038 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46039 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46040 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46041 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46042 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46043 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46044 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46045 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46046 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46047 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46048 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46049 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46050 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46051 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46052 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46053 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46054 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46055 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46056 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46057 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46058 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46059 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46060 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46061 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46062 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46063 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46064 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46065 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46066 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46067 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46068 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46069 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46070 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46071 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46072 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46073 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46074 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46075 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46076 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46077 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46078 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46079 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46080 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46081 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46082 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46083 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46084 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46085 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46086 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46087 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46088 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46089 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46090 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46091 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46092 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46093 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46094 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46095 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46096 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46097 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46098 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46099 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46100 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46101 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46102 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46103 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46104 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46105 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46106 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46107 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46108 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46109 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46110 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46111 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46112 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46113 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46114 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46115 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46116 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46117 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46118 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46119 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46120 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46121 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46122 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46123 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46124 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46125 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46126 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46127 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46128 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46129 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46130 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
dcb8fc74 RD |
46131 | { (char *)"Window_InheritsBackgroundColour", (PyCFunction) _wrap_Window_InheritsBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
46132 | { (char *)"Window_UseBgCol", (PyCFunction) _wrap_Window_UseBgCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
46133 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
46134 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
51b83b37 | 46135 | { (char *)"Window_HasTransparentBackground", (PyCFunction) _wrap_Window_HasTransparentBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
46136 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
46137 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46138 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46139 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46140 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46141 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46142 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46143 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46144 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46145 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46146 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46147 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46148 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46149 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46150 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46151 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46152 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46153 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL}, | |
46154 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46155 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46156 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46157 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46158 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46159 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46160 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46161 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46162 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46163 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46164 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46165 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46166 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46167 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46168 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46169 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46170 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46171 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46172 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46173 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46174 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46175 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46176 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46177 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46178 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46179 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46180 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46181 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46182 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46183 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46184 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46185 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46186 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46187 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46188 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46189 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46190 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46191 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46192 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46193 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46194 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46195 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL}, | |
46196 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46197 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46198 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46199 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46200 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46201 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46202 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46203 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46204 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46205 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46206 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46207 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46208 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46209 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL}, | |
46210 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46211 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46212 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL}, | |
46213 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46214 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46215 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46216 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46217 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46218 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46219 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46220 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46221 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46222 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46223 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46224 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46225 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46226 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46227 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46228 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46229 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46230 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46231 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46232 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46233 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46234 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46235 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46236 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46237 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46238 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46239 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46240 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46241 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46242 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46243 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46244 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46245 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46246 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46247 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46248 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46249 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46250 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46251 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46252 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46253 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46254 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46255 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46256 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46257 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46258 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46259 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46260 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46261 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46262 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46263 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46264 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46265 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46266 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46267 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL}, | |
46268 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46269 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46270 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46271 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46272 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46273 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46274 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46275 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46276 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46277 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46278 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46279 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46280 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46281 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46282 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46283 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46284 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46285 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46286 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46287 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46288 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46289 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46290 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46291 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46292 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46293 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46294 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL}, | |
46295 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46296 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46297 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46298 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46299 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46300 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46301 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46302 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46303 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46304 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46305 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46306 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46307 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46308 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46309 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46310 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46311 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46312 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46313 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46314 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46315 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46316 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46317 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46318 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46319 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46320 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46321 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46322 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46323 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46324 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46325 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46326 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46327 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46328 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46329 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46330 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46331 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46332 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46333 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46334 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46335 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46336 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46337 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46338 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL}, | |
46339 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46340 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46341 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46342 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46343 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46344 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46345 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46346 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL}, | |
46347 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46348 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46349 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46350 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46351 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
53aa7709 RD |
46352 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, |
46353 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
46354 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
46355 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46356 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46357 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46358 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46359 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
53aa7709 | 46360 | { (char *)"ItemContainer_SetSelection", (PyCFunction) _wrap_ItemContainer_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 46361 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
53aa7709 | 46362 | { (char *)"ItemContainer_SetStringSelection", (PyCFunction) _wrap_ItemContainer_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 46363 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
53aa7709 | 46364 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
46365 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL}, |
46366 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL}, | |
46367 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46368 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46369 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46370 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46371 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46372 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46373 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46374 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46375 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46376 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46377 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46378 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46379 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46380 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46381 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46382 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46383 | { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46384 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46385 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46386 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46387 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46388 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46389 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46390 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46391 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46392 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46393 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46394 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46395 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46396 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46397 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46398 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46399 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46400 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46401 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46402 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46403 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL}, | |
46404 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46405 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46406 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46407 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46408 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46409 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46410 | { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46411 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46412 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46413 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46414 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46415 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46416 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46417 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46418 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46419 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46420 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46421 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46422 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46423 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46424 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46425 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46426 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46427 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46428 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46429 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46430 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46431 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46432 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46433 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL}, | |
46434 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46435 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46436 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL}, | |
46437 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46438 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46439 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46440 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL}, | |
46441 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46442 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46443 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL}, | |
46444 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46445 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46446 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46447 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46448 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46449 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46450 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46451 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46452 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46453 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL}, | |
46454 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46455 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46456 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46457 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46458 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46459 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46460 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46461 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46462 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46463 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46464 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46465 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL}, | |
62d32a5f RD |
46466 | { (char *)"new_StdDialogButtonSizer", (PyCFunction) _wrap_new_StdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
46467 | { (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
53aa7709 | 46468 | { (char *)"StdDialogButtonSizer_Realize", (PyCFunction) _wrap_StdDialogButtonSizer_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, |
51b83b37 RD |
46469 | { (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
46470 | { (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46471 | { (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
62d32a5f RD |
46472 | { (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
46473 | { (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetApplyButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46474 | { (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46475 | { (char *)"StdDialogButtonSizer_GetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46476 | { (char *)"StdDialogButtonSizer_GetHelpButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46477 | { (char *)"StdDialogButtonSizer_swigregister", StdDialogButtonSizer_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
46478 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
46479 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46480 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46481 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46482 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46483 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46484 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46485 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46486 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46487 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL}, | |
46488 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46489 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46490 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46491 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46492 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46493 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46494 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46495 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46496 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46497 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL}, | |
46498 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46499 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46500 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46501 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46502 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46503 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46504 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46505 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46506 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46507 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46508 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46509 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46510 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46511 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL}, | |
46512 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46513 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46514 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46515 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46516 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46517 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46518 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL}, | |
46519 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL}, | |
46520 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL}, | |
46521 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL}, | |
46522 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL}, | |
46523 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46524 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46525 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46526 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46527 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL}, | |
46528 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46529 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46530 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46531 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46532 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46533 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46534 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46535 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46536 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46537 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46538 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46539 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46540 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46541 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46542 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46543 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46544 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46545 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46546 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46547 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46548 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46549 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46550 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46551 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46552 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46553 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46554 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL}, | |
46555 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46556 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46557 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46558 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46559 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46560 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46561 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46562 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46563 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46564 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46565 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46566 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 46567 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
46568 | }; |
46569 | ||
46570 | ||
46571 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
46572 | ||
46573 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
46574 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
46575 | } | |
46576 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
46577 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
46578 | } | |
46579 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
46580 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
46581 | } | |
62d32a5f RD |
46582 | static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) { |
46583 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
46584 | } | |
d55e5bfc RD |
46585 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { |
46586 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
46587 | } | |
46588 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
46589 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
46590 | } | |
46591 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
46592 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
46593 | } | |
46594 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
46595 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
46596 | } | |
46597 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
46598 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
46599 | } | |
62d32a5f RD |
46600 | static void *_p_wxStdDialogButtonSizerTo_p_wxBoxSizer(void *x) { |
46601 | return (void *)((wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
46602 | } | |
d55e5bfc RD |
46603 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
46604 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
46605 | } | |
46606 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
46607 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
46608 | } | |
46609 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
46610 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
46611 | } | |
46612 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
46613 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
46614 | } | |
46615 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
46616 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
46617 | } | |
46618 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
46619 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
46620 | } | |
46621 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
46622 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
46623 | } | |
46624 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
46625 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
46626 | } | |
46627 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
46628 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
46629 | } | |
46630 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
46631 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
46632 | } | |
46633 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
46634 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
46635 | } | |
46636 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
46637 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
46638 | } | |
46639 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
46640 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
46641 | } | |
46642 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
46643 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
46644 | } | |
46645 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
46646 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
46647 | } | |
46648 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
46649 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
46650 | } | |
46651 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
46652 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
46653 | } | |
46654 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
46655 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
46656 | } | |
53aa7709 RD |
46657 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
46658 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
46659 | } | |
d55e5bfc RD |
46660 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
46661 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
46662 | } | |
46663 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
46664 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
46665 | } | |
46666 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
46667 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
46668 | } | |
46669 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
46670 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
46671 | } | |
46672 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
46673 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
46674 | } | |
46675 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
46676 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
46677 | } | |
46678 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
46679 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
46680 | } | |
46681 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
46682 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
46683 | } | |
46684 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
46685 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
46686 | } | |
46687 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
46688 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
46689 | } | |
46690 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
46691 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
46692 | } | |
46693 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
46694 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
46695 | } | |
46696 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
46697 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
46698 | } | |
46699 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
46700 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
46701 | } | |
46702 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
46703 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
46704 | } | |
46705 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
46706 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
46707 | } | |
46708 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
46709 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
46710 | } | |
46711 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
46712 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
46713 | } | |
46714 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
46715 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
46716 | } | |
46717 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
46718 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
46719 | } | |
46720 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
46721 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
46722 | } | |
46723 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
46724 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
46725 | } | |
46726 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
46727 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
46728 | } | |
46729 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
46730 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
46731 | } | |
46732 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
46733 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
46734 | } | |
46735 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
46736 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
46737 | } | |
46738 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
46739 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
46740 | } | |
46741 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
46742 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
46743 | } | |
46744 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
46745 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
46746 | } | |
46747 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
46748 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
46749 | } | |
46750 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
46751 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
46752 | } | |
46753 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
46754 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
46755 | } | |
46756 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
46757 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
46758 | } | |
46759 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
46760 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
46761 | } | |
46762 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
46763 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
46764 | } | |
46765 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
46766 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
46767 | } | |
46768 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
46769 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
46770 | } | |
46771 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
46772 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
46773 | } | |
46774 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
46775 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
46776 | } | |
46777 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
46778 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
46779 | } | |
46780 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
46781 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
46782 | } | |
46783 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
46784 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
46785 | } | |
46786 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
46787 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
46788 | } | |
46789 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
46790 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
46791 | } | |
46792 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
46793 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
46794 | } | |
46795 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
46796 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
46797 | } | |
46798 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
46799 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
46800 | } | |
46801 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
46802 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
46803 | } | |
46804 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
46805 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
46806 | } | |
46807 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
46808 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
46809 | } | |
46810 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
46811 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
46812 | } | |
62d32a5f RD |
46813 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
46814 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
d55e5bfc | 46815 | } |
62d32a5f RD |
46816 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
46817 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
d55e5bfc | 46818 | } |
62d32a5f RD |
46819 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
46820 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
d55e5bfc | 46821 | } |
62d32a5f RD |
46822 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
46823 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
d55e5bfc | 46824 | } |
62d32a5f RD |
46825 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { |
46826 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
d55e5bfc | 46827 | } |
62d32a5f RD |
46828 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
46829 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
d55e5bfc | 46830 | } |
62d32a5f RD |
46831 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { |
46832 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
d55e5bfc RD |
46833 | } |
46834 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
46835 | return (void *)((wxObject *) ((wxSizer *) x)); | |
46836 | } | |
62d32a5f RD |
46837 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { |
46838 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
d55e5bfc | 46839 | } |
62d32a5f RD |
46840 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { |
46841 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
d55e5bfc | 46842 | } |
62d32a5f RD |
46843 | static void *_p_wxEventTo_p_wxObject(void *x) { |
46844 | return (void *)((wxObject *) ((wxEvent *) x)); | |
46845 | } | |
46846 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
46847 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
46848 | } | |
46849 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
46850 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
d55e5bfc RD |
46851 | } |
46852 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
46853 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
46854 | } | |
62d32a5f RD |
46855 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
46856 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
d55e5bfc | 46857 | } |
62d32a5f RD |
46858 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { |
46859 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
d55e5bfc | 46860 | } |
62d32a5f RD |
46861 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { |
46862 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
d55e5bfc | 46863 | } |
62d32a5f RD |
46864 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { |
46865 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
d55e5bfc | 46866 | } |
62d32a5f RD |
46867 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { |
46868 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
46869 | } | |
46870 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
46871 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
d55e5bfc RD |
46872 | } |
46873 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
46874 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
46875 | } | |
62d32a5f RD |
46876 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
46877 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
d55e5bfc | 46878 | } |
62d32a5f RD |
46879 | static void *_p_wxFSFileTo_p_wxObject(void *x) { |
46880 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
d55e5bfc | 46881 | } |
62d32a5f RD |
46882 | static void *_p_wxPySizerTo_p_wxObject(void *x) { |
46883 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
d55e5bfc | 46884 | } |
62d32a5f RD |
46885 | static void *_p_wxPyEventTo_p_wxObject(void *x) { |
46886 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
d55e5bfc | 46887 | } |
62d32a5f RD |
46888 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { |
46889 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
d55e5bfc | 46890 | } |
62d32a5f RD |
46891 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
46892 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
d55e5bfc | 46893 | } |
62d32a5f RD |
46894 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { |
46895 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
d55e5bfc | 46896 | } |
53aa7709 RD |
46897 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
46898 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
46899 | } | |
62d32a5f RD |
46900 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
46901 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
d55e5bfc | 46902 | } |
62d32a5f RD |
46903 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { |
46904 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
46905 | } | |
46906 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
46907 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
d55e5bfc RD |
46908 | } |
46909 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
46910 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
46911 | } | |
62d32a5f RD |
46912 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { |
46913 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
d55e5bfc | 46914 | } |
62d32a5f RD |
46915 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { |
46916 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
d55e5bfc | 46917 | } |
62d32a5f RD |
46918 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { |
46919 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
d55e5bfc | 46920 | } |
62d32a5f RD |
46921 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { |
46922 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
d55e5bfc | 46923 | } |
62d32a5f RD |
46924 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
46925 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
d55e5bfc | 46926 | } |
62d32a5f RD |
46927 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
46928 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
d55e5bfc | 46929 | } |
62d32a5f RD |
46930 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { |
46931 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
d55e5bfc | 46932 | } |
62d32a5f RD |
46933 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { |
46934 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
d55e5bfc | 46935 | } |
62d32a5f RD |
46936 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { |
46937 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
d55e5bfc | 46938 | } |
62d32a5f RD |
46939 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { |
46940 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
d55e5bfc RD |
46941 | } |
46942 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
46943 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
46944 | } | |
62d32a5f RD |
46945 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { |
46946 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
d55e5bfc | 46947 | } |
62d32a5f RD |
46948 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { |
46949 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
d55e5bfc | 46950 | } |
62d32a5f RD |
46951 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { |
46952 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
d55e5bfc | 46953 | } |
62d32a5f RD |
46954 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
46955 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
d55e5bfc | 46956 | } |
62d32a5f RD |
46957 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
46958 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
d55e5bfc | 46959 | } |
62d32a5f RD |
46960 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
46961 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
d55e5bfc | 46962 | } |
62d32a5f RD |
46963 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
46964 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
d55e5bfc | 46965 | } |
62d32a5f RD |
46966 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
46967 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
d55e5bfc | 46968 | } |
62d32a5f RD |
46969 | static void *_p_wxImageTo_p_wxObject(void *x) { |
46970 | return (void *)((wxObject *) ((wxImage *) x)); | |
d55e5bfc | 46971 | } |
62d32a5f RD |
46972 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
46973 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
d55e5bfc | 46974 | } |
62d32a5f RD |
46975 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
46976 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
d55e5bfc | 46977 | } |
62d32a5f RD |
46978 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { |
46979 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
d55e5bfc | 46980 | } |
62d32a5f RD |
46981 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { |
46982 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
d55e5bfc | 46983 | } |
62d32a5f RD |
46984 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
46985 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
d55e5bfc | 46986 | } |
62d32a5f RD |
46987 | static void *_p_wxMenuTo_p_wxObject(void *x) { |
46988 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
d55e5bfc | 46989 | } |
62d32a5f RD |
46990 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { |
46991 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
d55e5bfc | 46992 | } |
62d32a5f RD |
46993 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
46994 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
d55e5bfc | 46995 | } |
62d32a5f RD |
46996 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
46997 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
d55e5bfc | 46998 | } |
62d32a5f RD |
46999 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { |
47000 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
d55e5bfc | 47001 | } |
62d32a5f RD |
47002 | static void *_p_wxPyAppTo_p_wxObject(void *x) { |
47003 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
d55e5bfc | 47004 | } |
62d32a5f RD |
47005 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { |
47006 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
d55e5bfc | 47007 | } |
62d32a5f RD |
47008 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { |
47009 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
d55e5bfc | 47010 | } |
62d32a5f RD |
47011 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { |
47012 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
d55e5bfc RD |
47013 | } |
47014 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
47015 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
47016 | } | |
62d32a5f RD |
47017 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { |
47018 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
d55e5bfc | 47019 | } |
62d32a5f RD |
47020 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { |
47021 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
d55e5bfc | 47022 | } |
62d32a5f RD |
47023 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { |
47024 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
d55e5bfc | 47025 | } |
62d32a5f RD |
47026 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { |
47027 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
d55e5bfc | 47028 | } |
62d32a5f RD |
47029 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
47030 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
d55e5bfc | 47031 | } |
62d32a5f RD |
47032 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
47033 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
d55e5bfc | 47034 | } |
62d32a5f RD |
47035 | static void *_p_wxValidatorTo_p_wxObject(void *x) { |
47036 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
d55e5bfc RD |
47037 | } |
47038 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
47039 | return (void *)((wxWindow *) ((wxControl *) x)); | |
47040 | } | |
47041 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
47042 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
47043 | } | |
47044 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
47045 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
47046 | } | |
47047 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
47048 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
47049 | } | |
47050 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
47051 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
47052 | } | |
47053 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
47054 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
47055 | } | |
53aa7709 RD |
47056 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
47057 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
47058 | } | |
d55e5bfc RD |
47059 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
47060 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
47061 | } | |
47062 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
47063 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
47064 | } | |
47065 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
47066 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
47067 | } | |
47068 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
47069 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
47070 | } | |
47071 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
47072 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
47073 | } | |
47074 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
47075 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
47076 | } | |
47077 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47078 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47079 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47080 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47081 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
ae8162c8 | 47082 | static swig_type_info _swigt__p_wxEventLoop[] = {{"_p_wxEventLoop", 0, "wxEventLoop *", 0, 0, 0, 0},{"_p_wxEventLoop", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 47083 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
62d32a5f RD |
47084 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47085 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
47086 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0, 0, 0, 0},{"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47087 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47088 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0, 0, 0, 0},{"_p_wxAcceleratorEntry", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47089 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 47090 | 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_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_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_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_wxDateEvent", _p_wxDateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_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_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}}; |
ea939623 | 47091 | static swig_type_info _swigt__p_buffer[] = {{"_p_buffer", 0, "buffer *", 0, 0, 0, 0},{"_p_buffer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 | 47092 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47093 | static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", 0, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47094 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47095 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0, 0, 0, 0},{"_p_wxInitDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47096 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47097 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0, 0, 0, 0},{"_p_wxNcPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47098 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0, 0, 0, 0},{"_p_wxPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47099 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47100 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47101 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47102 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47103 | 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},{0, 0, 0, 0, 0, 0, 0}}; | |
47104 | 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}}; | |
47105 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0, 0, 0, 0},{"_p_wxMenuBarBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47106 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0, 0, 0, 0},{"_p_wxSetCursorEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47107 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0, 0, 0, 0},{"_p_wxFSFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47108 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 RD |
47109 | 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}}; |
47110 | 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}}; | |
d55e5bfc RD |
47111 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47112 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0, 0, 0, 0},{"_p_wxPoint2D", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47113 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47114 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47115 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47116 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0, 0, 0, 0},{"_p_wxPySizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47117 | 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}}; | |
47118 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47119 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0, 0, 0, 0},{"_p_wxPyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47120 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0, 0, 0, 0},{"_p_wxPropagationDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 | 47121 | 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}}; |
d55e5bfc RD |
47122 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0, 0, 0, 0},{"_p_wxAppTraits", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47123 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47124 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0, 0, 0, 0},{"_p_wxShowEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47125 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
47126 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0, 0, 0, 0},{"_p_wxMoveEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47127 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0, 0, 0, 0},{"_p_wxSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 RD |
47128 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0, 0, 0, 0},{"_p_wxActivateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47129 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0, 0, 0, 0},{"_p_wxIconizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
c0de73ae | 47130 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0, 0, 0, 0},{"_p_wxMaximizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47131 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47132 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0, 0, 0, 0},{"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47133 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 47134 | static swig_type_info _swigt__p_wxDateEvent[] = {{"_p_wxDateEvent", 0, "wxDateEvent *", 0, 0, 0, 0},{"_p_wxDateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47135 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0, 0, 0, 0},{"_p_wxMenuItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47136 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47137 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 | 47138 | 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}}; |
d55e5bfc RD |
47139 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0, 0, 0, 0},{"_p_wxTIFFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47140 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0, 0, 0, 0},{"_p_wxXPMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47141 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0, 0, 0, 0},{"_p_wxPNMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47142 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0, 0, 0, 0},{"_p_wxJPEGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47143 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0, 0, 0, 0},{"_p_wxPCXHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47144 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0, 0, 0, 0},{"_p_wxGIFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47145 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0, 0, 0, 0},{"_p_wxPNGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47146 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0, 0, 0, 0},{"_p_wxANIHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47147 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0, 0, 0, 0},{"_p_wxMemoryFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 RD |
47148 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0, 0, 0, 0},{"_p_wxZipFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47149 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0, 0, 0, 0},{"_p_wxInternetFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47150 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
47151 | 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_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},{0, 0, 0, 0, 0, 0, 0}}; |
47152 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0, 0, 0, 0},{"_p_wxCURHandler", 0, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47153 | static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0, 0, 0, 0},{"_p_wxICOHandler", 0, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47154 | static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0, 0, 0, 0},{"_p_wxBMPHandler", 0, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47155 | static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0, 0, 0, 0},{"_p_wxImageHandler", 0, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47156 | static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0, 0, 0, 0},{"_p_wxFileSystemHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc | 47157 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
62d32a5f | 47158 | static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47159 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0, 0, 0, 0},{"_p_wxGBSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47160 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0, 0, 0, 0},{"_p_wxPropagateOnce", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47161 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0, 0, 0, 0},{"_p_wxAcceleratorTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
62d32a5f | 47162 | static swig_type_info _swigt__p_wxStdDialogButtonSizer[] = {{"_p_wxStdDialogButtonSizer", 0, "wxStdDialogButtonSizer *", 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47163 | 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}}; |
47164 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0, 0, 0, 0},{"_p_wxGBPosition", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47165 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47166 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47167 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 | 47168 | 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}}; |
d55e5bfc | 47169 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0, 0, 0, 0},{"_p_wxImageHistogram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47170 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47171 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 47172 | 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_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_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_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_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_wxFSFile", _p_wxFSFileTo_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_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_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_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_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_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_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_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_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_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_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},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 47173 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 RD |
47174 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47175 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0, 0, 0, 0},{"_p_wxPyInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
47176 | 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}}; |
47177 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47178 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47179 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 | 47180 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47181 | 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},{0, 0, 0, 0, 0, 0, 0}}; |
47182 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47183 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47184 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 RD |
47185 | 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}}; |
47186 | 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}}; | |
d55e5bfc RD |
47187 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0, 0, 0, 0},{"_p_wxMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47188 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
aff4cc5c | 47189 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47190 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0, 0, 0, 0},{"_p_wxEraseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47191 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
093d3ff1 | 47192 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0, 0, 0, 0},{"_p_wxCloseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 47193 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 47194 | 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_wxDateEvent", _p_wxDateEventTo_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_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}}; |
d55e5bfc RD |
47195 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0, 0, 0, 0},{"_p_wxPyCommandEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47196 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
c0de73ae | 47197 | static swig_type_info _swigt__p_wxQuantize[] = {{"_p_wxQuantize", 0, "wxQuantize *", 0, 0, 0, 0},{"_p_wxQuantize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 47198 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0, 0, 0, 0},{"_p_wxFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
ea939623 | 47199 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
47200 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0, 0, 0, 0},{"_p_wxDropFilesEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
47201 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47202 | 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}}; | |
47203 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47204 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0, 0, 0, 0},{"_p_wxPyValidator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
47205 | ||
47206 | static swig_type_info *swig_types_initial[] = { | |
47207 | _swigt__p_wxLayoutConstraints, | |
47208 | _swigt__p_wxRealPoint, | |
47209 | _swigt__p_wxSizerItem, | |
47210 | _swigt__p_wxGBSizerItem, | |
47211 | _swigt__p_wxScrollEvent, | |
ae8162c8 | 47212 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
47213 | _swigt__p_wxIndividualLayoutConstraint, |
47214 | _swigt__p_wxSizer, | |
47215 | _swigt__p_wxBoxSizer, | |
47216 | _swigt__p_wxStaticBoxSizer, | |
47217 | _swigt__p_wxGridBagSizer, | |
47218 | _swigt__p_wxAcceleratorEntry, | |
47219 | _swigt__p_wxUpdateUIEvent, | |
d55e5bfc | 47220 | _swigt__p_wxEvent, |
ea939623 | 47221 | _swigt__p_buffer, |
093d3ff1 | 47222 | _swigt__p_wxMenu, |
d55e5bfc RD |
47223 | _swigt__p_wxGridSizer, |
47224 | _swigt__p_wxFlexGridSizer, | |
47225 | _swigt__p_wxInitDialogEvent, | |
47226 | _swigt__p_wxItemContainer, | |
47227 | _swigt__p_wxNcPaintEvent, | |
47228 | _swigt__p_wxPaintEvent, | |
47229 | _swigt__p_wxSysColourChangedEvent, | |
47230 | _swigt__p_wxMouseCaptureChangedEvent, | |
47231 | _swigt__p_wxDisplayChangedEvent, | |
47232 | _swigt__p_wxPaletteChangedEvent, | |
47233 | _swigt__p_wxControl, | |
47234 | _swigt__p_wxFont, | |
47235 | _swigt__p_wxMenuBarBase, | |
47236 | _swigt__p_wxSetCursorEvent, | |
47237 | _swigt__p_wxFSFile, | |
47238 | _swigt__p_wxCaret, | |
093d3ff1 RD |
47239 | _swigt__ptrdiff_t, |
47240 | _swigt__std__ptrdiff_t, | |
d55e5bfc RD |
47241 | _swigt__p_wxRegion, |
47242 | _swigt__p_wxPoint2D, | |
47243 | _swigt__p_int, | |
47244 | _swigt__p_wxSize, | |
47245 | _swigt__p_wxDC, | |
47246 | _swigt__p_wxPySizer, | |
47247 | _swigt__p_wxVisualAttributes, | |
47248 | _swigt__p_wxNotifyEvent, | |
47249 | _swigt__p_wxPyEvent, | |
47250 | _swigt__p_wxPropagationDisabler, | |
093d3ff1 | 47251 | _swigt__p_form_ops_t, |
d55e5bfc RD |
47252 | _swigt__p_wxAppTraits, |
47253 | _swigt__p_wxArrayString, | |
47254 | _swigt__p_wxShowEvent, | |
47255 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
47256 | _swigt__p_wxMoveEvent, |
47257 | _swigt__p_wxSizeEvent, | |
093d3ff1 RD |
47258 | _swigt__p_wxActivateEvent, |
47259 | _swigt__p_wxIconizeEvent, | |
c0de73ae | 47260 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
47261 | _swigt__p_wxQueryNewPaletteEvent, |
47262 | _swigt__p_wxWindowCreateEvent, | |
47263 | _swigt__p_wxIdleEvent, | |
53aa7709 | 47264 | _swigt__p_wxDateEvent, |
d55e5bfc RD |
47265 | _swigt__p_wxMenuItem, |
47266 | _swigt__p_wxStaticBox, | |
47267 | _swigt__p_long, | |
093d3ff1 | 47268 | _swigt__p_wxDuplexMode, |
d55e5bfc RD |
47269 | _swigt__p_wxTIFFHandler, |
47270 | _swigt__p_wxXPMHandler, | |
47271 | _swigt__p_wxPNMHandler, | |
47272 | _swigt__p_wxJPEGHandler, | |
47273 | _swigt__p_wxPCXHandler, | |
47274 | _swigt__p_wxGIFHandler, | |
47275 | _swigt__p_wxPNGHandler, | |
47276 | _swigt__p_wxANIHandler, | |
47277 | _swigt__p_wxMemoryFSHandler, | |
093d3ff1 RD |
47278 | _swigt__p_wxZipFSHandler, |
47279 | _swigt__p_wxInternetFSHandler, | |
47280 | _swigt__p_wxPyFileSystemHandler, | |
d55e5bfc RD |
47281 | _swigt__p_wxEvtHandler, |
47282 | _swigt__p_wxCURHandler, | |
47283 | _swigt__p_wxICOHandler, | |
47284 | _swigt__p_wxBMPHandler, | |
47285 | _swigt__p_wxImageHandler, | |
47286 | _swigt__p_wxFileSystemHandler, | |
d55e5bfc | 47287 | _swigt__p_wxRect, |
62d32a5f | 47288 | _swigt__p_wxButton, |
d55e5bfc RD |
47289 | _swigt__p_wxGBSpan, |
47290 | _swigt__p_wxPropagateOnce, | |
47291 | _swigt__p_wxAcceleratorTable, | |
62d32a5f | 47292 | _swigt__p_wxStdDialogButtonSizer, |
d55e5bfc RD |
47293 | _swigt__p_char, |
47294 | _swigt__p_wxGBPosition, | |
47295 | _swigt__p_wxImage, | |
47296 | _swigt__p_wxFrame, | |
47297 | _swigt__p_wxScrollWinEvent, | |
093d3ff1 | 47298 | _swigt__p_wxPaperSize, |
d55e5bfc | 47299 | _swigt__p_wxImageHistogram, |
d55e5bfc RD |
47300 | _swigt__p_wxPoint, |
47301 | _swigt__p_wxCursor, | |
47302 | _swigt__p_wxObject, | |
d55e5bfc | 47303 | _swigt__p_wxInputStream, |
093d3ff1 RD |
47304 | _swigt__p_wxOutputStream, |
47305 | _swigt__p_wxPyInputStream, | |
d55e5bfc RD |
47306 | _swigt__p_wxDateTime, |
47307 | _swigt__p_wxKeyEvent, | |
47308 | _swigt__p_wxNavigationKeyEvent, | |
47309 | _swigt__p_wxWindowDestroyEvent, | |
093d3ff1 | 47310 | _swigt__p_unsigned_long, |
d55e5bfc RD |
47311 | _swigt__p_wxWindow, |
47312 | _swigt__p_wxMenuBar, | |
47313 | _swigt__p_wxFileSystem, | |
47314 | _swigt__p_wxBitmap, | |
093d3ff1 RD |
47315 | _swigt__unsigned_int, |
47316 | _swigt__p_unsigned_int, | |
d55e5bfc RD |
47317 | _swigt__p_wxMenuEvent, |
47318 | _swigt__p_wxContextMenuEvent, | |
47319 | _swigt__p_unsigned_char, | |
d55e5bfc RD |
47320 | _swigt__p_wxEraseEvent, |
47321 | _swigt__p_wxMouseEvent, | |
093d3ff1 | 47322 | _swigt__p_wxCloseEvent, |
d55e5bfc RD |
47323 | _swigt__p_wxPyApp, |
47324 | _swigt__p_wxCommandEvent, | |
47325 | _swigt__p_wxPyCommandEvent, | |
47326 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 47327 | _swigt__p_wxQuantize, |
d55e5bfc | 47328 | _swigt__p_wxFocusEvent, |
ea939623 | 47329 | _swigt__p_wxChildFocusEvent, |
d55e5bfc RD |
47330 | _swigt__p_wxDropFilesEvent, |
47331 | _swigt__p_wxControlWithItems, | |
47332 | _swigt__p_wxColour, | |
47333 | _swigt__p_wxValidator, | |
47334 | _swigt__p_wxPyValidator, | |
47335 | 0 | |
47336 | }; | |
47337 | ||
47338 | ||
47339 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
47340 | ||
47341 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 47342 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
47343 | |
47344 | #ifdef __cplusplus | |
47345 | } | |
47346 | #endif | |
47347 | ||
093d3ff1 RD |
47348 | |
47349 | #ifdef __cplusplus | |
47350 | extern "C" { | |
47351 | #endif | |
47352 | ||
47353 | /* Python-specific SWIG API */ | |
47354 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
47355 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
47356 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
47357 | ||
47358 | /* ----------------------------------------------------------------------------- | |
47359 | * global variable support code. | |
47360 | * ----------------------------------------------------------------------------- */ | |
47361 | ||
47362 | typedef struct swig_globalvar { | |
47363 | char *name; /* Name of global variable */ | |
47364 | PyObject *(*get_attr)(); /* Return the current value */ | |
47365 | int (*set_attr)(PyObject *); /* Set the value */ | |
47366 | struct swig_globalvar *next; | |
47367 | } swig_globalvar; | |
47368 | ||
47369 | typedef struct swig_varlinkobject { | |
47370 | PyObject_HEAD | |
47371 | swig_globalvar *vars; | |
47372 | } swig_varlinkobject; | |
47373 | ||
47374 | static PyObject * | |
47375 | swig_varlink_repr(swig_varlinkobject *v) { | |
47376 | v = v; | |
47377 | return PyString_FromString("<Swig global variables>"); | |
47378 | } | |
47379 | ||
47380 | static int | |
47381 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
47382 | swig_globalvar *var; | |
47383 | flags = flags; | |
47384 | fprintf(fp,"Swig global variables { "); | |
47385 | for (var = v->vars; var; var=var->next) { | |
47386 | fprintf(fp,"%s", var->name); | |
47387 | if (var->next) fprintf(fp,", "); | |
47388 | } | |
47389 | fprintf(fp," }\n"); | |
47390 | return 0; | |
47391 | } | |
47392 | ||
47393 | static PyObject * | |
47394 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
47395 | swig_globalvar *var = v->vars; | |
47396 | while (var) { | |
47397 | if (strcmp(var->name,n) == 0) { | |
47398 | return (*var->get_attr)(); | |
47399 | } | |
47400 | var = var->next; | |
47401 | } | |
47402 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
47403 | return NULL; | |
47404 | } | |
47405 | ||
47406 | static int | |
47407 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
47408 | swig_globalvar *var = v->vars; | |
47409 | while (var) { | |
47410 | if (strcmp(var->name,n) == 0) { | |
47411 | return (*var->set_attr)(p); | |
47412 | } | |
47413 | var = var->next; | |
47414 | } | |
47415 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
47416 | return 1; | |
47417 | } | |
47418 | ||
47419 | static PyTypeObject varlinktype = { | |
47420 | PyObject_HEAD_INIT(0) | |
47421 | 0, /* Number of items in variable part (ob_size) */ | |
47422 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
47423 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
47424 | 0, /* Itemsize (tp_itemsize) */ | |
47425 | 0, /* Deallocator (tp_dealloc) */ | |
47426 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
47427 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
47428 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
47429 | 0, /* tp_compare */ | |
47430 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
47431 | 0, /* tp_as_number */ | |
47432 | 0, /* tp_as_sequence */ | |
47433 | 0, /* tp_as_mapping */ | |
47434 | 0, /* tp_hash */ | |
47435 | 0, /* tp_call */ | |
47436 | 0, /* tp_str */ | |
47437 | 0, /* tp_getattro */ | |
47438 | 0, /* tp_setattro */ | |
47439 | 0, /* tp_as_buffer */ | |
47440 | 0, /* tp_flags */ | |
47441 | 0, /* tp_doc */ | |
47442 | #if PY_VERSION_HEX >= 0x02000000 | |
47443 | 0, /* tp_traverse */ | |
47444 | 0, /* tp_clear */ | |
47445 | #endif | |
47446 | #if PY_VERSION_HEX >= 0x02010000 | |
47447 | 0, /* tp_richcompare */ | |
47448 | 0, /* tp_weaklistoffset */ | |
47449 | #endif | |
47450 | #if PY_VERSION_HEX >= 0x02020000 | |
47451 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
47452 | #endif | |
47453 | #if PY_VERSION_HEX >= 0x02030000 | |
47454 | 0, /* tp_del */ | |
47455 | #endif | |
47456 | #ifdef COUNT_ALLOCS | |
47457 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
47458 | #endif | |
47459 | }; | |
47460 | ||
47461 | /* Create a variable linking object for use later */ | |
47462 | static PyObject * | |
47463 | SWIG_Python_newvarlink(void) { | |
47464 | swig_varlinkobject *result = 0; | |
47465 | result = PyMem_NEW(swig_varlinkobject,1); | |
47466 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
47467 | result->ob_type = &varlinktype; | |
47468 | result->vars = 0; | |
47469 | result->ob_refcnt = 0; | |
47470 | Py_XINCREF((PyObject *) result); | |
47471 | return ((PyObject*) result); | |
47472 | } | |
47473 | ||
47474 | static void | |
47475 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
47476 | swig_varlinkobject *v; | |
47477 | swig_globalvar *gv; | |
47478 | v= (swig_varlinkobject *) p; | |
47479 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
47480 | gv->name = (char *) malloc(strlen(name)+1); | |
47481 | strcpy(gv->name,name); | |
47482 | gv->get_attr = get_attr; | |
47483 | gv->set_attr = set_attr; | |
47484 | gv->next = v->vars; | |
47485 | v->vars = gv; | |
47486 | } | |
47487 | ||
47488 | /* ----------------------------------------------------------------------------- | |
47489 | * constants/methods manipulation | |
47490 | * ----------------------------------------------------------------------------- */ | |
47491 | ||
47492 | /* Install Constants */ | |
47493 | static void | |
47494 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
47495 | PyObject *obj = 0; | |
47496 | size_t i; | |
47497 | for (i = 0; constants[i].type; i++) { | |
47498 | switch(constants[i].type) { | |
47499 | case SWIG_PY_INT: | |
47500 | obj = PyInt_FromLong(constants[i].lvalue); | |
47501 | break; | |
47502 | case SWIG_PY_FLOAT: | |
47503 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
47504 | break; | |
47505 | case SWIG_PY_STRING: | |
47506 | if (constants[i].pvalue) { | |
47507 | obj = PyString_FromString((char *) constants[i].pvalue); | |
47508 | } else { | |
47509 | Py_INCREF(Py_None); | |
47510 | obj = Py_None; | |
47511 | } | |
47512 | break; | |
47513 | case SWIG_PY_POINTER: | |
47514 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
47515 | break; | |
47516 | case SWIG_PY_BINARY: | |
47517 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
47518 | break; | |
47519 | default: | |
47520 | obj = 0; | |
47521 | break; | |
47522 | } | |
47523 | if (obj) { | |
47524 | PyDict_SetItemString(d,constants[i].name,obj); | |
47525 | Py_DECREF(obj); | |
47526 | } | |
47527 | } | |
47528 | } | |
47529 | ||
47530 | /* -----------------------------------------------------------------------------*/ | |
47531 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
47532 | /* -----------------------------------------------------------------------------*/ | |
47533 | ||
47534 | static void | |
47535 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
47536 | swig_const_info *const_table, | |
47537 | swig_type_info **types, | |
47538 | swig_type_info **types_initial) { | |
47539 | size_t i; | |
47540 | for (i = 0; methods[i].ml_name; ++i) { | |
47541 | char *c = methods[i].ml_doc; | |
47542 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
47543 | int j; | |
47544 | swig_const_info *ci = 0; | |
47545 | char *name = c + 10; | |
47546 | for (j = 0; const_table[j].type; j++) { | |
47547 | if (strncmp(const_table[j].name, name, | |
47548 | strlen(const_table[j].name)) == 0) { | |
47549 | ci = &(const_table[j]); | |
47550 | break; | |
47551 | } | |
47552 | } | |
47553 | if (ci) { | |
47554 | size_t shift = (ci->ptype) - types; | |
47555 | swig_type_info *ty = types_initial[shift]; | |
47556 | size_t ldoc = (c - methods[i].ml_doc); | |
47557 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
47558 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
47559 | char *buff = ndoc; | |
47560 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
47561 | strncpy(buff, methods[i].ml_doc, ldoc); | |
47562 | buff += ldoc; | |
47563 | strncpy(buff, "swig_ptr: ", 10); | |
47564 | buff += 10; | |
47565 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
47566 | methods[i].ml_doc = ndoc; | |
47567 | } | |
47568 | } | |
47569 | } | |
47570 | } | |
47571 | ||
47572 | /* -----------------------------------------------------------------------------* | |
47573 | * Initialize type list | |
47574 | * -----------------------------------------------------------------------------*/ | |
47575 | ||
47576 | #if PY_MAJOR_VERSION < 2 | |
47577 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
47578 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
47579 | static int | |
47580 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
47581 | { | |
47582 | PyObject *dict; | |
47583 | if (!PyModule_Check(m)) { | |
47584 | PyErr_SetString(PyExc_TypeError, | |
47585 | "PyModule_AddObject() needs module as first arg"); | |
47586 | return -1; | |
47587 | } | |
47588 | if (!o) { | |
47589 | PyErr_SetString(PyExc_TypeError, | |
47590 | "PyModule_AddObject() needs non-NULL value"); | |
47591 | return -1; | |
47592 | } | |
47593 | ||
47594 | dict = PyModule_GetDict(m); | |
47595 | if (dict == NULL) { | |
47596 | /* Internal error -- modules must have a dict! */ | |
47597 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
47598 | PyModule_GetName(m)); | |
47599 | return -1; | |
47600 | } | |
47601 | if (PyDict_SetItemString(dict, name, o)) | |
47602 | return -1; | |
47603 | Py_DECREF(o); | |
47604 | return 0; | |
47605 | } | |
47606 | #endif | |
47607 | ||
47608 | static swig_type_info ** | |
47609 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
47610 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
47611 | { | |
47612 | NULL, NULL, 0, NULL | |
47613 | } | |
47614 | };/* Sentinel */ | |
47615 | ||
47616 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
47617 | swig_empty_runtime_method_table); | |
47618 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
47619 | if (pointer && module) { | |
47620 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
47621 | } | |
47622 | return type_list_handle; | |
47623 | } | |
47624 | ||
47625 | static swig_type_info ** | |
47626 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
47627 | swig_type_info **type_pointer; | |
47628 | ||
47629 | /* first check if module already created */ | |
47630 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
47631 | if (type_pointer) { | |
47632 | return type_pointer; | |
47633 | } else { | |
47634 | /* create a new module and variable */ | |
47635 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
47636 | } | |
47637 | } | |
47638 | ||
47639 | #ifdef __cplusplus | |
47640 | } | |
47641 | #endif | |
47642 | ||
47643 | /* -----------------------------------------------------------------------------* | |
47644 | * Partial Init method | |
47645 | * -----------------------------------------------------------------------------*/ | |
47646 | ||
47647 | #ifdef SWIG_LINK_RUNTIME | |
47648 | #ifdef __cplusplus | |
47649 | extern "C" | |
47650 | #endif | |
47651 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
47652 | #endif | |
47653 | ||
d55e5bfc RD |
47654 | #ifdef __cplusplus |
47655 | extern "C" | |
47656 | #endif | |
47657 | SWIGEXPORT(void) SWIG_init(void) { | |
47658 | static PyObject *SWIG_globals = 0; | |
47659 | static int typeinit = 0; | |
47660 | PyObject *m, *d; | |
47661 | int i; | |
47662 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
47663 | |
47664 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
47665 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
47666 | ||
d55e5bfc RD |
47667 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
47668 | d = PyModule_GetDict(m); | |
47669 | ||
47670 | if (!typeinit) { | |
093d3ff1 RD |
47671 | #ifdef SWIG_LINK_RUNTIME |
47672 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
47673 | #else | |
47674 | # ifndef SWIG_STATIC_RUNTIME | |
47675 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
47676 | # endif | |
47677 | #endif | |
d55e5bfc RD |
47678 | for (i = 0; swig_types_initial[i]; i++) { |
47679 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
47680 | } | |
47681 | typeinit = 1; | |
47682 | } | |
47683 | SWIG_InstallConstants(d,swig_const_table); | |
47684 | ||
47685 | ||
47686 | #ifndef wxPyUSE_EXPORT | |
47687 | // Make our API structure a CObject so other modules can import it | |
47688 | // from this module. | |
47689 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
47690 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
47691 | Py_XDECREF(cobj); | |
47692 | #endif | |
47693 | ||
093d3ff1 RD |
47694 | { |
47695 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)(wxNOT_FOUND))); | |
47696 | } | |
47697 | { | |
47698 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)(wxVSCROLL))); | |
47699 | } | |
47700 | { | |
47701 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)(wxHSCROLL))); | |
47702 | } | |
47703 | { | |
47704 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)(wxCAPTION))); | |
47705 | } | |
47706 | { | |
47707 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)(wxDOUBLE_BORDER))); | |
47708 | } | |
47709 | { | |
47710 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)(wxSUNKEN_BORDER))); | |
47711 | } | |
47712 | { | |
47713 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)(wxRAISED_BORDER))); | |
47714 | } | |
47715 | { | |
47716 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)(wxBORDER))); | |
47717 | } | |
47718 | { | |
47719 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)(wxSIMPLE_BORDER))); | |
47720 | } | |
47721 | { | |
47722 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)(wxSTATIC_BORDER))); | |
47723 | } | |
47724 | { | |
47725 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)(wxTRANSPARENT_WINDOW))); | |
47726 | } | |
47727 | { | |
47728 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)(wxNO_BORDER))); | |
47729 | } | |
47730 | { | |
47731 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)(wxTAB_TRAVERSAL))); | |
47732 | } | |
47733 | { | |
47734 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)(wxWANTS_CHARS))); | |
47735 | } | |
47736 | { | |
47737 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)(wxPOPUP_WINDOW))); | |
47738 | } | |
47739 | { | |
47740 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)(wxCENTER_FRAME))); | |
47741 | } | |
47742 | { | |
47743 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)(wxCENTRE_ON_SCREEN))); | |
47744 | } | |
47745 | { | |
47746 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)(wxCENTER_ON_SCREEN))); | |
47747 | } | |
093d3ff1 RD |
47748 | { |
47749 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)(wxCLIP_CHILDREN))); | |
47750 | } | |
47751 | { | |
47752 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)(wxCLIP_SIBLINGS))); | |
47753 | } | |
47754 | { | |
47755 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)(wxALWAYS_SHOW_SB))); | |
47756 | } | |
47757 | { | |
47758 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)(wxRETAINED))); | |
47759 | } | |
47760 | { | |
47761 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)(wxBACKINGSTORE))); | |
47762 | } | |
47763 | { | |
47764 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)(wxCOLOURED))); | |
47765 | } | |
47766 | { | |
47767 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)(wxFIXED_LENGTH))); | |
47768 | } | |
47769 | { | |
47770 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)(wxLB_NEEDED_SB))); | |
47771 | } | |
47772 | { | |
47773 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)(wxLB_ALWAYS_SB))); | |
47774 | } | |
47775 | { | |
47776 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)(wxLB_SORT))); | |
47777 | } | |
47778 | { | |
47779 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)(wxLB_SINGLE))); | |
47780 | } | |
47781 | { | |
47782 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)(wxLB_MULTIPLE))); | |
47783 | } | |
47784 | { | |
47785 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)(wxLB_EXTENDED))); | |
47786 | } | |
47787 | { | |
47788 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)(wxLB_OWNERDRAW))); | |
47789 | } | |
47790 | { | |
47791 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)(wxLB_HSCROLL))); | |
47792 | } | |
47793 | { | |
47794 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)(wxPROCESS_ENTER))); | |
47795 | } | |
47796 | { | |
47797 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)(wxPASSWORD))); | |
47798 | } | |
47799 | { | |
47800 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)(wxCB_SIMPLE))); | |
47801 | } | |
47802 | { | |
47803 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)(wxCB_DROPDOWN))); | |
47804 | } | |
47805 | { | |
47806 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)(wxCB_SORT))); | |
47807 | } | |
47808 | { | |
47809 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)(wxCB_READONLY))); | |
47810 | } | |
47811 | { | |
47812 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)(wxRA_HORIZONTAL))); | |
47813 | } | |
47814 | { | |
47815 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)(wxRA_VERTICAL))); | |
47816 | } | |
47817 | { | |
47818 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)(wxRA_SPECIFY_ROWS))); | |
47819 | } | |
47820 | { | |
47821 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)(wxRA_SPECIFY_COLS))); | |
47822 | } | |
47823 | { | |
fef4c27a | 47824 | PyDict_SetItemString(d,"RA_USE_CHECKBOX", SWIG_From_int((int)(wxRA_USE_CHECKBOX))); |
093d3ff1 RD |
47825 | } |
47826 | { | |
fef4c27a | 47827 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)(wxRB_GROUP))); |
093d3ff1 RD |
47828 | } |
47829 | { | |
fef4c27a | 47830 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)(wxRB_SINGLE))); |
093d3ff1 RD |
47831 | } |
47832 | { | |
47833 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)(wxSB_HORIZONTAL))); | |
47834 | } | |
47835 | { | |
47836 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)(wxSB_VERTICAL))); | |
47837 | } | |
fef4c27a RD |
47838 | { |
47839 | PyDict_SetItemString(d,"RB_USE_CHECKBOX", SWIG_From_int((int)(wxRB_USE_CHECKBOX))); | |
47840 | } | |
093d3ff1 RD |
47841 | { |
47842 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)(wxST_SIZEGRIP))); | |
47843 | } | |
47844 | { | |
47845 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)(wxST_NO_AUTORESIZE))); | |
47846 | } | |
47847 | { | |
47848 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)(wxFLOOD_SURFACE))); | |
47849 | } | |
47850 | { | |
47851 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)(wxFLOOD_BORDER))); | |
47852 | } | |
47853 | { | |
47854 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)(wxODDEVEN_RULE))); | |
47855 | } | |
47856 | { | |
47857 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)(wxWINDING_RULE))); | |
47858 | } | |
47859 | { | |
47860 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)(wxTOOL_TOP))); | |
47861 | } | |
47862 | { | |
47863 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)(wxTOOL_BOTTOM))); | |
47864 | } | |
47865 | { | |
47866 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)(wxTOOL_LEFT))); | |
47867 | } | |
47868 | { | |
47869 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)(wxTOOL_RIGHT))); | |
47870 | } | |
47871 | { | |
47872 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)(wxOK))); | |
47873 | } | |
47874 | { | |
47875 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)(wxYES_NO))); | |
47876 | } | |
47877 | { | |
47878 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)(wxCANCEL))); | |
47879 | } | |
47880 | { | |
47881 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)(wxYES))); | |
47882 | } | |
47883 | { | |
47884 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)(wxNO))); | |
47885 | } | |
47886 | { | |
47887 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)(wxNO_DEFAULT))); | |
47888 | } | |
47889 | { | |
47890 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)(wxYES_DEFAULT))); | |
47891 | } | |
47892 | { | |
47893 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)(wxICON_EXCLAMATION))); | |
47894 | } | |
47895 | { | |
47896 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)(wxICON_HAND))); | |
47897 | } | |
47898 | { | |
47899 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)(wxICON_QUESTION))); | |
47900 | } | |
47901 | { | |
47902 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)(wxICON_INFORMATION))); | |
47903 | } | |
47904 | { | |
47905 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)(wxICON_STOP))); | |
47906 | } | |
47907 | { | |
47908 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)(wxICON_ASTERISK))); | |
47909 | } | |
47910 | { | |
47911 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)(wxICON_MASK))); | |
47912 | } | |
47913 | { | |
47914 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)(wxICON_WARNING))); | |
47915 | } | |
47916 | { | |
47917 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)(wxICON_ERROR))); | |
47918 | } | |
47919 | { | |
47920 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)(wxFORWARD))); | |
47921 | } | |
47922 | { | |
47923 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)(wxBACKWARD))); | |
47924 | } | |
47925 | { | |
47926 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)(wxRESET))); | |
47927 | } | |
47928 | { | |
47929 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)(wxHELP))); | |
47930 | } | |
47931 | { | |
47932 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)(wxMORE))); | |
47933 | } | |
47934 | { | |
47935 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)(wxSETUP))); | |
47936 | } | |
47937 | { | |
47938 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)(wxSIZE_AUTO_WIDTH))); | |
47939 | } | |
47940 | { | |
47941 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)(wxSIZE_AUTO_HEIGHT))); | |
47942 | } | |
47943 | { | |
47944 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)(wxSIZE_AUTO))); | |
47945 | } | |
47946 | { | |
47947 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)(wxSIZE_USE_EXISTING))); | |
47948 | } | |
47949 | { | |
47950 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)(wxSIZE_ALLOW_MINUS_ONE))); | |
47951 | } | |
47952 | { | |
47953 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)(wxPORTRAIT))); | |
47954 | } | |
47955 | { | |
47956 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)(wxLANDSCAPE))); | |
47957 | } | |
47958 | { | |
47959 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)(wxPRINT_QUALITY_HIGH))); | |
47960 | } | |
47961 | { | |
47962 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)(wxPRINT_QUALITY_MEDIUM))); | |
47963 | } | |
47964 | { | |
47965 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)(wxPRINT_QUALITY_LOW))); | |
47966 | } | |
47967 | { | |
47968 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)(wxPRINT_QUALITY_DRAFT))); | |
47969 | } | |
47970 | { | |
47971 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)(wxID_ANY))); | |
47972 | } | |
47973 | { | |
47974 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)(wxID_SEPARATOR))); | |
47975 | } | |
47976 | { | |
47977 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)(wxID_LOWEST))); | |
47978 | } | |
47979 | { | |
47980 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)(wxID_OPEN))); | |
47981 | } | |
47982 | { | |
47983 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)(wxID_CLOSE))); | |
47984 | } | |
47985 | { | |
47986 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)(wxID_NEW))); | |
47987 | } | |
47988 | { | |
47989 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)(wxID_SAVE))); | |
47990 | } | |
47991 | { | |
47992 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)(wxID_SAVEAS))); | |
47993 | } | |
47994 | { | |
47995 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)(wxID_REVERT))); | |
47996 | } | |
47997 | { | |
47998 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)(wxID_EXIT))); | |
47999 | } | |
48000 | { | |
48001 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)(wxID_UNDO))); | |
48002 | } | |
48003 | { | |
48004 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)(wxID_REDO))); | |
48005 | } | |
48006 | { | |
48007 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)(wxID_HELP))); | |
48008 | } | |
48009 | { | |
48010 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)(wxID_PRINT))); | |
48011 | } | |
48012 | { | |
48013 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)(wxID_PRINT_SETUP))); | |
48014 | } | |
48015 | { | |
48016 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)(wxID_PREVIEW))); | |
48017 | } | |
48018 | { | |
48019 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)(wxID_ABOUT))); | |
48020 | } | |
48021 | { | |
48022 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)(wxID_HELP_CONTENTS))); | |
48023 | } | |
48024 | { | |
48025 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)(wxID_HELP_COMMANDS))); | |
48026 | } | |
48027 | { | |
48028 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)(wxID_HELP_PROCEDURES))); | |
48029 | } | |
48030 | { | |
48031 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)(wxID_HELP_CONTEXT))); | |
48032 | } | |
48033 | { | |
48034 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)(wxID_CLOSE_ALL))); | |
48035 | } | |
48036 | { | |
48037 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)(wxID_PREFERENCES))); | |
48038 | } | |
48039 | { | |
48040 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)(wxID_CUT))); | |
48041 | } | |
48042 | { | |
48043 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)(wxID_COPY))); | |
48044 | } | |
48045 | { | |
48046 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)(wxID_PASTE))); | |
48047 | } | |
48048 | { | |
48049 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)(wxID_CLEAR))); | |
48050 | } | |
48051 | { | |
48052 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)(wxID_FIND))); | |
48053 | } | |
48054 | { | |
48055 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)(wxID_DUPLICATE))); | |
48056 | } | |
48057 | { | |
48058 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)(wxID_SELECTALL))); | |
48059 | } | |
48060 | { | |
48061 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)(wxID_DELETE))); | |
48062 | } | |
48063 | { | |
48064 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)(wxID_REPLACE))); | |
48065 | } | |
48066 | { | |
48067 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)(wxID_REPLACE_ALL))); | |
48068 | } | |
48069 | { | |
48070 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)(wxID_PROPERTIES))); | |
48071 | } | |
48072 | { | |
48073 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)(wxID_VIEW_DETAILS))); | |
48074 | } | |
48075 | { | |
48076 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)(wxID_VIEW_LARGEICONS))); | |
48077 | } | |
48078 | { | |
48079 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)(wxID_VIEW_SMALLICONS))); | |
48080 | } | |
48081 | { | |
48082 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)(wxID_VIEW_LIST))); | |
48083 | } | |
48084 | { | |
48085 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)(wxID_VIEW_SORTDATE))); | |
48086 | } | |
48087 | { | |
48088 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)(wxID_VIEW_SORTNAME))); | |
48089 | } | |
48090 | { | |
48091 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)(wxID_VIEW_SORTSIZE))); | |
48092 | } | |
48093 | { | |
48094 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)(wxID_VIEW_SORTTYPE))); | |
48095 | } | |
48096 | { | |
48097 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)(wxID_FILE1))); | |
48098 | } | |
48099 | { | |
48100 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)(wxID_FILE2))); | |
48101 | } | |
48102 | { | |
48103 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)(wxID_FILE3))); | |
48104 | } | |
48105 | { | |
48106 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)(wxID_FILE4))); | |
48107 | } | |
48108 | { | |
48109 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)(wxID_FILE5))); | |
48110 | } | |
48111 | { | |
48112 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)(wxID_FILE6))); | |
48113 | } | |
48114 | { | |
48115 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)(wxID_FILE7))); | |
48116 | } | |
48117 | { | |
48118 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)(wxID_FILE8))); | |
48119 | } | |
48120 | { | |
48121 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)(wxID_FILE9))); | |
48122 | } | |
48123 | { | |
48124 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)(wxID_OK))); | |
48125 | } | |
48126 | { | |
48127 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)(wxID_CANCEL))); | |
48128 | } | |
48129 | { | |
48130 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)(wxID_APPLY))); | |
48131 | } | |
48132 | { | |
48133 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)(wxID_YES))); | |
48134 | } | |
48135 | { | |
48136 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)(wxID_NO))); | |
48137 | } | |
48138 | { | |
48139 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)(wxID_STATIC))); | |
48140 | } | |
48141 | { | |
48142 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)(wxID_FORWARD))); | |
48143 | } | |
48144 | { | |
48145 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)(wxID_BACKWARD))); | |
48146 | } | |
48147 | { | |
48148 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)(wxID_DEFAULT))); | |
48149 | } | |
48150 | { | |
48151 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)(wxID_MORE))); | |
48152 | } | |
48153 | { | |
48154 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)(wxID_SETUP))); | |
48155 | } | |
48156 | { | |
48157 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)(wxID_RESET))); | |
48158 | } | |
48159 | { | |
48160 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)(wxID_CONTEXT_HELP))); | |
48161 | } | |
48162 | { | |
48163 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)(wxID_YESTOALL))); | |
48164 | } | |
48165 | { | |
48166 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)(wxID_NOTOALL))); | |
48167 | } | |
48168 | { | |
48169 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)(wxID_ABORT))); | |
48170 | } | |
48171 | { | |
48172 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)(wxID_RETRY))); | |
48173 | } | |
48174 | { | |
48175 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)(wxID_IGNORE))); | |
48176 | } | |
48177 | { | |
48178 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)(wxID_ADD))); | |
48179 | } | |
48180 | { | |
48181 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)(wxID_REMOVE))); | |
48182 | } | |
48183 | { | |
48184 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)(wxID_UP))); | |
48185 | } | |
48186 | { | |
48187 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)(wxID_DOWN))); | |
48188 | } | |
48189 | { | |
48190 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)(wxID_HOME))); | |
48191 | } | |
48192 | { | |
48193 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)(wxID_REFRESH))); | |
48194 | } | |
48195 | { | |
48196 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)(wxID_STOP))); | |
48197 | } | |
48198 | { | |
48199 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)(wxID_INDEX))); | |
48200 | } | |
48201 | { | |
48202 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)(wxID_BOLD))); | |
48203 | } | |
48204 | { | |
48205 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)(wxID_ITALIC))); | |
48206 | } | |
48207 | { | |
48208 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)(wxID_JUSTIFY_CENTER))); | |
48209 | } | |
48210 | { | |
48211 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)(wxID_JUSTIFY_FILL))); | |
48212 | } | |
48213 | { | |
48214 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)(wxID_JUSTIFY_RIGHT))); | |
48215 | } | |
48216 | { | |
48217 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)(wxID_JUSTIFY_LEFT))); | |
48218 | } | |
48219 | { | |
48220 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)(wxID_UNDERLINE))); | |
48221 | } | |
48222 | { | |
48223 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)(wxID_INDENT))); | |
48224 | } | |
48225 | { | |
48226 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)(wxID_UNINDENT))); | |
48227 | } | |
48228 | { | |
48229 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)(wxID_ZOOM_100))); | |
48230 | } | |
48231 | { | |
48232 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)(wxID_ZOOM_FIT))); | |
48233 | } | |
48234 | { | |
48235 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)(wxID_ZOOM_IN))); | |
48236 | } | |
48237 | { | |
48238 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)(wxID_ZOOM_OUT))); | |
48239 | } | |
48240 | { | |
48241 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)(wxID_UNDELETE))); | |
48242 | } | |
48243 | { | |
48244 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)(wxID_REVERT_TO_SAVED))); | |
48245 | } | |
48246 | { | |
48247 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)(wxID_HIGHEST))); | |
48248 | } | |
48249 | { | |
48250 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)(wxOPEN))); | |
48251 | } | |
48252 | { | |
48253 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)(wxSAVE))); | |
48254 | } | |
48255 | { | |
48256 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)(wxHIDE_READONLY))); | |
48257 | } | |
48258 | { | |
48259 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)(wxOVERWRITE_PROMPT))); | |
48260 | } | |
48261 | { | |
48262 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)(wxFILE_MUST_EXIST))); | |
48263 | } | |
48264 | { | |
48265 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)(wxMULTIPLE))); | |
48266 | } | |
48267 | { | |
48268 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)(wxCHANGE_DIR))); | |
48269 | } | |
48270 | { | |
48271 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)(wxACCEL_ALT))); | |
48272 | } | |
48273 | { | |
48274 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)(wxACCEL_CTRL))); | |
48275 | } | |
48276 | { | |
48277 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)(wxACCEL_SHIFT))); | |
48278 | } | |
48279 | { | |
48280 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)(wxACCEL_NORMAL))); | |
48281 | } | |
48282 | { | |
48283 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)(wxPD_AUTO_HIDE))); | |
48284 | } | |
48285 | { | |
48286 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)(wxPD_APP_MODAL))); | |
48287 | } | |
48288 | { | |
48289 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)(wxPD_CAN_ABORT))); | |
48290 | } | |
48291 | { | |
48292 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)(wxPD_ELAPSED_TIME))); | |
48293 | } | |
48294 | { | |
48295 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)(wxPD_ESTIMATED_TIME))); | |
48296 | } | |
48297 | { | |
48298 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)(wxPD_REMAINING_TIME))); | |
48299 | } | |
62d32a5f RD |
48300 | { |
48301 | PyDict_SetItemString(d,"PD_SMOOTH", SWIG_From_int((int)(wxPD_SMOOTH))); | |
48302 | } | |
48303 | { | |
48304 | PyDict_SetItemString(d,"PD_CAN_SKIP", SWIG_From_int((int)(wxPD_CAN_SKIP))); | |
48305 | } | |
093d3ff1 RD |
48306 | { |
48307 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)(wxDD_NEW_DIR_BUTTON))); | |
48308 | } | |
48309 | { | |
48310 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)(wxDD_DEFAULT_STYLE))); | |
48311 | } | |
48312 | { | |
48313 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)(wxMENU_TEAROFF))); | |
48314 | } | |
48315 | { | |
48316 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)(wxMB_DOCKABLE))); | |
48317 | } | |
48318 | { | |
48319 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)(wxNO_FULL_REPAINT_ON_RESIZE))); | |
48320 | } | |
48321 | { | |
48322 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)(wxFULL_REPAINT_ON_RESIZE))); | |
48323 | } | |
48324 | { | |
48325 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)(wxLI_HORIZONTAL))); | |
48326 | } | |
48327 | { | |
48328 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)(wxLI_VERTICAL))); | |
48329 | } | |
48330 | { | |
48331 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)(wxWS_EX_VALIDATE_RECURSIVELY))); | |
48332 | } | |
48333 | { | |
48334 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)(wxWS_EX_BLOCK_EVENTS))); | |
48335 | } | |
48336 | { | |
48337 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)(wxWS_EX_TRANSIENT))); | |
48338 | } | |
48339 | { | |
48340 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)(wxWS_EX_THEMED_BACKGROUND))); | |
48341 | } | |
48342 | { | |
48343 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)(wxWS_EX_PROCESS_IDLE))); | |
48344 | } | |
48345 | { | |
48346 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)(wxWS_EX_PROCESS_UI_UPDATES))); | |
48347 | } | |
48348 | { | |
48349 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)(wxMM_TEXT))); | |
48350 | } | |
48351 | { | |
48352 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)(wxMM_LOMETRIC))); | |
48353 | } | |
48354 | { | |
48355 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)(wxMM_HIMETRIC))); | |
48356 | } | |
48357 | { | |
48358 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)(wxMM_LOENGLISH))); | |
48359 | } | |
48360 | { | |
48361 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)(wxMM_HIENGLISH))); | |
48362 | } | |
48363 | { | |
48364 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)(wxMM_TWIPS))); | |
48365 | } | |
48366 | { | |
48367 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)(wxMM_ISOTROPIC))); | |
48368 | } | |
48369 | { | |
48370 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)(wxMM_ANISOTROPIC))); | |
48371 | } | |
48372 | { | |
48373 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)(wxMM_POINTS))); | |
48374 | } | |
48375 | { | |
48376 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)(wxMM_METRIC))); | |
48377 | } | |
48378 | { | |
48379 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)(wxCENTRE))); | |
48380 | } | |
48381 | { | |
48382 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)(wxCENTER))); | |
48383 | } | |
48384 | { | |
48385 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)(wxHORIZONTAL))); | |
48386 | } | |
48387 | { | |
48388 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)(wxVERTICAL))); | |
48389 | } | |
48390 | { | |
48391 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)(wxBOTH))); | |
48392 | } | |
48393 | { | |
48394 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)(wxLEFT))); | |
48395 | } | |
48396 | { | |
48397 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)(wxRIGHT))); | |
48398 | } | |
48399 | { | |
48400 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)(wxUP))); | |
48401 | } | |
48402 | { | |
48403 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)(wxDOWN))); | |
48404 | } | |
48405 | { | |
48406 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)(wxTOP))); | |
48407 | } | |
48408 | { | |
48409 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)(wxBOTTOM))); | |
48410 | } | |
48411 | { | |
48412 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)(wxNORTH))); | |
48413 | } | |
48414 | { | |
48415 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)(wxSOUTH))); | |
48416 | } | |
48417 | { | |
48418 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)(wxWEST))); | |
48419 | } | |
48420 | { | |
48421 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)(wxEAST))); | |
48422 | } | |
48423 | { | |
48424 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)(wxALL))); | |
48425 | } | |
48426 | { | |
48427 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)(wxALIGN_NOT))); | |
48428 | } | |
48429 | { | |
48430 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)(wxALIGN_CENTER_HORIZONTAL))); | |
48431 | } | |
48432 | { | |
48433 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)(wxALIGN_CENTRE_HORIZONTAL))); | |
48434 | } | |
48435 | { | |
48436 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)(wxALIGN_LEFT))); | |
48437 | } | |
48438 | { | |
48439 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)(wxALIGN_TOP))); | |
48440 | } | |
48441 | { | |
48442 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)(wxALIGN_RIGHT))); | |
48443 | } | |
48444 | { | |
48445 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)(wxALIGN_BOTTOM))); | |
48446 | } | |
48447 | { | |
48448 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)(wxALIGN_CENTER_VERTICAL))); | |
48449 | } | |
48450 | { | |
48451 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)(wxALIGN_CENTRE_VERTICAL))); | |
48452 | } | |
48453 | { | |
48454 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)(wxALIGN_CENTER))); | |
48455 | } | |
48456 | { | |
48457 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)(wxALIGN_CENTRE))); | |
48458 | } | |
48459 | { | |
48460 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)(wxALIGN_MASK))); | |
48461 | } | |
48462 | { | |
48463 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)(wxSTRETCH_NOT))); | |
48464 | } | |
48465 | { | |
48466 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)(wxSHRINK))); | |
48467 | } | |
48468 | { | |
48469 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)(wxGROW))); | |
48470 | } | |
48471 | { | |
48472 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)(wxEXPAND))); | |
48473 | } | |
48474 | { | |
48475 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)(wxSHAPED))); | |
48476 | } | |
48477 | { | |
48478 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)(wxFIXED_MINSIZE))); | |
48479 | } | |
48480 | { | |
48481 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)(wxTILE))); | |
48482 | } | |
48483 | { | |
48484 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)(wxADJUST_MINSIZE))); | |
48485 | } | |
48486 | { | |
48487 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)(wxBORDER_DEFAULT))); | |
48488 | } | |
48489 | { | |
48490 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)(wxBORDER_NONE))); | |
48491 | } | |
48492 | { | |
48493 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)(wxBORDER_STATIC))); | |
48494 | } | |
48495 | { | |
48496 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)(wxBORDER_SIMPLE))); | |
48497 | } | |
48498 | { | |
48499 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)(wxBORDER_RAISED))); | |
48500 | } | |
48501 | { | |
48502 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)(wxBORDER_SUNKEN))); | |
48503 | } | |
48504 | { | |
48505 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)(wxBORDER_DOUBLE))); | |
48506 | } | |
48507 | { | |
48508 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)(wxBORDER_MASK))); | |
48509 | } | |
48510 | { | |
48511 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)(wxBG_STYLE_SYSTEM))); | |
48512 | } | |
48513 | { | |
48514 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)(wxBG_STYLE_COLOUR))); | |
48515 | } | |
48516 | { | |
48517 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)(wxBG_STYLE_CUSTOM))); | |
48518 | } | |
48519 | { | |
48520 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)(wxDEFAULT))); | |
48521 | } | |
48522 | { | |
48523 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)(wxDECORATIVE))); | |
48524 | } | |
48525 | { | |
48526 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)(wxROMAN))); | |
48527 | } | |
48528 | { | |
48529 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)(wxSCRIPT))); | |
48530 | } | |
48531 | { | |
48532 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)(wxSWISS))); | |
48533 | } | |
48534 | { | |
48535 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)(wxMODERN))); | |
48536 | } | |
48537 | { | |
48538 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)(wxTELETYPE))); | |
48539 | } | |
48540 | { | |
48541 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)(wxVARIABLE))); | |
48542 | } | |
48543 | { | |
48544 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)(wxFIXED))); | |
48545 | } | |
48546 | { | |
48547 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)(wxNORMAL))); | |
48548 | } | |
48549 | { | |
48550 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)(wxLIGHT))); | |
48551 | } | |
48552 | { | |
48553 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)(wxBOLD))); | |
48554 | } | |
48555 | { | |
48556 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)(wxITALIC))); | |
48557 | } | |
48558 | { | |
48559 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)(wxSLANT))); | |
48560 | } | |
48561 | { | |
48562 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)(wxSOLID))); | |
48563 | } | |
48564 | { | |
48565 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)(wxDOT))); | |
48566 | } | |
48567 | { | |
48568 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)(wxLONG_DASH))); | |
48569 | } | |
48570 | { | |
48571 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)(wxSHORT_DASH))); | |
48572 | } | |
48573 | { | |
48574 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)(wxDOT_DASH))); | |
48575 | } | |
48576 | { | |
48577 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)(wxUSER_DASH))); | |
48578 | } | |
48579 | { | |
48580 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)(wxTRANSPARENT))); | |
48581 | } | |
48582 | { | |
48583 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)(wxSTIPPLE))); | |
48584 | } | |
48585 | { | |
48586 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)(wxBDIAGONAL_HATCH))); | |
48587 | } | |
48588 | { | |
48589 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)(wxCROSSDIAG_HATCH))); | |
48590 | } | |
48591 | { | |
48592 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)(wxFDIAGONAL_HATCH))); | |
48593 | } | |
48594 | { | |
48595 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)(wxCROSS_HATCH))); | |
48596 | } | |
48597 | { | |
48598 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)(wxHORIZONTAL_HATCH))); | |
48599 | } | |
48600 | { | |
48601 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)(wxVERTICAL_HATCH))); | |
48602 | } | |
48603 | { | |
48604 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)(wxJOIN_BEVEL))); | |
48605 | } | |
48606 | { | |
48607 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)(wxJOIN_MITER))); | |
48608 | } | |
48609 | { | |
48610 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)(wxJOIN_ROUND))); | |
48611 | } | |
48612 | { | |
48613 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)(wxCAP_ROUND))); | |
48614 | } | |
48615 | { | |
48616 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)(wxCAP_PROJECTING))); | |
48617 | } | |
48618 | { | |
48619 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)(wxCAP_BUTT))); | |
48620 | } | |
48621 | { | |
48622 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)(wxCLEAR))); | |
48623 | } | |
48624 | { | |
48625 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)(wxXOR))); | |
48626 | } | |
48627 | { | |
48628 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)(wxINVERT))); | |
48629 | } | |
48630 | { | |
48631 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)(wxOR_REVERSE))); | |
48632 | } | |
48633 | { | |
48634 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)(wxAND_REVERSE))); | |
48635 | } | |
48636 | { | |
48637 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)(wxCOPY))); | |
48638 | } | |
48639 | { | |
48640 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)(wxAND))); | |
48641 | } | |
48642 | { | |
48643 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)(wxAND_INVERT))); | |
48644 | } | |
48645 | { | |
48646 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)(wxNO_OP))); | |
48647 | } | |
48648 | { | |
48649 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)(wxNOR))); | |
48650 | } | |
48651 | { | |
48652 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)(wxEQUIV))); | |
48653 | } | |
48654 | { | |
48655 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)(wxSRC_INVERT))); | |
48656 | } | |
48657 | { | |
48658 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)(wxOR_INVERT))); | |
48659 | } | |
48660 | { | |
48661 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)(wxNAND))); | |
48662 | } | |
48663 | { | |
48664 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)(wxOR))); | |
48665 | } | |
48666 | { | |
48667 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)(wxSET))); | |
48668 | } | |
48669 | { | |
48670 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)(WXK_BACK))); | |
48671 | } | |
48672 | { | |
48673 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)(WXK_TAB))); | |
48674 | } | |
48675 | { | |
48676 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)(WXK_RETURN))); | |
48677 | } | |
48678 | { | |
48679 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)(WXK_ESCAPE))); | |
48680 | } | |
48681 | { | |
48682 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)(WXK_SPACE))); | |
48683 | } | |
48684 | { | |
48685 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)(WXK_DELETE))); | |
48686 | } | |
48687 | { | |
48688 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)(WXK_START))); | |
48689 | } | |
48690 | { | |
48691 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)(WXK_LBUTTON))); | |
48692 | } | |
48693 | { | |
48694 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)(WXK_RBUTTON))); | |
48695 | } | |
48696 | { | |
48697 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)(WXK_CANCEL))); | |
48698 | } | |
48699 | { | |
48700 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)(WXK_MBUTTON))); | |
48701 | } | |
48702 | { | |
48703 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)(WXK_CLEAR))); | |
48704 | } | |
48705 | { | |
48706 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)(WXK_SHIFT))); | |
48707 | } | |
48708 | { | |
48709 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)(WXK_ALT))); | |
48710 | } | |
48711 | { | |
48712 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)(WXK_CONTROL))); | |
48713 | } | |
48714 | { | |
48715 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)(WXK_MENU))); | |
48716 | } | |
48717 | { | |
48718 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)(WXK_PAUSE))); | |
48719 | } | |
48720 | { | |
48721 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)(WXK_CAPITAL))); | |
48722 | } | |
48723 | { | |
48724 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)(WXK_PRIOR))); | |
48725 | } | |
48726 | { | |
48727 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)(WXK_NEXT))); | |
48728 | } | |
48729 | { | |
48730 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)(WXK_END))); | |
48731 | } | |
48732 | { | |
48733 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)(WXK_HOME))); | |
48734 | } | |
48735 | { | |
48736 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)(WXK_LEFT))); | |
48737 | } | |
48738 | { | |
48739 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)(WXK_UP))); | |
48740 | } | |
48741 | { | |
48742 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)(WXK_RIGHT))); | |
48743 | } | |
48744 | { | |
48745 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)(WXK_DOWN))); | |
48746 | } | |
48747 | { | |
48748 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)(WXK_SELECT))); | |
48749 | } | |
48750 | { | |
48751 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)(WXK_PRINT))); | |
48752 | } | |
48753 | { | |
48754 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)(WXK_EXECUTE))); | |
48755 | } | |
48756 | { | |
48757 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)(WXK_SNAPSHOT))); | |
48758 | } | |
48759 | { | |
48760 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)(WXK_INSERT))); | |
48761 | } | |
48762 | { | |
48763 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)(WXK_HELP))); | |
48764 | } | |
48765 | { | |
48766 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)(WXK_NUMPAD0))); | |
48767 | } | |
48768 | { | |
48769 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)(WXK_NUMPAD1))); | |
48770 | } | |
48771 | { | |
48772 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)(WXK_NUMPAD2))); | |
48773 | } | |
48774 | { | |
48775 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)(WXK_NUMPAD3))); | |
48776 | } | |
48777 | { | |
48778 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)(WXK_NUMPAD4))); | |
48779 | } | |
48780 | { | |
48781 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)(WXK_NUMPAD5))); | |
48782 | } | |
48783 | { | |
48784 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)(WXK_NUMPAD6))); | |
48785 | } | |
48786 | { | |
48787 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)(WXK_NUMPAD7))); | |
48788 | } | |
48789 | { | |
48790 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)(WXK_NUMPAD8))); | |
48791 | } | |
48792 | { | |
48793 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)(WXK_NUMPAD9))); | |
48794 | } | |
48795 | { | |
48796 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)(WXK_MULTIPLY))); | |
48797 | } | |
48798 | { | |
48799 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)(WXK_ADD))); | |
48800 | } | |
48801 | { | |
48802 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)(WXK_SEPARATOR))); | |
48803 | } | |
48804 | { | |
48805 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)(WXK_SUBTRACT))); | |
48806 | } | |
48807 | { | |
48808 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)(WXK_DECIMAL))); | |
48809 | } | |
48810 | { | |
48811 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)(WXK_DIVIDE))); | |
48812 | } | |
48813 | { | |
48814 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)(WXK_F1))); | |
48815 | } | |
48816 | { | |
48817 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)(WXK_F2))); | |
48818 | } | |
48819 | { | |
48820 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)(WXK_F3))); | |
48821 | } | |
48822 | { | |
48823 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)(WXK_F4))); | |
48824 | } | |
48825 | { | |
48826 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)(WXK_F5))); | |
48827 | } | |
48828 | { | |
48829 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)(WXK_F6))); | |
48830 | } | |
48831 | { | |
48832 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)(WXK_F7))); | |
48833 | } | |
48834 | { | |
48835 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)(WXK_F8))); | |
48836 | } | |
48837 | { | |
48838 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)(WXK_F9))); | |
48839 | } | |
48840 | { | |
48841 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)(WXK_F10))); | |
48842 | } | |
48843 | { | |
48844 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)(WXK_F11))); | |
48845 | } | |
48846 | { | |
48847 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)(WXK_F12))); | |
48848 | } | |
48849 | { | |
48850 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)(WXK_F13))); | |
48851 | } | |
48852 | { | |
48853 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)(WXK_F14))); | |
48854 | } | |
48855 | { | |
48856 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)(WXK_F15))); | |
48857 | } | |
48858 | { | |
48859 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)(WXK_F16))); | |
48860 | } | |
48861 | { | |
48862 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)(WXK_F17))); | |
48863 | } | |
48864 | { | |
48865 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)(WXK_F18))); | |
48866 | } | |
48867 | { | |
48868 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)(WXK_F19))); | |
48869 | } | |
48870 | { | |
48871 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)(WXK_F20))); | |
48872 | } | |
48873 | { | |
48874 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)(WXK_F21))); | |
48875 | } | |
48876 | { | |
48877 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)(WXK_F22))); | |
48878 | } | |
48879 | { | |
48880 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)(WXK_F23))); | |
48881 | } | |
48882 | { | |
48883 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)(WXK_F24))); | |
48884 | } | |
48885 | { | |
48886 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)(WXK_NUMLOCK))); | |
48887 | } | |
48888 | { | |
48889 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)(WXK_SCROLL))); | |
48890 | } | |
48891 | { | |
48892 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)(WXK_PAGEUP))); | |
48893 | } | |
48894 | { | |
48895 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)(WXK_PAGEDOWN))); | |
48896 | } | |
48897 | { | |
48898 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)(WXK_NUMPAD_SPACE))); | |
48899 | } | |
48900 | { | |
48901 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)(WXK_NUMPAD_TAB))); | |
48902 | } | |
48903 | { | |
48904 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)(WXK_NUMPAD_ENTER))); | |
48905 | } | |
48906 | { | |
48907 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)(WXK_NUMPAD_F1))); | |
48908 | } | |
48909 | { | |
48910 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)(WXK_NUMPAD_F2))); | |
48911 | } | |
48912 | { | |
48913 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)(WXK_NUMPAD_F3))); | |
48914 | } | |
48915 | { | |
48916 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)(WXK_NUMPAD_F4))); | |
48917 | } | |
48918 | { | |
48919 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)(WXK_NUMPAD_HOME))); | |
48920 | } | |
48921 | { | |
48922 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)(WXK_NUMPAD_LEFT))); | |
48923 | } | |
48924 | { | |
48925 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)(WXK_NUMPAD_UP))); | |
48926 | } | |
48927 | { | |
48928 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)(WXK_NUMPAD_RIGHT))); | |
48929 | } | |
48930 | { | |
48931 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)(WXK_NUMPAD_DOWN))); | |
48932 | } | |
48933 | { | |
48934 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)(WXK_NUMPAD_PRIOR))); | |
48935 | } | |
48936 | { | |
48937 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)(WXK_NUMPAD_PAGEUP))); | |
48938 | } | |
48939 | { | |
48940 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)(WXK_NUMPAD_NEXT))); | |
48941 | } | |
48942 | { | |
48943 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)(WXK_NUMPAD_PAGEDOWN))); | |
48944 | } | |
48945 | { | |
48946 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)(WXK_NUMPAD_END))); | |
48947 | } | |
48948 | { | |
48949 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)(WXK_NUMPAD_BEGIN))); | |
48950 | } | |
48951 | { | |
48952 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)(WXK_NUMPAD_INSERT))); | |
48953 | } | |
48954 | { | |
48955 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)(WXK_NUMPAD_DELETE))); | |
48956 | } | |
48957 | { | |
48958 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)(WXK_NUMPAD_EQUAL))); | |
48959 | } | |
48960 | { | |
48961 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)(WXK_NUMPAD_MULTIPLY))); | |
48962 | } | |
48963 | { | |
48964 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)(WXK_NUMPAD_ADD))); | |
48965 | } | |
48966 | { | |
48967 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)(WXK_NUMPAD_SEPARATOR))); | |
48968 | } | |
48969 | { | |
48970 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)(WXK_NUMPAD_SUBTRACT))); | |
48971 | } | |
48972 | { | |
48973 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)(WXK_NUMPAD_DECIMAL))); | |
48974 | } | |
48975 | { | |
48976 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)(WXK_NUMPAD_DIVIDE))); | |
48977 | } | |
48978 | { | |
48979 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)(WXK_WINDOWS_LEFT))); | |
48980 | } | |
48981 | { | |
48982 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)(WXK_WINDOWS_RIGHT))); | |
48983 | } | |
48984 | { | |
48985 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)(WXK_WINDOWS_MENU))); | |
48986 | } | |
88c6b281 RD |
48987 | { |
48988 | PyDict_SetItemString(d,"WXK_COMMAND", SWIG_From_int((int)(WXK_COMMAND))); | |
48989 | } | |
48990 | { | |
48991 | PyDict_SetItemString(d,"WXK_SPECIAL1", SWIG_From_int((int)(WXK_SPECIAL1))); | |
48992 | } | |
48993 | { | |
48994 | PyDict_SetItemString(d,"WXK_SPECIAL2", SWIG_From_int((int)(WXK_SPECIAL2))); | |
48995 | } | |
48996 | { | |
48997 | PyDict_SetItemString(d,"WXK_SPECIAL3", SWIG_From_int((int)(WXK_SPECIAL3))); | |
48998 | } | |
48999 | { | |
49000 | PyDict_SetItemString(d,"WXK_SPECIAL4", SWIG_From_int((int)(WXK_SPECIAL4))); | |
49001 | } | |
49002 | { | |
49003 | PyDict_SetItemString(d,"WXK_SPECIAL5", SWIG_From_int((int)(WXK_SPECIAL5))); | |
49004 | } | |
49005 | { | |
49006 | PyDict_SetItemString(d,"WXK_SPECIAL6", SWIG_From_int((int)(WXK_SPECIAL6))); | |
49007 | } | |
49008 | { | |
49009 | PyDict_SetItemString(d,"WXK_SPECIAL7", SWIG_From_int((int)(WXK_SPECIAL7))); | |
49010 | } | |
49011 | { | |
49012 | PyDict_SetItemString(d,"WXK_SPECIAL8", SWIG_From_int((int)(WXK_SPECIAL8))); | |
49013 | } | |
49014 | { | |
49015 | PyDict_SetItemString(d,"WXK_SPECIAL9", SWIG_From_int((int)(WXK_SPECIAL9))); | |
49016 | } | |
49017 | { | |
49018 | PyDict_SetItemString(d,"WXK_SPECIAL10", SWIG_From_int((int)(WXK_SPECIAL10))); | |
49019 | } | |
49020 | { | |
49021 | PyDict_SetItemString(d,"WXK_SPECIAL11", SWIG_From_int((int)(WXK_SPECIAL11))); | |
49022 | } | |
49023 | { | |
49024 | PyDict_SetItemString(d,"WXK_SPECIAL12", SWIG_From_int((int)(WXK_SPECIAL12))); | |
49025 | } | |
49026 | { | |
49027 | PyDict_SetItemString(d,"WXK_SPECIAL13", SWIG_From_int((int)(WXK_SPECIAL13))); | |
49028 | } | |
49029 | { | |
49030 | PyDict_SetItemString(d,"WXK_SPECIAL14", SWIG_From_int((int)(WXK_SPECIAL14))); | |
49031 | } | |
49032 | { | |
49033 | PyDict_SetItemString(d,"WXK_SPECIAL15", SWIG_From_int((int)(WXK_SPECIAL15))); | |
49034 | } | |
49035 | { | |
49036 | PyDict_SetItemString(d,"WXK_SPECIAL16", SWIG_From_int((int)(WXK_SPECIAL16))); | |
49037 | } | |
49038 | { | |
49039 | PyDict_SetItemString(d,"WXK_SPECIAL17", SWIG_From_int((int)(WXK_SPECIAL17))); | |
49040 | } | |
49041 | { | |
49042 | PyDict_SetItemString(d,"WXK_SPECIAL18", SWIG_From_int((int)(WXK_SPECIAL18))); | |
49043 | } | |
49044 | { | |
49045 | PyDict_SetItemString(d,"WXK_SPECIAL19", SWIG_From_int((int)(WXK_SPECIAL19))); | |
49046 | } | |
49047 | { | |
49048 | PyDict_SetItemString(d,"WXK_SPECIAL20", SWIG_From_int((int)(WXK_SPECIAL20))); | |
49049 | } | |
093d3ff1 RD |
49050 | { |
49051 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)(wxPAPER_NONE))); | |
49052 | } | |
49053 | { | |
49054 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)(wxPAPER_LETTER))); | |
49055 | } | |
49056 | { | |
49057 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)(wxPAPER_LEGAL))); | |
49058 | } | |
49059 | { | |
49060 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)(wxPAPER_A4))); | |
49061 | } | |
49062 | { | |
49063 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)(wxPAPER_CSHEET))); | |
49064 | } | |
49065 | { | |
49066 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)(wxPAPER_DSHEET))); | |
49067 | } | |
49068 | { | |
49069 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)(wxPAPER_ESHEET))); | |
49070 | } | |
49071 | { | |
49072 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)(wxPAPER_LETTERSMALL))); | |
49073 | } | |
49074 | { | |
49075 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)(wxPAPER_TABLOID))); | |
49076 | } | |
49077 | { | |
49078 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)(wxPAPER_LEDGER))); | |
49079 | } | |
49080 | { | |
49081 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)(wxPAPER_STATEMENT))); | |
49082 | } | |
49083 | { | |
49084 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)(wxPAPER_EXECUTIVE))); | |
49085 | } | |
49086 | { | |
49087 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)(wxPAPER_A3))); | |
49088 | } | |
49089 | { | |
49090 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)(wxPAPER_A4SMALL))); | |
49091 | } | |
49092 | { | |
49093 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)(wxPAPER_A5))); | |
49094 | } | |
49095 | { | |
49096 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)(wxPAPER_B4))); | |
49097 | } | |
49098 | { | |
49099 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)(wxPAPER_B5))); | |
49100 | } | |
49101 | { | |
49102 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)(wxPAPER_FOLIO))); | |
49103 | } | |
49104 | { | |
49105 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)(wxPAPER_QUARTO))); | |
49106 | } | |
49107 | { | |
49108 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)(wxPAPER_10X14))); | |
49109 | } | |
49110 | { | |
49111 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)(wxPAPER_11X17))); | |
49112 | } | |
49113 | { | |
49114 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)(wxPAPER_NOTE))); | |
49115 | } | |
49116 | { | |
49117 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)(wxPAPER_ENV_9))); | |
49118 | } | |
49119 | { | |
49120 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)(wxPAPER_ENV_10))); | |
49121 | } | |
49122 | { | |
49123 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)(wxPAPER_ENV_11))); | |
49124 | } | |
49125 | { | |
49126 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)(wxPAPER_ENV_12))); | |
49127 | } | |
49128 | { | |
49129 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)(wxPAPER_ENV_14))); | |
49130 | } | |
49131 | { | |
49132 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)(wxPAPER_ENV_DL))); | |
49133 | } | |
49134 | { | |
49135 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)(wxPAPER_ENV_C5))); | |
49136 | } | |
49137 | { | |
49138 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)(wxPAPER_ENV_C3))); | |
49139 | } | |
49140 | { | |
49141 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)(wxPAPER_ENV_C4))); | |
49142 | } | |
49143 | { | |
49144 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)(wxPAPER_ENV_C6))); | |
49145 | } | |
49146 | { | |
49147 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)(wxPAPER_ENV_C65))); | |
49148 | } | |
49149 | { | |
49150 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)(wxPAPER_ENV_B4))); | |
49151 | } | |
49152 | { | |
49153 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)(wxPAPER_ENV_B5))); | |
49154 | } | |
49155 | { | |
49156 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)(wxPAPER_ENV_B6))); | |
49157 | } | |
49158 | { | |
49159 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)(wxPAPER_ENV_ITALY))); | |
49160 | } | |
49161 | { | |
49162 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)(wxPAPER_ENV_MONARCH))); | |
49163 | } | |
49164 | { | |
49165 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)(wxPAPER_ENV_PERSONAL))); | |
49166 | } | |
49167 | { | |
49168 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)(wxPAPER_FANFOLD_US))); | |
49169 | } | |
49170 | { | |
49171 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)(wxPAPER_FANFOLD_STD_GERMAN))); | |
49172 | } | |
49173 | { | |
49174 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)(wxPAPER_FANFOLD_LGL_GERMAN))); | |
49175 | } | |
49176 | { | |
49177 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)(wxPAPER_ISO_B4))); | |
49178 | } | |
49179 | { | |
49180 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)(wxPAPER_JAPANESE_POSTCARD))); | |
49181 | } | |
49182 | { | |
49183 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)(wxPAPER_9X11))); | |
49184 | } | |
49185 | { | |
49186 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)(wxPAPER_10X11))); | |
49187 | } | |
49188 | { | |
49189 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)(wxPAPER_15X11))); | |
49190 | } | |
49191 | { | |
49192 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)(wxPAPER_ENV_INVITE))); | |
49193 | } | |
49194 | { | |
49195 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)(wxPAPER_LETTER_EXTRA))); | |
49196 | } | |
49197 | { | |
49198 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)(wxPAPER_LEGAL_EXTRA))); | |
49199 | } | |
49200 | { | |
49201 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)(wxPAPER_TABLOID_EXTRA))); | |
49202 | } | |
49203 | { | |
49204 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)(wxPAPER_A4_EXTRA))); | |
49205 | } | |
49206 | { | |
49207 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)(wxPAPER_LETTER_TRANSVERSE))); | |
49208 | } | |
49209 | { | |
49210 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A4_TRANSVERSE))); | |
49211 | } | |
49212 | { | |
49213 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)(wxPAPER_LETTER_EXTRA_TRANSVERSE))); | |
49214 | } | |
49215 | { | |
49216 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)(wxPAPER_A_PLUS))); | |
49217 | } | |
49218 | { | |
49219 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)(wxPAPER_B_PLUS))); | |
49220 | } | |
49221 | { | |
49222 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)(wxPAPER_LETTER_PLUS))); | |
49223 | } | |
49224 | { | |
49225 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)(wxPAPER_A4_PLUS))); | |
49226 | } | |
49227 | { | |
49228 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A5_TRANSVERSE))); | |
49229 | } | |
49230 | { | |
49231 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)(wxPAPER_B5_TRANSVERSE))); | |
49232 | } | |
49233 | { | |
49234 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)(wxPAPER_A3_EXTRA))); | |
49235 | } | |
49236 | { | |
49237 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)(wxPAPER_A5_EXTRA))); | |
49238 | } | |
49239 | { | |
49240 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)(wxPAPER_B5_EXTRA))); | |
49241 | } | |
49242 | { | |
49243 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)(wxPAPER_A2))); | |
49244 | } | |
49245 | { | |
49246 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A3_TRANSVERSE))); | |
49247 | } | |
49248 | { | |
49249 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A3_EXTRA_TRANSVERSE))); | |
49250 | } | |
49251 | { | |
49252 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)(wxDUPLEX_SIMPLEX))); | |
49253 | } | |
49254 | { | |
49255 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)(wxDUPLEX_HORIZONTAL))); | |
49256 | } | |
49257 | { | |
49258 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)(wxDUPLEX_VERTICAL))); | |
49259 | } | |
49260 | { | |
49261 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)(wxITEM_SEPARATOR))); | |
49262 | } | |
49263 | { | |
49264 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)(wxITEM_NORMAL))); | |
49265 | } | |
49266 | { | |
49267 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)(wxITEM_CHECK))); | |
49268 | } | |
49269 | { | |
49270 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)(wxITEM_RADIO))); | |
49271 | } | |
49272 | { | |
49273 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)(wxITEM_MAX))); | |
49274 | } | |
49275 | { | |
49276 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)(wxHT_NOWHERE))); | |
49277 | } | |
49278 | { | |
49279 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)(wxHT_SCROLLBAR_FIRST))); | |
49280 | } | |
49281 | { | |
49282 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_LINE_1))); | |
49283 | } | |
49284 | { | |
49285 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_LINE_2))); | |
49286 | } | |
49287 | { | |
49288 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_PAGE_1))); | |
49289 | } | |
49290 | { | |
49291 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_PAGE_2))); | |
49292 | } | |
49293 | { | |
49294 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)(wxHT_SCROLLBAR_THUMB))); | |
49295 | } | |
49296 | { | |
49297 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)(wxHT_SCROLLBAR_BAR_1))); | |
49298 | } | |
49299 | { | |
49300 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)(wxHT_SCROLLBAR_BAR_2))); | |
49301 | } | |
49302 | { | |
49303 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)(wxHT_SCROLLBAR_LAST))); | |
49304 | } | |
49305 | { | |
49306 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)(wxHT_WINDOW_OUTSIDE))); | |
49307 | } | |
49308 | { | |
49309 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)(wxHT_WINDOW_INSIDE))); | |
49310 | } | |
49311 | { | |
49312 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)(wxHT_WINDOW_VERT_SCROLLBAR))); | |
49313 | } | |
49314 | { | |
49315 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)(wxHT_WINDOW_HORZ_SCROLLBAR))); | |
49316 | } | |
49317 | { | |
49318 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)(wxHT_WINDOW_CORNER))); | |
49319 | } | |
49320 | { | |
49321 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)(wxHT_MAX))); | |
49322 | } | |
49323 | { | |
49324 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)(wxMOD_NONE))); | |
49325 | } | |
49326 | { | |
49327 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)(wxMOD_ALT))); | |
49328 | } | |
49329 | { | |
49330 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)(wxMOD_CONTROL))); | |
49331 | } | |
49332 | { | |
49333 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)(wxMOD_SHIFT))); | |
49334 | } | |
49335 | { | |
49336 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)(wxMOD_WIN))); | |
49337 | } | |
49338 | { | |
49339 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)(wxUPDATE_UI_NONE))); | |
49340 | } | |
49341 | { | |
49342 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)(wxUPDATE_UI_RECURSE))); | |
49343 | } | |
49344 | { | |
49345 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)(wxUPDATE_UI_FROMIDLE))); | |
49346 | } | |
49347 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
49348 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
49349 | { | |
49350 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)(wxBITMAP_TYPE_INVALID))); | |
49351 | } | |
49352 | { | |
49353 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)(wxBITMAP_TYPE_BMP))); | |
49354 | } | |
49355 | { | |
49356 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)(wxBITMAP_TYPE_ICO))); | |
49357 | } | |
49358 | { | |
49359 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)(wxBITMAP_TYPE_CUR))); | |
49360 | } | |
49361 | { | |
49362 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)(wxBITMAP_TYPE_XBM))); | |
49363 | } | |
49364 | { | |
49365 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)(wxBITMAP_TYPE_XBM_DATA))); | |
49366 | } | |
49367 | { | |
49368 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)(wxBITMAP_TYPE_XPM))); | |
49369 | } | |
49370 | { | |
49371 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)(wxBITMAP_TYPE_XPM_DATA))); | |
49372 | } | |
49373 | { | |
49374 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)(wxBITMAP_TYPE_TIF))); | |
49375 | } | |
49376 | { | |
49377 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)(wxBITMAP_TYPE_GIF))); | |
49378 | } | |
49379 | { | |
49380 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)(wxBITMAP_TYPE_PNG))); | |
49381 | } | |
49382 | { | |
49383 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)(wxBITMAP_TYPE_JPEG))); | |
49384 | } | |
49385 | { | |
49386 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)(wxBITMAP_TYPE_PNM))); | |
49387 | } | |
49388 | { | |
49389 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)(wxBITMAP_TYPE_PCX))); | |
49390 | } | |
49391 | { | |
49392 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)(wxBITMAP_TYPE_PICT))); | |
49393 | } | |
49394 | { | |
49395 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)(wxBITMAP_TYPE_ICON))); | |
49396 | } | |
49397 | { | |
49398 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)(wxBITMAP_TYPE_ANI))); | |
49399 | } | |
49400 | { | |
49401 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)(wxBITMAP_TYPE_IFF))); | |
49402 | } | |
49403 | { | |
49404 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)(wxBITMAP_TYPE_MACCURSOR))); | |
49405 | } | |
49406 | { | |
49407 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)(wxBITMAP_TYPE_ANY))); | |
49408 | } | |
49409 | { | |
49410 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)(wxCURSOR_NONE))); | |
49411 | } | |
49412 | { | |
49413 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)(wxCURSOR_ARROW))); | |
49414 | } | |
49415 | { | |
49416 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)(wxCURSOR_RIGHT_ARROW))); | |
49417 | } | |
49418 | { | |
49419 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)(wxCURSOR_BULLSEYE))); | |
49420 | } | |
49421 | { | |
49422 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)(wxCURSOR_CHAR))); | |
49423 | } | |
49424 | { | |
49425 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)(wxCURSOR_CROSS))); | |
49426 | } | |
49427 | { | |
49428 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)(wxCURSOR_HAND))); | |
49429 | } | |
49430 | { | |
49431 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)(wxCURSOR_IBEAM))); | |
49432 | } | |
49433 | { | |
49434 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)(wxCURSOR_LEFT_BUTTON))); | |
49435 | } | |
49436 | { | |
49437 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)(wxCURSOR_MAGNIFIER))); | |
49438 | } | |
49439 | { | |
49440 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)(wxCURSOR_MIDDLE_BUTTON))); | |
49441 | } | |
49442 | { | |
49443 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)(wxCURSOR_NO_ENTRY))); | |
49444 | } | |
49445 | { | |
49446 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)(wxCURSOR_PAINT_BRUSH))); | |
49447 | } | |
49448 | { | |
49449 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)(wxCURSOR_PENCIL))); | |
49450 | } | |
49451 | { | |
49452 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)(wxCURSOR_POINT_LEFT))); | |
49453 | } | |
49454 | { | |
49455 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)(wxCURSOR_POINT_RIGHT))); | |
49456 | } | |
49457 | { | |
49458 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)(wxCURSOR_QUESTION_ARROW))); | |
49459 | } | |
49460 | { | |
49461 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)(wxCURSOR_RIGHT_BUTTON))); | |
49462 | } | |
49463 | { | |
49464 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)(wxCURSOR_SIZENESW))); | |
49465 | } | |
49466 | { | |
49467 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)(wxCURSOR_SIZENS))); | |
49468 | } | |
49469 | { | |
49470 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)(wxCURSOR_SIZENWSE))); | |
49471 | } | |
49472 | { | |
49473 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)(wxCURSOR_SIZEWE))); | |
49474 | } | |
49475 | { | |
49476 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)(wxCURSOR_SIZING))); | |
49477 | } | |
49478 | { | |
49479 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)(wxCURSOR_SPRAYCAN))); | |
49480 | } | |
49481 | { | |
49482 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)(wxCURSOR_WAIT))); | |
49483 | } | |
49484 | { | |
49485 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)(wxCURSOR_WATCH))); | |
49486 | } | |
49487 | { | |
49488 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)(wxCURSOR_BLANK))); | |
49489 | } | |
49490 | { | |
49491 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)(wxCURSOR_DEFAULT))); | |
49492 | } | |
49493 | { | |
49494 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)(wxCURSOR_COPY_ARROW))); | |
49495 | } | |
49496 | { | |
49497 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)(wxCURSOR_ARROWWAIT))); | |
49498 | } | |
49499 | { | |
49500 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)(wxCURSOR_MAX))); | |
49501 | } | |
49502 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
49503 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
49504 | { | |
49505 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)(wxFromStart))); | |
49506 | } | |
49507 | { | |
49508 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)(wxFromCurrent))); | |
49509 | } | |
49510 | { | |
49511 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)(wxFromEnd))); | |
49512 | } | |
49513 | ||
49514 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
49515 | ||
49516 | ||
49517 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
49518 | ||
49519 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
68350608 | 49520 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_FILENAME",_wrap_IMAGE_OPTION_FILENAME_get, _wrap_IMAGE_OPTION_FILENAME_set); |
093d3ff1 RD |
49521 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); |
49522 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
49523 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
49524 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
68350608 RD |
49525 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONX",_wrap_IMAGE_OPTION_RESOLUTIONX_get, _wrap_IMAGE_OPTION_RESOLUTIONX_set); |
49526 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONY",_wrap_IMAGE_OPTION_RESOLUTIONY_get, _wrap_IMAGE_OPTION_RESOLUTIONY_set); | |
093d3ff1 | 49527 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); |
24d7cbea | 49528 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_QUALITY",_wrap_IMAGE_OPTION_QUALITY_get, _wrap_IMAGE_OPTION_QUALITY_set); |
093d3ff1 RD |
49529 | { |
49530 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)(wxIMAGE_RESOLUTION_INCHES))); | |
49531 | } | |
49532 | { | |
49533 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)(wxIMAGE_RESOLUTION_CM))); | |
49534 | } | |
68350608 RD |
49535 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BITSPERSAMPLE",_wrap_IMAGE_OPTION_BITSPERSAMPLE_get, _wrap_IMAGE_OPTION_BITSPERSAMPLE_set); |
49536 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_SAMPLESPERPIXEL",_wrap_IMAGE_OPTION_SAMPLESPERPIXEL_get, _wrap_IMAGE_OPTION_SAMPLESPERPIXEL_set); | |
49537 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_COMPRESSION",_wrap_IMAGE_OPTION_COMPRESSION_get, _wrap_IMAGE_OPTION_COMPRESSION_set); | |
49538 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_IMAGEDESCRIPTOR",_wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_get, _wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_set); | |
b9d6a5f3 RD |
49539 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_PNG_FORMAT",_wrap_IMAGE_OPTION_PNG_FORMAT_get, _wrap_IMAGE_OPTION_PNG_FORMAT_set); |
49540 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_PNG_BITDEPTH",_wrap_IMAGE_OPTION_PNG_BITDEPTH_get, _wrap_IMAGE_OPTION_PNG_BITDEPTH_set); | |
49541 | { | |
49542 | PyDict_SetItemString(d,"PNG_TYPE_COLOUR", SWIG_From_int((int)(wxPNG_TYPE_COLOUR))); | |
49543 | } | |
49544 | { | |
49545 | PyDict_SetItemString(d,"PNG_TYPE_GREY", SWIG_From_int((int)(wxPNG_TYPE_GREY))); | |
49546 | } | |
49547 | { | |
49548 | PyDict_SetItemString(d,"PNG_TYPE_GREY_RED", SWIG_From_int((int)(wxPNG_TYPE_GREY_RED))); | |
49549 | } | |
093d3ff1 RD |
49550 | { |
49551 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)(wxBMP_24BPP))); | |
49552 | } | |
49553 | { | |
49554 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)(wxBMP_8BPP))); | |
49555 | } | |
49556 | { | |
49557 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)(wxBMP_8BPP_GREY))); | |
49558 | } | |
49559 | { | |
49560 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)(wxBMP_8BPP_GRAY))); | |
49561 | } | |
49562 | { | |
49563 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)(wxBMP_8BPP_RED))); | |
49564 | } | |
49565 | { | |
49566 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)(wxBMP_8BPP_PALETTE))); | |
49567 | } | |
49568 | { | |
49569 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)(wxBMP_4BPP))); | |
49570 | } | |
49571 | { | |
49572 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)(wxBMP_1BPP))); | |
49573 | } | |
49574 | { | |
49575 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)(wxBMP_1BPP_BW))); | |
49576 | } | |
49577 | { | |
49578 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)(wxQUANTIZE_INCLUDE_WINDOWS_COLOURS))); | |
49579 | } | |
49580 | { | |
49581 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)(wxQUANTIZE_FILL_DESTINATION_IMAGE))); | |
49582 | } | |
49583 | { | |
49584 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)(wxEVENT_PROPAGATE_NONE))); | |
49585 | } | |
49586 | { | |
49587 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)(wxEVENT_PROPAGATE_MAX))); | |
49588 | } | |
49589 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
49590 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
49591 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
49592 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
49593 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
49594 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
49595 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
49596 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
49597 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
49598 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
49599 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
49600 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
49601 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
49602 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
49603 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
49604 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
49605 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
49606 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
49607 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
49608 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
49609 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
49610 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
49611 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
49612 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
49613 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
49614 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
49615 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
49616 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
49617 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
49618 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
49619 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
49620 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
49621 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
49622 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
49623 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
49624 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
49625 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
49626 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
49627 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
49628 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
49629 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
49630 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
49631 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
49632 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
49633 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
49634 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
49635 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
49636 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
49637 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
49638 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
49639 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
49640 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
49641 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
49642 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
49643 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
49644 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
49645 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
49646 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
49647 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
49648 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
49649 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
49650 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
49651 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
49652 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
49653 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
49654 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
49655 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
49656 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
49657 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
49658 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
49659 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
49660 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
49661 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
49662 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
49663 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
49664 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
49665 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
49666 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
49667 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
49668 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
49669 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
49670 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
49671 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
49672 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
49673 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
49674 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
49675 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
49676 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
49677 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
49678 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
49679 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
49680 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
49681 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
49682 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
49683 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
49684 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
49685 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
49686 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
49687 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
49688 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
49689 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
49690 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
49691 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
49692 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
49693 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
49694 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
49695 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
88c6b281 | 49696 | PyDict_SetItemString(d, "wxEVT_HIBERNATE", PyInt_FromLong(wxEVT_HIBERNATE)); |
093d3ff1 RD |
49697 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); |
49698 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
49699 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
49700 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
49701 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
49702 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
49703 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
49704 | { | |
49705 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)(wxMOUSE_BTN_ANY))); | |
49706 | } | |
49707 | { | |
49708 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)(wxMOUSE_BTN_NONE))); | |
49709 | } | |
49710 | { | |
49711 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)(wxMOUSE_BTN_LEFT))); | |
49712 | } | |
49713 | { | |
49714 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)(wxMOUSE_BTN_MIDDLE))); | |
49715 | } | |
49716 | { | |
49717 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)(wxMOUSE_BTN_RIGHT))); | |
49718 | } | |
49719 | { | |
49720 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)(wxUPDATE_UI_PROCESS_ALL))); | |
49721 | } | |
49722 | { | |
49723 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)(wxUPDATE_UI_PROCESS_SPECIFIED))); | |
49724 | } | |
49725 | { | |
49726 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)(wxNavigationKeyEvent::IsBackward))); | |
49727 | } | |
49728 | { | |
49729 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)(wxNavigationKeyEvent::IsForward))); | |
49730 | } | |
49731 | { | |
49732 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)(wxNavigationKeyEvent::WinChange))); | |
49733 | } | |
68350608 RD |
49734 | { |
49735 | PyDict_SetItemString(d,"NavigationKeyEvent_FromTab", SWIG_From_int((int)(wxNavigationKeyEvent::FromTab))); | |
49736 | } | |
093d3ff1 RD |
49737 | { |
49738 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)(wxIDLE_PROCESS_ALL))); | |
49739 | } | |
49740 | { | |
49741 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)(wxIDLE_PROCESS_SPECIFIED))); | |
49742 | } | |
53aa7709 | 49743 | PyDict_SetItemString(d, "wxEVT_DATE_CHANGED", PyInt_FromLong(wxEVT_DATE_CHANGED)); |
093d3ff1 RD |
49744 | { |
49745 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)(wxPYAPP_ASSERT_SUPPRESS))); | |
49746 | } | |
49747 | { | |
49748 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)(wxPYAPP_ASSERT_EXCEPTION))); | |
49749 | } | |
49750 | { | |
49751 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)(wxPYAPP_ASSERT_DIALOG))); | |
49752 | } | |
49753 | { | |
49754 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)(wxPYAPP_ASSERT_LOG))); | |
49755 | } | |
49756 | { | |
49757 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)(wxPRINT_WINDOWS))); | |
49758 | } | |
49759 | { | |
49760 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)(wxPRINT_POSTSCRIPT))); | |
49761 | } | |
49762 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); | |
49763 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
49764 | { | |
49765 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)(wxWINDOW_VARIANT_NORMAL))); | |
49766 | } | |
49767 | { | |
49768 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)(wxWINDOW_VARIANT_SMALL))); | |
49769 | } | |
49770 | { | |
49771 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)(wxWINDOW_VARIANT_MINI))); | |
49772 | } | |
49773 | { | |
49774 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)(wxWINDOW_VARIANT_LARGE))); | |
49775 | } | |
49776 | { | |
49777 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)(wxWINDOW_VARIANT_MAX))); | |
49778 | } | |
49779 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); | |
49780 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
49781 | { | |
49782 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)(wxFLEX_GROWMODE_NONE))); | |
49783 | } | |
49784 | { | |
49785 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)(wxFLEX_GROWMODE_SPECIFIED))); | |
49786 | } | |
49787 | { | |
49788 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)(wxFLEX_GROWMODE_ALL))); | |
49789 | } | |
49790 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
49791 | { | |
49792 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)(wxLeft))); | |
49793 | } | |
49794 | { | |
49795 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)(wxTop))); | |
49796 | } | |
49797 | { | |
49798 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)(wxRight))); | |
49799 | } | |
49800 | { | |
49801 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)(wxBottom))); | |
49802 | } | |
49803 | { | |
49804 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)(wxWidth))); | |
49805 | } | |
49806 | { | |
49807 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)(wxHeight))); | |
49808 | } | |
49809 | { | |
49810 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)(wxCentre))); | |
49811 | } | |
49812 | { | |
49813 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)(wxCenter))); | |
49814 | } | |
49815 | { | |
49816 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)(wxCentreX))); | |
49817 | } | |
49818 | { | |
49819 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)(wxCentreY))); | |
49820 | } | |
49821 | { | |
49822 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)(wxUnconstrained))); | |
49823 | } | |
49824 | { | |
49825 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)(wxAsIs))); | |
49826 | } | |
49827 | { | |
49828 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)(wxPercentOf))); | |
49829 | } | |
49830 | { | |
49831 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)(wxAbove))); | |
49832 | } | |
49833 | { | |
49834 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)(wxBelow))); | |
49835 | } | |
49836 | { | |
49837 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)(wxLeftOf))); | |
49838 | } | |
49839 | { | |
49840 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)(wxRightOf))); | |
49841 | } | |
49842 | { | |
49843 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)(wxSameAs))); | |
49844 | } | |
49845 | { | |
49846 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)(wxAbsolute))); | |
49847 | } | |
d55e5bfc RD |
49848 | |
49849 | // Initialize threading, some globals and such | |
49850 | __wxPyPreStart(d); | |
49851 | ||
49852 | ||
49853 | // Although these are defined in __version__ they need to be here too so | |
49854 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
49855 | // versions match. | |
49856 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
49857 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
49858 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
49859 | ||
49860 | } | |
49861 |