]>
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 RD |
1354 | #define SWIGTYPE_p_wxEvent swig_types[13] |
1355 | #define SWIGTYPE_p_wxMenu swig_types[14] | |
ae8162c8 RD |
1356 | #define SWIGTYPE_p_wxGridSizer swig_types[15] |
1357 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[16] | |
1358 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[17] | |
1359 | #define SWIGTYPE_p_wxItemContainer swig_types[18] | |
1360 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[19] | |
1361 | #define SWIGTYPE_p_wxPaintEvent swig_types[20] | |
1362 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[21] | |
1363 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[22] | |
1364 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[23] | |
1365 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[24] | |
1366 | #define SWIGTYPE_p_wxControl swig_types[25] | |
1367 | #define SWIGTYPE_p_wxFont swig_types[26] | |
1368 | #define SWIGTYPE_p_wxMenuBarBase swig_types[27] | |
1369 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[28] | |
1370 | #define SWIGTYPE_p_wxFSFile swig_types[29] | |
1371 | #define SWIGTYPE_p_wxCaret swig_types[30] | |
093d3ff1 RD |
1372 | #define SWIGTYPE_ptrdiff_t swig_types[31] |
1373 | #define SWIGTYPE_std__ptrdiff_t swig_types[32] | |
1374 | #define SWIGTYPE_p_wxRegion swig_types[33] | |
1375 | #define SWIGTYPE_p_wxPoint2D swig_types[34] | |
1376 | #define SWIGTYPE_p_int swig_types[35] | |
1377 | #define SWIGTYPE_p_wxSize swig_types[36] | |
1378 | #define SWIGTYPE_p_wxDC swig_types[37] | |
1379 | #define SWIGTYPE_p_wxPySizer swig_types[38] | |
1380 | #define SWIGTYPE_p_wxVisualAttributes swig_types[39] | |
1381 | #define SWIGTYPE_p_wxNotifyEvent swig_types[40] | |
1382 | #define SWIGTYPE_p_wxPyEvent swig_types[41] | |
1383 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[42] | |
1384 | #define SWIGTYPE_p_form_ops_t swig_types[43] | |
1385 | #define SWIGTYPE_p_wxAppTraits swig_types[44] | |
1386 | #define SWIGTYPE_p_wxArrayString swig_types[45] | |
1387 | #define SWIGTYPE_p_wxShowEvent swig_types[46] | |
1388 | #define SWIGTYPE_p_wxToolTip swig_types[47] | |
1389 | #define SWIGTYPE_p_wxMoveEvent swig_types[48] | |
1390 | #define SWIGTYPE_p_wxSizeEvent swig_types[49] | |
1391 | #define SWIGTYPE_p_wxActivateEvent swig_types[50] | |
1392 | #define SWIGTYPE_p_wxIconizeEvent swig_types[51] | |
1393 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[52] | |
1394 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[53] | |
1395 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[54] | |
1396 | #define SWIGTYPE_p_wxIdleEvent swig_types[55] | |
1397 | #define SWIGTYPE_p_wxMenuItem swig_types[56] | |
1398 | #define SWIGTYPE_p_wxStaticBox swig_types[57] | |
1399 | #define SWIGTYPE_p_long swig_types[58] | |
1400 | #define SWIGTYPE_p_wxDuplexMode swig_types[59] | |
1401 | #define SWIGTYPE_p_wxTIFFHandler swig_types[60] | |
1402 | #define SWIGTYPE_p_wxXPMHandler swig_types[61] | |
1403 | #define SWIGTYPE_p_wxPNMHandler swig_types[62] | |
1404 | #define SWIGTYPE_p_wxJPEGHandler swig_types[63] | |
1405 | #define SWIGTYPE_p_wxPCXHandler swig_types[64] | |
1406 | #define SWIGTYPE_p_wxGIFHandler swig_types[65] | |
1407 | #define SWIGTYPE_p_wxPNGHandler swig_types[66] | |
1408 | #define SWIGTYPE_p_wxANIHandler swig_types[67] | |
1409 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[68] | |
1410 | #define SWIGTYPE_p_wxZipFSHandler swig_types[69] | |
1411 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[70] | |
ae8162c8 | 1412 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[71] |
093d3ff1 RD |
1413 | #define SWIGTYPE_p_wxEvtHandler swig_types[72] |
1414 | #define SWIGTYPE_p_wxCURHandler swig_types[73] | |
1415 | #define SWIGTYPE_p_wxICOHandler swig_types[74] | |
1416 | #define SWIGTYPE_p_wxBMPHandler swig_types[75] | |
1417 | #define SWIGTYPE_p_wxImageHandler swig_types[76] | |
1418 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[77] | |
1419 | #define SWIGTYPE_p_wxRect swig_types[78] | |
62d32a5f RD |
1420 | #define SWIGTYPE_p_wxButton swig_types[79] |
1421 | #define SWIGTYPE_p_wxGBSpan swig_types[80] | |
1422 | #define SWIGTYPE_p_wxPropagateOnce swig_types[81] | |
1423 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[82] | |
1424 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[83] | |
1425 | #define SWIGTYPE_p_char swig_types[84] | |
1426 | #define SWIGTYPE_p_wxGBPosition swig_types[85] | |
1427 | #define SWIGTYPE_p_wxImage swig_types[86] | |
1428 | #define SWIGTYPE_p_wxFrame swig_types[87] | |
1429 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[88] | |
1430 | #define SWIGTYPE_p_wxPaperSize swig_types[89] | |
1431 | #define SWIGTYPE_p_wxImageHistogram swig_types[90] | |
1432 | #define SWIGTYPE_p_wxPoint swig_types[91] | |
1433 | #define SWIGTYPE_p_wxCursor swig_types[92] | |
1434 | #define SWIGTYPE_p_wxObject swig_types[93] | |
1435 | #define SWIGTYPE_p_wxInputStream swig_types[94] | |
1436 | #define SWIGTYPE_p_wxOutputStream swig_types[95] | |
1437 | #define SWIGTYPE_p_wxPyInputStream swig_types[96] | |
1438 | #define SWIGTYPE_p_wxDateTime swig_types[97] | |
1439 | #define SWIGTYPE_p_wxKeyEvent swig_types[98] | |
1440 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99] | |
1441 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[100] | |
1442 | #define SWIGTYPE_p_unsigned_long swig_types[101] | |
1443 | #define SWIGTYPE_p_wxWindow swig_types[102] | |
1444 | #define SWIGTYPE_p_wxMenuBar swig_types[103] | |
1445 | #define SWIGTYPE_p_wxFileSystem swig_types[104] | |
1446 | #define SWIGTYPE_p_wxBitmap swig_types[105] | |
1447 | #define SWIGTYPE_unsigned_int swig_types[106] | |
1448 | #define SWIGTYPE_p_unsigned_int swig_types[107] | |
1449 | #define SWIGTYPE_p_wxMenuEvent swig_types[108] | |
1450 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[109] | |
1451 | #define SWIGTYPE_p_unsigned_char swig_types[110] | |
1452 | #define SWIGTYPE_p_wxEraseEvent swig_types[111] | |
1453 | #define SWIGTYPE_p_wxMouseEvent swig_types[112] | |
1454 | #define SWIGTYPE_p_wxCloseEvent swig_types[113] | |
1455 | #define SWIGTYPE_p_wxPyApp swig_types[114] | |
1456 | #define SWIGTYPE_p_wxCommandEvent swig_types[115] | |
1457 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[116] | |
1458 | #define SWIGTYPE_p_wxPyDropTarget swig_types[117] | |
1459 | #define SWIGTYPE_p_wxQuantize swig_types[118] | |
1460 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[119] | |
1461 | #define SWIGTYPE_p_wxFocusEvent swig_types[120] | |
1462 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[121] | |
1463 | #define SWIGTYPE_p_wxControlWithItems swig_types[122] | |
1464 | #define SWIGTYPE_p_wxColour swig_types[123] | |
1465 | #define SWIGTYPE_p_wxValidator swig_types[124] | |
1466 | #define SWIGTYPE_p_wxPyValidator swig_types[125] | |
1467 | static swig_type_info *swig_types[127]; | |
d55e5bfc RD |
1468 | |
1469 | /* -------- TYPES TABLE (END) -------- */ | |
1470 | ||
1471 | ||
1472 | /*----------------------------------------------- | |
1473 | @(target):= _core_.so | |
1474 | ------------------------------------------------*/ | |
1475 | #define SWIG_init init_core_ | |
1476 | ||
1477 | #define SWIG_name "_core_" | |
1478 | ||
d55e5bfc RD |
1479 | #include "wx/wxPython/wxPython_int.h" |
1480 | #include "wx/wxPython/pyclasses.h" | |
1481 | ||
1482 | ||
1483 | #ifndef wxPyUSE_EXPORT | |
1484 | // Helper functions for dealing with SWIG objects and such. These are | |
1485 | // located here so they know about the SWIG types and functions declared | |
1486 | // in the wrapper code. | |
1487 | ||
1488 | #include <wx/hashmap.h> | |
1489 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
1490 | ||
1491 | ||
1492 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
1493 | // name of a class either looks up the type info in the cache, or scans the | |
1494 | // SWIG tables for it. | |
1495 | extern PyObject* wxPyPtrTypeMap; | |
1496 | static | |
1497 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
1498 | ||
1499 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
1500 | ||
1501 | if (typeInfoCache == NULL) | |
1502 | typeInfoCache = new wxPyTypeInfoHashMap; | |
1503 | ||
1504 | wxString name(className); | |
1505 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
1506 | ||
1507 | if (! swigType) { | |
1508 | // it wasn't in the cache, so look it up from SWIG | |
1509 | name.Append(wxT(" *")); | |
093d3ff1 | 1510 | swigType = SWIG_TypeQuery(name.mb_str()); |
d55e5bfc RD |
1511 | |
1512 | // if it still wasn't found, try looking for a mapped name | |
1513 | if (!swigType) { | |
1514 | PyObject* item; | |
1515 | name = className; | |
1516 | ||
1517 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
1518 | (char*)(const char*)name.mbc_str())) != NULL) { | |
1519 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
1520 | name.Append(wxT(" *")); | |
093d3ff1 | 1521 | swigType = SWIG_TypeQuery(name.mb_str()); |
d55e5bfc RD |
1522 | } |
1523 | } | |
1524 | if (swigType) { | |
1525 | // and add it to the map if found | |
1526 | (*typeInfoCache)[className] = swigType; | |
1527 | } | |
1528 | } | |
1529 | return swigType; | |
1530 | } | |
1531 | ||
1532 | ||
1533 | // Check if a class name is a type known to SWIG | |
1534 | bool wxPyCheckSwigType(const wxChar* className) { | |
1535 | ||
1536 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1537 | return swigType != NULL; | |
1538 | } | |
1539 | ||
1540 | ||
1541 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
1542 | // object for it. | |
1543 | PyObject* wxPyConstructObject(void* ptr, | |
1544 | const wxChar* className, | |
1545 | int setThisOwn) { | |
1546 | ||
1547 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1548 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
1549 | ||
1550 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
1551 | } | |
1552 | ||
1553 | ||
1554 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
1555 | // Ensures that the proxy object is of the specified (or derived) type. If | |
1556 | // not able to perform the conversion then a Python exception is set and the | |
1557 | // error should be handled properly in the caller. Returns True on success. | |
1558 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, | |
1559 | const wxChar* className) { | |
1560 | ||
1561 | swig_type_info* swigType = wxPyFindSwigType(className); | |
ae8162c8 | 1562 | wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr")); |
d55e5bfc RD |
1563 | |
1564 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
1565 | } | |
1566 | ||
1567 | ||
1568 | // Make a SWIGified pointer object suitable for a .this attribute | |
1569 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
1570 | ||
1571 | PyObject* robj = NULL; | |
1572 | ||
1573 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1574 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
1575 | ||
1576 | #ifdef SWIG_COBJECT_TYPES | |
093d3ff1 | 1577 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)swigType->name); |
d55e5bfc RD |
1578 | #else |
1579 | { | |
1580 | char result[1024]; | |
093d3ff1 RD |
1581 | robj = SWIG_PackVoidPtr(result, ptr, swigType->name, sizeof(result)) ? |
1582 | PyString_FromString(result) : 0; | |
1583 | } | |
d55e5bfc RD |
1584 | #endif |
1585 | ||
1586 | return robj; | |
1587 | } | |
1588 | ||
1589 | ||
1590 | ||
1591 | ||
1592 | // Export a C API in a struct. Other modules will be able to load this from | |
1593 | // the wx._core_ module and will then have safe access to these functions, | |
1594 | // even if they are located in another shared library. | |
1595 | static wxPyCoreAPI API = { | |
1596 | ||
d55e5bfc RD |
1597 | wxPyCheckSwigType, |
1598 | wxPyConstructObject, | |
1599 | wxPyConvertSwigPtr, | |
1600 | wxPyMakeSwigPtr, | |
1601 | ||
1602 | wxPyBeginAllowThreads, | |
1603 | wxPyEndAllowThreads, | |
1604 | wxPyBeginBlockThreads, | |
1605 | wxPyEndBlockThreads, | |
1606 | ||
1607 | wxPy_ConvertList, | |
1608 | ||
1609 | wxString_in_helper, | |
1610 | Py2wxString, | |
1611 | wx2PyString, | |
1612 | ||
1613 | byte_LIST_helper, | |
1614 | int_LIST_helper, | |
1615 | long_LIST_helper, | |
1616 | string_LIST_helper, | |
1617 | wxPoint_LIST_helper, | |
1618 | wxBitmap_LIST_helper, | |
1619 | wxString_LIST_helper, | |
1620 | wxAcceleratorEntry_LIST_helper, | |
1621 | ||
1622 | wxSize_helper, | |
1623 | wxPoint_helper, | |
1624 | wxRealPoint_helper, | |
1625 | wxRect_helper, | |
1626 | wxColour_helper, | |
1627 | wxPoint2D_helper, | |
1628 | ||
1629 | wxPySimple_typecheck, | |
1630 | wxColour_typecheck, | |
1631 | ||
1632 | wxPyCBH_setCallbackInfo, | |
1633 | wxPyCBH_findCallback, | |
1634 | wxPyCBH_callCallback, | |
1635 | wxPyCBH_callCallbackObj, | |
1636 | wxPyCBH_delete, | |
1637 | ||
1638 | wxPyMake_wxObject, | |
1639 | wxPyMake_wxSizer, | |
1640 | wxPyPtrTypeMap_Add, | |
1641 | wxPy2int_seq_helper, | |
1642 | wxPy4int_seq_helper, | |
1643 | wxArrayString2PyList_helper, | |
1644 | wxArrayInt2PyList_helper, | |
1645 | ||
1646 | wxPyClientData_dtor, | |
1647 | wxPyUserData_dtor, | |
1648 | wxPyOORClientData_dtor, | |
1649 | ||
1650 | wxPyCBInputStream_create, | |
1651 | ||
1652 | wxPyInstance_Check, | |
0439c23b RD |
1653 | wxPySwigInstance_Check, |
1654 | ||
1655 | wxPyCheckForApp | |
d55e5bfc RD |
1656 | |
1657 | }; | |
1658 | ||
1659 | #endif | |
1660 | ||
1661 | ||
fef4c27a RD |
1662 | #if !WXWIN_COMPATIBILITY_2_4 |
1663 | #define wxHIDE_READONLY 0 | |
1664 | #endif | |
1665 | ||
1666 | ||
093d3ff1 RD |
1667 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
1668 | #define SWIG_From_int PyInt_FromLong | |
1669 | /*@@*/ | |
1670 | ||
1671 | ||
d55e5bfc RD |
1672 | #if ! wxUSE_HOTKEY |
1673 | enum wxHotkeyModifier | |
1674 | { | |
1675 | wxMOD_NONE = 0, | |
1676 | wxMOD_ALT = 1, | |
1677 | wxMOD_CONTROL = 2, | |
1678 | wxMOD_SHIFT = 4, | |
1679 | wxMOD_WIN = 8 | |
1680 | }; | |
1681 | #define wxEVT_HOTKEY 9999 | |
1682 | #endif | |
1683 | ||
1684 | static const wxString wxPyEmptyString(wxEmptyString); | |
093d3ff1 | 1685 | static wxString wxObject_GetClassName(wxObject *self){ |
d55e5bfc RD |
1686 | return self->GetClassInfo()->GetClassName(); |
1687 | } | |
093d3ff1 | 1688 | static void wxObject_Destroy(wxObject *self){ |
d55e5bfc RD |
1689 | delete self; |
1690 | } | |
1691 | ||
1692 | #ifndef __WXMAC__ | |
1693 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
1694 | #endif | |
1695 | ||
1696 | ||
1697 | #include <limits.h> | |
1698 | ||
1699 | ||
093d3ff1 | 1700 | SWIGINTERN int |
c32bde28 RD |
1701 | SWIG_CheckLongInRange(long value, long min_value, long max_value, |
1702 | const char *errmsg) | |
d55e5bfc | 1703 | { |
c32bde28 RD |
1704 | if (value < min_value) { |
1705 | if (errmsg) { | |
1706 | PyErr_Format(PyExc_OverflowError, | |
1707 | "value %ld is less than '%s' minimum %ld", | |
1708 | value, errmsg, min_value); | |
1709 | } | |
1710 | return 0; | |
1711 | } else if (value > max_value) { | |
1712 | if (errmsg) { | |
1713 | PyErr_Format(PyExc_OverflowError, | |
1714 | "value %ld is greater than '%s' maximum %ld", | |
1715 | value, errmsg, max_value); | |
d55e5bfc | 1716 | } |
c32bde28 | 1717 | return 0; |
d55e5bfc | 1718 | } |
c32bde28 | 1719 | return 1; |
d55e5bfc RD |
1720 | } |
1721 | ||
1722 | ||
093d3ff1 | 1723 | SWIGINTERN int |
c32bde28 | 1724 | SWIG_AsVal_long(PyObject* obj, long* val) |
d55e5bfc | 1725 | { |
c32bde28 RD |
1726 | if (PyNumber_Check(obj)) { |
1727 | if (val) *val = PyInt_AsLong(obj); | |
1728 | return 1; | |
1729 | } | |
d55e5bfc | 1730 | else { |
093d3ff1 | 1731 | SWIG_type_error("number", obj); |
d55e5bfc | 1732 | } |
c32bde28 | 1733 | return 0; |
d55e5bfc RD |
1734 | } |
1735 | ||
1736 | ||
1737 | #if INT_MAX != LONG_MAX | |
093d3ff1 | 1738 | SWIGINTERN int |
c32bde28 | 1739 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 1740 | { |
093d3ff1 | 1741 | const char* errmsg = val ? "int" : (char*)0; |
c32bde28 RD |
1742 | long v; |
1743 | if (SWIG_AsVal_long(obj, &v)) { | |
1744 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
093d3ff1 | 1745 | if (val) *val = (int)(v); |
c32bde28 RD |
1746 | return 1; |
1747 | } else { | |
1748 | return 0; | |
1749 | } | |
1750 | } else { | |
1751 | PyErr_Clear(); | |
1752 | } | |
1753 | if (val) { | |
093d3ff1 | 1754 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
1755 | } |
1756 | return 0; | |
d55e5bfc RD |
1757 | } |
1758 | #else | |
093d3ff1 | 1759 | SWIGINTERNSHORT int |
c32bde28 RD |
1760 | SWIG_AsVal_int(PyObject *obj, int *val) |
1761 | { | |
1762 | return SWIG_AsVal_long(obj,(long*)val); | |
1763 | } | |
d55e5bfc RD |
1764 | #endif |
1765 | ||
1766 | ||
093d3ff1 | 1767 | SWIGINTERNSHORT int |
c32bde28 | 1768 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 1769 | { |
c32bde28 RD |
1770 | int v; |
1771 | if (!SWIG_AsVal_int(obj, &v)) { | |
1772 | /* | |
093d3ff1 | 1773 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1774 | */ |
1775 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 1776 | } |
c32bde28 RD |
1777 | return v; |
1778 | } | |
1779 | ||
1780 | ||
093d3ff1 | 1781 | SWIGINTERNSHORT int |
c32bde28 RD |
1782 | SWIG_Check_int(PyObject* obj) |
1783 | { | |
1784 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
1785 | } |
1786 | ||
093d3ff1 | 1787 | static PyObject *wxSize_Get(wxSize *self){ |
d55e5bfc RD |
1788 | bool blocked = wxPyBeginBlockThreads(); |
1789 | PyObject* tup = PyTuple_New(2); | |
1790 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1791 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1792 | wxPyEndBlockThreads(blocked); | |
1793 | return tup; | |
1794 | } | |
1795 | ||
093d3ff1 | 1796 | SWIGINTERN int |
c32bde28 | 1797 | SWIG_AsVal_double(PyObject *obj, double* val) |
d55e5bfc | 1798 | { |
c32bde28 RD |
1799 | if (PyNumber_Check(obj)) { |
1800 | if (val) *val = PyFloat_AsDouble(obj); | |
1801 | return 1; | |
1802 | } | |
d55e5bfc | 1803 | else { |
093d3ff1 | 1804 | SWIG_type_error("number", obj); |
d55e5bfc | 1805 | } |
c32bde28 | 1806 | return 0; |
d55e5bfc RD |
1807 | } |
1808 | ||
1809 | ||
093d3ff1 | 1810 | SWIGINTERNSHORT double |
c32bde28 | 1811 | SWIG_As_double(PyObject* obj) |
d55e5bfc | 1812 | { |
c32bde28 RD |
1813 | double v; |
1814 | if (!SWIG_AsVal_double(obj, &v)) { | |
1815 | /* | |
093d3ff1 | 1816 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1817 | */ |
1818 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 1819 | } |
c32bde28 RD |
1820 | return v; |
1821 | } | |
1822 | ||
1823 | ||
093d3ff1 | 1824 | SWIGINTERNSHORT int |
c32bde28 RD |
1825 | SWIG_Check_double(PyObject* obj) |
1826 | { | |
1827 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
1828 | } |
1829 | ||
093d3ff1 RD |
1830 | |
1831 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
1832 | #define SWIG_From_double PyFloat_FromDouble | |
1833 | /*@@*/ | |
1834 | ||
1835 | static void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
d55e5bfc RD |
1836 | self->x = x; |
1837 | self->y = y; | |
1838 | } | |
093d3ff1 | 1839 | static PyObject *wxRealPoint_Get(wxRealPoint *self){ |
d55e5bfc RD |
1840 | bool blocked = wxPyBeginBlockThreads(); |
1841 | PyObject* tup = PyTuple_New(2); | |
1842 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
1843 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
1844 | wxPyEndBlockThreads(blocked); | |
1845 | return tup; | |
1846 | } | |
1847 | ||
093d3ff1 | 1848 | SWIGINTERNSHORT long |
c32bde28 | 1849 | SWIG_As_long(PyObject* obj) |
d55e5bfc | 1850 | { |
c32bde28 RD |
1851 | long v; |
1852 | if (!SWIG_AsVal_long(obj, &v)) { | |
1853 | /* | |
093d3ff1 | 1854 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1855 | */ |
1856 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 1857 | } |
c32bde28 RD |
1858 | return v; |
1859 | } | |
1860 | ||
1861 | ||
093d3ff1 | 1862 | SWIGINTERNSHORT int |
c32bde28 RD |
1863 | SWIG_Check_long(PyObject* obj) |
1864 | { | |
1865 | return SWIG_AsVal_long(obj, (long*)0); | |
d55e5bfc RD |
1866 | } |
1867 | ||
093d3ff1 | 1868 | static void wxPoint_Set(wxPoint *self,long x,long y){ |
d55e5bfc RD |
1869 | self->x = x; |
1870 | self->y = y; | |
1871 | } | |
093d3ff1 | 1872 | static PyObject *wxPoint_Get(wxPoint *self){ |
d55e5bfc RD |
1873 | bool blocked = wxPyBeginBlockThreads(); |
1874 | PyObject* tup = PyTuple_New(2); | |
1875 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1876 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1877 | wxPyEndBlockThreads(blocked); | |
1878 | return tup; | |
1879 | } | |
093d3ff1 | 1880 | static void wxRect_Set(wxRect *self,int x=0,int y=0,int width=0,int height=0){ |
d55e5bfc RD |
1881 | self->x = x; |
1882 | self->y = y; | |
1883 | self->width = width; | |
1884 | self->height = height; | |
1885 | } | |
093d3ff1 | 1886 | static PyObject *wxRect_Get(wxRect *self){ |
d55e5bfc RD |
1887 | bool blocked = wxPyBeginBlockThreads(); |
1888 | PyObject* tup = PyTuple_New(4); | |
1889 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1890 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1891 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
1892 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
1893 | wxPyEndBlockThreads(blocked); | |
1894 | return tup; | |
1895 | } | |
1896 | ||
1897 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
1898 | wxRegion reg1(*r1); | |
1899 | wxRegion reg2(*r2); | |
1900 | wxRect dest(0,0,0,0); | |
1901 | PyObject* obj; | |
1902 | ||
1903 | reg1.Intersect(reg2); | |
1904 | dest = reg1.GetBox(); | |
1905 | ||
1906 | if (dest != wxRect(0,0,0,0)) { | |
1907 | bool blocked = wxPyBeginBlockThreads(); | |
1908 | wxRect* newRect = new wxRect(dest); | |
ae8162c8 | 1909 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true); |
d55e5bfc RD |
1910 | wxPyEndBlockThreads(blocked); |
1911 | return obj; | |
1912 | } | |
1913 | Py_INCREF(Py_None); | |
1914 | return Py_None; | |
1915 | } | |
1916 | ||
1917 | ||
c32bde28 | 1918 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
1919 | PyObject* o2; |
1920 | PyObject* o3; | |
c32bde28 | 1921 | |
d55e5bfc RD |
1922 | if (!target) { |
1923 | target = o; | |
1924 | } else if (target == Py_None) { | |
1925 | Py_DECREF(Py_None); | |
1926 | target = o; | |
7e63a440 RD |
1927 | } else { |
1928 | if (!PyTuple_Check(target)) { | |
1929 | o2 = target; | |
1930 | target = PyTuple_New(1); | |
1931 | PyTuple_SetItem(target, 0, o2); | |
1932 | } | |
d55e5bfc RD |
1933 | o3 = PyTuple_New(1); |
1934 | PyTuple_SetItem(o3, 0, o); | |
1935 | ||
1936 | o2 = target; | |
1937 | target = PySequence_Concat(o2, o3); | |
1938 | Py_DECREF(o2); | |
1939 | Py_DECREF(o3); | |
1940 | } | |
1941 | return target; | |
7e63a440 | 1942 | } |
d55e5bfc | 1943 | |
c32bde28 | 1944 | |
093d3ff1 | 1945 | static void wxPoint2D_Set(wxPoint2D *self,double x=0,double y=0){ |
d55e5bfc RD |
1946 | self->m_x = x; |
1947 | self->m_y = y; | |
1948 | } | |
093d3ff1 | 1949 | static PyObject *wxPoint2D_Get(wxPoint2D *self){ |
d55e5bfc RD |
1950 | bool blocked = wxPyBeginBlockThreads(); |
1951 | PyObject* tup = PyTuple_New(2); | |
1952 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
1953 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
1954 | wxPyEndBlockThreads(blocked); | |
1955 | return tup; | |
1956 | } | |
1957 | ||
1958 | #include "wx/wxPython/pyistream.h" | |
1959 | ||
093d3ff1 | 1960 | static wxPyInputStream *new_wxPyInputStream(PyObject *p){ |
d55e5bfc RD |
1961 | wxInputStream* wxis = wxPyCBInputStream::create(p); |
1962 | if (wxis) | |
1963 | return new wxPyInputStream(wxis); | |
1964 | else | |
1965 | return NULL; | |
1966 | } | |
1967 | ||
093d3ff1 | 1968 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1969 | SWIG_From_char(char c) |
d55e5bfc RD |
1970 | { |
1971 | return PyString_FromStringAndSize(&c,1); | |
1972 | } | |
1973 | ||
1974 | ||
093d3ff1 | 1975 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1976 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
1977 | { |
1978 | return (value > LONG_MAX) ? | |
1979 | PyLong_FromUnsignedLong(value) | |
093d3ff1 | 1980 | : PyInt_FromLong((long)(value)); |
d55e5bfc RD |
1981 | } |
1982 | ||
1983 | ||
c32bde28 | 1984 | /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */ |
093d3ff1 | 1985 | SWIGINTERN int |
c32bde28 | 1986 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize) |
d55e5bfc RD |
1987 | { |
1988 | static swig_type_info* pchar_info = 0; | |
c32bde28 | 1989 | char* vptr = 0; |
d55e5bfc | 1990 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); |
c32bde28 RD |
1991 | if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) { |
1992 | if (cptr) *cptr = vptr; | |
1993 | if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; | |
1994 | return SWIG_OLDOBJ; | |
d55e5bfc | 1995 | } else { |
093d3ff1 | 1996 | PyErr_Clear(); |
c32bde28 RD |
1997 | if (PyString_Check(obj)) { |
1998 | if (cptr) { | |
1999 | *cptr = PyString_AS_STRING(obj); | |
2000 | if (psize) { | |
2001 | *psize = PyString_GET_SIZE(obj) + 1; | |
2002 | } | |
2003 | } | |
2004 | return SWIG_PYSTR; | |
2005 | } | |
d55e5bfc | 2006 | } |
c32bde28 | 2007 | if (cptr) { |
093d3ff1 | 2008 | SWIG_type_error("char *", obj); |
c32bde28 RD |
2009 | } |
2010 | return 0; | |
d55e5bfc RD |
2011 | } |
2012 | ||
2013 | ||
093d3ff1 | 2014 | SWIGINTERN int |
c32bde28 | 2015 | SWIG_AsCharArray(PyObject *obj, char *val, size_t size) |
d55e5bfc RD |
2016 | { |
2017 | char* cptr; size_t csize; | |
c32bde28 RD |
2018 | if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) { |
2019 | /* in C you can do: | |
2020 | ||
d55e5bfc RD |
2021 | char x[5] = "hello"; |
2022 | ||
2023 | ie, assing the array using an extra '0' char. | |
2024 | */ | |
d55e5bfc | 2025 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; |
c32bde28 RD |
2026 | if (csize <= size) { |
2027 | if (val) { | |
2028 | if (csize) memcpy(val, cptr, csize); | |
2029 | if (csize < size) memset(val + csize, 0, size - csize); | |
2030 | } | |
2031 | return 1; | |
d55e5bfc RD |
2032 | } |
2033 | } | |
c32bde28 | 2034 | if (val) { |
093d3ff1 RD |
2035 | PyErr_Format(PyExc_TypeError, |
2036 | "a char array of maximum size %lu is expected", | |
2037 | (unsigned long) size); | |
c32bde28 RD |
2038 | } |
2039 | return 0; | |
d55e5bfc RD |
2040 | } |
2041 | ||
2042 | ||
093d3ff1 | 2043 | SWIGINTERN int |
c32bde28 RD |
2044 | SWIG_AsVal_char(PyObject *obj, char *val) |
2045 | { | |
093d3ff1 | 2046 | const char* errmsg = val ? "char" : (char*)0; |
c32bde28 RD |
2047 | long v; |
2048 | if (SWIG_AsVal_long(obj, &v)) { | |
2049 | if (SWIG_CheckLongInRange(v, CHAR_MIN,CHAR_MAX, errmsg)) { | |
093d3ff1 | 2050 | if (val) *val = (char)(v); |
c32bde28 RD |
2051 | return 1; |
2052 | } else { | |
2053 | return 0; | |
2054 | } | |
2055 | } else { | |
2056 | PyErr_Clear(); | |
2057 | return SWIG_AsCharArray(obj, val, 1); | |
2058 | } | |
2059 | } | |
2060 | ||
2061 | ||
093d3ff1 | 2062 | SWIGINTERNSHORT char |
c32bde28 RD |
2063 | SWIG_As_char(PyObject* obj) |
2064 | { | |
2065 | char v; | |
2066 | if (!SWIG_AsVal_char(obj, &v)) { | |
2067 | /* | |
093d3ff1 | 2068 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2069 | */ |
2070 | memset((void*)&v, 0, sizeof(char)); | |
d55e5bfc | 2071 | } |
c32bde28 | 2072 | return v; |
d55e5bfc RD |
2073 | } |
2074 | ||
c32bde28 | 2075 | |
093d3ff1 | 2076 | SWIGINTERNSHORT int |
c32bde28 | 2077 | SWIG_Check_char(PyObject* obj) |
d55e5bfc | 2078 | { |
c32bde28 | 2079 | return SWIG_AsVal_char(obj, (char*)0); |
d55e5bfc RD |
2080 | } |
2081 | ||
093d3ff1 RD |
2082 | |
2083 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
2084 | #define SWIG_From_long PyInt_FromLong | |
2085 | /*@@*/ | |
2086 | ||
2087 | static void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
d55e5bfc RD |
2088 | // We use only strings for the streams, not unicode |
2089 | PyObject* str = PyObject_Str(obj); | |
2090 | if (! str) { | |
2091 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
2092 | return; | |
2093 | } | |
2094 | self->Write(PyString_AS_STRING(str), | |
2095 | PyString_GET_SIZE(str)); | |
2096 | Py_DECREF(str); | |
2097 | } | |
2098 | ||
2099 | #include "wx/wxPython/pyistream.h" | |
2100 | ||
2101 | ||
2102 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
2103 | { | |
2104 | public: | |
2105 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
2106 | ||
2107 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
2108 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
2109 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
2110 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
2111 | ||
2112 | wxString GetProtocol(const wxString& location) { | |
2113 | return wxFileSystemHandler::GetProtocol(location); | |
2114 | } | |
2115 | ||
2116 | wxString GetLeftLocation(const wxString& location) { | |
2117 | return wxFileSystemHandler::GetLeftLocation(location); | |
2118 | } | |
2119 | ||
2120 | wxString GetAnchor(const wxString& location) { | |
2121 | return wxFileSystemHandler::GetAnchor(location); | |
2122 | } | |
2123 | ||
2124 | wxString GetRightLocation(const wxString& location) { | |
2125 | return wxFileSystemHandler::GetRightLocation(location); | |
2126 | } | |
2127 | ||
2128 | wxString GetMimeTypeFromExt(const wxString& location) { | |
2129 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
2130 | } | |
2131 | ||
2132 | PYPRIVATE; | |
2133 | }; | |
2134 | ||
2135 | ||
2136 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
2137 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
2138 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
2139 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
2140 | ||
2141 | ||
093d3ff1 | 2142 | SWIGINTERN int |
c32bde28 | 2143 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
d55e5bfc | 2144 | { |
c32bde28 RD |
2145 | if (obj == Py_True) { |
2146 | if (val) *val = true; | |
2147 | return 1; | |
2148 | } | |
2149 | if (obj == Py_False) { | |
2150 | if (val) *val = false; | |
2151 | return 1; | |
2152 | } | |
2153 | int res = 0; | |
2154 | if (SWIG_AsVal_int(obj, &res)) { | |
093d3ff1 | 2155 | if (val) *val = res ? true : false; |
c32bde28 | 2156 | return 1; |
093d3ff1 RD |
2157 | } else { |
2158 | PyErr_Clear(); | |
2159 | } | |
c32bde28 | 2160 | if (val) { |
093d3ff1 | 2161 | SWIG_type_error("bool", obj); |
c32bde28 RD |
2162 | } |
2163 | return 0; | |
d55e5bfc RD |
2164 | } |
2165 | ||
2166 | ||
093d3ff1 | 2167 | SWIGINTERNSHORT bool |
c32bde28 | 2168 | SWIG_As_bool(PyObject* obj) |
d55e5bfc | 2169 | { |
c32bde28 RD |
2170 | bool v; |
2171 | if (!SWIG_AsVal_bool(obj, &v)) { | |
2172 | /* | |
093d3ff1 | 2173 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2174 | */ |
2175 | memset((void*)&v, 0, sizeof(bool)); | |
d55e5bfc | 2176 | } |
c32bde28 RD |
2177 | return v; |
2178 | } | |
2179 | ||
2180 | ||
093d3ff1 | 2181 | SWIGINTERNSHORT int |
c32bde28 RD |
2182 | SWIG_Check_bool(PyObject* obj) |
2183 | { | |
2184 | return SWIG_AsVal_bool(obj, (bool*)0); | |
d55e5bfc RD |
2185 | } |
2186 | ||
093d3ff1 | 2187 | static wxString FileSystem_URLToFileName(wxString const &url){ |
ae8162c8 RD |
2188 | wxFileName fname = wxFileSystem::URLToFileName(url); |
2189 | return fname.GetFullPath(); | |
2190 | } | |
d55e5bfc RD |
2191 | |
2192 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
2193 | wxImage& image, | |
2194 | long type) { | |
2195 | wxMemoryFSHandler::AddFile(filename, image, type); | |
2196 | } | |
2197 | ||
2198 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
2199 | const wxBitmap& bitmap, | |
2200 | long type) { | |
2201 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
2202 | } | |
2203 | ||
2204 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
2205 | PyObject* data) { | |
ae8162c8 RD |
2206 | if (! PyString_Check(data)) { |
2207 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
2208 | "Expected string object")); | |
2209 | return; | |
2210 | } | |
2211 | ||
2212 | bool blocked = wxPyBeginBlockThreads(); | |
2213 | void* ptr = (void*)PyString_AsString(data); | |
2214 | size_t size = PyString_Size(data); | |
2215 | wxPyEndBlockThreads(blocked); | |
2216 | ||
2217 | wxMemoryFSHandler::AddFile(filename, ptr, size); | |
d55e5bfc RD |
2218 | } |
2219 | ||
2220 | ||
2221 | #include "wx/wxPython/pyistream.h" | |
2222 | ||
2223 | ||
093d3ff1 | 2224 | SWIGINTERN int |
c32bde28 | 2225 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
d55e5bfc | 2226 | { |
c32bde28 RD |
2227 | long v = 0; |
2228 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
093d3ff1 | 2229 | SWIG_type_error("unsigned number", obj); |
d55e5bfc | 2230 | } |
c32bde28 RD |
2231 | else if (val) |
2232 | *val = (unsigned long)v; | |
2233 | return 1; | |
d55e5bfc RD |
2234 | } |
2235 | ||
2236 | ||
093d3ff1 | 2237 | SWIGINTERNSHORT int |
c32bde28 RD |
2238 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
2239 | unsigned long max_value, | |
2240 | const char *errmsg) | |
d55e5bfc | 2241 | { |
c32bde28 RD |
2242 | if (value > max_value) { |
2243 | if (errmsg) { | |
2244 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 2245 | "value %lu is greater than '%s' minimum %lu", |
c32bde28 | 2246 | value, errmsg, max_value); |
d55e5bfc | 2247 | } |
c32bde28 | 2248 | return 0; |
d55e5bfc | 2249 | } |
c32bde28 RD |
2250 | return 1; |
2251 | } | |
d55e5bfc RD |
2252 | |
2253 | ||
093d3ff1 | 2254 | SWIGINTERN int |
c32bde28 | 2255 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) |
d55e5bfc | 2256 | { |
093d3ff1 | 2257 | const char* errmsg = val ? "unsigned char" : (char*)0; |
c32bde28 RD |
2258 | unsigned long v; |
2259 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2260 | if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) { | |
093d3ff1 | 2261 | if (val) *val = (unsigned char)(v); |
c32bde28 RD |
2262 | return 1; |
2263 | } else { | |
2264 | return 0; | |
2265 | } | |
2266 | } else { | |
2267 | PyErr_Clear(); | |
2268 | } | |
2269 | if (val) { | |
093d3ff1 | 2270 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2271 | } |
2272 | return 0; | |
d55e5bfc RD |
2273 | } |
2274 | ||
2275 | ||
093d3ff1 | 2276 | SWIGINTERNSHORT unsigned char |
c32bde28 | 2277 | SWIG_As_unsigned_SS_char(PyObject* obj) |
d55e5bfc | 2278 | { |
c32bde28 RD |
2279 | unsigned char v; |
2280 | if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) { | |
2281 | /* | |
093d3ff1 | 2282 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2283 | */ |
2284 | memset((void*)&v, 0, sizeof(unsigned char)); | |
d55e5bfc | 2285 | } |
c32bde28 | 2286 | return v; |
d55e5bfc RD |
2287 | } |
2288 | ||
c32bde28 | 2289 | |
093d3ff1 | 2290 | SWIGINTERNSHORT int |
c32bde28 RD |
2291 | SWIG_Check_unsigned_SS_char(PyObject* obj) |
2292 | { | |
2293 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); | |
2294 | } | |
2295 | ||
2296 | ||
093d3ff1 RD |
2297 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
2298 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
2299 | /*@@*/ | |
2300 | ||
2301 | ||
2302 | static wxImage *new_wxImage(int width=0,int height=0,bool clear=true){ | |
d55e5bfc RD |
2303 | if (width > 0 && height > 0) |
2304 | return new wxImage(width, height, clear); | |
2305 | else | |
2306 | return new wxImage; | |
2307 | } | |
093d3ff1 | 2308 | static wxImage *new_wxImage(wxBitmap const &bitmap){ |
d55e5bfc RD |
2309 | return new wxImage(bitmap.ConvertToImage()); |
2310 | } | |
093d3ff1 | 2311 | static wxImage *new_wxImage(int width,int height,unsigned char *data){ |
d55e5bfc RD |
2312 | // Copy the source data so the wxImage can clean it up later |
2313 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
2314 | if (copy == NULL) { | |
2315 | PyErr_NoMemory(); | |
2316 | return NULL; | |
2317 | } | |
2318 | memcpy(copy, data, width*height*3); | |
ae8162c8 | 2319 | return new wxImage(width, height, copy, false); |
d55e5bfc | 2320 | } |
093d3ff1 | 2321 | static wxImage *new_wxImage(int width,int height,unsigned char *data,unsigned char *alpha){ |
c9c2cf70 RD |
2322 | // Copy the source data so the wxImage can clean it up later |
2323 | unsigned char* dcopy = (unsigned char*)malloc(width*height*3); | |
2324 | if (dcopy == NULL) { | |
2325 | PyErr_NoMemory(); | |
2326 | return NULL; | |
2327 | } | |
2328 | memcpy(dcopy, data, width*height*3); | |
2329 | unsigned char* acopy = (unsigned char*)malloc(width*height); | |
2330 | if (acopy == NULL) { | |
2331 | PyErr_NoMemory(); | |
2332 | return NULL; | |
2333 | } | |
2334 | memcpy(acopy, alpha, width*height); | |
2335 | ||
2336 | return new wxImage(width, height, dcopy, acopy, false); | |
2337 | } | |
093d3ff1 | 2338 | static wxSize wxImage_GetSize(wxImage *self){ |
d55e5bfc RD |
2339 | wxSize size(self->GetWidth(), self->GetHeight()); |
2340 | return size; | |
2341 | } | |
093d3ff1 | 2342 | static PyObject *wxImage_GetData(wxImage *self){ |
d55e5bfc RD |
2343 | unsigned char* data = self->GetData(); |
2344 | int len = self->GetWidth() * self->GetHeight() * 3; | |
2345 | PyObject* rv; | |
2346 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
2347 | return rv; | |
2348 | } | |
093d3ff1 | 2349 | static void wxImage_SetData(wxImage *self,PyObject *data){ |
d55e5bfc RD |
2350 | unsigned char* dataPtr; |
2351 | ||
2352 | if (! PyString_Check(data)) { | |
ae8162c8 RD |
2353 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, |
2354 | "Expected string object")); | |
d55e5bfc RD |
2355 | return /* NULL */ ; |
2356 | } | |
2357 | ||
2358 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
2359 | dataPtr = (unsigned char*) malloc(len); | |
2360 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
2361 | self->SetData(dataPtr); | |
2362 | // wxImage takes ownership of dataPtr... | |
2363 | } | |
093d3ff1 | 2364 | static PyObject *wxImage_GetDataBuffer(wxImage *self){ |
d55e5bfc RD |
2365 | unsigned char* data = self->GetData(); |
2366 | int len = self->GetWidth() * self->GetHeight() * 3; | |
2367 | PyObject* rv; | |
2368 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
2369 | return rv; | |
2370 | } | |
093d3ff1 | 2371 | static void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ |
d55e5bfc RD |
2372 | unsigned char* buffer; |
2373 | int size; | |
2374 | ||
2375 | bool blocked = wxPyBeginBlockThreads(); | |
2376 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
2377 | goto done; | |
2378 | ||
2379 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
2380 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
2381 | goto done; | |
2382 | } | |
2383 | self->SetData(buffer); | |
2384 | done: | |
2385 | wxPyEndBlockThreads(blocked); | |
2386 | } | |
093d3ff1 | 2387 | static PyObject *wxImage_GetAlphaData(wxImage *self){ |
d55e5bfc RD |
2388 | unsigned char* data = self->GetAlpha(); |
2389 | if (! data) { | |
2390 | RETURN_NONE(); | |
2391 | } else { | |
2392 | int len = self->GetWidth() * self->GetHeight(); | |
2393 | PyObject* rv; | |
2394 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
2395 | return rv; | |
2396 | } | |
2397 | } | |
093d3ff1 | 2398 | static void wxImage_SetAlphaData(wxImage *self,PyObject *data){ |
d55e5bfc RD |
2399 | unsigned char* dataPtr; |
2400 | ||
2401 | if (! PyString_Check(data)) { | |
2402 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
2403 | return /* NULL */ ; | |
2404 | } | |
2405 | ||
2406 | size_t len = self->GetWidth() * self->GetHeight(); | |
2407 | dataPtr = (unsigned char*) malloc(len); | |
2408 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
2409 | self->SetAlpha(dataPtr); | |
2410 | // wxImage takes ownership of dataPtr... | |
2411 | } | |
093d3ff1 | 2412 | static PyObject *wxImage_GetAlphaBuffer(wxImage *self){ |
d55e5bfc RD |
2413 | unsigned char* data = self->GetAlpha(); |
2414 | int len = self->GetWidth() * self->GetHeight(); | |
2415 | PyObject* rv; | |
2416 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
2417 | return rv; | |
2418 | } | |
093d3ff1 | 2419 | static void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ |
d55e5bfc RD |
2420 | unsigned char* buffer; |
2421 | int size; | |
2422 | ||
2423 | bool blocked = wxPyBeginBlockThreads(); | |
2424 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
2425 | goto done; | |
2426 | ||
2427 | if (size != self->GetWidth() * self->GetHeight()) { | |
2428 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
2429 | goto done; | |
2430 | } | |
2431 | self->SetAlpha(buffer); | |
2432 | done: | |
2433 | wxPyEndBlockThreads(blocked); | |
2434 | } | |
2435 | ||
093d3ff1 | 2436 | SWIGINTERNSHORT unsigned long |
c32bde28 | 2437 | SWIG_As_unsigned_SS_long(PyObject* obj) |
d55e5bfc | 2438 | { |
c32bde28 RD |
2439 | unsigned long v; |
2440 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2441 | /* | |
093d3ff1 | 2442 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2443 | */ |
2444 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 2445 | } |
c32bde28 RD |
2446 | return v; |
2447 | } | |
2448 | ||
2449 | ||
093d3ff1 | 2450 | SWIGINTERNSHORT int |
c32bde28 RD |
2451 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
2452 | { | |
2453 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
2454 | } |
2455 | ||
093d3ff1 | 2456 | static wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth=-1){ |
1fbf26be | 2457 | wxBitmap bitmap(*self, depth); |
d55e5bfc RD |
2458 | return bitmap; |
2459 | } | |
093d3ff1 | 2460 | static wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ |
d55e5bfc RD |
2461 | wxImage mono = self->ConvertToMono( red, green, blue ); |
2462 | wxBitmap bitmap( mono, 1 ); | |
2463 | return bitmap; | |
2464 | } | |
2465 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
2466 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
2467 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
2468 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
2469 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
c0de73ae RD |
2470 | |
2471 | #include <wx/quantize.h> | |
2472 | ||
093d3ff1 | 2473 | static bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours=236,int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE){ |
c0de73ae RD |
2474 | return wxQuantize::Quantize(src, dest, |
2475 | //NULL, // palette | |
2476 | desiredNoColours, | |
2477 | NULL, // eightBitData | |
2478 | flags); | |
2479 | } | |
093d3ff1 | 2480 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
d55e5bfc RD |
2481 | if (PyCallable_Check(func)) { |
2482 | self->Connect(id, lastId, eventType, | |
2483 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
2484 | new wxPyCallback(func)); | |
2485 | } | |
2486 | else if (func == Py_None) { | |
2487 | self->Disconnect(id, lastId, eventType, | |
2488 | (wxObjectEventFunction) | |
2489 | &wxPyCallback::EventThunker); | |
2490 | } | |
2491 | else { | |
2492 | wxPyBLOCK_THREADS( | |
2493 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
2494 | } | |
2495 | } | |
093d3ff1 | 2496 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId=-1,wxEventType eventType=wxEVT_NULL){ |
d55e5bfc RD |
2497 | return self->Disconnect(id, lastId, eventType, |
2498 | (wxObjectEventFunction) | |
2499 | &wxPyCallback::EventThunker); | |
2500 | } | |
093d3ff1 | 2501 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self,bool incref=true){ |
d55e5bfc | 2502 | if (_self && _self != Py_None) { |
093d3ff1 | 2503 | self->SetClientObject(new wxPyOORClientData(_self, incref)); |
d55e5bfc RD |
2504 | } |
2505 | else { | |
2506 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
2507 | if (data) { | |
2508 | self->SetClientObject(NULL); // This will delete it too | |
2509 | } | |
2510 | } | |
2511 | } | |
c32bde28 | 2512 | |
093d3ff1 | 2513 | static int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
d55e5bfc | 2514 | #if wxUSE_UNICODE |
19272049 | 2515 | return self->GetUnicodeKey(); |
d55e5bfc RD |
2516 | #else |
2517 | return 0; | |
2518 | #endif | |
2519 | } | |
2520 | ||
2521 | #if UINT_MAX < LONG_MAX | |
093d3ff1 | 2522 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
2523 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
2524 | /*@@*/ | |
d55e5bfc | 2525 | #else |
093d3ff1 | 2526 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
2527 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
2528 | /*@@*/ | |
d55e5bfc RD |
2529 | #endif |
2530 | ||
2531 | ||
2532 | #if UINT_MAX != ULONG_MAX | |
093d3ff1 | 2533 | SWIGINTERN int |
c32bde28 | 2534 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
d55e5bfc | 2535 | { |
093d3ff1 | 2536 | const char* errmsg = val ? "unsigned int" : (char*)0; |
c32bde28 RD |
2537 | unsigned long v; |
2538 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2539 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
093d3ff1 | 2540 | if (val) *val = (unsigned int)(v); |
c32bde28 RD |
2541 | return 1; |
2542 | } | |
2543 | } else { | |
2544 | PyErr_Clear(); | |
2545 | } | |
2546 | if (val) { | |
093d3ff1 | 2547 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2548 | } |
2549 | return 0; | |
d55e5bfc RD |
2550 | } |
2551 | #else | |
093d3ff1 | 2552 | SWIGINTERNSHORT unsigned int |
c32bde28 RD |
2553 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2554 | { | |
2555 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2556 | } | |
d55e5bfc RD |
2557 | #endif |
2558 | ||
2559 | ||
093d3ff1 | 2560 | SWIGINTERNSHORT unsigned int |
c32bde28 | 2561 | SWIG_As_unsigned_SS_int(PyObject* obj) |
d55e5bfc | 2562 | { |
c32bde28 RD |
2563 | unsigned int v; |
2564 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2565 | /* | |
093d3ff1 | 2566 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2567 | */ |
2568 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 2569 | } |
c32bde28 RD |
2570 | return v; |
2571 | } | |
2572 | ||
2573 | ||
093d3ff1 | 2574 | SWIGINTERNSHORT int |
c32bde28 RD |
2575 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
2576 | { | |
2577 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
2578 | } |
2579 | ||
093d3ff1 | 2580 | static void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
d55e5bfc RD |
2581 | self->m_size = size; |
2582 | } | |
093d3ff1 | 2583 | static PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ |
d55e5bfc RD |
2584 | int count = self->GetNumberOfFiles(); |
2585 | wxString* files = self->GetFiles(); | |
2586 | PyObject* list = PyList_New(count); | |
2587 | ||
2588 | if (!list) { | |
2589 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
2590 | return NULL; | |
2591 | } | |
2592 | ||
2593 | for (int i=0; i<count; i++) { | |
2594 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
2595 | } | |
2596 | return list; | |
2597 | } | |
2598 | ||
2599 | ||
093d3ff1 | 2600 | static wxPyApp *new_wxPyApp(){ |
d55e5bfc RD |
2601 | wxPythonApp = new wxPyApp(); |
2602 | return wxPythonApp; | |
2603 | } | |
2604 | ||
2605 | void wxApp_CleanUp() { | |
2606 | __wxPyCleanup(); | |
2607 | } | |
2608 | ||
2609 | ||
caef1a4d | 2610 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
2611 | |
2612 | ||
093d3ff1 | 2613 | SWIGINTERNSHORT int |
5cbf236d RD |
2614 | SWIG_AsCharPtr(PyObject *obj, char **val) |
2615 | { | |
093d3ff1 | 2616 | if (SWIG_AsCharPtrAndSize(obj, val, (size_t*)(0))) { |
5cbf236d RD |
2617 | return 1; |
2618 | } | |
2619 | if (val) { | |
093d3ff1 RD |
2620 | PyErr_Clear(); |
2621 | SWIG_type_error("char *", obj); | |
5cbf236d RD |
2622 | } |
2623 | return 0; | |
2624 | } | |
2625 | ||
2626 | ||
093d3ff1 | 2627 | SWIGINTERN PyObject * |
5cbf236d RD |
2628 | SWIG_FromCharPtr(const char* cptr) |
2629 | { | |
2630 | if (cptr) { | |
2631 | size_t size = strlen(cptr); | |
2632 | if (size > INT_MAX) { | |
093d3ff1 | 2633 | return SWIG_NewPointerObj((char*)(cptr), |
5cbf236d RD |
2634 | SWIG_TypeQuery("char *"), 0); |
2635 | } else { | |
2636 | if (size != 0) { | |
2637 | return PyString_FromStringAndSize(cptr, size); | |
2638 | } else { | |
2639 | return PyString_FromString(cptr); | |
2640 | } | |
2641 | } | |
2642 | } | |
2643 | Py_INCREF(Py_None); | |
2644 | return Py_None; | |
2645 | } | |
2646 | ||
2647 | ||
ae8162c8 RD |
2648 | #ifdef __WXMAC__ |
2649 | ||
2650 | // A dummy class that raises an exception if used... | |
2651 | class wxEventLoop | |
2652 | { | |
2653 | public: | |
2654 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
2655 | int Run() { return 0; } | |
2656 | void Exit(int rc = 0) {} | |
2657 | bool Pending() const { return false; } | |
2658 | bool Dispatch() { return false; } | |
2659 | bool IsRunning() const { return false; } | |
2660 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
2661 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
2662 | }; | |
2663 | ||
2664 | #else | |
2665 | ||
2666 | #include <wx/evtloop.h> | |
2667 | ||
2668 | #endif | |
2669 | ||
2670 | ||
d55e5bfc RD |
2671 | |
2672 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
093d3ff1 RD |
2673 | static wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } |
2674 | static void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } | |
2675 | static PyObject *wxWindow_GetChildren(wxWindow *self){ | |
d55e5bfc RD |
2676 | wxWindowList& list = self->GetChildren(); |
2677 | return wxPy_ConvertList(&list); | |
2678 | } | |
093d3ff1 | 2679 | static bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ |
d55e5bfc RD |
2680 | #if wxUSE_HOTKEY |
2681 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
2682 | #else | |
ae8162c8 | 2683 | return false; |
d55e5bfc RD |
2684 | #endif |
2685 | } | |
093d3ff1 | 2686 | static bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ |
d55e5bfc RD |
2687 | |
2688 | ||
2689 | ||
ae8162c8 | 2690 | return false; |
d55e5bfc RD |
2691 | |
2692 | } | |
093d3ff1 | 2693 | static long wxWindow_GetHandle(wxWindow *self){ |
d55e5bfc RD |
2694 | return wxPyGetWinHandle(self); |
2695 | } | |
093d3ff1 | 2696 | static void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
7e63a440 RD |
2697 | self->AssociateHandle((WXWidget)handle); |
2698 | } | |
d55e5bfc RD |
2699 | |
2700 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
2701 | return wxWindow::FindWindowById(id, parent); | |
2702 | } | |
2703 | ||
2704 | wxWindow* wxFindWindowByName( const wxString& name, | |
2705 | const wxWindow *parent = NULL ) { | |
2706 | return wxWindow::FindWindowByName(name, parent); | |
2707 | } | |
2708 | ||
2709 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
2710 | const wxWindow *parent = NULL ) { | |
2711 | return wxWindow::FindWindowByLabel(label, parent); | |
2712 | } | |
2713 | ||
2714 | ||
2715 | #ifdef __WXMSW__ | |
2716 | #include <wx/msw/private.h> // to get wxGetWindowId | |
2717 | #endif | |
2718 | ||
2719 | ||
2720 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
2721 | #ifdef __WXMSW__ | |
2722 | WXHWND hWnd = (WXHWND)_hWnd; | |
2723 | long id = wxGetWindowId(hWnd); | |
2724 | wxWindow* win = new wxWindow; | |
2725 | parent->AddChild(win); | |
2726 | win->SetEventHandler(win); | |
2727 | win->SetHWND(hWnd); | |
2728 | win->SetId(id); | |
2729 | win->SubclassWin(hWnd); | |
2730 | win->AdoptAttributesFromHWND(); | |
2731 | win->SetupColours(); | |
2732 | return win; | |
2733 | #else | |
2734 | wxPyRaiseNotImplemented(); | |
2735 | return NULL; | |
2736 | #endif | |
2737 | } | |
2738 | ||
2739 | ||
2740 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
2741 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
2742 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
2743 | ||
2744 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
2745 | ||
093d3ff1 RD |
2746 | static void wxMenu_Destroy(wxMenu *self){ delete self; } |
2747 | static PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
d55e5bfc RD |
2748 | wxMenuItemList& list = self->GetMenuItems(); |
2749 | return wxPy_ConvertList(&list); | |
2750 | } | |
2751 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
093d3ff1 | 2752 | static int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData=NULL){ |
d55e5bfc RD |
2753 | if (clientData) { |
2754 | wxPyClientData* data = new wxPyClientData(clientData); | |
2755 | return self->Append(item, data); | |
2756 | } else | |
2757 | return self->Append(item); | |
2758 | } | |
093d3ff1 | 2759 | static int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d55e5bfc RD |
2760 | if (clientData) { |
2761 | wxPyClientData* data = new wxPyClientData(clientData); | |
2762 | return self->Insert(item, pos, data); | |
2763 | } else | |
2764 | return self->Insert(item, pos); | |
2765 | } | |
093d3ff1 | 2766 | static PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ |
d55e5bfc RD |
2767 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); |
2768 | if (data) { | |
2769 | Py_INCREF(data->m_obj); | |
2770 | return data->m_obj; | |
2771 | } else { | |
2772 | Py_INCREF(Py_None); | |
2773 | return Py_None; | |
2774 | } | |
2775 | } | |
093d3ff1 | 2776 | static void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ |
d55e5bfc RD |
2777 | wxPyClientData* data = new wxPyClientData(clientData); |
2778 | self->SetClientObject(n, data); | |
2779 | } | |
2780 | ||
2781 | ||
093d3ff1 | 2782 | static wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2783 | wxPyUserData* data = NULL; |
2784 | if ( userData ) { | |
2785 | bool blocked = wxPyBeginBlockThreads(); | |
2786 | data = new wxPyUserData(userData); | |
2787 | wxPyEndBlockThreads(blocked); | |
2788 | } | |
2789 | return new wxSizerItem(window, proportion, flag, border, data); | |
2790 | } | |
093d3ff1 | 2791 | static wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2792 | wxPyUserData* data = NULL; |
2793 | if ( userData ) { | |
2794 | bool blocked = wxPyBeginBlockThreads(); | |
2795 | data = new wxPyUserData(userData); | |
2796 | wxPyEndBlockThreads(blocked); | |
2797 | } | |
2798 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
2799 | } | |
093d3ff1 | 2800 | static wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2801 | wxPyUserData* data = NULL; |
2802 | if ( userData ) { | |
2803 | bool blocked = wxPyBeginBlockThreads(); | |
2804 | data = new wxPyUserData(userData); | |
2805 | wxPyEndBlockThreads(blocked); | |
2806 | } | |
2807 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
2808 | } | |
d55e5bfc RD |
2809 | |
2810 | #include <float.h> | |
093d3ff1 | 2811 | SWIGINTERN int |
c32bde28 RD |
2812 | SWIG_CheckDoubleInRange(double value, double min_value, |
2813 | double max_value, const char* errmsg) | |
2814 | { | |
2815 | if (value < min_value) { | |
2816 | if (errmsg) { | |
2817 | PyErr_Format(PyExc_OverflowError, | |
2818 | "value %g is less than %s minimum %g", | |
2819 | value, errmsg, min_value); | |
2820 | } | |
2821 | return 0; | |
2822 | } else if (value > max_value) { | |
2823 | if (errmsg) { | |
2824 | PyErr_Format(PyExc_OverflowError, | |
2825 | "value %g is greater than %s maximum %g", | |
2826 | value, errmsg, max_value); | |
2827 | } | |
2828 | return 0; | |
2829 | } | |
2830 | return 1; | |
2831 | } | |
2832 | ||
d55e5bfc | 2833 | |
093d3ff1 | 2834 | SWIGINTERN int |
c32bde28 | 2835 | SWIG_AsVal_float(PyObject *obj, float *val) |
d55e5bfc | 2836 | { |
093d3ff1 | 2837 | const char* errmsg = val ? "float" : (char*)0; |
c32bde28 RD |
2838 | double v; |
2839 | if (SWIG_AsVal_double(obj, &v)) { | |
2840 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
093d3ff1 | 2841 | if (val) *val = (float)(v); |
c32bde28 | 2842 | return 1; |
d55e5bfc | 2843 | } else { |
c32bde28 | 2844 | return 0; |
d55e5bfc | 2845 | } |
c32bde28 RD |
2846 | } else { |
2847 | PyErr_Clear(); | |
d55e5bfc | 2848 | } |
c32bde28 | 2849 | if (val) { |
093d3ff1 | 2850 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2851 | } |
2852 | return 0; | |
d55e5bfc RD |
2853 | } |
2854 | ||
2855 | ||
093d3ff1 | 2856 | SWIGINTERNSHORT float |
c32bde28 | 2857 | SWIG_As_float(PyObject* obj) |
d55e5bfc | 2858 | { |
c32bde28 RD |
2859 | float v; |
2860 | if (!SWIG_AsVal_float(obj, &v)) { | |
2861 | /* | |
093d3ff1 | 2862 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2863 | */ |
2864 | memset((void*)&v, 0, sizeof(float)); | |
2865 | } | |
2866 | return v; | |
d55e5bfc RD |
2867 | } |
2868 | ||
c32bde28 | 2869 | |
093d3ff1 | 2870 | SWIGINTERNSHORT int |
c32bde28 | 2871 | SWIG_Check_float(PyObject* obj) |
d55e5bfc | 2872 | { |
c32bde28 | 2873 | return SWIG_AsVal_float(obj, (float*)0); |
d55e5bfc RD |
2874 | } |
2875 | ||
093d3ff1 RD |
2876 | |
2877 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
2878 | #define SWIG_From_float PyFloat_FromDouble | |
2879 | /*@@*/ | |
2880 | ||
2881 | static PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
d55e5bfc RD |
2882 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); |
2883 | if (data) { | |
2884 | Py_INCREF(data->m_obj); | |
2885 | return data->m_obj; | |
2886 | } else { | |
2887 | Py_INCREF(Py_None); | |
2888 | return Py_None; | |
2889 | } | |
2890 | } | |
2891 | ||
2892 | // Figure out the type of the sizer item | |
2893 | ||
2894 | struct wxPySizerItemInfo { | |
2895 | wxPySizerItemInfo() | |
ae8162c8 RD |
2896 | : window(NULL), sizer(NULL), gotSize(false), |
2897 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d55e5bfc RD |
2898 | {} |
2899 | ||
2900 | wxWindow* window; | |
2901 | wxSizer* sizer; | |
2902 | bool gotSize; | |
2903 | wxSize size; | |
2904 | bool gotPos; | |
2905 | int pos; | |
2906 | }; | |
2907 | ||
2908 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
2909 | ||
2910 | wxPySizerItemInfo info; | |
2911 | wxSize size; | |
2912 | wxSize* sizePtr = &size; | |
2913 | ||
2914 | // Find out what the type of the item is | |
2915 | // try wxWindow | |
2916 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
2917 | PyErr_Clear(); | |
2918 | info.window = NULL; | |
2919 | ||
2920 | // try wxSizer | |
2921 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
2922 | PyErr_Clear(); | |
2923 | info.sizer = NULL; | |
2924 | ||
2925 | // try wxSize or (w,h) | |
2926 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
2927 | info.size = *sizePtr; | |
ae8162c8 | 2928 | info.gotSize = true; |
d55e5bfc RD |
2929 | } |
2930 | ||
2931 | // or a single int | |
2932 | if (checkIdx && PyInt_Check(item)) { | |
2933 | info.pos = PyInt_AsLong(item); | |
ae8162c8 | 2934 | info.gotPos = true; |
d55e5bfc RD |
2935 | } |
2936 | } | |
2937 | } | |
2938 | ||
2939 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
2940 | // no expected type, figure out what kind of error message to generate | |
2941 | if ( !checkSize && !checkIdx ) | |
2942 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
2943 | else if ( checkSize && !checkIdx ) | |
2944 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
2945 | else if ( !checkSize && checkIdx) | |
2946 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
2947 | else | |
2948 | // can this one happen? | |
2949 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
2950 | } | |
2951 | ||
2952 | return info; | |
2953 | } | |
2954 | ||
093d3ff1 | 2955 | static void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ |
b0f7404b RD |
2956 | if (!self->GetClientObject()) |
2957 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d55e5bfc | 2958 | } |
093d3ff1 | 2959 | static wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
d55e5bfc RD |
2960 | |
2961 | wxPyUserData* data = NULL; | |
2962 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 2963 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2964 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2965 | data = new wxPyUserData(userData); | |
2966 | wxPyEndBlockThreads(blocked); | |
2967 | ||
2968 | // Now call the real Add method if a valid item type was found | |
2969 | if ( info.window ) | |
c1cb24a4 | 2970 | return self->Add(info.window, proportion, flag, border, data); |
d55e5bfc | 2971 | else if ( info.sizer ) |
c1cb24a4 | 2972 | return self->Add(info.sizer, proportion, flag, border, data); |
d55e5bfc | 2973 | else if (info.gotSize) |
c1cb24a4 RD |
2974 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), |
2975 | proportion, flag, border, data); | |
2976 | else | |
2977 | return NULL; | |
d55e5bfc | 2978 | } |
093d3ff1 | 2979 | static wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
d55e5bfc RD |
2980 | |
2981 | wxPyUserData* data = NULL; | |
2982 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 2983 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2984 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2985 | data = new wxPyUserData(userData); | |
2986 | wxPyEndBlockThreads(blocked); | |
2987 | ||
2988 | // Now call the real Insert method if a valid item type was found | |
2989 | if ( info.window ) | |
c1cb24a4 | 2990 | return self->Insert(before, info.window, proportion, flag, border, data); |
d55e5bfc | 2991 | else if ( info.sizer ) |
c1cb24a4 | 2992 | return self->Insert(before, info.sizer, proportion, flag, border, data); |
d55e5bfc | 2993 | else if (info.gotSize) |
c1cb24a4 RD |
2994 | return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), |
2995 | proportion, flag, border, data); | |
2996 | else | |
2997 | return NULL; | |
d55e5bfc | 2998 | } |
093d3ff1 | 2999 | static wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
d55e5bfc RD |
3000 | |
3001 | wxPyUserData* data = NULL; | |
3002 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 3003 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
3004 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3005 | data = new wxPyUserData(userData); | |
3006 | wxPyEndBlockThreads(blocked); | |
3007 | ||
3008 | // Now call the real Prepend method if a valid item type was found | |
3009 | if ( info.window ) | |
c1cb24a4 | 3010 | return self->Prepend(info.window, proportion, flag, border, data); |
d55e5bfc | 3011 | else if ( info.sizer ) |
c1cb24a4 | 3012 | return self->Prepend(info.sizer, proportion, flag, border, data); |
d55e5bfc | 3013 | else if (info.gotSize) |
c1cb24a4 RD |
3014 | return self->Prepend(info.size.GetWidth(), info.size.GetHeight(), |
3015 | proportion, flag, border, data); | |
3016 | else | |
3017 | return NULL; | |
d55e5bfc | 3018 | } |
093d3ff1 | 3019 | static bool wxSizer_Remove(wxSizer *self,PyObject *item){ |
d55e5bfc | 3020 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3021 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
3022 | wxPyEndBlockThreads(blocked); |
3023 | if ( info.window ) | |
3024 | return self->Remove(info.window); | |
3025 | else if ( info.sizer ) | |
3026 | return self->Remove(info.sizer); | |
3027 | else if ( info.gotPos ) | |
3028 | return self->Remove(info.pos); | |
3029 | else | |
ae8162c8 | 3030 | return false; |
d55e5bfc | 3031 | } |
093d3ff1 | 3032 | static bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1a6bba1e | 3033 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3034 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1a6bba1e RD |
3035 | wxPyEndBlockThreads(blocked); |
3036 | if ( info.window ) | |
3037 | return self->Detach(info.window); | |
3038 | else if ( info.sizer ) | |
3039 | return self->Detach(info.sizer); | |
3040 | else if ( info.gotPos ) | |
3041 | return self->Detach(info.pos); | |
3042 | else | |
ae8162c8 | 3043 | return false; |
1a6bba1e | 3044 | } |
093d3ff1 | 3045 | static wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){ |
c1cb24a4 RD |
3046 | bool blocked = wxPyBeginBlockThreads(); |
3047 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); | |
3048 | wxPyEndBlockThreads(blocked); | |
3049 | if ( info.window ) | |
3050 | return self->GetItem(info.window); | |
3051 | else if ( info.sizer ) | |
3052 | return self->GetItem(info.sizer); | |
3053 | else if ( info.gotPos ) | |
3054 | return self->GetItem(info.pos); | |
3055 | else | |
3056 | return NULL; | |
3057 | } | |
093d3ff1 | 3058 | static void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d55e5bfc | 3059 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3060 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
3061 | wxPyEndBlockThreads(blocked); |
3062 | if ( info.window ) | |
3063 | self->SetItemMinSize(info.window, size); | |
3064 | else if ( info.sizer ) | |
3065 | self->SetItemMinSize(info.sizer, size); | |
3066 | else if ( info.gotPos ) | |
3067 | self->SetItemMinSize(info.pos, size); | |
3068 | } | |
093d3ff1 | 3069 | static PyObject *wxSizer_GetChildren(wxSizer *self){ |
d55e5bfc RD |
3070 | wxSizerItemList& list = self->GetChildren(); |
3071 | return wxPy_ConvertList(&list); | |
3072 | } | |
093d3ff1 | 3073 | static bool wxSizer_Show(wxSizer *self,PyObject *item,bool show=true,bool recursive=false){ |
c24da6d6 | 3074 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3075 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
c24da6d6 | 3076 | wxPyEndBlockThreads(blocked); |
d55e5bfc | 3077 | if ( info.window ) |
7e63a440 | 3078 | return self->Show(info.window, show, recursive); |
d55e5bfc | 3079 | else if ( info.sizer ) |
7e63a440 | 3080 | return self->Show(info.sizer, show, recursive); |
248ed943 | 3081 | else if ( info.gotPos ) |
7e63a440 | 3082 | return self->Show(info.pos, show); |
ae8162c8 RD |
3083 | else |
3084 | return false; | |
d55e5bfc | 3085 | } |
093d3ff1 | 3086 | static bool wxSizer_IsShown(wxSizer *self,PyObject *item){ |
c24da6d6 | 3087 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3088 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
c24da6d6 | 3089 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
3090 | if ( info.window ) |
3091 | return self->IsShown(info.window); | |
3092 | else if ( info.sizer ) | |
3093 | return self->IsShown(info.sizer); | |
248ed943 RD |
3094 | else if ( info.gotPos ) |
3095 | return self->IsShown(info.pos); | |
d55e5bfc | 3096 | else |
ae8162c8 | 3097 | return false; |
d55e5bfc RD |
3098 | } |
3099 | ||
3100 | // See pyclasses.h | |
3101 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
3102 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
3103 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
3104 | ||
3105 | ||
3106 | ||
3107 | ||
3108 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
3109 | { | |
3110 | if (source == Py_None) { | |
3111 | **obj = wxGBPosition(-1,-1); | |
ae8162c8 | 3112 | return true; |
d55e5bfc RD |
3113 | } |
3114 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
3115 | } | |
3116 | ||
3117 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
3118 | { | |
3119 | if (source == Py_None) { | |
3120 | **obj = wxGBSpan(-1,-1); | |
ae8162c8 | 3121 | return true; |
d55e5bfc RD |
3122 | } |
3123 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
3124 | } | |
3125 | ||
3126 | ||
093d3ff1 | 3127 | static void wxGBPosition_Set(wxGBPosition *self,int row=0,int col=0){ |
d55e5bfc RD |
3128 | self->SetRow(row); |
3129 | self->SetCol(col); | |
3130 | } | |
093d3ff1 | 3131 | static PyObject *wxGBPosition_Get(wxGBPosition *self){ |
d55e5bfc RD |
3132 | bool blocked = wxPyBeginBlockThreads(); |
3133 | PyObject* tup = PyTuple_New(2); | |
3134 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
3135 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
3136 | wxPyEndBlockThreads(blocked); | |
3137 | return tup; | |
3138 | } | |
093d3ff1 | 3139 | static void wxGBSpan_Set(wxGBSpan *self,int rowspan=1,int colspan=1){ |
d55e5bfc RD |
3140 | self->SetRowspan(rowspan); |
3141 | self->SetColspan(colspan); | |
3142 | } | |
093d3ff1 | 3143 | static PyObject *wxGBSpan_Get(wxGBSpan *self){ |
d55e5bfc RD |
3144 | bool blocked = wxPyBeginBlockThreads(); |
3145 | PyObject* tup = PyTuple_New(2); | |
3146 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
3147 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
3148 | wxPyEndBlockThreads(blocked); | |
3149 | return tup; | |
3150 | } | |
093d3ff1 | 3151 | static wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3152 | wxPyUserData* data = NULL; |
3153 | if ( userData ) { | |
3154 | bool blocked = wxPyBeginBlockThreads(); | |
3155 | data = new wxPyUserData(userData); | |
3156 | wxPyEndBlockThreads(blocked); | |
3157 | } | |
3158 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
3159 | } | |
093d3ff1 | 3160 | static wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3161 | wxPyUserData* data = NULL; |
3162 | if ( userData ) { | |
3163 | bool blocked = wxPyBeginBlockThreads(); | |
3164 | data = new wxPyUserData(userData); | |
3165 | wxPyEndBlockThreads(blocked); | |
3166 | } | |
3167 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
3168 | } | |
093d3ff1 | 3169 | static wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3170 | wxPyUserData* data = NULL; |
3171 | if ( userData ) { | |
3172 | bool blocked = wxPyBeginBlockThreads(); | |
3173 | data = new wxPyUserData(userData); | |
3174 | wxPyEndBlockThreads(blocked); | |
3175 | } | |
3176 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
3177 | } | |
093d3ff1 | 3178 | static wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ |
248ed943 RD |
3179 | int row, col; |
3180 | self->GetEndPos(row, col); | |
3181 | return wxGBPosition(row, col); | |
3182 | } | |
093d3ff1 | 3183 | 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 |
3184 | |
3185 | wxPyUserData* data = NULL; | |
3186 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 3187 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
3188 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3189 | data = new wxPyUserData(userData); | |
3190 | wxPyEndBlockThreads(blocked); | |
3191 | ||
3192 | // Now call the real Add method if a valid item type was found | |
3193 | if ( info.window ) | |
c1cb24a4 | 3194 | return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data); |
d55e5bfc | 3195 | else if ( info.sizer ) |
c1cb24a4 | 3196 | return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data); |
d55e5bfc | 3197 | else if (info.gotSize) |
c1cb24a4 RD |
3198 | return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(), |
3199 | pos, span, flag, border, data); | |
3200 | return NULL; | |
d55e5bfc RD |
3201 | } |
3202 | ||
3203 | ||
3204 | #ifdef __cplusplus | |
3205 | extern "C" { | |
3206 | #endif | |
c32bde28 | 3207 | static int _wrap_EmptyString_set(PyObject *) { |
d55e5bfc RD |
3208 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
3209 | return 1; | |
3210 | } | |
3211 | ||
3212 | ||
093d3ff1 | 3213 | static PyObject *_wrap_EmptyString_get(void) { |
d55e5bfc RD |
3214 | PyObject *pyobj; |
3215 | ||
3216 | { | |
3217 | #if wxUSE_UNICODE | |
3218 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
3219 | #else | |
3220 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
3221 | #endif | |
3222 | } | |
3223 | return pyobj; | |
3224 | } | |
3225 | ||
3226 | ||
c32bde28 | 3227 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3228 | PyObject *resultobj; |
3229 | wxObject *arg1 = (wxObject *) 0 ; | |
3230 | wxString result; | |
3231 | PyObject * obj0 = 0 ; | |
3232 | char *kwnames[] = { | |
3233 | (char *) "self", NULL | |
3234 | }; | |
3235 | ||
3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); |
3238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3239 | { |
3240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3241 | result = wxObject_GetClassName(arg1); | |
3242 | ||
3243 | wxPyEndAllowThreads(__tstate); | |
3244 | if (PyErr_Occurred()) SWIG_fail; | |
3245 | } | |
3246 | { | |
3247 | #if wxUSE_UNICODE | |
3248 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3249 | #else | |
3250 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3251 | #endif | |
3252 | } | |
3253 | return resultobj; | |
3254 | fail: | |
3255 | return NULL; | |
3256 | } | |
3257 | ||
3258 | ||
c32bde28 | 3259 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3260 | PyObject *resultobj; |
3261 | wxObject *arg1 = (wxObject *) 0 ; | |
3262 | PyObject * obj0 = 0 ; | |
3263 | char *kwnames[] = { | |
3264 | (char *) "self", NULL | |
3265 | }; | |
3266 | ||
3267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); |
3269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3270 | { |
3271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3272 | wxObject_Destroy(arg1); | |
3273 | ||
3274 | wxPyEndAllowThreads(__tstate); | |
3275 | if (PyErr_Occurred()) SWIG_fail; | |
3276 | } | |
3277 | Py_INCREF(Py_None); resultobj = Py_None; | |
3278 | return resultobj; | |
3279 | fail: | |
3280 | return NULL; | |
3281 | } | |
3282 | ||
3283 | ||
c32bde28 | 3284 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3285 | PyObject *obj; |
3286 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3287 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
3288 | Py_INCREF(obj); | |
3289 | return Py_BuildValue((char *)""); | |
3290 | } | |
c32bde28 | 3291 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3292 | PyObject *resultobj; |
3293 | wxSize *arg1 = (wxSize *) 0 ; | |
3294 | int arg2 ; | |
3295 | PyObject * obj0 = 0 ; | |
3296 | PyObject * obj1 = 0 ; | |
3297 | char *kwnames[] = { | |
3298 | (char *) "self",(char *) "x", NULL | |
3299 | }; | |
3300 | ||
3301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3304 | { | |
3305 | arg2 = (int)(SWIG_As_int(obj1)); | |
3306 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3307 | } | |
d55e5bfc RD |
3308 | if (arg1) (arg1)->x = arg2; |
3309 | ||
3310 | Py_INCREF(Py_None); resultobj = Py_None; | |
3311 | return resultobj; | |
3312 | fail: | |
3313 | return NULL; | |
3314 | } | |
3315 | ||
3316 | ||
c32bde28 | 3317 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3318 | PyObject *resultobj; |
3319 | wxSize *arg1 = (wxSize *) 0 ; | |
3320 | int result; | |
3321 | PyObject * obj0 = 0 ; | |
3322 | char *kwnames[] = { | |
3323 | (char *) "self", NULL | |
3324 | }; | |
3325 | ||
3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3329 | result = (int) ((arg1)->x); |
3330 | ||
093d3ff1 RD |
3331 | { |
3332 | resultobj = SWIG_From_int((int)(result)); | |
3333 | } | |
d55e5bfc RD |
3334 | return resultobj; |
3335 | fail: | |
3336 | return NULL; | |
3337 | } | |
3338 | ||
3339 | ||
c32bde28 | 3340 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3341 | PyObject *resultobj; |
3342 | wxSize *arg1 = (wxSize *) 0 ; | |
3343 | int arg2 ; | |
3344 | PyObject * obj0 = 0 ; | |
3345 | PyObject * obj1 = 0 ; | |
3346 | char *kwnames[] = { | |
3347 | (char *) "self",(char *) "y", NULL | |
3348 | }; | |
3349 | ||
3350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3353 | { | |
3354 | arg2 = (int)(SWIG_As_int(obj1)); | |
3355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3356 | } | |
d55e5bfc RD |
3357 | if (arg1) (arg1)->y = arg2; |
3358 | ||
3359 | Py_INCREF(Py_None); resultobj = Py_None; | |
3360 | return resultobj; | |
3361 | fail: | |
3362 | return NULL; | |
3363 | } | |
3364 | ||
3365 | ||
c32bde28 | 3366 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3367 | PyObject *resultobj; |
3368 | wxSize *arg1 = (wxSize *) 0 ; | |
3369 | int result; | |
3370 | PyObject * obj0 = 0 ; | |
3371 | char *kwnames[] = { | |
3372 | (char *) "self", NULL | |
3373 | }; | |
3374 | ||
3375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3378 | result = (int) ((arg1)->y); |
3379 | ||
093d3ff1 RD |
3380 | { |
3381 | resultobj = SWIG_From_int((int)(result)); | |
3382 | } | |
d55e5bfc RD |
3383 | return resultobj; |
3384 | fail: | |
3385 | return NULL; | |
3386 | } | |
3387 | ||
3388 | ||
c32bde28 | 3389 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3390 | PyObject *resultobj; |
3391 | int arg1 = (int) 0 ; | |
3392 | int arg2 = (int) 0 ; | |
3393 | wxSize *result; | |
3394 | PyObject * obj0 = 0 ; | |
3395 | PyObject * obj1 = 0 ; | |
3396 | char *kwnames[] = { | |
3397 | (char *) "w",(char *) "h", NULL | |
3398 | }; | |
3399 | ||
3400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
3401 | if (obj0) { | |
093d3ff1 RD |
3402 | { |
3403 | arg1 = (int)(SWIG_As_int(obj0)); | |
3404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3405 | } | |
d55e5bfc RD |
3406 | } |
3407 | if (obj1) { | |
093d3ff1 RD |
3408 | { |
3409 | arg2 = (int)(SWIG_As_int(obj1)); | |
3410 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3411 | } | |
d55e5bfc RD |
3412 | } |
3413 | { | |
3414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3415 | result = (wxSize *)new wxSize(arg1,arg2); | |
3416 | ||
3417 | wxPyEndAllowThreads(__tstate); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
3419 | } | |
3420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
3421 | return resultobj; | |
3422 | fail: | |
3423 | return NULL; | |
3424 | } | |
3425 | ||
3426 | ||
c32bde28 | 3427 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3428 | PyObject *resultobj; |
3429 | wxSize *arg1 = (wxSize *) 0 ; | |
3430 | PyObject * obj0 = 0 ; | |
3431 | char *kwnames[] = { | |
3432 | (char *) "self", NULL | |
3433 | }; | |
3434 | ||
3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3438 | { |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | delete arg1; | |
3441 | ||
3442 | wxPyEndAllowThreads(__tstate); | |
3443 | if (PyErr_Occurred()) SWIG_fail; | |
3444 | } | |
3445 | Py_INCREF(Py_None); resultobj = Py_None; | |
3446 | return resultobj; | |
3447 | fail: | |
3448 | return NULL; | |
3449 | } | |
3450 | ||
3451 | ||
c32bde28 | 3452 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3453 | PyObject *resultobj; |
3454 | wxSize *arg1 = (wxSize *) 0 ; | |
3455 | wxSize *arg2 = 0 ; | |
3456 | bool result; | |
3457 | wxSize temp2 ; | |
3458 | PyObject * obj0 = 0 ; | |
3459 | PyObject * obj1 = 0 ; | |
3460 | char *kwnames[] = { | |
3461 | (char *) "self",(char *) "sz", NULL | |
3462 | }; | |
3463 | ||
3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3467 | { |
3468 | arg2 = &temp2; | |
3469 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3470 | } | |
3471 | { | |
3472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3473 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
3474 | ||
3475 | wxPyEndAllowThreads(__tstate); | |
3476 | if (PyErr_Occurred()) SWIG_fail; | |
3477 | } | |
3478 | { | |
3479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3480 | } | |
3481 | return resultobj; | |
3482 | fail: | |
3483 | return NULL; | |
3484 | } | |
3485 | ||
3486 | ||
c32bde28 | 3487 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3488 | PyObject *resultobj; |
3489 | wxSize *arg1 = (wxSize *) 0 ; | |
3490 | wxSize *arg2 = 0 ; | |
3491 | bool result; | |
3492 | wxSize temp2 ; | |
3493 | PyObject * obj0 = 0 ; | |
3494 | PyObject * obj1 = 0 ; | |
3495 | char *kwnames[] = { | |
3496 | (char *) "self",(char *) "sz", NULL | |
3497 | }; | |
3498 | ||
3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3502 | { |
3503 | arg2 = &temp2; | |
3504 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3505 | } | |
3506 | { | |
3507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3508 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
3509 | ||
3510 | wxPyEndAllowThreads(__tstate); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | { | |
3514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3515 | } | |
3516 | return resultobj; | |
3517 | fail: | |
3518 | return NULL; | |
3519 | } | |
3520 | ||
3521 | ||
c32bde28 | 3522 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3523 | PyObject *resultobj; |
3524 | wxSize *arg1 = (wxSize *) 0 ; | |
3525 | wxSize *arg2 = 0 ; | |
3526 | wxSize result; | |
3527 | wxSize temp2 ; | |
3528 | PyObject * obj0 = 0 ; | |
3529 | PyObject * obj1 = 0 ; | |
3530 | char *kwnames[] = { | |
3531 | (char *) "self",(char *) "sz", NULL | |
3532 | }; | |
3533 | ||
3534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3537 | { |
3538 | arg2 = &temp2; | |
3539 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3540 | } | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | result = (arg1)->operator +((wxSize const &)*arg2); | |
3544 | ||
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
3548 | { | |
3549 | wxSize * resultptr; | |
093d3ff1 | 3550 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
3551 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
3552 | } | |
3553 | return resultobj; | |
3554 | fail: | |
3555 | return NULL; | |
3556 | } | |
3557 | ||
3558 | ||
c32bde28 | 3559 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3560 | PyObject *resultobj; |
3561 | wxSize *arg1 = (wxSize *) 0 ; | |
3562 | wxSize *arg2 = 0 ; | |
3563 | wxSize result; | |
3564 | wxSize temp2 ; | |
3565 | PyObject * obj0 = 0 ; | |
3566 | PyObject * obj1 = 0 ; | |
3567 | char *kwnames[] = { | |
3568 | (char *) "self",(char *) "sz", NULL | |
3569 | }; | |
3570 | ||
3571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3574 | { |
3575 | arg2 = &temp2; | |
3576 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3577 | } | |
3578 | { | |
3579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3580 | result = (arg1)->operator -((wxSize const &)*arg2); | |
3581 | ||
3582 | wxPyEndAllowThreads(__tstate); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
3584 | } | |
3585 | { | |
3586 | wxSize * resultptr; | |
093d3ff1 | 3587 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
3588 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
3589 | } | |
3590 | return resultobj; | |
3591 | fail: | |
3592 | return NULL; | |
3593 | } | |
3594 | ||
3595 | ||
c32bde28 | 3596 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3597 | PyObject *resultobj; |
3598 | wxSize *arg1 = (wxSize *) 0 ; | |
3599 | wxSize *arg2 = 0 ; | |
3600 | wxSize temp2 ; | |
3601 | PyObject * obj0 = 0 ; | |
3602 | PyObject * obj1 = 0 ; | |
3603 | char *kwnames[] = { | |
3604 | (char *) "self",(char *) "sz", NULL | |
3605 | }; | |
3606 | ||
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3610 | { |
3611 | arg2 = &temp2; | |
3612 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3613 | } | |
3614 | { | |
3615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3616 | (arg1)->IncTo((wxSize const &)*arg2); | |
3617 | ||
3618 | wxPyEndAllowThreads(__tstate); | |
3619 | if (PyErr_Occurred()) SWIG_fail; | |
3620 | } | |
3621 | Py_INCREF(Py_None); resultobj = Py_None; | |
3622 | return resultobj; | |
3623 | fail: | |
3624 | return NULL; | |
3625 | } | |
3626 | ||
3627 | ||
c32bde28 | 3628 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3629 | PyObject *resultobj; |
3630 | wxSize *arg1 = (wxSize *) 0 ; | |
3631 | wxSize *arg2 = 0 ; | |
3632 | wxSize temp2 ; | |
3633 | PyObject * obj0 = 0 ; | |
3634 | PyObject * obj1 = 0 ; | |
3635 | char *kwnames[] = { | |
3636 | (char *) "self",(char *) "sz", NULL | |
3637 | }; | |
3638 | ||
3639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3642 | { |
3643 | arg2 = &temp2; | |
3644 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3645 | } | |
3646 | { | |
3647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3648 | (arg1)->DecTo((wxSize const &)*arg2); | |
3649 | ||
3650 | wxPyEndAllowThreads(__tstate); | |
3651 | if (PyErr_Occurred()) SWIG_fail; | |
3652 | } | |
3653 | Py_INCREF(Py_None); resultobj = Py_None; | |
3654 | return resultobj; | |
3655 | fail: | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
c32bde28 | 3660 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3661 | PyObject *resultobj; |
3662 | wxSize *arg1 = (wxSize *) 0 ; | |
3663 | int arg2 ; | |
3664 | int arg3 ; | |
3665 | PyObject * obj0 = 0 ; | |
3666 | PyObject * obj1 = 0 ; | |
3667 | PyObject * obj2 = 0 ; | |
3668 | char *kwnames[] = { | |
3669 | (char *) "self",(char *) "w",(char *) "h", NULL | |
3670 | }; | |
3671 | ||
3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
3673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3675 | { | |
3676 | arg2 = (int)(SWIG_As_int(obj1)); | |
3677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3678 | } | |
3679 | { | |
3680 | arg3 = (int)(SWIG_As_int(obj2)); | |
3681 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3682 | } | |
d55e5bfc RD |
3683 | { |
3684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3685 | (arg1)->Set(arg2,arg3); | |
3686 | ||
3687 | wxPyEndAllowThreads(__tstate); | |
3688 | if (PyErr_Occurred()) SWIG_fail; | |
3689 | } | |
3690 | Py_INCREF(Py_None); resultobj = Py_None; | |
3691 | return resultobj; | |
3692 | fail: | |
3693 | return NULL; | |
3694 | } | |
3695 | ||
3696 | ||
c32bde28 | 3697 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3698 | PyObject *resultobj; |
3699 | wxSize *arg1 = (wxSize *) 0 ; | |
3700 | int arg2 ; | |
3701 | PyObject * obj0 = 0 ; | |
3702 | PyObject * obj1 = 0 ; | |
3703 | char *kwnames[] = { | |
3704 | (char *) "self",(char *) "w", NULL | |
3705 | }; | |
3706 | ||
3707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3710 | { | |
3711 | arg2 = (int)(SWIG_As_int(obj1)); | |
3712 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3713 | } | |
d55e5bfc RD |
3714 | { |
3715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3716 | (arg1)->SetWidth(arg2); | |
3717 | ||
3718 | wxPyEndAllowThreads(__tstate); | |
3719 | if (PyErr_Occurred()) SWIG_fail; | |
3720 | } | |
3721 | Py_INCREF(Py_None); resultobj = Py_None; | |
3722 | return resultobj; | |
3723 | fail: | |
3724 | return NULL; | |
3725 | } | |
3726 | ||
3727 | ||
c32bde28 | 3728 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3729 | PyObject *resultobj; |
3730 | wxSize *arg1 = (wxSize *) 0 ; | |
3731 | int arg2 ; | |
3732 | PyObject * obj0 = 0 ; | |
3733 | PyObject * obj1 = 0 ; | |
3734 | char *kwnames[] = { | |
3735 | (char *) "self",(char *) "h", NULL | |
3736 | }; | |
3737 | ||
3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3741 | { | |
3742 | arg2 = (int)(SWIG_As_int(obj1)); | |
3743 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3744 | } | |
d55e5bfc RD |
3745 | { |
3746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3747 | (arg1)->SetHeight(arg2); | |
3748 | ||
3749 | wxPyEndAllowThreads(__tstate); | |
3750 | if (PyErr_Occurred()) SWIG_fail; | |
3751 | } | |
3752 | Py_INCREF(Py_None); resultobj = Py_None; | |
3753 | return resultobj; | |
3754 | fail: | |
3755 | return NULL; | |
3756 | } | |
3757 | ||
3758 | ||
c32bde28 | 3759 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3760 | PyObject *resultobj; |
3761 | wxSize *arg1 = (wxSize *) 0 ; | |
3762 | int result; | |
3763 | PyObject * obj0 = 0 ; | |
3764 | char *kwnames[] = { | |
3765 | (char *) "self", NULL | |
3766 | }; | |
3767 | ||
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3771 | { |
3772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3773 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
3774 | ||
3775 | wxPyEndAllowThreads(__tstate); | |
3776 | if (PyErr_Occurred()) SWIG_fail; | |
3777 | } | |
093d3ff1 RD |
3778 | { |
3779 | resultobj = SWIG_From_int((int)(result)); | |
3780 | } | |
d55e5bfc RD |
3781 | return resultobj; |
3782 | fail: | |
3783 | return NULL; | |
3784 | } | |
3785 | ||
3786 | ||
c32bde28 | 3787 | static PyObject *_wrap_Size_GetHeight(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_GetHeight",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)->GetHeight(); | |
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_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3816 | PyObject *resultobj; |
3817 | wxSize *arg1 = (wxSize *) 0 ; | |
3818 | bool result; | |
3819 | PyObject * obj0 = 0 ; | |
3820 | char *kwnames[] = { | |
3821 | (char *) "self", NULL | |
3822 | }; | |
3823 | ||
3824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",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 = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
3830 | ||
3831 | wxPyEndAllowThreads(__tstate); | |
3832 | if (PyErr_Occurred()) SWIG_fail; | |
3833 | } | |
3834 | { | |
3835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3836 | } | |
3837 | return resultobj; | |
3838 | fail: | |
3839 | return NULL; | |
3840 | } | |
3841 | ||
3842 | ||
c32bde28 | 3843 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3844 | PyObject *resultobj; |
3845 | wxSize *arg1 = (wxSize *) 0 ; | |
3846 | wxSize *arg2 = 0 ; | |
3847 | wxSize temp2 ; | |
3848 | PyObject * obj0 = 0 ; | |
3849 | PyObject * obj1 = 0 ; | |
3850 | char *kwnames[] = { | |
3851 | (char *) "self",(char *) "size", NULL | |
3852 | }; | |
3853 | ||
3854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3857 | { |
3858 | arg2 = &temp2; | |
3859 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3860 | } | |
3861 | { | |
3862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3863 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
3864 | ||
3865 | wxPyEndAllowThreads(__tstate); | |
3866 | if (PyErr_Occurred()) SWIG_fail; | |
3867 | } | |
3868 | Py_INCREF(Py_None); resultobj = Py_None; | |
3869 | return resultobj; | |
3870 | fail: | |
3871 | return NULL; | |
3872 | } | |
3873 | ||
3874 | ||
c32bde28 | 3875 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3876 | PyObject *resultobj; |
3877 | wxSize *arg1 = (wxSize *) 0 ; | |
3878 | PyObject *result; | |
3879 | PyObject * obj0 = 0 ; | |
3880 | char *kwnames[] = { | |
3881 | (char *) "self", NULL | |
3882 | }; | |
3883 | ||
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3887 | { |
3888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3889 | result = (PyObject *)wxSize_Get(arg1); | |
3890 | ||
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | resultobj = result; | |
3895 | return resultobj; | |
3896 | fail: | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
c32bde28 | 3901 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3902 | PyObject *obj; |
3903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3904 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
3905 | Py_INCREF(obj); | |
3906 | return Py_BuildValue((char *)""); | |
3907 | } | |
c32bde28 | 3908 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3909 | PyObject *resultobj; |
3910 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3911 | double arg2 ; | |
3912 | PyObject * obj0 = 0 ; | |
3913 | PyObject * obj1 = 0 ; | |
3914 | char *kwnames[] = { | |
3915 | (char *) "self",(char *) "x", NULL | |
3916 | }; | |
3917 | ||
3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3921 | { | |
3922 | arg2 = (double)(SWIG_As_double(obj1)); | |
3923 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3924 | } | |
d55e5bfc RD |
3925 | if (arg1) (arg1)->x = arg2; |
3926 | ||
3927 | Py_INCREF(Py_None); resultobj = Py_None; | |
3928 | return resultobj; | |
3929 | fail: | |
3930 | return NULL; | |
3931 | } | |
3932 | ||
3933 | ||
c32bde28 | 3934 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3935 | PyObject *resultobj; |
3936 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3937 | double result; | |
3938 | PyObject * obj0 = 0 ; | |
3939 | char *kwnames[] = { | |
3940 | (char *) "self", NULL | |
3941 | }; | |
3942 | ||
3943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3946 | result = (double) ((arg1)->x); |
3947 | ||
093d3ff1 RD |
3948 | { |
3949 | resultobj = SWIG_From_double((double)(result)); | |
3950 | } | |
d55e5bfc RD |
3951 | return resultobj; |
3952 | fail: | |
3953 | return NULL; | |
3954 | } | |
3955 | ||
3956 | ||
c32bde28 | 3957 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3958 | PyObject *resultobj; |
3959 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3960 | double arg2 ; | |
3961 | PyObject * obj0 = 0 ; | |
3962 | PyObject * obj1 = 0 ; | |
3963 | char *kwnames[] = { | |
3964 | (char *) "self",(char *) "y", NULL | |
3965 | }; | |
3966 | ||
3967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3970 | { | |
3971 | arg2 = (double)(SWIG_As_double(obj1)); | |
3972 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3973 | } | |
d55e5bfc RD |
3974 | if (arg1) (arg1)->y = arg2; |
3975 | ||
3976 | Py_INCREF(Py_None); resultobj = Py_None; | |
3977 | return resultobj; | |
3978 | fail: | |
3979 | return NULL; | |
3980 | } | |
3981 | ||
3982 | ||
c32bde28 | 3983 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3984 | PyObject *resultobj; |
3985 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3986 | double result; | |
3987 | PyObject * obj0 = 0 ; | |
3988 | char *kwnames[] = { | |
3989 | (char *) "self", NULL | |
3990 | }; | |
3991 | ||
3992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3995 | result = (double) ((arg1)->y); |
3996 | ||
093d3ff1 RD |
3997 | { |
3998 | resultobj = SWIG_From_double((double)(result)); | |
3999 | } | |
d55e5bfc RD |
4000 | return resultobj; |
4001 | fail: | |
4002 | return NULL; | |
4003 | } | |
4004 | ||
4005 | ||
c32bde28 | 4006 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4007 | PyObject *resultobj; |
4008 | double arg1 = (double) 0.0 ; | |
4009 | double arg2 = (double) 0.0 ; | |
4010 | wxRealPoint *result; | |
4011 | PyObject * obj0 = 0 ; | |
4012 | PyObject * obj1 = 0 ; | |
4013 | char *kwnames[] = { | |
4014 | (char *) "x",(char *) "y", NULL | |
4015 | }; | |
4016 | ||
4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
4018 | if (obj0) { | |
093d3ff1 RD |
4019 | { |
4020 | arg1 = (double)(SWIG_As_double(obj0)); | |
4021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4022 | } | |
d55e5bfc RD |
4023 | } |
4024 | if (obj1) { | |
093d3ff1 RD |
4025 | { |
4026 | arg2 = (double)(SWIG_As_double(obj1)); | |
4027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4028 | } | |
d55e5bfc RD |
4029 | } |
4030 | { | |
4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4032 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
4033 | ||
4034 | wxPyEndAllowThreads(__tstate); | |
4035 | if (PyErr_Occurred()) SWIG_fail; | |
4036 | } | |
4037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
4038 | return resultobj; | |
4039 | fail: | |
4040 | return NULL; | |
4041 | } | |
4042 | ||
4043 | ||
c32bde28 | 4044 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4045 | PyObject *resultobj; |
4046 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4047 | PyObject * obj0 = 0 ; | |
4048 | char *kwnames[] = { | |
4049 | (char *) "self", NULL | |
4050 | }; | |
4051 | ||
4052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4055 | { |
4056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4057 | delete arg1; | |
4058 | ||
4059 | wxPyEndAllowThreads(__tstate); | |
4060 | if (PyErr_Occurred()) SWIG_fail; | |
4061 | } | |
4062 | Py_INCREF(Py_None); resultobj = Py_None; | |
4063 | return resultobj; | |
4064 | fail: | |
4065 | return NULL; | |
4066 | } | |
4067 | ||
4068 | ||
c32bde28 | 4069 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4070 | PyObject *resultobj; |
4071 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4072 | wxRealPoint *arg2 = 0 ; | |
4073 | bool result; | |
4074 | wxRealPoint temp2 ; | |
4075 | PyObject * obj0 = 0 ; | |
4076 | PyObject * obj1 = 0 ; | |
4077 | char *kwnames[] = { | |
4078 | (char *) "self",(char *) "pt", NULL | |
4079 | }; | |
4080 | ||
4081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4084 | { |
4085 | arg2 = &temp2; | |
4086 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4087 | } | |
4088 | { | |
4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4090 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
4091 | ||
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
4095 | { | |
4096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4097 | } | |
4098 | return resultobj; | |
4099 | fail: | |
4100 | return NULL; | |
4101 | } | |
4102 | ||
4103 | ||
c32bde28 | 4104 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4105 | PyObject *resultobj; |
4106 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4107 | wxRealPoint *arg2 = 0 ; | |
4108 | bool result; | |
4109 | wxRealPoint temp2 ; | |
4110 | PyObject * obj0 = 0 ; | |
4111 | PyObject * obj1 = 0 ; | |
4112 | char *kwnames[] = { | |
4113 | (char *) "self",(char *) "pt", NULL | |
4114 | }; | |
4115 | ||
4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4119 | { |
4120 | arg2 = &temp2; | |
4121 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4122 | } | |
4123 | { | |
4124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4125 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
4126 | ||
4127 | wxPyEndAllowThreads(__tstate); | |
4128 | if (PyErr_Occurred()) SWIG_fail; | |
4129 | } | |
4130 | { | |
4131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4132 | } | |
4133 | return resultobj; | |
4134 | fail: | |
4135 | return NULL; | |
4136 | } | |
4137 | ||
4138 | ||
c32bde28 | 4139 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4140 | PyObject *resultobj; |
4141 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4142 | wxRealPoint *arg2 = 0 ; | |
4143 | wxRealPoint result; | |
4144 | wxRealPoint temp2 ; | |
4145 | PyObject * obj0 = 0 ; | |
4146 | PyObject * obj1 = 0 ; | |
4147 | char *kwnames[] = { | |
4148 | (char *) "self",(char *) "pt", NULL | |
4149 | }; | |
4150 | ||
4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4154 | { |
4155 | arg2 = &temp2; | |
4156 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4157 | } | |
4158 | { | |
4159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4160 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
4161 | ||
4162 | wxPyEndAllowThreads(__tstate); | |
4163 | if (PyErr_Occurred()) SWIG_fail; | |
4164 | } | |
4165 | { | |
4166 | wxRealPoint * resultptr; | |
093d3ff1 | 4167 | resultptr = new wxRealPoint((wxRealPoint &)(result)); |
d55e5bfc RD |
4168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
4169 | } | |
4170 | return resultobj; | |
4171 | fail: | |
4172 | return NULL; | |
4173 | } | |
4174 | ||
4175 | ||
c32bde28 | 4176 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4177 | PyObject *resultobj; |
4178 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4179 | wxRealPoint *arg2 = 0 ; | |
4180 | wxRealPoint result; | |
4181 | wxRealPoint temp2 ; | |
4182 | PyObject * obj0 = 0 ; | |
4183 | PyObject * obj1 = 0 ; | |
4184 | char *kwnames[] = { | |
4185 | (char *) "self",(char *) "pt", NULL | |
4186 | }; | |
4187 | ||
4188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4191 | { |
4192 | arg2 = &temp2; | |
4193 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4194 | } | |
4195 | { | |
4196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4197 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
4198 | ||
4199 | wxPyEndAllowThreads(__tstate); | |
4200 | if (PyErr_Occurred()) SWIG_fail; | |
4201 | } | |
4202 | { | |
4203 | wxRealPoint * resultptr; | |
093d3ff1 | 4204 | resultptr = new wxRealPoint((wxRealPoint &)(result)); |
d55e5bfc RD |
4205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
4206 | } | |
4207 | return resultobj; | |
4208 | fail: | |
4209 | return NULL; | |
4210 | } | |
4211 | ||
4212 | ||
c32bde28 | 4213 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4214 | PyObject *resultobj; |
4215 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4216 | double arg2 ; | |
4217 | double arg3 ; | |
4218 | PyObject * obj0 = 0 ; | |
4219 | PyObject * obj1 = 0 ; | |
4220 | PyObject * obj2 = 0 ; | |
4221 | char *kwnames[] = { | |
4222 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4223 | }; | |
4224 | ||
4225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
4226 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4227 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4228 | { | |
4229 | arg2 = (double)(SWIG_As_double(obj1)); | |
4230 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4231 | } | |
4232 | { | |
4233 | arg3 = (double)(SWIG_As_double(obj2)); | |
4234 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4235 | } | |
d55e5bfc RD |
4236 | { |
4237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4238 | wxRealPoint_Set(arg1,arg2,arg3); | |
4239 | ||
4240 | wxPyEndAllowThreads(__tstate); | |
4241 | if (PyErr_Occurred()) SWIG_fail; | |
4242 | } | |
4243 | Py_INCREF(Py_None); resultobj = Py_None; | |
4244 | return resultobj; | |
4245 | fail: | |
4246 | return NULL; | |
4247 | } | |
4248 | ||
4249 | ||
c32bde28 | 4250 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4251 | PyObject *resultobj; |
4252 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4253 | PyObject *result; | |
4254 | PyObject * obj0 = 0 ; | |
4255 | char *kwnames[] = { | |
4256 | (char *) "self", NULL | |
4257 | }; | |
4258 | ||
4259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4262 | { |
4263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4264 | result = (PyObject *)wxRealPoint_Get(arg1); | |
4265 | ||
4266 | wxPyEndAllowThreads(__tstate); | |
4267 | if (PyErr_Occurred()) SWIG_fail; | |
4268 | } | |
4269 | resultobj = result; | |
4270 | return resultobj; | |
4271 | fail: | |
4272 | return NULL; | |
4273 | } | |
4274 | ||
4275 | ||
c32bde28 | 4276 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4277 | PyObject *obj; |
4278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4279 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
4280 | Py_INCREF(obj); | |
4281 | return Py_BuildValue((char *)""); | |
4282 | } | |
c32bde28 | 4283 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4284 | PyObject *resultobj; |
4285 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4286 | int arg2 ; | |
4287 | PyObject * obj0 = 0 ; | |
4288 | PyObject * obj1 = 0 ; | |
4289 | char *kwnames[] = { | |
4290 | (char *) "self",(char *) "x", NULL | |
4291 | }; | |
4292 | ||
4293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4296 | { | |
4297 | arg2 = (int)(SWIG_As_int(obj1)); | |
4298 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4299 | } | |
d55e5bfc RD |
4300 | if (arg1) (arg1)->x = arg2; |
4301 | ||
4302 | Py_INCREF(Py_None); resultobj = Py_None; | |
4303 | return resultobj; | |
4304 | fail: | |
4305 | return NULL; | |
4306 | } | |
4307 | ||
4308 | ||
c32bde28 | 4309 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4310 | PyObject *resultobj; |
4311 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4312 | int result; | |
4313 | PyObject * obj0 = 0 ; | |
4314 | char *kwnames[] = { | |
4315 | (char *) "self", NULL | |
4316 | }; | |
4317 | ||
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4321 | result = (int) ((arg1)->x); |
4322 | ||
093d3ff1 RD |
4323 | { |
4324 | resultobj = SWIG_From_int((int)(result)); | |
4325 | } | |
d55e5bfc RD |
4326 | return resultobj; |
4327 | fail: | |
4328 | return NULL; | |
4329 | } | |
4330 | ||
4331 | ||
c32bde28 | 4332 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4333 | PyObject *resultobj; |
4334 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4335 | int arg2 ; | |
4336 | PyObject * obj0 = 0 ; | |
4337 | PyObject * obj1 = 0 ; | |
4338 | char *kwnames[] = { | |
4339 | (char *) "self",(char *) "y", NULL | |
4340 | }; | |
4341 | ||
4342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4345 | { | |
4346 | arg2 = (int)(SWIG_As_int(obj1)); | |
4347 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4348 | } | |
d55e5bfc RD |
4349 | if (arg1) (arg1)->y = arg2; |
4350 | ||
4351 | Py_INCREF(Py_None); resultobj = Py_None; | |
4352 | return resultobj; | |
4353 | fail: | |
4354 | return NULL; | |
4355 | } | |
4356 | ||
4357 | ||
c32bde28 | 4358 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4359 | PyObject *resultobj; |
4360 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4361 | int result; | |
4362 | PyObject * obj0 = 0 ; | |
4363 | char *kwnames[] = { | |
4364 | (char *) "self", NULL | |
4365 | }; | |
4366 | ||
4367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4370 | result = (int) ((arg1)->y); |
4371 | ||
093d3ff1 RD |
4372 | { |
4373 | resultobj = SWIG_From_int((int)(result)); | |
4374 | } | |
d55e5bfc RD |
4375 | return resultobj; |
4376 | fail: | |
4377 | return NULL; | |
4378 | } | |
4379 | ||
4380 | ||
c32bde28 | 4381 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4382 | PyObject *resultobj; |
4383 | int arg1 = (int) 0 ; | |
4384 | int arg2 = (int) 0 ; | |
4385 | wxPoint *result; | |
4386 | PyObject * obj0 = 0 ; | |
4387 | PyObject * obj1 = 0 ; | |
4388 | char *kwnames[] = { | |
4389 | (char *) "x",(char *) "y", NULL | |
4390 | }; | |
4391 | ||
4392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
4393 | if (obj0) { | |
093d3ff1 RD |
4394 | { |
4395 | arg1 = (int)(SWIG_As_int(obj0)); | |
4396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4397 | } | |
d55e5bfc RD |
4398 | } |
4399 | if (obj1) { | |
093d3ff1 RD |
4400 | { |
4401 | arg2 = (int)(SWIG_As_int(obj1)); | |
4402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4403 | } | |
d55e5bfc RD |
4404 | } |
4405 | { | |
4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4407 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
4408 | ||
4409 | wxPyEndAllowThreads(__tstate); | |
4410 | if (PyErr_Occurred()) SWIG_fail; | |
4411 | } | |
4412 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
4413 | return resultobj; | |
4414 | fail: | |
4415 | return NULL; | |
4416 | } | |
4417 | ||
4418 | ||
c32bde28 | 4419 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4420 | PyObject *resultobj; |
4421 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4422 | PyObject * obj0 = 0 ; | |
4423 | char *kwnames[] = { | |
4424 | (char *) "self", NULL | |
4425 | }; | |
4426 | ||
4427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4430 | { |
4431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4432 | delete arg1; | |
4433 | ||
4434 | wxPyEndAllowThreads(__tstate); | |
4435 | if (PyErr_Occurred()) SWIG_fail; | |
4436 | } | |
4437 | Py_INCREF(Py_None); resultobj = Py_None; | |
4438 | return resultobj; | |
4439 | fail: | |
4440 | return NULL; | |
4441 | } | |
4442 | ||
4443 | ||
c32bde28 | 4444 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4445 | PyObject *resultobj; |
4446 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4447 | wxPoint *arg2 = 0 ; | |
4448 | bool result; | |
4449 | wxPoint temp2 ; | |
4450 | PyObject * obj0 = 0 ; | |
4451 | PyObject * obj1 = 0 ; | |
4452 | char *kwnames[] = { | |
4453 | (char *) "self",(char *) "pt", NULL | |
4454 | }; | |
4455 | ||
4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4459 | { |
4460 | arg2 = &temp2; | |
4461 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4462 | } | |
4463 | { | |
4464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4465 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
4466 | ||
4467 | wxPyEndAllowThreads(__tstate); | |
4468 | if (PyErr_Occurred()) SWIG_fail; | |
4469 | } | |
4470 | { | |
4471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4472 | } | |
4473 | return resultobj; | |
4474 | fail: | |
4475 | return NULL; | |
4476 | } | |
4477 | ||
4478 | ||
c32bde28 | 4479 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4480 | PyObject *resultobj; |
4481 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4482 | wxPoint *arg2 = 0 ; | |
4483 | bool result; | |
4484 | wxPoint temp2 ; | |
4485 | PyObject * obj0 = 0 ; | |
4486 | PyObject * obj1 = 0 ; | |
4487 | char *kwnames[] = { | |
4488 | (char *) "self",(char *) "pt", NULL | |
4489 | }; | |
4490 | ||
4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4494 | { |
4495 | arg2 = &temp2; | |
4496 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4497 | } | |
4498 | { | |
4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4500 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
4501 | ||
4502 | wxPyEndAllowThreads(__tstate); | |
4503 | if (PyErr_Occurred()) SWIG_fail; | |
4504 | } | |
4505 | { | |
4506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4507 | } | |
4508 | return resultobj; | |
4509 | fail: | |
4510 | return NULL; | |
4511 | } | |
4512 | ||
4513 | ||
c32bde28 | 4514 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4515 | PyObject *resultobj; |
4516 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4517 | wxPoint *arg2 = 0 ; | |
4518 | wxPoint result; | |
4519 | wxPoint temp2 ; | |
4520 | PyObject * obj0 = 0 ; | |
4521 | PyObject * obj1 = 0 ; | |
4522 | char *kwnames[] = { | |
4523 | (char *) "self",(char *) "pt", NULL | |
4524 | }; | |
4525 | ||
4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4529 | { |
4530 | arg2 = &temp2; | |
4531 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4532 | } | |
4533 | { | |
4534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4535 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
4536 | ||
4537 | wxPyEndAllowThreads(__tstate); | |
4538 | if (PyErr_Occurred()) SWIG_fail; | |
4539 | } | |
4540 | { | |
4541 | wxPoint * resultptr; | |
093d3ff1 | 4542 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
4543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
4544 | } | |
4545 | return resultobj; | |
4546 | fail: | |
4547 | return NULL; | |
4548 | } | |
4549 | ||
4550 | ||
c32bde28 | 4551 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4552 | PyObject *resultobj; |
4553 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4554 | wxPoint *arg2 = 0 ; | |
4555 | wxPoint result; | |
4556 | wxPoint temp2 ; | |
4557 | PyObject * obj0 = 0 ; | |
4558 | PyObject * obj1 = 0 ; | |
4559 | char *kwnames[] = { | |
4560 | (char *) "self",(char *) "pt", NULL | |
4561 | }; | |
4562 | ||
4563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4566 | { |
4567 | arg2 = &temp2; | |
4568 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4569 | } | |
4570 | { | |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
4573 | ||
4574 | wxPyEndAllowThreads(__tstate); | |
4575 | if (PyErr_Occurred()) SWIG_fail; | |
4576 | } | |
4577 | { | |
4578 | wxPoint * resultptr; | |
093d3ff1 | 4579 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
4580 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
4581 | } | |
4582 | return resultobj; | |
4583 | fail: | |
4584 | return NULL; | |
4585 | } | |
4586 | ||
4587 | ||
c32bde28 | 4588 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4589 | PyObject *resultobj; |
4590 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4591 | wxPoint *arg2 = 0 ; | |
4592 | wxPoint *result; | |
4593 | wxPoint temp2 ; | |
4594 | PyObject * obj0 = 0 ; | |
4595 | PyObject * obj1 = 0 ; | |
4596 | char *kwnames[] = { | |
4597 | (char *) "self",(char *) "pt", NULL | |
4598 | }; | |
4599 | ||
4600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
4602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4603 | { |
4604 | arg2 = &temp2; | |
4605 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4606 | } | |
4607 | { | |
4608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4609 | { | |
4610 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
4611 | result = (wxPoint *) &_result_ref; | |
4612 | } | |
4613 | ||
4614 | wxPyEndAllowThreads(__tstate); | |
4615 | if (PyErr_Occurred()) SWIG_fail; | |
4616 | } | |
c32bde28 | 4617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
4618 | return resultobj; |
4619 | fail: | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
c32bde28 | 4624 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4625 | PyObject *resultobj; |
4626 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4627 | wxPoint *arg2 = 0 ; | |
4628 | wxPoint *result; | |
4629 | wxPoint temp2 ; | |
4630 | PyObject * obj0 = 0 ; | |
4631 | PyObject * obj1 = 0 ; | |
4632 | char *kwnames[] = { | |
4633 | (char *) "self",(char *) "pt", NULL | |
4634 | }; | |
4635 | ||
4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4637 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
4638 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4639 | { |
4640 | arg2 = &temp2; | |
4641 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4642 | } | |
4643 | { | |
4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4645 | { | |
4646 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
4647 | result = (wxPoint *) &_result_ref; | |
4648 | } | |
4649 | ||
4650 | wxPyEndAllowThreads(__tstate); | |
4651 | if (PyErr_Occurred()) SWIG_fail; | |
4652 | } | |
c32bde28 | 4653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
4654 | return resultobj; |
4655 | fail: | |
4656 | return NULL; | |
4657 | } | |
4658 | ||
4659 | ||
c32bde28 | 4660 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4661 | PyObject *resultobj; |
4662 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4663 | long arg2 ; | |
4664 | long arg3 ; | |
4665 | PyObject * obj0 = 0 ; | |
4666 | PyObject * obj1 = 0 ; | |
4667 | PyObject * obj2 = 0 ; | |
4668 | char *kwnames[] = { | |
4669 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4670 | }; | |
4671 | ||
4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
4673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4675 | { | |
4676 | arg2 = (long)(SWIG_As_long(obj1)); | |
4677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4678 | } | |
4679 | { | |
4680 | arg3 = (long)(SWIG_As_long(obj2)); | |
4681 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4682 | } | |
d55e5bfc RD |
4683 | { |
4684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4685 | wxPoint_Set(arg1,arg2,arg3); | |
4686 | ||
4687 | wxPyEndAllowThreads(__tstate); | |
4688 | if (PyErr_Occurred()) SWIG_fail; | |
4689 | } | |
4690 | Py_INCREF(Py_None); resultobj = Py_None; | |
4691 | return resultobj; | |
4692 | fail: | |
4693 | return NULL; | |
4694 | } | |
4695 | ||
4696 | ||
c32bde28 | 4697 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4698 | PyObject *resultobj; |
4699 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4700 | PyObject *result; | |
4701 | PyObject * obj0 = 0 ; | |
4702 | char *kwnames[] = { | |
4703 | (char *) "self", NULL | |
4704 | }; | |
4705 | ||
4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4709 | { |
4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4711 | result = (PyObject *)wxPoint_Get(arg1); | |
4712 | ||
4713 | wxPyEndAllowThreads(__tstate); | |
4714 | if (PyErr_Occurred()) SWIG_fail; | |
4715 | } | |
4716 | resultobj = result; | |
4717 | return resultobj; | |
4718 | fail: | |
4719 | return NULL; | |
4720 | } | |
4721 | ||
4722 | ||
c32bde28 | 4723 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4724 | PyObject *obj; |
4725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4726 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
4727 | Py_INCREF(obj); | |
4728 | return Py_BuildValue((char *)""); | |
4729 | } | |
c32bde28 | 4730 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4731 | PyObject *resultobj; |
4732 | int arg1 = (int) 0 ; | |
4733 | int arg2 = (int) 0 ; | |
4734 | int arg3 = (int) 0 ; | |
4735 | int arg4 = (int) 0 ; | |
4736 | wxRect *result; | |
4737 | PyObject * obj0 = 0 ; | |
4738 | PyObject * obj1 = 0 ; | |
4739 | PyObject * obj2 = 0 ; | |
4740 | PyObject * obj3 = 0 ; | |
4741 | char *kwnames[] = { | |
4742 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4743 | }; | |
4744 | ||
4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4746 | if (obj0) { | |
093d3ff1 RD |
4747 | { |
4748 | arg1 = (int)(SWIG_As_int(obj0)); | |
4749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4750 | } | |
d55e5bfc RD |
4751 | } |
4752 | if (obj1) { | |
093d3ff1 RD |
4753 | { |
4754 | arg2 = (int)(SWIG_As_int(obj1)); | |
4755 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4756 | } | |
d55e5bfc RD |
4757 | } |
4758 | if (obj2) { | |
093d3ff1 RD |
4759 | { |
4760 | arg3 = (int)(SWIG_As_int(obj2)); | |
4761 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4762 | } | |
d55e5bfc RD |
4763 | } |
4764 | if (obj3) { | |
093d3ff1 RD |
4765 | { |
4766 | arg4 = (int)(SWIG_As_int(obj3)); | |
4767 | if (SWIG_arg_fail(4)) SWIG_fail; | |
4768 | } | |
d55e5bfc RD |
4769 | } |
4770 | { | |
4771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4772 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
4773 | ||
4774 | wxPyEndAllowThreads(__tstate); | |
4775 | if (PyErr_Occurred()) SWIG_fail; | |
4776 | } | |
4777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4778 | return resultobj; | |
4779 | fail: | |
4780 | return NULL; | |
4781 | } | |
4782 | ||
4783 | ||
c32bde28 | 4784 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4785 | PyObject *resultobj; |
4786 | wxPoint *arg1 = 0 ; | |
4787 | wxPoint *arg2 = 0 ; | |
4788 | wxRect *result; | |
4789 | wxPoint temp1 ; | |
4790 | wxPoint temp2 ; | |
4791 | PyObject * obj0 = 0 ; | |
4792 | PyObject * obj1 = 0 ; | |
4793 | char *kwnames[] = { | |
4794 | (char *) "topLeft",(char *) "bottomRight", NULL | |
4795 | }; | |
4796 | ||
4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
4798 | { | |
4799 | arg1 = &temp1; | |
4800 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4801 | } | |
4802 | { | |
4803 | arg2 = &temp2; | |
4804 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4805 | } | |
4806 | { | |
4807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4808 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
4809 | ||
4810 | wxPyEndAllowThreads(__tstate); | |
4811 | if (PyErr_Occurred()) SWIG_fail; | |
4812 | } | |
4813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4814 | return resultobj; | |
4815 | fail: | |
4816 | return NULL; | |
4817 | } | |
4818 | ||
4819 | ||
c32bde28 | 4820 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4821 | PyObject *resultobj; |
4822 | wxPoint *arg1 = 0 ; | |
4823 | wxSize *arg2 = 0 ; | |
4824 | wxRect *result; | |
4825 | wxPoint temp1 ; | |
4826 | wxSize temp2 ; | |
4827 | PyObject * obj0 = 0 ; | |
4828 | PyObject * obj1 = 0 ; | |
4829 | char *kwnames[] = { | |
4830 | (char *) "pos",(char *) "size", NULL | |
4831 | }; | |
4832 | ||
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
4834 | { | |
4835 | arg1 = &temp1; | |
4836 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4837 | } | |
4838 | { | |
4839 | arg2 = &temp2; | |
4840 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4841 | } | |
4842 | { | |
4843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4844 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
4845 | ||
4846 | wxPyEndAllowThreads(__tstate); | |
4847 | if (PyErr_Occurred()) SWIG_fail; | |
4848 | } | |
4849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4850 | return resultobj; | |
4851 | fail: | |
4852 | return NULL; | |
4853 | } | |
4854 | ||
4855 | ||
c1cb24a4 RD |
4856 | static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) { |
4857 | PyObject *resultobj; | |
4858 | wxSize *arg1 = 0 ; | |
4859 | wxRect *result; | |
4860 | wxSize temp1 ; | |
4861 | PyObject * obj0 = 0 ; | |
4862 | char *kwnames[] = { | |
4863 | (char *) "size", NULL | |
4864 | }; | |
4865 | ||
4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail; | |
4867 | { | |
4868 | arg1 = &temp1; | |
4869 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
4870 | } | |
4871 | { | |
4872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4873 | result = (wxRect *)new wxRect((wxSize const &)*arg1); | |
4874 | ||
4875 | wxPyEndAllowThreads(__tstate); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | } | |
4878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4879 | return resultobj; | |
4880 | fail: | |
4881 | return NULL; | |
4882 | } | |
4883 | ||
4884 | ||
c32bde28 | 4885 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4886 | PyObject *resultobj; |
4887 | wxRect *arg1 = (wxRect *) 0 ; | |
4888 | PyObject * obj0 = 0 ; | |
4889 | char *kwnames[] = { | |
4890 | (char *) "self", NULL | |
4891 | }; | |
4892 | ||
4893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4896 | { |
4897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4898 | delete arg1; | |
4899 | ||
4900 | wxPyEndAllowThreads(__tstate); | |
4901 | if (PyErr_Occurred()) SWIG_fail; | |
4902 | } | |
4903 | Py_INCREF(Py_None); resultobj = Py_None; | |
4904 | return resultobj; | |
4905 | fail: | |
4906 | return NULL; | |
4907 | } | |
4908 | ||
4909 | ||
c32bde28 | 4910 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4911 | PyObject *resultobj; |
4912 | wxRect *arg1 = (wxRect *) 0 ; | |
4913 | int result; | |
4914 | PyObject * obj0 = 0 ; | |
4915 | char *kwnames[] = { | |
4916 | (char *) "self", NULL | |
4917 | }; | |
4918 | ||
4919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4920 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4921 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4922 | { |
4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4924 | result = (int)((wxRect const *)arg1)->GetX(); | |
4925 | ||
4926 | wxPyEndAllowThreads(__tstate); | |
4927 | if (PyErr_Occurred()) SWIG_fail; | |
4928 | } | |
093d3ff1 RD |
4929 | { |
4930 | resultobj = SWIG_From_int((int)(result)); | |
4931 | } | |
d55e5bfc RD |
4932 | return resultobj; |
4933 | fail: | |
4934 | return NULL; | |
4935 | } | |
4936 | ||
4937 | ||
c32bde28 | 4938 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4939 | PyObject *resultobj; |
4940 | wxRect *arg1 = (wxRect *) 0 ; | |
4941 | int arg2 ; | |
4942 | PyObject * obj0 = 0 ; | |
4943 | PyObject * obj1 = 0 ; | |
4944 | char *kwnames[] = { | |
4945 | (char *) "self",(char *) "x", NULL | |
4946 | }; | |
4947 | ||
4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4951 | { | |
4952 | arg2 = (int)(SWIG_As_int(obj1)); | |
4953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4954 | } | |
d55e5bfc RD |
4955 | { |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | (arg1)->SetX(arg2); | |
4958 | ||
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | Py_INCREF(Py_None); resultobj = Py_None; | |
4963 | return resultobj; | |
4964 | fail: | |
4965 | return NULL; | |
4966 | } | |
4967 | ||
4968 | ||
c32bde28 | 4969 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4970 | PyObject *resultobj; |
4971 | wxRect *arg1 = (wxRect *) 0 ; | |
4972 | int result; | |
4973 | PyObject * obj0 = 0 ; | |
4974 | char *kwnames[] = { | |
4975 | (char *) "self", NULL | |
4976 | }; | |
4977 | ||
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4981 | { |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | result = (int)(arg1)->GetY(); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
093d3ff1 RD |
4988 | { |
4989 | resultobj = SWIG_From_int((int)(result)); | |
4990 | } | |
d55e5bfc RD |
4991 | return resultobj; |
4992 | fail: | |
4993 | return NULL; | |
4994 | } | |
4995 | ||
4996 | ||
c32bde28 | 4997 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4998 | PyObject *resultobj; |
4999 | wxRect *arg1 = (wxRect *) 0 ; | |
5000 | int arg2 ; | |
5001 | PyObject * obj0 = 0 ; | |
5002 | PyObject * obj1 = 0 ; | |
5003 | char *kwnames[] = { | |
5004 | (char *) "self",(char *) "y", NULL | |
5005 | }; | |
5006 | ||
5007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5010 | { | |
5011 | arg2 = (int)(SWIG_As_int(obj1)); | |
5012 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5013 | } | |
d55e5bfc RD |
5014 | { |
5015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5016 | (arg1)->SetY(arg2); | |
5017 | ||
5018 | wxPyEndAllowThreads(__tstate); | |
5019 | if (PyErr_Occurred()) SWIG_fail; | |
5020 | } | |
5021 | Py_INCREF(Py_None); resultobj = Py_None; | |
5022 | return resultobj; | |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
c32bde28 | 5028 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5029 | PyObject *resultobj; |
5030 | wxRect *arg1 = (wxRect *) 0 ; | |
5031 | int result; | |
5032 | PyObject * obj0 = 0 ; | |
5033 | char *kwnames[] = { | |
5034 | (char *) "self", NULL | |
5035 | }; | |
5036 | ||
5037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5038 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5039 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5040 | { |
5041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5042 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
5043 | ||
5044 | wxPyEndAllowThreads(__tstate); | |
5045 | if (PyErr_Occurred()) SWIG_fail; | |
5046 | } | |
093d3ff1 RD |
5047 | { |
5048 | resultobj = SWIG_From_int((int)(result)); | |
5049 | } | |
d55e5bfc RD |
5050 | return resultobj; |
5051 | fail: | |
5052 | return NULL; | |
5053 | } | |
5054 | ||
5055 | ||
c32bde28 | 5056 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5057 | PyObject *resultobj; |
5058 | wxRect *arg1 = (wxRect *) 0 ; | |
5059 | int arg2 ; | |
5060 | PyObject * obj0 = 0 ; | |
5061 | PyObject * obj1 = 0 ; | |
5062 | char *kwnames[] = { | |
5063 | (char *) "self",(char *) "w", NULL | |
5064 | }; | |
5065 | ||
5066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5069 | { | |
5070 | arg2 = (int)(SWIG_As_int(obj1)); | |
5071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5072 | } | |
d55e5bfc RD |
5073 | { |
5074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5075 | (arg1)->SetWidth(arg2); | |
5076 | ||
5077 | wxPyEndAllowThreads(__tstate); | |
5078 | if (PyErr_Occurred()) SWIG_fail; | |
5079 | } | |
5080 | Py_INCREF(Py_None); resultobj = Py_None; | |
5081 | return resultobj; | |
5082 | fail: | |
5083 | return NULL; | |
5084 | } | |
5085 | ||
5086 | ||
c32bde28 | 5087 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5088 | PyObject *resultobj; |
5089 | wxRect *arg1 = (wxRect *) 0 ; | |
5090 | int result; | |
5091 | PyObject * obj0 = 0 ; | |
5092 | char *kwnames[] = { | |
5093 | (char *) "self", NULL | |
5094 | }; | |
5095 | ||
5096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5099 | { |
5100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5101 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
5102 | ||
5103 | wxPyEndAllowThreads(__tstate); | |
5104 | if (PyErr_Occurred()) SWIG_fail; | |
5105 | } | |
093d3ff1 RD |
5106 | { |
5107 | resultobj = SWIG_From_int((int)(result)); | |
5108 | } | |
d55e5bfc RD |
5109 | return resultobj; |
5110 | fail: | |
5111 | return NULL; | |
5112 | } | |
5113 | ||
5114 | ||
c32bde28 | 5115 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5116 | PyObject *resultobj; |
5117 | wxRect *arg1 = (wxRect *) 0 ; | |
5118 | int arg2 ; | |
5119 | PyObject * obj0 = 0 ; | |
5120 | PyObject * obj1 = 0 ; | |
5121 | char *kwnames[] = { | |
5122 | (char *) "self",(char *) "h", NULL | |
5123 | }; | |
5124 | ||
5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5128 | { | |
5129 | arg2 = (int)(SWIG_As_int(obj1)); | |
5130 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5131 | } | |
d55e5bfc RD |
5132 | { |
5133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5134 | (arg1)->SetHeight(arg2); | |
5135 | ||
5136 | wxPyEndAllowThreads(__tstate); | |
5137 | if (PyErr_Occurred()) SWIG_fail; | |
5138 | } | |
5139 | Py_INCREF(Py_None); resultobj = Py_None; | |
5140 | return resultobj; | |
5141 | fail: | |
5142 | return NULL; | |
5143 | } | |
5144 | ||
5145 | ||
c32bde28 | 5146 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5147 | PyObject *resultobj; |
5148 | wxRect *arg1 = (wxRect *) 0 ; | |
5149 | wxPoint result; | |
5150 | PyObject * obj0 = 0 ; | |
5151 | char *kwnames[] = { | |
5152 | (char *) "self", NULL | |
5153 | }; | |
5154 | ||
5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5156 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5157 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5158 | { |
5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5160 | result = ((wxRect const *)arg1)->GetPosition(); | |
5161 | ||
5162 | wxPyEndAllowThreads(__tstate); | |
5163 | if (PyErr_Occurred()) SWIG_fail; | |
5164 | } | |
5165 | { | |
5166 | wxPoint * resultptr; | |
093d3ff1 | 5167 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
5168 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
5169 | } | |
5170 | return resultobj; | |
5171 | fail: | |
5172 | return NULL; | |
5173 | } | |
5174 | ||
5175 | ||
c32bde28 | 5176 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5177 | PyObject *resultobj; |
5178 | wxRect *arg1 = (wxRect *) 0 ; | |
5179 | wxPoint *arg2 = 0 ; | |
5180 | wxPoint temp2 ; | |
5181 | PyObject * obj0 = 0 ; | |
5182 | PyObject * obj1 = 0 ; | |
5183 | char *kwnames[] = { | |
5184 | (char *) "self",(char *) "p", NULL | |
5185 | }; | |
5186 | ||
5187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5190 | { |
5191 | arg2 = &temp2; | |
5192 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5193 | } | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
5197 | ||
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | } | |
5201 | Py_INCREF(Py_None); resultobj = Py_None; | |
5202 | return resultobj; | |
5203 | fail: | |
5204 | return NULL; | |
5205 | } | |
5206 | ||
5207 | ||
c32bde28 | 5208 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5209 | PyObject *resultobj; |
5210 | wxRect *arg1 = (wxRect *) 0 ; | |
5211 | wxSize result; | |
5212 | PyObject * obj0 = 0 ; | |
5213 | char *kwnames[] = { | |
5214 | (char *) "self", NULL | |
5215 | }; | |
5216 | ||
5217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5220 | { |
5221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5222 | result = ((wxRect const *)arg1)->GetSize(); | |
5223 | ||
5224 | wxPyEndAllowThreads(__tstate); | |
5225 | if (PyErr_Occurred()) SWIG_fail; | |
5226 | } | |
5227 | { | |
5228 | wxSize * resultptr; | |
093d3ff1 | 5229 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
5230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
5231 | } | |
5232 | return resultobj; | |
5233 | fail: | |
5234 | return NULL; | |
5235 | } | |
5236 | ||
5237 | ||
c32bde28 | 5238 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5239 | PyObject *resultobj; |
5240 | wxRect *arg1 = (wxRect *) 0 ; | |
5241 | wxSize *arg2 = 0 ; | |
5242 | wxSize temp2 ; | |
5243 | PyObject * obj0 = 0 ; | |
5244 | PyObject * obj1 = 0 ; | |
5245 | char *kwnames[] = { | |
5246 | (char *) "self",(char *) "s", NULL | |
5247 | }; | |
5248 | ||
5249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5252 | { |
5253 | arg2 = &temp2; | |
5254 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5255 | } | |
5256 | { | |
5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5258 | (arg1)->SetSize((wxSize const &)*arg2); | |
5259 | ||
5260 | wxPyEndAllowThreads(__tstate); | |
5261 | if (PyErr_Occurred()) SWIG_fail; | |
5262 | } | |
5263 | Py_INCREF(Py_None); resultobj = Py_None; | |
5264 | return resultobj; | |
5265 | fail: | |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
c32bde28 | 5270 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5271 | PyObject *resultobj; |
5272 | wxRect *arg1 = (wxRect *) 0 ; | |
5273 | wxPoint result; | |
5274 | PyObject * obj0 = 0 ; | |
5275 | char *kwnames[] = { | |
5276 | (char *) "self", NULL | |
5277 | }; | |
5278 | ||
5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5282 | { |
5283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5284 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
5285 | ||
5286 | wxPyEndAllowThreads(__tstate); | |
5287 | if (PyErr_Occurred()) SWIG_fail; | |
5288 | } | |
5289 | { | |
5290 | wxPoint * resultptr; | |
093d3ff1 | 5291 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
5292 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
5293 | } | |
5294 | return resultobj; | |
5295 | fail: | |
5296 | return NULL; | |
5297 | } | |
5298 | ||
5299 | ||
c32bde28 | 5300 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5301 | PyObject *resultobj; |
5302 | wxRect *arg1 = (wxRect *) 0 ; | |
5303 | wxPoint *arg2 = 0 ; | |
5304 | wxPoint temp2 ; | |
5305 | PyObject * obj0 = 0 ; | |
5306 | PyObject * obj1 = 0 ; | |
5307 | char *kwnames[] = { | |
5308 | (char *) "self",(char *) "p", NULL | |
5309 | }; | |
5310 | ||
5311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5314 | { |
5315 | arg2 = &temp2; | |
5316 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5317 | } | |
5318 | { | |
5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5320 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
5321 | ||
5322 | wxPyEndAllowThreads(__tstate); | |
5323 | if (PyErr_Occurred()) SWIG_fail; | |
5324 | } | |
5325 | Py_INCREF(Py_None); resultobj = Py_None; | |
5326 | return resultobj; | |
5327 | fail: | |
5328 | return NULL; | |
5329 | } | |
5330 | ||
5331 | ||
c32bde28 | 5332 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5333 | PyObject *resultobj; |
5334 | wxRect *arg1 = (wxRect *) 0 ; | |
5335 | wxPoint result; | |
5336 | PyObject * obj0 = 0 ; | |
5337 | char *kwnames[] = { | |
5338 | (char *) "self", NULL | |
5339 | }; | |
5340 | ||
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5344 | { |
5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5346 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
5347 | ||
5348 | wxPyEndAllowThreads(__tstate); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
5351 | { | |
5352 | wxPoint * resultptr; | |
093d3ff1 | 5353 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
5354 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
5355 | } | |
5356 | return resultobj; | |
5357 | fail: | |
5358 | return NULL; | |
5359 | } | |
5360 | ||
5361 | ||
c32bde28 | 5362 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5363 | PyObject *resultobj; |
5364 | wxRect *arg1 = (wxRect *) 0 ; | |
5365 | wxPoint *arg2 = 0 ; | |
5366 | wxPoint temp2 ; | |
5367 | PyObject * obj0 = 0 ; | |
5368 | PyObject * obj1 = 0 ; | |
5369 | char *kwnames[] = { | |
5370 | (char *) "self",(char *) "p", NULL | |
5371 | }; | |
5372 | ||
5373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5376 | { |
5377 | arg2 = &temp2; | |
5378 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5379 | } | |
5380 | { | |
5381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5382 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
5383 | ||
5384 | wxPyEndAllowThreads(__tstate); | |
5385 | if (PyErr_Occurred()) SWIG_fail; | |
5386 | } | |
5387 | Py_INCREF(Py_None); resultobj = Py_None; | |
5388 | return resultobj; | |
5389 | fail: | |
5390 | return NULL; | |
5391 | } | |
5392 | ||
5393 | ||
c32bde28 | 5394 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5395 | PyObject *resultobj; |
5396 | wxRect *arg1 = (wxRect *) 0 ; | |
5397 | int result; | |
5398 | PyObject * obj0 = 0 ; | |
5399 | char *kwnames[] = { | |
5400 | (char *) "self", NULL | |
5401 | }; | |
5402 | ||
5403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5404 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5406 | { |
5407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5408 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
5409 | ||
5410 | wxPyEndAllowThreads(__tstate); | |
5411 | if (PyErr_Occurred()) SWIG_fail; | |
5412 | } | |
093d3ff1 RD |
5413 | { |
5414 | resultobj = SWIG_From_int((int)(result)); | |
5415 | } | |
d55e5bfc RD |
5416 | return resultobj; |
5417 | fail: | |
5418 | return NULL; | |
5419 | } | |
5420 | ||
5421 | ||
c32bde28 | 5422 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5423 | PyObject *resultobj; |
5424 | wxRect *arg1 = (wxRect *) 0 ; | |
5425 | int result; | |
5426 | PyObject * obj0 = 0 ; | |
5427 | char *kwnames[] = { | |
5428 | (char *) "self", NULL | |
5429 | }; | |
5430 | ||
5431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5434 | { |
5435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5436 | result = (int)((wxRect const *)arg1)->GetTop(); | |
5437 | ||
5438 | wxPyEndAllowThreads(__tstate); | |
5439 | if (PyErr_Occurred()) SWIG_fail; | |
5440 | } | |
093d3ff1 RD |
5441 | { |
5442 | resultobj = SWIG_From_int((int)(result)); | |
5443 | } | |
d55e5bfc RD |
5444 | return resultobj; |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
c32bde28 | 5450 | static PyObject *_wrap_Rect_GetBottom(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_GetBottom",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)->GetBottom(); | |
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_GetRight(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_GetRight",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)->GetRight(); | |
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_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5507 | PyObject *resultobj; |
5508 | wxRect *arg1 = (wxRect *) 0 ; | |
5509 | int arg2 ; | |
5510 | PyObject * obj0 = 0 ; | |
5511 | PyObject * obj1 = 0 ; | |
5512 | char *kwnames[] = { | |
5513 | (char *) "self",(char *) "left", NULL | |
5514 | }; | |
5515 | ||
5516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5519 | { | |
5520 | arg2 = (int)(SWIG_As_int(obj1)); | |
5521 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5522 | } | |
d55e5bfc RD |
5523 | { |
5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5525 | (arg1)->SetLeft(arg2); | |
5526 | ||
5527 | wxPyEndAllowThreads(__tstate); | |
5528 | if (PyErr_Occurred()) SWIG_fail; | |
5529 | } | |
5530 | Py_INCREF(Py_None); resultobj = Py_None; | |
5531 | return resultobj; | |
5532 | fail: | |
5533 | return NULL; | |
5534 | } | |
5535 | ||
5536 | ||
c32bde28 | 5537 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5538 | PyObject *resultobj; |
5539 | wxRect *arg1 = (wxRect *) 0 ; | |
5540 | int arg2 ; | |
5541 | PyObject * obj0 = 0 ; | |
5542 | PyObject * obj1 = 0 ; | |
5543 | char *kwnames[] = { | |
5544 | (char *) "self",(char *) "right", NULL | |
5545 | }; | |
5546 | ||
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5550 | { | |
5551 | arg2 = (int)(SWIG_As_int(obj1)); | |
5552 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5553 | } | |
d55e5bfc RD |
5554 | { |
5555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5556 | (arg1)->SetRight(arg2); | |
5557 | ||
5558 | wxPyEndAllowThreads(__tstate); | |
5559 | if (PyErr_Occurred()) SWIG_fail; | |
5560 | } | |
5561 | Py_INCREF(Py_None); resultobj = Py_None; | |
5562 | return resultobj; | |
5563 | fail: | |
5564 | return NULL; | |
5565 | } | |
5566 | ||
5567 | ||
c32bde28 | 5568 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5569 | PyObject *resultobj; |
5570 | wxRect *arg1 = (wxRect *) 0 ; | |
5571 | int arg2 ; | |
5572 | PyObject * obj0 = 0 ; | |
5573 | PyObject * obj1 = 0 ; | |
5574 | char *kwnames[] = { | |
5575 | (char *) "self",(char *) "top", NULL | |
5576 | }; | |
5577 | ||
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5581 | { | |
5582 | arg2 = (int)(SWIG_As_int(obj1)); | |
5583 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5584 | } | |
d55e5bfc RD |
5585 | { |
5586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5587 | (arg1)->SetTop(arg2); | |
5588 | ||
5589 | wxPyEndAllowThreads(__tstate); | |
5590 | if (PyErr_Occurred()) SWIG_fail; | |
5591 | } | |
5592 | Py_INCREF(Py_None); resultobj = Py_None; | |
5593 | return resultobj; | |
5594 | fail: | |
5595 | return NULL; | |
5596 | } | |
5597 | ||
5598 | ||
c32bde28 | 5599 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5600 | PyObject *resultobj; |
5601 | wxRect *arg1 = (wxRect *) 0 ; | |
5602 | int arg2 ; | |
5603 | PyObject * obj0 = 0 ; | |
5604 | PyObject * obj1 = 0 ; | |
5605 | char *kwnames[] = { | |
5606 | (char *) "self",(char *) "bottom", NULL | |
5607 | }; | |
5608 | ||
5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5610 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5612 | { | |
5613 | arg2 = (int)(SWIG_As_int(obj1)); | |
5614 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5615 | } | |
d55e5bfc RD |
5616 | { |
5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5618 | (arg1)->SetBottom(arg2); | |
5619 | ||
5620 | wxPyEndAllowThreads(__tstate); | |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
5622 | } | |
5623 | Py_INCREF(Py_None); resultobj = Py_None; | |
5624 | return resultobj; | |
5625 | fail: | |
5626 | return NULL; | |
5627 | } | |
5628 | ||
5629 | ||
c32bde28 | 5630 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5631 | PyObject *resultobj; |
5632 | wxRect *arg1 = (wxRect *) 0 ; | |
5633 | int arg2 ; | |
5634 | int arg3 ; | |
5635 | wxRect *result; | |
5636 | PyObject * obj0 = 0 ; | |
5637 | PyObject * obj1 = 0 ; | |
5638 | PyObject * obj2 = 0 ; | |
5639 | char *kwnames[] = { | |
5640 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5641 | }; | |
5642 | ||
5643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5646 | { | |
5647 | arg2 = (int)(SWIG_As_int(obj1)); | |
5648 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5649 | } | |
5650 | { | |
5651 | arg3 = (int)(SWIG_As_int(obj2)); | |
5652 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5653 | } | |
d55e5bfc RD |
5654 | { |
5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5656 | { | |
5657 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
5658 | result = (wxRect *) &_result_ref; | |
5659 | } | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
5665 | return resultobj; | |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
c32bde28 | 5671 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5672 | PyObject *resultobj; |
5673 | wxRect *arg1 = (wxRect *) 0 ; | |
5674 | int arg2 ; | |
5675 | int arg3 ; | |
5676 | wxRect *result; | |
5677 | PyObject * obj0 = 0 ; | |
5678 | PyObject * obj1 = 0 ; | |
5679 | PyObject * obj2 = 0 ; | |
5680 | char *kwnames[] = { | |
5681 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5682 | }; | |
5683 | ||
5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5687 | { | |
5688 | arg2 = (int)(SWIG_As_int(obj1)); | |
5689 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5690 | } | |
5691 | { | |
5692 | arg3 = (int)(SWIG_As_int(obj2)); | |
5693 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5694 | } | |
d55e5bfc RD |
5695 | { |
5696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5697 | { | |
5698 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
5699 | result = (wxRect *) &_result_ref; | |
5700 | } | |
5701 | ||
5702 | wxPyEndAllowThreads(__tstate); | |
5703 | if (PyErr_Occurred()) SWIG_fail; | |
5704 | } | |
5705 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
5706 | return resultobj; | |
5707 | fail: | |
5708 | return NULL; | |
5709 | } | |
5710 | ||
5711 | ||
c32bde28 | 5712 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5713 | PyObject *resultobj; |
5714 | wxRect *arg1 = (wxRect *) 0 ; | |
5715 | int arg2 ; | |
5716 | int arg3 ; | |
5717 | PyObject * obj0 = 0 ; | |
5718 | PyObject * obj1 = 0 ; | |
5719 | PyObject * obj2 = 0 ; | |
5720 | char *kwnames[] = { | |
5721 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5722 | }; | |
5723 | ||
5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5727 | { | |
5728 | arg2 = (int)(SWIG_As_int(obj1)); | |
5729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5730 | } | |
5731 | { | |
5732 | arg3 = (int)(SWIG_As_int(obj2)); | |
5733 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5734 | } | |
d55e5bfc RD |
5735 | { |
5736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5737 | (arg1)->Offset(arg2,arg3); | |
5738 | ||
5739 | wxPyEndAllowThreads(__tstate); | |
5740 | if (PyErr_Occurred()) SWIG_fail; | |
5741 | } | |
5742 | Py_INCREF(Py_None); resultobj = Py_None; | |
5743 | return resultobj; | |
5744 | fail: | |
5745 | return NULL; | |
5746 | } | |
5747 | ||
5748 | ||
c32bde28 | 5749 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5750 | PyObject *resultobj; |
5751 | wxRect *arg1 = (wxRect *) 0 ; | |
5752 | wxPoint *arg2 = 0 ; | |
5753 | wxPoint temp2 ; | |
5754 | PyObject * obj0 = 0 ; | |
5755 | PyObject * obj1 = 0 ; | |
5756 | char *kwnames[] = { | |
5757 | (char *) "self",(char *) "pt", NULL | |
5758 | }; | |
5759 | ||
5760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5763 | { |
5764 | arg2 = &temp2; | |
5765 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5766 | } | |
5767 | { | |
5768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5769 | (arg1)->Offset((wxPoint const &)*arg2); | |
5770 | ||
5771 | wxPyEndAllowThreads(__tstate); | |
5772 | if (PyErr_Occurred()) SWIG_fail; | |
5773 | } | |
5774 | Py_INCREF(Py_None); resultobj = Py_None; | |
5775 | return resultobj; | |
5776 | fail: | |
5777 | return NULL; | |
5778 | } | |
5779 | ||
5780 | ||
c32bde28 | 5781 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5782 | PyObject *resultobj; |
5783 | wxRect *arg1 = (wxRect *) 0 ; | |
5784 | wxRect *arg2 = 0 ; | |
b519803b | 5785 | wxRect result; |
d55e5bfc RD |
5786 | wxRect temp2 ; |
5787 | PyObject * obj0 = 0 ; | |
5788 | PyObject * obj1 = 0 ; | |
5789 | char *kwnames[] = { | |
5790 | (char *) "self",(char *) "rect", NULL | |
5791 | }; | |
5792 | ||
5793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5796 | { |
5797 | arg2 = &temp2; | |
5798 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5799 | } | |
5800 | { | |
5801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b519803b | 5802 | result = (arg1)->Intersect((wxRect const &)*arg2); |
d55e5bfc RD |
5803 | |
5804 | wxPyEndAllowThreads(__tstate); | |
5805 | if (PyErr_Occurred()) SWIG_fail; | |
5806 | } | |
b519803b RD |
5807 | { |
5808 | wxRect * resultptr; | |
093d3ff1 | 5809 | resultptr = new wxRect((wxRect &)(result)); |
b519803b RD |
5810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5811 | } | |
5812 | return resultobj; | |
5813 | fail: | |
5814 | return NULL; | |
5815 | } | |
5816 | ||
5817 | ||
5818 | static PyObject *_wrap_Rect_Union(PyObject *, PyObject *args, PyObject *kwargs) { | |
5819 | PyObject *resultobj; | |
5820 | wxRect *arg1 = (wxRect *) 0 ; | |
5821 | wxRect *arg2 = 0 ; | |
5822 | wxRect result; | |
5823 | wxRect temp2 ; | |
5824 | PyObject * obj0 = 0 ; | |
5825 | PyObject * obj1 = 0 ; | |
5826 | char *kwnames[] = { | |
5827 | (char *) "self",(char *) "rect", NULL | |
5828 | }; | |
5829 | ||
5830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5833 | { |
5834 | arg2 = &temp2; | |
5835 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5836 | } | |
5837 | { | |
5838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5839 | result = (arg1)->Union((wxRect const &)*arg2); | |
5840 | ||
5841 | wxPyEndAllowThreads(__tstate); | |
5842 | if (PyErr_Occurred()) SWIG_fail; | |
5843 | } | |
5844 | { | |
5845 | wxRect * resultptr; | |
093d3ff1 | 5846 | resultptr = new wxRect((wxRect &)(result)); |
b519803b RD |
5847 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5848 | } | |
d55e5bfc RD |
5849 | return resultobj; |
5850 | fail: | |
5851 | return NULL; | |
5852 | } | |
5853 | ||
5854 | ||
c32bde28 | 5855 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5856 | PyObject *resultobj; |
5857 | wxRect *arg1 = (wxRect *) 0 ; | |
5858 | wxRect *arg2 = 0 ; | |
5859 | wxRect result; | |
5860 | wxRect temp2 ; | |
5861 | PyObject * obj0 = 0 ; | |
5862 | PyObject * obj1 = 0 ; | |
5863 | char *kwnames[] = { | |
5864 | (char *) "self",(char *) "rect", NULL | |
5865 | }; | |
5866 | ||
5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5870 | { |
5871 | arg2 = &temp2; | |
5872 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5873 | } | |
5874 | { | |
5875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5876 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
5877 | ||
5878 | wxPyEndAllowThreads(__tstate); | |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
5880 | } | |
5881 | { | |
5882 | wxRect * resultptr; | |
093d3ff1 | 5883 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
5884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5885 | } | |
5886 | return resultobj; | |
5887 | fail: | |
5888 | return NULL; | |
5889 | } | |
5890 | ||
5891 | ||
c32bde28 | 5892 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5893 | PyObject *resultobj; |
5894 | wxRect *arg1 = (wxRect *) 0 ; | |
5895 | wxRect *arg2 = 0 ; | |
5896 | wxRect *result; | |
5897 | wxRect temp2 ; | |
5898 | PyObject * obj0 = 0 ; | |
5899 | PyObject * obj1 = 0 ; | |
5900 | char *kwnames[] = { | |
5901 | (char *) "self",(char *) "rect", NULL | |
5902 | }; | |
5903 | ||
5904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
5906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5907 | { |
5908 | arg2 = &temp2; | |
5909 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5910 | } | |
5911 | { | |
5912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5913 | { | |
5914 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
5915 | result = (wxRect *) &_result_ref; | |
5916 | } | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
c32bde28 | 5921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d55e5bfc RD |
5922 | return resultobj; |
5923 | fail: | |
5924 | return NULL; | |
5925 | } | |
5926 | ||
5927 | ||
c32bde28 | 5928 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5929 | PyObject *resultobj; |
5930 | wxRect *arg1 = (wxRect *) 0 ; | |
5931 | wxRect *arg2 = 0 ; | |
5932 | bool result; | |
5933 | wxRect temp2 ; | |
5934 | PyObject * obj0 = 0 ; | |
5935 | PyObject * obj1 = 0 ; | |
5936 | char *kwnames[] = { | |
5937 | (char *) "self",(char *) "rect", NULL | |
5938 | }; | |
5939 | ||
5940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5943 | { |
5944 | arg2 = &temp2; | |
5945 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5946 | } | |
5947 | { | |
5948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5949 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
5950 | ||
5951 | wxPyEndAllowThreads(__tstate); | |
5952 | if (PyErr_Occurred()) SWIG_fail; | |
5953 | } | |
5954 | { | |
5955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5956 | } | |
5957 | return resultobj; | |
5958 | fail: | |
5959 | return NULL; | |
5960 | } | |
5961 | ||
5962 | ||
c32bde28 | 5963 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5964 | PyObject *resultobj; |
5965 | wxRect *arg1 = (wxRect *) 0 ; | |
5966 | wxRect *arg2 = 0 ; | |
5967 | bool result; | |
5968 | wxRect temp2 ; | |
5969 | PyObject * obj0 = 0 ; | |
5970 | PyObject * obj1 = 0 ; | |
5971 | char *kwnames[] = { | |
5972 | (char *) "self",(char *) "rect", NULL | |
5973 | }; | |
5974 | ||
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5978 | { |
5979 | arg2 = &temp2; | |
5980 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5981 | } | |
5982 | { | |
5983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5984 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
5985 | ||
5986 | wxPyEndAllowThreads(__tstate); | |
5987 | if (PyErr_Occurred()) SWIG_fail; | |
5988 | } | |
5989 | { | |
5990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5991 | } | |
5992 | return resultobj; | |
5993 | fail: | |
5994 | return NULL; | |
5995 | } | |
5996 | ||
5997 | ||
c32bde28 | 5998 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5999 | PyObject *resultobj; |
6000 | wxRect *arg1 = (wxRect *) 0 ; | |
6001 | int arg2 ; | |
6002 | int arg3 ; | |
6003 | bool result; | |
6004 | PyObject * obj0 = 0 ; | |
6005 | PyObject * obj1 = 0 ; | |
6006 | PyObject * obj2 = 0 ; | |
6007 | char *kwnames[] = { | |
6008 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6009 | }; | |
6010 | ||
6011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
6012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6014 | { | |
6015 | arg2 = (int)(SWIG_As_int(obj1)); | |
6016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6017 | } | |
6018 | { | |
6019 | arg3 = (int)(SWIG_As_int(obj2)); | |
6020 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6021 | } | |
d55e5bfc RD |
6022 | { |
6023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6024 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
6025 | ||
6026 | wxPyEndAllowThreads(__tstate); | |
6027 | if (PyErr_Occurred()) SWIG_fail; | |
6028 | } | |
6029 | { | |
6030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6031 | } | |
6032 | return resultobj; | |
6033 | fail: | |
6034 | return NULL; | |
6035 | } | |
6036 | ||
6037 | ||
c32bde28 | 6038 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6039 | PyObject *resultobj; |
6040 | wxRect *arg1 = (wxRect *) 0 ; | |
6041 | wxPoint *arg2 = 0 ; | |
6042 | bool result; | |
6043 | wxPoint temp2 ; | |
6044 | PyObject * obj0 = 0 ; | |
6045 | PyObject * obj1 = 0 ; | |
6046 | char *kwnames[] = { | |
6047 | (char *) "self",(char *) "pt", NULL | |
6048 | }; | |
6049 | ||
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6053 | { |
6054 | arg2 = &temp2; | |
6055 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6056 | } | |
6057 | { | |
6058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6059 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
6060 | ||
6061 | wxPyEndAllowThreads(__tstate); | |
6062 | if (PyErr_Occurred()) SWIG_fail; | |
6063 | } | |
6064 | { | |
6065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6066 | } | |
6067 | return resultobj; | |
6068 | fail: | |
6069 | return NULL; | |
6070 | } | |
6071 | ||
6072 | ||
c32bde28 | 6073 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6074 | PyObject *resultobj; |
6075 | wxRect *arg1 = (wxRect *) 0 ; | |
6076 | wxRect *arg2 = 0 ; | |
6077 | bool result; | |
6078 | wxRect temp2 ; | |
6079 | PyObject * obj0 = 0 ; | |
6080 | PyObject * obj1 = 0 ; | |
6081 | char *kwnames[] = { | |
6082 | (char *) "self",(char *) "rect", NULL | |
6083 | }; | |
6084 | ||
6085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6088 | { |
6089 | arg2 = &temp2; | |
6090 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6091 | } | |
6092 | { | |
6093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6094 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
6095 | ||
6096 | wxPyEndAllowThreads(__tstate); | |
6097 | if (PyErr_Occurred()) SWIG_fail; | |
6098 | } | |
6099 | { | |
6100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6101 | } | |
6102 | return resultobj; | |
6103 | fail: | |
6104 | return NULL; | |
6105 | } | |
6106 | ||
6107 | ||
c32bde28 | 6108 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6109 | PyObject *resultobj; |
6110 | wxRect *arg1 = (wxRect *) 0 ; | |
6111 | int arg2 ; | |
6112 | PyObject * obj0 = 0 ; | |
6113 | PyObject * obj1 = 0 ; | |
6114 | char *kwnames[] = { | |
6115 | (char *) "self",(char *) "x", NULL | |
6116 | }; | |
6117 | ||
6118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6121 | { | |
6122 | arg2 = (int)(SWIG_As_int(obj1)); | |
6123 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6124 | } | |
d55e5bfc RD |
6125 | if (arg1) (arg1)->x = arg2; |
6126 | ||
6127 | Py_INCREF(Py_None); resultobj = Py_None; | |
6128 | return resultobj; | |
6129 | fail: | |
6130 | return NULL; | |
6131 | } | |
6132 | ||
6133 | ||
c32bde28 | 6134 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6135 | PyObject *resultobj; |
6136 | wxRect *arg1 = (wxRect *) 0 ; | |
6137 | int result; | |
6138 | PyObject * obj0 = 0 ; | |
6139 | char *kwnames[] = { | |
6140 | (char *) "self", NULL | |
6141 | }; | |
6142 | ||
6143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6146 | result = (int) ((arg1)->x); |
6147 | ||
093d3ff1 RD |
6148 | { |
6149 | resultobj = SWIG_From_int((int)(result)); | |
6150 | } | |
d55e5bfc RD |
6151 | return resultobj; |
6152 | fail: | |
6153 | return NULL; | |
6154 | } | |
6155 | ||
6156 | ||
c32bde28 | 6157 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6158 | PyObject *resultobj; |
6159 | wxRect *arg1 = (wxRect *) 0 ; | |
6160 | int arg2 ; | |
6161 | PyObject * obj0 = 0 ; | |
6162 | PyObject * obj1 = 0 ; | |
6163 | char *kwnames[] = { | |
6164 | (char *) "self",(char *) "y", NULL | |
6165 | }; | |
6166 | ||
6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6170 | { | |
6171 | arg2 = (int)(SWIG_As_int(obj1)); | |
6172 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6173 | } | |
d55e5bfc RD |
6174 | if (arg1) (arg1)->y = arg2; |
6175 | ||
6176 | Py_INCREF(Py_None); resultobj = Py_None; | |
6177 | return resultobj; | |
6178 | fail: | |
6179 | return NULL; | |
6180 | } | |
6181 | ||
6182 | ||
c32bde28 | 6183 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6184 | PyObject *resultobj; |
6185 | wxRect *arg1 = (wxRect *) 0 ; | |
6186 | int result; | |
6187 | PyObject * obj0 = 0 ; | |
6188 | char *kwnames[] = { | |
6189 | (char *) "self", NULL | |
6190 | }; | |
6191 | ||
6192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6195 | result = (int) ((arg1)->y); |
6196 | ||
093d3ff1 RD |
6197 | { |
6198 | resultobj = SWIG_From_int((int)(result)); | |
6199 | } | |
d55e5bfc RD |
6200 | return resultobj; |
6201 | fail: | |
6202 | return NULL; | |
6203 | } | |
6204 | ||
6205 | ||
c32bde28 | 6206 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6207 | PyObject *resultobj; |
6208 | wxRect *arg1 = (wxRect *) 0 ; | |
6209 | int arg2 ; | |
6210 | PyObject * obj0 = 0 ; | |
6211 | PyObject * obj1 = 0 ; | |
6212 | char *kwnames[] = { | |
6213 | (char *) "self",(char *) "width", NULL | |
6214 | }; | |
6215 | ||
6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6219 | { | |
6220 | arg2 = (int)(SWIG_As_int(obj1)); | |
6221 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6222 | } | |
d55e5bfc RD |
6223 | if (arg1) (arg1)->width = arg2; |
6224 | ||
6225 | Py_INCREF(Py_None); resultobj = Py_None; | |
6226 | return resultobj; | |
6227 | fail: | |
6228 | return NULL; | |
6229 | } | |
6230 | ||
6231 | ||
c32bde28 | 6232 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6233 | PyObject *resultobj; |
6234 | wxRect *arg1 = (wxRect *) 0 ; | |
6235 | int result; | |
6236 | PyObject * obj0 = 0 ; | |
6237 | char *kwnames[] = { | |
6238 | (char *) "self", NULL | |
6239 | }; | |
6240 | ||
6241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6244 | result = (int) ((arg1)->width); |
6245 | ||
093d3ff1 RD |
6246 | { |
6247 | resultobj = SWIG_From_int((int)(result)); | |
6248 | } | |
d55e5bfc RD |
6249 | return resultobj; |
6250 | fail: | |
6251 | return NULL; | |
6252 | } | |
6253 | ||
6254 | ||
c32bde28 | 6255 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6256 | PyObject *resultobj; |
6257 | wxRect *arg1 = (wxRect *) 0 ; | |
6258 | int arg2 ; | |
6259 | PyObject * obj0 = 0 ; | |
6260 | PyObject * obj1 = 0 ; | |
6261 | char *kwnames[] = { | |
6262 | (char *) "self",(char *) "height", NULL | |
6263 | }; | |
6264 | ||
6265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6268 | { | |
6269 | arg2 = (int)(SWIG_As_int(obj1)); | |
6270 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6271 | } | |
d55e5bfc RD |
6272 | if (arg1) (arg1)->height = arg2; |
6273 | ||
6274 | Py_INCREF(Py_None); resultobj = Py_None; | |
6275 | return resultobj; | |
6276 | fail: | |
6277 | return NULL; | |
6278 | } | |
6279 | ||
6280 | ||
c32bde28 | 6281 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6282 | PyObject *resultobj; |
6283 | wxRect *arg1 = (wxRect *) 0 ; | |
6284 | int result; | |
6285 | PyObject * obj0 = 0 ; | |
6286 | char *kwnames[] = { | |
6287 | (char *) "self", NULL | |
6288 | }; | |
6289 | ||
6290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6293 | result = (int) ((arg1)->height); |
6294 | ||
093d3ff1 RD |
6295 | { |
6296 | resultobj = SWIG_From_int((int)(result)); | |
6297 | } | |
d55e5bfc RD |
6298 | return resultobj; |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
c32bde28 | 6304 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6305 | PyObject *resultobj; |
6306 | wxRect *arg1 = (wxRect *) 0 ; | |
6307 | int arg2 = (int) 0 ; | |
6308 | int arg3 = (int) 0 ; | |
6309 | int arg4 = (int) 0 ; | |
6310 | int arg5 = (int) 0 ; | |
6311 | PyObject * obj0 = 0 ; | |
6312 | PyObject * obj1 = 0 ; | |
6313 | PyObject * obj2 = 0 ; | |
6314 | PyObject * obj3 = 0 ; | |
6315 | PyObject * obj4 = 0 ; | |
6316 | char *kwnames[] = { | |
6317 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
6318 | }; | |
6319 | ||
6320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
6321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 6323 | if (obj1) { |
093d3ff1 RD |
6324 | { |
6325 | arg2 = (int)(SWIG_As_int(obj1)); | |
6326 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6327 | } | |
d55e5bfc RD |
6328 | } |
6329 | if (obj2) { | |
093d3ff1 RD |
6330 | { |
6331 | arg3 = (int)(SWIG_As_int(obj2)); | |
6332 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6333 | } | |
d55e5bfc RD |
6334 | } |
6335 | if (obj3) { | |
093d3ff1 RD |
6336 | { |
6337 | arg4 = (int)(SWIG_As_int(obj3)); | |
6338 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6339 | } | |
d55e5bfc RD |
6340 | } |
6341 | if (obj4) { | |
093d3ff1 RD |
6342 | { |
6343 | arg5 = (int)(SWIG_As_int(obj4)); | |
6344 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6345 | } | |
d55e5bfc RD |
6346 | } |
6347 | { | |
6348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6349 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
6350 | ||
6351 | wxPyEndAllowThreads(__tstate); | |
6352 | if (PyErr_Occurred()) SWIG_fail; | |
6353 | } | |
6354 | Py_INCREF(Py_None); resultobj = Py_None; | |
6355 | return resultobj; | |
6356 | fail: | |
6357 | return NULL; | |
6358 | } | |
6359 | ||
6360 | ||
c32bde28 | 6361 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6362 | PyObject *resultobj; |
6363 | wxRect *arg1 = (wxRect *) 0 ; | |
6364 | PyObject *result; | |
6365 | PyObject * obj0 = 0 ; | |
6366 | char *kwnames[] = { | |
6367 | (char *) "self", NULL | |
6368 | }; | |
6369 | ||
6370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6373 | { |
6374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6375 | result = (PyObject *)wxRect_Get(arg1); | |
6376 | ||
6377 | wxPyEndAllowThreads(__tstate); | |
6378 | if (PyErr_Occurred()) SWIG_fail; | |
6379 | } | |
6380 | resultobj = result; | |
6381 | return resultobj; | |
6382 | fail: | |
6383 | return NULL; | |
6384 | } | |
6385 | ||
6386 | ||
c32bde28 | 6387 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6388 | PyObject *obj; |
6389 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6390 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
6391 | Py_INCREF(obj); | |
6392 | return Py_BuildValue((char *)""); | |
6393 | } | |
c32bde28 | 6394 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6395 | PyObject *resultobj; |
6396 | wxRect *arg1 = (wxRect *) 0 ; | |
6397 | wxRect *arg2 = (wxRect *) 0 ; | |
6398 | PyObject *result; | |
6399 | PyObject * obj0 = 0 ; | |
6400 | PyObject * obj1 = 0 ; | |
6401 | char *kwnames[] = { | |
6402 | (char *) "r1",(char *) "r2", NULL | |
6403 | }; | |
6404 | ||
6405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6406 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6407 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6408 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
6409 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 6410 | { |
0439c23b | 6411 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6413 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
6414 | ||
6415 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6416 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6417 | } |
6418 | resultobj = result; | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | return NULL; | |
6422 | } | |
6423 | ||
6424 | ||
c32bde28 | 6425 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6426 | PyObject *resultobj; |
6427 | double arg1 = (double) 0.0 ; | |
6428 | double arg2 = (double) 0.0 ; | |
6429 | wxPoint2D *result; | |
6430 | PyObject * obj0 = 0 ; | |
6431 | PyObject * obj1 = 0 ; | |
6432 | char *kwnames[] = { | |
6433 | (char *) "x",(char *) "y", NULL | |
6434 | }; | |
6435 | ||
6436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
6437 | if (obj0) { | |
093d3ff1 RD |
6438 | { |
6439 | arg1 = (double)(SWIG_As_double(obj0)); | |
6440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6441 | } | |
d55e5bfc RD |
6442 | } |
6443 | if (obj1) { | |
093d3ff1 RD |
6444 | { |
6445 | arg2 = (double)(SWIG_As_double(obj1)); | |
6446 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6447 | } | |
d55e5bfc RD |
6448 | } |
6449 | { | |
6450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6451 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
6452 | ||
6453 | wxPyEndAllowThreads(__tstate); | |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | } | |
6456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
6457 | return resultobj; | |
6458 | fail: | |
6459 | return NULL; | |
6460 | } | |
6461 | ||
6462 | ||
c32bde28 | 6463 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6464 | PyObject *resultobj; |
6465 | wxPoint2D *arg1 = 0 ; | |
6466 | wxPoint2D *result; | |
6467 | wxPoint2D temp1 ; | |
6468 | PyObject * obj0 = 0 ; | |
6469 | char *kwnames[] = { | |
6470 | (char *) "pt", NULL | |
6471 | }; | |
6472 | ||
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
6474 | { | |
6475 | arg1 = &temp1; | |
6476 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
6477 | } | |
6478 | { | |
6479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6480 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
6481 | ||
6482 | wxPyEndAllowThreads(__tstate); | |
6483 | if (PyErr_Occurred()) SWIG_fail; | |
6484 | } | |
6485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
6486 | return resultobj; | |
6487 | fail: | |
6488 | return NULL; | |
6489 | } | |
6490 | ||
6491 | ||
c32bde28 | 6492 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6493 | PyObject *resultobj; |
6494 | wxPoint *arg1 = 0 ; | |
6495 | wxPoint2D *result; | |
6496 | wxPoint temp1 ; | |
6497 | PyObject * obj0 = 0 ; | |
6498 | char *kwnames[] = { | |
6499 | (char *) "pt", NULL | |
6500 | }; | |
6501 | ||
6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
6503 | { | |
6504 | arg1 = &temp1; | |
6505 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
6506 | } | |
6507 | { | |
6508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6509 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
6510 | ||
6511 | wxPyEndAllowThreads(__tstate); | |
6512 | if (PyErr_Occurred()) SWIG_fail; | |
6513 | } | |
6514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
6515 | return resultobj; | |
6516 | fail: | |
6517 | return NULL; | |
6518 | } | |
6519 | ||
6520 | ||
c32bde28 | 6521 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6522 | PyObject *resultobj; |
6523 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6524 | int *arg2 = (int *) 0 ; | |
6525 | int *arg3 = (int *) 0 ; | |
6526 | int temp2 ; | |
c32bde28 | 6527 | int res2 = 0 ; |
d55e5bfc | 6528 | int temp3 ; |
c32bde28 | 6529 | int res3 = 0 ; |
d55e5bfc RD |
6530 | PyObject * obj0 = 0 ; |
6531 | char *kwnames[] = { | |
6532 | (char *) "self", NULL | |
6533 | }; | |
6534 | ||
c32bde28 RD |
6535 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6536 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6540 | { |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
6543 | ||
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
6546 | } | |
6547 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
6548 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6549 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6550 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6551 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
6552 | return resultobj; |
6553 | fail: | |
6554 | return NULL; | |
6555 | } | |
6556 | ||
6557 | ||
c32bde28 | 6558 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6559 | PyObject *resultobj; |
6560 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6561 | int *arg2 = (int *) 0 ; | |
6562 | int *arg3 = (int *) 0 ; | |
6563 | int temp2 ; | |
c32bde28 | 6564 | int res2 = 0 ; |
d55e5bfc | 6565 | int temp3 ; |
c32bde28 | 6566 | int res3 = 0 ; |
d55e5bfc RD |
6567 | PyObject * obj0 = 0 ; |
6568 | char *kwnames[] = { | |
6569 | (char *) "self", NULL | |
6570 | }; | |
6571 | ||
c32bde28 RD |
6572 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6573 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6577 | { |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
6580 | ||
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
6583 | } | |
6584 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
6585 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6586 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6587 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6588 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
6589 | return resultobj; |
6590 | fail: | |
6591 | return NULL; | |
6592 | } | |
6593 | ||
6594 | ||
c32bde28 | 6595 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6596 | PyObject *resultobj; |
6597 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6598 | double result; | |
6599 | PyObject * obj0 = 0 ; | |
6600 | char *kwnames[] = { | |
6601 | (char *) "self", NULL | |
6602 | }; | |
6603 | ||
6604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6607 | { |
6608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6609 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
6610 | ||
6611 | wxPyEndAllowThreads(__tstate); | |
6612 | if (PyErr_Occurred()) SWIG_fail; | |
6613 | } | |
093d3ff1 RD |
6614 | { |
6615 | resultobj = SWIG_From_double((double)(result)); | |
6616 | } | |
d55e5bfc RD |
6617 | return resultobj; |
6618 | fail: | |
6619 | return NULL; | |
6620 | } | |
6621 | ||
6622 | ||
c32bde28 | 6623 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6624 | PyObject *resultobj; |
6625 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6626 | double result; | |
6627 | PyObject * obj0 = 0 ; | |
6628 | char *kwnames[] = { | |
6629 | (char *) "self", NULL | |
6630 | }; | |
6631 | ||
6632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6635 | { |
6636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6637 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
6638 | ||
6639 | wxPyEndAllowThreads(__tstate); | |
6640 | if (PyErr_Occurred()) SWIG_fail; | |
6641 | } | |
093d3ff1 RD |
6642 | { |
6643 | resultobj = SWIG_From_double((double)(result)); | |
6644 | } | |
d55e5bfc RD |
6645 | return resultobj; |
6646 | fail: | |
6647 | return NULL; | |
6648 | } | |
6649 | ||
6650 | ||
c32bde28 | 6651 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6652 | PyObject *resultobj; |
6653 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6654 | double arg2 ; | |
6655 | PyObject * obj0 = 0 ; | |
6656 | PyObject * obj1 = 0 ; | |
6657 | char *kwnames[] = { | |
6658 | (char *) "self",(char *) "length", NULL | |
6659 | }; | |
6660 | ||
6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6664 | { | |
6665 | arg2 = (double)(SWIG_As_double(obj1)); | |
6666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6667 | } | |
d55e5bfc RD |
6668 | { |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6670 | (arg1)->SetVectorLength(arg2); | |
6671 | ||
6672 | wxPyEndAllowThreads(__tstate); | |
6673 | if (PyErr_Occurred()) SWIG_fail; | |
6674 | } | |
6675 | Py_INCREF(Py_None); resultobj = Py_None; | |
6676 | return resultobj; | |
6677 | fail: | |
6678 | return NULL; | |
6679 | } | |
6680 | ||
6681 | ||
c32bde28 | 6682 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6683 | PyObject *resultobj; |
6684 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6685 | double arg2 ; | |
6686 | PyObject * obj0 = 0 ; | |
6687 | PyObject * obj1 = 0 ; | |
6688 | char *kwnames[] = { | |
6689 | (char *) "self",(char *) "degrees", NULL | |
6690 | }; | |
6691 | ||
6692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6695 | { | |
6696 | arg2 = (double)(SWIG_As_double(obj1)); | |
6697 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6698 | } | |
d55e5bfc RD |
6699 | { |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | (arg1)->SetVectorAngle(arg2); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
6706 | Py_INCREF(Py_None); resultobj = Py_None; | |
6707 | return resultobj; | |
6708 | fail: | |
6709 | return NULL; | |
6710 | } | |
6711 | ||
6712 | ||
c32bde28 | 6713 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6714 | PyObject *resultobj; |
6715 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6716 | wxPoint2D *arg2 = 0 ; | |
6717 | double result; | |
6718 | wxPoint2D temp2 ; | |
6719 | PyObject * obj0 = 0 ; | |
6720 | PyObject * obj1 = 0 ; | |
6721 | char *kwnames[] = { | |
6722 | (char *) "self",(char *) "pt", NULL | |
6723 | }; | |
6724 | ||
6725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6728 | { |
6729 | arg2 = &temp2; | |
6730 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6731 | } | |
6732 | { | |
6733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6734 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
6735 | ||
6736 | wxPyEndAllowThreads(__tstate); | |
6737 | if (PyErr_Occurred()) SWIG_fail; | |
6738 | } | |
093d3ff1 RD |
6739 | { |
6740 | resultobj = SWIG_From_double((double)(result)); | |
6741 | } | |
d55e5bfc RD |
6742 | return resultobj; |
6743 | fail: | |
6744 | return NULL; | |
6745 | } | |
6746 | ||
6747 | ||
c32bde28 | 6748 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6749 | PyObject *resultobj; |
6750 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6751 | wxPoint2D *arg2 = 0 ; | |
6752 | double result; | |
6753 | wxPoint2D temp2 ; | |
6754 | PyObject * obj0 = 0 ; | |
6755 | PyObject * obj1 = 0 ; | |
6756 | char *kwnames[] = { | |
6757 | (char *) "self",(char *) "pt", NULL | |
6758 | }; | |
6759 | ||
6760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6763 | { |
6764 | arg2 = &temp2; | |
6765 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6766 | } | |
6767 | { | |
6768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6769 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
6770 | ||
6771 | wxPyEndAllowThreads(__tstate); | |
6772 | if (PyErr_Occurred()) SWIG_fail; | |
6773 | } | |
093d3ff1 RD |
6774 | { |
6775 | resultobj = SWIG_From_double((double)(result)); | |
6776 | } | |
d55e5bfc RD |
6777 | return resultobj; |
6778 | fail: | |
6779 | return NULL; | |
6780 | } | |
6781 | ||
6782 | ||
c32bde28 | 6783 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6784 | PyObject *resultobj; |
6785 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6786 | wxPoint2D *arg2 = 0 ; | |
6787 | double result; | |
6788 | wxPoint2D temp2 ; | |
6789 | PyObject * obj0 = 0 ; | |
6790 | PyObject * obj1 = 0 ; | |
6791 | char *kwnames[] = { | |
6792 | (char *) "self",(char *) "vec", NULL | |
6793 | }; | |
6794 | ||
6795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6798 | { |
6799 | arg2 = &temp2; | |
6800 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6801 | } | |
6802 | { | |
6803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6804 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
6805 | ||
6806 | wxPyEndAllowThreads(__tstate); | |
6807 | if (PyErr_Occurred()) SWIG_fail; | |
6808 | } | |
093d3ff1 RD |
6809 | { |
6810 | resultobj = SWIG_From_double((double)(result)); | |
6811 | } | |
d55e5bfc RD |
6812 | return resultobj; |
6813 | fail: | |
6814 | return NULL; | |
6815 | } | |
6816 | ||
6817 | ||
c32bde28 | 6818 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6819 | PyObject *resultobj; |
6820 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6821 | wxPoint2D *arg2 = 0 ; | |
6822 | double result; | |
6823 | wxPoint2D temp2 ; | |
6824 | PyObject * obj0 = 0 ; | |
6825 | PyObject * obj1 = 0 ; | |
6826 | char *kwnames[] = { | |
6827 | (char *) "self",(char *) "vec", NULL | |
6828 | }; | |
6829 | ||
6830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6833 | { |
6834 | arg2 = &temp2; | |
6835 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6836 | } | |
6837 | { | |
6838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6839 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
6840 | ||
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
093d3ff1 RD |
6844 | { |
6845 | resultobj = SWIG_From_double((double)(result)); | |
6846 | } | |
d55e5bfc RD |
6847 | return resultobj; |
6848 | fail: | |
6849 | return NULL; | |
6850 | } | |
6851 | ||
6852 | ||
c32bde28 | 6853 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6854 | PyObject *resultobj; |
6855 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6856 | wxPoint2D result; | |
6857 | PyObject * obj0 = 0 ; | |
6858 | char *kwnames[] = { | |
6859 | (char *) "self", NULL | |
6860 | }; | |
6861 | ||
6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6863 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6864 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6865 | { |
6866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6867 | result = (arg1)->operator -(); | |
6868 | ||
6869 | wxPyEndAllowThreads(__tstate); | |
6870 | if (PyErr_Occurred()) SWIG_fail; | |
6871 | } | |
6872 | { | |
6873 | wxPoint2D * resultptr; | |
093d3ff1 | 6874 | resultptr = new wxPoint2D((wxPoint2D &)(result)); |
d55e5bfc RD |
6875 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
6876 | } | |
6877 | return resultobj; | |
6878 | fail: | |
6879 | return NULL; | |
6880 | } | |
6881 | ||
6882 | ||
c32bde28 | 6883 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6884 | PyObject *resultobj; |
6885 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6886 | wxPoint2D *arg2 = 0 ; | |
6887 | wxPoint2D *result; | |
6888 | wxPoint2D temp2 ; | |
6889 | PyObject * obj0 = 0 ; | |
6890 | PyObject * obj1 = 0 ; | |
6891 | char *kwnames[] = { | |
6892 | (char *) "self",(char *) "pt", NULL | |
6893 | }; | |
6894 | ||
6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
6897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6898 | { |
6899 | arg2 = &temp2; | |
6900 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6901 | } | |
6902 | { | |
6903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6904 | { | |
6905 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
6906 | result = (wxPoint2D *) &_result_ref; | |
6907 | } | |
6908 | ||
6909 | wxPyEndAllowThreads(__tstate); | |
6910 | if (PyErr_Occurred()) SWIG_fail; | |
6911 | } | |
c32bde28 | 6912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
6913 | return resultobj; |
6914 | fail: | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
c32bde28 | 6919 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6920 | PyObject *resultobj; |
6921 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6922 | wxPoint2D *arg2 = 0 ; | |
6923 | wxPoint2D *result; | |
6924 | wxPoint2D temp2 ; | |
6925 | PyObject * obj0 = 0 ; | |
6926 | PyObject * obj1 = 0 ; | |
6927 | char *kwnames[] = { | |
6928 | (char *) "self",(char *) "pt", NULL | |
6929 | }; | |
6930 | ||
6931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
6933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6934 | { |
6935 | arg2 = &temp2; | |
6936 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6937 | } | |
6938 | { | |
6939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6940 | { | |
6941 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
6942 | result = (wxPoint2D *) &_result_ref; | |
6943 | } | |
6944 | ||
6945 | wxPyEndAllowThreads(__tstate); | |
6946 | if (PyErr_Occurred()) SWIG_fail; | |
6947 | } | |
c32bde28 | 6948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
6949 | return resultobj; |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
c32bde28 | 6955 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6956 | PyObject *resultobj; |
6957 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6958 | wxPoint2D *arg2 = 0 ; | |
6959 | wxPoint2D *result; | |
6960 | wxPoint2D temp2 ; | |
6961 | PyObject * obj0 = 0 ; | |
6962 | PyObject * obj1 = 0 ; | |
6963 | char *kwnames[] = { | |
6964 | (char *) "self",(char *) "pt", NULL | |
6965 | }; | |
6966 | ||
6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
6969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6970 | { |
6971 | arg2 = &temp2; | |
6972 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6973 | } | |
6974 | { | |
6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6976 | { | |
6977 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
6978 | result = (wxPoint2D *) &_result_ref; | |
6979 | } | |
6980 | ||
6981 | wxPyEndAllowThreads(__tstate); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | } | |
c32bde28 | 6984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
6985 | return resultobj; |
6986 | fail: | |
6987 | return NULL; | |
6988 | } | |
6989 | ||
6990 | ||
c32bde28 | 6991 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6992 | PyObject *resultobj; |
6993 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6994 | wxPoint2D *arg2 = 0 ; | |
6995 | wxPoint2D *result; | |
6996 | wxPoint2D temp2 ; | |
6997 | PyObject * obj0 = 0 ; | |
6998 | PyObject * obj1 = 0 ; | |
6999 | char *kwnames[] = { | |
7000 | (char *) "self",(char *) "pt", NULL | |
7001 | }; | |
7002 | ||
7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
7005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7006 | { |
7007 | arg2 = &temp2; | |
7008 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7009 | } | |
7010 | { | |
7011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7012 | { | |
7013 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
7014 | result = (wxPoint2D *) &_result_ref; | |
7015 | } | |
7016 | ||
7017 | wxPyEndAllowThreads(__tstate); | |
7018 | if (PyErr_Occurred()) SWIG_fail; | |
7019 | } | |
c32bde28 | 7020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
7021 | return resultobj; |
7022 | fail: | |
7023 | return NULL; | |
7024 | } | |
7025 | ||
7026 | ||
c32bde28 | 7027 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7028 | PyObject *resultobj; |
7029 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7030 | wxPoint2D *arg2 = 0 ; | |
7031 | bool result; | |
7032 | wxPoint2D temp2 ; | |
7033 | PyObject * obj0 = 0 ; | |
7034 | PyObject * obj1 = 0 ; | |
7035 | char *kwnames[] = { | |
7036 | (char *) "self",(char *) "pt", NULL | |
7037 | }; | |
7038 | ||
7039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7042 | { |
7043 | arg2 = &temp2; | |
7044 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7045 | } | |
7046 | { | |
7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7048 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
7049 | ||
7050 | wxPyEndAllowThreads(__tstate); | |
7051 | if (PyErr_Occurred()) SWIG_fail; | |
7052 | } | |
7053 | { | |
7054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7055 | } | |
7056 | return resultobj; | |
7057 | fail: | |
7058 | return NULL; | |
7059 | } | |
7060 | ||
7061 | ||
c32bde28 | 7062 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7063 | PyObject *resultobj; |
7064 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7065 | wxPoint2D *arg2 = 0 ; | |
7066 | bool result; | |
7067 | wxPoint2D temp2 ; | |
7068 | PyObject * obj0 = 0 ; | |
7069 | PyObject * obj1 = 0 ; | |
7070 | char *kwnames[] = { | |
7071 | (char *) "self",(char *) "pt", NULL | |
7072 | }; | |
7073 | ||
7074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7077 | { |
7078 | arg2 = &temp2; | |
7079 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7080 | } | |
7081 | { | |
7082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7083 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
7084 | ||
7085 | wxPyEndAllowThreads(__tstate); | |
7086 | if (PyErr_Occurred()) SWIG_fail; | |
7087 | } | |
7088 | { | |
7089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7090 | } | |
7091 | return resultobj; | |
7092 | fail: | |
7093 | return NULL; | |
7094 | } | |
7095 | ||
7096 | ||
c32bde28 | 7097 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7098 | PyObject *resultobj; |
7099 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7100 | double arg2 ; | |
7101 | PyObject * obj0 = 0 ; | |
7102 | PyObject * obj1 = 0 ; | |
7103 | char *kwnames[] = { | |
7104 | (char *) "self",(char *) "m_x", NULL | |
7105 | }; | |
7106 | ||
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7110 | { | |
7111 | arg2 = (double)(SWIG_As_double(obj1)); | |
7112 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7113 | } | |
d55e5bfc RD |
7114 | if (arg1) (arg1)->m_x = arg2; |
7115 | ||
7116 | Py_INCREF(Py_None); resultobj = Py_None; | |
7117 | return resultobj; | |
7118 | fail: | |
7119 | return NULL; | |
7120 | } | |
7121 | ||
7122 | ||
c32bde28 | 7123 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7124 | PyObject *resultobj; |
7125 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7126 | double result; | |
7127 | PyObject * obj0 = 0 ; | |
7128 | char *kwnames[] = { | |
7129 | (char *) "self", NULL | |
7130 | }; | |
7131 | ||
7132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7135 | result = (double) ((arg1)->m_x); |
7136 | ||
093d3ff1 RD |
7137 | { |
7138 | resultobj = SWIG_From_double((double)(result)); | |
7139 | } | |
d55e5bfc RD |
7140 | return resultobj; |
7141 | fail: | |
7142 | return NULL; | |
7143 | } | |
7144 | ||
7145 | ||
c32bde28 | 7146 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7147 | PyObject *resultobj; |
7148 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7149 | double arg2 ; | |
7150 | PyObject * obj0 = 0 ; | |
7151 | PyObject * obj1 = 0 ; | |
7152 | char *kwnames[] = { | |
7153 | (char *) "self",(char *) "m_y", NULL | |
7154 | }; | |
7155 | ||
7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7159 | { | |
7160 | arg2 = (double)(SWIG_As_double(obj1)); | |
7161 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7162 | } | |
d55e5bfc RD |
7163 | if (arg1) (arg1)->m_y = arg2; |
7164 | ||
7165 | Py_INCREF(Py_None); resultobj = Py_None; | |
7166 | return resultobj; | |
7167 | fail: | |
7168 | return NULL; | |
7169 | } | |
7170 | ||
7171 | ||
c32bde28 | 7172 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7173 | PyObject *resultobj; |
7174 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7175 | double result; | |
7176 | PyObject * obj0 = 0 ; | |
7177 | char *kwnames[] = { | |
7178 | (char *) "self", NULL | |
7179 | }; | |
7180 | ||
7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7184 | result = (double) ((arg1)->m_y); |
7185 | ||
093d3ff1 RD |
7186 | { |
7187 | resultobj = SWIG_From_double((double)(result)); | |
7188 | } | |
d55e5bfc RD |
7189 | return resultobj; |
7190 | fail: | |
7191 | return NULL; | |
7192 | } | |
7193 | ||
7194 | ||
c32bde28 | 7195 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7196 | PyObject *resultobj; |
7197 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7198 | double arg2 = (double) 0 ; | |
7199 | double arg3 = (double) 0 ; | |
7200 | PyObject * obj0 = 0 ; | |
7201 | PyObject * obj1 = 0 ; | |
7202 | PyObject * obj2 = 0 ; | |
7203 | char *kwnames[] = { | |
7204 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7205 | }; | |
7206 | ||
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7210 | if (obj1) { |
093d3ff1 RD |
7211 | { |
7212 | arg2 = (double)(SWIG_As_double(obj1)); | |
7213 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7214 | } | |
d55e5bfc RD |
7215 | } |
7216 | if (obj2) { | |
093d3ff1 RD |
7217 | { |
7218 | arg3 = (double)(SWIG_As_double(obj2)); | |
7219 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7220 | } | |
d55e5bfc RD |
7221 | } |
7222 | { | |
7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7224 | wxPoint2D_Set(arg1,arg2,arg3); | |
7225 | ||
7226 | wxPyEndAllowThreads(__tstate); | |
7227 | if (PyErr_Occurred()) SWIG_fail; | |
7228 | } | |
7229 | Py_INCREF(Py_None); resultobj = Py_None; | |
7230 | return resultobj; | |
7231 | fail: | |
7232 | return NULL; | |
7233 | } | |
7234 | ||
7235 | ||
c32bde28 | 7236 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7237 | PyObject *resultobj; |
7238 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7239 | PyObject *result; | |
7240 | PyObject * obj0 = 0 ; | |
7241 | char *kwnames[] = { | |
7242 | (char *) "self", NULL | |
7243 | }; | |
7244 | ||
7245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7248 | { |
7249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7250 | result = (PyObject *)wxPoint2D_Get(arg1); | |
7251 | ||
7252 | wxPyEndAllowThreads(__tstate); | |
7253 | if (PyErr_Occurred()) SWIG_fail; | |
7254 | } | |
7255 | resultobj = result; | |
7256 | return resultobj; | |
7257 | fail: | |
7258 | return NULL; | |
7259 | } | |
7260 | ||
7261 | ||
c32bde28 | 7262 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7263 | PyObject *obj; |
7264 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7265 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
7266 | Py_INCREF(obj); | |
7267 | return Py_BuildValue((char *)""); | |
7268 | } | |
c32bde28 | 7269 | static int _wrap_DefaultPosition_set(PyObject *) { |
d55e5bfc RD |
7270 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
7271 | return 1; | |
7272 | } | |
7273 | ||
7274 | ||
093d3ff1 | 7275 | static PyObject *_wrap_DefaultPosition_get(void) { |
d55e5bfc RD |
7276 | PyObject *pyobj; |
7277 | ||
7278 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
7279 | return pyobj; | |
7280 | } | |
7281 | ||
7282 | ||
c32bde28 | 7283 | static int _wrap_DefaultSize_set(PyObject *) { |
d55e5bfc RD |
7284 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
7285 | return 1; | |
7286 | } | |
7287 | ||
7288 | ||
093d3ff1 | 7289 | static PyObject *_wrap_DefaultSize_get(void) { |
d55e5bfc RD |
7290 | PyObject *pyobj; |
7291 | ||
7292 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
7293 | return pyobj; | |
7294 | } | |
7295 | ||
7296 | ||
c32bde28 | 7297 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7298 | PyObject *resultobj; |
7299 | PyObject *arg1 = (PyObject *) 0 ; | |
7300 | wxPyInputStream *result; | |
7301 | PyObject * obj0 = 0 ; | |
7302 | char *kwnames[] = { | |
7303 | (char *) "p", NULL | |
7304 | }; | |
7305 | ||
7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
7307 | arg1 = obj0; | |
7308 | { | |
7309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7310 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
7311 | ||
7312 | wxPyEndAllowThreads(__tstate); | |
7313 | if (PyErr_Occurred()) SWIG_fail; | |
7314 | } | |
7315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
7316 | return resultobj; | |
7317 | fail: | |
7318 | return NULL; | |
7319 | } | |
7320 | ||
7321 | ||
8fb0e70a RD |
7322 | static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
7323 | PyObject *resultobj; | |
7324 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7325 | PyObject * obj0 = 0 ; | |
7326 | char *kwnames[] = { | |
7327 | (char *) "self", NULL | |
7328 | }; | |
7329 | ||
7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
7333 | { |
7334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7335 | delete arg1; | |
7336 | ||
7337 | wxPyEndAllowThreads(__tstate); | |
7338 | if (PyErr_Occurred()) SWIG_fail; | |
7339 | } | |
7340 | Py_INCREF(Py_None); resultobj = Py_None; | |
7341 | return resultobj; | |
7342 | fail: | |
7343 | return NULL; | |
7344 | } | |
7345 | ||
7346 | ||
c32bde28 | 7347 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7348 | PyObject *resultobj; |
7349 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7350 | PyObject * obj0 = 0 ; | |
7351 | char *kwnames[] = { | |
7352 | (char *) "self", NULL | |
7353 | }; | |
7354 | ||
7355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7358 | { |
7359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7360 | (arg1)->close(); | |
7361 | ||
7362 | wxPyEndAllowThreads(__tstate); | |
7363 | if (PyErr_Occurred()) SWIG_fail; | |
7364 | } | |
7365 | Py_INCREF(Py_None); resultobj = Py_None; | |
7366 | return resultobj; | |
7367 | fail: | |
7368 | return NULL; | |
7369 | } | |
7370 | ||
7371 | ||
c32bde28 | 7372 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7373 | PyObject *resultobj; |
7374 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7375 | PyObject * obj0 = 0 ; | |
7376 | char *kwnames[] = { | |
7377 | (char *) "self", NULL | |
7378 | }; | |
7379 | ||
7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7383 | { |
7384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7385 | (arg1)->flush(); | |
7386 | ||
7387 | wxPyEndAllowThreads(__tstate); | |
7388 | if (PyErr_Occurred()) SWIG_fail; | |
7389 | } | |
7390 | Py_INCREF(Py_None); resultobj = Py_None; | |
7391 | return resultobj; | |
7392 | fail: | |
7393 | return NULL; | |
7394 | } | |
7395 | ||
7396 | ||
c32bde28 | 7397 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7398 | PyObject *resultobj; |
7399 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7400 | bool result; | |
7401 | PyObject * obj0 = 0 ; | |
7402 | char *kwnames[] = { | |
7403 | (char *) "self", NULL | |
7404 | }; | |
7405 | ||
7406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7409 | { |
7410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7411 | result = (bool)(arg1)->eof(); | |
7412 | ||
7413 | wxPyEndAllowThreads(__tstate); | |
7414 | if (PyErr_Occurred()) SWIG_fail; | |
7415 | } | |
7416 | { | |
7417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7418 | } | |
7419 | return resultobj; | |
7420 | fail: | |
7421 | return NULL; | |
7422 | } | |
7423 | ||
7424 | ||
c32bde28 | 7425 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7426 | PyObject *resultobj; |
7427 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7428 | int arg2 = (int) -1 ; | |
7429 | PyObject *result; | |
7430 | PyObject * obj0 = 0 ; | |
7431 | PyObject * obj1 = 0 ; | |
7432 | char *kwnames[] = { | |
7433 | (char *) "self",(char *) "size", NULL | |
7434 | }; | |
7435 | ||
7436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) 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 | 7439 | if (obj1) { |
093d3ff1 RD |
7440 | { |
7441 | arg2 = (int)(SWIG_As_int(obj1)); | |
7442 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7443 | } | |
d55e5bfc RD |
7444 | } |
7445 | { | |
7446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7447 | result = (PyObject *)(arg1)->read(arg2); | |
7448 | ||
7449 | wxPyEndAllowThreads(__tstate); | |
7450 | if (PyErr_Occurred()) SWIG_fail; | |
7451 | } | |
7452 | resultobj = result; | |
7453 | return resultobj; | |
7454 | fail: | |
7455 | return NULL; | |
7456 | } | |
7457 | ||
7458 | ||
c32bde28 | 7459 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7460 | PyObject *resultobj; |
7461 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7462 | int arg2 = (int) -1 ; | |
7463 | PyObject *result; | |
7464 | PyObject * obj0 = 0 ; | |
7465 | PyObject * obj1 = 0 ; | |
7466 | char *kwnames[] = { | |
7467 | (char *) "self",(char *) "size", NULL | |
7468 | }; | |
7469 | ||
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7473 | if (obj1) { |
093d3ff1 RD |
7474 | { |
7475 | arg2 = (int)(SWIG_As_int(obj1)); | |
7476 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7477 | } | |
d55e5bfc RD |
7478 | } |
7479 | { | |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7481 | result = (PyObject *)(arg1)->readline(arg2); | |
7482 | ||
7483 | wxPyEndAllowThreads(__tstate); | |
7484 | if (PyErr_Occurred()) SWIG_fail; | |
7485 | } | |
7486 | resultobj = result; | |
7487 | return resultobj; | |
7488 | fail: | |
7489 | return NULL; | |
7490 | } | |
7491 | ||
7492 | ||
c32bde28 | 7493 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7494 | PyObject *resultobj; |
7495 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7496 | int arg2 = (int) -1 ; | |
7497 | PyObject *result; | |
7498 | PyObject * obj0 = 0 ; | |
7499 | PyObject * obj1 = 0 ; | |
7500 | char *kwnames[] = { | |
7501 | (char *) "self",(char *) "sizehint", NULL | |
7502 | }; | |
7503 | ||
7504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7507 | if (obj1) { |
093d3ff1 RD |
7508 | { |
7509 | arg2 = (int)(SWIG_As_int(obj1)); | |
7510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7511 | } | |
d55e5bfc RD |
7512 | } |
7513 | { | |
7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7515 | result = (PyObject *)(arg1)->readlines(arg2); | |
7516 | ||
7517 | wxPyEndAllowThreads(__tstate); | |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
7519 | } | |
7520 | resultobj = result; | |
7521 | return resultobj; | |
7522 | fail: | |
7523 | return NULL; | |
7524 | } | |
7525 | ||
7526 | ||
c32bde28 | 7527 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7528 | PyObject *resultobj; |
7529 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7530 | int arg2 ; | |
7531 | int arg3 = (int) 0 ; | |
7532 | PyObject * obj0 = 0 ; | |
7533 | PyObject * obj1 = 0 ; | |
7534 | PyObject * obj2 = 0 ; | |
7535 | char *kwnames[] = { | |
7536 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
7537 | }; | |
7538 | ||
7539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7542 | { | |
7543 | arg2 = (int)(SWIG_As_int(obj1)); | |
7544 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7545 | } | |
d55e5bfc | 7546 | if (obj2) { |
093d3ff1 RD |
7547 | { |
7548 | arg3 = (int)(SWIG_As_int(obj2)); | |
7549 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7550 | } | |
d55e5bfc RD |
7551 | } |
7552 | { | |
7553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7554 | (arg1)->seek(arg2,arg3); | |
7555 | ||
7556 | wxPyEndAllowThreads(__tstate); | |
7557 | if (PyErr_Occurred()) SWIG_fail; | |
7558 | } | |
7559 | Py_INCREF(Py_None); resultobj = Py_None; | |
7560 | return resultobj; | |
7561 | fail: | |
7562 | return NULL; | |
7563 | } | |
7564 | ||
7565 | ||
c32bde28 | 7566 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7567 | PyObject *resultobj; |
7568 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7569 | int result; | |
7570 | PyObject * obj0 = 0 ; | |
7571 | char *kwnames[] = { | |
7572 | (char *) "self", NULL | |
7573 | }; | |
7574 | ||
7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7578 | { |
7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7580 | result = (int)(arg1)->tell(); | |
7581 | ||
7582 | wxPyEndAllowThreads(__tstate); | |
7583 | if (PyErr_Occurred()) SWIG_fail; | |
7584 | } | |
093d3ff1 RD |
7585 | { |
7586 | resultobj = SWIG_From_int((int)(result)); | |
7587 | } | |
d55e5bfc RD |
7588 | return resultobj; |
7589 | fail: | |
7590 | return NULL; | |
7591 | } | |
7592 | ||
7593 | ||
c32bde28 | 7594 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7595 | PyObject *resultobj; |
7596 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7597 | char result; | |
7598 | PyObject * obj0 = 0 ; | |
7599 | char *kwnames[] = { | |
7600 | (char *) "self", NULL | |
7601 | }; | |
7602 | ||
7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7606 | { |
7607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7608 | result = (char)(arg1)->Peek(); | |
7609 | ||
7610 | wxPyEndAllowThreads(__tstate); | |
7611 | if (PyErr_Occurred()) SWIG_fail; | |
7612 | } | |
093d3ff1 RD |
7613 | { |
7614 | resultobj = SWIG_From_char((char)(result)); | |
7615 | } | |
d55e5bfc RD |
7616 | return resultobj; |
7617 | fail: | |
7618 | return NULL; | |
7619 | } | |
7620 | ||
7621 | ||
c32bde28 | 7622 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7623 | PyObject *resultobj; |
7624 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7625 | char result; | |
7626 | PyObject * obj0 = 0 ; | |
7627 | char *kwnames[] = { | |
7628 | (char *) "self", NULL | |
7629 | }; | |
7630 | ||
7631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",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 = (char)(arg1)->GetC(); | |
7637 | ||
7638 | wxPyEndAllowThreads(__tstate); | |
7639 | if (PyErr_Occurred()) SWIG_fail; | |
7640 | } | |
093d3ff1 RD |
7641 | { |
7642 | resultobj = SWIG_From_char((char)(result)); | |
7643 | } | |
d55e5bfc RD |
7644 | return resultobj; |
7645 | fail: | |
7646 | return NULL; | |
7647 | } | |
7648 | ||
7649 | ||
c32bde28 | 7650 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7651 | PyObject *resultobj; |
7652 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7653 | size_t result; | |
7654 | PyObject * obj0 = 0 ; | |
7655 | char *kwnames[] = { | |
7656 | (char *) "self", NULL | |
7657 | }; | |
7658 | ||
7659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",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 = (size_t)(arg1)->LastRead(); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
093d3ff1 RD |
7669 | { |
7670 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
7671 | } | |
d55e5bfc RD |
7672 | return resultobj; |
7673 | fail: | |
7674 | return NULL; | |
7675 | } | |
7676 | ||
7677 | ||
c32bde28 | 7678 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7679 | PyObject *resultobj; |
7680 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7681 | bool result; | |
7682 | PyObject * obj0 = 0 ; | |
7683 | char *kwnames[] = { | |
7684 | (char *) "self", NULL | |
7685 | }; | |
7686 | ||
7687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",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 = (bool)(arg1)->CanRead(); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
7697 | { | |
7698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7699 | } | |
7700 | return resultobj; | |
7701 | fail: | |
7702 | return NULL; | |
7703 | } | |
7704 | ||
7705 | ||
c32bde28 | 7706 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7707 | PyObject *resultobj; |
7708 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7709 | bool result; | |
7710 | PyObject * obj0 = 0 ; | |
7711 | char *kwnames[] = { | |
7712 | (char *) "self", NULL | |
7713 | }; | |
7714 | ||
7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",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 = (bool)(arg1)->Eof(); | |
7721 | ||
7722 | wxPyEndAllowThreads(__tstate); | |
7723 | if (PyErr_Occurred()) SWIG_fail; | |
7724 | } | |
7725 | { | |
7726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7727 | } | |
7728 | return resultobj; | |
7729 | fail: | |
7730 | return NULL; | |
7731 | } | |
7732 | ||
7733 | ||
c32bde28 | 7734 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7735 | PyObject *resultobj; |
7736 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7737 | char arg2 ; | |
7738 | bool result; | |
7739 | PyObject * obj0 = 0 ; | |
7740 | PyObject * obj1 = 0 ; | |
7741 | char *kwnames[] = { | |
7742 | (char *) "self",(char *) "c", NULL | |
7743 | }; | |
7744 | ||
7745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7748 | { | |
7749 | arg2 = (char)(SWIG_As_char(obj1)); | |
7750 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7751 | } | |
d55e5bfc RD |
7752 | { |
7753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7754 | result = (bool)(arg1)->Ungetch(arg2); | |
7755 | ||
7756 | wxPyEndAllowThreads(__tstate); | |
7757 | if (PyErr_Occurred()) SWIG_fail; | |
7758 | } | |
7759 | { | |
7760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7761 | } | |
7762 | return resultobj; | |
7763 | fail: | |
7764 | return NULL; | |
7765 | } | |
7766 | ||
7767 | ||
c32bde28 | 7768 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7769 | PyObject *resultobj; |
7770 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7771 | long arg2 ; | |
093d3ff1 | 7772 | wxSeekMode arg3 = (wxSeekMode) wxFromStart ; |
d55e5bfc RD |
7773 | long result; |
7774 | PyObject * obj0 = 0 ; | |
7775 | PyObject * obj1 = 0 ; | |
7776 | PyObject * obj2 = 0 ; | |
7777 | char *kwnames[] = { | |
7778 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
7779 | }; | |
7780 | ||
7781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7784 | { | |
7785 | arg2 = (long)(SWIG_As_long(obj1)); | |
7786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7787 | } | |
d55e5bfc | 7788 | if (obj2) { |
093d3ff1 RD |
7789 | { |
7790 | arg3 = (wxSeekMode)(SWIG_As_int(obj2)); | |
7791 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7792 | } | |
d55e5bfc RD |
7793 | } |
7794 | { | |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) SWIG_fail; | |
7800 | } | |
093d3ff1 RD |
7801 | { |
7802 | resultobj = SWIG_From_long((long)(result)); | |
7803 | } | |
d55e5bfc RD |
7804 | return resultobj; |
7805 | fail: | |
7806 | return NULL; | |
7807 | } | |
7808 | ||
7809 | ||
c32bde28 | 7810 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7811 | PyObject *resultobj; |
7812 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7813 | long result; | |
7814 | PyObject * obj0 = 0 ; | |
7815 | char *kwnames[] = { | |
7816 | (char *) "self", NULL | |
7817 | }; | |
7818 | ||
7819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7822 | { |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | result = (long)(arg1)->TellI(); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
093d3ff1 RD |
7829 | { |
7830 | resultobj = SWIG_From_long((long)(result)); | |
7831 | } | |
d55e5bfc RD |
7832 | return resultobj; |
7833 | fail: | |
7834 | return NULL; | |
7835 | } | |
7836 | ||
7837 | ||
c32bde28 | 7838 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7839 | PyObject *obj; |
7840 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7841 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
7842 | Py_INCREF(obj); | |
7843 | return Py_BuildValue((char *)""); | |
7844 | } | |
c32bde28 | 7845 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7846 | PyObject *resultobj; |
7847 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
7848 | PyObject *arg2 = (PyObject *) 0 ; | |
7849 | PyObject * obj0 = 0 ; | |
7850 | PyObject * obj1 = 0 ; | |
7851 | char *kwnames[] = { | |
7852 | (char *) "self",(char *) "obj", NULL | |
7853 | }; | |
7854 | ||
7855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxOutputStream, SWIG_POINTER_EXCEPTION | 0); |
7857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7858 | arg2 = obj1; |
7859 | { | |
7860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7861 | wxOutputStream_write(arg1,arg2); | |
7862 | ||
7863 | wxPyEndAllowThreads(__tstate); | |
7864 | if (PyErr_Occurred()) SWIG_fail; | |
7865 | } | |
7866 | Py_INCREF(Py_None); resultobj = Py_None; | |
7867 | return resultobj; | |
7868 | fail: | |
7869 | return NULL; | |
7870 | } | |
7871 | ||
7872 | ||
c32bde28 | 7873 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7874 | PyObject *obj; |
7875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7876 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
7877 | Py_INCREF(obj); | |
7878 | return Py_BuildValue((char *)""); | |
7879 | } | |
c32bde28 | 7880 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7881 | PyObject *resultobj; |
7882 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
7883 | wxString *arg2 = 0 ; | |
7884 | wxString *arg3 = 0 ; | |
7885 | wxString *arg4 = 0 ; | |
7886 | wxDateTime arg5 ; | |
7887 | wxFSFile *result; | |
7888 | wxPyInputStream *temp1 ; | |
7889 | bool created1 ; | |
ae8162c8 RD |
7890 | bool temp2 = false ; |
7891 | bool temp3 = false ; | |
7892 | bool temp4 = false ; | |
d55e5bfc RD |
7893 | PyObject * obj0 = 0 ; |
7894 | PyObject * obj1 = 0 ; | |
7895 | PyObject * obj2 = 0 ; | |
7896 | PyObject * obj3 = 0 ; | |
7897 | PyObject * obj4 = 0 ; | |
7898 | char *kwnames[] = { | |
7899 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
7900 | }; | |
7901 | ||
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
7903 | { | |
7904 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7905 | arg1 = temp1->m_wxis; | |
ae8162c8 | 7906 | created1 = false; |
d55e5bfc RD |
7907 | } else { |
7908 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 7909 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
7910 | if (arg1 == NULL) { |
7911 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7912 | SWIG_fail; | |
7913 | } | |
ae8162c8 | 7914 | created1 = true; |
d55e5bfc RD |
7915 | } |
7916 | } | |
7917 | { | |
7918 | arg2 = wxString_in_helper(obj1); | |
7919 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7920 | temp2 = true; |
d55e5bfc RD |
7921 | } |
7922 | { | |
7923 | arg3 = wxString_in_helper(obj2); | |
7924 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7925 | temp3 = true; |
d55e5bfc RD |
7926 | } |
7927 | { | |
7928 | arg4 = wxString_in_helper(obj3); | |
7929 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 7930 | temp4 = true; |
d55e5bfc | 7931 | } |
093d3ff1 RD |
7932 | { |
7933 | wxDateTime * argp; | |
7934 | SWIG_Python_ConvertPtr(obj4, (void **)&argp, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION); | |
7935 | if (SWIG_arg_fail(5)) SWIG_fail; | |
7936 | if (argp == NULL) { | |
7937 | SWIG_null_ref("wxDateTime"); | |
7938 | } | |
7939 | if (SWIG_arg_fail(5)) SWIG_fail; | |
7940 | arg5 = *argp; | |
7941 | } | |
d55e5bfc RD |
7942 | { |
7943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7944 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
7945 | ||
7946 | wxPyEndAllowThreads(__tstate); | |
7947 | if (PyErr_Occurred()) SWIG_fail; | |
7948 | } | |
7949 | { | |
412d302d | 7950 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7951 | } |
7952 | { | |
7953 | if (created1) | |
7954 | delete arg1; | |
7955 | } | |
7956 | { | |
7957 | if (temp2) | |
7958 | delete arg2; | |
7959 | } | |
7960 | { | |
7961 | if (temp3) | |
7962 | delete arg3; | |
7963 | } | |
7964 | { | |
7965 | if (temp4) | |
7966 | delete arg4; | |
7967 | } | |
7968 | return resultobj; | |
7969 | fail: | |
7970 | { | |
7971 | if (created1) | |
7972 | delete arg1; | |
7973 | } | |
7974 | { | |
7975 | if (temp2) | |
7976 | delete arg2; | |
7977 | } | |
7978 | { | |
7979 | if (temp3) | |
7980 | delete arg3; | |
7981 | } | |
7982 | { | |
7983 | if (temp4) | |
7984 | delete arg4; | |
7985 | } | |
7986 | return NULL; | |
7987 | } | |
7988 | ||
7989 | ||
c32bde28 | 7990 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7991 | PyObject *resultobj; |
7992 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
7993 | PyObject * obj0 = 0 ; | |
7994 | char *kwnames[] = { | |
7995 | (char *) "self", NULL | |
7996 | }; | |
7997 | ||
7998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8001 | { |
8002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8003 | delete arg1; | |
8004 | ||
8005 | wxPyEndAllowThreads(__tstate); | |
8006 | if (PyErr_Occurred()) SWIG_fail; | |
8007 | } | |
8008 | Py_INCREF(Py_None); resultobj = Py_None; | |
8009 | return resultobj; | |
8010 | fail: | |
8011 | return NULL; | |
8012 | } | |
8013 | ||
8014 | ||
c32bde28 | 8015 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8016 | PyObject *resultobj; |
8017 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8018 | wxInputStream *result; | |
8019 | PyObject * obj0 = 0 ; | |
8020 | char *kwnames[] = { | |
8021 | (char *) "self", NULL | |
8022 | }; | |
8023 | ||
8024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8027 | { |
8028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8029 | result = (wxInputStream *)(arg1)->GetStream(); | |
8030 | ||
8031 | wxPyEndAllowThreads(__tstate); | |
8032 | if (PyErr_Occurred()) SWIG_fail; | |
8033 | } | |
8034 | { | |
8035 | wxPyInputStream * _ptr = NULL; | |
8036 | ||
8037 | if (result) { | |
8038 | _ptr = new wxPyInputStream(result); | |
8039 | } | |
fc71d09b | 8040 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
8041 | } |
8042 | return resultobj; | |
8043 | fail: | |
8044 | return NULL; | |
8045 | } | |
8046 | ||
8047 | ||
c32bde28 | 8048 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8049 | PyObject *resultobj; |
8050 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8051 | wxString *result; | |
8052 | PyObject * obj0 = 0 ; | |
8053 | char *kwnames[] = { | |
8054 | (char *) "self", NULL | |
8055 | }; | |
8056 | ||
8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8060 | { |
8061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8062 | { | |
8063 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
8064 | result = (wxString *) &_result_ref; | |
8065 | } | |
8066 | ||
8067 | wxPyEndAllowThreads(__tstate); | |
8068 | if (PyErr_Occurred()) SWIG_fail; | |
8069 | } | |
8070 | { | |
8071 | #if wxUSE_UNICODE | |
8072 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8073 | #else | |
8074 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8075 | #endif | |
8076 | } | |
8077 | return resultobj; | |
8078 | fail: | |
8079 | return NULL; | |
8080 | } | |
8081 | ||
8082 | ||
c32bde28 | 8083 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8084 | PyObject *resultobj; |
8085 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8086 | wxString *result; | |
8087 | PyObject * obj0 = 0 ; | |
8088 | char *kwnames[] = { | |
8089 | (char *) "self", NULL | |
8090 | }; | |
8091 | ||
8092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8095 | { |
8096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8097 | { | |
8098 | wxString const &_result_ref = (arg1)->GetLocation(); | |
8099 | result = (wxString *) &_result_ref; | |
8100 | } | |
8101 | ||
8102 | wxPyEndAllowThreads(__tstate); | |
8103 | if (PyErr_Occurred()) SWIG_fail; | |
8104 | } | |
8105 | { | |
8106 | #if wxUSE_UNICODE | |
8107 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8108 | #else | |
8109 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8110 | #endif | |
8111 | } | |
8112 | return resultobj; | |
8113 | fail: | |
8114 | return NULL; | |
8115 | } | |
8116 | ||
8117 | ||
c32bde28 | 8118 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8119 | PyObject *resultobj; |
8120 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8121 | wxString *result; | |
8122 | PyObject * obj0 = 0 ; | |
8123 | char *kwnames[] = { | |
8124 | (char *) "self", NULL | |
8125 | }; | |
8126 | ||
8127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8130 | { |
8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8132 | { | |
8133 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
8134 | result = (wxString *) &_result_ref; | |
8135 | } | |
8136 | ||
8137 | wxPyEndAllowThreads(__tstate); | |
8138 | if (PyErr_Occurred()) SWIG_fail; | |
8139 | } | |
8140 | { | |
8141 | #if wxUSE_UNICODE | |
8142 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8143 | #else | |
8144 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8145 | #endif | |
8146 | } | |
8147 | return resultobj; | |
8148 | fail: | |
8149 | return NULL; | |
8150 | } | |
8151 | ||
8152 | ||
c32bde28 | 8153 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8154 | PyObject *resultobj; |
8155 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8156 | wxDateTime result; | |
8157 | PyObject * obj0 = 0 ; | |
8158 | char *kwnames[] = { | |
8159 | (char *) "self", NULL | |
8160 | }; | |
8161 | ||
8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8165 | { |
8166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8167 | result = (arg1)->GetModificationTime(); | |
8168 | ||
8169 | wxPyEndAllowThreads(__tstate); | |
8170 | if (PyErr_Occurred()) SWIG_fail; | |
8171 | } | |
8172 | { | |
8173 | wxDateTime * resultptr; | |
093d3ff1 | 8174 | resultptr = new wxDateTime((wxDateTime &)(result)); |
d55e5bfc RD |
8175 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
8176 | } | |
8177 | return resultobj; | |
8178 | fail: | |
8179 | return NULL; | |
8180 | } | |
8181 | ||
8182 | ||
c32bde28 | 8183 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8184 | PyObject *obj; |
8185 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8186 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
8187 | Py_INCREF(obj); | |
8188 | return Py_BuildValue((char *)""); | |
8189 | } | |
c32bde28 | 8190 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8191 | PyObject *obj; |
8192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8193 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
8194 | Py_INCREF(obj); | |
8195 | return Py_BuildValue((char *)""); | |
8196 | } | |
c32bde28 | 8197 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8198 | PyObject *resultobj; |
8199 | wxPyFileSystemHandler *result; | |
8200 | char *kwnames[] = { | |
8201 | NULL | |
8202 | }; | |
8203 | ||
8204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
8205 | { | |
8206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8207 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
8208 | ||
8209 | wxPyEndAllowThreads(__tstate); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
8212 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
8213 | return resultobj; | |
8214 | fail: | |
8215 | return NULL; | |
8216 | } | |
8217 | ||
8218 | ||
c32bde28 | 8219 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8220 | PyObject *resultobj; |
8221 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8222 | PyObject *arg2 = (PyObject *) 0 ; | |
8223 | PyObject *arg3 = (PyObject *) 0 ; | |
8224 | PyObject * obj0 = 0 ; | |
8225 | PyObject * obj1 = 0 ; | |
8226 | PyObject * obj2 = 0 ; | |
8227 | char *kwnames[] = { | |
8228 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8229 | }; | |
8230 | ||
8231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8234 | arg2 = obj1; |
8235 | arg3 = obj2; | |
8236 | { | |
8237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8238 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8239 | ||
8240 | wxPyEndAllowThreads(__tstate); | |
8241 | if (PyErr_Occurred()) SWIG_fail; | |
8242 | } | |
8243 | Py_INCREF(Py_None); resultobj = Py_None; | |
8244 | return resultobj; | |
8245 | fail: | |
8246 | return NULL; | |
8247 | } | |
8248 | ||
8249 | ||
c32bde28 | 8250 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8251 | PyObject *resultobj; |
8252 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8253 | wxString *arg2 = 0 ; | |
8254 | bool result; | |
ae8162c8 | 8255 | bool temp2 = false ; |
d55e5bfc RD |
8256 | PyObject * obj0 = 0 ; |
8257 | PyObject * obj1 = 0 ; | |
8258 | char *kwnames[] = { | |
8259 | (char *) "self",(char *) "location", NULL | |
8260 | }; | |
8261 | ||
8262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8265 | { |
8266 | arg2 = wxString_in_helper(obj1); | |
8267 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8268 | temp2 = true; |
d55e5bfc RD |
8269 | } |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
8277 | { | |
8278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8279 | } | |
8280 | { | |
8281 | if (temp2) | |
8282 | delete arg2; | |
8283 | } | |
8284 | return resultobj; | |
8285 | fail: | |
8286 | { | |
8287 | if (temp2) | |
8288 | delete arg2; | |
8289 | } | |
8290 | return NULL; | |
8291 | } | |
8292 | ||
8293 | ||
c32bde28 | 8294 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8295 | PyObject *resultobj; |
8296 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8297 | wxFileSystem *arg2 = 0 ; | |
8298 | wxString *arg3 = 0 ; | |
8299 | wxFSFile *result; | |
ae8162c8 | 8300 | bool temp3 = false ; |
d55e5bfc RD |
8301 | PyObject * obj0 = 0 ; |
8302 | PyObject * obj1 = 0 ; | |
8303 | PyObject * obj2 = 0 ; | |
8304 | char *kwnames[] = { | |
8305 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8306 | }; | |
8307 | ||
8308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8311 | { | |
8312 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
8313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8314 | if (arg2 == NULL) { | |
8315 | SWIG_null_ref("wxFileSystem"); | |
8316 | } | |
8317 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8318 | } |
8319 | { | |
8320 | arg3 = wxString_in_helper(obj2); | |
8321 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8322 | temp3 = true; |
d55e5bfc RD |
8323 | } |
8324 | { | |
8325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8326 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8327 | ||
8328 | wxPyEndAllowThreads(__tstate); | |
8329 | if (PyErr_Occurred()) SWIG_fail; | |
8330 | } | |
8331 | { | |
4cf4100f | 8332 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8333 | } |
8334 | { | |
8335 | if (temp3) | |
8336 | delete arg3; | |
8337 | } | |
8338 | return resultobj; | |
8339 | fail: | |
8340 | { | |
8341 | if (temp3) | |
8342 | delete arg3; | |
8343 | } | |
8344 | return NULL; | |
8345 | } | |
8346 | ||
8347 | ||
c32bde28 | 8348 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8349 | PyObject *resultobj; |
8350 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8351 | wxString *arg2 = 0 ; | |
8352 | int arg3 = (int) 0 ; | |
8353 | wxString result; | |
ae8162c8 | 8354 | bool temp2 = false ; |
d55e5bfc RD |
8355 | PyObject * obj0 = 0 ; |
8356 | PyObject * obj1 = 0 ; | |
8357 | PyObject * obj2 = 0 ; | |
8358 | char *kwnames[] = { | |
8359 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8360 | }; | |
8361 | ||
8362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8365 | { |
8366 | arg2 = wxString_in_helper(obj1); | |
8367 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8368 | temp2 = true; |
d55e5bfc RD |
8369 | } |
8370 | if (obj2) { | |
093d3ff1 RD |
8371 | { |
8372 | arg3 = (int)(SWIG_As_int(obj2)); | |
8373 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8374 | } | |
d55e5bfc RD |
8375 | } |
8376 | { | |
8377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8378 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8379 | ||
8380 | wxPyEndAllowThreads(__tstate); | |
8381 | if (PyErr_Occurred()) SWIG_fail; | |
8382 | } | |
8383 | { | |
8384 | #if wxUSE_UNICODE | |
8385 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8386 | #else | |
8387 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8388 | #endif | |
8389 | } | |
8390 | { | |
8391 | if (temp2) | |
8392 | delete arg2; | |
8393 | } | |
8394 | return resultobj; | |
8395 | fail: | |
8396 | { | |
8397 | if (temp2) | |
8398 | delete arg2; | |
8399 | } | |
8400 | return NULL; | |
8401 | } | |
8402 | ||
8403 | ||
c32bde28 | 8404 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8405 | PyObject *resultobj; |
8406 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8407 | wxString result; | |
8408 | PyObject * obj0 = 0 ; | |
8409 | char *kwnames[] = { | |
8410 | (char *) "self", NULL | |
8411 | }; | |
8412 | ||
8413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8416 | { |
8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8418 | result = (arg1)->FindNext(); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
8423 | { | |
8424 | #if wxUSE_UNICODE | |
8425 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8426 | #else | |
8427 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8428 | #endif | |
8429 | } | |
8430 | return resultobj; | |
8431 | fail: | |
8432 | return NULL; | |
8433 | } | |
8434 | ||
8435 | ||
c32bde28 | 8436 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8437 | PyObject *resultobj; |
8438 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8439 | wxString *arg2 = 0 ; | |
8440 | wxString result; | |
ae8162c8 | 8441 | bool temp2 = false ; |
d55e5bfc RD |
8442 | PyObject * obj0 = 0 ; |
8443 | PyObject * obj1 = 0 ; | |
8444 | char *kwnames[] = { | |
8445 | (char *) "self",(char *) "location", NULL | |
8446 | }; | |
8447 | ||
8448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8451 | { |
8452 | arg2 = wxString_in_helper(obj1); | |
8453 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8454 | temp2 = true; |
d55e5bfc RD |
8455 | } |
8456 | { | |
8457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8458 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
8459 | ||
8460 | wxPyEndAllowThreads(__tstate); | |
8461 | if (PyErr_Occurred()) SWIG_fail; | |
8462 | } | |
8463 | { | |
8464 | #if wxUSE_UNICODE | |
8465 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8466 | #else | |
8467 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8468 | #endif | |
8469 | } | |
8470 | { | |
8471 | if (temp2) | |
8472 | delete arg2; | |
8473 | } | |
8474 | return resultobj; | |
8475 | fail: | |
8476 | { | |
8477 | if (temp2) | |
8478 | delete arg2; | |
8479 | } | |
8480 | return NULL; | |
8481 | } | |
8482 | ||
8483 | ||
c32bde28 | 8484 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8485 | PyObject *resultobj; |
8486 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8487 | wxString *arg2 = 0 ; | |
8488 | wxString result; | |
ae8162c8 | 8489 | bool temp2 = false ; |
d55e5bfc RD |
8490 | PyObject * obj0 = 0 ; |
8491 | PyObject * obj1 = 0 ; | |
8492 | char *kwnames[] = { | |
8493 | (char *) "self",(char *) "location", NULL | |
8494 | }; | |
8495 | ||
8496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8499 | { |
8500 | arg2 = wxString_in_helper(obj1); | |
8501 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8502 | temp2 = true; |
d55e5bfc RD |
8503 | } |
8504 | { | |
8505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8506 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
8507 | ||
8508 | wxPyEndAllowThreads(__tstate); | |
8509 | if (PyErr_Occurred()) SWIG_fail; | |
8510 | } | |
8511 | { | |
8512 | #if wxUSE_UNICODE | |
8513 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8514 | #else | |
8515 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8516 | #endif | |
8517 | } | |
8518 | { | |
8519 | if (temp2) | |
8520 | delete arg2; | |
8521 | } | |
8522 | return resultobj; | |
8523 | fail: | |
8524 | { | |
8525 | if (temp2) | |
8526 | delete arg2; | |
8527 | } | |
8528 | return NULL; | |
8529 | } | |
8530 | ||
8531 | ||
c32bde28 | 8532 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8533 | PyObject *resultobj; |
8534 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8535 | wxString *arg2 = 0 ; | |
8536 | wxString result; | |
ae8162c8 | 8537 | bool temp2 = false ; |
d55e5bfc RD |
8538 | PyObject * obj0 = 0 ; |
8539 | PyObject * obj1 = 0 ; | |
8540 | char *kwnames[] = { | |
8541 | (char *) "self",(char *) "location", NULL | |
8542 | }; | |
8543 | ||
8544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8547 | { |
8548 | arg2 = wxString_in_helper(obj1); | |
8549 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8550 | temp2 = true; |
d55e5bfc RD |
8551 | } |
8552 | { | |
8553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8554 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
8555 | ||
8556 | wxPyEndAllowThreads(__tstate); | |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | } | |
8559 | { | |
8560 | #if wxUSE_UNICODE | |
8561 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8562 | #else | |
8563 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8564 | #endif | |
8565 | } | |
8566 | { | |
8567 | if (temp2) | |
8568 | delete arg2; | |
8569 | } | |
8570 | return resultobj; | |
8571 | fail: | |
8572 | { | |
8573 | if (temp2) | |
8574 | delete arg2; | |
8575 | } | |
8576 | return NULL; | |
8577 | } | |
8578 | ||
8579 | ||
c32bde28 | 8580 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8581 | PyObject *resultobj; |
8582 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8583 | wxString *arg2 = 0 ; | |
8584 | wxString result; | |
ae8162c8 | 8585 | bool temp2 = false ; |
d55e5bfc RD |
8586 | PyObject * obj0 = 0 ; |
8587 | PyObject * obj1 = 0 ; | |
8588 | char *kwnames[] = { | |
8589 | (char *) "self",(char *) "location", NULL | |
8590 | }; | |
8591 | ||
8592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8595 | { |
8596 | arg2 = wxString_in_helper(obj1); | |
8597 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8598 | temp2 = true; |
d55e5bfc RD |
8599 | } |
8600 | { | |
8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8602 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
8603 | ||
8604 | wxPyEndAllowThreads(__tstate); | |
8605 | if (PyErr_Occurred()) SWIG_fail; | |
8606 | } | |
8607 | { | |
8608 | #if wxUSE_UNICODE | |
8609 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8610 | #else | |
8611 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8612 | #endif | |
8613 | } | |
8614 | { | |
8615 | if (temp2) | |
8616 | delete arg2; | |
8617 | } | |
8618 | return resultobj; | |
8619 | fail: | |
8620 | { | |
8621 | if (temp2) | |
8622 | delete arg2; | |
8623 | } | |
8624 | return NULL; | |
8625 | } | |
8626 | ||
8627 | ||
c32bde28 | 8628 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8629 | PyObject *resultobj; |
8630 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8631 | wxString *arg2 = 0 ; | |
8632 | wxString result; | |
ae8162c8 | 8633 | bool temp2 = false ; |
d55e5bfc RD |
8634 | PyObject * obj0 = 0 ; |
8635 | PyObject * obj1 = 0 ; | |
8636 | char *kwnames[] = { | |
8637 | (char *) "self",(char *) "location", NULL | |
8638 | }; | |
8639 | ||
8640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8643 | { |
8644 | arg2 = wxString_in_helper(obj1); | |
8645 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8646 | temp2 = true; |
d55e5bfc RD |
8647 | } |
8648 | { | |
8649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8650 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
8651 | ||
8652 | wxPyEndAllowThreads(__tstate); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
8655 | { | |
8656 | #if wxUSE_UNICODE | |
8657 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8658 | #else | |
8659 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8660 | #endif | |
8661 | } | |
8662 | { | |
8663 | if (temp2) | |
8664 | delete arg2; | |
8665 | } | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | { | |
8669 | if (temp2) | |
8670 | delete arg2; | |
8671 | } | |
8672 | return NULL; | |
8673 | } | |
8674 | ||
8675 | ||
c32bde28 | 8676 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8677 | PyObject *obj; |
8678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8679 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
8680 | Py_INCREF(obj); | |
8681 | return Py_BuildValue((char *)""); | |
8682 | } | |
c32bde28 | 8683 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8684 | PyObject *resultobj; |
8685 | wxFileSystem *result; | |
8686 | char *kwnames[] = { | |
8687 | NULL | |
8688 | }; | |
8689 | ||
8690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
8691 | { | |
8692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8693 | result = (wxFileSystem *)new wxFileSystem(); | |
8694 | ||
8695 | wxPyEndAllowThreads(__tstate); | |
8696 | if (PyErr_Occurred()) SWIG_fail; | |
8697 | } | |
8698 | { | |
412d302d | 8699 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8700 | } |
8701 | return resultobj; | |
8702 | fail: | |
8703 | return NULL; | |
8704 | } | |
8705 | ||
8706 | ||
c32bde28 | 8707 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8708 | PyObject *resultobj; |
8709 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8710 | PyObject * obj0 = 0 ; | |
8711 | char *kwnames[] = { | |
8712 | (char *) "self", NULL | |
8713 | }; | |
8714 | ||
8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8718 | { |
8719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8720 | delete arg1; | |
8721 | ||
8722 | wxPyEndAllowThreads(__tstate); | |
8723 | if (PyErr_Occurred()) SWIG_fail; | |
8724 | } | |
8725 | Py_INCREF(Py_None); resultobj = Py_None; | |
8726 | return resultobj; | |
8727 | fail: | |
8728 | return NULL; | |
8729 | } | |
8730 | ||
8731 | ||
c32bde28 | 8732 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8733 | PyObject *resultobj; |
8734 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8735 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
8736 | bool arg3 = (bool) false ; |
8737 | bool temp2 = false ; | |
d55e5bfc RD |
8738 | PyObject * obj0 = 0 ; |
8739 | PyObject * obj1 = 0 ; | |
8740 | PyObject * obj2 = 0 ; | |
8741 | char *kwnames[] = { | |
8742 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
8743 | }; | |
8744 | ||
8745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8748 | { |
8749 | arg2 = wxString_in_helper(obj1); | |
8750 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8751 | temp2 = true; |
d55e5bfc RD |
8752 | } |
8753 | if (obj2) { | |
093d3ff1 RD |
8754 | { |
8755 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8756 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8757 | } | |
d55e5bfc RD |
8758 | } |
8759 | { | |
8760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8761 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
8762 | ||
8763 | wxPyEndAllowThreads(__tstate); | |
8764 | if (PyErr_Occurred()) SWIG_fail; | |
8765 | } | |
8766 | Py_INCREF(Py_None); resultobj = Py_None; | |
8767 | { | |
8768 | if (temp2) | |
8769 | delete arg2; | |
8770 | } | |
8771 | return resultobj; | |
8772 | fail: | |
8773 | { | |
8774 | if (temp2) | |
8775 | delete arg2; | |
8776 | } | |
8777 | return NULL; | |
8778 | } | |
8779 | ||
8780 | ||
c32bde28 | 8781 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8782 | PyObject *resultobj; |
8783 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8784 | wxString result; | |
8785 | PyObject * obj0 = 0 ; | |
8786 | char *kwnames[] = { | |
8787 | (char *) "self", NULL | |
8788 | }; | |
8789 | ||
8790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8795 | result = (arg1)->GetPath(); | |
8796 | ||
8797 | wxPyEndAllowThreads(__tstate); | |
8798 | if (PyErr_Occurred()) SWIG_fail; | |
8799 | } | |
8800 | { | |
8801 | #if wxUSE_UNICODE | |
8802 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8803 | #else | |
8804 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8805 | #endif | |
8806 | } | |
8807 | return resultobj; | |
8808 | fail: | |
8809 | return NULL; | |
8810 | } | |
8811 | ||
8812 | ||
c32bde28 | 8813 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8814 | PyObject *resultobj; |
8815 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8816 | wxString *arg2 = 0 ; | |
8817 | wxFSFile *result; | |
ae8162c8 | 8818 | bool temp2 = false ; |
d55e5bfc RD |
8819 | PyObject * obj0 = 0 ; |
8820 | PyObject * obj1 = 0 ; | |
8821 | char *kwnames[] = { | |
8822 | (char *) "self",(char *) "location", NULL | |
8823 | }; | |
8824 | ||
8825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8828 | { |
8829 | arg2 = wxString_in_helper(obj1); | |
8830 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8831 | temp2 = true; |
d55e5bfc RD |
8832 | } |
8833 | { | |
8834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8835 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
8836 | ||
8837 | wxPyEndAllowThreads(__tstate); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
8839 | } | |
8840 | { | |
4cf4100f | 8841 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8842 | } |
8843 | { | |
8844 | if (temp2) | |
8845 | delete arg2; | |
8846 | } | |
8847 | return resultobj; | |
8848 | fail: | |
8849 | { | |
8850 | if (temp2) | |
8851 | delete arg2; | |
8852 | } | |
8853 | return NULL; | |
8854 | } | |
8855 | ||
8856 | ||
c32bde28 | 8857 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8858 | PyObject *resultobj; |
8859 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8860 | wxString *arg2 = 0 ; | |
8861 | int arg3 = (int) 0 ; | |
8862 | wxString result; | |
ae8162c8 | 8863 | bool temp2 = false ; |
d55e5bfc RD |
8864 | PyObject * obj0 = 0 ; |
8865 | PyObject * obj1 = 0 ; | |
8866 | PyObject * obj2 = 0 ; | |
8867 | char *kwnames[] = { | |
8868 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8869 | }; | |
8870 | ||
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8874 | { |
8875 | arg2 = wxString_in_helper(obj1); | |
8876 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8877 | temp2 = true; |
d55e5bfc RD |
8878 | } |
8879 | if (obj2) { | |
093d3ff1 RD |
8880 | { |
8881 | arg3 = (int)(SWIG_As_int(obj2)); | |
8882 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8883 | } | |
d55e5bfc RD |
8884 | } |
8885 | { | |
8886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8887 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8888 | ||
8889 | wxPyEndAllowThreads(__tstate); | |
8890 | if (PyErr_Occurred()) SWIG_fail; | |
8891 | } | |
8892 | { | |
8893 | #if wxUSE_UNICODE | |
8894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8895 | #else | |
8896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8897 | #endif | |
8898 | } | |
8899 | { | |
8900 | if (temp2) | |
8901 | delete arg2; | |
8902 | } | |
8903 | return resultobj; | |
8904 | fail: | |
8905 | { | |
8906 | if (temp2) | |
8907 | delete arg2; | |
8908 | } | |
8909 | return NULL; | |
8910 | } | |
8911 | ||
8912 | ||
c32bde28 | 8913 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8914 | PyObject *resultobj; |
8915 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8916 | wxString result; | |
8917 | PyObject * obj0 = 0 ; | |
8918 | char *kwnames[] = { | |
8919 | (char *) "self", NULL | |
8920 | }; | |
8921 | ||
8922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8925 | { |
8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8927 | result = (arg1)->FindNext(); | |
8928 | ||
8929 | wxPyEndAllowThreads(__tstate); | |
8930 | if (PyErr_Occurred()) SWIG_fail; | |
8931 | } | |
8932 | { | |
8933 | #if wxUSE_UNICODE | |
8934 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8935 | #else | |
8936 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8937 | #endif | |
8938 | } | |
8939 | return resultobj; | |
8940 | fail: | |
8941 | return NULL; | |
8942 | } | |
8943 | ||
8944 | ||
c32bde28 | 8945 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8946 | PyObject *resultobj; |
8947 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
8948 | PyObject * obj0 = 0 ; | |
8949 | char *kwnames[] = { | |
8950 | (char *) "handler", NULL | |
8951 | }; | |
8952 | ||
8953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8954 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8955 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8956 | { |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8958 | wxFileSystem::AddHandler(arg1); | |
8959 | ||
8960 | wxPyEndAllowThreads(__tstate); | |
8961 | if (PyErr_Occurred()) SWIG_fail; | |
8962 | } | |
8963 | Py_INCREF(Py_None); resultobj = Py_None; | |
8964 | return resultobj; | |
8965 | fail: | |
8966 | return NULL; | |
8967 | } | |
8968 | ||
8969 | ||
c32bde28 | 8970 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8971 | PyObject *resultobj; |
8972 | char *kwnames[] = { | |
8973 | NULL | |
8974 | }; | |
8975 | ||
8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
8977 | { | |
8978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8979 | wxFileSystem::CleanUpHandlers(); | |
8980 | ||
8981 | wxPyEndAllowThreads(__tstate); | |
8982 | if (PyErr_Occurred()) SWIG_fail; | |
8983 | } | |
8984 | Py_INCREF(Py_None); resultobj = Py_None; | |
8985 | return resultobj; | |
8986 | fail: | |
8987 | return NULL; | |
8988 | } | |
8989 | ||
8990 | ||
c32bde28 | 8991 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8992 | PyObject *resultobj; |
8993 | wxString *arg1 = 0 ; | |
8994 | wxString result; | |
ae8162c8 | 8995 | bool temp1 = false ; |
d55e5bfc RD |
8996 | PyObject * obj0 = 0 ; |
8997 | char *kwnames[] = { | |
8998 | (char *) "filename", NULL | |
8999 | }; | |
9000 | ||
9001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
9002 | { | |
9003 | arg1 = wxString_in_helper(obj0); | |
9004 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9005 | temp1 = true; |
d55e5bfc RD |
9006 | } |
9007 | { | |
9008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9009 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
9010 | ||
9011 | wxPyEndAllowThreads(__tstate); | |
9012 | if (PyErr_Occurred()) SWIG_fail; | |
9013 | } | |
9014 | { | |
9015 | #if wxUSE_UNICODE | |
9016 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9017 | #else | |
9018 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9019 | #endif | |
9020 | } | |
9021 | { | |
9022 | if (temp1) | |
9023 | delete arg1; | |
9024 | } | |
9025 | return resultobj; | |
9026 | fail: | |
9027 | { | |
9028 | if (temp1) | |
9029 | delete arg1; | |
9030 | } | |
9031 | return NULL; | |
9032 | } | |
9033 | ||
9034 | ||
c32bde28 | 9035 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9036 | PyObject *resultobj; |
9037 | wxString *arg1 = 0 ; | |
9038 | wxString result; | |
ae8162c8 | 9039 | bool temp1 = false ; |
d55e5bfc RD |
9040 | PyObject * obj0 = 0 ; |
9041 | char *kwnames[] = { | |
9042 | (char *) "url", NULL | |
9043 | }; | |
9044 | ||
9045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
9046 | { | |
9047 | arg1 = wxString_in_helper(obj0); | |
9048 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9049 | temp1 = true; |
d55e5bfc RD |
9050 | } |
9051 | { | |
9052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ae8162c8 | 9053 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d55e5bfc RD |
9054 | |
9055 | wxPyEndAllowThreads(__tstate); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
9057 | } | |
9058 | { | |
9059 | #if wxUSE_UNICODE | |
9060 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9061 | #else | |
9062 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9063 | #endif | |
9064 | } | |
9065 | { | |
9066 | if (temp1) | |
9067 | delete arg1; | |
9068 | } | |
9069 | return resultobj; | |
9070 | fail: | |
9071 | { | |
9072 | if (temp1) | |
9073 | delete arg1; | |
9074 | } | |
9075 | return NULL; | |
9076 | } | |
9077 | ||
9078 | ||
ae8162c8 RD |
9079 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
9080 | PyObject *obj; | |
9081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9082 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
9083 | Py_INCREF(obj); | |
9084 | return Py_BuildValue((char *)""); | |
9085 | } | |
c32bde28 | 9086 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9087 | PyObject *resultobj; |
9088 | wxInternetFSHandler *result; | |
9089 | char *kwnames[] = { | |
9090 | NULL | |
9091 | }; | |
9092 | ||
9093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
9094 | { | |
9095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9096 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
9097 | ||
9098 | wxPyEndAllowThreads(__tstate); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
9100 | } | |
9101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
9102 | return resultobj; | |
9103 | fail: | |
9104 | return NULL; | |
9105 | } | |
9106 | ||
9107 | ||
c32bde28 | 9108 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9109 | PyObject *resultobj; |
9110 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
9111 | wxString *arg2 = 0 ; | |
9112 | bool result; | |
ae8162c8 | 9113 | bool temp2 = false ; |
d55e5bfc RD |
9114 | PyObject * obj0 = 0 ; |
9115 | PyObject * obj1 = 0 ; | |
9116 | char *kwnames[] = { | |
9117 | (char *) "self",(char *) "location", NULL | |
9118 | }; | |
9119 | ||
9120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9123 | { |
9124 | arg2 = wxString_in_helper(obj1); | |
9125 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9126 | temp2 = true; |
d55e5bfc RD |
9127 | } |
9128 | { | |
9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9130 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9131 | ||
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
9135 | { | |
9136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9137 | } | |
9138 | { | |
9139 | if (temp2) | |
9140 | delete arg2; | |
9141 | } | |
9142 | return resultobj; | |
9143 | fail: | |
9144 | { | |
9145 | if (temp2) | |
9146 | delete arg2; | |
9147 | } | |
9148 | return NULL; | |
9149 | } | |
9150 | ||
9151 | ||
c32bde28 | 9152 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9153 | PyObject *resultobj; |
9154 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
9155 | wxFileSystem *arg2 = 0 ; | |
9156 | wxString *arg3 = 0 ; | |
9157 | wxFSFile *result; | |
ae8162c8 | 9158 | bool temp3 = false ; |
d55e5bfc RD |
9159 | PyObject * obj0 = 0 ; |
9160 | PyObject * obj1 = 0 ; | |
9161 | PyObject * obj2 = 0 ; | |
9162 | char *kwnames[] = { | |
9163 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9164 | }; | |
9165 | ||
9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9167 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9169 | { | |
9170 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9171 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9172 | if (arg2 == NULL) { | |
9173 | SWIG_null_ref("wxFileSystem"); | |
9174 | } | |
9175 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
9176 | } |
9177 | { | |
9178 | arg3 = wxString_in_helper(obj2); | |
9179 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9180 | temp3 = true; |
d55e5bfc RD |
9181 | } |
9182 | { | |
9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9184 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9185 | ||
9186 | wxPyEndAllowThreads(__tstate); | |
9187 | if (PyErr_Occurred()) SWIG_fail; | |
9188 | } | |
9189 | { | |
4cf4100f | 9190 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
9191 | } |
9192 | { | |
9193 | if (temp3) | |
9194 | delete arg3; | |
9195 | } | |
9196 | return resultobj; | |
9197 | fail: | |
9198 | { | |
9199 | if (temp3) | |
9200 | delete arg3; | |
9201 | } | |
9202 | return NULL; | |
9203 | } | |
9204 | ||
9205 | ||
c32bde28 | 9206 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9207 | PyObject *obj; |
9208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9209 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
9210 | Py_INCREF(obj); | |
9211 | return Py_BuildValue((char *)""); | |
9212 | } | |
c32bde28 | 9213 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9214 | PyObject *resultobj; |
9215 | wxZipFSHandler *result; | |
9216 | char *kwnames[] = { | |
9217 | NULL | |
9218 | }; | |
9219 | ||
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
9221 | { | |
9222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9223 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
9224 | ||
9225 | wxPyEndAllowThreads(__tstate); | |
9226 | if (PyErr_Occurred()) SWIG_fail; | |
9227 | } | |
9228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
9229 | return resultobj; | |
9230 | fail: | |
9231 | return NULL; | |
9232 | } | |
9233 | ||
9234 | ||
c32bde28 | 9235 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9236 | PyObject *resultobj; |
9237 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9238 | wxString *arg2 = 0 ; | |
9239 | bool result; | |
ae8162c8 | 9240 | bool temp2 = false ; |
d55e5bfc RD |
9241 | PyObject * obj0 = 0 ; |
9242 | PyObject * obj1 = 0 ; | |
9243 | char *kwnames[] = { | |
9244 | (char *) "self",(char *) "location", NULL | |
9245 | }; | |
9246 | ||
9247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9250 | { |
9251 | arg2 = wxString_in_helper(obj1); | |
9252 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9253 | temp2 = true; |
d55e5bfc RD |
9254 | } |
9255 | { | |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9257 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9258 | ||
9259 | wxPyEndAllowThreads(__tstate); | |
9260 | if (PyErr_Occurred()) SWIG_fail; | |
9261 | } | |
9262 | { | |
9263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9264 | } | |
9265 | { | |
9266 | if (temp2) | |
9267 | delete arg2; | |
9268 | } | |
9269 | return resultobj; | |
9270 | fail: | |
9271 | { | |
9272 | if (temp2) | |
9273 | delete arg2; | |
9274 | } | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
c32bde28 | 9279 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9280 | PyObject *resultobj; |
9281 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9282 | wxFileSystem *arg2 = 0 ; | |
9283 | wxString *arg3 = 0 ; | |
9284 | wxFSFile *result; | |
ae8162c8 | 9285 | bool temp3 = false ; |
d55e5bfc RD |
9286 | PyObject * obj0 = 0 ; |
9287 | PyObject * obj1 = 0 ; | |
9288 | PyObject * obj2 = 0 ; | |
9289 | char *kwnames[] = { | |
9290 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9291 | }; | |
9292 | ||
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9296 | { | |
9297 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9298 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9299 | if (arg2 == NULL) { | |
9300 | SWIG_null_ref("wxFileSystem"); | |
9301 | } | |
9302 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
9303 | } |
9304 | { | |
9305 | arg3 = wxString_in_helper(obj2); | |
9306 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9307 | temp3 = true; |
d55e5bfc RD |
9308 | } |
9309 | { | |
9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9311 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9312 | ||
9313 | wxPyEndAllowThreads(__tstate); | |
9314 | if (PyErr_Occurred()) SWIG_fail; | |
9315 | } | |
9316 | { | |
4cf4100f | 9317 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
9318 | } |
9319 | { | |
9320 | if (temp3) | |
9321 | delete arg3; | |
9322 | } | |
9323 | return resultobj; | |
9324 | fail: | |
9325 | { | |
9326 | if (temp3) | |
9327 | delete arg3; | |
9328 | } | |
9329 | return NULL; | |
9330 | } | |
9331 | ||
9332 | ||
c32bde28 | 9333 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9334 | PyObject *resultobj; |
9335 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9336 | wxString *arg2 = 0 ; | |
9337 | int arg3 = (int) 0 ; | |
9338 | wxString result; | |
ae8162c8 | 9339 | bool temp2 = false ; |
d55e5bfc RD |
9340 | PyObject * obj0 = 0 ; |
9341 | PyObject * obj1 = 0 ; | |
9342 | PyObject * obj2 = 0 ; | |
9343 | char *kwnames[] = { | |
9344 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
9345 | }; | |
9346 | ||
9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9350 | { |
9351 | arg2 = wxString_in_helper(obj1); | |
9352 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9353 | temp2 = true; |
d55e5bfc RD |
9354 | } |
9355 | if (obj2) { | |
093d3ff1 RD |
9356 | { |
9357 | arg3 = (int)(SWIG_As_int(obj2)); | |
9358 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9359 | } | |
d55e5bfc RD |
9360 | } |
9361 | { | |
9362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9363 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
9364 | ||
9365 | wxPyEndAllowThreads(__tstate); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
9368 | { | |
9369 | #if wxUSE_UNICODE | |
9370 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9371 | #else | |
9372 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9373 | #endif | |
9374 | } | |
9375 | { | |
9376 | if (temp2) | |
9377 | delete arg2; | |
9378 | } | |
9379 | return resultobj; | |
9380 | fail: | |
9381 | { | |
9382 | if (temp2) | |
9383 | delete arg2; | |
9384 | } | |
9385 | return NULL; | |
9386 | } | |
9387 | ||
9388 | ||
c32bde28 | 9389 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9390 | PyObject *resultobj; |
9391 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9392 | wxString result; | |
9393 | PyObject * obj0 = 0 ; | |
9394 | char *kwnames[] = { | |
9395 | (char *) "self", NULL | |
9396 | }; | |
9397 | ||
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9401 | { |
9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9403 | result = (arg1)->FindNext(); | |
9404 | ||
9405 | wxPyEndAllowThreads(__tstate); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | } | |
9408 | { | |
9409 | #if wxUSE_UNICODE | |
9410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9411 | #else | |
9412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9413 | #endif | |
9414 | } | |
9415 | return resultobj; | |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
c32bde28 | 9421 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9422 | PyObject *obj; |
9423 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9424 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
9425 | Py_INCREF(obj); | |
9426 | return Py_BuildValue((char *)""); | |
9427 | } | |
c32bde28 | 9428 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9429 | PyObject *resultobj; |
9430 | wxString *arg1 = 0 ; | |
9431 | wxImage *arg2 = 0 ; | |
9432 | long arg3 ; | |
ae8162c8 | 9433 | bool temp1 = false ; |
d55e5bfc RD |
9434 | PyObject * obj0 = 0 ; |
9435 | PyObject * obj1 = 0 ; | |
9436 | PyObject * obj2 = 0 ; | |
9437 | char *kwnames[] = { | |
9438 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
9439 | }; | |
9440 | ||
9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9442 | { | |
9443 | arg1 = wxString_in_helper(obj0); | |
9444 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9445 | temp1 = true; |
d55e5bfc | 9446 | } |
093d3ff1 RD |
9447 | { |
9448 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
9449 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9450 | if (arg2 == NULL) { | |
9451 | SWIG_null_ref("wxImage"); | |
9452 | } | |
9453 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9454 | } | |
9455 | { | |
9456 | arg3 = (long)(SWIG_As_long(obj2)); | |
9457 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc | 9458 | } |
d55e5bfc RD |
9459 | { |
9460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9461 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
9462 | ||
9463 | wxPyEndAllowThreads(__tstate); | |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | } | |
9466 | Py_INCREF(Py_None); resultobj = Py_None; | |
9467 | { | |
9468 | if (temp1) | |
9469 | delete arg1; | |
9470 | } | |
9471 | return resultobj; | |
9472 | fail: | |
9473 | { | |
9474 | if (temp1) | |
9475 | delete arg1; | |
9476 | } | |
9477 | return NULL; | |
9478 | } | |
9479 | ||
9480 | ||
c32bde28 | 9481 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9482 | PyObject *resultobj; |
9483 | wxString *arg1 = 0 ; | |
9484 | wxBitmap *arg2 = 0 ; | |
9485 | long arg3 ; | |
ae8162c8 | 9486 | bool temp1 = false ; |
d55e5bfc RD |
9487 | PyObject * obj0 = 0 ; |
9488 | PyObject * obj1 = 0 ; | |
9489 | PyObject * obj2 = 0 ; | |
9490 | char *kwnames[] = { | |
9491 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
9492 | }; | |
9493 | ||
9494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9495 | { | |
9496 | arg1 = wxString_in_helper(obj0); | |
9497 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9498 | temp1 = true; |
d55e5bfc | 9499 | } |
093d3ff1 RD |
9500 | { |
9501 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
9502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9503 | if (arg2 == NULL) { | |
9504 | SWIG_null_ref("wxBitmap"); | |
9505 | } | |
9506 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9507 | } | |
9508 | { | |
9509 | arg3 = (long)(SWIG_As_long(obj2)); | |
9510 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc | 9511 | } |
d55e5bfc RD |
9512 | { |
9513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9514 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
9515 | ||
9516 | wxPyEndAllowThreads(__tstate); | |
9517 | if (PyErr_Occurred()) SWIG_fail; | |
9518 | } | |
9519 | Py_INCREF(Py_None); resultobj = Py_None; | |
9520 | { | |
9521 | if (temp1) | |
9522 | delete arg1; | |
9523 | } | |
9524 | return resultobj; | |
9525 | fail: | |
9526 | { | |
9527 | if (temp1) | |
9528 | delete arg1; | |
9529 | } | |
9530 | return NULL; | |
9531 | } | |
9532 | ||
9533 | ||
c32bde28 | 9534 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9535 | PyObject *resultobj; |
9536 | wxString *arg1 = 0 ; | |
9537 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 | 9538 | bool temp1 = false ; |
d55e5bfc RD |
9539 | PyObject * obj0 = 0 ; |
9540 | PyObject * obj1 = 0 ; | |
9541 | char *kwnames[] = { | |
9542 | (char *) "filename",(char *) "data", NULL | |
9543 | }; | |
9544 | ||
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
9546 | { | |
9547 | arg1 = wxString_in_helper(obj0); | |
9548 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9549 | temp1 = true; |
d55e5bfc RD |
9550 | } |
9551 | arg2 = obj1; | |
9552 | { | |
9553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9554 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
9555 | ||
9556 | wxPyEndAllowThreads(__tstate); | |
9557 | if (PyErr_Occurred()) SWIG_fail; | |
9558 | } | |
9559 | Py_INCREF(Py_None); resultobj = Py_None; | |
9560 | { | |
9561 | if (temp1) | |
9562 | delete arg1; | |
9563 | } | |
9564 | return resultobj; | |
9565 | fail: | |
9566 | { | |
9567 | if (temp1) | |
9568 | delete arg1; | |
9569 | } | |
9570 | return NULL; | |
9571 | } | |
9572 | ||
9573 | ||
c32bde28 | 9574 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9575 | PyObject *resultobj; |
9576 | wxMemoryFSHandler *result; | |
9577 | char *kwnames[] = { | |
9578 | NULL | |
9579 | }; | |
9580 | ||
9581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
9582 | { | |
9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9584 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
9585 | ||
9586 | wxPyEndAllowThreads(__tstate); | |
9587 | if (PyErr_Occurred()) SWIG_fail; | |
9588 | } | |
9589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
9590 | return resultobj; | |
9591 | fail: | |
9592 | return NULL; | |
9593 | } | |
9594 | ||
9595 | ||
c32bde28 | 9596 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9597 | PyObject *resultobj; |
9598 | wxString *arg1 = 0 ; | |
ae8162c8 | 9599 | bool temp1 = false ; |
d55e5bfc RD |
9600 | PyObject * obj0 = 0 ; |
9601 | char *kwnames[] = { | |
9602 | (char *) "filename", NULL | |
9603 | }; | |
9604 | ||
9605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
9606 | { | |
9607 | arg1 = wxString_in_helper(obj0); | |
9608 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9609 | temp1 = true; |
d55e5bfc RD |
9610 | } |
9611 | { | |
9612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9613 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
9614 | ||
9615 | wxPyEndAllowThreads(__tstate); | |
9616 | if (PyErr_Occurred()) SWIG_fail; | |
9617 | } | |
9618 | Py_INCREF(Py_None); resultobj = Py_None; | |
9619 | { | |
9620 | if (temp1) | |
9621 | delete arg1; | |
9622 | } | |
9623 | return resultobj; | |
9624 | fail: | |
9625 | { | |
9626 | if (temp1) | |
9627 | delete arg1; | |
9628 | } | |
9629 | return NULL; | |
9630 | } | |
9631 | ||
9632 | ||
c32bde28 | 9633 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9634 | PyObject *resultobj; |
9635 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9636 | wxString *arg2 = 0 ; | |
9637 | bool result; | |
ae8162c8 | 9638 | bool temp2 = false ; |
d55e5bfc RD |
9639 | PyObject * obj0 = 0 ; |
9640 | PyObject * obj1 = 0 ; | |
9641 | char *kwnames[] = { | |
9642 | (char *) "self",(char *) "location", NULL | |
9643 | }; | |
9644 | ||
9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9648 | { |
9649 | arg2 = wxString_in_helper(obj1); | |
9650 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9651 | temp2 = true; |
d55e5bfc RD |
9652 | } |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | { | |
9661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9662 | } | |
9663 | { | |
9664 | if (temp2) | |
9665 | delete arg2; | |
9666 | } | |
9667 | return resultobj; | |
9668 | fail: | |
9669 | { | |
9670 | if (temp2) | |
9671 | delete arg2; | |
9672 | } | |
9673 | return NULL; | |
9674 | } | |
9675 | ||
9676 | ||
c32bde28 | 9677 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9678 | PyObject *resultobj; |
9679 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9680 | wxFileSystem *arg2 = 0 ; | |
9681 | wxString *arg3 = 0 ; | |
9682 | wxFSFile *result; | |
ae8162c8 | 9683 | bool temp3 = false ; |
d55e5bfc RD |
9684 | PyObject * obj0 = 0 ; |
9685 | PyObject * obj1 = 0 ; | |
9686 | PyObject * obj2 = 0 ; | |
9687 | char *kwnames[] = { | |
9688 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9689 | }; | |
9690 | ||
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9694 | { | |
9695 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9697 | if (arg2 == NULL) { | |
9698 | SWIG_null_ref("wxFileSystem"); | |
9699 | } | |
9700 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
9701 | } |
9702 | { | |
9703 | arg3 = wxString_in_helper(obj2); | |
9704 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9705 | temp3 = true; |
d55e5bfc RD |
9706 | } |
9707 | { | |
9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9709 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9710 | ||
9711 | wxPyEndAllowThreads(__tstate); | |
9712 | if (PyErr_Occurred()) SWIG_fail; | |
9713 | } | |
9714 | { | |
4cf4100f | 9715 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
9716 | } |
9717 | { | |
9718 | if (temp3) | |
9719 | delete arg3; | |
9720 | } | |
9721 | return resultobj; | |
9722 | fail: | |
9723 | { | |
9724 | if (temp3) | |
9725 | delete arg3; | |
9726 | } | |
9727 | return NULL; | |
9728 | } | |
9729 | ||
9730 | ||
c32bde28 | 9731 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9732 | PyObject *resultobj; |
9733 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9734 | wxString *arg2 = 0 ; | |
9735 | int arg3 = (int) 0 ; | |
9736 | wxString result; | |
ae8162c8 | 9737 | bool temp2 = false ; |
d55e5bfc RD |
9738 | PyObject * obj0 = 0 ; |
9739 | PyObject * obj1 = 0 ; | |
9740 | PyObject * obj2 = 0 ; | |
9741 | char *kwnames[] = { | |
9742 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
9743 | }; | |
9744 | ||
9745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9748 | { |
9749 | arg2 = wxString_in_helper(obj1); | |
9750 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9751 | temp2 = true; |
d55e5bfc RD |
9752 | } |
9753 | if (obj2) { | |
093d3ff1 RD |
9754 | { |
9755 | arg3 = (int)(SWIG_As_int(obj2)); | |
9756 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9757 | } | |
d55e5bfc RD |
9758 | } |
9759 | { | |
9760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9761 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
9762 | ||
9763 | wxPyEndAllowThreads(__tstate); | |
9764 | if (PyErr_Occurred()) SWIG_fail; | |
9765 | } | |
9766 | { | |
9767 | #if wxUSE_UNICODE | |
9768 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9769 | #else | |
9770 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9771 | #endif | |
9772 | } | |
9773 | { | |
9774 | if (temp2) | |
9775 | delete arg2; | |
9776 | } | |
9777 | return resultobj; | |
9778 | fail: | |
9779 | { | |
9780 | if (temp2) | |
9781 | delete arg2; | |
9782 | } | |
9783 | return NULL; | |
9784 | } | |
9785 | ||
9786 | ||
c32bde28 | 9787 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9788 | PyObject *resultobj; |
9789 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9790 | wxString result; | |
9791 | PyObject * obj0 = 0 ; | |
9792 | char *kwnames[] = { | |
9793 | (char *) "self", NULL | |
9794 | }; | |
9795 | ||
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9799 | { |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9801 | result = (arg1)->FindNext(); | |
9802 | ||
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) SWIG_fail; | |
9805 | } | |
9806 | { | |
9807 | #if wxUSE_UNICODE | |
9808 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9809 | #else | |
9810 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9811 | #endif | |
9812 | } | |
9813 | return resultobj; | |
9814 | fail: | |
9815 | return NULL; | |
9816 | } | |
9817 | ||
9818 | ||
c32bde28 | 9819 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9820 | PyObject *obj; |
9821 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9822 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
9823 | Py_INCREF(obj); | |
9824 | return Py_BuildValue((char *)""); | |
9825 | } | |
c32bde28 | 9826 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9827 | PyObject *resultobj; |
9828 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9829 | wxString result; | |
9830 | PyObject * obj0 = 0 ; | |
9831 | char *kwnames[] = { | |
9832 | (char *) "self", NULL | |
9833 | }; | |
9834 | ||
9835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9838 | { |
9839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9840 | result = (arg1)->GetName(); | |
9841 | ||
9842 | wxPyEndAllowThreads(__tstate); | |
9843 | if (PyErr_Occurred()) SWIG_fail; | |
9844 | } | |
9845 | { | |
9846 | #if wxUSE_UNICODE | |
9847 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9848 | #else | |
9849 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9850 | #endif | |
9851 | } | |
9852 | return resultobj; | |
9853 | fail: | |
9854 | return NULL; | |
9855 | } | |
9856 | ||
9857 | ||
c32bde28 | 9858 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9859 | PyObject *resultobj; |
9860 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9861 | wxString result; | |
9862 | PyObject * obj0 = 0 ; | |
9863 | char *kwnames[] = { | |
9864 | (char *) "self", NULL | |
9865 | }; | |
9866 | ||
9867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9870 | { |
9871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9872 | result = (arg1)->GetExtension(); | |
9873 | ||
9874 | wxPyEndAllowThreads(__tstate); | |
9875 | if (PyErr_Occurred()) SWIG_fail; | |
9876 | } | |
9877 | { | |
9878 | #if wxUSE_UNICODE | |
9879 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9880 | #else | |
9881 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9882 | #endif | |
9883 | } | |
9884 | return resultobj; | |
9885 | fail: | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
c32bde28 | 9890 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9891 | PyObject *resultobj; |
9892 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9893 | long result; | |
9894 | PyObject * obj0 = 0 ; | |
9895 | char *kwnames[] = { | |
9896 | (char *) "self", NULL | |
9897 | }; | |
9898 | ||
9899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9902 | { |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9904 | result = (long)(arg1)->GetType(); | |
9905 | ||
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) SWIG_fail; | |
9908 | } | |
093d3ff1 RD |
9909 | { |
9910 | resultobj = SWIG_From_long((long)(result)); | |
9911 | } | |
d55e5bfc RD |
9912 | return resultobj; |
9913 | fail: | |
9914 | return NULL; | |
9915 | } | |
9916 | ||
9917 | ||
c32bde28 | 9918 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9919 | PyObject *resultobj; |
9920 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9921 | wxString result; | |
9922 | PyObject * obj0 = 0 ; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "self", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9930 | { |
9931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9932 | result = (arg1)->GetMimeType(); | |
9933 | ||
9934 | wxPyEndAllowThreads(__tstate); | |
9935 | if (PyErr_Occurred()) SWIG_fail; | |
9936 | } | |
9937 | { | |
9938 | #if wxUSE_UNICODE | |
9939 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9940 | #else | |
9941 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9942 | #endif | |
9943 | } | |
9944 | return resultobj; | |
9945 | fail: | |
9946 | return NULL; | |
9947 | } | |
9948 | ||
9949 | ||
c32bde28 | 9950 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9951 | PyObject *resultobj; |
9952 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9953 | wxString *arg2 = 0 ; | |
9954 | bool result; | |
ae8162c8 | 9955 | bool temp2 = false ; |
d55e5bfc RD |
9956 | PyObject * obj0 = 0 ; |
9957 | PyObject * obj1 = 0 ; | |
9958 | char *kwnames[] = { | |
9959 | (char *) "self",(char *) "name", NULL | |
9960 | }; | |
9961 | ||
9962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9965 | { |
9966 | arg2 = wxString_in_helper(obj1); | |
9967 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9968 | temp2 = true; |
d55e5bfc RD |
9969 | } |
9970 | { | |
9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9972 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
9973 | ||
9974 | wxPyEndAllowThreads(__tstate); | |
9975 | if (PyErr_Occurred()) SWIG_fail; | |
9976 | } | |
9977 | { | |
9978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9979 | } | |
9980 | { | |
9981 | if (temp2) | |
9982 | delete arg2; | |
9983 | } | |
9984 | return resultobj; | |
9985 | fail: | |
9986 | { | |
9987 | if (temp2) | |
9988 | delete arg2; | |
9989 | } | |
9990 | return NULL; | |
9991 | } | |
9992 | ||
9993 | ||
c32bde28 | 9994 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9995 | PyObject *resultobj; |
9996 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9997 | wxString *arg2 = 0 ; | |
ae8162c8 | 9998 | bool temp2 = false ; |
d55e5bfc RD |
9999 | PyObject * obj0 = 0 ; |
10000 | PyObject * obj1 = 0 ; | |
10001 | char *kwnames[] = { | |
10002 | (char *) "self",(char *) "name", NULL | |
10003 | }; | |
10004 | ||
10005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10008 | { |
10009 | arg2 = wxString_in_helper(obj1); | |
10010 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10011 | temp2 = true; |
d55e5bfc RD |
10012 | } |
10013 | { | |
10014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10015 | (arg1)->SetName((wxString const &)*arg2); | |
10016 | ||
10017 | wxPyEndAllowThreads(__tstate); | |
10018 | if (PyErr_Occurred()) SWIG_fail; | |
10019 | } | |
10020 | Py_INCREF(Py_None); resultobj = Py_None; | |
10021 | { | |
10022 | if (temp2) | |
10023 | delete arg2; | |
10024 | } | |
10025 | return resultobj; | |
10026 | fail: | |
10027 | { | |
10028 | if (temp2) | |
10029 | delete arg2; | |
10030 | } | |
10031 | return NULL; | |
10032 | } | |
10033 | ||
10034 | ||
c32bde28 | 10035 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10036 | PyObject *resultobj; |
10037 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10038 | wxString *arg2 = 0 ; | |
ae8162c8 | 10039 | bool temp2 = false ; |
d55e5bfc RD |
10040 | PyObject * obj0 = 0 ; |
10041 | PyObject * obj1 = 0 ; | |
10042 | char *kwnames[] = { | |
10043 | (char *) "self",(char *) "extension", NULL | |
10044 | }; | |
10045 | ||
10046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10049 | { |
10050 | arg2 = wxString_in_helper(obj1); | |
10051 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10052 | temp2 = true; |
d55e5bfc RD |
10053 | } |
10054 | { | |
10055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10056 | (arg1)->SetExtension((wxString const &)*arg2); | |
10057 | ||
10058 | wxPyEndAllowThreads(__tstate); | |
10059 | if (PyErr_Occurred()) SWIG_fail; | |
10060 | } | |
10061 | Py_INCREF(Py_None); resultobj = Py_None; | |
10062 | { | |
10063 | if (temp2) | |
10064 | delete arg2; | |
10065 | } | |
10066 | return resultobj; | |
10067 | fail: | |
10068 | { | |
10069 | if (temp2) | |
10070 | delete arg2; | |
10071 | } | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
c32bde28 | 10076 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10077 | PyObject *resultobj; |
10078 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10079 | long arg2 ; | |
10080 | PyObject * obj0 = 0 ; | |
10081 | PyObject * obj1 = 0 ; | |
10082 | char *kwnames[] = { | |
10083 | (char *) "self",(char *) "type", NULL | |
10084 | }; | |
10085 | ||
10086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10089 | { | |
10090 | arg2 = (long)(SWIG_As_long(obj1)); | |
10091 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10092 | } | |
d55e5bfc RD |
10093 | { |
10094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10095 | (arg1)->SetType(arg2); | |
10096 | ||
10097 | wxPyEndAllowThreads(__tstate); | |
10098 | if (PyErr_Occurred()) SWIG_fail; | |
10099 | } | |
10100 | Py_INCREF(Py_None); resultobj = Py_None; | |
10101 | return resultobj; | |
10102 | fail: | |
10103 | return NULL; | |
10104 | } | |
10105 | ||
10106 | ||
c32bde28 | 10107 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10108 | PyObject *resultobj; |
10109 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10110 | wxString *arg2 = 0 ; | |
ae8162c8 | 10111 | bool temp2 = false ; |
d55e5bfc RD |
10112 | PyObject * obj0 = 0 ; |
10113 | PyObject * obj1 = 0 ; | |
10114 | char *kwnames[] = { | |
10115 | (char *) "self",(char *) "mimetype", NULL | |
10116 | }; | |
10117 | ||
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10121 | { |
10122 | arg2 = wxString_in_helper(obj1); | |
10123 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10124 | temp2 = true; |
d55e5bfc RD |
10125 | } |
10126 | { | |
10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10128 | (arg1)->SetMimeType((wxString const &)*arg2); | |
10129 | ||
10130 | wxPyEndAllowThreads(__tstate); | |
10131 | if (PyErr_Occurred()) SWIG_fail; | |
10132 | } | |
10133 | Py_INCREF(Py_None); resultobj = Py_None; | |
10134 | { | |
10135 | if (temp2) | |
10136 | delete arg2; | |
10137 | } | |
10138 | return resultobj; | |
10139 | fail: | |
10140 | { | |
10141 | if (temp2) | |
10142 | delete arg2; | |
10143 | } | |
10144 | return NULL; | |
10145 | } | |
10146 | ||
10147 | ||
c32bde28 | 10148 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10149 | PyObject *obj; |
10150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10151 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
10152 | Py_INCREF(obj); | |
10153 | return Py_BuildValue((char *)""); | |
10154 | } | |
c32bde28 | 10155 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10156 | PyObject *resultobj; |
10157 | wxImageHistogram *result; | |
10158 | char *kwnames[] = { | |
10159 | NULL | |
10160 | }; | |
10161 | ||
10162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
10163 | { | |
10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10165 | result = (wxImageHistogram *)new wxImageHistogram(); | |
10166 | ||
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
10170 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
10171 | return resultobj; | |
10172 | fail: | |
10173 | return NULL; | |
10174 | } | |
10175 | ||
10176 | ||
c32bde28 | 10177 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10178 | PyObject *resultobj; |
10179 | unsigned char arg1 ; | |
10180 | unsigned char arg2 ; | |
10181 | unsigned char arg3 ; | |
10182 | unsigned long result; | |
10183 | PyObject * obj0 = 0 ; | |
10184 | PyObject * obj1 = 0 ; | |
10185 | PyObject * obj2 = 0 ; | |
10186 | char *kwnames[] = { | |
10187 | (char *) "r",(char *) "g",(char *) "b", NULL | |
10188 | }; | |
10189 | ||
10190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10191 | { |
10192 | arg1 = (unsigned char)(SWIG_As_unsigned_SS_char(obj0)); | |
10193 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10194 | } | |
10195 | { | |
10196 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
10197 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10198 | } | |
10199 | { | |
10200 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
10201 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10202 | } | |
d55e5bfc RD |
10203 | { |
10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10205 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
10206 | ||
10207 | wxPyEndAllowThreads(__tstate); | |
10208 | if (PyErr_Occurred()) SWIG_fail; | |
10209 | } | |
093d3ff1 RD |
10210 | { |
10211 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10212 | } | |
d55e5bfc RD |
10213 | return resultobj; |
10214 | fail: | |
10215 | return NULL; | |
10216 | } | |
10217 | ||
10218 | ||
c32bde28 | 10219 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10220 | PyObject *resultobj; |
10221 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10222 | unsigned char *arg2 = (unsigned char *) 0 ; | |
10223 | unsigned char *arg3 = (unsigned char *) 0 ; | |
10224 | unsigned char *arg4 = (unsigned char *) 0 ; | |
10225 | unsigned char arg5 = (unsigned char) 1 ; | |
10226 | unsigned char arg6 = (unsigned char) 0 ; | |
10227 | unsigned char arg7 = (unsigned char) 0 ; | |
10228 | bool result; | |
10229 | unsigned char temp2 ; | |
c32bde28 | 10230 | int res2 = 0 ; |
d55e5bfc | 10231 | unsigned char temp3 ; |
c32bde28 | 10232 | int res3 = 0 ; |
d55e5bfc | 10233 | unsigned char temp4 ; |
c32bde28 | 10234 | int res4 = 0 ; |
d55e5bfc RD |
10235 | PyObject * obj0 = 0 ; |
10236 | PyObject * obj1 = 0 ; | |
10237 | PyObject * obj2 = 0 ; | |
10238 | PyObject * obj3 = 0 ; | |
10239 | char *kwnames[] = { | |
10240 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
10241 | }; | |
10242 | ||
c32bde28 RD |
10243 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10244 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
10245 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 10246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); |
10248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 10249 | if (obj1) { |
093d3ff1 RD |
10250 | { |
10251 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
10252 | if (SWIG_arg_fail(5)) SWIG_fail; | |
10253 | } | |
d55e5bfc RD |
10254 | } |
10255 | if (obj2) { | |
093d3ff1 RD |
10256 | { |
10257 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
10258 | if (SWIG_arg_fail(6)) SWIG_fail; | |
10259 | } | |
d55e5bfc RD |
10260 | } |
10261 | if (obj3) { | |
093d3ff1 RD |
10262 | { |
10263 | arg7 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
10264 | if (SWIG_arg_fail(7)) SWIG_fail; | |
10265 | } | |
d55e5bfc RD |
10266 | } |
10267 | { | |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10269 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
10270 | ||
10271 | wxPyEndAllowThreads(__tstate); | |
10272 | if (PyErr_Occurred()) SWIG_fail; | |
10273 | } | |
10274 | { | |
10275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10276 | } | |
c32bde28 RD |
10277 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10278 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
10279 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10280 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
10281 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10282 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
10283 | return resultobj; |
10284 | fail: | |
10285 | return NULL; | |
10286 | } | |
10287 | ||
10288 | ||
c32bde28 | 10289 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10290 | PyObject *obj; |
10291 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10292 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
10293 | Py_INCREF(obj); | |
10294 | return Py_BuildValue((char *)""); | |
10295 | } | |
c32bde28 | 10296 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10297 | PyObject *resultobj; |
10298 | wxString *arg1 = 0 ; | |
10299 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
10300 | int arg3 = (int) -1 ; | |
10301 | wxImage *result; | |
ae8162c8 | 10302 | bool temp1 = false ; |
d55e5bfc RD |
10303 | PyObject * obj0 = 0 ; |
10304 | PyObject * obj1 = 0 ; | |
10305 | PyObject * obj2 = 0 ; | |
10306 | char *kwnames[] = { | |
10307 | (char *) "name",(char *) "type",(char *) "index", NULL | |
10308 | }; | |
10309 | ||
10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10311 | { | |
10312 | arg1 = wxString_in_helper(obj0); | |
10313 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10314 | temp1 = true; |
d55e5bfc RD |
10315 | } |
10316 | if (obj1) { | |
093d3ff1 RD |
10317 | { |
10318 | arg2 = (long)(SWIG_As_long(obj1)); | |
10319 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10320 | } | |
d55e5bfc RD |
10321 | } |
10322 | if (obj2) { | |
093d3ff1 RD |
10323 | { |
10324 | arg3 = (int)(SWIG_As_int(obj2)); | |
10325 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10326 | } | |
d55e5bfc RD |
10327 | } |
10328 | { | |
10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10330 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
10331 | ||
10332 | wxPyEndAllowThreads(__tstate); | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | } | |
10335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10336 | { | |
10337 | if (temp1) | |
10338 | delete arg1; | |
10339 | } | |
10340 | return resultobj; | |
10341 | fail: | |
10342 | { | |
10343 | if (temp1) | |
10344 | delete arg1; | |
10345 | } | |
10346 | return NULL; | |
10347 | } | |
10348 | ||
10349 | ||
c32bde28 | 10350 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10351 | PyObject *resultobj; |
10352 | wxImage *arg1 = (wxImage *) 0 ; | |
10353 | PyObject * obj0 = 0 ; | |
10354 | char *kwnames[] = { | |
10355 | (char *) "self", NULL | |
10356 | }; | |
10357 | ||
10358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10361 | { |
10362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10363 | delete arg1; | |
10364 | ||
10365 | wxPyEndAllowThreads(__tstate); | |
10366 | if (PyErr_Occurred()) SWIG_fail; | |
10367 | } | |
10368 | Py_INCREF(Py_None); resultobj = Py_None; | |
10369 | return resultobj; | |
10370 | fail: | |
10371 | return NULL; | |
10372 | } | |
10373 | ||
10374 | ||
c32bde28 | 10375 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10376 | PyObject *resultobj; |
10377 | wxString *arg1 = 0 ; | |
10378 | wxString *arg2 = 0 ; | |
10379 | int arg3 = (int) -1 ; | |
10380 | wxImage *result; | |
ae8162c8 RD |
10381 | bool temp1 = false ; |
10382 | bool temp2 = false ; | |
d55e5bfc RD |
10383 | PyObject * obj0 = 0 ; |
10384 | PyObject * obj1 = 0 ; | |
10385 | PyObject * obj2 = 0 ; | |
10386 | char *kwnames[] = { | |
10387 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
10388 | }; | |
10389 | ||
10390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10391 | { | |
10392 | arg1 = wxString_in_helper(obj0); | |
10393 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10394 | temp1 = true; |
d55e5bfc RD |
10395 | } |
10396 | { | |
10397 | arg2 = wxString_in_helper(obj1); | |
10398 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10399 | temp2 = true; |
d55e5bfc RD |
10400 | } |
10401 | if (obj2) { | |
093d3ff1 RD |
10402 | { |
10403 | arg3 = (int)(SWIG_As_int(obj2)); | |
10404 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10405 | } | |
d55e5bfc RD |
10406 | } |
10407 | { | |
10408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10409 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10410 | ||
10411 | wxPyEndAllowThreads(__tstate); | |
10412 | if (PyErr_Occurred()) SWIG_fail; | |
10413 | } | |
10414 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10415 | { | |
10416 | if (temp1) | |
10417 | delete arg1; | |
10418 | } | |
10419 | { | |
10420 | if (temp2) | |
10421 | delete arg2; | |
10422 | } | |
10423 | return resultobj; | |
10424 | fail: | |
10425 | { | |
10426 | if (temp1) | |
10427 | delete arg1; | |
10428 | } | |
10429 | { | |
10430 | if (temp2) | |
10431 | delete arg2; | |
10432 | } | |
10433 | return NULL; | |
10434 | } | |
10435 | ||
10436 | ||
c32bde28 | 10437 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10438 | PyObject *resultobj; |
10439 | wxInputStream *arg1 = 0 ; | |
10440 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
10441 | int arg3 = (int) -1 ; | |
10442 | wxImage *result; | |
10443 | wxPyInputStream *temp1 ; | |
10444 | bool created1 ; | |
10445 | PyObject * obj0 = 0 ; | |
10446 | PyObject * obj1 = 0 ; | |
10447 | PyObject * obj2 = 0 ; | |
10448 | char *kwnames[] = { | |
10449 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
10450 | }; | |
10451 | ||
10452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10453 | { | |
10454 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10455 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10456 | created1 = false; |
d55e5bfc RD |
10457 | } else { |
10458 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10459 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
10460 | if (arg1 == NULL) { |
10461 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10462 | SWIG_fail; | |
10463 | } | |
ae8162c8 | 10464 | created1 = true; |
d55e5bfc RD |
10465 | } |
10466 | } | |
10467 | if (obj1) { | |
093d3ff1 RD |
10468 | { |
10469 | arg2 = (long)(SWIG_As_long(obj1)); | |
10470 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10471 | } | |
d55e5bfc RD |
10472 | } |
10473 | if (obj2) { | |
093d3ff1 RD |
10474 | { |
10475 | arg3 = (int)(SWIG_As_int(obj2)); | |
10476 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10477 | } | |
d55e5bfc RD |
10478 | } |
10479 | { | |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
10482 | ||
10483 | wxPyEndAllowThreads(__tstate); | |
10484 | if (PyErr_Occurred()) SWIG_fail; | |
10485 | } | |
10486 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10487 | { | |
10488 | if (created1) | |
10489 | delete arg1; | |
10490 | } | |
10491 | return resultobj; | |
10492 | fail: | |
10493 | { | |
10494 | if (created1) | |
10495 | delete arg1; | |
10496 | } | |
10497 | return NULL; | |
10498 | } | |
10499 | ||
10500 | ||
c32bde28 | 10501 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10502 | PyObject *resultobj; |
10503 | wxInputStream *arg1 = 0 ; | |
10504 | wxString *arg2 = 0 ; | |
10505 | int arg3 = (int) -1 ; | |
10506 | wxImage *result; | |
10507 | wxPyInputStream *temp1 ; | |
10508 | bool created1 ; | |
ae8162c8 | 10509 | bool temp2 = false ; |
d55e5bfc RD |
10510 | PyObject * obj0 = 0 ; |
10511 | PyObject * obj1 = 0 ; | |
10512 | PyObject * obj2 = 0 ; | |
10513 | char *kwnames[] = { | |
10514 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10515 | }; | |
10516 | ||
10517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10518 | { | |
10519 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10520 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10521 | created1 = false; |
d55e5bfc RD |
10522 | } else { |
10523 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10524 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
10525 | if (arg1 == NULL) { |
10526 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10527 | SWIG_fail; | |
10528 | } | |
ae8162c8 | 10529 | created1 = true; |
d55e5bfc RD |
10530 | } |
10531 | } | |
10532 | { | |
10533 | arg2 = wxString_in_helper(obj1); | |
10534 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10535 | temp2 = true; |
d55e5bfc RD |
10536 | } |
10537 | if (obj2) { | |
093d3ff1 RD |
10538 | { |
10539 | arg3 = (int)(SWIG_As_int(obj2)); | |
10540 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10541 | } | |
d55e5bfc RD |
10542 | } |
10543 | { | |
10544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10545 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
10546 | ||
10547 | wxPyEndAllowThreads(__tstate); | |
10548 | if (PyErr_Occurred()) SWIG_fail; | |
10549 | } | |
10550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10551 | { | |
10552 | if (created1) | |
10553 | delete arg1; | |
10554 | } | |
10555 | { | |
10556 | if (temp2) | |
10557 | delete arg2; | |
10558 | } | |
10559 | return resultobj; | |
10560 | fail: | |
10561 | { | |
10562 | if (created1) | |
10563 | delete arg1; | |
10564 | } | |
10565 | { | |
10566 | if (temp2) | |
10567 | delete arg2; | |
10568 | } | |
10569 | return NULL; | |
10570 | } | |
10571 | ||
10572 | ||
c32bde28 | 10573 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10574 | PyObject *resultobj; |
10575 | int arg1 = (int) 0 ; | |
10576 | int arg2 = (int) 0 ; | |
ae8162c8 | 10577 | bool arg3 = (bool) true ; |
d55e5bfc RD |
10578 | wxImage *result; |
10579 | PyObject * obj0 = 0 ; | |
10580 | PyObject * obj1 = 0 ; | |
10581 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
10582 | char *kwnames[] = { |
10583 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
10584 | }; | |
d55e5bfc | 10585 | |
c24da6d6 | 10586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 10587 | if (obj0) { |
093d3ff1 RD |
10588 | { |
10589 | arg1 = (int)(SWIG_As_int(obj0)); | |
10590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10591 | } | |
d55e5bfc RD |
10592 | } |
10593 | if (obj1) { | |
093d3ff1 RD |
10594 | { |
10595 | arg2 = (int)(SWIG_As_int(obj1)); | |
10596 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10597 | } | |
d55e5bfc RD |
10598 | } |
10599 | if (obj2) { | |
093d3ff1 RD |
10600 | { |
10601 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
10602 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10603 | } | |
d55e5bfc RD |
10604 | } |
10605 | { | |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 10607 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
10608 | |
10609 | wxPyEndAllowThreads(__tstate); | |
10610 | if (PyErr_Occurred()) SWIG_fail; | |
10611 | } | |
10612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10613 | return resultobj; | |
10614 | fail: | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
c32bde28 | 10619 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10620 | PyObject *resultobj; |
10621 | wxBitmap *arg1 = 0 ; | |
10622 | wxImage *result; | |
10623 | PyObject * obj0 = 0 ; | |
10624 | char *kwnames[] = { | |
10625 | (char *) "bitmap", NULL | |
10626 | }; | |
10627 | ||
10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10629 | { |
10630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
10631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10632 | if (arg1 == NULL) { | |
10633 | SWIG_null_ref("wxBitmap"); | |
10634 | } | |
10635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10636 | } |
10637 | { | |
0439c23b | 10638 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10640 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
10641 | ||
10642 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10643 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10644 | } |
10645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10646 | return resultobj; | |
10647 | fail: | |
10648 | return NULL; | |
10649 | } | |
10650 | ||
10651 | ||
c32bde28 | 10652 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10653 | PyObject *resultobj; |
10654 | int arg1 ; | |
10655 | int arg2 ; | |
10656 | unsigned char *arg3 = (unsigned char *) 0 ; | |
10657 | wxImage *result; | |
10658 | PyObject * obj0 = 0 ; | |
10659 | PyObject * obj1 = 0 ; | |
10660 | PyObject * obj2 = 0 ; | |
10661 | char *kwnames[] = { | |
10662 | (char *) "width",(char *) "height",(char *) "data", NULL | |
10663 | }; | |
10664 | ||
10665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10666 | { |
10667 | arg1 = (int)(SWIG_As_int(obj0)); | |
10668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10669 | } | |
10670 | { | |
10671 | arg2 = (int)(SWIG_As_int(obj1)); | |
10672 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10673 | } | |
10674 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
10675 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
10676 | { |
10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10678 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
10679 | ||
10680 | wxPyEndAllowThreads(__tstate); | |
10681 | if (PyErr_Occurred()) SWIG_fail; | |
10682 | } | |
10683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10684 | return resultobj; | |
10685 | fail: | |
10686 | return NULL; | |
10687 | } | |
10688 | ||
10689 | ||
c9c2cf70 RD |
10690 | static PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
10691 | PyObject *resultobj; | |
10692 | int arg1 ; | |
10693 | int arg2 ; | |
10694 | unsigned char *arg3 = (unsigned char *) 0 ; | |
10695 | unsigned char *arg4 = (unsigned char *) 0 ; | |
10696 | wxImage *result; | |
10697 | PyObject * obj0 = 0 ; | |
10698 | PyObject * obj1 = 0 ; | |
10699 | PyObject * obj2 = 0 ; | |
10700 | PyObject * obj3 = 0 ; | |
10701 | char *kwnames[] = { | |
10702 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
10703 | }; | |
10704 | ||
10705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
10706 | { |
10707 | arg1 = (int)(SWIG_As_int(obj0)); | |
10708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10709 | } | |
10710 | { | |
10711 | arg2 = (int)(SWIG_As_int(obj1)); | |
10712 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10713 | } | |
10714 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
10715 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10716 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
10717 | if (SWIG_arg_fail(4)) SWIG_fail; | |
c9c2cf70 RD |
10718 | { |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4); | |
10721 | ||
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
10725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10726 | return resultobj; | |
10727 | fail: | |
10728 | return NULL; | |
10729 | } | |
10730 | ||
10731 | ||
c32bde28 | 10732 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10733 | PyObject *resultobj; |
10734 | wxImage *arg1 = (wxImage *) 0 ; | |
10735 | int arg2 ; | |
10736 | int arg3 ; | |
10737 | PyObject * obj0 = 0 ; | |
10738 | PyObject * obj1 = 0 ; | |
10739 | PyObject * obj2 = 0 ; | |
10740 | char *kwnames[] = { | |
10741 | (char *) "self",(char *) "width",(char *) "height", NULL | |
10742 | }; | |
10743 | ||
10744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10745 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10746 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10747 | { | |
10748 | arg2 = (int)(SWIG_As_int(obj1)); | |
10749 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10750 | } | |
10751 | { | |
10752 | arg3 = (int)(SWIG_As_int(obj2)); | |
10753 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10754 | } | |
d55e5bfc RD |
10755 | { |
10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10757 | (arg1)->Create(arg2,arg3); | |
10758 | ||
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
10762 | Py_INCREF(Py_None); resultobj = Py_None; | |
10763 | return resultobj; | |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
c32bde28 | 10769 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10770 | PyObject *resultobj; |
10771 | wxImage *arg1 = (wxImage *) 0 ; | |
10772 | PyObject * obj0 = 0 ; | |
10773 | char *kwnames[] = { | |
10774 | (char *) "self", NULL | |
10775 | }; | |
10776 | ||
10777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10780 | { |
10781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10782 | (arg1)->Destroy(); | |
10783 | ||
10784 | wxPyEndAllowThreads(__tstate); | |
10785 | if (PyErr_Occurred()) SWIG_fail; | |
10786 | } | |
10787 | Py_INCREF(Py_None); resultobj = Py_None; | |
10788 | return resultobj; | |
10789 | fail: | |
10790 | return NULL; | |
10791 | } | |
10792 | ||
10793 | ||
c32bde28 | 10794 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10795 | PyObject *resultobj; |
10796 | wxImage *arg1 = (wxImage *) 0 ; | |
10797 | int arg2 ; | |
10798 | int arg3 ; | |
093d3ff1 | 10799 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
10800 | PyObject * obj0 = 0 ; |
10801 | PyObject * obj1 = 0 ; | |
10802 | PyObject * obj2 = 0 ; | |
10803 | char *kwnames[] = { | |
10804 | (char *) "self",(char *) "width",(char *) "height", NULL | |
10805 | }; | |
10806 | ||
10807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10810 | { | |
10811 | arg2 = (int)(SWIG_As_int(obj1)); | |
10812 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10813 | } | |
10814 | { | |
10815 | arg3 = (int)(SWIG_As_int(obj2)); | |
10816 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10817 | } | |
d55e5bfc RD |
10818 | { |
10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10820 | result = (arg1)->Scale(arg2,arg3); | |
10821 | ||
10822 | wxPyEndAllowThreads(__tstate); | |
10823 | if (PyErr_Occurred()) SWIG_fail; | |
10824 | } | |
10825 | { | |
10826 | wxImage * resultptr; | |
093d3ff1 | 10827 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
10828 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
10829 | } | |
10830 | return resultobj; | |
10831 | fail: | |
10832 | return NULL; | |
10833 | } | |
10834 | ||
10835 | ||
c32bde28 | 10836 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10837 | PyObject *resultobj; |
10838 | wxImage *arg1 = (wxImage *) 0 ; | |
10839 | int arg2 ; | |
10840 | int arg3 ; | |
093d3ff1 | 10841 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
10842 | PyObject * obj0 = 0 ; |
10843 | PyObject * obj1 = 0 ; | |
10844 | PyObject * obj2 = 0 ; | |
10845 | char *kwnames[] = { | |
10846 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
10847 | }; | |
10848 | ||
10849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10850 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10851 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10852 | { | |
10853 | arg2 = (int)(SWIG_As_int(obj1)); | |
10854 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10855 | } | |
10856 | { | |
10857 | arg3 = (int)(SWIG_As_int(obj2)); | |
10858 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10859 | } | |
d55e5bfc RD |
10860 | { |
10861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10862 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
10863 | ||
10864 | wxPyEndAllowThreads(__tstate); | |
10865 | if (PyErr_Occurred()) SWIG_fail; | |
10866 | } | |
10867 | { | |
10868 | wxImage * resultptr; | |
093d3ff1 | 10869 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
10870 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
10871 | } | |
10872 | return resultobj; | |
10873 | fail: | |
10874 | return NULL; | |
10875 | } | |
10876 | ||
10877 | ||
c32bde28 | 10878 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10879 | PyObject *resultobj; |
10880 | wxImage *arg1 = (wxImage *) 0 ; | |
10881 | int arg2 ; | |
10882 | int arg3 ; | |
10883 | wxImage *result; | |
10884 | PyObject * obj0 = 0 ; | |
10885 | PyObject * obj1 = 0 ; | |
10886 | PyObject * obj2 = 0 ; | |
10887 | char *kwnames[] = { | |
10888 | (char *) "self",(char *) "width",(char *) "height", NULL | |
10889 | }; | |
10890 | ||
10891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10894 | { | |
10895 | arg2 = (int)(SWIG_As_int(obj1)); | |
10896 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10897 | } | |
10898 | { | |
10899 | arg3 = (int)(SWIG_As_int(obj2)); | |
10900 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10901 | } | |
d55e5bfc RD |
10902 | { |
10903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10904 | { | |
10905 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
10906 | result = (wxImage *) &_result_ref; | |
10907 | } | |
10908 | ||
10909 | wxPyEndAllowThreads(__tstate); | |
10910 | if (PyErr_Occurred()) SWIG_fail; | |
10911 | } | |
10912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
10913 | return resultobj; | |
10914 | fail: | |
10915 | return NULL; | |
10916 | } | |
10917 | ||
10918 | ||
c32bde28 | 10919 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10920 | PyObject *resultobj; |
10921 | wxImage *arg1 = (wxImage *) 0 ; | |
10922 | int arg2 ; | |
10923 | int arg3 ; | |
10924 | unsigned char arg4 ; | |
10925 | unsigned char arg5 ; | |
10926 | unsigned char arg6 ; | |
10927 | PyObject * obj0 = 0 ; | |
10928 | PyObject * obj1 = 0 ; | |
10929 | PyObject * obj2 = 0 ; | |
10930 | PyObject * obj3 = 0 ; | |
10931 | PyObject * obj4 = 0 ; | |
10932 | PyObject * obj5 = 0 ; | |
10933 | char *kwnames[] = { | |
10934 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
10935 | }; | |
10936 | ||
10937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
10938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10940 | { | |
10941 | arg2 = (int)(SWIG_As_int(obj1)); | |
10942 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10943 | } | |
10944 | { | |
10945 | arg3 = (int)(SWIG_As_int(obj2)); | |
10946 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10947 | } | |
10948 | { | |
10949 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
10950 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10951 | } | |
10952 | { | |
10953 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4)); | |
10954 | if (SWIG_arg_fail(5)) SWIG_fail; | |
10955 | } | |
10956 | { | |
10957 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj5)); | |
10958 | if (SWIG_arg_fail(6)) SWIG_fail; | |
10959 | } | |
d55e5bfc RD |
10960 | { |
10961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10962 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
10963 | ||
10964 | wxPyEndAllowThreads(__tstate); | |
10965 | if (PyErr_Occurred()) SWIG_fail; | |
10966 | } | |
10967 | Py_INCREF(Py_None); resultobj = Py_None; | |
10968 | return resultobj; | |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
c32bde28 | 10974 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10975 | PyObject *resultobj; |
10976 | wxImage *arg1 = (wxImage *) 0 ; | |
10977 | int arg2 ; | |
10978 | int arg3 ; | |
10979 | unsigned char result; | |
10980 | PyObject * obj0 = 0 ; | |
10981 | PyObject * obj1 = 0 ; | |
10982 | PyObject * obj2 = 0 ; | |
10983 | char *kwnames[] = { | |
10984 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10985 | }; | |
10986 | ||
10987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10990 | { | |
10991 | arg2 = (int)(SWIG_As_int(obj1)); | |
10992 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10993 | } | |
10994 | { | |
10995 | arg3 = (int)(SWIG_As_int(obj2)); | |
10996 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10997 | } | |
d55e5bfc RD |
10998 | { |
10999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11000 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
11001 | ||
11002 | wxPyEndAllowThreads(__tstate); | |
11003 | if (PyErr_Occurred()) SWIG_fail; | |
11004 | } | |
093d3ff1 RD |
11005 | { |
11006 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11007 | } | |
d55e5bfc RD |
11008 | return resultobj; |
11009 | fail: | |
11010 | return NULL; | |
11011 | } | |
11012 | ||
11013 | ||
c32bde28 | 11014 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11015 | PyObject *resultobj; |
11016 | wxImage *arg1 = (wxImage *) 0 ; | |
11017 | int arg2 ; | |
11018 | int arg3 ; | |
11019 | unsigned char result; | |
11020 | PyObject * obj0 = 0 ; | |
11021 | PyObject * obj1 = 0 ; | |
11022 | PyObject * obj2 = 0 ; | |
11023 | char *kwnames[] = { | |
11024 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11025 | }; | |
11026 | ||
11027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11030 | { | |
11031 | arg2 = (int)(SWIG_As_int(obj1)); | |
11032 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11033 | } | |
11034 | { | |
11035 | arg3 = (int)(SWIG_As_int(obj2)); | |
11036 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11037 | } | |
d55e5bfc RD |
11038 | { |
11039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11040 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
11041 | ||
11042 | wxPyEndAllowThreads(__tstate); | |
11043 | if (PyErr_Occurred()) SWIG_fail; | |
11044 | } | |
093d3ff1 RD |
11045 | { |
11046 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11047 | } | |
d55e5bfc RD |
11048 | return resultobj; |
11049 | fail: | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
c32bde28 | 11054 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11055 | PyObject *resultobj; |
11056 | wxImage *arg1 = (wxImage *) 0 ; | |
11057 | int arg2 ; | |
11058 | int arg3 ; | |
11059 | unsigned char result; | |
11060 | PyObject * obj0 = 0 ; | |
11061 | PyObject * obj1 = 0 ; | |
11062 | PyObject * obj2 = 0 ; | |
11063 | char *kwnames[] = { | |
11064 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11065 | }; | |
11066 | ||
11067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11070 | { | |
11071 | arg2 = (int)(SWIG_As_int(obj1)); | |
11072 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11073 | } | |
11074 | { | |
11075 | arg3 = (int)(SWIG_As_int(obj2)); | |
11076 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11077 | } | |
d55e5bfc RD |
11078 | { |
11079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11080 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
11081 | ||
11082 | wxPyEndAllowThreads(__tstate); | |
11083 | if (PyErr_Occurred()) SWIG_fail; | |
11084 | } | |
093d3ff1 RD |
11085 | { |
11086 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11087 | } | |
d55e5bfc RD |
11088 | return resultobj; |
11089 | fail: | |
11090 | return NULL; | |
11091 | } | |
11092 | ||
11093 | ||
c32bde28 | 11094 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11095 | PyObject *resultobj; |
11096 | wxImage *arg1 = (wxImage *) 0 ; | |
11097 | int arg2 ; | |
11098 | int arg3 ; | |
11099 | unsigned char arg4 ; | |
11100 | PyObject * obj0 = 0 ; | |
11101 | PyObject * obj1 = 0 ; | |
11102 | PyObject * obj2 = 0 ; | |
11103 | PyObject * obj3 = 0 ; | |
11104 | char *kwnames[] = { | |
11105 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
11106 | }; | |
11107 | ||
11108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11111 | { | |
11112 | arg2 = (int)(SWIG_As_int(obj1)); | |
11113 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11114 | } | |
11115 | { | |
11116 | arg3 = (int)(SWIG_As_int(obj2)); | |
11117 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11118 | } | |
11119 | { | |
11120 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11121 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11122 | } | |
d55e5bfc RD |
11123 | { |
11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11125 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
11126 | ||
11127 | wxPyEndAllowThreads(__tstate); | |
11128 | if (PyErr_Occurred()) SWIG_fail; | |
11129 | } | |
11130 | Py_INCREF(Py_None); resultobj = Py_None; | |
11131 | return resultobj; | |
11132 | fail: | |
11133 | return NULL; | |
11134 | } | |
11135 | ||
11136 | ||
c32bde28 | 11137 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11138 | PyObject *resultobj; |
11139 | wxImage *arg1 = (wxImage *) 0 ; | |
11140 | int arg2 ; | |
11141 | int arg3 ; | |
11142 | unsigned char result; | |
11143 | PyObject * obj0 = 0 ; | |
11144 | PyObject * obj1 = 0 ; | |
11145 | PyObject * obj2 = 0 ; | |
11146 | char *kwnames[] = { | |
11147 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11148 | }; | |
11149 | ||
11150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11153 | { | |
11154 | arg2 = (int)(SWIG_As_int(obj1)); | |
11155 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11156 | } | |
11157 | { | |
11158 | arg3 = (int)(SWIG_As_int(obj2)); | |
11159 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11160 | } | |
d55e5bfc RD |
11161 | { |
11162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11163 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
11164 | ||
11165 | wxPyEndAllowThreads(__tstate); | |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
11167 | } | |
093d3ff1 RD |
11168 | { |
11169 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11170 | } | |
d55e5bfc RD |
11171 | return resultobj; |
11172 | fail: | |
11173 | return NULL; | |
11174 | } | |
11175 | ||
11176 | ||
c32bde28 | 11177 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11178 | PyObject *resultobj; |
11179 | wxImage *arg1 = (wxImage *) 0 ; | |
11180 | bool result; | |
11181 | PyObject * obj0 = 0 ; | |
11182 | char *kwnames[] = { | |
11183 | (char *) "self", NULL | |
11184 | }; | |
11185 | ||
11186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11189 | { |
11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11191 | result = (bool)(arg1)->HasAlpha(); | |
11192 | ||
11193 | wxPyEndAllowThreads(__tstate); | |
11194 | if (PyErr_Occurred()) SWIG_fail; | |
11195 | } | |
11196 | { | |
11197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11198 | } | |
11199 | return resultobj; | |
11200 | fail: | |
11201 | return NULL; | |
11202 | } | |
11203 | ||
11204 | ||
c32bde28 | 11205 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11206 | PyObject *resultobj; |
11207 | wxImage *arg1 = (wxImage *) 0 ; | |
11208 | byte *arg2 = (byte *) 0 ; | |
11209 | byte *arg3 = (byte *) 0 ; | |
11210 | byte *arg4 = (byte *) 0 ; | |
11211 | byte arg5 = (byte) 0 ; | |
11212 | byte arg6 = (byte) 0 ; | |
11213 | byte arg7 = (byte) 0 ; | |
11214 | bool result; | |
11215 | byte temp2 ; | |
c32bde28 | 11216 | int res2 = 0 ; |
d55e5bfc | 11217 | byte temp3 ; |
c32bde28 | 11218 | int res3 = 0 ; |
d55e5bfc | 11219 | byte temp4 ; |
c32bde28 | 11220 | int res4 = 0 ; |
d55e5bfc RD |
11221 | PyObject * obj0 = 0 ; |
11222 | PyObject * obj1 = 0 ; | |
11223 | PyObject * obj2 = 0 ; | |
11224 | PyObject * obj3 = 0 ; | |
11225 | char *kwnames[] = { | |
11226 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
11227 | }; | |
11228 | ||
c32bde28 RD |
11229 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
11230 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
11231 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 11232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
11233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11235 | if (obj1) { |
093d3ff1 RD |
11236 | { |
11237 | arg5 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
11238 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11239 | } | |
d55e5bfc RD |
11240 | } |
11241 | if (obj2) { | |
093d3ff1 RD |
11242 | { |
11243 | arg6 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
11244 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11245 | } | |
d55e5bfc RD |
11246 | } |
11247 | if (obj3) { | |
093d3ff1 RD |
11248 | { |
11249 | arg7 = (byte)(SWIG_As_unsigned_SS_char(obj3)); | |
11250 | if (SWIG_arg_fail(7)) SWIG_fail; | |
11251 | } | |
d55e5bfc RD |
11252 | } |
11253 | { | |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11255 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
11256 | ||
11257 | wxPyEndAllowThreads(__tstate); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | } | |
11260 | { | |
11261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11262 | } | |
c32bde28 | 11263 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
093d3ff1 | 11264 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); |
c32bde28 | 11265 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
093d3ff1 | 11266 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); |
c32bde28 | 11267 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
093d3ff1 | 11268 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); |
d55e5bfc RD |
11269 | return resultobj; |
11270 | fail: | |
11271 | return NULL; | |
11272 | } | |
11273 | ||
11274 | ||
c32bde28 | 11275 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
11276 | PyObject *resultobj; |
11277 | wxImage *arg1 = (wxImage *) 0 ; | |
11278 | byte arg2 = (byte) 128 ; | |
11279 | bool result; | |
11280 | PyObject * obj0 = 0 ; | |
11281 | PyObject * obj1 = 0 ; | |
11282 | char *kwnames[] = { | |
11283 | (char *) "self",(char *) "threshold", NULL | |
11284 | }; | |
11285 | ||
11286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4cf4100f | 11289 | if (obj1) { |
093d3ff1 RD |
11290 | { |
11291 | arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
11292 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11293 | } | |
4cf4100f RD |
11294 | } |
11295 | { | |
11296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11297 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
11298 | ||
11299 | wxPyEndAllowThreads(__tstate); | |
11300 | if (PyErr_Occurred()) SWIG_fail; | |
11301 | } | |
11302 | { | |
11303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11304 | } | |
11305 | return resultobj; | |
11306 | fail: | |
11307 | return NULL; | |
11308 | } | |
11309 | ||
11310 | ||
8fb0e70a RD |
11311 | static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
11312 | PyObject *resultobj; | |
11313 | wxImage *arg1 = (wxImage *) 0 ; | |
11314 | unsigned char arg2 ; | |
11315 | unsigned char arg3 ; | |
11316 | unsigned char arg4 ; | |
11317 | bool result; | |
11318 | PyObject * obj0 = 0 ; | |
11319 | PyObject * obj1 = 0 ; | |
11320 | PyObject * obj2 = 0 ; | |
11321 | PyObject * obj3 = 0 ; | |
11322 | char *kwnames[] = { | |
11323 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11324 | }; | |
11325 | ||
11326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11329 | { | |
11330 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
11331 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11332 | } | |
11333 | { | |
11334 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
11335 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11336 | } | |
11337 | { | |
11338 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11339 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11340 | } | |
8fb0e70a RD |
11341 | { |
11342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11343 | result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4); | |
11344 | ||
11345 | wxPyEndAllowThreads(__tstate); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | } | |
11348 | { | |
11349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11350 | } | |
11351 | return resultobj; | |
11352 | fail: | |
11353 | return NULL; | |
11354 | } | |
11355 | ||
11356 | ||
c32bde28 | 11357 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11358 | PyObject *resultobj; |
11359 | wxImage *arg1 = (wxImage *) 0 ; | |
11360 | wxImage *arg2 = 0 ; | |
11361 | byte arg3 ; | |
11362 | byte arg4 ; | |
11363 | byte arg5 ; | |
11364 | bool result; | |
11365 | PyObject * obj0 = 0 ; | |
11366 | PyObject * obj1 = 0 ; | |
11367 | PyObject * obj2 = 0 ; | |
11368 | PyObject * obj3 = 0 ; | |
11369 | PyObject * obj4 = 0 ; | |
11370 | char *kwnames[] = { | |
11371 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
11372 | }; | |
11373 | ||
11374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
11375 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11376 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11377 | { | |
11378 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11379 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11380 | if (arg2 == NULL) { | |
11381 | SWIG_null_ref("wxImage"); | |
11382 | } | |
11383 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11384 | } | |
11385 | { | |
11386 | arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
11387 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11388 | } | |
11389 | { | |
11390 | arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3)); | |
11391 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11392 | } | |
11393 | { | |
11394 | arg5 = (byte)(SWIG_As_unsigned_SS_char(obj4)); | |
11395 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11396 | } | |
d55e5bfc RD |
11397 | { |
11398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11399 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
11400 | ||
11401 | wxPyEndAllowThreads(__tstate); | |
11402 | if (PyErr_Occurred()) SWIG_fail; | |
11403 | } | |
11404 | { | |
11405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11406 | } | |
11407 | return resultobj; | |
11408 | fail: | |
11409 | return NULL; | |
11410 | } | |
11411 | ||
11412 | ||
c32bde28 | 11413 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11414 | PyObject *resultobj; |
11415 | wxString *arg1 = 0 ; | |
11416 | bool result; | |
ae8162c8 | 11417 | bool temp1 = false ; |
d55e5bfc RD |
11418 | PyObject * obj0 = 0 ; |
11419 | char *kwnames[] = { | |
11420 | (char *) "name", NULL | |
11421 | }; | |
11422 | ||
11423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
11424 | { | |
11425 | arg1 = wxString_in_helper(obj0); | |
11426 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11427 | temp1 = true; |
d55e5bfc RD |
11428 | } |
11429 | { | |
11430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11431 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
11432 | ||
11433 | wxPyEndAllowThreads(__tstate); | |
11434 | if (PyErr_Occurred()) SWIG_fail; | |
11435 | } | |
11436 | { | |
11437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11438 | } | |
11439 | { | |
11440 | if (temp1) | |
11441 | delete arg1; | |
11442 | } | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | { | |
11446 | if (temp1) | |
11447 | delete arg1; | |
11448 | } | |
11449 | return NULL; | |
11450 | } | |
11451 | ||
11452 | ||
c32bde28 | 11453 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11454 | PyObject *resultobj; |
11455 | wxString *arg1 = 0 ; | |
11456 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
11457 | int result; | |
ae8162c8 | 11458 | bool temp1 = false ; |
d55e5bfc RD |
11459 | PyObject * obj0 = 0 ; |
11460 | PyObject * obj1 = 0 ; | |
11461 | char *kwnames[] = { | |
11462 | (char *) "name",(char *) "type", NULL | |
11463 | }; | |
11464 | ||
11465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
11466 | { | |
11467 | arg1 = wxString_in_helper(obj0); | |
11468 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11469 | temp1 = true; |
d55e5bfc RD |
11470 | } |
11471 | if (obj1) { | |
093d3ff1 RD |
11472 | { |
11473 | arg2 = (long)(SWIG_As_long(obj1)); | |
11474 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11475 | } | |
d55e5bfc RD |
11476 | } |
11477 | { | |
11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11479 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
11480 | ||
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
093d3ff1 RD |
11484 | { |
11485 | resultobj = SWIG_From_int((int)(result)); | |
11486 | } | |
d55e5bfc RD |
11487 | { |
11488 | if (temp1) | |
11489 | delete arg1; | |
11490 | } | |
11491 | return resultobj; | |
11492 | fail: | |
11493 | { | |
11494 | if (temp1) | |
11495 | delete arg1; | |
11496 | } | |
11497 | return NULL; | |
11498 | } | |
11499 | ||
11500 | ||
c32bde28 | 11501 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11502 | PyObject *resultobj; |
11503 | wxImage *arg1 = (wxImage *) 0 ; | |
11504 | wxString *arg2 = 0 ; | |
11505 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
11506 | int arg4 = (int) -1 ; | |
11507 | bool result; | |
ae8162c8 | 11508 | bool temp2 = false ; |
d55e5bfc RD |
11509 | PyObject * obj0 = 0 ; |
11510 | PyObject * obj1 = 0 ; | |
11511 | PyObject * obj2 = 0 ; | |
11512 | PyObject * obj3 = 0 ; | |
11513 | char *kwnames[] = { | |
11514 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
11515 | }; | |
11516 | ||
11517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11520 | { |
11521 | arg2 = wxString_in_helper(obj1); | |
11522 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11523 | temp2 = true; |
d55e5bfc RD |
11524 | } |
11525 | if (obj2) { | |
093d3ff1 RD |
11526 | { |
11527 | arg3 = (long)(SWIG_As_long(obj2)); | |
11528 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11529 | } | |
d55e5bfc RD |
11530 | } |
11531 | if (obj3) { | |
093d3ff1 RD |
11532 | { |
11533 | arg4 = (int)(SWIG_As_int(obj3)); | |
11534 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11535 | } | |
d55e5bfc RD |
11536 | } |
11537 | { | |
11538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11539 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
11540 | ||
11541 | wxPyEndAllowThreads(__tstate); | |
11542 | if (PyErr_Occurred()) SWIG_fail; | |
11543 | } | |
11544 | { | |
11545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11546 | } | |
11547 | { | |
11548 | if (temp2) | |
11549 | delete arg2; | |
11550 | } | |
11551 | return resultobj; | |
11552 | fail: | |
11553 | { | |
11554 | if (temp2) | |
11555 | delete arg2; | |
11556 | } | |
11557 | return NULL; | |
11558 | } | |
11559 | ||
11560 | ||
c32bde28 | 11561 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11562 | PyObject *resultobj; |
11563 | wxImage *arg1 = (wxImage *) 0 ; | |
11564 | wxString *arg2 = 0 ; | |
11565 | wxString *arg3 = 0 ; | |
11566 | int arg4 = (int) -1 ; | |
11567 | bool result; | |
ae8162c8 RD |
11568 | bool temp2 = false ; |
11569 | bool temp3 = false ; | |
d55e5bfc RD |
11570 | PyObject * obj0 = 0 ; |
11571 | PyObject * obj1 = 0 ; | |
11572 | PyObject * obj2 = 0 ; | |
11573 | PyObject * obj3 = 0 ; | |
11574 | char *kwnames[] = { | |
11575 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
11576 | }; | |
11577 | ||
11578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11581 | { |
11582 | arg2 = wxString_in_helper(obj1); | |
11583 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11584 | temp2 = true; |
d55e5bfc RD |
11585 | } |
11586 | { | |
11587 | arg3 = wxString_in_helper(obj2); | |
11588 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11589 | temp3 = true; |
d55e5bfc RD |
11590 | } |
11591 | if (obj3) { | |
093d3ff1 RD |
11592 | { |
11593 | arg4 = (int)(SWIG_As_int(obj3)); | |
11594 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11595 | } | |
d55e5bfc RD |
11596 | } |
11597 | { | |
11598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11599 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11600 | ||
11601 | wxPyEndAllowThreads(__tstate); | |
11602 | if (PyErr_Occurred()) SWIG_fail; | |
11603 | } | |
11604 | { | |
11605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11606 | } | |
11607 | { | |
11608 | if (temp2) | |
11609 | delete arg2; | |
11610 | } | |
11611 | { | |
11612 | if (temp3) | |
11613 | delete arg3; | |
11614 | } | |
11615 | return resultobj; | |
11616 | fail: | |
11617 | { | |
11618 | if (temp2) | |
11619 | delete arg2; | |
11620 | } | |
11621 | { | |
11622 | if (temp3) | |
11623 | delete arg3; | |
11624 | } | |
11625 | return NULL; | |
11626 | } | |
11627 | ||
11628 | ||
c32bde28 | 11629 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11630 | PyObject *resultobj; |
11631 | wxImage *arg1 = (wxImage *) 0 ; | |
11632 | wxString *arg2 = 0 ; | |
11633 | int arg3 ; | |
11634 | bool result; | |
ae8162c8 | 11635 | bool temp2 = false ; |
d55e5bfc RD |
11636 | PyObject * obj0 = 0 ; |
11637 | PyObject * obj1 = 0 ; | |
11638 | PyObject * obj2 = 0 ; | |
11639 | char *kwnames[] = { | |
11640 | (char *) "self",(char *) "name",(char *) "type", NULL | |
11641 | }; | |
11642 | ||
11643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11646 | { |
11647 | arg2 = wxString_in_helper(obj1); | |
11648 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11649 | temp2 = true; |
d55e5bfc | 11650 | } |
093d3ff1 RD |
11651 | { |
11652 | arg3 = (int)(SWIG_As_int(obj2)); | |
11653 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11654 | } | |
d55e5bfc RD |
11655 | { |
11656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11657 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
11658 | ||
11659 | wxPyEndAllowThreads(__tstate); | |
11660 | if (PyErr_Occurred()) SWIG_fail; | |
11661 | } | |
11662 | { | |
11663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11664 | } | |
11665 | { | |
11666 | if (temp2) | |
11667 | delete arg2; | |
11668 | } | |
11669 | return resultobj; | |
11670 | fail: | |
11671 | { | |
11672 | if (temp2) | |
11673 | delete arg2; | |
11674 | } | |
11675 | return NULL; | |
11676 | } | |
11677 | ||
11678 | ||
c32bde28 | 11679 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11680 | PyObject *resultobj; |
11681 | wxImage *arg1 = (wxImage *) 0 ; | |
11682 | wxString *arg2 = 0 ; | |
11683 | wxString *arg3 = 0 ; | |
11684 | bool result; | |
ae8162c8 RD |
11685 | bool temp2 = false ; |
11686 | bool temp3 = false ; | |
d55e5bfc RD |
11687 | PyObject * obj0 = 0 ; |
11688 | PyObject * obj1 = 0 ; | |
11689 | PyObject * obj2 = 0 ; | |
11690 | char *kwnames[] = { | |
11691 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
11692 | }; | |
11693 | ||
11694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11695 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11697 | { |
11698 | arg2 = wxString_in_helper(obj1); | |
11699 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11700 | temp2 = true; |
d55e5bfc RD |
11701 | } |
11702 | { | |
11703 | arg3 = wxString_in_helper(obj2); | |
11704 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11705 | temp3 = true; |
d55e5bfc RD |
11706 | } |
11707 | { | |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | { | |
11715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11716 | } | |
11717 | { | |
11718 | if (temp2) | |
11719 | delete arg2; | |
11720 | } | |
11721 | { | |
11722 | if (temp3) | |
11723 | delete arg3; | |
11724 | } | |
11725 | return resultobj; | |
11726 | fail: | |
11727 | { | |
11728 | if (temp2) | |
11729 | delete arg2; | |
11730 | } | |
11731 | { | |
11732 | if (temp3) | |
11733 | delete arg3; | |
11734 | } | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
c32bde28 | 11739 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11740 | PyObject *resultobj; |
11741 | wxInputStream *arg1 = 0 ; | |
11742 | bool result; | |
11743 | wxPyInputStream *temp1 ; | |
11744 | bool created1 ; | |
11745 | PyObject * obj0 = 0 ; | |
11746 | char *kwnames[] = { | |
11747 | (char *) "stream", NULL | |
11748 | }; | |
11749 | ||
11750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
11751 | { | |
11752 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
11753 | arg1 = temp1->m_wxis; | |
ae8162c8 | 11754 | created1 = false; |
d55e5bfc RD |
11755 | } else { |
11756 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 11757 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
11758 | if (arg1 == NULL) { |
11759 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
11760 | SWIG_fail; | |
11761 | } | |
ae8162c8 | 11762 | created1 = true; |
d55e5bfc RD |
11763 | } |
11764 | } | |
11765 | { | |
11766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11767 | result = (bool)wxImage::CanRead(*arg1); | |
11768 | ||
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | { | |
11773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11774 | } | |
11775 | { | |
11776 | if (created1) | |
11777 | delete arg1; | |
11778 | } | |
11779 | return resultobj; | |
11780 | fail: | |
11781 | { | |
11782 | if (created1) | |
11783 | delete arg1; | |
11784 | } | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
c32bde28 | 11789 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11790 | PyObject *resultobj; |
11791 | wxImage *arg1 = (wxImage *) 0 ; | |
11792 | wxInputStream *arg2 = 0 ; | |
11793 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
11794 | int arg4 = (int) -1 ; | |
11795 | bool result; | |
11796 | wxPyInputStream *temp2 ; | |
11797 | bool created2 ; | |
11798 | PyObject * obj0 = 0 ; | |
11799 | PyObject * obj1 = 0 ; | |
11800 | PyObject * obj2 = 0 ; | |
11801 | PyObject * obj3 = 0 ; | |
11802 | char *kwnames[] = { | |
11803 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
11804 | }; | |
11805 | ||
11806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11809 | { |
11810 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
11811 | arg2 = temp2->m_wxis; | |
ae8162c8 | 11812 | created2 = false; |
d55e5bfc RD |
11813 | } else { |
11814 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 11815 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
11816 | if (arg2 == NULL) { |
11817 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
11818 | SWIG_fail; | |
11819 | } | |
ae8162c8 | 11820 | created2 = true; |
d55e5bfc RD |
11821 | } |
11822 | } | |
11823 | if (obj2) { | |
093d3ff1 RD |
11824 | { |
11825 | arg3 = (long)(SWIG_As_long(obj2)); | |
11826 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11827 | } | |
d55e5bfc RD |
11828 | } |
11829 | if (obj3) { | |
093d3ff1 RD |
11830 | { |
11831 | arg4 = (int)(SWIG_As_int(obj3)); | |
11832 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11833 | } | |
d55e5bfc RD |
11834 | } |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | { | |
11843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11844 | } | |
11845 | { | |
11846 | if (created2) | |
11847 | delete arg2; | |
11848 | } | |
11849 | return resultobj; | |
11850 | fail: | |
11851 | { | |
11852 | if (created2) | |
11853 | delete arg2; | |
11854 | } | |
11855 | return NULL; | |
11856 | } | |
11857 | ||
11858 | ||
c32bde28 | 11859 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11860 | PyObject *resultobj; |
11861 | wxImage *arg1 = (wxImage *) 0 ; | |
11862 | wxInputStream *arg2 = 0 ; | |
11863 | wxString *arg3 = 0 ; | |
11864 | int arg4 = (int) -1 ; | |
11865 | bool result; | |
11866 | wxPyInputStream *temp2 ; | |
11867 | bool created2 ; | |
ae8162c8 | 11868 | bool temp3 = false ; |
d55e5bfc RD |
11869 | PyObject * obj0 = 0 ; |
11870 | PyObject * obj1 = 0 ; | |
11871 | PyObject * obj2 = 0 ; | |
11872 | PyObject * obj3 = 0 ; | |
11873 | char *kwnames[] = { | |
11874 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
11875 | }; | |
11876 | ||
11877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11880 | { |
11881 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
11882 | arg2 = temp2->m_wxis; | |
ae8162c8 | 11883 | created2 = false; |
d55e5bfc RD |
11884 | } else { |
11885 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 11886 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
11887 | if (arg2 == NULL) { |
11888 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
11889 | SWIG_fail; | |
11890 | } | |
ae8162c8 | 11891 | created2 = true; |
d55e5bfc RD |
11892 | } |
11893 | } | |
11894 | { | |
11895 | arg3 = wxString_in_helper(obj2); | |
11896 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11897 | temp3 = true; |
d55e5bfc RD |
11898 | } |
11899 | if (obj3) { | |
093d3ff1 RD |
11900 | { |
11901 | arg4 = (int)(SWIG_As_int(obj3)); | |
11902 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11903 | } | |
d55e5bfc RD |
11904 | } |
11905 | { | |
11906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11907 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
11908 | ||
11909 | wxPyEndAllowThreads(__tstate); | |
11910 | if (PyErr_Occurred()) SWIG_fail; | |
11911 | } | |
11912 | { | |
11913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11914 | } | |
11915 | { | |
11916 | if (created2) | |
11917 | delete arg2; | |
11918 | } | |
11919 | { | |
11920 | if (temp3) | |
11921 | delete arg3; | |
11922 | } | |
11923 | return resultobj; | |
11924 | fail: | |
11925 | { | |
11926 | if (created2) | |
11927 | delete arg2; | |
11928 | } | |
11929 | { | |
11930 | if (temp3) | |
11931 | delete arg3; | |
11932 | } | |
11933 | return NULL; | |
11934 | } | |
11935 | ||
11936 | ||
c32bde28 | 11937 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11938 | PyObject *resultobj; |
11939 | wxImage *arg1 = (wxImage *) 0 ; | |
11940 | bool result; | |
11941 | PyObject * obj0 = 0 ; | |
11942 | char *kwnames[] = { | |
11943 | (char *) "self", NULL | |
11944 | }; | |
11945 | ||
11946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11949 | { |
11950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11951 | result = (bool)(arg1)->Ok(); | |
11952 | ||
11953 | wxPyEndAllowThreads(__tstate); | |
11954 | if (PyErr_Occurred()) SWIG_fail; | |
11955 | } | |
11956 | { | |
11957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11958 | } | |
11959 | return resultobj; | |
11960 | fail: | |
11961 | return NULL; | |
11962 | } | |
11963 | ||
11964 | ||
c32bde28 | 11965 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11966 | PyObject *resultobj; |
11967 | wxImage *arg1 = (wxImage *) 0 ; | |
11968 | int result; | |
11969 | PyObject * obj0 = 0 ; | |
11970 | char *kwnames[] = { | |
11971 | (char *) "self", NULL | |
11972 | }; | |
11973 | ||
11974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11977 | { |
11978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11979 | result = (int)(arg1)->GetWidth(); | |
11980 | ||
11981 | wxPyEndAllowThreads(__tstate); | |
11982 | if (PyErr_Occurred()) SWIG_fail; | |
11983 | } | |
093d3ff1 RD |
11984 | { |
11985 | resultobj = SWIG_From_int((int)(result)); | |
11986 | } | |
d55e5bfc RD |
11987 | return resultobj; |
11988 | fail: | |
11989 | return NULL; | |
11990 | } | |
11991 | ||
11992 | ||
c32bde28 | 11993 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11994 | PyObject *resultobj; |
11995 | wxImage *arg1 = (wxImage *) 0 ; | |
11996 | int result; | |
11997 | PyObject * obj0 = 0 ; | |
11998 | char *kwnames[] = { | |
11999 | (char *) "self", NULL | |
12000 | }; | |
12001 | ||
12002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12005 | { |
12006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12007 | result = (int)(arg1)->GetHeight(); | |
12008 | ||
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
093d3ff1 RD |
12012 | { |
12013 | resultobj = SWIG_From_int((int)(result)); | |
12014 | } | |
d55e5bfc RD |
12015 | return resultobj; |
12016 | fail: | |
12017 | return NULL; | |
12018 | } | |
12019 | ||
12020 | ||
c32bde28 | 12021 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12022 | PyObject *resultobj; |
12023 | wxImage *arg1 = (wxImage *) 0 ; | |
12024 | wxSize result; | |
12025 | PyObject * obj0 = 0 ; | |
12026 | char *kwnames[] = { | |
12027 | (char *) "self", NULL | |
12028 | }; | |
12029 | ||
12030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12033 | { |
12034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12035 | result = wxImage_GetSize(arg1); | |
12036 | ||
12037 | wxPyEndAllowThreads(__tstate); | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
12040 | { | |
12041 | wxSize * resultptr; | |
093d3ff1 | 12042 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
12043 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
12044 | } | |
12045 | return resultobj; | |
12046 | fail: | |
12047 | return NULL; | |
12048 | } | |
12049 | ||
12050 | ||
c32bde28 | 12051 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12052 | PyObject *resultobj; |
12053 | wxImage *arg1 = (wxImage *) 0 ; | |
12054 | wxRect *arg2 = 0 ; | |
093d3ff1 | 12055 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12056 | wxRect temp2 ; |
12057 | PyObject * obj0 = 0 ; | |
12058 | PyObject * obj1 = 0 ; | |
12059 | char *kwnames[] = { | |
12060 | (char *) "self",(char *) "rect", NULL | |
12061 | }; | |
12062 | ||
12063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12066 | { |
12067 | arg2 = &temp2; | |
12068 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12069 | } | |
12070 | { | |
12071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12072 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
12073 | ||
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
12077 | { | |
12078 | wxImage * resultptr; | |
093d3ff1 | 12079 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
12080 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
12081 | } | |
12082 | return resultobj; | |
12083 | fail: | |
12084 | return NULL; | |
12085 | } | |
12086 | ||
12087 | ||
c32bde28 | 12088 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12089 | PyObject *resultobj; |
12090 | wxImage *arg1 = (wxImage *) 0 ; | |
093d3ff1 | 12091 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12092 | PyObject * obj0 = 0 ; |
12093 | char *kwnames[] = { | |
12094 | (char *) "self", NULL | |
12095 | }; | |
12096 | ||
12097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12100 | { |
12101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12102 | result = (arg1)->Copy(); | |
12103 | ||
12104 | wxPyEndAllowThreads(__tstate); | |
12105 | if (PyErr_Occurred()) SWIG_fail; | |
12106 | } | |
12107 | { | |
12108 | wxImage * resultptr; | |
093d3ff1 | 12109 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
12110 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
12111 | } | |
12112 | return resultobj; | |
12113 | fail: | |
12114 | return NULL; | |
12115 | } | |
12116 | ||
12117 | ||
c32bde28 | 12118 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12119 | PyObject *resultobj; |
12120 | wxImage *arg1 = (wxImage *) 0 ; | |
12121 | wxImage *arg2 = 0 ; | |
12122 | int arg3 ; | |
12123 | int arg4 ; | |
12124 | PyObject * obj0 = 0 ; | |
12125 | PyObject * obj1 = 0 ; | |
12126 | PyObject * obj2 = 0 ; | |
12127 | PyObject * obj3 = 0 ; | |
12128 | char *kwnames[] = { | |
12129 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
12130 | }; | |
12131 | ||
12132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
12133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12135 | { | |
12136 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
12137 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12138 | if (arg2 == NULL) { | |
12139 | SWIG_null_ref("wxImage"); | |
12140 | } | |
12141 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12142 | } | |
12143 | { | |
12144 | arg3 = (int)(SWIG_As_int(obj2)); | |
12145 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12146 | } | |
12147 | { | |
12148 | arg4 = (int)(SWIG_As_int(obj3)); | |
12149 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc | 12150 | } |
d55e5bfc RD |
12151 | { |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
12154 | ||
12155 | wxPyEndAllowThreads(__tstate); | |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
12157 | } | |
12158 | Py_INCREF(Py_None); resultobj = Py_None; | |
12159 | return resultobj; | |
12160 | fail: | |
12161 | return NULL; | |
12162 | } | |
12163 | ||
12164 | ||
c32bde28 | 12165 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12166 | PyObject *resultobj; |
12167 | wxImage *arg1 = (wxImage *) 0 ; | |
12168 | PyObject *result; | |
12169 | PyObject * obj0 = 0 ; | |
12170 | char *kwnames[] = { | |
12171 | (char *) "self", NULL | |
12172 | }; | |
12173 | ||
12174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12177 | { |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | result = (PyObject *)wxImage_GetData(arg1); | |
12180 | ||
12181 | wxPyEndAllowThreads(__tstate); | |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
12183 | } | |
12184 | resultobj = result; | |
12185 | return resultobj; | |
12186 | fail: | |
12187 | return NULL; | |
12188 | } | |
12189 | ||
12190 | ||
c32bde28 | 12191 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12192 | PyObject *resultobj; |
12193 | wxImage *arg1 = (wxImage *) 0 ; | |
12194 | PyObject *arg2 = (PyObject *) 0 ; | |
12195 | PyObject * obj0 = 0 ; | |
12196 | PyObject * obj1 = 0 ; | |
12197 | char *kwnames[] = { | |
12198 | (char *) "self",(char *) "data", NULL | |
12199 | }; | |
12200 | ||
12201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12202 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12203 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12204 | arg2 = obj1; |
12205 | { | |
12206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12207 | wxImage_SetData(arg1,arg2); | |
12208 | ||
12209 | wxPyEndAllowThreads(__tstate); | |
12210 | if (PyErr_Occurred()) SWIG_fail; | |
12211 | } | |
12212 | Py_INCREF(Py_None); resultobj = Py_None; | |
12213 | return resultobj; | |
12214 | fail: | |
12215 | return NULL; | |
12216 | } | |
12217 | ||
12218 | ||
c32bde28 | 12219 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12220 | PyObject *resultobj; |
12221 | wxImage *arg1 = (wxImage *) 0 ; | |
12222 | PyObject *result; | |
12223 | PyObject * obj0 = 0 ; | |
12224 | char *kwnames[] = { | |
12225 | (char *) "self", NULL | |
12226 | }; | |
12227 | ||
12228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12231 | { |
12232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12233 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
12234 | ||
12235 | wxPyEndAllowThreads(__tstate); | |
12236 | if (PyErr_Occurred()) SWIG_fail; | |
12237 | } | |
12238 | resultobj = result; | |
12239 | return resultobj; | |
12240 | fail: | |
12241 | return NULL; | |
12242 | } | |
12243 | ||
12244 | ||
c32bde28 | 12245 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12246 | PyObject *resultobj; |
12247 | wxImage *arg1 = (wxImage *) 0 ; | |
12248 | PyObject *arg2 = (PyObject *) 0 ; | |
12249 | PyObject * obj0 = 0 ; | |
12250 | PyObject * obj1 = 0 ; | |
12251 | char *kwnames[] = { | |
12252 | (char *) "self",(char *) "data", NULL | |
12253 | }; | |
12254 | ||
12255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12258 | arg2 = obj1; |
12259 | { | |
12260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12261 | wxImage_SetDataBuffer(arg1,arg2); | |
12262 | ||
12263 | wxPyEndAllowThreads(__tstate); | |
12264 | if (PyErr_Occurred()) SWIG_fail; | |
12265 | } | |
12266 | Py_INCREF(Py_None); resultobj = Py_None; | |
12267 | return resultobj; | |
12268 | fail: | |
12269 | return NULL; | |
12270 | } | |
12271 | ||
12272 | ||
c32bde28 | 12273 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12274 | PyObject *resultobj; |
12275 | wxImage *arg1 = (wxImage *) 0 ; | |
12276 | PyObject *result; | |
12277 | PyObject * obj0 = 0 ; | |
12278 | char *kwnames[] = { | |
12279 | (char *) "self", NULL | |
12280 | }; | |
12281 | ||
12282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12285 | { |
12286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12287 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
12288 | ||
12289 | wxPyEndAllowThreads(__tstate); | |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
12291 | } | |
12292 | resultobj = result; | |
12293 | return resultobj; | |
12294 | fail: | |
12295 | return NULL; | |
12296 | } | |
12297 | ||
12298 | ||
c32bde28 | 12299 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12300 | PyObject *resultobj; |
12301 | wxImage *arg1 = (wxImage *) 0 ; | |
12302 | PyObject *arg2 = (PyObject *) 0 ; | |
12303 | PyObject * obj0 = 0 ; | |
12304 | PyObject * obj1 = 0 ; | |
12305 | char *kwnames[] = { | |
12306 | (char *) "self",(char *) "data", NULL | |
12307 | }; | |
12308 | ||
12309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12310 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12311 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12312 | arg2 = obj1; |
12313 | { | |
12314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12315 | wxImage_SetAlphaData(arg1,arg2); | |
12316 | ||
12317 | wxPyEndAllowThreads(__tstate); | |
12318 | if (PyErr_Occurred()) SWIG_fail; | |
12319 | } | |
12320 | Py_INCREF(Py_None); resultobj = Py_None; | |
12321 | return resultobj; | |
12322 | fail: | |
12323 | return NULL; | |
12324 | } | |
12325 | ||
12326 | ||
c32bde28 | 12327 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12328 | PyObject *resultobj; |
12329 | wxImage *arg1 = (wxImage *) 0 ; | |
12330 | PyObject *result; | |
12331 | PyObject * obj0 = 0 ; | |
12332 | char *kwnames[] = { | |
12333 | (char *) "self", NULL | |
12334 | }; | |
12335 | ||
12336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12339 | { |
12340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12341 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
12342 | ||
12343 | wxPyEndAllowThreads(__tstate); | |
12344 | if (PyErr_Occurred()) SWIG_fail; | |
12345 | } | |
12346 | resultobj = result; | |
12347 | return resultobj; | |
12348 | fail: | |
12349 | return NULL; | |
12350 | } | |
12351 | ||
12352 | ||
c32bde28 | 12353 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12354 | PyObject *resultobj; |
12355 | wxImage *arg1 = (wxImage *) 0 ; | |
12356 | PyObject *arg2 = (PyObject *) 0 ; | |
12357 | PyObject * obj0 = 0 ; | |
12358 | PyObject * obj1 = 0 ; | |
12359 | char *kwnames[] = { | |
12360 | (char *) "self",(char *) "data", NULL | |
12361 | }; | |
12362 | ||
12363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12366 | arg2 = obj1; |
12367 | { | |
12368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12369 | wxImage_SetAlphaBuffer(arg1,arg2); | |
12370 | ||
12371 | wxPyEndAllowThreads(__tstate); | |
12372 | if (PyErr_Occurred()) SWIG_fail; | |
12373 | } | |
12374 | Py_INCREF(Py_None); resultobj = Py_None; | |
12375 | return resultobj; | |
12376 | fail: | |
12377 | return NULL; | |
12378 | } | |
12379 | ||
12380 | ||
c32bde28 | 12381 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12382 | PyObject *resultobj; |
12383 | wxImage *arg1 = (wxImage *) 0 ; | |
12384 | unsigned char arg2 ; | |
12385 | unsigned char arg3 ; | |
12386 | unsigned char arg4 ; | |
12387 | PyObject * obj0 = 0 ; | |
12388 | PyObject * obj1 = 0 ; | |
12389 | PyObject * obj2 = 0 ; | |
12390 | PyObject * obj3 = 0 ; | |
12391 | char *kwnames[] = { | |
12392 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
12393 | }; | |
12394 | ||
12395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
12396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12398 | { | |
12399 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
12400 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12401 | } | |
12402 | { | |
12403 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
12404 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12405 | } | |
12406 | { | |
12407 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
12408 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12409 | } | |
d55e5bfc RD |
12410 | { |
12411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12412 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
12413 | ||
12414 | wxPyEndAllowThreads(__tstate); | |
12415 | if (PyErr_Occurred()) SWIG_fail; | |
12416 | } | |
12417 | Py_INCREF(Py_None); resultobj = Py_None; | |
12418 | return resultobj; | |
12419 | fail: | |
12420 | return NULL; | |
12421 | } | |
12422 | ||
12423 | ||
c32bde28 | 12424 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12425 | PyObject *resultobj; |
12426 | wxImage *arg1 = (wxImage *) 0 ; | |
12427 | unsigned char result; | |
12428 | PyObject * obj0 = 0 ; | |
12429 | char *kwnames[] = { | |
12430 | (char *) "self", NULL | |
12431 | }; | |
12432 | ||
12433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12436 | { |
12437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12438 | result = (unsigned char)(arg1)->GetMaskRed(); | |
12439 | ||
12440 | wxPyEndAllowThreads(__tstate); | |
12441 | if (PyErr_Occurred()) SWIG_fail; | |
12442 | } | |
093d3ff1 RD |
12443 | { |
12444 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12445 | } | |
d55e5bfc RD |
12446 | return resultobj; |
12447 | fail: | |
12448 | return NULL; | |
12449 | } | |
12450 | ||
12451 | ||
c32bde28 | 12452 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12453 | PyObject *resultobj; |
12454 | wxImage *arg1 = (wxImage *) 0 ; | |
12455 | unsigned char result; | |
12456 | PyObject * obj0 = 0 ; | |
12457 | char *kwnames[] = { | |
12458 | (char *) "self", NULL | |
12459 | }; | |
12460 | ||
12461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12464 | { |
12465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12466 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
12467 | ||
12468 | wxPyEndAllowThreads(__tstate); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | } | |
093d3ff1 RD |
12471 | { |
12472 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12473 | } | |
d55e5bfc RD |
12474 | return resultobj; |
12475 | fail: | |
12476 | return NULL; | |
12477 | } | |
12478 | ||
12479 | ||
c32bde28 | 12480 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12481 | PyObject *resultobj; |
12482 | wxImage *arg1 = (wxImage *) 0 ; | |
12483 | unsigned char result; | |
12484 | PyObject * obj0 = 0 ; | |
12485 | char *kwnames[] = { | |
12486 | (char *) "self", NULL | |
12487 | }; | |
12488 | ||
12489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12490 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12491 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12492 | { |
12493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12494 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
12495 | ||
12496 | wxPyEndAllowThreads(__tstate); | |
12497 | if (PyErr_Occurred()) SWIG_fail; | |
12498 | } | |
093d3ff1 RD |
12499 | { |
12500 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12501 | } | |
d55e5bfc RD |
12502 | return resultobj; |
12503 | fail: | |
12504 | return NULL; | |
12505 | } | |
12506 | ||
12507 | ||
c32bde28 | 12508 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12509 | PyObject *resultobj; |
12510 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 12511 | bool arg2 = (bool) true ; |
d55e5bfc RD |
12512 | PyObject * obj0 = 0 ; |
12513 | PyObject * obj1 = 0 ; | |
12514 | char *kwnames[] = { | |
12515 | (char *) "self",(char *) "mask", NULL | |
12516 | }; | |
12517 | ||
12518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12521 | if (obj1) { |
093d3ff1 RD |
12522 | { |
12523 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
12524 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12525 | } | |
d55e5bfc RD |
12526 | } |
12527 | { | |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12529 | (arg1)->SetMask(arg2); | |
12530 | ||
12531 | wxPyEndAllowThreads(__tstate); | |
12532 | if (PyErr_Occurred()) SWIG_fail; | |
12533 | } | |
12534 | Py_INCREF(Py_None); resultobj = Py_None; | |
12535 | return resultobj; | |
12536 | fail: | |
12537 | return NULL; | |
12538 | } | |
12539 | ||
12540 | ||
c32bde28 | 12541 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12542 | PyObject *resultobj; |
12543 | wxImage *arg1 = (wxImage *) 0 ; | |
12544 | bool result; | |
12545 | PyObject * obj0 = 0 ; | |
12546 | char *kwnames[] = { | |
12547 | (char *) "self", NULL | |
12548 | }; | |
12549 | ||
12550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12553 | { |
12554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12555 | result = (bool)(arg1)->HasMask(); | |
12556 | ||
12557 | wxPyEndAllowThreads(__tstate); | |
12558 | if (PyErr_Occurred()) SWIG_fail; | |
12559 | } | |
12560 | { | |
12561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12562 | } | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
c32bde28 | 12569 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12570 | PyObject *resultobj; |
12571 | wxImage *arg1 = (wxImage *) 0 ; | |
12572 | double arg2 ; | |
12573 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 12574 | bool arg4 = (bool) true ; |
d55e5bfc | 12575 | wxPoint *arg5 = (wxPoint *) NULL ; |
093d3ff1 | 12576 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12577 | wxPoint temp3 ; |
12578 | PyObject * obj0 = 0 ; | |
12579 | PyObject * obj1 = 0 ; | |
12580 | PyObject * obj2 = 0 ; | |
12581 | PyObject * obj3 = 0 ; | |
12582 | PyObject * obj4 = 0 ; | |
12583 | char *kwnames[] = { | |
12584 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
12585 | }; | |
12586 | ||
12587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
12588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12590 | { | |
12591 | arg2 = (double)(SWIG_As_double(obj1)); | |
12592 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12593 | } | |
d55e5bfc RD |
12594 | { |
12595 | arg3 = &temp3; | |
12596 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12597 | } | |
12598 | if (obj3) { | |
093d3ff1 RD |
12599 | { |
12600 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
12601 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12602 | } | |
d55e5bfc RD |
12603 | } |
12604 | if (obj4) { | |
093d3ff1 RD |
12605 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
12606 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
12607 | } |
12608 | { | |
12609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12610 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
12611 | ||
12612 | wxPyEndAllowThreads(__tstate); | |
12613 | if (PyErr_Occurred()) SWIG_fail; | |
12614 | } | |
12615 | { | |
12616 | wxImage * resultptr; | |
093d3ff1 | 12617 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
12618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
12619 | } | |
12620 | return resultobj; | |
12621 | fail: | |
12622 | return NULL; | |
12623 | } | |
12624 | ||
12625 | ||
c32bde28 | 12626 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12627 | PyObject *resultobj; |
12628 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 12629 | bool arg2 = (bool) true ; |
093d3ff1 | 12630 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12631 | PyObject * obj0 = 0 ; |
12632 | PyObject * obj1 = 0 ; | |
12633 | char *kwnames[] = { | |
12634 | (char *) "self",(char *) "clockwise", NULL | |
12635 | }; | |
12636 | ||
12637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12640 | if (obj1) { |
093d3ff1 RD |
12641 | { |
12642 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
12643 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12644 | } | |
d55e5bfc RD |
12645 | } |
12646 | { | |
12647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12648 | result = (arg1)->Rotate90(arg2); | |
12649 | ||
12650 | wxPyEndAllowThreads(__tstate); | |
12651 | if (PyErr_Occurred()) SWIG_fail; | |
12652 | } | |
12653 | { | |
12654 | wxImage * resultptr; | |
093d3ff1 | 12655 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
12656 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
12657 | } | |
12658 | return resultobj; | |
12659 | fail: | |
12660 | return NULL; | |
12661 | } | |
12662 | ||
12663 | ||
c32bde28 | 12664 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12665 | PyObject *resultobj; |
12666 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 12667 | bool arg2 = (bool) true ; |
093d3ff1 | 12668 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12669 | PyObject * obj0 = 0 ; |
12670 | PyObject * obj1 = 0 ; | |
12671 | char *kwnames[] = { | |
12672 | (char *) "self",(char *) "horizontally", NULL | |
12673 | }; | |
12674 | ||
12675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12678 | if (obj1) { |
093d3ff1 RD |
12679 | { |
12680 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
12681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12682 | } | |
d55e5bfc RD |
12683 | } |
12684 | { | |
12685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12686 | result = (arg1)->Mirror(arg2); | |
12687 | ||
12688 | wxPyEndAllowThreads(__tstate); | |
12689 | if (PyErr_Occurred()) SWIG_fail; | |
12690 | } | |
12691 | { | |
12692 | wxImage * resultptr; | |
093d3ff1 | 12693 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
12694 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
12695 | } | |
12696 | return resultobj; | |
12697 | fail: | |
12698 | return NULL; | |
12699 | } | |
12700 | ||
12701 | ||
c32bde28 | 12702 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12703 | PyObject *resultobj; |
12704 | wxImage *arg1 = (wxImage *) 0 ; | |
12705 | unsigned char arg2 ; | |
12706 | unsigned char arg3 ; | |
12707 | unsigned char arg4 ; | |
12708 | unsigned char arg5 ; | |
12709 | unsigned char arg6 ; | |
12710 | unsigned char arg7 ; | |
12711 | PyObject * obj0 = 0 ; | |
12712 | PyObject * obj1 = 0 ; | |
12713 | PyObject * obj2 = 0 ; | |
12714 | PyObject * obj3 = 0 ; | |
12715 | PyObject * obj4 = 0 ; | |
12716 | PyObject * obj5 = 0 ; | |
12717 | PyObject * obj6 = 0 ; | |
12718 | char *kwnames[] = { | |
12719 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
12720 | }; | |
12721 | ||
12722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
12723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12725 | { | |
12726 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
12727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12728 | } | |
12729 | { | |
12730 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
12731 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12732 | } | |
12733 | { | |
12734 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
12735 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12736 | } | |
12737 | { | |
12738 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4)); | |
12739 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12740 | } | |
12741 | { | |
12742 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj5)); | |
12743 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12744 | } | |
12745 | { | |
12746 | arg7 = (unsigned char)(SWIG_As_unsigned_SS_char(obj6)); | |
12747 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12748 | } | |
d55e5bfc RD |
12749 | { |
12750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12751 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
12752 | ||
12753 | wxPyEndAllowThreads(__tstate); | |
12754 | if (PyErr_Occurred()) SWIG_fail; | |
12755 | } | |
12756 | Py_INCREF(Py_None); resultobj = Py_None; | |
12757 | return resultobj; | |
12758 | fail: | |
12759 | return NULL; | |
12760 | } | |
12761 | ||
12762 | ||
c32bde28 | 12763 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12764 | PyObject *resultobj; |
12765 | wxImage *arg1 = (wxImage *) 0 ; | |
12766 | unsigned char arg2 ; | |
12767 | unsigned char arg3 ; | |
12768 | unsigned char arg4 ; | |
093d3ff1 | 12769 | SwigValueWrapper<wxImage > result; |
d55e5bfc RD |
12770 | PyObject * obj0 = 0 ; |
12771 | PyObject * obj1 = 0 ; | |
12772 | PyObject * obj2 = 0 ; | |
12773 | PyObject * obj3 = 0 ; | |
12774 | char *kwnames[] = { | |
12775 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
12776 | }; | |
12777 | ||
12778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
12779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12781 | { | |
12782 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
12783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12784 | } | |
12785 | { | |
12786 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
12787 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12788 | } | |
12789 | { | |
12790 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
12791 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12792 | } | |
d55e5bfc RD |
12793 | { |
12794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12795 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
12796 | ||
12797 | wxPyEndAllowThreads(__tstate); | |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
12799 | } | |
12800 | { | |
12801 | wxImage * resultptr; | |
093d3ff1 | 12802 | resultptr = new wxImage((wxImage &)(result)); |
d55e5bfc RD |
12803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
12804 | } | |
12805 | return resultobj; | |
12806 | fail: | |
12807 | return NULL; | |
12808 | } | |
12809 | ||
12810 | ||
c32bde28 | 12811 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12812 | PyObject *resultobj; |
12813 | wxImage *arg1 = (wxImage *) 0 ; | |
12814 | wxString *arg2 = 0 ; | |
12815 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
12816 | bool temp2 = false ; |
12817 | bool temp3 = false ; | |
d55e5bfc RD |
12818 | PyObject * obj0 = 0 ; |
12819 | PyObject * obj1 = 0 ; | |
12820 | PyObject * obj2 = 0 ; | |
12821 | char *kwnames[] = { | |
12822 | (char *) "self",(char *) "name",(char *) "value", NULL | |
12823 | }; | |
12824 | ||
12825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
12826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12828 | { |
12829 | arg2 = wxString_in_helper(obj1); | |
12830 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12831 | temp2 = true; |
d55e5bfc RD |
12832 | } |
12833 | { | |
12834 | arg3 = wxString_in_helper(obj2); | |
12835 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12836 | temp3 = true; |
d55e5bfc RD |
12837 | } |
12838 | { | |
12839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12840 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
12841 | ||
12842 | wxPyEndAllowThreads(__tstate); | |
12843 | if (PyErr_Occurred()) SWIG_fail; | |
12844 | } | |
12845 | Py_INCREF(Py_None); resultobj = Py_None; | |
12846 | { | |
12847 | if (temp2) | |
12848 | delete arg2; | |
12849 | } | |
12850 | { | |
12851 | if (temp3) | |
12852 | delete arg3; | |
12853 | } | |
12854 | return resultobj; | |
12855 | fail: | |
12856 | { | |
12857 | if (temp2) | |
12858 | delete arg2; | |
12859 | } | |
12860 | { | |
12861 | if (temp3) | |
12862 | delete arg3; | |
12863 | } | |
12864 | return NULL; | |
12865 | } | |
12866 | ||
12867 | ||
c32bde28 | 12868 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12869 | PyObject *resultobj; |
12870 | wxImage *arg1 = (wxImage *) 0 ; | |
12871 | wxString *arg2 = 0 ; | |
12872 | int arg3 ; | |
ae8162c8 | 12873 | bool temp2 = false ; |
d55e5bfc RD |
12874 | PyObject * obj0 = 0 ; |
12875 | PyObject * obj1 = 0 ; | |
12876 | PyObject * obj2 = 0 ; | |
12877 | char *kwnames[] = { | |
12878 | (char *) "self",(char *) "name",(char *) "value", NULL | |
12879 | }; | |
12880 | ||
12881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
12882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12884 | { |
12885 | arg2 = wxString_in_helper(obj1); | |
12886 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12887 | temp2 = true; |
d55e5bfc | 12888 | } |
093d3ff1 RD |
12889 | { |
12890 | arg3 = (int)(SWIG_As_int(obj2)); | |
12891 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12892 | } | |
d55e5bfc RD |
12893 | { |
12894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12895 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
12896 | ||
12897 | wxPyEndAllowThreads(__tstate); | |
12898 | if (PyErr_Occurred()) SWIG_fail; | |
12899 | } | |
12900 | Py_INCREF(Py_None); resultobj = Py_None; | |
12901 | { | |
12902 | if (temp2) | |
12903 | delete arg2; | |
12904 | } | |
12905 | return resultobj; | |
12906 | fail: | |
12907 | { | |
12908 | if (temp2) | |
12909 | delete arg2; | |
12910 | } | |
12911 | return NULL; | |
12912 | } | |
12913 | ||
12914 | ||
c32bde28 | 12915 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12916 | PyObject *resultobj; |
12917 | wxImage *arg1 = (wxImage *) 0 ; | |
12918 | wxString *arg2 = 0 ; | |
12919 | wxString result; | |
ae8162c8 | 12920 | bool temp2 = false ; |
d55e5bfc RD |
12921 | PyObject * obj0 = 0 ; |
12922 | PyObject * obj1 = 0 ; | |
12923 | char *kwnames[] = { | |
12924 | (char *) "self",(char *) "name", NULL | |
12925 | }; | |
12926 | ||
12927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12930 | { |
12931 | arg2 = wxString_in_helper(obj1); | |
12932 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12933 | temp2 = true; |
d55e5bfc RD |
12934 | } |
12935 | { | |
12936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12937 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
12938 | ||
12939 | wxPyEndAllowThreads(__tstate); | |
12940 | if (PyErr_Occurred()) SWIG_fail; | |
12941 | } | |
12942 | { | |
12943 | #if wxUSE_UNICODE | |
12944 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12945 | #else | |
12946 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12947 | #endif | |
12948 | } | |
12949 | { | |
12950 | if (temp2) | |
12951 | delete arg2; | |
12952 | } | |
12953 | return resultobj; | |
12954 | fail: | |
12955 | { | |
12956 | if (temp2) | |
12957 | delete arg2; | |
12958 | } | |
12959 | return NULL; | |
12960 | } | |
12961 | ||
12962 | ||
c32bde28 | 12963 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12964 | PyObject *resultobj; |
12965 | wxImage *arg1 = (wxImage *) 0 ; | |
12966 | wxString *arg2 = 0 ; | |
12967 | int result; | |
ae8162c8 | 12968 | bool temp2 = false ; |
d55e5bfc RD |
12969 | PyObject * obj0 = 0 ; |
12970 | PyObject * obj1 = 0 ; | |
12971 | char *kwnames[] = { | |
12972 | (char *) "self",(char *) "name", NULL | |
12973 | }; | |
12974 | ||
12975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12978 | { |
12979 | arg2 = wxString_in_helper(obj1); | |
12980 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12981 | temp2 = true; |
d55e5bfc RD |
12982 | } |
12983 | { | |
12984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12985 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
12986 | ||
12987 | wxPyEndAllowThreads(__tstate); | |
12988 | if (PyErr_Occurred()) SWIG_fail; | |
12989 | } | |
093d3ff1 RD |
12990 | { |
12991 | resultobj = SWIG_From_int((int)(result)); | |
12992 | } | |
d55e5bfc RD |
12993 | { |
12994 | if (temp2) | |
12995 | delete arg2; | |
12996 | } | |
12997 | return resultobj; | |
12998 | fail: | |
12999 | { | |
13000 | if (temp2) | |
13001 | delete arg2; | |
13002 | } | |
13003 | return NULL; | |
13004 | } | |
13005 | ||
13006 | ||
c32bde28 | 13007 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13008 | PyObject *resultobj; |
13009 | wxImage *arg1 = (wxImage *) 0 ; | |
13010 | wxString *arg2 = 0 ; | |
13011 | bool result; | |
ae8162c8 | 13012 | bool temp2 = false ; |
d55e5bfc RD |
13013 | PyObject * obj0 = 0 ; |
13014 | PyObject * obj1 = 0 ; | |
13015 | char *kwnames[] = { | |
13016 | (char *) "self",(char *) "name", NULL | |
13017 | }; | |
13018 | ||
13019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13022 | { |
13023 | arg2 = wxString_in_helper(obj1); | |
13024 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13025 | temp2 = true; |
d55e5bfc RD |
13026 | } |
13027 | { | |
13028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13029 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
13030 | ||
13031 | wxPyEndAllowThreads(__tstate); | |
13032 | if (PyErr_Occurred()) SWIG_fail; | |
13033 | } | |
13034 | { | |
13035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13036 | } | |
13037 | { | |
13038 | if (temp2) | |
13039 | delete arg2; | |
13040 | } | |
13041 | return resultobj; | |
13042 | fail: | |
13043 | { | |
13044 | if (temp2) | |
13045 | delete arg2; | |
13046 | } | |
13047 | return NULL; | |
13048 | } | |
13049 | ||
13050 | ||
c32bde28 | 13051 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13052 | PyObject *resultobj; |
13053 | wxImage *arg1 = (wxImage *) 0 ; | |
13054 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
13055 | unsigned long result; | |
13056 | PyObject * obj0 = 0 ; | |
13057 | PyObject * obj1 = 0 ; | |
13058 | char *kwnames[] = { | |
13059 | (char *) "self",(char *) "stopafter", NULL | |
13060 | }; | |
13061 | ||
13062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 13065 | if (obj1) { |
093d3ff1 RD |
13066 | { |
13067 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
13068 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13069 | } | |
d55e5bfc RD |
13070 | } |
13071 | { | |
13072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13073 | result = (unsigned long)(arg1)->CountColours(arg2); | |
13074 | ||
13075 | wxPyEndAllowThreads(__tstate); | |
13076 | if (PyErr_Occurred()) SWIG_fail; | |
13077 | } | |
093d3ff1 RD |
13078 | { |
13079 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
13080 | } | |
d55e5bfc RD |
13081 | return resultobj; |
13082 | fail: | |
13083 | return NULL; | |
13084 | } | |
13085 | ||
13086 | ||
c32bde28 | 13087 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13088 | PyObject *resultobj; |
13089 | wxImage *arg1 = (wxImage *) 0 ; | |
13090 | wxImageHistogram *arg2 = 0 ; | |
13091 | unsigned long result; | |
13092 | PyObject * obj0 = 0 ; | |
13093 | PyObject * obj1 = 0 ; | |
13094 | char *kwnames[] = { | |
13095 | (char *) "self",(char *) "h", NULL | |
13096 | }; | |
13097 | ||
13098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13101 | { | |
13102 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
13103 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13104 | if (arg2 == NULL) { | |
13105 | SWIG_null_ref("wxImageHistogram"); | |
13106 | } | |
13107 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
13108 | } |
13109 | { | |
13110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13111 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
13112 | ||
13113 | wxPyEndAllowThreads(__tstate); | |
13114 | if (PyErr_Occurred()) SWIG_fail; | |
13115 | } | |
093d3ff1 RD |
13116 | { |
13117 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
13118 | } | |
d55e5bfc RD |
13119 | return resultobj; |
13120 | fail: | |
13121 | return NULL; | |
13122 | } | |
13123 | ||
13124 | ||
c32bde28 | 13125 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13126 | PyObject *resultobj; |
13127 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
13128 | PyObject * obj0 = 0 ; | |
13129 | char *kwnames[] = { | |
13130 | (char *) "handler", NULL | |
13131 | }; | |
13132 | ||
13133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
13135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13136 | { |
13137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13138 | wxImage::AddHandler(arg1); | |
13139 | ||
13140 | wxPyEndAllowThreads(__tstate); | |
13141 | if (PyErr_Occurred()) SWIG_fail; | |
13142 | } | |
13143 | Py_INCREF(Py_None); resultobj = Py_None; | |
13144 | return resultobj; | |
13145 | fail: | |
13146 | return NULL; | |
13147 | } | |
13148 | ||
13149 | ||
c32bde28 | 13150 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13151 | PyObject *resultobj; |
13152 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
13153 | PyObject * obj0 = 0 ; | |
13154 | char *kwnames[] = { | |
13155 | (char *) "handler", NULL | |
13156 | }; | |
13157 | ||
13158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
13160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13161 | { |
13162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13163 | wxImage::InsertHandler(arg1); | |
13164 | ||
13165 | wxPyEndAllowThreads(__tstate); | |
13166 | if (PyErr_Occurred()) SWIG_fail; | |
13167 | } | |
13168 | Py_INCREF(Py_None); resultobj = Py_None; | |
13169 | return resultobj; | |
13170 | fail: | |
13171 | return NULL; | |
13172 | } | |
13173 | ||
13174 | ||
c32bde28 | 13175 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13176 | PyObject *resultobj; |
13177 | wxString *arg1 = 0 ; | |
13178 | bool result; | |
ae8162c8 | 13179 | bool temp1 = false ; |
d55e5bfc RD |
13180 | PyObject * obj0 = 0 ; |
13181 | char *kwnames[] = { | |
13182 | (char *) "name", NULL | |
13183 | }; | |
13184 | ||
13185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
13186 | { | |
13187 | arg1 = wxString_in_helper(obj0); | |
13188 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13189 | temp1 = true; |
d55e5bfc RD |
13190 | } |
13191 | { | |
13192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13193 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
13194 | ||
13195 | wxPyEndAllowThreads(__tstate); | |
13196 | if (PyErr_Occurred()) SWIG_fail; | |
13197 | } | |
13198 | { | |
13199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13200 | } | |
13201 | { | |
13202 | if (temp1) | |
13203 | delete arg1; | |
13204 | } | |
13205 | return resultobj; | |
13206 | fail: | |
13207 | { | |
13208 | if (temp1) | |
13209 | delete arg1; | |
13210 | } | |
13211 | return NULL; | |
13212 | } | |
13213 | ||
13214 | ||
c32bde28 | 13215 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13216 | PyObject *resultobj; |
13217 | wxString result; | |
13218 | char *kwnames[] = { | |
13219 | NULL | |
13220 | }; | |
13221 | ||
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = wxImage::GetImageExtWildcard(); | |
13226 | ||
13227 | wxPyEndAllowThreads(__tstate); | |
13228 | if (PyErr_Occurred()) SWIG_fail; | |
13229 | } | |
13230 | { | |
13231 | #if wxUSE_UNICODE | |
13232 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13233 | #else | |
13234 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13235 | #endif | |
13236 | } | |
13237 | return resultobj; | |
13238 | fail: | |
13239 | return NULL; | |
13240 | } | |
13241 | ||
13242 | ||
c32bde28 | 13243 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13244 | PyObject *resultobj; |
13245 | wxImage *arg1 = (wxImage *) 0 ; | |
1fbf26be | 13246 | int arg2 = (int) -1 ; |
d55e5bfc RD |
13247 | wxBitmap result; |
13248 | PyObject * obj0 = 0 ; | |
1fbf26be | 13249 | PyObject * obj1 = 0 ; |
d55e5bfc | 13250 | char *kwnames[] = { |
1fbf26be | 13251 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
13252 | }; |
13253 | ||
1fbf26be | 13254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1fbf26be | 13257 | if (obj1) { |
093d3ff1 RD |
13258 | { |
13259 | arg2 = (int)(SWIG_As_int(obj1)); | |
13260 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13261 | } | |
1fbf26be | 13262 | } |
d55e5bfc | 13263 | { |
0439c23b | 13264 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 13265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fbf26be | 13266 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d55e5bfc RD |
13267 | |
13268 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13269 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13270 | } |
13271 | { | |
13272 | wxBitmap * resultptr; | |
093d3ff1 | 13273 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
13274 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
13275 | } | |
13276 | return resultobj; | |
13277 | fail: | |
13278 | return NULL; | |
13279 | } | |
13280 | ||
13281 | ||
c32bde28 | 13282 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13283 | PyObject *resultobj; |
13284 | wxImage *arg1 = (wxImage *) 0 ; | |
13285 | unsigned char arg2 ; | |
13286 | unsigned char arg3 ; | |
13287 | unsigned char arg4 ; | |
13288 | wxBitmap result; | |
13289 | PyObject * obj0 = 0 ; | |
13290 | PyObject * obj1 = 0 ; | |
13291 | PyObject * obj2 = 0 ; | |
13292 | PyObject * obj3 = 0 ; | |
13293 | char *kwnames[] = { | |
13294 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
13295 | }; | |
13296 | ||
13297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
13298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13300 | { | |
13301 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
13302 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13303 | } | |
13304 | { | |
13305 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
13306 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13307 | } | |
13308 | { | |
13309 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
13310 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13311 | } | |
d55e5bfc | 13312 | { |
0439c23b | 13313 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13315 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
13316 | ||
13317 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13318 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13319 | } |
13320 | { | |
13321 | wxBitmap * resultptr; | |
093d3ff1 | 13322 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
13323 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
13324 | } | |
13325 | return resultobj; | |
13326 | fail: | |
13327 | return NULL; | |
13328 | } | |
13329 | ||
13330 | ||
c32bde28 | 13331 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13332 | PyObject *obj; |
13333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13334 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
13335 | Py_INCREF(obj); | |
13336 | return Py_BuildValue((char *)""); | |
13337 | } | |
c32bde28 | 13338 | static int _wrap_NullImage_set(PyObject *) { |
d55e5bfc RD |
13339 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
13340 | return 1; | |
13341 | } | |
13342 | ||
13343 | ||
093d3ff1 | 13344 | static PyObject *_wrap_NullImage_get(void) { |
d55e5bfc RD |
13345 | PyObject *pyobj; |
13346 | ||
13347 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
13348 | return pyobj; | |
13349 | } | |
13350 | ||
13351 | ||
c32bde28 | 13352 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d55e5bfc RD |
13353 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
13354 | return 1; | |
13355 | } | |
13356 | ||
13357 | ||
093d3ff1 | 13358 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get(void) { |
d55e5bfc RD |
13359 | PyObject *pyobj; |
13360 | ||
13361 | { | |
13362 | #if wxUSE_UNICODE | |
13363 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
13364 | #else | |
13365 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
13366 | #endif | |
13367 | } | |
13368 | return pyobj; | |
13369 | } | |
13370 | ||
13371 | ||
c32bde28 | 13372 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d55e5bfc RD |
13373 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
13374 | return 1; | |
13375 | } | |
13376 | ||
13377 | ||
093d3ff1 | 13378 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get(void) { |
d55e5bfc RD |
13379 | PyObject *pyobj; |
13380 | ||
13381 | { | |
13382 | #if wxUSE_UNICODE | |
13383 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
13384 | #else | |
13385 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
13386 | #endif | |
13387 | } | |
13388 | return pyobj; | |
13389 | } | |
13390 | ||
13391 | ||
c32bde28 | 13392 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d55e5bfc RD |
13393 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
13394 | return 1; | |
13395 | } | |
13396 | ||
13397 | ||
093d3ff1 | 13398 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get(void) { |
d55e5bfc RD |
13399 | PyObject *pyobj; |
13400 | ||
13401 | { | |
13402 | #if wxUSE_UNICODE | |
13403 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
13404 | #else | |
13405 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
13406 | #endif | |
13407 | } | |
13408 | return pyobj; | |
13409 | } | |
13410 | ||
13411 | ||
c32bde28 | 13412 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d55e5bfc RD |
13413 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
13414 | return 1; | |
13415 | } | |
13416 | ||
13417 | ||
093d3ff1 | 13418 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get(void) { |
d55e5bfc RD |
13419 | PyObject *pyobj; |
13420 | ||
13421 | { | |
13422 | #if wxUSE_UNICODE | |
13423 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
13424 | #else | |
13425 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
13426 | #endif | |
13427 | } | |
13428 | return pyobj; | |
13429 | } | |
13430 | ||
13431 | ||
c32bde28 | 13432 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d55e5bfc RD |
13433 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
13434 | return 1; | |
13435 | } | |
13436 | ||
13437 | ||
093d3ff1 | 13438 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get(void) { |
d55e5bfc RD |
13439 | PyObject *pyobj; |
13440 | ||
13441 | { | |
13442 | #if wxUSE_UNICODE | |
13443 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
13444 | #else | |
13445 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
13446 | #endif | |
13447 | } | |
13448 | return pyobj; | |
13449 | } | |
13450 | ||
13451 | ||
c32bde28 | 13452 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13453 | PyObject *resultobj; |
13454 | wxBMPHandler *result; | |
13455 | char *kwnames[] = { | |
13456 | NULL | |
13457 | }; | |
13458 | ||
13459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
13460 | { | |
13461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13462 | result = (wxBMPHandler *)new wxBMPHandler(); | |
13463 | ||
13464 | wxPyEndAllowThreads(__tstate); | |
13465 | if (PyErr_Occurred()) SWIG_fail; | |
13466 | } | |
13467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
13468 | return resultobj; | |
13469 | fail: | |
13470 | return NULL; | |
13471 | } | |
13472 | ||
13473 | ||
c32bde28 | 13474 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13475 | PyObject *obj; |
13476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13477 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
13478 | Py_INCREF(obj); | |
13479 | return Py_BuildValue((char *)""); | |
13480 | } | |
c32bde28 | 13481 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13482 | PyObject *resultobj; |
13483 | wxICOHandler *result; | |
13484 | char *kwnames[] = { | |
13485 | NULL | |
13486 | }; | |
13487 | ||
13488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
13489 | { | |
13490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13491 | result = (wxICOHandler *)new wxICOHandler(); | |
13492 | ||
13493 | wxPyEndAllowThreads(__tstate); | |
13494 | if (PyErr_Occurred()) SWIG_fail; | |
13495 | } | |
13496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
13497 | return resultobj; | |
13498 | fail: | |
13499 | return NULL; | |
13500 | } | |
13501 | ||
13502 | ||
c32bde28 | 13503 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13504 | PyObject *obj; |
13505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13506 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
13507 | Py_INCREF(obj); | |
13508 | return Py_BuildValue((char *)""); | |
13509 | } | |
c32bde28 | 13510 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13511 | PyObject *resultobj; |
13512 | wxCURHandler *result; | |
13513 | char *kwnames[] = { | |
13514 | NULL | |
13515 | }; | |
13516 | ||
13517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
13518 | { | |
13519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13520 | result = (wxCURHandler *)new wxCURHandler(); | |
13521 | ||
13522 | wxPyEndAllowThreads(__tstate); | |
13523 | if (PyErr_Occurred()) SWIG_fail; | |
13524 | } | |
13525 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
13526 | return resultobj; | |
13527 | fail: | |
13528 | return NULL; | |
13529 | } | |
13530 | ||
13531 | ||
c32bde28 | 13532 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13533 | PyObject *obj; |
13534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13535 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
13536 | Py_INCREF(obj); | |
13537 | return Py_BuildValue((char *)""); | |
13538 | } | |
c32bde28 | 13539 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13540 | PyObject *resultobj; |
13541 | wxANIHandler *result; | |
13542 | char *kwnames[] = { | |
13543 | NULL | |
13544 | }; | |
13545 | ||
13546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
13547 | { | |
13548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13549 | result = (wxANIHandler *)new wxANIHandler(); | |
13550 | ||
13551 | wxPyEndAllowThreads(__tstate); | |
13552 | if (PyErr_Occurred()) SWIG_fail; | |
13553 | } | |
13554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
13555 | return resultobj; | |
13556 | fail: | |
13557 | return NULL; | |
13558 | } | |
13559 | ||
13560 | ||
c32bde28 | 13561 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13562 | PyObject *obj; |
13563 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13564 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
13565 | Py_INCREF(obj); | |
13566 | return Py_BuildValue((char *)""); | |
13567 | } | |
c32bde28 | 13568 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13569 | PyObject *resultobj; |
13570 | wxPNGHandler *result; | |
13571 | char *kwnames[] = { | |
13572 | NULL | |
13573 | }; | |
13574 | ||
13575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
13576 | { | |
13577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13578 | result = (wxPNGHandler *)new wxPNGHandler(); | |
13579 | ||
13580 | wxPyEndAllowThreads(__tstate); | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | } | |
13583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
13584 | return resultobj; | |
13585 | fail: | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
c32bde28 | 13590 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13591 | PyObject *obj; |
13592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13593 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
13594 | Py_INCREF(obj); | |
13595 | return Py_BuildValue((char *)""); | |
13596 | } | |
c32bde28 | 13597 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13598 | PyObject *resultobj; |
13599 | wxGIFHandler *result; | |
13600 | char *kwnames[] = { | |
13601 | NULL | |
13602 | }; | |
13603 | ||
13604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
13605 | { | |
13606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13607 | result = (wxGIFHandler *)new wxGIFHandler(); | |
13608 | ||
13609 | wxPyEndAllowThreads(__tstate); | |
13610 | if (PyErr_Occurred()) SWIG_fail; | |
13611 | } | |
13612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
13613 | return resultobj; | |
13614 | fail: | |
13615 | return NULL; | |
13616 | } | |
13617 | ||
13618 | ||
c32bde28 | 13619 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13620 | PyObject *obj; |
13621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13622 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
13623 | Py_INCREF(obj); | |
13624 | return Py_BuildValue((char *)""); | |
13625 | } | |
c32bde28 | 13626 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13627 | PyObject *resultobj; |
13628 | wxPCXHandler *result; | |
13629 | char *kwnames[] = { | |
13630 | NULL | |
13631 | }; | |
13632 | ||
13633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
13634 | { | |
13635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13636 | result = (wxPCXHandler *)new wxPCXHandler(); | |
13637 | ||
13638 | wxPyEndAllowThreads(__tstate); | |
13639 | if (PyErr_Occurred()) SWIG_fail; | |
13640 | } | |
13641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
13642 | return resultobj; | |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
c32bde28 | 13648 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13649 | PyObject *obj; |
13650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13651 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
13652 | Py_INCREF(obj); | |
13653 | return Py_BuildValue((char *)""); | |
13654 | } | |
c32bde28 | 13655 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13656 | PyObject *resultobj; |
13657 | wxJPEGHandler *result; | |
13658 | char *kwnames[] = { | |
13659 | NULL | |
13660 | }; | |
13661 | ||
13662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
13663 | { | |
13664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13665 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
13666 | ||
13667 | wxPyEndAllowThreads(__tstate); | |
13668 | if (PyErr_Occurred()) SWIG_fail; | |
13669 | } | |
13670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
13671 | return resultobj; | |
13672 | fail: | |
13673 | return NULL; | |
13674 | } | |
13675 | ||
13676 | ||
c32bde28 | 13677 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13678 | PyObject *obj; |
13679 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13680 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
13681 | Py_INCREF(obj); | |
13682 | return Py_BuildValue((char *)""); | |
13683 | } | |
c32bde28 | 13684 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13685 | PyObject *resultobj; |
13686 | wxPNMHandler *result; | |
13687 | char *kwnames[] = { | |
13688 | NULL | |
13689 | }; | |
13690 | ||
13691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
13692 | { | |
13693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13694 | result = (wxPNMHandler *)new wxPNMHandler(); | |
13695 | ||
13696 | wxPyEndAllowThreads(__tstate); | |
13697 | if (PyErr_Occurred()) SWIG_fail; | |
13698 | } | |
13699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
13700 | return resultobj; | |
13701 | fail: | |
13702 | return NULL; | |
13703 | } | |
13704 | ||
13705 | ||
c32bde28 | 13706 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13707 | PyObject *obj; |
13708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13709 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
13710 | Py_INCREF(obj); | |
13711 | return Py_BuildValue((char *)""); | |
13712 | } | |
c32bde28 | 13713 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13714 | PyObject *resultobj; |
13715 | wxXPMHandler *result; | |
13716 | char *kwnames[] = { | |
13717 | NULL | |
13718 | }; | |
13719 | ||
13720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
13721 | { | |
13722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13723 | result = (wxXPMHandler *)new wxXPMHandler(); | |
13724 | ||
13725 | wxPyEndAllowThreads(__tstate); | |
13726 | if (PyErr_Occurred()) SWIG_fail; | |
13727 | } | |
13728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
13729 | return resultobj; | |
13730 | fail: | |
13731 | return NULL; | |
13732 | } | |
13733 | ||
13734 | ||
c32bde28 | 13735 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13736 | PyObject *obj; |
13737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13738 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
13739 | Py_INCREF(obj); | |
13740 | return Py_BuildValue((char *)""); | |
13741 | } | |
c32bde28 | 13742 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13743 | PyObject *resultobj; |
13744 | wxTIFFHandler *result; | |
13745 | char *kwnames[] = { | |
13746 | NULL | |
13747 | }; | |
13748 | ||
13749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
13750 | { | |
13751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13752 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
13753 | ||
13754 | wxPyEndAllowThreads(__tstate); | |
13755 | if (PyErr_Occurred()) SWIG_fail; | |
13756 | } | |
13757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
13758 | return resultobj; | |
13759 | fail: | |
13760 | return NULL; | |
13761 | } | |
13762 | ||
13763 | ||
c32bde28 | 13764 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13765 | PyObject *obj; |
13766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13767 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
13768 | Py_INCREF(obj); | |
13769 | return Py_BuildValue((char *)""); | |
13770 | } | |
c32bde28 | 13771 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
13772 | PyObject *resultobj; |
13773 | wxImage *arg1 = 0 ; | |
13774 | wxImage *arg2 = 0 ; | |
13775 | int arg3 = (int) 236 ; | |
13776 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
13777 | bool result; | |
13778 | PyObject * obj0 = 0 ; | |
13779 | PyObject * obj1 = 0 ; | |
13780 | PyObject * obj2 = 0 ; | |
13781 | PyObject * obj3 = 0 ; | |
13782 | char *kwnames[] = { | |
13783 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
13784 | }; | |
13785 | ||
13786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
13787 | { |
13788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
13789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13790 | if (arg1 == NULL) { | |
13791 | SWIG_null_ref("wxImage"); | |
13792 | } | |
13793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13794 | } | |
13795 | { | |
13796 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
13797 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13798 | if (arg2 == NULL) { | |
13799 | SWIG_null_ref("wxImage"); | |
13800 | } | |
13801 | if (SWIG_arg_fail(2)) SWIG_fail; | |
c0de73ae RD |
13802 | } |
13803 | if (obj2) { | |
093d3ff1 RD |
13804 | { |
13805 | arg3 = (int)(SWIG_As_int(obj2)); | |
13806 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13807 | } | |
c0de73ae RD |
13808 | } |
13809 | if (obj3) { | |
093d3ff1 RD |
13810 | { |
13811 | arg4 = (int)(SWIG_As_int(obj3)); | |
13812 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13813 | } | |
c0de73ae RD |
13814 | } |
13815 | { | |
13816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13817 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
13818 | ||
13819 | wxPyEndAllowThreads(__tstate); | |
13820 | if (PyErr_Occurred()) SWIG_fail; | |
13821 | } | |
13822 | { | |
13823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13824 | } | |
13825 | return resultobj; | |
13826 | fail: | |
13827 | return NULL; | |
13828 | } | |
13829 | ||
13830 | ||
c32bde28 | 13831 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
13832 | PyObject *obj; |
13833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13834 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
13835 | Py_INCREF(obj); | |
13836 | return Py_BuildValue((char *)""); | |
13837 | } | |
c32bde28 | 13838 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13839 | PyObject *resultobj; |
13840 | wxEvtHandler *result; | |
13841 | char *kwnames[] = { | |
13842 | NULL | |
13843 | }; | |
13844 | ||
13845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
13846 | { | |
13847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13848 | result = (wxEvtHandler *)new wxEvtHandler(); | |
13849 | ||
13850 | wxPyEndAllowThreads(__tstate); | |
13851 | if (PyErr_Occurred()) SWIG_fail; | |
13852 | } | |
b0f7404b | 13853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
13854 | return resultobj; |
13855 | fail: | |
13856 | return NULL; | |
13857 | } | |
13858 | ||
13859 | ||
c32bde28 | 13860 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13861 | PyObject *resultobj; |
13862 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
13863 | wxEvtHandler *result; | |
13864 | PyObject * obj0 = 0 ; | |
13865 | char *kwnames[] = { | |
13866 | (char *) "self", NULL | |
13867 | }; | |
13868 | ||
13869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
13871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13872 | { |
13873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13874 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | { | |
412d302d | 13880 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
13881 | } |
13882 | return resultobj; | |
13883 | fail: | |
13884 | return NULL; | |
13885 | } | |
13886 | ||
13887 | ||
c32bde28 | 13888 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13889 | PyObject *resultobj; |
13890 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
13891 | wxEvtHandler *result; | |
13892 | PyObject * obj0 = 0 ; | |
13893 | char *kwnames[] = { | |
13894 | (char *) "self", NULL | |
13895 | }; | |
13896 | ||
13897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
13899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13900 | { |
13901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13902 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
13903 | ||
13904 | wxPyEndAllowThreads(__tstate); | |
13905 | if (PyErr_Occurred()) SWIG_fail; | |
13906 | } | |
13907 | { | |
412d302d | 13908 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
13909 | } |
13910 | return resultobj; | |
13911 | fail: | |
13912 | return NULL; | |
13913 | } | |
13914 | ||
13915 | ||
c32bde28 | 13916 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13917 | PyObject *resultobj; |
13918 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
13919 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
13920 | PyObject * obj0 = 0 ; | |
13921 | PyObject * obj1 = 0 ; | |
13922 | char *kwnames[] = { | |
13923 | (char *) "self",(char *) "handler", NULL | |
13924 | }; | |
13925 | ||
13926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
13928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13929 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
13930 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
13931 | { |
13932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13933 | (arg1)->SetNextHandler(arg2); | |
13934 | ||
13935 | wxPyEndAllowThreads(__tstate); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
13938 | Py_INCREF(Py_None); resultobj = Py_None; | |
13939 | return resultobj; | |
13940 | fail: | |
13941 | return NULL; | |
13942 | } | |
13943 | ||
13944 | ||
c32bde28 | 13945 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13946 | PyObject *resultobj; |
13947 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
13948 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
13949 | PyObject * obj0 = 0 ; | |
13950 | PyObject * obj1 = 0 ; | |
13951 | char *kwnames[] = { | |
13952 | (char *) "self",(char *) "handler", NULL | |
13953 | }; | |
13954 | ||
13955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
13957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13958 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
13959 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
13960 | { |
13961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13962 | (arg1)->SetPreviousHandler(arg2); | |
13963 | ||
13964 | wxPyEndAllowThreads(__tstate); | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
13966 | } | |
13967 | Py_INCREF(Py_None); resultobj = Py_None; | |
13968 | return resultobj; | |
13969 | fail: | |
13970 | return NULL; | |
13971 | } | |
13972 | ||
13973 | ||
c32bde28 | 13974 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13975 | PyObject *resultobj; |
13976 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
13977 | bool result; | |
13978 | PyObject * obj0 = 0 ; | |
13979 | char *kwnames[] = { | |
13980 | (char *) "self", NULL | |
13981 | }; | |
13982 | ||
13983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
13985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13986 | { |
13987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13988 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
13989 | ||
13990 | wxPyEndAllowThreads(__tstate); | |
13991 | if (PyErr_Occurred()) SWIG_fail; | |
13992 | } | |
13993 | { | |
13994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13995 | } | |
13996 | return resultobj; | |
13997 | fail: | |
13998 | return NULL; | |
13999 | } | |
14000 | ||
14001 | ||
c32bde28 | 14002 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14003 | PyObject *resultobj; |
14004 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14005 | bool arg2 ; | |
14006 | PyObject * obj0 = 0 ; | |
14007 | PyObject * obj1 = 0 ; | |
14008 | char *kwnames[] = { | |
14009 | (char *) "self",(char *) "enabled", NULL | |
14010 | }; | |
14011 | ||
14012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14015 | { | |
14016 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14018 | } | |
d55e5bfc RD |
14019 | { |
14020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14021 | (arg1)->SetEvtHandlerEnabled(arg2); | |
14022 | ||
14023 | wxPyEndAllowThreads(__tstate); | |
14024 | if (PyErr_Occurred()) SWIG_fail; | |
14025 | } | |
14026 | Py_INCREF(Py_None); resultobj = Py_None; | |
14027 | return resultobj; | |
14028 | fail: | |
14029 | return NULL; | |
14030 | } | |
14031 | ||
14032 | ||
c32bde28 | 14033 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14034 | PyObject *resultobj; |
14035 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14036 | wxEvent *arg2 = 0 ; | |
14037 | bool result; | |
14038 | PyObject * obj0 = 0 ; | |
14039 | PyObject * obj1 = 0 ; | |
14040 | char *kwnames[] = { | |
14041 | (char *) "self",(char *) "event", NULL | |
14042 | }; | |
14043 | ||
14044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14047 | { | |
14048 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
14049 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14050 | if (arg2 == NULL) { | |
14051 | SWIG_null_ref("wxEvent"); | |
14052 | } | |
14053 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
14054 | } |
14055 | { | |
14056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14057 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
14058 | ||
14059 | wxPyEndAllowThreads(__tstate); | |
14060 | if (PyErr_Occurred()) SWIG_fail; | |
14061 | } | |
14062 | { | |
14063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14064 | } | |
14065 | return resultobj; | |
14066 | fail: | |
14067 | return NULL; | |
14068 | } | |
14069 | ||
14070 | ||
c32bde28 | 14071 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14072 | PyObject *resultobj; |
14073 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14074 | wxEvent *arg2 = 0 ; | |
14075 | PyObject * obj0 = 0 ; | |
14076 | PyObject * obj1 = 0 ; | |
14077 | char *kwnames[] = { | |
14078 | (char *) "self",(char *) "event", NULL | |
14079 | }; | |
14080 | ||
14081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14084 | { | |
14085 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
14086 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14087 | if (arg2 == NULL) { | |
14088 | SWIG_null_ref("wxEvent"); | |
14089 | } | |
14090 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
14091 | } |
14092 | { | |
14093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14094 | (arg1)->AddPendingEvent(*arg2); | |
14095 | ||
14096 | wxPyEndAllowThreads(__tstate); | |
14097 | if (PyErr_Occurred()) SWIG_fail; | |
14098 | } | |
14099 | Py_INCREF(Py_None); resultobj = Py_None; | |
14100 | return resultobj; | |
14101 | fail: | |
14102 | return NULL; | |
14103 | } | |
14104 | ||
14105 | ||
c32bde28 | 14106 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14107 | PyObject *resultobj; |
14108 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14109 | PyObject * obj0 = 0 ; | |
14110 | char *kwnames[] = { | |
14111 | (char *) "self", NULL | |
14112 | }; | |
14113 | ||
14114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14117 | { |
14118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14119 | (arg1)->ProcessPendingEvents(); | |
14120 | ||
14121 | wxPyEndAllowThreads(__tstate); | |
14122 | if (PyErr_Occurred()) SWIG_fail; | |
14123 | } | |
14124 | Py_INCREF(Py_None); resultobj = Py_None; | |
14125 | return resultobj; | |
14126 | fail: | |
14127 | return NULL; | |
14128 | } | |
14129 | ||
14130 | ||
c32bde28 | 14131 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14132 | PyObject *resultobj; |
14133 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14134 | int arg2 ; | |
14135 | int arg3 ; | |
14136 | int arg4 ; | |
14137 | PyObject *arg5 = (PyObject *) 0 ; | |
14138 | PyObject * obj0 = 0 ; | |
14139 | PyObject * obj1 = 0 ; | |
14140 | PyObject * obj2 = 0 ; | |
14141 | PyObject * obj3 = 0 ; | |
14142 | PyObject * obj4 = 0 ; | |
14143 | char *kwnames[] = { | |
14144 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
14145 | }; | |
14146 | ||
14147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
14148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14150 | { | |
14151 | arg2 = (int)(SWIG_As_int(obj1)); | |
14152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14153 | } | |
14154 | { | |
14155 | arg3 = (int)(SWIG_As_int(obj2)); | |
14156 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14157 | } | |
14158 | { | |
14159 | arg4 = (int)(SWIG_As_int(obj3)); | |
14160 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14161 | } | |
d55e5bfc RD |
14162 | arg5 = obj4; |
14163 | { | |
14164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14165 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
14166 | ||
14167 | wxPyEndAllowThreads(__tstate); | |
14168 | if (PyErr_Occurred()) SWIG_fail; | |
14169 | } | |
14170 | Py_INCREF(Py_None); resultobj = Py_None; | |
14171 | return resultobj; | |
14172 | fail: | |
14173 | return NULL; | |
14174 | } | |
14175 | ||
14176 | ||
c32bde28 | 14177 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14178 | PyObject *resultobj; |
14179 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14180 | int arg2 ; | |
14181 | int arg3 = (int) -1 ; | |
14182 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
14183 | bool result; | |
14184 | PyObject * obj0 = 0 ; | |
14185 | PyObject * obj1 = 0 ; | |
14186 | PyObject * obj2 = 0 ; | |
14187 | PyObject * obj3 = 0 ; | |
14188 | char *kwnames[] = { | |
14189 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
14190 | }; | |
14191 | ||
14192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
14193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14195 | { | |
14196 | arg2 = (int)(SWIG_As_int(obj1)); | |
14197 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14198 | } | |
d55e5bfc | 14199 | if (obj2) { |
093d3ff1 RD |
14200 | { |
14201 | arg3 = (int)(SWIG_As_int(obj2)); | |
14202 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14203 | } | |
d55e5bfc RD |
14204 | } |
14205 | if (obj3) { | |
093d3ff1 RD |
14206 | { |
14207 | arg4 = (wxEventType)(SWIG_As_int(obj3)); | |
14208 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14209 | } | |
d55e5bfc RD |
14210 | } |
14211 | { | |
14212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14213 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
14214 | ||
14215 | wxPyEndAllowThreads(__tstate); | |
14216 | if (PyErr_Occurred()) SWIG_fail; | |
14217 | } | |
14218 | { | |
14219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14220 | } | |
14221 | return resultobj; | |
14222 | fail: | |
14223 | return NULL; | |
14224 | } | |
14225 | ||
14226 | ||
c32bde28 | 14227 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14228 | PyObject *resultobj; |
14229 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14230 | PyObject *arg2 = (PyObject *) 0 ; | |
093d3ff1 | 14231 | bool arg3 = (bool) true ; |
d55e5bfc RD |
14232 | PyObject * obj0 = 0 ; |
14233 | PyObject * obj1 = 0 ; | |
093d3ff1 | 14234 | PyObject * obj2 = 0 ; |
d55e5bfc | 14235 | char *kwnames[] = { |
093d3ff1 | 14236 | (char *) "self",(char *) "_self",(char *) "incref", NULL |
d55e5bfc RD |
14237 | }; |
14238 | ||
093d3ff1 RD |
14239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:EvtHandler__setOORInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
14240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
14241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14242 | arg2 = obj1; |
093d3ff1 RD |
14243 | if (obj2) { |
14244 | { | |
14245 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14246 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14247 | } | |
14248 | } | |
d55e5bfc RD |
14249 | { |
14250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14251 | wxEvtHandler__setOORInfo(arg1,arg2,arg3); |
d55e5bfc RD |
14252 | |
14253 | wxPyEndAllowThreads(__tstate); | |
14254 | if (PyErr_Occurred()) SWIG_fail; | |
14255 | } | |
14256 | Py_INCREF(Py_None); resultobj = Py_None; | |
14257 | return resultobj; | |
14258 | fail: | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
c32bde28 | 14263 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14264 | PyObject *obj; |
14265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14266 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
14267 | Py_INCREF(obj); | |
14268 | return Py_BuildValue((char *)""); | |
14269 | } | |
c32bde28 | 14270 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14271 | PyObject *resultobj; |
14272 | wxEventType result; | |
14273 | char *kwnames[] = { | |
14274 | NULL | |
14275 | }; | |
14276 | ||
14277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
14278 | { | |
14279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14280 | result = (wxEventType)wxNewEventType(); | |
14281 | ||
14282 | wxPyEndAllowThreads(__tstate); | |
14283 | if (PyErr_Occurred()) SWIG_fail; | |
14284 | } | |
093d3ff1 RD |
14285 | { |
14286 | resultobj = SWIG_From_int((int)(result)); | |
14287 | } | |
d55e5bfc RD |
14288 | return resultobj; |
14289 | fail: | |
14290 | return NULL; | |
14291 | } | |
14292 | ||
14293 | ||
c32bde28 | 14294 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14295 | PyObject *resultobj; |
14296 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14297 | PyObject * obj0 = 0 ; | |
14298 | char *kwnames[] = { | |
14299 | (char *) "self", NULL | |
14300 | }; | |
14301 | ||
14302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14305 | { |
14306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14307 | delete arg1; | |
14308 | ||
14309 | wxPyEndAllowThreads(__tstate); | |
14310 | if (PyErr_Occurred()) SWIG_fail; | |
14311 | } | |
14312 | Py_INCREF(Py_None); resultobj = Py_None; | |
14313 | return resultobj; | |
14314 | fail: | |
14315 | return NULL; | |
14316 | } | |
14317 | ||
14318 | ||
c32bde28 | 14319 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14320 | PyObject *resultobj; |
14321 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14322 | wxEventType arg2 ; | |
14323 | PyObject * obj0 = 0 ; | |
14324 | PyObject * obj1 = 0 ; | |
14325 | char *kwnames[] = { | |
14326 | (char *) "self",(char *) "typ", NULL | |
14327 | }; | |
14328 | ||
14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14332 | { | |
14333 | arg2 = (wxEventType)(SWIG_As_int(obj1)); | |
14334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14335 | } | |
d55e5bfc RD |
14336 | { |
14337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14338 | (arg1)->SetEventType(arg2); | |
14339 | ||
14340 | wxPyEndAllowThreads(__tstate); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | Py_INCREF(Py_None); resultobj = Py_None; | |
14344 | return resultobj; | |
14345 | fail: | |
14346 | return NULL; | |
14347 | } | |
14348 | ||
14349 | ||
c32bde28 | 14350 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14351 | PyObject *resultobj; |
14352 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14353 | wxEventType result; | |
14354 | PyObject * obj0 = 0 ; | |
14355 | char *kwnames[] = { | |
14356 | (char *) "self", NULL | |
14357 | }; | |
14358 | ||
14359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14362 | { |
14363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14364 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
14365 | ||
14366 | wxPyEndAllowThreads(__tstate); | |
14367 | if (PyErr_Occurred()) SWIG_fail; | |
14368 | } | |
093d3ff1 RD |
14369 | { |
14370 | resultobj = SWIG_From_int((int)(result)); | |
14371 | } | |
d55e5bfc RD |
14372 | return resultobj; |
14373 | fail: | |
14374 | return NULL; | |
14375 | } | |
14376 | ||
14377 | ||
c32bde28 | 14378 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14379 | PyObject *resultobj; |
14380 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14381 | wxObject *result; | |
14382 | PyObject * obj0 = 0 ; | |
14383 | char *kwnames[] = { | |
14384 | (char *) "self", NULL | |
14385 | }; | |
14386 | ||
14387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14388 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14389 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14390 | { |
14391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14392 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
14393 | ||
14394 | wxPyEndAllowThreads(__tstate); | |
14395 | if (PyErr_Occurred()) SWIG_fail; | |
14396 | } | |
14397 | { | |
412d302d | 14398 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14399 | } |
14400 | return resultobj; | |
14401 | fail: | |
14402 | return NULL; | |
14403 | } | |
14404 | ||
14405 | ||
c32bde28 | 14406 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14407 | PyObject *resultobj; |
14408 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14409 | wxObject *arg2 = (wxObject *) 0 ; | |
14410 | PyObject * obj0 = 0 ; | |
14411 | PyObject * obj1 = 0 ; | |
14412 | char *kwnames[] = { | |
14413 | (char *) "self",(char *) "obj", NULL | |
14414 | }; | |
14415 | ||
14416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14419 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); | |
14420 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
14421 | { |
14422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14423 | (arg1)->SetEventObject(arg2); | |
14424 | ||
14425 | wxPyEndAllowThreads(__tstate); | |
14426 | if (PyErr_Occurred()) SWIG_fail; | |
14427 | } | |
14428 | Py_INCREF(Py_None); resultobj = Py_None; | |
14429 | return resultobj; | |
14430 | fail: | |
14431 | return NULL; | |
14432 | } | |
14433 | ||
14434 | ||
c32bde28 | 14435 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14436 | PyObject *resultobj; |
14437 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14438 | long result; | |
14439 | PyObject * obj0 = 0 ; | |
14440 | char *kwnames[] = { | |
14441 | (char *) "self", NULL | |
14442 | }; | |
14443 | ||
14444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14447 | { |
14448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14449 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
14450 | ||
14451 | wxPyEndAllowThreads(__tstate); | |
14452 | if (PyErr_Occurred()) SWIG_fail; | |
14453 | } | |
093d3ff1 RD |
14454 | { |
14455 | resultobj = SWIG_From_long((long)(result)); | |
14456 | } | |
d55e5bfc RD |
14457 | return resultobj; |
14458 | fail: | |
14459 | return NULL; | |
14460 | } | |
14461 | ||
14462 | ||
c32bde28 | 14463 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14464 | PyObject *resultobj; |
14465 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14466 | long arg2 = (long) 0 ; | |
14467 | PyObject * obj0 = 0 ; | |
14468 | PyObject * obj1 = 0 ; | |
14469 | char *kwnames[] = { | |
14470 | (char *) "self",(char *) "ts", NULL | |
14471 | }; | |
14472 | ||
14473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14476 | if (obj1) { |
093d3ff1 RD |
14477 | { |
14478 | arg2 = (long)(SWIG_As_long(obj1)); | |
14479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14480 | } | |
d55e5bfc RD |
14481 | } |
14482 | { | |
14483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14484 | (arg1)->SetTimestamp(arg2); | |
14485 | ||
14486 | wxPyEndAllowThreads(__tstate); | |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
14488 | } | |
14489 | Py_INCREF(Py_None); resultobj = Py_None; | |
14490 | return resultobj; | |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
c32bde28 | 14496 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14497 | PyObject *resultobj; |
14498 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14499 | int result; | |
14500 | PyObject * obj0 = 0 ; | |
14501 | char *kwnames[] = { | |
14502 | (char *) "self", NULL | |
14503 | }; | |
14504 | ||
14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14508 | { |
14509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14510 | result = (int)((wxEvent const *)arg1)->GetId(); | |
14511 | ||
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
093d3ff1 RD |
14515 | { |
14516 | resultobj = SWIG_From_int((int)(result)); | |
14517 | } | |
d55e5bfc RD |
14518 | return resultobj; |
14519 | fail: | |
14520 | return NULL; | |
14521 | } | |
14522 | ||
14523 | ||
c32bde28 | 14524 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14525 | PyObject *resultobj; |
14526 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14527 | int arg2 ; | |
14528 | PyObject * obj0 = 0 ; | |
14529 | PyObject * obj1 = 0 ; | |
14530 | char *kwnames[] = { | |
14531 | (char *) "self",(char *) "Id", NULL | |
14532 | }; | |
14533 | ||
14534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14537 | { | |
14538 | arg2 = (int)(SWIG_As_int(obj1)); | |
14539 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14540 | } | |
d55e5bfc RD |
14541 | { |
14542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14543 | (arg1)->SetId(arg2); | |
14544 | ||
14545 | wxPyEndAllowThreads(__tstate); | |
14546 | if (PyErr_Occurred()) SWIG_fail; | |
14547 | } | |
14548 | Py_INCREF(Py_None); resultobj = Py_None; | |
14549 | return resultobj; | |
14550 | fail: | |
14551 | return NULL; | |
14552 | } | |
14553 | ||
14554 | ||
c32bde28 | 14555 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14556 | PyObject *resultobj; |
14557 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14558 | bool result; | |
14559 | PyObject * obj0 = 0 ; | |
14560 | char *kwnames[] = { | |
14561 | (char *) "self", NULL | |
14562 | }; | |
14563 | ||
14564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14567 | { |
14568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14569 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
14570 | ||
14571 | wxPyEndAllowThreads(__tstate); | |
14572 | if (PyErr_Occurred()) SWIG_fail; | |
14573 | } | |
14574 | { | |
14575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14576 | } | |
14577 | return resultobj; | |
14578 | fail: | |
14579 | return NULL; | |
14580 | } | |
14581 | ||
14582 | ||
c32bde28 | 14583 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14584 | PyObject *resultobj; |
14585 | wxEvent *arg1 = (wxEvent *) 0 ; | |
ae8162c8 | 14586 | bool arg2 = (bool) true ; |
d55e5bfc RD |
14587 | PyObject * obj0 = 0 ; |
14588 | PyObject * obj1 = 0 ; | |
14589 | char *kwnames[] = { | |
14590 | (char *) "self",(char *) "skip", NULL | |
14591 | }; | |
14592 | ||
14593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 14596 | if (obj1) { |
093d3ff1 RD |
14597 | { |
14598 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14599 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14600 | } | |
d55e5bfc RD |
14601 | } |
14602 | { | |
14603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14604 | (arg1)->Skip(arg2); | |
14605 | ||
14606 | wxPyEndAllowThreads(__tstate); | |
14607 | if (PyErr_Occurred()) SWIG_fail; | |
14608 | } | |
14609 | Py_INCREF(Py_None); resultobj = Py_None; | |
14610 | return resultobj; | |
14611 | fail: | |
14612 | return NULL; | |
14613 | } | |
14614 | ||
14615 | ||
c32bde28 | 14616 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14617 | PyObject *resultobj; |
14618 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14619 | bool result; | |
14620 | PyObject * obj0 = 0 ; | |
14621 | char *kwnames[] = { | |
14622 | (char *) "self", NULL | |
14623 | }; | |
14624 | ||
14625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14626 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14627 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14628 | { |
14629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14630 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
14631 | ||
14632 | wxPyEndAllowThreads(__tstate); | |
14633 | if (PyErr_Occurred()) SWIG_fail; | |
14634 | } | |
14635 | { | |
14636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14637 | } | |
14638 | return resultobj; | |
14639 | fail: | |
14640 | return NULL; | |
14641 | } | |
14642 | ||
14643 | ||
c32bde28 | 14644 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14645 | PyObject *resultobj; |
14646 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14647 | bool result; | |
14648 | PyObject * obj0 = 0 ; | |
14649 | char *kwnames[] = { | |
14650 | (char *) "self", NULL | |
14651 | }; | |
14652 | ||
14653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14656 | { |
14657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14658 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
14659 | ||
14660 | wxPyEndAllowThreads(__tstate); | |
14661 | if (PyErr_Occurred()) SWIG_fail; | |
14662 | } | |
14663 | { | |
14664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14665 | } | |
14666 | return resultobj; | |
14667 | fail: | |
14668 | return NULL; | |
14669 | } | |
14670 | ||
14671 | ||
c32bde28 | 14672 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14673 | PyObject *resultobj; |
14674 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14675 | int result; | |
14676 | PyObject * obj0 = 0 ; | |
14677 | char *kwnames[] = { | |
14678 | (char *) "self", NULL | |
14679 | }; | |
14680 | ||
14681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14684 | { |
14685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14686 | result = (int)(arg1)->StopPropagation(); | |
14687 | ||
14688 | wxPyEndAllowThreads(__tstate); | |
14689 | if (PyErr_Occurred()) SWIG_fail; | |
14690 | } | |
093d3ff1 RD |
14691 | { |
14692 | resultobj = SWIG_From_int((int)(result)); | |
14693 | } | |
d55e5bfc RD |
14694 | return resultobj; |
14695 | fail: | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
c32bde28 | 14700 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14701 | PyObject *resultobj; |
14702 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14703 | int arg2 ; | |
14704 | PyObject * obj0 = 0 ; | |
14705 | PyObject * obj1 = 0 ; | |
14706 | char *kwnames[] = { | |
14707 | (char *) "self",(char *) "propagationLevel", NULL | |
14708 | }; | |
14709 | ||
14710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14713 | { | |
14714 | arg2 = (int)(SWIG_As_int(obj1)); | |
14715 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14716 | } | |
d55e5bfc RD |
14717 | { |
14718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14719 | (arg1)->ResumePropagation(arg2); | |
14720 | ||
14721 | wxPyEndAllowThreads(__tstate); | |
14722 | if (PyErr_Occurred()) SWIG_fail; | |
14723 | } | |
14724 | Py_INCREF(Py_None); resultobj = Py_None; | |
14725 | return resultobj; | |
14726 | fail: | |
14727 | return NULL; | |
14728 | } | |
14729 | ||
14730 | ||
c32bde28 | 14731 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14732 | PyObject *resultobj; |
14733 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14734 | wxEvent *result; | |
14735 | PyObject * obj0 = 0 ; | |
14736 | char *kwnames[] = { | |
14737 | (char *) "self", NULL | |
14738 | }; | |
14739 | ||
14740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14743 | { |
14744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14745 | result = (wxEvent *)(arg1)->Clone(); | |
14746 | ||
14747 | wxPyEndAllowThreads(__tstate); | |
14748 | if (PyErr_Occurred()) SWIG_fail; | |
14749 | } | |
14750 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
14751 | return resultobj; | |
14752 | fail: | |
14753 | return NULL; | |
14754 | } | |
14755 | ||
14756 | ||
c32bde28 | 14757 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14758 | PyObject *obj; |
14759 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14760 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
14761 | Py_INCREF(obj); | |
14762 | return Py_BuildValue((char *)""); | |
14763 | } | |
c32bde28 | 14764 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14765 | PyObject *resultobj; |
14766 | wxEvent *arg1 = 0 ; | |
14767 | wxPropagationDisabler *result; | |
14768 | PyObject * obj0 = 0 ; | |
14769 | char *kwnames[] = { | |
14770 | (char *) "event", NULL | |
14771 | }; | |
14772 | ||
14773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14774 | { |
14775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
14776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14777 | if (arg1 == NULL) { | |
14778 | SWIG_null_ref("wxEvent"); | |
14779 | } | |
14780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14781 | } |
14782 | { | |
14783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14784 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
14785 | ||
14786 | wxPyEndAllowThreads(__tstate); | |
14787 | if (PyErr_Occurred()) SWIG_fail; | |
14788 | } | |
14789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
14790 | return resultobj; | |
14791 | fail: | |
14792 | return NULL; | |
14793 | } | |
14794 | ||
14795 | ||
c32bde28 | 14796 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14797 | PyObject *resultobj; |
14798 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
14799 | PyObject * obj0 = 0 ; | |
14800 | char *kwnames[] = { | |
14801 | (char *) "self", NULL | |
14802 | }; | |
14803 | ||
14804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14805 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_EXCEPTION | 0); |
14806 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14807 | { |
14808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14809 | delete arg1; | |
14810 | ||
14811 | wxPyEndAllowThreads(__tstate); | |
14812 | if (PyErr_Occurred()) SWIG_fail; | |
14813 | } | |
14814 | Py_INCREF(Py_None); resultobj = Py_None; | |
14815 | return resultobj; | |
14816 | fail: | |
14817 | return NULL; | |
14818 | } | |
14819 | ||
14820 | ||
c32bde28 | 14821 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14822 | PyObject *obj; |
14823 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14824 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
14825 | Py_INCREF(obj); | |
14826 | return Py_BuildValue((char *)""); | |
14827 | } | |
c32bde28 | 14828 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14829 | PyObject *resultobj; |
14830 | wxEvent *arg1 = 0 ; | |
14831 | wxPropagateOnce *result; | |
14832 | PyObject * obj0 = 0 ; | |
14833 | char *kwnames[] = { | |
14834 | (char *) "event", NULL | |
14835 | }; | |
14836 | ||
14837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14838 | { |
14839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
14840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14841 | if (arg1 == NULL) { | |
14842 | SWIG_null_ref("wxEvent"); | |
14843 | } | |
14844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14845 | } |
14846 | { | |
14847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14848 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
14849 | ||
14850 | wxPyEndAllowThreads(__tstate); | |
14851 | if (PyErr_Occurred()) SWIG_fail; | |
14852 | } | |
14853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
14854 | return resultobj; | |
14855 | fail: | |
14856 | return NULL; | |
14857 | } | |
14858 | ||
14859 | ||
c32bde28 | 14860 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14861 | PyObject *resultobj; |
14862 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
14863 | PyObject * obj0 = 0 ; | |
14864 | char *kwnames[] = { | |
14865 | (char *) "self", NULL | |
14866 | }; | |
14867 | ||
14868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_EXCEPTION | 0); |
14870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14871 | { |
14872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14873 | delete arg1; | |
14874 | ||
14875 | wxPyEndAllowThreads(__tstate); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
14877 | } | |
14878 | Py_INCREF(Py_None); resultobj = Py_None; | |
14879 | return resultobj; | |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
c32bde28 | 14885 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14886 | PyObject *obj; |
14887 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14888 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
14889 | Py_INCREF(obj); | |
14890 | return Py_BuildValue((char *)""); | |
14891 | } | |
c32bde28 | 14892 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14893 | PyObject *resultobj; |
14894 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14895 | int arg2 = (int) 0 ; | |
14896 | wxCommandEvent *result; | |
14897 | PyObject * obj0 = 0 ; | |
14898 | PyObject * obj1 = 0 ; | |
14899 | char *kwnames[] = { | |
14900 | (char *) "commandType",(char *) "winid", NULL | |
14901 | }; | |
14902 | ||
14903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
14904 | if (obj0) { | |
093d3ff1 RD |
14905 | { |
14906 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
14907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14908 | } | |
d55e5bfc RD |
14909 | } |
14910 | if (obj1) { | |
093d3ff1 RD |
14911 | { |
14912 | arg2 = (int)(SWIG_As_int(obj1)); | |
14913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14914 | } | |
d55e5bfc RD |
14915 | } |
14916 | { | |
14917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14918 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
14919 | ||
14920 | wxPyEndAllowThreads(__tstate); | |
14921 | if (PyErr_Occurred()) SWIG_fail; | |
14922 | } | |
14923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
14924 | return resultobj; | |
14925 | fail: | |
14926 | return NULL; | |
14927 | } | |
14928 | ||
14929 | ||
c32bde28 | 14930 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14931 | PyObject *resultobj; |
14932 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
14933 | int result; | |
14934 | PyObject * obj0 = 0 ; | |
14935 | char *kwnames[] = { | |
14936 | (char *) "self", NULL | |
14937 | }; | |
14938 | ||
14939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
14941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14942 | { |
14943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14944 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
14945 | ||
14946 | wxPyEndAllowThreads(__tstate); | |
14947 | if (PyErr_Occurred()) SWIG_fail; | |
14948 | } | |
093d3ff1 RD |
14949 | { |
14950 | resultobj = SWIG_From_int((int)(result)); | |
14951 | } | |
d55e5bfc RD |
14952 | return resultobj; |
14953 | fail: | |
14954 | return NULL; | |
14955 | } | |
14956 | ||
14957 | ||
c32bde28 | 14958 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14959 | PyObject *resultobj; |
14960 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
14961 | wxString *arg2 = 0 ; | |
ae8162c8 | 14962 | bool temp2 = false ; |
d55e5bfc RD |
14963 | PyObject * obj0 = 0 ; |
14964 | PyObject * obj1 = 0 ; | |
14965 | char *kwnames[] = { | |
14966 | (char *) "self",(char *) "s", NULL | |
14967 | }; | |
14968 | ||
14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
14971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14972 | { |
14973 | arg2 = wxString_in_helper(obj1); | |
14974 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14975 | temp2 = true; |
d55e5bfc RD |
14976 | } |
14977 | { | |
14978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14979 | (arg1)->SetString((wxString const &)*arg2); | |
14980 | ||
14981 | wxPyEndAllowThreads(__tstate); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
14984 | Py_INCREF(Py_None); resultobj = Py_None; | |
14985 | { | |
14986 | if (temp2) | |
14987 | delete arg2; | |
14988 | } | |
14989 | return resultobj; | |
14990 | fail: | |
14991 | { | |
14992 | if (temp2) | |
14993 | delete arg2; | |
14994 | } | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
c32bde28 | 14999 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15000 | PyObject *resultobj; |
15001 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15002 | wxString result; | |
15003 | PyObject * obj0 = 0 ; | |
15004 | char *kwnames[] = { | |
15005 | (char *) "self", NULL | |
15006 | }; | |
15007 | ||
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15011 | { |
15012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15013 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
15014 | ||
15015 | wxPyEndAllowThreads(__tstate); | |
15016 | if (PyErr_Occurred()) SWIG_fail; | |
15017 | } | |
15018 | { | |
15019 | #if wxUSE_UNICODE | |
15020 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15021 | #else | |
15022 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15023 | #endif | |
15024 | } | |
15025 | return resultobj; | |
15026 | fail: | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
c32bde28 | 15031 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15032 | PyObject *resultobj; |
15033 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15034 | bool result; | |
15035 | PyObject * obj0 = 0 ; | |
15036 | char *kwnames[] = { | |
15037 | (char *) "self", NULL | |
15038 | }; | |
15039 | ||
15040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15043 | { |
15044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15045 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
15046 | ||
15047 | wxPyEndAllowThreads(__tstate); | |
15048 | if (PyErr_Occurred()) SWIG_fail; | |
15049 | } | |
15050 | { | |
15051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15052 | } | |
15053 | return resultobj; | |
15054 | fail: | |
15055 | return NULL; | |
15056 | } | |
15057 | ||
15058 | ||
c32bde28 | 15059 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15060 | PyObject *resultobj; |
15061 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15062 | bool result; | |
15063 | PyObject * obj0 = 0 ; | |
15064 | char *kwnames[] = { | |
15065 | (char *) "self", NULL | |
15066 | }; | |
15067 | ||
15068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15071 | { |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
15074 | ||
15075 | wxPyEndAllowThreads(__tstate); | |
15076 | if (PyErr_Occurred()) SWIG_fail; | |
15077 | } | |
15078 | { | |
15079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15080 | } | |
15081 | return resultobj; | |
15082 | fail: | |
15083 | return NULL; | |
15084 | } | |
15085 | ||
15086 | ||
c32bde28 | 15087 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15088 | PyObject *resultobj; |
15089 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15090 | long arg2 ; | |
15091 | PyObject * obj0 = 0 ; | |
15092 | PyObject * obj1 = 0 ; | |
15093 | char *kwnames[] = { | |
15094 | (char *) "self",(char *) "extraLong", NULL | |
15095 | }; | |
15096 | ||
15097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15100 | { | |
15101 | arg2 = (long)(SWIG_As_long(obj1)); | |
15102 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15103 | } | |
d55e5bfc RD |
15104 | { |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | (arg1)->SetExtraLong(arg2); | |
15107 | ||
15108 | wxPyEndAllowThreads(__tstate); | |
15109 | if (PyErr_Occurred()) SWIG_fail; | |
15110 | } | |
15111 | Py_INCREF(Py_None); resultobj = Py_None; | |
15112 | return resultobj; | |
15113 | fail: | |
15114 | return NULL; | |
15115 | } | |
15116 | ||
15117 | ||
c32bde28 | 15118 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15119 | PyObject *resultobj; |
15120 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15121 | long result; | |
15122 | PyObject * obj0 = 0 ; | |
15123 | char *kwnames[] = { | |
15124 | (char *) "self", NULL | |
15125 | }; | |
15126 | ||
15127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15130 | { |
15131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15132 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
15133 | ||
15134 | wxPyEndAllowThreads(__tstate); | |
15135 | if (PyErr_Occurred()) SWIG_fail; | |
15136 | } | |
093d3ff1 RD |
15137 | { |
15138 | resultobj = SWIG_From_long((long)(result)); | |
15139 | } | |
d55e5bfc RD |
15140 | return resultobj; |
15141 | fail: | |
15142 | return NULL; | |
15143 | } | |
15144 | ||
15145 | ||
c32bde28 | 15146 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15147 | PyObject *resultobj; |
15148 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15149 | int arg2 ; | |
15150 | PyObject * obj0 = 0 ; | |
15151 | PyObject * obj1 = 0 ; | |
15152 | char *kwnames[] = { | |
15153 | (char *) "self",(char *) "i", NULL | |
15154 | }; | |
15155 | ||
15156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15159 | { | |
15160 | arg2 = (int)(SWIG_As_int(obj1)); | |
15161 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15162 | } | |
d55e5bfc RD |
15163 | { |
15164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15165 | (arg1)->SetInt(arg2); | |
15166 | ||
15167 | wxPyEndAllowThreads(__tstate); | |
15168 | if (PyErr_Occurred()) SWIG_fail; | |
15169 | } | |
15170 | Py_INCREF(Py_None); resultobj = Py_None; | |
15171 | return resultobj; | |
15172 | fail: | |
15173 | return NULL; | |
15174 | } | |
15175 | ||
15176 | ||
c32bde28 | 15177 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15178 | PyObject *resultobj; |
15179 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15180 | long result; | |
15181 | PyObject * obj0 = 0 ; | |
15182 | char *kwnames[] = { | |
15183 | (char *) "self", NULL | |
15184 | }; | |
15185 | ||
15186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15189 | { |
15190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15191 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
15192 | ||
15193 | wxPyEndAllowThreads(__tstate); | |
15194 | if (PyErr_Occurred()) SWIG_fail; | |
15195 | } | |
093d3ff1 RD |
15196 | { |
15197 | resultobj = SWIG_From_long((long)(result)); | |
15198 | } | |
d55e5bfc RD |
15199 | return resultobj; |
15200 | fail: | |
15201 | return NULL; | |
15202 | } | |
15203 | ||
15204 | ||
c32bde28 | 15205 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15206 | PyObject *resultobj; |
15207 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15208 | wxEvent *result; | |
15209 | PyObject * obj0 = 0 ; | |
15210 | char *kwnames[] = { | |
15211 | (char *) "self", NULL | |
15212 | }; | |
15213 | ||
15214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15217 | { |
15218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15219 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
15220 | ||
15221 | wxPyEndAllowThreads(__tstate); | |
15222 | if (PyErr_Occurred()) SWIG_fail; | |
15223 | } | |
15224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
15225 | return resultobj; | |
15226 | fail: | |
15227 | return NULL; | |
15228 | } | |
15229 | ||
15230 | ||
c32bde28 | 15231 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15232 | PyObject *obj; |
15233 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15234 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
15235 | Py_INCREF(obj); | |
15236 | return Py_BuildValue((char *)""); | |
15237 | } | |
c32bde28 | 15238 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15239 | PyObject *resultobj; |
15240 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15241 | int arg2 = (int) 0 ; | |
15242 | wxNotifyEvent *result; | |
15243 | PyObject * obj0 = 0 ; | |
15244 | PyObject * obj1 = 0 ; | |
15245 | char *kwnames[] = { | |
15246 | (char *) "commandType",(char *) "winid", NULL | |
15247 | }; | |
15248 | ||
15249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15250 | if (obj0) { | |
093d3ff1 RD |
15251 | { |
15252 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15254 | } | |
d55e5bfc RD |
15255 | } |
15256 | if (obj1) { | |
093d3ff1 RD |
15257 | { |
15258 | arg2 = (int)(SWIG_As_int(obj1)); | |
15259 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15260 | } | |
d55e5bfc RD |
15261 | } |
15262 | { | |
15263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15264 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
15265 | ||
15266 | wxPyEndAllowThreads(__tstate); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | } | |
15269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
15270 | return resultobj; | |
15271 | fail: | |
15272 | return NULL; | |
15273 | } | |
15274 | ||
15275 | ||
c32bde28 | 15276 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15277 | PyObject *resultobj; |
15278 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15279 | PyObject * obj0 = 0 ; | |
15280 | char *kwnames[] = { | |
15281 | (char *) "self", NULL | |
15282 | }; | |
15283 | ||
15284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15287 | { |
15288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15289 | (arg1)->Veto(); | |
15290 | ||
15291 | wxPyEndAllowThreads(__tstate); | |
15292 | if (PyErr_Occurred()) SWIG_fail; | |
15293 | } | |
15294 | Py_INCREF(Py_None); resultobj = Py_None; | |
15295 | return resultobj; | |
15296 | fail: | |
15297 | return NULL; | |
15298 | } | |
15299 | ||
15300 | ||
c32bde28 | 15301 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15302 | PyObject *resultobj; |
15303 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15310 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15311 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15312 | { |
15313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15314 | (arg1)->Allow(); | |
15315 | ||
15316 | wxPyEndAllowThreads(__tstate); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | } | |
15319 | Py_INCREF(Py_None); resultobj = Py_None; | |
15320 | return resultobj; | |
15321 | fail: | |
15322 | return NULL; | |
15323 | } | |
15324 | ||
15325 | ||
c32bde28 | 15326 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15327 | PyObject *resultobj; |
15328 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15329 | bool result; | |
15330 | PyObject * obj0 = 0 ; | |
15331 | char *kwnames[] = { | |
15332 | (char *) "self", NULL | |
15333 | }; | |
15334 | ||
15335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15338 | { |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (bool)(arg1)->IsAllowed(); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | { | |
15346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15347 | } | |
15348 | return resultobj; | |
15349 | fail: | |
15350 | return NULL; | |
15351 | } | |
15352 | ||
15353 | ||
c32bde28 | 15354 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15355 | PyObject *obj; |
15356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15357 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
15358 | Py_INCREF(obj); | |
15359 | return Py_BuildValue((char *)""); | |
15360 | } | |
c32bde28 | 15361 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15362 | PyObject *resultobj; |
15363 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15364 | int arg2 = (int) 0 ; | |
15365 | int arg3 = (int) 0 ; | |
15366 | int arg4 = (int) 0 ; | |
15367 | wxScrollEvent *result; | |
15368 | PyObject * obj0 = 0 ; | |
15369 | PyObject * obj1 = 0 ; | |
15370 | PyObject * obj2 = 0 ; | |
15371 | PyObject * obj3 = 0 ; | |
15372 | char *kwnames[] = { | |
15373 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
15374 | }; | |
15375 | ||
15376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15377 | if (obj0) { | |
093d3ff1 RD |
15378 | { |
15379 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15381 | } | |
d55e5bfc RD |
15382 | } |
15383 | if (obj1) { | |
093d3ff1 RD |
15384 | { |
15385 | arg2 = (int)(SWIG_As_int(obj1)); | |
15386 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15387 | } | |
d55e5bfc RD |
15388 | } |
15389 | if (obj2) { | |
093d3ff1 RD |
15390 | { |
15391 | arg3 = (int)(SWIG_As_int(obj2)); | |
15392 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15393 | } | |
d55e5bfc RD |
15394 | } |
15395 | if (obj3) { | |
093d3ff1 RD |
15396 | { |
15397 | arg4 = (int)(SWIG_As_int(obj3)); | |
15398 | if (SWIG_arg_fail(4)) SWIG_fail; | |
15399 | } | |
d55e5bfc RD |
15400 | } |
15401 | { | |
15402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15403 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
15404 | ||
15405 | wxPyEndAllowThreads(__tstate); | |
15406 | if (PyErr_Occurred()) SWIG_fail; | |
15407 | } | |
15408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
15409 | return resultobj; | |
15410 | fail: | |
15411 | return NULL; | |
15412 | } | |
15413 | ||
15414 | ||
c32bde28 | 15415 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15416 | PyObject *resultobj; |
15417 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
15418 | int result; | |
15419 | PyObject * obj0 = 0 ; | |
15420 | char *kwnames[] = { | |
15421 | (char *) "self", NULL | |
15422 | }; | |
15423 | ||
15424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
15426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15427 | { |
15428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15429 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
15430 | ||
15431 | wxPyEndAllowThreads(__tstate); | |
15432 | if (PyErr_Occurred()) SWIG_fail; | |
15433 | } | |
093d3ff1 RD |
15434 | { |
15435 | resultobj = SWIG_From_int((int)(result)); | |
15436 | } | |
d55e5bfc RD |
15437 | return resultobj; |
15438 | fail: | |
15439 | return NULL; | |
15440 | } | |
15441 | ||
15442 | ||
c32bde28 | 15443 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15444 | PyObject *resultobj; |
15445 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
15446 | int result; | |
15447 | PyObject * obj0 = 0 ; | |
15448 | char *kwnames[] = { | |
15449 | (char *) "self", NULL | |
15450 | }; | |
15451 | ||
15452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
15454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15455 | { |
15456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15457 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
15458 | ||
15459 | wxPyEndAllowThreads(__tstate); | |
15460 | if (PyErr_Occurred()) SWIG_fail; | |
15461 | } | |
093d3ff1 RD |
15462 | { |
15463 | resultobj = SWIG_From_int((int)(result)); | |
15464 | } | |
d55e5bfc RD |
15465 | return resultobj; |
15466 | fail: | |
15467 | return NULL; | |
15468 | } | |
15469 | ||
15470 | ||
c32bde28 | 15471 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15472 | PyObject *resultobj; |
15473 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
15474 | int arg2 ; | |
15475 | PyObject * obj0 = 0 ; | |
15476 | PyObject * obj1 = 0 ; | |
15477 | char *kwnames[] = { | |
15478 | (char *) "self",(char *) "orient", NULL | |
15479 | }; | |
15480 | ||
15481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
15483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15484 | { | |
15485 | arg2 = (int)(SWIG_As_int(obj1)); | |
15486 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15487 | } | |
d55e5bfc RD |
15488 | { |
15489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15490 | (arg1)->SetOrientation(arg2); | |
15491 | ||
15492 | wxPyEndAllowThreads(__tstate); | |
15493 | if (PyErr_Occurred()) SWIG_fail; | |
15494 | } | |
15495 | Py_INCREF(Py_None); resultobj = Py_None; | |
15496 | return resultobj; | |
15497 | fail: | |
15498 | return NULL; | |
15499 | } | |
15500 | ||
15501 | ||
c32bde28 | 15502 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15503 | PyObject *resultobj; |
15504 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
15505 | int arg2 ; | |
15506 | PyObject * obj0 = 0 ; | |
15507 | PyObject * obj1 = 0 ; | |
15508 | char *kwnames[] = { | |
15509 | (char *) "self",(char *) "pos", NULL | |
15510 | }; | |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
15514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15515 | { | |
15516 | arg2 = (int)(SWIG_As_int(obj1)); | |
15517 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15518 | } | |
d55e5bfc RD |
15519 | { |
15520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15521 | (arg1)->SetPosition(arg2); | |
15522 | ||
15523 | wxPyEndAllowThreads(__tstate); | |
15524 | if (PyErr_Occurred()) SWIG_fail; | |
15525 | } | |
15526 | Py_INCREF(Py_None); resultobj = Py_None; | |
15527 | return resultobj; | |
15528 | fail: | |
15529 | return NULL; | |
15530 | } | |
15531 | ||
15532 | ||
c32bde28 | 15533 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15534 | PyObject *obj; |
15535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15536 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
15537 | Py_INCREF(obj); | |
15538 | return Py_BuildValue((char *)""); | |
15539 | } | |
c32bde28 | 15540 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15541 | PyObject *resultobj; |
15542 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15543 | int arg2 = (int) 0 ; | |
15544 | int arg3 = (int) 0 ; | |
15545 | wxScrollWinEvent *result; | |
15546 | PyObject * obj0 = 0 ; | |
15547 | PyObject * obj1 = 0 ; | |
15548 | PyObject * obj2 = 0 ; | |
15549 | char *kwnames[] = { | |
15550 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
15551 | }; | |
15552 | ||
15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15554 | if (obj0) { | |
093d3ff1 RD |
15555 | { |
15556 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15558 | } | |
d55e5bfc RD |
15559 | } |
15560 | if (obj1) { | |
093d3ff1 RD |
15561 | { |
15562 | arg2 = (int)(SWIG_As_int(obj1)); | |
15563 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15564 | } | |
d55e5bfc RD |
15565 | } |
15566 | if (obj2) { | |
093d3ff1 RD |
15567 | { |
15568 | arg3 = (int)(SWIG_As_int(obj2)); | |
15569 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15570 | } | |
d55e5bfc RD |
15571 | } |
15572 | { | |
15573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15574 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
15575 | ||
15576 | wxPyEndAllowThreads(__tstate); | |
15577 | if (PyErr_Occurred()) SWIG_fail; | |
15578 | } | |
15579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
15580 | return resultobj; | |
15581 | fail: | |
15582 | return NULL; | |
15583 | } | |
15584 | ||
15585 | ||
c32bde28 | 15586 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15587 | PyObject *resultobj; |
15588 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
15589 | int result; | |
15590 | PyObject * obj0 = 0 ; | |
15591 | char *kwnames[] = { | |
15592 | (char *) "self", NULL | |
15593 | }; | |
15594 | ||
15595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
15597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15598 | { |
15599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15600 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
15601 | ||
15602 | wxPyEndAllowThreads(__tstate); | |
15603 | if (PyErr_Occurred()) SWIG_fail; | |
15604 | } | |
093d3ff1 RD |
15605 | { |
15606 | resultobj = SWIG_From_int((int)(result)); | |
15607 | } | |
d55e5bfc RD |
15608 | return resultobj; |
15609 | fail: | |
15610 | return NULL; | |
15611 | } | |
15612 | ||
15613 | ||
c32bde28 | 15614 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15615 | PyObject *resultobj; |
15616 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
15617 | int result; | |
15618 | PyObject * obj0 = 0 ; | |
15619 | char *kwnames[] = { | |
15620 | (char *) "self", NULL | |
15621 | }; | |
15622 | ||
15623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
15625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15626 | { |
15627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15628 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
15629 | ||
15630 | wxPyEndAllowThreads(__tstate); | |
15631 | if (PyErr_Occurred()) SWIG_fail; | |
15632 | } | |
093d3ff1 RD |
15633 | { |
15634 | resultobj = SWIG_From_int((int)(result)); | |
15635 | } | |
d55e5bfc RD |
15636 | return resultobj; |
15637 | fail: | |
15638 | return NULL; | |
15639 | } | |
15640 | ||
15641 | ||
c32bde28 | 15642 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15643 | PyObject *resultobj; |
15644 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
15645 | int arg2 ; | |
15646 | PyObject * obj0 = 0 ; | |
15647 | PyObject * obj1 = 0 ; | |
15648 | char *kwnames[] = { | |
15649 | (char *) "self",(char *) "orient", NULL | |
15650 | }; | |
15651 | ||
15652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
15654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15655 | { | |
15656 | arg2 = (int)(SWIG_As_int(obj1)); | |
15657 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15658 | } | |
d55e5bfc RD |
15659 | { |
15660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15661 | (arg1)->SetOrientation(arg2); | |
15662 | ||
15663 | wxPyEndAllowThreads(__tstate); | |
15664 | if (PyErr_Occurred()) SWIG_fail; | |
15665 | } | |
15666 | Py_INCREF(Py_None); resultobj = Py_None; | |
15667 | return resultobj; | |
15668 | fail: | |
15669 | return NULL; | |
15670 | } | |
15671 | ||
15672 | ||
c32bde28 | 15673 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15674 | PyObject *resultobj; |
15675 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
15676 | int arg2 ; | |
15677 | PyObject * obj0 = 0 ; | |
15678 | PyObject * obj1 = 0 ; | |
15679 | char *kwnames[] = { | |
15680 | (char *) "self",(char *) "pos", NULL | |
15681 | }; | |
15682 | ||
15683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15684 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
15685 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15686 | { | |
15687 | arg2 = (int)(SWIG_As_int(obj1)); | |
15688 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15689 | } | |
d55e5bfc RD |
15690 | { |
15691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15692 | (arg1)->SetPosition(arg2); | |
15693 | ||
15694 | wxPyEndAllowThreads(__tstate); | |
15695 | if (PyErr_Occurred()) SWIG_fail; | |
15696 | } | |
15697 | Py_INCREF(Py_None); resultobj = Py_None; | |
15698 | return resultobj; | |
15699 | fail: | |
15700 | return NULL; | |
15701 | } | |
15702 | ||
15703 | ||
c32bde28 | 15704 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15705 | PyObject *obj; |
15706 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15707 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
15708 | Py_INCREF(obj); | |
15709 | return Py_BuildValue((char *)""); | |
15710 | } | |
c32bde28 | 15711 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15712 | PyObject *resultobj; |
15713 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15714 | wxMouseEvent *result; | |
15715 | PyObject * obj0 = 0 ; | |
15716 | char *kwnames[] = { | |
15717 | (char *) "mouseType", NULL | |
15718 | }; | |
15719 | ||
15720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
15721 | if (obj0) { | |
093d3ff1 RD |
15722 | { |
15723 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15725 | } | |
d55e5bfc RD |
15726 | } |
15727 | { | |
15728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15729 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
15730 | ||
15731 | wxPyEndAllowThreads(__tstate); | |
15732 | if (PyErr_Occurred()) SWIG_fail; | |
15733 | } | |
15734 | { | |
412d302d | 15735 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
15736 | } |
15737 | return resultobj; | |
15738 | fail: | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
c32bde28 | 15743 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15744 | PyObject *resultobj; |
15745 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15746 | bool result; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | char *kwnames[] = { | |
15749 | (char *) "self", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
15754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15755 | { |
15756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15757 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
15758 | ||
15759 | wxPyEndAllowThreads(__tstate); | |
15760 | if (PyErr_Occurred()) SWIG_fail; | |
15761 | } | |
15762 | { | |
15763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15764 | } | |
15765 | return resultobj; | |
15766 | fail: | |
15767 | return NULL; | |
15768 | } | |
15769 | ||
15770 | ||
c32bde28 | 15771 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15772 | PyObject *resultobj; |
15773 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15774 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
15775 | bool result; | |
15776 | PyObject * obj0 = 0 ; | |
15777 | PyObject * obj1 = 0 ; | |
15778 | char *kwnames[] = { | |
15779 | (char *) "self",(char *) "but", NULL | |
15780 | }; | |
15781 | ||
15782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
15784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 15785 | if (obj1) { |
093d3ff1 RD |
15786 | { |
15787 | arg2 = (int)(SWIG_As_int(obj1)); | |
15788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15789 | } | |
d55e5bfc RD |
15790 | } |
15791 | { | |
15792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15793 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
15794 | ||
15795 | wxPyEndAllowThreads(__tstate); | |
15796 | if (PyErr_Occurred()) SWIG_fail; | |
15797 | } | |
15798 | { | |
15799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15800 | } | |
15801 | return resultobj; | |
15802 | fail: | |
15803 | return NULL; | |
15804 | } | |
15805 | ||
15806 | ||
c32bde28 | 15807 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15808 | PyObject *resultobj; |
15809 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15810 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
15811 | bool result; | |
15812 | PyObject * obj0 = 0 ; | |
15813 | PyObject * obj1 = 0 ; | |
15814 | char *kwnames[] = { | |
15815 | (char *) "self",(char *) "but", NULL | |
15816 | }; | |
15817 | ||
15818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
15820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 15821 | if (obj1) { |
093d3ff1 RD |
15822 | { |
15823 | arg2 = (int)(SWIG_As_int(obj1)); | |
15824 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15825 | } | |
d55e5bfc RD |
15826 | } |
15827 | { | |
15828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15829 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
15830 | ||
15831 | wxPyEndAllowThreads(__tstate); | |
15832 | if (PyErr_Occurred()) SWIG_fail; | |
15833 | } | |
15834 | { | |
15835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15836 | } | |
15837 | return resultobj; | |
15838 | fail: | |
15839 | return NULL; | |
15840 | } | |
15841 | ||
15842 | ||
c32bde28 | 15843 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15844 | PyObject *resultobj; |
15845 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15846 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
15847 | bool result; | |
15848 | PyObject * obj0 = 0 ; | |
15849 | PyObject * obj1 = 0 ; | |
15850 | char *kwnames[] = { | |
15851 | (char *) "self",(char *) "but", NULL | |
15852 | }; | |
15853 | ||
15854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
15856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 15857 | if (obj1) { |
093d3ff1 RD |
15858 | { |
15859 | arg2 = (int)(SWIG_As_int(obj1)); | |
15860 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15861 | } | |
d55e5bfc RD |
15862 | } |
15863 | { | |
15864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15865 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
15866 | ||
15867 | wxPyEndAllowThreads(__tstate); | |
15868 | if (PyErr_Occurred()) SWIG_fail; | |
15869 | } | |
15870 | { | |
15871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15872 | } | |
15873 | return resultobj; | |
15874 | fail: | |
15875 | return NULL; | |
15876 | } | |
15877 | ||
15878 | ||
c32bde28 | 15879 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15880 | PyObject *resultobj; |
15881 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15882 | int arg2 ; | |
15883 | bool result; | |
15884 | PyObject * obj0 = 0 ; | |
15885 | PyObject * obj1 = 0 ; | |
15886 | char *kwnames[] = { | |
15887 | (char *) "self",(char *) "but", NULL | |
15888 | }; | |
15889 | ||
15890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
15892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15893 | { | |
15894 | arg2 = (int)(SWIG_As_int(obj1)); | |
15895 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15896 | } | |
d55e5bfc RD |
15897 | { |
15898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15899 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
15900 | ||
15901 | wxPyEndAllowThreads(__tstate); | |
15902 | if (PyErr_Occurred()) SWIG_fail; | |
15903 | } | |
15904 | { | |
15905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15906 | } | |
15907 | return resultobj; | |
15908 | fail: | |
15909 | return NULL; | |
15910 | } | |
15911 | ||
15912 | ||
c32bde28 | 15913 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15914 | PyObject *resultobj; |
15915 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15916 | int arg2 ; | |
15917 | bool result; | |
15918 | PyObject * obj0 = 0 ; | |
15919 | PyObject * obj1 = 0 ; | |
15920 | char *kwnames[] = { | |
15921 | (char *) "self",(char *) "but", NULL | |
15922 | }; | |
15923 | ||
15924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
15926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15927 | { | |
15928 | arg2 = (int)(SWIG_As_int(obj1)); | |
15929 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15930 | } | |
d55e5bfc RD |
15931 | { |
15932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15933 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
15934 | ||
15935 | wxPyEndAllowThreads(__tstate); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15938 | { | |
15939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15940 | } | |
15941 | return resultobj; | |
15942 | fail: | |
15943 | return NULL; | |
15944 | } | |
15945 | ||
15946 | ||
c32bde28 | 15947 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15948 | PyObject *resultobj; |
15949 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15950 | int result; | |
15951 | PyObject * obj0 = 0 ; | |
15952 | char *kwnames[] = { | |
15953 | (char *) "self", NULL | |
15954 | }; | |
15955 | ||
15956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
15958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15959 | { |
15960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15961 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
15962 | ||
15963 | wxPyEndAllowThreads(__tstate); | |
15964 | if (PyErr_Occurred()) SWIG_fail; | |
15965 | } | |
093d3ff1 RD |
15966 | { |
15967 | resultobj = SWIG_From_int((int)(result)); | |
15968 | } | |
d55e5bfc RD |
15969 | return resultobj; |
15970 | fail: | |
15971 | return NULL; | |
15972 | } | |
15973 | ||
15974 | ||
c32bde28 | 15975 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15976 | PyObject *resultobj; |
15977 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15978 | bool result; | |
15979 | PyObject * obj0 = 0 ; | |
15980 | char *kwnames[] = { | |
15981 | (char *) "self", NULL | |
15982 | }; | |
15983 | ||
15984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
15986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15987 | { |
15988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15989 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
15990 | ||
15991 | wxPyEndAllowThreads(__tstate); | |
15992 | if (PyErr_Occurred()) SWIG_fail; | |
15993 | } | |
15994 | { | |
15995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15996 | } | |
15997 | return resultobj; | |
15998 | fail: | |
15999 | return NULL; | |
16000 | } | |
16001 | ||
16002 | ||
c32bde28 | 16003 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16004 | PyObject *resultobj; |
16005 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16006 | bool result; | |
16007 | PyObject * obj0 = 0 ; | |
16008 | char *kwnames[] = { | |
16009 | (char *) "self", NULL | |
16010 | }; | |
16011 | ||
16012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16015 | { |
16016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16017 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
16018 | ||
16019 | wxPyEndAllowThreads(__tstate); | |
16020 | if (PyErr_Occurred()) SWIG_fail; | |
16021 | } | |
16022 | { | |
16023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16024 | } | |
16025 | return resultobj; | |
16026 | fail: | |
16027 | return NULL; | |
16028 | } | |
16029 | ||
16030 | ||
c32bde28 | 16031 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16032 | PyObject *resultobj; |
16033 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16034 | bool result; | |
16035 | PyObject * obj0 = 0 ; | |
16036 | char *kwnames[] = { | |
16037 | (char *) "self", NULL | |
16038 | }; | |
16039 | ||
16040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16043 | { |
16044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16045 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
16046 | ||
16047 | wxPyEndAllowThreads(__tstate); | |
16048 | if (PyErr_Occurred()) SWIG_fail; | |
16049 | } | |
16050 | { | |
16051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16052 | } | |
16053 | return resultobj; | |
16054 | fail: | |
16055 | return NULL; | |
16056 | } | |
16057 | ||
16058 | ||
c32bde28 | 16059 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16060 | PyObject *resultobj; |
16061 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16062 | bool result; | |
16063 | PyObject * obj0 = 0 ; | |
16064 | char *kwnames[] = { | |
16065 | (char *) "self", NULL | |
16066 | }; | |
16067 | ||
16068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16071 | { |
16072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16073 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
16074 | ||
16075 | wxPyEndAllowThreads(__tstate); | |
16076 | if (PyErr_Occurred()) SWIG_fail; | |
16077 | } | |
16078 | { | |
16079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16080 | } | |
16081 | return resultobj; | |
16082 | fail: | |
16083 | return NULL; | |
16084 | } | |
16085 | ||
16086 | ||
c32bde28 | 16087 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
16088 | PyObject *resultobj; |
16089 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16090 | bool result; | |
16091 | PyObject * obj0 = 0 ; | |
16092 | char *kwnames[] = { | |
16093 | (char *) "self", NULL | |
16094 | }; | |
16095 | ||
16096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
412d302d RD |
16099 | { |
16100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16101 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
16102 | ||
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
16106 | { | |
16107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16108 | } | |
16109 | return resultobj; | |
16110 | fail: | |
16111 | return NULL; | |
16112 | } | |
16113 | ||
16114 | ||
c32bde28 | 16115 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16116 | PyObject *resultobj; |
16117 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16118 | bool result; | |
16119 | PyObject * obj0 = 0 ; | |
16120 | char *kwnames[] = { | |
16121 | (char *) "self", NULL | |
16122 | }; | |
16123 | ||
16124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16127 | { |
16128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16129 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
16130 | ||
16131 | wxPyEndAllowThreads(__tstate); | |
16132 | if (PyErr_Occurred()) SWIG_fail; | |
16133 | } | |
16134 | { | |
16135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16136 | } | |
16137 | return resultobj; | |
16138 | fail: | |
16139 | return NULL; | |
16140 | } | |
16141 | ||
16142 | ||
c32bde28 | 16143 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16144 | PyObject *resultobj; |
16145 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16146 | bool result; | |
16147 | PyObject * obj0 = 0 ; | |
16148 | char *kwnames[] = { | |
16149 | (char *) "self", NULL | |
16150 | }; | |
16151 | ||
16152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16155 | { |
16156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16157 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
16158 | ||
16159 | wxPyEndAllowThreads(__tstate); | |
16160 | if (PyErr_Occurred()) SWIG_fail; | |
16161 | } | |
16162 | { | |
16163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16164 | } | |
16165 | return resultobj; | |
16166 | fail: | |
16167 | return NULL; | |
16168 | } | |
16169 | ||
16170 | ||
c32bde28 | 16171 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16172 | PyObject *resultobj; |
16173 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16174 | bool result; | |
16175 | PyObject * obj0 = 0 ; | |
16176 | char *kwnames[] = { | |
16177 | (char *) "self", NULL | |
16178 | }; | |
16179 | ||
16180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16181 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16183 | { |
16184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16185 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
16186 | ||
16187 | wxPyEndAllowThreads(__tstate); | |
16188 | if (PyErr_Occurred()) SWIG_fail; | |
16189 | } | |
16190 | { | |
16191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16192 | } | |
16193 | return resultobj; | |
16194 | fail: | |
16195 | return NULL; | |
16196 | } | |
16197 | ||
16198 | ||
c32bde28 | 16199 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16200 | PyObject *resultobj; |
16201 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16202 | bool result; | |
16203 | PyObject * obj0 = 0 ; | |
16204 | char *kwnames[] = { | |
16205 | (char *) "self", NULL | |
16206 | }; | |
16207 | ||
16208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16211 | { |
16212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16213 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
16214 | ||
16215 | wxPyEndAllowThreads(__tstate); | |
16216 | if (PyErr_Occurred()) SWIG_fail; | |
16217 | } | |
16218 | { | |
16219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16220 | } | |
16221 | return resultobj; | |
16222 | fail: | |
16223 | return NULL; | |
16224 | } | |
16225 | ||
16226 | ||
c32bde28 | 16227 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16228 | PyObject *resultobj; |
16229 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16230 | bool result; | |
16231 | PyObject * obj0 = 0 ; | |
16232 | char *kwnames[] = { | |
16233 | (char *) "self", NULL | |
16234 | }; | |
16235 | ||
16236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16239 | { |
16240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16241 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
16242 | ||
16243 | wxPyEndAllowThreads(__tstate); | |
16244 | if (PyErr_Occurred()) SWIG_fail; | |
16245 | } | |
16246 | { | |
16247 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16248 | } | |
16249 | return resultobj; | |
16250 | fail: | |
16251 | return NULL; | |
16252 | } | |
16253 | ||
16254 | ||
c32bde28 | 16255 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16256 | PyObject *resultobj; |
16257 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16258 | bool result; | |
16259 | PyObject * obj0 = 0 ; | |
16260 | char *kwnames[] = { | |
16261 | (char *) "self", NULL | |
16262 | }; | |
16263 | ||
16264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16265 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16267 | { |
16268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16269 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
16270 | ||
16271 | wxPyEndAllowThreads(__tstate); | |
16272 | if (PyErr_Occurred()) SWIG_fail; | |
16273 | } | |
16274 | { | |
16275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16276 | } | |
16277 | return resultobj; | |
16278 | fail: | |
16279 | return NULL; | |
16280 | } | |
16281 | ||
16282 | ||
c32bde28 | 16283 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16284 | PyObject *resultobj; |
16285 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16286 | bool result; | |
16287 | PyObject * obj0 = 0 ; | |
16288 | char *kwnames[] = { | |
16289 | (char *) "self", NULL | |
16290 | }; | |
16291 | ||
16292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16295 | { |
16296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16297 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
16298 | ||
16299 | wxPyEndAllowThreads(__tstate); | |
16300 | if (PyErr_Occurred()) SWIG_fail; | |
16301 | } | |
16302 | { | |
16303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16304 | } | |
16305 | return resultobj; | |
16306 | fail: | |
16307 | return NULL; | |
16308 | } | |
16309 | ||
16310 | ||
c32bde28 | 16311 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16312 | PyObject *resultobj; |
16313 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16314 | bool result; | |
16315 | PyObject * obj0 = 0 ; | |
16316 | char *kwnames[] = { | |
16317 | (char *) "self", NULL | |
16318 | }; | |
16319 | ||
16320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16323 | { |
16324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16325 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
16326 | ||
16327 | wxPyEndAllowThreads(__tstate); | |
16328 | if (PyErr_Occurred()) SWIG_fail; | |
16329 | } | |
16330 | { | |
16331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16332 | } | |
16333 | return resultobj; | |
16334 | fail: | |
16335 | return NULL; | |
16336 | } | |
16337 | ||
16338 | ||
c32bde28 | 16339 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16340 | PyObject *resultobj; |
16341 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16342 | bool result; | |
16343 | PyObject * obj0 = 0 ; | |
16344 | char *kwnames[] = { | |
16345 | (char *) "self", NULL | |
16346 | }; | |
16347 | ||
16348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16351 | { |
16352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16353 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
16354 | ||
16355 | wxPyEndAllowThreads(__tstate); | |
16356 | if (PyErr_Occurred()) SWIG_fail; | |
16357 | } | |
16358 | { | |
16359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16360 | } | |
16361 | return resultobj; | |
16362 | fail: | |
16363 | return NULL; | |
16364 | } | |
16365 | ||
16366 | ||
c32bde28 | 16367 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16368 | PyObject *resultobj; |
16369 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16370 | bool result; | |
16371 | PyObject * obj0 = 0 ; | |
16372 | char *kwnames[] = { | |
16373 | (char *) "self", NULL | |
16374 | }; | |
16375 | ||
16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16379 | { |
16380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16381 | result = (bool)(arg1)->LeftIsDown(); | |
16382 | ||
16383 | wxPyEndAllowThreads(__tstate); | |
16384 | if (PyErr_Occurred()) SWIG_fail; | |
16385 | } | |
16386 | { | |
16387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16388 | } | |
16389 | return resultobj; | |
16390 | fail: | |
16391 | return NULL; | |
16392 | } | |
16393 | ||
16394 | ||
c32bde28 | 16395 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16396 | PyObject *resultobj; |
16397 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16398 | bool result; | |
16399 | PyObject * obj0 = 0 ; | |
16400 | char *kwnames[] = { | |
16401 | (char *) "self", NULL | |
16402 | }; | |
16403 | ||
16404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16405 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16406 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16407 | { |
16408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16409 | result = (bool)(arg1)->MiddleIsDown(); | |
16410 | ||
16411 | wxPyEndAllowThreads(__tstate); | |
16412 | if (PyErr_Occurred()) SWIG_fail; | |
16413 | } | |
16414 | { | |
16415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16416 | } | |
16417 | return resultobj; | |
16418 | fail: | |
16419 | return NULL; | |
16420 | } | |
16421 | ||
16422 | ||
c32bde28 | 16423 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16424 | PyObject *resultobj; |
16425 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16426 | bool result; | |
16427 | PyObject * obj0 = 0 ; | |
16428 | char *kwnames[] = { | |
16429 | (char *) "self", NULL | |
16430 | }; | |
16431 | ||
16432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16433 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16434 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16435 | { |
16436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16437 | result = (bool)(arg1)->RightIsDown(); | |
16438 | ||
16439 | wxPyEndAllowThreads(__tstate); | |
16440 | if (PyErr_Occurred()) SWIG_fail; | |
16441 | } | |
16442 | { | |
16443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16444 | } | |
16445 | return resultobj; | |
16446 | fail: | |
16447 | return NULL; | |
16448 | } | |
16449 | ||
16450 | ||
c32bde28 | 16451 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16452 | PyObject *resultobj; |
16453 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16454 | bool result; | |
16455 | PyObject * obj0 = 0 ; | |
16456 | char *kwnames[] = { | |
16457 | (char *) "self", NULL | |
16458 | }; | |
16459 | ||
16460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16463 | { |
16464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16465 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
16466 | ||
16467 | wxPyEndAllowThreads(__tstate); | |
16468 | if (PyErr_Occurred()) SWIG_fail; | |
16469 | } | |
16470 | { | |
16471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16472 | } | |
16473 | return resultobj; | |
16474 | fail: | |
16475 | return NULL; | |
16476 | } | |
16477 | ||
16478 | ||
c32bde28 | 16479 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16480 | PyObject *resultobj; |
16481 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16482 | bool result; | |
16483 | PyObject * obj0 = 0 ; | |
16484 | char *kwnames[] = { | |
16485 | (char *) "self", NULL | |
16486 | }; | |
16487 | ||
16488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16491 | { |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | { | |
16499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16500 | } | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | return NULL; | |
16504 | } | |
16505 | ||
16506 | ||
c32bde28 | 16507 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16508 | PyObject *resultobj; |
16509 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16510 | bool result; | |
16511 | PyObject * obj0 = 0 ; | |
16512 | char *kwnames[] = { | |
16513 | (char *) "self", NULL | |
16514 | }; | |
16515 | ||
16516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16519 | { |
16520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16521 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
16522 | ||
16523 | wxPyEndAllowThreads(__tstate); | |
16524 | if (PyErr_Occurred()) SWIG_fail; | |
16525 | } | |
16526 | { | |
16527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16528 | } | |
16529 | return resultobj; | |
16530 | fail: | |
16531 | return NULL; | |
16532 | } | |
16533 | ||
16534 | ||
c32bde28 | 16535 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16536 | PyObject *resultobj; |
16537 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16538 | bool result; | |
16539 | PyObject * obj0 = 0 ; | |
16540 | char *kwnames[] = { | |
16541 | (char *) "self", NULL | |
16542 | }; | |
16543 | ||
16544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16547 | { |
16548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16549 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
16550 | ||
16551 | wxPyEndAllowThreads(__tstate); | |
16552 | if (PyErr_Occurred()) SWIG_fail; | |
16553 | } | |
16554 | { | |
16555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16556 | } | |
16557 | return resultobj; | |
16558 | fail: | |
16559 | return NULL; | |
16560 | } | |
16561 | ||
16562 | ||
c32bde28 | 16563 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16564 | PyObject *resultobj; |
16565 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16566 | wxPoint result; | |
16567 | PyObject * obj0 = 0 ; | |
16568 | char *kwnames[] = { | |
16569 | (char *) "self", NULL | |
16570 | }; | |
16571 | ||
16572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16575 | { |
16576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16577 | result = (arg1)->GetPosition(); | |
16578 | ||
16579 | wxPyEndAllowThreads(__tstate); | |
16580 | if (PyErr_Occurred()) SWIG_fail; | |
16581 | } | |
16582 | { | |
16583 | wxPoint * resultptr; | |
093d3ff1 | 16584 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
16585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
16586 | } | |
16587 | return resultobj; | |
16588 | fail: | |
16589 | return NULL; | |
16590 | } | |
16591 | ||
16592 | ||
c32bde28 | 16593 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16594 | PyObject *resultobj; |
16595 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16596 | long *arg2 = (long *) 0 ; | |
16597 | long *arg3 = (long *) 0 ; | |
16598 | long temp2 ; | |
c32bde28 | 16599 | int res2 = 0 ; |
d55e5bfc | 16600 | long temp3 ; |
c32bde28 | 16601 | int res3 = 0 ; |
d55e5bfc RD |
16602 | PyObject * obj0 = 0 ; |
16603 | char *kwnames[] = { | |
16604 | (char *) "self", NULL | |
16605 | }; | |
16606 | ||
c32bde28 RD |
16607 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16608 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 16609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16610 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16612 | { |
16613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16614 | (arg1)->GetPosition(arg2,arg3); | |
16615 | ||
16616 | wxPyEndAllowThreads(__tstate); | |
16617 | if (PyErr_Occurred()) SWIG_fail; | |
16618 | } | |
16619 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16620 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16621 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
16622 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16623 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
16624 | return resultobj; |
16625 | fail: | |
16626 | return NULL; | |
16627 | } | |
16628 | ||
16629 | ||
c32bde28 | 16630 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16631 | PyObject *resultobj; |
16632 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16633 | wxDC *arg2 = 0 ; | |
16634 | wxPoint result; | |
16635 | PyObject * obj0 = 0 ; | |
16636 | PyObject * obj1 = 0 ; | |
16637 | char *kwnames[] = { | |
16638 | (char *) "self",(char *) "dc", NULL | |
16639 | }; | |
16640 | ||
16641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16644 | { | |
16645 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
16646 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16647 | if (arg2 == NULL) { | |
16648 | SWIG_null_ref("wxDC"); | |
16649 | } | |
16650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16651 | } |
16652 | { | |
16653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16654 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
16655 | ||
16656 | wxPyEndAllowThreads(__tstate); | |
16657 | if (PyErr_Occurred()) SWIG_fail; | |
16658 | } | |
16659 | { | |
16660 | wxPoint * resultptr; | |
093d3ff1 | 16661 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
16662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
16663 | } | |
16664 | return resultobj; | |
16665 | fail: | |
16666 | return NULL; | |
16667 | } | |
16668 | ||
16669 | ||
c32bde28 | 16670 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16671 | PyObject *resultobj; |
16672 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16673 | int result; | |
16674 | PyObject * obj0 = 0 ; | |
16675 | char *kwnames[] = { | |
16676 | (char *) "self", NULL | |
16677 | }; | |
16678 | ||
16679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16682 | { |
16683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16684 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
16685 | ||
16686 | wxPyEndAllowThreads(__tstate); | |
16687 | if (PyErr_Occurred()) SWIG_fail; | |
16688 | } | |
093d3ff1 RD |
16689 | { |
16690 | resultobj = SWIG_From_int((int)(result)); | |
16691 | } | |
d55e5bfc RD |
16692 | return resultobj; |
16693 | fail: | |
16694 | return NULL; | |
16695 | } | |
16696 | ||
16697 | ||
c32bde28 | 16698 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16699 | PyObject *resultobj; |
16700 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16701 | int result; | |
16702 | PyObject * obj0 = 0 ; | |
16703 | char *kwnames[] = { | |
16704 | (char *) "self", NULL | |
16705 | }; | |
16706 | ||
16707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16710 | { |
16711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16712 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
16713 | ||
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
093d3ff1 RD |
16717 | { |
16718 | resultobj = SWIG_From_int((int)(result)); | |
16719 | } | |
d55e5bfc RD |
16720 | return resultobj; |
16721 | fail: | |
16722 | return NULL; | |
16723 | } | |
16724 | ||
16725 | ||
c32bde28 | 16726 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16727 | PyObject *resultobj; |
16728 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16729 | int result; | |
16730 | PyObject * obj0 = 0 ; | |
16731 | char *kwnames[] = { | |
16732 | (char *) "self", NULL | |
16733 | }; | |
16734 | ||
16735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16738 | { |
16739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16740 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
16741 | ||
16742 | wxPyEndAllowThreads(__tstate); | |
16743 | if (PyErr_Occurred()) SWIG_fail; | |
16744 | } | |
093d3ff1 RD |
16745 | { |
16746 | resultobj = SWIG_From_int((int)(result)); | |
16747 | } | |
d55e5bfc RD |
16748 | return resultobj; |
16749 | fail: | |
16750 | return NULL; | |
16751 | } | |
16752 | ||
16753 | ||
c32bde28 | 16754 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16755 | PyObject *resultobj; |
16756 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16757 | int result; | |
16758 | PyObject * obj0 = 0 ; | |
16759 | char *kwnames[] = { | |
16760 | (char *) "self", NULL | |
16761 | }; | |
16762 | ||
16763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16766 | { |
16767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16768 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
16769 | ||
16770 | wxPyEndAllowThreads(__tstate); | |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
16772 | } | |
093d3ff1 RD |
16773 | { |
16774 | resultobj = SWIG_From_int((int)(result)); | |
16775 | } | |
d55e5bfc RD |
16776 | return resultobj; |
16777 | fail: | |
16778 | return NULL; | |
16779 | } | |
16780 | ||
16781 | ||
c32bde28 | 16782 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16783 | PyObject *resultobj; |
16784 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16785 | int result; | |
16786 | PyObject * obj0 = 0 ; | |
16787 | char *kwnames[] = { | |
16788 | (char *) "self", NULL | |
16789 | }; | |
16790 | ||
16791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16794 | { |
16795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16796 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
16797 | ||
16798 | wxPyEndAllowThreads(__tstate); | |
16799 | if (PyErr_Occurred()) SWIG_fail; | |
16800 | } | |
093d3ff1 RD |
16801 | { |
16802 | resultobj = SWIG_From_int((int)(result)); | |
16803 | } | |
d55e5bfc RD |
16804 | return resultobj; |
16805 | fail: | |
16806 | return NULL; | |
16807 | } | |
16808 | ||
16809 | ||
c32bde28 | 16810 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16811 | PyObject *resultobj; |
16812 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16813 | bool result; | |
16814 | PyObject * obj0 = 0 ; | |
16815 | char *kwnames[] = { | |
16816 | (char *) "self", NULL | |
16817 | }; | |
16818 | ||
16819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16822 | { |
16823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16824 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
16825 | ||
16826 | wxPyEndAllowThreads(__tstate); | |
16827 | if (PyErr_Occurred()) SWIG_fail; | |
16828 | } | |
16829 | { | |
16830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16831 | } | |
16832 | return resultobj; | |
16833 | fail: | |
16834 | return NULL; | |
16835 | } | |
16836 | ||
16837 | ||
c32bde28 | 16838 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16839 | PyObject *resultobj; |
16840 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16841 | int arg2 ; | |
16842 | PyObject * obj0 = 0 ; | |
16843 | PyObject * obj1 = 0 ; | |
16844 | char *kwnames[] = { | |
16845 | (char *) "self",(char *) "m_x", NULL | |
16846 | }; | |
16847 | ||
16848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16851 | { | |
16852 | arg2 = (int)(SWIG_As_int(obj1)); | |
16853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16854 | } | |
d55e5bfc RD |
16855 | if (arg1) (arg1)->m_x = arg2; |
16856 | ||
16857 | Py_INCREF(Py_None); resultobj = Py_None; | |
16858 | return resultobj; | |
16859 | fail: | |
16860 | return NULL; | |
16861 | } | |
16862 | ||
16863 | ||
c32bde28 | 16864 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16865 | PyObject *resultobj; |
16866 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16867 | int result; | |
16868 | PyObject * obj0 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "self", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16874 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16876 | result = (int) ((arg1)->m_x); |
16877 | ||
093d3ff1 RD |
16878 | { |
16879 | resultobj = SWIG_From_int((int)(result)); | |
16880 | } | |
d55e5bfc RD |
16881 | return resultobj; |
16882 | fail: | |
16883 | return NULL; | |
16884 | } | |
16885 | ||
16886 | ||
c32bde28 | 16887 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16888 | PyObject *resultobj; |
16889 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16890 | int arg2 ; | |
16891 | PyObject * obj0 = 0 ; | |
16892 | PyObject * obj1 = 0 ; | |
16893 | char *kwnames[] = { | |
16894 | (char *) "self",(char *) "m_y", NULL | |
16895 | }; | |
16896 | ||
16897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16900 | { | |
16901 | arg2 = (int)(SWIG_As_int(obj1)); | |
16902 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16903 | } | |
d55e5bfc RD |
16904 | if (arg1) (arg1)->m_y = arg2; |
16905 | ||
16906 | Py_INCREF(Py_None); resultobj = Py_None; | |
16907 | return resultobj; | |
16908 | fail: | |
16909 | return NULL; | |
16910 | } | |
16911 | ||
16912 | ||
c32bde28 | 16913 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16914 | PyObject *resultobj; |
16915 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16916 | int result; | |
16917 | PyObject * obj0 = 0 ; | |
16918 | char *kwnames[] = { | |
16919 | (char *) "self", NULL | |
16920 | }; | |
16921 | ||
16922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16925 | result = (int) ((arg1)->m_y); |
16926 | ||
093d3ff1 RD |
16927 | { |
16928 | resultobj = SWIG_From_int((int)(result)); | |
16929 | } | |
d55e5bfc RD |
16930 | return resultobj; |
16931 | fail: | |
16932 | return NULL; | |
16933 | } | |
16934 | ||
16935 | ||
c32bde28 | 16936 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16937 | PyObject *resultobj; |
16938 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16939 | bool arg2 ; | |
16940 | PyObject * obj0 = 0 ; | |
16941 | PyObject * obj1 = 0 ; | |
16942 | char *kwnames[] = { | |
16943 | (char *) "self",(char *) "m_leftDown", NULL | |
16944 | }; | |
16945 | ||
16946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16949 | { | |
16950 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16951 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16952 | } | |
d55e5bfc RD |
16953 | if (arg1) (arg1)->m_leftDown = arg2; |
16954 | ||
16955 | Py_INCREF(Py_None); resultobj = Py_None; | |
16956 | return resultobj; | |
16957 | fail: | |
16958 | return NULL; | |
16959 | } | |
16960 | ||
16961 | ||
c32bde28 | 16962 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16963 | PyObject *resultobj; |
16964 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16965 | bool result; | |
16966 | PyObject * obj0 = 0 ; | |
16967 | char *kwnames[] = { | |
16968 | (char *) "self", NULL | |
16969 | }; | |
16970 | ||
16971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16974 | result = (bool) ((arg1)->m_leftDown); |
16975 | ||
16976 | { | |
16977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16978 | } | |
16979 | return resultobj; | |
16980 | fail: | |
16981 | return NULL; | |
16982 | } | |
16983 | ||
16984 | ||
c32bde28 | 16985 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16986 | PyObject *resultobj; |
16987 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16988 | bool arg2 ; | |
16989 | PyObject * obj0 = 0 ; | |
16990 | PyObject * obj1 = 0 ; | |
16991 | char *kwnames[] = { | |
16992 | (char *) "self",(char *) "m_middleDown", NULL | |
16993 | }; | |
16994 | ||
16995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16998 | { | |
16999 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17001 | } | |
d55e5bfc RD |
17002 | if (arg1) (arg1)->m_middleDown = arg2; |
17003 | ||
17004 | Py_INCREF(Py_None); resultobj = Py_None; | |
17005 | return resultobj; | |
17006 | fail: | |
17007 | return NULL; | |
17008 | } | |
17009 | ||
17010 | ||
c32bde28 | 17011 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17012 | PyObject *resultobj; |
17013 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17014 | bool result; | |
17015 | PyObject * obj0 = 0 ; | |
17016 | char *kwnames[] = { | |
17017 | (char *) "self", NULL | |
17018 | }; | |
17019 | ||
17020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17023 | result = (bool) ((arg1)->m_middleDown); |
17024 | ||
17025 | { | |
17026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17027 | } | |
17028 | return resultobj; | |
17029 | fail: | |
17030 | return NULL; | |
17031 | } | |
17032 | ||
17033 | ||
c32bde28 | 17034 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17035 | PyObject *resultobj; |
17036 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17037 | bool arg2 ; | |
17038 | PyObject * obj0 = 0 ; | |
17039 | PyObject * obj1 = 0 ; | |
17040 | char *kwnames[] = { | |
17041 | (char *) "self",(char *) "m_rightDown", NULL | |
17042 | }; | |
17043 | ||
17044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17047 | { | |
17048 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17049 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17050 | } | |
d55e5bfc RD |
17051 | if (arg1) (arg1)->m_rightDown = arg2; |
17052 | ||
17053 | Py_INCREF(Py_None); resultobj = Py_None; | |
17054 | return resultobj; | |
17055 | fail: | |
17056 | return NULL; | |
17057 | } | |
17058 | ||
17059 | ||
c32bde28 | 17060 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17061 | PyObject *resultobj; |
17062 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17063 | bool result; | |
17064 | PyObject * obj0 = 0 ; | |
17065 | char *kwnames[] = { | |
17066 | (char *) "self", NULL | |
17067 | }; | |
17068 | ||
17069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17072 | result = (bool) ((arg1)->m_rightDown); |
17073 | ||
17074 | { | |
17075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17076 | } | |
17077 | return resultobj; | |
17078 | fail: | |
17079 | return NULL; | |
17080 | } | |
17081 | ||
17082 | ||
c32bde28 | 17083 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17084 | PyObject *resultobj; |
17085 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17086 | bool arg2 ; | |
17087 | PyObject * obj0 = 0 ; | |
17088 | PyObject * obj1 = 0 ; | |
17089 | char *kwnames[] = { | |
17090 | (char *) "self",(char *) "m_controlDown", NULL | |
17091 | }; | |
17092 | ||
17093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17096 | { | |
17097 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17098 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17099 | } | |
d55e5bfc RD |
17100 | if (arg1) (arg1)->m_controlDown = arg2; |
17101 | ||
17102 | Py_INCREF(Py_None); resultobj = Py_None; | |
17103 | return resultobj; | |
17104 | fail: | |
17105 | return NULL; | |
17106 | } | |
17107 | ||
17108 | ||
c32bde28 | 17109 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17110 | PyObject *resultobj; |
17111 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17112 | bool result; | |
17113 | PyObject * obj0 = 0 ; | |
17114 | char *kwnames[] = { | |
17115 | (char *) "self", NULL | |
17116 | }; | |
17117 | ||
17118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17121 | result = (bool) ((arg1)->m_controlDown); |
17122 | ||
17123 | { | |
17124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17125 | } | |
17126 | return resultobj; | |
17127 | fail: | |
17128 | return NULL; | |
17129 | } | |
17130 | ||
17131 | ||
c32bde28 | 17132 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17133 | PyObject *resultobj; |
17134 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17135 | bool arg2 ; | |
17136 | PyObject * obj0 = 0 ; | |
17137 | PyObject * obj1 = 0 ; | |
17138 | char *kwnames[] = { | |
17139 | (char *) "self",(char *) "m_shiftDown", NULL | |
17140 | }; | |
17141 | ||
17142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17145 | { | |
17146 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17148 | } | |
d55e5bfc RD |
17149 | if (arg1) (arg1)->m_shiftDown = arg2; |
17150 | ||
17151 | Py_INCREF(Py_None); resultobj = Py_None; | |
17152 | return resultobj; | |
17153 | fail: | |
17154 | return NULL; | |
17155 | } | |
17156 | ||
17157 | ||
c32bde28 | 17158 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17159 | PyObject *resultobj; |
17160 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17161 | bool result; | |
17162 | PyObject * obj0 = 0 ; | |
17163 | char *kwnames[] = { | |
17164 | (char *) "self", NULL | |
17165 | }; | |
17166 | ||
17167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17170 | result = (bool) ((arg1)->m_shiftDown); |
17171 | ||
17172 | { | |
17173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17174 | } | |
17175 | return resultobj; | |
17176 | fail: | |
17177 | return NULL; | |
17178 | } | |
17179 | ||
17180 | ||
c32bde28 | 17181 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17182 | PyObject *resultobj; |
17183 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17184 | bool arg2 ; | |
17185 | PyObject * obj0 = 0 ; | |
17186 | PyObject * obj1 = 0 ; | |
17187 | char *kwnames[] = { | |
17188 | (char *) "self",(char *) "m_altDown", NULL | |
17189 | }; | |
17190 | ||
17191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17192 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17193 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17194 | { | |
17195 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17196 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17197 | } | |
d55e5bfc RD |
17198 | if (arg1) (arg1)->m_altDown = arg2; |
17199 | ||
17200 | Py_INCREF(Py_None); resultobj = Py_None; | |
17201 | return resultobj; | |
17202 | fail: | |
17203 | return NULL; | |
17204 | } | |
17205 | ||
17206 | ||
c32bde28 | 17207 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17208 | PyObject *resultobj; |
17209 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17210 | bool result; | |
17211 | PyObject * obj0 = 0 ; | |
17212 | char *kwnames[] = { | |
17213 | (char *) "self", NULL | |
17214 | }; | |
17215 | ||
17216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17219 | result = (bool) ((arg1)->m_altDown); |
17220 | ||
17221 | { | |
17222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17223 | } | |
17224 | return resultobj; | |
17225 | fail: | |
17226 | return NULL; | |
17227 | } | |
17228 | ||
17229 | ||
c32bde28 | 17230 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17231 | PyObject *resultobj; |
17232 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17233 | bool arg2 ; | |
17234 | PyObject * obj0 = 0 ; | |
17235 | PyObject * obj1 = 0 ; | |
17236 | char *kwnames[] = { | |
17237 | (char *) "self",(char *) "m_metaDown", NULL | |
17238 | }; | |
17239 | ||
17240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17241 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17242 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17243 | { | |
17244 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17245 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17246 | } | |
d55e5bfc RD |
17247 | if (arg1) (arg1)->m_metaDown = arg2; |
17248 | ||
17249 | Py_INCREF(Py_None); resultobj = Py_None; | |
17250 | return resultobj; | |
17251 | fail: | |
17252 | return NULL; | |
17253 | } | |
17254 | ||
17255 | ||
c32bde28 | 17256 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17257 | PyObject *resultobj; |
17258 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17259 | bool result; | |
17260 | PyObject * obj0 = 0 ; | |
17261 | char *kwnames[] = { | |
17262 | (char *) "self", NULL | |
17263 | }; | |
17264 | ||
17265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17268 | result = (bool) ((arg1)->m_metaDown); |
17269 | ||
17270 | { | |
17271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17272 | } | |
17273 | return resultobj; | |
17274 | fail: | |
17275 | return NULL; | |
17276 | } | |
17277 | ||
17278 | ||
c32bde28 | 17279 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17280 | PyObject *resultobj; |
17281 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17282 | int arg2 ; | |
17283 | PyObject * obj0 = 0 ; | |
17284 | PyObject * obj1 = 0 ; | |
17285 | char *kwnames[] = { | |
17286 | (char *) "self",(char *) "m_wheelRotation", NULL | |
17287 | }; | |
17288 | ||
17289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17292 | { | |
17293 | arg2 = (int)(SWIG_As_int(obj1)); | |
17294 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17295 | } | |
d55e5bfc RD |
17296 | if (arg1) (arg1)->m_wheelRotation = arg2; |
17297 | ||
17298 | Py_INCREF(Py_None); resultobj = Py_None; | |
17299 | return resultobj; | |
17300 | fail: | |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
c32bde28 | 17305 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17306 | PyObject *resultobj; |
17307 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17308 | int result; | |
17309 | PyObject * obj0 = 0 ; | |
17310 | char *kwnames[] = { | |
17311 | (char *) "self", NULL | |
17312 | }; | |
17313 | ||
17314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17317 | result = (int) ((arg1)->m_wheelRotation); |
17318 | ||
093d3ff1 RD |
17319 | { |
17320 | resultobj = SWIG_From_int((int)(result)); | |
17321 | } | |
d55e5bfc RD |
17322 | return resultobj; |
17323 | fail: | |
17324 | return NULL; | |
17325 | } | |
17326 | ||
17327 | ||
c32bde28 | 17328 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17329 | PyObject *resultobj; |
17330 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17331 | int arg2 ; | |
17332 | PyObject * obj0 = 0 ; | |
17333 | PyObject * obj1 = 0 ; | |
17334 | char *kwnames[] = { | |
17335 | (char *) "self",(char *) "m_wheelDelta", NULL | |
17336 | }; | |
17337 | ||
17338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17341 | { | |
17342 | arg2 = (int)(SWIG_As_int(obj1)); | |
17343 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17344 | } | |
d55e5bfc RD |
17345 | if (arg1) (arg1)->m_wheelDelta = arg2; |
17346 | ||
17347 | Py_INCREF(Py_None); resultobj = Py_None; | |
17348 | return resultobj; | |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
c32bde28 | 17354 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17355 | PyObject *resultobj; |
17356 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17357 | int result; | |
17358 | PyObject * obj0 = 0 ; | |
17359 | char *kwnames[] = { | |
17360 | (char *) "self", NULL | |
17361 | }; | |
17362 | ||
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17366 | result = (int) ((arg1)->m_wheelDelta); |
17367 | ||
093d3ff1 RD |
17368 | { |
17369 | resultobj = SWIG_From_int((int)(result)); | |
17370 | } | |
d55e5bfc RD |
17371 | return resultobj; |
17372 | fail: | |
17373 | return NULL; | |
17374 | } | |
17375 | ||
17376 | ||
c32bde28 | 17377 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17378 | PyObject *resultobj; |
17379 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17380 | int arg2 ; | |
17381 | PyObject * obj0 = 0 ; | |
17382 | PyObject * obj1 = 0 ; | |
17383 | char *kwnames[] = { | |
17384 | (char *) "self",(char *) "m_linesPerAction", NULL | |
17385 | }; | |
17386 | ||
17387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17388 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17389 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17390 | { | |
17391 | arg2 = (int)(SWIG_As_int(obj1)); | |
17392 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17393 | } | |
d55e5bfc RD |
17394 | if (arg1) (arg1)->m_linesPerAction = arg2; |
17395 | ||
17396 | Py_INCREF(Py_None); resultobj = Py_None; | |
17397 | return resultobj; | |
17398 | fail: | |
17399 | return NULL; | |
17400 | } | |
17401 | ||
17402 | ||
c32bde28 | 17403 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(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_m_linesPerAction_get",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 | result = (int) ((arg1)->m_linesPerAction); |
17416 | ||
093d3ff1 RD |
17417 | { |
17418 | resultobj = SWIG_From_int((int)(result)); | |
17419 | } | |
d55e5bfc RD |
17420 | return resultobj; |
17421 | fail: | |
17422 | return NULL; | |
17423 | } | |
17424 | ||
17425 | ||
c32bde28 | 17426 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17427 | PyObject *obj; |
17428 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17429 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
17430 | Py_INCREF(obj); | |
17431 | return Py_BuildValue((char *)""); | |
17432 | } | |
c32bde28 | 17433 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17434 | PyObject *resultobj; |
17435 | int arg1 = (int) 0 ; | |
17436 | int arg2 = (int) 0 ; | |
17437 | wxSetCursorEvent *result; | |
17438 | PyObject * obj0 = 0 ; | |
17439 | PyObject * obj1 = 0 ; | |
17440 | char *kwnames[] = { | |
17441 | (char *) "x",(char *) "y", NULL | |
17442 | }; | |
17443 | ||
17444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
17445 | if (obj0) { | |
093d3ff1 RD |
17446 | { |
17447 | arg1 = (int)(SWIG_As_int(obj0)); | |
17448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17449 | } | |
d55e5bfc RD |
17450 | } |
17451 | if (obj1) { | |
093d3ff1 RD |
17452 | { |
17453 | arg2 = (int)(SWIG_As_int(obj1)); | |
17454 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17455 | } | |
d55e5bfc RD |
17456 | } |
17457 | { | |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
17460 | ||
17461 | wxPyEndAllowThreads(__tstate); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
17464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
17465 | return resultobj; | |
17466 | fail: | |
17467 | return NULL; | |
17468 | } | |
17469 | ||
17470 | ||
c32bde28 | 17471 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17472 | PyObject *resultobj; |
17473 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
17474 | int result; | |
17475 | PyObject * obj0 = 0 ; | |
17476 | char *kwnames[] = { | |
17477 | (char *) "self", NULL | |
17478 | }; | |
17479 | ||
17480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
17482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17483 | { |
17484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17485 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
17486 | ||
17487 | wxPyEndAllowThreads(__tstate); | |
17488 | if (PyErr_Occurred()) SWIG_fail; | |
17489 | } | |
093d3ff1 RD |
17490 | { |
17491 | resultobj = SWIG_From_int((int)(result)); | |
17492 | } | |
d55e5bfc RD |
17493 | return resultobj; |
17494 | fail: | |
17495 | return NULL; | |
17496 | } | |
17497 | ||
17498 | ||
c32bde28 | 17499 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17500 | PyObject *resultobj; |
17501 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
17502 | int result; | |
17503 | PyObject * obj0 = 0 ; | |
17504 | char *kwnames[] = { | |
17505 | (char *) "self", NULL | |
17506 | }; | |
17507 | ||
17508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
17510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17511 | { |
17512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17513 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
17514 | ||
17515 | wxPyEndAllowThreads(__tstate); | |
17516 | if (PyErr_Occurred()) SWIG_fail; | |
17517 | } | |
093d3ff1 RD |
17518 | { |
17519 | resultobj = SWIG_From_int((int)(result)); | |
17520 | } | |
d55e5bfc RD |
17521 | return resultobj; |
17522 | fail: | |
17523 | return NULL; | |
17524 | } | |
17525 | ||
17526 | ||
c32bde28 | 17527 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17528 | PyObject *resultobj; |
17529 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
17530 | wxCursor *arg2 = 0 ; | |
17531 | PyObject * obj0 = 0 ; | |
17532 | PyObject * obj1 = 0 ; | |
17533 | char *kwnames[] = { | |
17534 | (char *) "self",(char *) "cursor", NULL | |
17535 | }; | |
17536 | ||
17537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
17539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17540 | { | |
17541 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
17542 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17543 | if (arg2 == NULL) { | |
17544 | SWIG_null_ref("wxCursor"); | |
17545 | } | |
17546 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
17547 | } |
17548 | { | |
17549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17550 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
17551 | ||
17552 | wxPyEndAllowThreads(__tstate); | |
17553 | if (PyErr_Occurred()) SWIG_fail; | |
17554 | } | |
17555 | Py_INCREF(Py_None); resultobj = Py_None; | |
17556 | return resultobj; | |
17557 | fail: | |
17558 | return NULL; | |
17559 | } | |
17560 | ||
17561 | ||
c32bde28 | 17562 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17563 | PyObject *resultobj; |
17564 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
17565 | wxCursor *result; | |
17566 | PyObject * obj0 = 0 ; | |
17567 | char *kwnames[] = { | |
17568 | (char *) "self", NULL | |
17569 | }; | |
17570 | ||
17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
17573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17574 | { |
17575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17576 | { | |
17577 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
17578 | result = (wxCursor *) &_result_ref; | |
17579 | } | |
17580 | ||
17581 | wxPyEndAllowThreads(__tstate); | |
17582 | if (PyErr_Occurred()) SWIG_fail; | |
17583 | } | |
17584 | { | |
17585 | wxCursor* resultptr = new wxCursor(*result); | |
17586 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
17587 | } | |
17588 | return resultobj; | |
17589 | fail: | |
17590 | return NULL; | |
17591 | } | |
17592 | ||
17593 | ||
c32bde28 | 17594 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17595 | PyObject *resultobj; |
17596 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
17597 | bool result; | |
17598 | PyObject * obj0 = 0 ; | |
17599 | char *kwnames[] = { | |
17600 | (char *) "self", NULL | |
17601 | }; | |
17602 | ||
17603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
17605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17606 | { |
17607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17608 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
17609 | ||
17610 | wxPyEndAllowThreads(__tstate); | |
17611 | if (PyErr_Occurred()) SWIG_fail; | |
17612 | } | |
17613 | { | |
17614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17615 | } | |
17616 | return resultobj; | |
17617 | fail: | |
17618 | return NULL; | |
17619 | } | |
17620 | ||
17621 | ||
c32bde28 | 17622 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17623 | PyObject *obj; |
17624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17625 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
17626 | Py_INCREF(obj); | |
17627 | return Py_BuildValue((char *)""); | |
17628 | } | |
c32bde28 | 17629 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17630 | PyObject *resultobj; |
17631 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17632 | wxKeyEvent *result; | |
17633 | PyObject * obj0 = 0 ; | |
17634 | char *kwnames[] = { | |
17635 | (char *) "keyType", NULL | |
17636 | }; | |
17637 | ||
17638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
17639 | if (obj0) { | |
093d3ff1 RD |
17640 | { |
17641 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17643 | } | |
d55e5bfc RD |
17644 | } |
17645 | { | |
17646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17647 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
17648 | ||
17649 | wxPyEndAllowThreads(__tstate); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
17651 | } | |
17652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
17653 | return resultobj; | |
17654 | fail: | |
17655 | return NULL; | |
17656 | } | |
17657 | ||
17658 | ||
c32bde28 | 17659 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17660 | PyObject *resultobj; |
17661 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17662 | bool result; | |
17663 | PyObject * obj0 = 0 ; | |
17664 | char *kwnames[] = { | |
17665 | (char *) "self", NULL | |
17666 | }; | |
17667 | ||
17668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17671 | { |
17672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17673 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
17674 | ||
17675 | wxPyEndAllowThreads(__tstate); | |
17676 | if (PyErr_Occurred()) SWIG_fail; | |
17677 | } | |
17678 | { | |
17679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17680 | } | |
17681 | return resultobj; | |
17682 | fail: | |
17683 | return NULL; | |
17684 | } | |
17685 | ||
17686 | ||
c32bde28 | 17687 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17688 | PyObject *resultobj; |
17689 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17690 | bool result; | |
17691 | PyObject * obj0 = 0 ; | |
17692 | char *kwnames[] = { | |
17693 | (char *) "self", NULL | |
17694 | }; | |
17695 | ||
17696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17699 | { |
17700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17701 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
17702 | ||
17703 | wxPyEndAllowThreads(__tstate); | |
17704 | if (PyErr_Occurred()) SWIG_fail; | |
17705 | } | |
17706 | { | |
17707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17708 | } | |
17709 | return resultobj; | |
17710 | fail: | |
17711 | return NULL; | |
17712 | } | |
17713 | ||
17714 | ||
c32bde28 | 17715 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17716 | PyObject *resultobj; |
17717 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17718 | bool result; | |
17719 | PyObject * obj0 = 0 ; | |
17720 | char *kwnames[] = { | |
17721 | (char *) "self", NULL | |
17722 | }; | |
17723 | ||
17724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17727 | { |
17728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17729 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
17730 | ||
17731 | wxPyEndAllowThreads(__tstate); | |
17732 | if (PyErr_Occurred()) SWIG_fail; | |
17733 | } | |
17734 | { | |
17735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17736 | } | |
17737 | return resultobj; | |
17738 | fail: | |
17739 | return NULL; | |
17740 | } | |
17741 | ||
17742 | ||
c32bde28 | 17743 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17744 | PyObject *resultobj; |
17745 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17746 | bool result; | |
17747 | PyObject * obj0 = 0 ; | |
17748 | char *kwnames[] = { | |
17749 | (char *) "self", NULL | |
17750 | }; | |
17751 | ||
17752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17755 | { |
17756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17757 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
17758 | ||
17759 | wxPyEndAllowThreads(__tstate); | |
17760 | if (PyErr_Occurred()) SWIG_fail; | |
17761 | } | |
17762 | { | |
17763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17764 | } | |
17765 | return resultobj; | |
17766 | fail: | |
17767 | return NULL; | |
17768 | } | |
17769 | ||
17770 | ||
c32bde28 | 17771 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
17772 | PyObject *resultobj; |
17773 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17774 | bool result; | |
17775 | PyObject * obj0 = 0 ; | |
17776 | char *kwnames[] = { | |
17777 | (char *) "self", NULL | |
17778 | }; | |
17779 | ||
17780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
412d302d RD |
17783 | { |
17784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17785 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
17786 | ||
17787 | wxPyEndAllowThreads(__tstate); | |
17788 | if (PyErr_Occurred()) SWIG_fail; | |
17789 | } | |
17790 | { | |
17791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17792 | } | |
17793 | return resultobj; | |
17794 | fail: | |
17795 | return NULL; | |
17796 | } | |
17797 | ||
17798 | ||
c32bde28 | 17799 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17800 | PyObject *resultobj; |
17801 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17802 | bool result; | |
17803 | PyObject * obj0 = 0 ; | |
17804 | char *kwnames[] = { | |
17805 | (char *) "self", NULL | |
17806 | }; | |
17807 | ||
17808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17811 | { |
17812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17813 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
17814 | ||
17815 | wxPyEndAllowThreads(__tstate); | |
17816 | if (PyErr_Occurred()) SWIG_fail; | |
17817 | } | |
17818 | { | |
17819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17820 | } | |
17821 | return resultobj; | |
17822 | fail: | |
17823 | return NULL; | |
17824 | } | |
17825 | ||
17826 | ||
c32bde28 | 17827 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17828 | PyObject *resultobj; |
17829 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17830 | int result; | |
17831 | PyObject * obj0 = 0 ; | |
17832 | char *kwnames[] = { | |
17833 | (char *) "self", NULL | |
17834 | }; | |
17835 | ||
17836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17837 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17838 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17839 | { |
17840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17841 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
093d3ff1 RD |
17846 | { |
17847 | resultobj = SWIG_From_int((int)(result)); | |
17848 | } | |
d55e5bfc RD |
17849 | return resultobj; |
17850 | fail: | |
17851 | return NULL; | |
17852 | } | |
17853 | ||
17854 | ||
c32bde28 | 17855 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17856 | PyObject *resultobj; |
17857 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17858 | int result; | |
17859 | PyObject * obj0 = 0 ; | |
17860 | char *kwnames[] = { | |
17861 | (char *) "self", NULL | |
17862 | }; | |
17863 | ||
19272049 | 17864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17865 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17866 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17867 | { |
17868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 17869 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
17870 | |
17871 | wxPyEndAllowThreads(__tstate); | |
17872 | if (PyErr_Occurred()) SWIG_fail; | |
17873 | } | |
093d3ff1 RD |
17874 | { |
17875 | resultobj = SWIG_From_int((int)(result)); | |
17876 | } | |
d55e5bfc RD |
17877 | return resultobj; |
17878 | fail: | |
17879 | return NULL; | |
17880 | } | |
17881 | ||
17882 | ||
c32bde28 | 17883 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17884 | PyObject *resultobj; |
17885 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17886 | unsigned int result; | |
17887 | PyObject * obj0 = 0 ; | |
17888 | char *kwnames[] = { | |
17889 | (char *) "self", NULL | |
17890 | }; | |
17891 | ||
17892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17895 | { |
17896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17897 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
17898 | ||
17899 | wxPyEndAllowThreads(__tstate); | |
17900 | if (PyErr_Occurred()) SWIG_fail; | |
17901 | } | |
093d3ff1 RD |
17902 | { |
17903 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
17904 | } | |
d55e5bfc RD |
17905 | return resultobj; |
17906 | fail: | |
17907 | return NULL; | |
17908 | } | |
17909 | ||
17910 | ||
c32bde28 | 17911 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17912 | PyObject *resultobj; |
17913 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17914 | unsigned int result; | |
17915 | PyObject * obj0 = 0 ; | |
17916 | char *kwnames[] = { | |
17917 | (char *) "self", NULL | |
17918 | }; | |
17919 | ||
17920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17923 | { |
17924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17925 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
17926 | ||
17927 | wxPyEndAllowThreads(__tstate); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | } | |
093d3ff1 RD |
17930 | { |
17931 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
17932 | } | |
d55e5bfc RD |
17933 | return resultobj; |
17934 | fail: | |
17935 | return NULL; | |
17936 | } | |
17937 | ||
17938 | ||
c32bde28 | 17939 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17940 | PyObject *resultobj; |
17941 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17942 | wxPoint result; | |
17943 | PyObject * obj0 = 0 ; | |
17944 | char *kwnames[] = { | |
17945 | (char *) "self", NULL | |
17946 | }; | |
17947 | ||
17948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17951 | { |
17952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17953 | result = (arg1)->GetPosition(); | |
17954 | ||
17955 | wxPyEndAllowThreads(__tstate); | |
17956 | if (PyErr_Occurred()) SWIG_fail; | |
17957 | } | |
17958 | { | |
17959 | wxPoint * resultptr; | |
093d3ff1 | 17960 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
17961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
17962 | } | |
17963 | return resultobj; | |
17964 | fail: | |
17965 | return NULL; | |
17966 | } | |
17967 | ||
17968 | ||
c32bde28 | 17969 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17970 | PyObject *resultobj; |
17971 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
17972 | long *arg2 = (long *) 0 ; | |
17973 | long *arg3 = (long *) 0 ; | |
17974 | long temp2 ; | |
c32bde28 | 17975 | int res2 = 0 ; |
d55e5bfc | 17976 | long temp3 ; |
c32bde28 | 17977 | int res3 = 0 ; |
d55e5bfc RD |
17978 | PyObject * obj0 = 0 ; |
17979 | char *kwnames[] = { | |
17980 | (char *) "self", NULL | |
17981 | }; | |
17982 | ||
c32bde28 RD |
17983 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
17984 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 17985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
17987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17988 | { |
17989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17990 | (arg1)->GetPosition(arg2,arg3); | |
17991 | ||
17992 | wxPyEndAllowThreads(__tstate); | |
17993 | if (PyErr_Occurred()) SWIG_fail; | |
17994 | } | |
17995 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
17996 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
17997 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
17998 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
17999 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
18000 | return resultobj; |
18001 | fail: | |
18002 | return NULL; | |
18003 | } | |
18004 | ||
18005 | ||
c32bde28 | 18006 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18007 | PyObject *resultobj; |
18008 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18009 | int result; | |
18010 | PyObject * obj0 = 0 ; | |
18011 | char *kwnames[] = { | |
18012 | (char *) "self", NULL | |
18013 | }; | |
18014 | ||
18015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18018 | { |
18019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18020 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
18021 | ||
18022 | wxPyEndAllowThreads(__tstate); | |
18023 | if (PyErr_Occurred()) SWIG_fail; | |
18024 | } | |
093d3ff1 RD |
18025 | { |
18026 | resultobj = SWIG_From_int((int)(result)); | |
18027 | } | |
d55e5bfc RD |
18028 | return resultobj; |
18029 | fail: | |
18030 | return NULL; | |
18031 | } | |
18032 | ||
18033 | ||
c32bde28 | 18034 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18035 | PyObject *resultobj; |
18036 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18037 | int result; | |
18038 | PyObject * obj0 = 0 ; | |
18039 | char *kwnames[] = { | |
18040 | (char *) "self", NULL | |
18041 | }; | |
18042 | ||
18043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18046 | { |
18047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18048 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
18049 | ||
18050 | wxPyEndAllowThreads(__tstate); | |
18051 | if (PyErr_Occurred()) SWIG_fail; | |
18052 | } | |
093d3ff1 RD |
18053 | { |
18054 | resultobj = SWIG_From_int((int)(result)); | |
18055 | } | |
d55e5bfc RD |
18056 | return resultobj; |
18057 | fail: | |
18058 | return NULL; | |
18059 | } | |
18060 | ||
18061 | ||
c32bde28 | 18062 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18063 | PyObject *resultobj; |
18064 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18065 | int arg2 ; | |
18066 | PyObject * obj0 = 0 ; | |
18067 | PyObject * obj1 = 0 ; | |
18068 | char *kwnames[] = { | |
18069 | (char *) "self",(char *) "m_x", NULL | |
18070 | }; | |
18071 | ||
18072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18075 | { | |
18076 | arg2 = (int)(SWIG_As_int(obj1)); | |
18077 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18078 | } | |
d55e5bfc RD |
18079 | if (arg1) (arg1)->m_x = arg2; |
18080 | ||
18081 | Py_INCREF(Py_None); resultobj = Py_None; | |
18082 | return resultobj; | |
18083 | fail: | |
18084 | return NULL; | |
18085 | } | |
18086 | ||
18087 | ||
c32bde28 | 18088 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18089 | PyObject *resultobj; |
18090 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18091 | int result; | |
18092 | PyObject * obj0 = 0 ; | |
18093 | char *kwnames[] = { | |
18094 | (char *) "self", NULL | |
18095 | }; | |
18096 | ||
18097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18100 | result = (int) ((arg1)->m_x); |
18101 | ||
093d3ff1 RD |
18102 | { |
18103 | resultobj = SWIG_From_int((int)(result)); | |
18104 | } | |
d55e5bfc RD |
18105 | return resultobj; |
18106 | fail: | |
18107 | return NULL; | |
18108 | } | |
18109 | ||
18110 | ||
c32bde28 | 18111 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18112 | PyObject *resultobj; |
18113 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18114 | int arg2 ; | |
18115 | PyObject * obj0 = 0 ; | |
18116 | PyObject * obj1 = 0 ; | |
18117 | char *kwnames[] = { | |
18118 | (char *) "self",(char *) "m_y", NULL | |
18119 | }; | |
18120 | ||
18121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18122 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18123 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18124 | { | |
18125 | arg2 = (int)(SWIG_As_int(obj1)); | |
18126 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18127 | } | |
d55e5bfc RD |
18128 | if (arg1) (arg1)->m_y = arg2; |
18129 | ||
18130 | Py_INCREF(Py_None); resultobj = Py_None; | |
18131 | return resultobj; | |
18132 | fail: | |
18133 | return NULL; | |
18134 | } | |
18135 | ||
18136 | ||
c32bde28 | 18137 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18138 | PyObject *resultobj; |
18139 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18140 | int result; | |
18141 | PyObject * obj0 = 0 ; | |
18142 | char *kwnames[] = { | |
18143 | (char *) "self", NULL | |
18144 | }; | |
18145 | ||
18146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18149 | result = (int) ((arg1)->m_y); |
18150 | ||
093d3ff1 RD |
18151 | { |
18152 | resultobj = SWIG_From_int((int)(result)); | |
18153 | } | |
d55e5bfc RD |
18154 | return resultobj; |
18155 | fail: | |
18156 | return NULL; | |
18157 | } | |
18158 | ||
18159 | ||
c32bde28 | 18160 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18161 | PyObject *resultobj; |
18162 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18163 | long arg2 ; | |
18164 | PyObject * obj0 = 0 ; | |
18165 | PyObject * obj1 = 0 ; | |
18166 | char *kwnames[] = { | |
18167 | (char *) "self",(char *) "m_keyCode", NULL | |
18168 | }; | |
18169 | ||
18170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18173 | { | |
18174 | arg2 = (long)(SWIG_As_long(obj1)); | |
18175 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18176 | } | |
d55e5bfc RD |
18177 | if (arg1) (arg1)->m_keyCode = arg2; |
18178 | ||
18179 | Py_INCREF(Py_None); resultobj = Py_None; | |
18180 | return resultobj; | |
18181 | fail: | |
18182 | return NULL; | |
18183 | } | |
18184 | ||
18185 | ||
c32bde28 | 18186 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18187 | PyObject *resultobj; |
18188 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18189 | long result; | |
18190 | PyObject * obj0 = 0 ; | |
18191 | char *kwnames[] = { | |
18192 | (char *) "self", NULL | |
18193 | }; | |
18194 | ||
18195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18198 | result = (long) ((arg1)->m_keyCode); |
18199 | ||
093d3ff1 RD |
18200 | { |
18201 | resultobj = SWIG_From_long((long)(result)); | |
18202 | } | |
d55e5bfc RD |
18203 | return resultobj; |
18204 | fail: | |
18205 | return NULL; | |
18206 | } | |
18207 | ||
18208 | ||
c32bde28 | 18209 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18210 | PyObject *resultobj; |
18211 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18212 | bool arg2 ; | |
18213 | PyObject * obj0 = 0 ; | |
18214 | PyObject * obj1 = 0 ; | |
18215 | char *kwnames[] = { | |
18216 | (char *) "self",(char *) "m_controlDown", NULL | |
18217 | }; | |
18218 | ||
18219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18222 | { | |
18223 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18225 | } | |
d55e5bfc RD |
18226 | if (arg1) (arg1)->m_controlDown = arg2; |
18227 | ||
18228 | Py_INCREF(Py_None); resultobj = Py_None; | |
18229 | return resultobj; | |
18230 | fail: | |
18231 | return NULL; | |
18232 | } | |
18233 | ||
18234 | ||
c32bde28 | 18235 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18236 | PyObject *resultobj; |
18237 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18238 | bool result; | |
18239 | PyObject * obj0 = 0 ; | |
18240 | char *kwnames[] = { | |
18241 | (char *) "self", NULL | |
18242 | }; | |
18243 | ||
18244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18247 | result = (bool) ((arg1)->m_controlDown); |
18248 | ||
18249 | { | |
18250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18251 | } | |
18252 | return resultobj; | |
18253 | fail: | |
18254 | return NULL; | |
18255 | } | |
18256 | ||
18257 | ||
c32bde28 | 18258 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18259 | PyObject *resultobj; |
18260 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18261 | bool arg2 ; | |
18262 | PyObject * obj0 = 0 ; | |
18263 | PyObject * obj1 = 0 ; | |
18264 | char *kwnames[] = { | |
18265 | (char *) "self",(char *) "m_shiftDown", NULL | |
18266 | }; | |
18267 | ||
18268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18271 | { | |
18272 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18274 | } | |
d55e5bfc RD |
18275 | if (arg1) (arg1)->m_shiftDown = arg2; |
18276 | ||
18277 | Py_INCREF(Py_None); resultobj = Py_None; | |
18278 | return resultobj; | |
18279 | fail: | |
18280 | return NULL; | |
18281 | } | |
18282 | ||
18283 | ||
c32bde28 | 18284 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18285 | PyObject *resultobj; |
18286 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18287 | bool result; | |
18288 | PyObject * obj0 = 0 ; | |
18289 | char *kwnames[] = { | |
18290 | (char *) "self", NULL | |
18291 | }; | |
18292 | ||
18293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18296 | result = (bool) ((arg1)->m_shiftDown); |
18297 | ||
18298 | { | |
18299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18300 | } | |
18301 | return resultobj; | |
18302 | fail: | |
18303 | return NULL; | |
18304 | } | |
18305 | ||
18306 | ||
c32bde28 | 18307 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18308 | PyObject *resultobj; |
18309 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18310 | bool arg2 ; | |
18311 | PyObject * obj0 = 0 ; | |
18312 | PyObject * obj1 = 0 ; | |
18313 | char *kwnames[] = { | |
18314 | (char *) "self",(char *) "m_altDown", NULL | |
18315 | }; | |
18316 | ||
18317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) 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; | |
18320 | { | |
18321 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18322 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18323 | } | |
d55e5bfc RD |
18324 | if (arg1) (arg1)->m_altDown = arg2; |
18325 | ||
18326 | Py_INCREF(Py_None); resultobj = Py_None; | |
18327 | return resultobj; | |
18328 | fail: | |
18329 | return NULL; | |
18330 | } | |
18331 | ||
18332 | ||
c32bde28 | 18333 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18334 | PyObject *resultobj; |
18335 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18336 | bool result; | |
18337 | PyObject * obj0 = 0 ; | |
18338 | char *kwnames[] = { | |
18339 | (char *) "self", NULL | |
18340 | }; | |
18341 | ||
18342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18345 | result = (bool) ((arg1)->m_altDown); |
18346 | ||
18347 | { | |
18348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18349 | } | |
18350 | return resultobj; | |
18351 | fail: | |
18352 | return NULL; | |
18353 | } | |
18354 | ||
18355 | ||
c32bde28 | 18356 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18357 | PyObject *resultobj; |
18358 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18359 | bool arg2 ; | |
18360 | PyObject * obj0 = 0 ; | |
18361 | PyObject * obj1 = 0 ; | |
18362 | char *kwnames[] = { | |
18363 | (char *) "self",(char *) "m_metaDown", NULL | |
18364 | }; | |
18365 | ||
18366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18369 | { | |
18370 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18371 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18372 | } | |
d55e5bfc RD |
18373 | if (arg1) (arg1)->m_metaDown = arg2; |
18374 | ||
18375 | Py_INCREF(Py_None); resultobj = Py_None; | |
18376 | return resultobj; | |
18377 | fail: | |
18378 | return NULL; | |
18379 | } | |
18380 | ||
18381 | ||
c32bde28 | 18382 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18383 | PyObject *resultobj; |
18384 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18385 | bool result; | |
18386 | PyObject * obj0 = 0 ; | |
18387 | char *kwnames[] = { | |
18388 | (char *) "self", NULL | |
18389 | }; | |
18390 | ||
18391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18394 | result = (bool) ((arg1)->m_metaDown); |
18395 | ||
18396 | { | |
18397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18398 | } | |
18399 | return resultobj; | |
18400 | fail: | |
18401 | return NULL; | |
18402 | } | |
18403 | ||
18404 | ||
c32bde28 | 18405 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18406 | PyObject *resultobj; |
18407 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18408 | bool arg2 ; | |
18409 | PyObject * obj0 = 0 ; | |
18410 | PyObject * obj1 = 0 ; | |
18411 | char *kwnames[] = { | |
18412 | (char *) "self",(char *) "m_scanCode", NULL | |
18413 | }; | |
18414 | ||
18415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18418 | { | |
18419 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18420 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18421 | } | |
d55e5bfc RD |
18422 | if (arg1) (arg1)->m_scanCode = arg2; |
18423 | ||
18424 | Py_INCREF(Py_None); resultobj = Py_None; | |
18425 | return resultobj; | |
18426 | fail: | |
18427 | return NULL; | |
18428 | } | |
18429 | ||
18430 | ||
c32bde28 | 18431 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18432 | PyObject *resultobj; |
18433 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18434 | bool result; | |
18435 | PyObject * obj0 = 0 ; | |
18436 | char *kwnames[] = { | |
18437 | (char *) "self", NULL | |
18438 | }; | |
18439 | ||
18440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18443 | result = (bool) ((arg1)->m_scanCode); |
18444 | ||
18445 | { | |
18446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18447 | } | |
18448 | return resultobj; | |
18449 | fail: | |
18450 | return NULL; | |
18451 | } | |
18452 | ||
18453 | ||
c32bde28 | 18454 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18455 | PyObject *resultobj; |
18456 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18457 | unsigned int arg2 ; | |
18458 | PyObject * obj0 = 0 ; | |
18459 | PyObject * obj1 = 0 ; | |
18460 | char *kwnames[] = { | |
18461 | (char *) "self",(char *) "m_rawCode", NULL | |
18462 | }; | |
18463 | ||
18464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18467 | { | |
18468 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
18469 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18470 | } | |
d55e5bfc RD |
18471 | if (arg1) (arg1)->m_rawCode = arg2; |
18472 | ||
18473 | Py_INCREF(Py_None); resultobj = Py_None; | |
18474 | return resultobj; | |
18475 | fail: | |
18476 | return NULL; | |
18477 | } | |
18478 | ||
18479 | ||
c32bde28 | 18480 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18481 | PyObject *resultobj; |
18482 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18483 | unsigned int result; | |
18484 | PyObject * obj0 = 0 ; | |
18485 | char *kwnames[] = { | |
18486 | (char *) "self", NULL | |
18487 | }; | |
18488 | ||
18489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18490 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18491 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18492 | result = (unsigned int) ((arg1)->m_rawCode); |
18493 | ||
093d3ff1 RD |
18494 | { |
18495 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
18496 | } | |
d55e5bfc RD |
18497 | return resultobj; |
18498 | fail: | |
18499 | return NULL; | |
18500 | } | |
18501 | ||
18502 | ||
c32bde28 | 18503 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18504 | PyObject *resultobj; |
18505 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18506 | unsigned int arg2 ; | |
18507 | PyObject * obj0 = 0 ; | |
18508 | PyObject * obj1 = 0 ; | |
18509 | char *kwnames[] = { | |
18510 | (char *) "self",(char *) "m_rawFlags", NULL | |
18511 | }; | |
18512 | ||
18513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) 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; | |
18516 | { | |
18517 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
18518 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18519 | } | |
d55e5bfc RD |
18520 | if (arg1) (arg1)->m_rawFlags = arg2; |
18521 | ||
18522 | Py_INCREF(Py_None); resultobj = Py_None; | |
18523 | return resultobj; | |
18524 | fail: | |
18525 | return NULL; | |
18526 | } | |
18527 | ||
18528 | ||
c32bde28 | 18529 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18530 | PyObject *resultobj; |
18531 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18532 | unsigned int result; | |
18533 | PyObject * obj0 = 0 ; | |
18534 | char *kwnames[] = { | |
18535 | (char *) "self", NULL | |
18536 | }; | |
18537 | ||
18538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18541 | result = (unsigned int) ((arg1)->m_rawFlags); |
18542 | ||
093d3ff1 RD |
18543 | { |
18544 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
18545 | } | |
d55e5bfc RD |
18546 | return resultobj; |
18547 | fail: | |
18548 | return NULL; | |
18549 | } | |
18550 | ||
18551 | ||
c32bde28 | 18552 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18553 | PyObject *obj; |
18554 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18555 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
18556 | Py_INCREF(obj); | |
18557 | return Py_BuildValue((char *)""); | |
18558 | } | |
c32bde28 | 18559 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18560 | PyObject *resultobj; |
18561 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
18562 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
18563 | int arg2 = (int) 0 ; | |
18564 | wxSizeEvent *result; | |
18565 | wxSize temp1 ; | |
18566 | PyObject * obj0 = 0 ; | |
18567 | PyObject * obj1 = 0 ; | |
18568 | char *kwnames[] = { | |
18569 | (char *) "sz",(char *) "winid", NULL | |
18570 | }; | |
18571 | ||
18572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
18573 | if (obj0) { | |
18574 | { | |
18575 | arg1 = &temp1; | |
18576 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
18577 | } | |
18578 | } | |
18579 | if (obj1) { | |
093d3ff1 RD |
18580 | { |
18581 | arg2 = (int)(SWIG_As_int(obj1)); | |
18582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18583 | } | |
d55e5bfc RD |
18584 | } |
18585 | { | |
18586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18587 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
18592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
18593 | return resultobj; | |
18594 | fail: | |
18595 | return NULL; | |
18596 | } | |
18597 | ||
18598 | ||
c32bde28 | 18599 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18600 | PyObject *resultobj; |
18601 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
18602 | wxSize result; | |
18603 | PyObject * obj0 = 0 ; | |
18604 | char *kwnames[] = { | |
18605 | (char *) "self", NULL | |
18606 | }; | |
18607 | ||
18608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
18610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18611 | { |
18612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18613 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
18614 | ||
18615 | wxPyEndAllowThreads(__tstate); | |
18616 | if (PyErr_Occurred()) SWIG_fail; | |
18617 | } | |
18618 | { | |
18619 | wxSize * resultptr; | |
093d3ff1 | 18620 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
18621 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
18622 | } | |
18623 | return resultobj; | |
18624 | fail: | |
18625 | return NULL; | |
18626 | } | |
18627 | ||
18628 | ||
c32bde28 | 18629 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18630 | PyObject *resultobj; |
18631 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
18632 | wxRect result; | |
18633 | PyObject * obj0 = 0 ; | |
18634 | char *kwnames[] = { | |
18635 | (char *) "self", NULL | |
18636 | }; | |
18637 | ||
18638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
18640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18641 | { |
18642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18643 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
18644 | ||
18645 | wxPyEndAllowThreads(__tstate); | |
18646 | if (PyErr_Occurred()) SWIG_fail; | |
18647 | } | |
18648 | { | |
18649 | wxRect * resultptr; | |
093d3ff1 | 18650 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
18651 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
18652 | } | |
18653 | return resultobj; | |
18654 | fail: | |
18655 | return NULL; | |
18656 | } | |
18657 | ||
18658 | ||
c32bde28 | 18659 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18660 | PyObject *resultobj; |
18661 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
18662 | wxRect arg2 ; | |
d55e5bfc RD |
18663 | PyObject * obj0 = 0 ; |
18664 | PyObject * obj1 = 0 ; | |
18665 | char *kwnames[] = { | |
18666 | (char *) "self",(char *) "rect", NULL | |
18667 | }; | |
18668 | ||
18669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
18671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18672 | { | |
18673 | wxRect * argp; | |
18674 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION); | |
18675 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18676 | if (argp == NULL) { | |
18677 | SWIG_null_ref("wxRect"); | |
18678 | } | |
18679 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18680 | arg2 = *argp; | |
18681 | } | |
d55e5bfc RD |
18682 | { |
18683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18684 | (arg1)->SetRect(arg2); | |
18685 | ||
18686 | wxPyEndAllowThreads(__tstate); | |
18687 | if (PyErr_Occurred()) SWIG_fail; | |
18688 | } | |
18689 | Py_INCREF(Py_None); resultobj = Py_None; | |
18690 | return resultobj; | |
18691 | fail: | |
18692 | return NULL; | |
18693 | } | |
18694 | ||
18695 | ||
c32bde28 | 18696 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18697 | PyObject *resultobj; |
18698 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
18699 | wxSize arg2 ; | |
d55e5bfc RD |
18700 | PyObject * obj0 = 0 ; |
18701 | PyObject * obj1 = 0 ; | |
18702 | char *kwnames[] = { | |
18703 | (char *) "self",(char *) "size", NULL | |
18704 | }; | |
18705 | ||
18706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
18708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18709 | { | |
18710 | wxSize * argp; | |
18711 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION); | |
18712 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18713 | if (argp == NULL) { | |
18714 | SWIG_null_ref("wxSize"); | |
18715 | } | |
18716 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18717 | arg2 = *argp; | |
18718 | } | |
d55e5bfc RD |
18719 | { |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | wxSizeEvent_SetSize(arg1,arg2); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
18726 | Py_INCREF(Py_None); resultobj = Py_None; | |
18727 | return resultobj; | |
18728 | fail: | |
18729 | return NULL; | |
18730 | } | |
18731 | ||
18732 | ||
c32bde28 | 18733 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18734 | PyObject *resultobj; |
18735 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
18736 | wxSize *arg2 = (wxSize *) 0 ; | |
18737 | PyObject * obj0 = 0 ; | |
18738 | PyObject * obj1 = 0 ; | |
18739 | char *kwnames[] = { | |
18740 | (char *) "self",(char *) "m_size", NULL | |
18741 | }; | |
18742 | ||
18743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
18745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18746 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); | |
18747 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
18748 | if (arg1) (arg1)->m_size = *arg2; |
18749 | ||
18750 | Py_INCREF(Py_None); resultobj = Py_None; | |
18751 | return resultobj; | |
18752 | fail: | |
18753 | return NULL; | |
18754 | } | |
18755 | ||
18756 | ||
c32bde28 | 18757 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18758 | PyObject *resultobj; |
18759 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
18760 | wxSize *result; | |
18761 | PyObject * obj0 = 0 ; | |
18762 | char *kwnames[] = { | |
18763 | (char *) "self", NULL | |
18764 | }; | |
18765 | ||
18766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
18768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18769 | result = (wxSize *)& ((arg1)->m_size); |
18770 | ||
18771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
18772 | return resultobj; | |
18773 | fail: | |
18774 | return NULL; | |
18775 | } | |
18776 | ||
18777 | ||
c32bde28 | 18778 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18779 | PyObject *resultobj; |
18780 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
18781 | wxRect *arg2 = (wxRect *) 0 ; | |
18782 | PyObject * obj0 = 0 ; | |
18783 | PyObject * obj1 = 0 ; | |
18784 | char *kwnames[] = { | |
18785 | (char *) "self",(char *) "m_rect", NULL | |
18786 | }; | |
18787 | ||
18788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
18790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18791 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
18792 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
18793 | if (arg1) (arg1)->m_rect = *arg2; |
18794 | ||
18795 | Py_INCREF(Py_None); resultobj = Py_None; | |
18796 | return resultobj; | |
18797 | fail: | |
18798 | return NULL; | |
18799 | } | |
18800 | ||
18801 | ||
c32bde28 | 18802 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18803 | PyObject *resultobj; |
18804 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
18805 | wxRect *result; | |
18806 | PyObject * obj0 = 0 ; | |
18807 | char *kwnames[] = { | |
18808 | (char *) "self", NULL | |
18809 | }; | |
18810 | ||
18811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
18813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18814 | result = (wxRect *)& ((arg1)->m_rect); |
18815 | ||
18816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
18817 | return resultobj; | |
18818 | fail: | |
18819 | return NULL; | |
18820 | } | |
18821 | ||
18822 | ||
c32bde28 | 18823 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18824 | PyObject *obj; |
18825 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18826 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
18827 | Py_INCREF(obj); | |
18828 | return Py_BuildValue((char *)""); | |
18829 | } | |
c32bde28 | 18830 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18831 | PyObject *resultobj; |
18832 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
18833 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
18834 | int arg2 = (int) 0 ; | |
18835 | wxMoveEvent *result; | |
18836 | wxPoint temp1 ; | |
18837 | PyObject * obj0 = 0 ; | |
18838 | PyObject * obj1 = 0 ; | |
18839 | char *kwnames[] = { | |
18840 | (char *) "pos",(char *) "winid", NULL | |
18841 | }; | |
18842 | ||
18843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
18844 | if (obj0) { | |
18845 | { | |
18846 | arg1 = &temp1; | |
18847 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
18848 | } | |
18849 | } | |
18850 | if (obj1) { | |
093d3ff1 RD |
18851 | { |
18852 | arg2 = (int)(SWIG_As_int(obj1)); | |
18853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18854 | } | |
d55e5bfc RD |
18855 | } |
18856 | { | |
18857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18858 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
18859 | ||
18860 | wxPyEndAllowThreads(__tstate); | |
18861 | if (PyErr_Occurred()) SWIG_fail; | |
18862 | } | |
18863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
18864 | return resultobj; | |
18865 | fail: | |
18866 | return NULL; | |
18867 | } | |
18868 | ||
18869 | ||
c32bde28 | 18870 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18871 | PyObject *resultobj; |
18872 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
18873 | wxPoint result; | |
18874 | PyObject * obj0 = 0 ; | |
18875 | char *kwnames[] = { | |
18876 | (char *) "self", NULL | |
18877 | }; | |
18878 | ||
18879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18880 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
18881 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18882 | { |
18883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18884 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
18885 | ||
18886 | wxPyEndAllowThreads(__tstate); | |
18887 | if (PyErr_Occurred()) SWIG_fail; | |
18888 | } | |
18889 | { | |
18890 | wxPoint * resultptr; | |
093d3ff1 | 18891 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
18892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
18893 | } | |
18894 | return resultobj; | |
18895 | fail: | |
18896 | return NULL; | |
18897 | } | |
18898 | ||
18899 | ||
c32bde28 | 18900 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18901 | PyObject *resultobj; |
18902 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
18903 | wxRect result; | |
18904 | PyObject * obj0 = 0 ; | |
18905 | char *kwnames[] = { | |
18906 | (char *) "self", NULL | |
18907 | }; | |
18908 | ||
18909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
18911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18912 | { |
18913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18914 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
18915 | ||
18916 | wxPyEndAllowThreads(__tstate); | |
18917 | if (PyErr_Occurred()) SWIG_fail; | |
18918 | } | |
18919 | { | |
18920 | wxRect * resultptr; | |
093d3ff1 | 18921 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
18922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
18923 | } | |
18924 | return resultobj; | |
18925 | fail: | |
18926 | return NULL; | |
18927 | } | |
18928 | ||
18929 | ||
c32bde28 | 18930 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18931 | PyObject *resultobj; |
18932 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
fef4c27a RD |
18933 | wxRect *arg2 = 0 ; |
18934 | wxRect temp2 ; | |
d55e5bfc RD |
18935 | PyObject * obj0 = 0 ; |
18936 | PyObject * obj1 = 0 ; | |
18937 | char *kwnames[] = { | |
18938 | (char *) "self",(char *) "rect", NULL | |
18939 | }; | |
18940 | ||
18941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18942 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
18943 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18944 | { | |
fef4c27a RD |
18945 | arg2 = &temp2; |
18946 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
093d3ff1 | 18947 | } |
d55e5bfc RD |
18948 | { |
18949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 18950 | (arg1)->SetRect((wxRect const &)*arg2); |
d55e5bfc RD |
18951 | |
18952 | wxPyEndAllowThreads(__tstate); | |
18953 | if (PyErr_Occurred()) SWIG_fail; | |
18954 | } | |
18955 | Py_INCREF(Py_None); resultobj = Py_None; | |
18956 | return resultobj; | |
18957 | fail: | |
18958 | return NULL; | |
18959 | } | |
18960 | ||
18961 | ||
c32bde28 | 18962 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18963 | PyObject *resultobj; |
18964 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
fef4c27a RD |
18965 | wxPoint *arg2 = 0 ; |
18966 | wxPoint temp2 ; | |
d55e5bfc RD |
18967 | PyObject * obj0 = 0 ; |
18968 | PyObject * obj1 = 0 ; | |
18969 | char *kwnames[] = { | |
18970 | (char *) "self",(char *) "pos", NULL | |
18971 | }; | |
18972 | ||
18973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18974 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
18975 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18976 | { | |
fef4c27a RD |
18977 | arg2 = &temp2; |
18978 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
093d3ff1 | 18979 | } |
d55e5bfc RD |
18980 | { |
18981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 18982 | (arg1)->SetPosition((wxPoint const &)*arg2); |
d55e5bfc RD |
18983 | |
18984 | wxPyEndAllowThreads(__tstate); | |
18985 | if (PyErr_Occurred()) SWIG_fail; | |
18986 | } | |
18987 | Py_INCREF(Py_None); resultobj = Py_None; | |
18988 | return resultobj; | |
18989 | fail: | |
18990 | return NULL; | |
18991 | } | |
18992 | ||
18993 | ||
c32bde28 | 18994 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18995 | PyObject *obj; |
18996 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18997 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
18998 | Py_INCREF(obj); | |
18999 | return Py_BuildValue((char *)""); | |
19000 | } | |
c32bde28 | 19001 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19002 | PyObject *resultobj; |
19003 | int arg1 = (int) 0 ; | |
19004 | wxPaintEvent *result; | |
19005 | PyObject * obj0 = 0 ; | |
19006 | char *kwnames[] = { | |
19007 | (char *) "Id", NULL | |
19008 | }; | |
19009 | ||
19010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
19011 | if (obj0) { | |
093d3ff1 RD |
19012 | { |
19013 | arg1 = (int)(SWIG_As_int(obj0)); | |
19014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19015 | } | |
d55e5bfc RD |
19016 | } |
19017 | { | |
19018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19019 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
19020 | ||
19021 | wxPyEndAllowThreads(__tstate); | |
19022 | if (PyErr_Occurred()) SWIG_fail; | |
19023 | } | |
19024 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
19025 | return resultobj; | |
19026 | fail: | |
19027 | return NULL; | |
19028 | } | |
19029 | ||
19030 | ||
c32bde28 | 19031 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19032 | PyObject *obj; |
19033 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19034 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
19035 | Py_INCREF(obj); | |
19036 | return Py_BuildValue((char *)""); | |
19037 | } | |
c32bde28 | 19038 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19039 | PyObject *resultobj; |
19040 | int arg1 = (int) 0 ; | |
19041 | wxNcPaintEvent *result; | |
19042 | PyObject * obj0 = 0 ; | |
19043 | char *kwnames[] = { | |
19044 | (char *) "winid", NULL | |
19045 | }; | |
19046 | ||
19047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
19048 | if (obj0) { | |
093d3ff1 RD |
19049 | { |
19050 | arg1 = (int)(SWIG_As_int(obj0)); | |
19051 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19052 | } | |
d55e5bfc RD |
19053 | } |
19054 | { | |
19055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19056 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
19057 | ||
19058 | wxPyEndAllowThreads(__tstate); | |
19059 | if (PyErr_Occurred()) SWIG_fail; | |
19060 | } | |
19061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
19062 | return resultobj; | |
19063 | fail: | |
19064 | return NULL; | |
19065 | } | |
19066 | ||
19067 | ||
c32bde28 | 19068 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19069 | PyObject *obj; |
19070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19071 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
19072 | Py_INCREF(obj); | |
19073 | return Py_BuildValue((char *)""); | |
19074 | } | |
c32bde28 | 19075 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19076 | PyObject *resultobj; |
19077 | int arg1 = (int) 0 ; | |
19078 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
19079 | wxEraseEvent *result; | |
19080 | PyObject * obj0 = 0 ; | |
19081 | PyObject * obj1 = 0 ; | |
19082 | char *kwnames[] = { | |
19083 | (char *) "Id",(char *) "dc", NULL | |
19084 | }; | |
19085 | ||
19086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
19087 | if (obj0) { | |
093d3ff1 RD |
19088 | { |
19089 | arg1 = (int)(SWIG_As_int(obj0)); | |
19090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19091 | } | |
d55e5bfc RD |
19092 | } |
19093 | if (obj1) { | |
093d3ff1 RD |
19094 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
19095 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19096 | } |
19097 | { | |
19098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19099 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
19100 | ||
19101 | wxPyEndAllowThreads(__tstate); | |
19102 | if (PyErr_Occurred()) SWIG_fail; | |
19103 | } | |
19104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
19105 | return resultobj; | |
19106 | fail: | |
19107 | return NULL; | |
19108 | } | |
19109 | ||
19110 | ||
c32bde28 | 19111 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19112 | PyObject *resultobj; |
19113 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
19114 | wxDC *result; | |
19115 | PyObject * obj0 = 0 ; | |
19116 | char *kwnames[] = { | |
19117 | (char *) "self", NULL | |
19118 | }; | |
19119 | ||
19120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEraseEvent, SWIG_POINTER_EXCEPTION | 0); |
19122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19123 | { |
19124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19125 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
19126 | ||
19127 | wxPyEndAllowThreads(__tstate); | |
19128 | if (PyErr_Occurred()) SWIG_fail; | |
19129 | } | |
19130 | { | |
412d302d | 19131 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19132 | } |
19133 | return resultobj; | |
19134 | fail: | |
19135 | return NULL; | |
19136 | } | |
19137 | ||
19138 | ||
c32bde28 | 19139 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19140 | PyObject *obj; |
19141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19142 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
19143 | Py_INCREF(obj); | |
19144 | return Py_BuildValue((char *)""); | |
19145 | } | |
c32bde28 | 19146 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19147 | PyObject *resultobj; |
19148 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19149 | int arg2 = (int) 0 ; | |
19150 | wxFocusEvent *result; | |
19151 | PyObject * obj0 = 0 ; | |
19152 | PyObject * obj1 = 0 ; | |
19153 | char *kwnames[] = { | |
19154 | (char *) "type",(char *) "winid", NULL | |
19155 | }; | |
19156 | ||
19157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
19158 | if (obj0) { | |
093d3ff1 RD |
19159 | { |
19160 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
19161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19162 | } | |
d55e5bfc RD |
19163 | } |
19164 | if (obj1) { | |
093d3ff1 RD |
19165 | { |
19166 | arg2 = (int)(SWIG_As_int(obj1)); | |
19167 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19168 | } | |
d55e5bfc RD |
19169 | } |
19170 | { | |
19171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19172 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
19173 | ||
19174 | wxPyEndAllowThreads(__tstate); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | } | |
19177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
19178 | return resultobj; | |
19179 | fail: | |
19180 | return NULL; | |
19181 | } | |
19182 | ||
19183 | ||
c32bde28 | 19184 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19185 | PyObject *resultobj; |
19186 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
19187 | wxWindow *result; | |
19188 | PyObject * obj0 = 0 ; | |
19189 | char *kwnames[] = { | |
19190 | (char *) "self", NULL | |
19191 | }; | |
19192 | ||
19193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19196 | { |
19197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19198 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
19199 | ||
19200 | wxPyEndAllowThreads(__tstate); | |
19201 | if (PyErr_Occurred()) SWIG_fail; | |
19202 | } | |
19203 | { | |
412d302d | 19204 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19205 | } |
19206 | return resultobj; | |
19207 | fail: | |
19208 | return NULL; | |
19209 | } | |
19210 | ||
19211 | ||
c32bde28 | 19212 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19213 | PyObject *resultobj; |
19214 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
19215 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19216 | PyObject * obj0 = 0 ; | |
19217 | PyObject * obj1 = 0 ; | |
19218 | char *kwnames[] = { | |
19219 | (char *) "self",(char *) "win", NULL | |
19220 | }; | |
19221 | ||
19222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19225 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
19226 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19227 | { |
19228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19229 | (arg1)->SetWindow(arg2); | |
19230 | ||
19231 | wxPyEndAllowThreads(__tstate); | |
19232 | if (PyErr_Occurred()) SWIG_fail; | |
19233 | } | |
19234 | Py_INCREF(Py_None); resultobj = Py_None; | |
19235 | return resultobj; | |
19236 | fail: | |
19237 | return NULL; | |
19238 | } | |
19239 | ||
19240 | ||
c32bde28 | 19241 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19242 | PyObject *obj; |
19243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19244 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
19245 | Py_INCREF(obj); | |
19246 | return Py_BuildValue((char *)""); | |
19247 | } | |
c32bde28 | 19248 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19249 | PyObject *resultobj; |
19250 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19251 | wxChildFocusEvent *result; | |
19252 | PyObject * obj0 = 0 ; | |
19253 | char *kwnames[] = { | |
19254 | (char *) "win", NULL | |
19255 | }; | |
19256 | ||
19257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
19258 | if (obj0) { | |
093d3ff1 RD |
19259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
19260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19261 | } |
19262 | { | |
19263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19264 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
19265 | ||
19266 | wxPyEndAllowThreads(__tstate); | |
19267 | if (PyErr_Occurred()) SWIG_fail; | |
19268 | } | |
19269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
19270 | return resultobj; | |
19271 | fail: | |
19272 | return NULL; | |
19273 | } | |
19274 | ||
19275 | ||
c32bde28 | 19276 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19277 | PyObject *resultobj; |
19278 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
19279 | wxWindow *result; | |
19280 | PyObject * obj0 = 0 ; | |
19281 | char *kwnames[] = { | |
19282 | (char *) "self", NULL | |
19283 | }; | |
19284 | ||
19285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChildFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19288 | { |
19289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19290 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
19291 | ||
19292 | wxPyEndAllowThreads(__tstate); | |
19293 | if (PyErr_Occurred()) SWIG_fail; | |
19294 | } | |
19295 | { | |
412d302d | 19296 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19297 | } |
19298 | return resultobj; | |
19299 | fail: | |
19300 | return NULL; | |
19301 | } | |
19302 | ||
19303 | ||
c32bde28 | 19304 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19305 | PyObject *obj; |
19306 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19307 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
19308 | Py_INCREF(obj); | |
19309 | return Py_BuildValue((char *)""); | |
19310 | } | |
c32bde28 | 19311 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19312 | PyObject *resultobj; |
19313 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
ae8162c8 | 19314 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19315 | int arg3 = (int) 0 ; |
19316 | wxActivateEvent *result; | |
19317 | PyObject * obj0 = 0 ; | |
19318 | PyObject * obj1 = 0 ; | |
19319 | PyObject * obj2 = 0 ; | |
19320 | char *kwnames[] = { | |
19321 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
19322 | }; | |
19323 | ||
19324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19325 | if (obj0) { | |
093d3ff1 RD |
19326 | { |
19327 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
19328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19329 | } | |
d55e5bfc RD |
19330 | } |
19331 | if (obj1) { | |
093d3ff1 RD |
19332 | { |
19333 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19335 | } | |
d55e5bfc RD |
19336 | } |
19337 | if (obj2) { | |
093d3ff1 RD |
19338 | { |
19339 | arg3 = (int)(SWIG_As_int(obj2)); | |
19340 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19341 | } | |
d55e5bfc RD |
19342 | } |
19343 | { | |
19344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19345 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
19346 | ||
19347 | wxPyEndAllowThreads(__tstate); | |
19348 | if (PyErr_Occurred()) SWIG_fail; | |
19349 | } | |
19350 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
19351 | return resultobj; | |
19352 | fail: | |
19353 | return NULL; | |
19354 | } | |
19355 | ||
19356 | ||
c32bde28 | 19357 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19358 | PyObject *resultobj; |
19359 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
19360 | bool result; | |
19361 | PyObject * obj0 = 0 ; | |
19362 | char *kwnames[] = { | |
19363 | (char *) "self", NULL | |
19364 | }; | |
19365 | ||
19366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActivateEvent, SWIG_POINTER_EXCEPTION | 0); |
19368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19369 | { |
19370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19371 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
19372 | ||
19373 | wxPyEndAllowThreads(__tstate); | |
19374 | if (PyErr_Occurred()) SWIG_fail; | |
19375 | } | |
19376 | { | |
19377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19378 | } | |
19379 | return resultobj; | |
19380 | fail: | |
19381 | return NULL; | |
19382 | } | |
19383 | ||
19384 | ||
c32bde28 | 19385 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19386 | PyObject *obj; |
19387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19388 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
19389 | Py_INCREF(obj); | |
19390 | return Py_BuildValue((char *)""); | |
19391 | } | |
c32bde28 | 19392 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19393 | PyObject *resultobj; |
19394 | int arg1 = (int) 0 ; | |
19395 | wxInitDialogEvent *result; | |
19396 | PyObject * obj0 = 0 ; | |
19397 | char *kwnames[] = { | |
19398 | (char *) "Id", NULL | |
19399 | }; | |
19400 | ||
19401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
19402 | if (obj0) { | |
093d3ff1 RD |
19403 | { |
19404 | arg1 = (int)(SWIG_As_int(obj0)); | |
19405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19406 | } | |
d55e5bfc RD |
19407 | } |
19408 | { | |
19409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19410 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
19411 | ||
19412 | wxPyEndAllowThreads(__tstate); | |
19413 | if (PyErr_Occurred()) SWIG_fail; | |
19414 | } | |
19415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
19416 | return resultobj; | |
19417 | fail: | |
19418 | return NULL; | |
19419 | } | |
19420 | ||
19421 | ||
c32bde28 | 19422 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19423 | PyObject *obj; |
19424 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19425 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
19426 | Py_INCREF(obj); | |
19427 | return Py_BuildValue((char *)""); | |
19428 | } | |
c32bde28 | 19429 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19430 | PyObject *resultobj; |
19431 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19432 | int arg2 = (int) 0 ; | |
19433 | wxMenu *arg3 = (wxMenu *) NULL ; | |
19434 | wxMenuEvent *result; | |
19435 | PyObject * obj0 = 0 ; | |
19436 | PyObject * obj1 = 0 ; | |
19437 | PyObject * obj2 = 0 ; | |
19438 | char *kwnames[] = { | |
19439 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
19440 | }; | |
19441 | ||
19442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19443 | if (obj0) { | |
093d3ff1 RD |
19444 | { |
19445 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
19446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19447 | } | |
d55e5bfc RD |
19448 | } |
19449 | if (obj1) { | |
093d3ff1 RD |
19450 | { |
19451 | arg2 = (int)(SWIG_As_int(obj1)); | |
19452 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19453 | } | |
d55e5bfc RD |
19454 | } |
19455 | if (obj2) { | |
093d3ff1 RD |
19456 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
19457 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
19458 | } |
19459 | { | |
19460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19461 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
19462 | ||
19463 | wxPyEndAllowThreads(__tstate); | |
19464 | if (PyErr_Occurred()) SWIG_fail; | |
19465 | } | |
19466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
19467 | return resultobj; | |
19468 | fail: | |
19469 | return NULL; | |
19470 | } | |
19471 | ||
19472 | ||
c32bde28 | 19473 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19474 | PyObject *resultobj; |
19475 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
19476 | int result; | |
19477 | PyObject * obj0 = 0 ; | |
19478 | char *kwnames[] = { | |
19479 | (char *) "self", NULL | |
19480 | }; | |
19481 | ||
19482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19483 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
19484 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19485 | { |
19486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19487 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
19488 | ||
19489 | wxPyEndAllowThreads(__tstate); | |
19490 | if (PyErr_Occurred()) SWIG_fail; | |
19491 | } | |
093d3ff1 RD |
19492 | { |
19493 | resultobj = SWIG_From_int((int)(result)); | |
19494 | } | |
d55e5bfc RD |
19495 | return resultobj; |
19496 | fail: | |
19497 | return NULL; | |
19498 | } | |
19499 | ||
19500 | ||
c32bde28 | 19501 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19502 | PyObject *resultobj; |
19503 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
19504 | bool result; | |
19505 | PyObject * obj0 = 0 ; | |
19506 | char *kwnames[] = { | |
19507 | (char *) "self", NULL | |
19508 | }; | |
19509 | ||
19510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
19512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19513 | { |
19514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19515 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
19516 | ||
19517 | wxPyEndAllowThreads(__tstate); | |
19518 | if (PyErr_Occurred()) SWIG_fail; | |
19519 | } | |
19520 | { | |
19521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19522 | } | |
19523 | return resultobj; | |
19524 | fail: | |
19525 | return NULL; | |
19526 | } | |
19527 | ||
19528 | ||
c32bde28 | 19529 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19530 | PyObject *resultobj; |
19531 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
19532 | wxMenu *result; | |
19533 | PyObject * obj0 = 0 ; | |
19534 | char *kwnames[] = { | |
19535 | (char *) "self", NULL | |
19536 | }; | |
19537 | ||
19538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
19540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19541 | { |
19542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19543 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
19544 | ||
19545 | wxPyEndAllowThreads(__tstate); | |
19546 | if (PyErr_Occurred()) SWIG_fail; | |
19547 | } | |
19548 | { | |
412d302d | 19549 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19550 | } |
19551 | return resultobj; | |
19552 | fail: | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
c32bde28 | 19557 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19558 | PyObject *obj; |
19559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19560 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
19561 | Py_INCREF(obj); | |
19562 | return Py_BuildValue((char *)""); | |
19563 | } | |
c32bde28 | 19564 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19565 | PyObject *resultobj; |
19566 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19567 | int arg2 = (int) 0 ; | |
19568 | wxCloseEvent *result; | |
19569 | PyObject * obj0 = 0 ; | |
19570 | PyObject * obj1 = 0 ; | |
19571 | char *kwnames[] = { | |
19572 | (char *) "type",(char *) "winid", NULL | |
19573 | }; | |
19574 | ||
19575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
19576 | if (obj0) { | |
093d3ff1 RD |
19577 | { |
19578 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
19579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19580 | } | |
d55e5bfc RD |
19581 | } |
19582 | if (obj1) { | |
093d3ff1 RD |
19583 | { |
19584 | arg2 = (int)(SWIG_As_int(obj1)); | |
19585 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19586 | } | |
d55e5bfc RD |
19587 | } |
19588 | { | |
19589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19590 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
19591 | ||
19592 | wxPyEndAllowThreads(__tstate); | |
19593 | if (PyErr_Occurred()) SWIG_fail; | |
19594 | } | |
19595 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
19596 | return resultobj; | |
19597 | fail: | |
19598 | return NULL; | |
19599 | } | |
19600 | ||
19601 | ||
c32bde28 | 19602 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19603 | PyObject *resultobj; |
19604 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
19605 | bool arg2 ; | |
19606 | PyObject * obj0 = 0 ; | |
19607 | PyObject * obj1 = 0 ; | |
19608 | char *kwnames[] = { | |
19609 | (char *) "self",(char *) "logOff", NULL | |
19610 | }; | |
19611 | ||
19612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19613 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
19614 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19615 | { | |
19616 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19617 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19618 | } | |
d55e5bfc RD |
19619 | { |
19620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19621 | (arg1)->SetLoggingOff(arg2); | |
19622 | ||
19623 | wxPyEndAllowThreads(__tstate); | |
19624 | if (PyErr_Occurred()) SWIG_fail; | |
19625 | } | |
19626 | Py_INCREF(Py_None); resultobj = Py_None; | |
19627 | return resultobj; | |
19628 | fail: | |
19629 | return NULL; | |
19630 | } | |
19631 | ||
19632 | ||
c32bde28 | 19633 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19634 | PyObject *resultobj; |
19635 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
19636 | bool result; | |
19637 | PyObject * obj0 = 0 ; | |
19638 | char *kwnames[] = { | |
19639 | (char *) "self", NULL | |
19640 | }; | |
19641 | ||
19642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
19644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19645 | { |
19646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19647 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
19648 | ||
19649 | wxPyEndAllowThreads(__tstate); | |
19650 | if (PyErr_Occurred()) SWIG_fail; | |
19651 | } | |
19652 | { | |
19653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19654 | } | |
19655 | return resultobj; | |
19656 | fail: | |
19657 | return NULL; | |
19658 | } | |
19659 | ||
19660 | ||
c32bde28 | 19661 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19662 | PyObject *resultobj; |
19663 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
ae8162c8 | 19664 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19665 | PyObject * obj0 = 0 ; |
19666 | PyObject * obj1 = 0 ; | |
19667 | char *kwnames[] = { | |
19668 | (char *) "self",(char *) "veto", NULL | |
19669 | }; | |
19670 | ||
19671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
19673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 19674 | if (obj1) { |
093d3ff1 RD |
19675 | { |
19676 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19678 | } | |
d55e5bfc RD |
19679 | } |
19680 | { | |
19681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19682 | (arg1)->Veto(arg2); | |
19683 | ||
19684 | wxPyEndAllowThreads(__tstate); | |
19685 | if (PyErr_Occurred()) SWIG_fail; | |
19686 | } | |
19687 | Py_INCREF(Py_None); resultobj = Py_None; | |
19688 | return resultobj; | |
19689 | fail: | |
19690 | return NULL; | |
19691 | } | |
19692 | ||
19693 | ||
c32bde28 | 19694 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19695 | PyObject *resultobj; |
19696 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
19697 | bool arg2 ; | |
19698 | PyObject * obj0 = 0 ; | |
19699 | PyObject * obj1 = 0 ; | |
19700 | char *kwnames[] = { | |
19701 | (char *) "self",(char *) "canVeto", NULL | |
19702 | }; | |
19703 | ||
19704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
19706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19707 | { | |
19708 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19709 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19710 | } | |
d55e5bfc RD |
19711 | { |
19712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19713 | (arg1)->SetCanVeto(arg2); | |
19714 | ||
19715 | wxPyEndAllowThreads(__tstate); | |
19716 | if (PyErr_Occurred()) SWIG_fail; | |
19717 | } | |
19718 | Py_INCREF(Py_None); resultobj = Py_None; | |
19719 | return resultobj; | |
19720 | fail: | |
19721 | return NULL; | |
19722 | } | |
19723 | ||
19724 | ||
c32bde28 | 19725 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19726 | PyObject *resultobj; |
19727 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
19728 | bool result; | |
19729 | PyObject * obj0 = 0 ; | |
19730 | char *kwnames[] = { | |
19731 | (char *) "self", NULL | |
19732 | }; | |
19733 | ||
19734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
19736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19737 | { |
19738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19739 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
19740 | ||
19741 | wxPyEndAllowThreads(__tstate); | |
19742 | if (PyErr_Occurred()) SWIG_fail; | |
19743 | } | |
19744 | { | |
19745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19746 | } | |
19747 | return resultobj; | |
19748 | fail: | |
19749 | return NULL; | |
19750 | } | |
19751 | ||
19752 | ||
c32bde28 | 19753 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19754 | PyObject *resultobj; |
19755 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
19756 | bool result; | |
19757 | PyObject * obj0 = 0 ; | |
19758 | char *kwnames[] = { | |
19759 | (char *) "self", NULL | |
19760 | }; | |
19761 | ||
19762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19763 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
19764 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19765 | { |
19766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19767 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
19768 | ||
19769 | wxPyEndAllowThreads(__tstate); | |
19770 | if (PyErr_Occurred()) SWIG_fail; | |
19771 | } | |
19772 | { | |
19773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19774 | } | |
19775 | return resultobj; | |
19776 | fail: | |
19777 | return NULL; | |
19778 | } | |
19779 | ||
19780 | ||
c32bde28 | 19781 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19782 | PyObject *obj; |
19783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19784 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
19785 | Py_INCREF(obj); | |
19786 | return Py_BuildValue((char *)""); | |
19787 | } | |
c32bde28 | 19788 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19789 | PyObject *resultobj; |
19790 | int arg1 = (int) 0 ; | |
ae8162c8 | 19791 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19792 | wxShowEvent *result; |
19793 | PyObject * obj0 = 0 ; | |
19794 | PyObject * obj1 = 0 ; | |
19795 | char *kwnames[] = { | |
19796 | (char *) "winid",(char *) "show", NULL | |
19797 | }; | |
19798 | ||
19799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
19800 | if (obj0) { | |
093d3ff1 RD |
19801 | { |
19802 | arg1 = (int)(SWIG_As_int(obj0)); | |
19803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19804 | } | |
d55e5bfc RD |
19805 | } |
19806 | if (obj1) { | |
093d3ff1 RD |
19807 | { |
19808 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19809 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19810 | } | |
d55e5bfc RD |
19811 | } |
19812 | { | |
19813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19814 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
19815 | ||
19816 | wxPyEndAllowThreads(__tstate); | |
19817 | if (PyErr_Occurred()) SWIG_fail; | |
19818 | } | |
19819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
19820 | return resultobj; | |
19821 | fail: | |
19822 | return NULL; | |
19823 | } | |
19824 | ||
19825 | ||
c32bde28 | 19826 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19827 | PyObject *resultobj; |
19828 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
19829 | bool arg2 ; | |
19830 | PyObject * obj0 = 0 ; | |
19831 | PyObject * obj1 = 0 ; | |
19832 | char *kwnames[] = { | |
19833 | (char *) "self",(char *) "show", NULL | |
19834 | }; | |
19835 | ||
19836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19837 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxShowEvent, SWIG_POINTER_EXCEPTION | 0); |
19838 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19839 | { | |
19840 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19841 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19842 | } | |
d55e5bfc RD |
19843 | { |
19844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19845 | (arg1)->SetShow(arg2); | |
19846 | ||
19847 | wxPyEndAllowThreads(__tstate); | |
19848 | if (PyErr_Occurred()) SWIG_fail; | |
19849 | } | |
19850 | Py_INCREF(Py_None); resultobj = Py_None; | |
19851 | return resultobj; | |
19852 | fail: | |
19853 | return NULL; | |
19854 | } | |
19855 | ||
19856 | ||
c32bde28 | 19857 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19858 | PyObject *resultobj; |
19859 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
19860 | bool result; | |
19861 | PyObject * obj0 = 0 ; | |
19862 | char *kwnames[] = { | |
19863 | (char *) "self", NULL | |
19864 | }; | |
19865 | ||
19866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxShowEvent, SWIG_POINTER_EXCEPTION | 0); |
19868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19869 | { |
19870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19871 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
19872 | ||
19873 | wxPyEndAllowThreads(__tstate); | |
19874 | if (PyErr_Occurred()) SWIG_fail; | |
19875 | } | |
19876 | { | |
19877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19878 | } | |
19879 | return resultobj; | |
19880 | fail: | |
19881 | return NULL; | |
19882 | } | |
19883 | ||
19884 | ||
c32bde28 | 19885 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19886 | PyObject *obj; |
19887 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19888 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
19889 | Py_INCREF(obj); | |
19890 | return Py_BuildValue((char *)""); | |
19891 | } | |
c32bde28 | 19892 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19893 | PyObject *resultobj; |
19894 | int arg1 = (int) 0 ; | |
ae8162c8 | 19895 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19896 | wxIconizeEvent *result; |
19897 | PyObject * obj0 = 0 ; | |
19898 | PyObject * obj1 = 0 ; | |
19899 | char *kwnames[] = { | |
19900 | (char *) "id",(char *) "iconized", NULL | |
19901 | }; | |
19902 | ||
19903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
19904 | if (obj0) { | |
093d3ff1 RD |
19905 | { |
19906 | arg1 = (int)(SWIG_As_int(obj0)); | |
19907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19908 | } | |
d55e5bfc RD |
19909 | } |
19910 | if (obj1) { | |
093d3ff1 RD |
19911 | { |
19912 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19914 | } | |
d55e5bfc RD |
19915 | } |
19916 | { | |
19917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19918 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
19919 | ||
19920 | wxPyEndAllowThreads(__tstate); | |
19921 | if (PyErr_Occurred()) SWIG_fail; | |
19922 | } | |
19923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
19924 | return resultobj; | |
19925 | fail: | |
19926 | return NULL; | |
19927 | } | |
19928 | ||
19929 | ||
c32bde28 | 19930 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19931 | PyObject *resultobj; |
19932 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
19933 | bool result; | |
19934 | PyObject * obj0 = 0 ; | |
19935 | char *kwnames[] = { | |
19936 | (char *) "self", NULL | |
19937 | }; | |
19938 | ||
19939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19942 | { |
19943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19944 | result = (bool)(arg1)->Iconized(); | |
19945 | ||
19946 | wxPyEndAllowThreads(__tstate); | |
19947 | if (PyErr_Occurred()) SWIG_fail; | |
19948 | } | |
19949 | { | |
19950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19951 | } | |
19952 | return resultobj; | |
19953 | fail: | |
19954 | return NULL; | |
19955 | } | |
19956 | ||
19957 | ||
c32bde28 | 19958 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19959 | PyObject *obj; |
19960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19961 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
19962 | Py_INCREF(obj); | |
19963 | return Py_BuildValue((char *)""); | |
19964 | } | |
c32bde28 | 19965 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19966 | PyObject *resultobj; |
19967 | int arg1 = (int) 0 ; | |
19968 | wxMaximizeEvent *result; | |
19969 | PyObject * obj0 = 0 ; | |
19970 | char *kwnames[] = { | |
19971 | (char *) "id", NULL | |
19972 | }; | |
19973 | ||
19974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
19975 | if (obj0) { | |
093d3ff1 RD |
19976 | { |
19977 | arg1 = (int)(SWIG_As_int(obj0)); | |
19978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19979 | } | |
d55e5bfc RD |
19980 | } |
19981 | { | |
19982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19983 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
19984 | ||
19985 | wxPyEndAllowThreads(__tstate); | |
19986 | if (PyErr_Occurred()) SWIG_fail; | |
19987 | } | |
19988 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
19989 | return resultobj; | |
19990 | fail: | |
19991 | return NULL; | |
19992 | } | |
19993 | ||
19994 | ||
c32bde28 | 19995 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19996 | PyObject *obj; |
19997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19998 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
19999 | Py_INCREF(obj); | |
20000 | return Py_BuildValue((char *)""); | |
20001 | } | |
c32bde28 | 20002 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20003 | PyObject *resultobj; |
20004 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20005 | wxPoint result; | |
20006 | PyObject * obj0 = 0 ; | |
20007 | char *kwnames[] = { | |
20008 | (char *) "self", NULL | |
20009 | }; | |
20010 | ||
20011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20014 | { |
20015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20016 | result = (arg1)->GetPosition(); | |
20017 | ||
20018 | wxPyEndAllowThreads(__tstate); | |
20019 | if (PyErr_Occurred()) SWIG_fail; | |
20020 | } | |
20021 | { | |
20022 | wxPoint * resultptr; | |
093d3ff1 | 20023 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
20024 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
20025 | } | |
20026 | return resultobj; | |
20027 | fail: | |
20028 | return NULL; | |
20029 | } | |
20030 | ||
20031 | ||
c32bde28 | 20032 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20033 | PyObject *resultobj; |
20034 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20035 | int result; | |
20036 | PyObject * obj0 = 0 ; | |
20037 | char *kwnames[] = { | |
20038 | (char *) "self", NULL | |
20039 | }; | |
20040 | ||
20041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20044 | { |
20045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20046 | result = (int)(arg1)->GetNumberOfFiles(); | |
20047 | ||
20048 | wxPyEndAllowThreads(__tstate); | |
20049 | if (PyErr_Occurred()) SWIG_fail; | |
20050 | } | |
093d3ff1 RD |
20051 | { |
20052 | resultobj = SWIG_From_int((int)(result)); | |
20053 | } | |
d55e5bfc RD |
20054 | return resultobj; |
20055 | fail: | |
20056 | return NULL; | |
20057 | } | |
20058 | ||
20059 | ||
c32bde28 | 20060 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20061 | PyObject *resultobj; |
20062 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20063 | PyObject *result; | |
20064 | PyObject * obj0 = 0 ; | |
20065 | char *kwnames[] = { | |
20066 | (char *) "self", NULL | |
20067 | }; | |
20068 | ||
20069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20072 | { |
20073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20074 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
20075 | ||
20076 | wxPyEndAllowThreads(__tstate); | |
20077 | if (PyErr_Occurred()) SWIG_fail; | |
20078 | } | |
20079 | resultobj = result; | |
20080 | return resultobj; | |
20081 | fail: | |
20082 | return NULL; | |
20083 | } | |
20084 | ||
20085 | ||
c32bde28 | 20086 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20087 | PyObject *obj; |
20088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20089 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
20090 | Py_INCREF(obj); | |
20091 | return Py_BuildValue((char *)""); | |
20092 | } | |
c32bde28 | 20093 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20094 | PyObject *resultobj; |
20095 | int arg1 = (int) 0 ; | |
20096 | wxUpdateUIEvent *result; | |
20097 | PyObject * obj0 = 0 ; | |
20098 | char *kwnames[] = { | |
20099 | (char *) "commandId", NULL | |
20100 | }; | |
20101 | ||
20102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
20103 | if (obj0) { | |
093d3ff1 RD |
20104 | { |
20105 | arg1 = (int)(SWIG_As_int(obj0)); | |
20106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20107 | } | |
d55e5bfc RD |
20108 | } |
20109 | { | |
20110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20111 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
20112 | ||
20113 | wxPyEndAllowThreads(__tstate); | |
20114 | if (PyErr_Occurred()) SWIG_fail; | |
20115 | } | |
20116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
20117 | return resultobj; | |
20118 | fail: | |
20119 | return NULL; | |
20120 | } | |
20121 | ||
20122 | ||
c32bde28 | 20123 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20124 | PyObject *resultobj; |
20125 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20126 | bool result; | |
20127 | PyObject * obj0 = 0 ; | |
20128 | char *kwnames[] = { | |
20129 | (char *) "self", NULL | |
20130 | }; | |
20131 | ||
20132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20135 | { |
20136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20137 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
20138 | ||
20139 | wxPyEndAllowThreads(__tstate); | |
20140 | if (PyErr_Occurred()) SWIG_fail; | |
20141 | } | |
20142 | { | |
20143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20144 | } | |
20145 | return resultobj; | |
20146 | fail: | |
20147 | return NULL; | |
20148 | } | |
20149 | ||
20150 | ||
c32bde28 | 20151 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20152 | PyObject *resultobj; |
20153 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20154 | bool result; | |
20155 | PyObject * obj0 = 0 ; | |
20156 | char *kwnames[] = { | |
20157 | (char *) "self", NULL | |
20158 | }; | |
20159 | ||
20160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20163 | { |
20164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20165 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
20166 | ||
20167 | wxPyEndAllowThreads(__tstate); | |
20168 | if (PyErr_Occurred()) SWIG_fail; | |
20169 | } | |
20170 | { | |
20171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20172 | } | |
20173 | return resultobj; | |
20174 | fail: | |
20175 | return NULL; | |
20176 | } | |
20177 | ||
20178 | ||
c32bde28 | 20179 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20180 | PyObject *resultobj; |
20181 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20182 | wxString result; | |
20183 | PyObject * obj0 = 0 ; | |
20184 | char *kwnames[] = { | |
20185 | (char *) "self", NULL | |
20186 | }; | |
20187 | ||
20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20191 | { |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20193 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
20194 | ||
20195 | wxPyEndAllowThreads(__tstate); | |
20196 | if (PyErr_Occurred()) SWIG_fail; | |
20197 | } | |
20198 | { | |
20199 | #if wxUSE_UNICODE | |
20200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20201 | #else | |
20202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20203 | #endif | |
20204 | } | |
20205 | return resultobj; | |
20206 | fail: | |
20207 | return NULL; | |
20208 | } | |
20209 | ||
20210 | ||
c32bde28 | 20211 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20212 | PyObject *resultobj; |
20213 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20214 | bool result; | |
20215 | PyObject * obj0 = 0 ; | |
20216 | char *kwnames[] = { | |
20217 | (char *) "self", NULL | |
20218 | }; | |
20219 | ||
20220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20223 | { |
20224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20225 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
20226 | ||
20227 | wxPyEndAllowThreads(__tstate); | |
20228 | if (PyErr_Occurred()) SWIG_fail; | |
20229 | } | |
20230 | { | |
20231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20232 | } | |
20233 | return resultobj; | |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
c32bde28 | 20239 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20240 | PyObject *resultobj; |
20241 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20242 | bool result; | |
20243 | PyObject * obj0 = 0 ; | |
20244 | char *kwnames[] = { | |
20245 | (char *) "self", NULL | |
20246 | }; | |
20247 | ||
20248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20251 | { |
20252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20253 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
20254 | ||
20255 | wxPyEndAllowThreads(__tstate); | |
20256 | if (PyErr_Occurred()) SWIG_fail; | |
20257 | } | |
20258 | { | |
20259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20260 | } | |
20261 | return resultobj; | |
20262 | fail: | |
20263 | return NULL; | |
20264 | } | |
20265 | ||
20266 | ||
c32bde28 | 20267 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20268 | PyObject *resultobj; |
20269 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20270 | bool result; | |
20271 | PyObject * obj0 = 0 ; | |
20272 | char *kwnames[] = { | |
20273 | (char *) "self", NULL | |
20274 | }; | |
20275 | ||
20276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20279 | { |
20280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20281 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
20282 | ||
20283 | wxPyEndAllowThreads(__tstate); | |
20284 | if (PyErr_Occurred()) SWIG_fail; | |
20285 | } | |
20286 | { | |
20287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20288 | } | |
20289 | return resultobj; | |
20290 | fail: | |
20291 | return NULL; | |
20292 | } | |
20293 | ||
20294 | ||
c32bde28 | 20295 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20296 | PyObject *resultobj; |
20297 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20298 | bool arg2 ; | |
20299 | PyObject * obj0 = 0 ; | |
20300 | PyObject * obj1 = 0 ; | |
20301 | char *kwnames[] = { | |
20302 | (char *) "self",(char *) "check", NULL | |
20303 | }; | |
20304 | ||
20305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20308 | { | |
20309 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20310 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20311 | } | |
d55e5bfc RD |
20312 | { |
20313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20314 | (arg1)->Check(arg2); | |
20315 | ||
20316 | wxPyEndAllowThreads(__tstate); | |
20317 | if (PyErr_Occurred()) SWIG_fail; | |
20318 | } | |
20319 | Py_INCREF(Py_None); resultobj = Py_None; | |
20320 | return resultobj; | |
20321 | fail: | |
20322 | return NULL; | |
20323 | } | |
20324 | ||
20325 | ||
c32bde28 | 20326 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20327 | PyObject *resultobj; |
20328 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20329 | bool arg2 ; | |
20330 | PyObject * obj0 = 0 ; | |
20331 | PyObject * obj1 = 0 ; | |
20332 | char *kwnames[] = { | |
20333 | (char *) "self",(char *) "enable", NULL | |
20334 | }; | |
20335 | ||
20336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20339 | { | |
20340 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20341 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20342 | } | |
d55e5bfc RD |
20343 | { |
20344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20345 | (arg1)->Enable(arg2); | |
20346 | ||
20347 | wxPyEndAllowThreads(__tstate); | |
20348 | if (PyErr_Occurred()) SWIG_fail; | |
20349 | } | |
20350 | Py_INCREF(Py_None); resultobj = Py_None; | |
20351 | return resultobj; | |
20352 | fail: | |
20353 | return NULL; | |
20354 | } | |
20355 | ||
20356 | ||
c32bde28 | 20357 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20358 | PyObject *resultobj; |
20359 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20360 | wxString *arg2 = 0 ; | |
ae8162c8 | 20361 | bool temp2 = false ; |
d55e5bfc RD |
20362 | PyObject * obj0 = 0 ; |
20363 | PyObject * obj1 = 0 ; | |
20364 | char *kwnames[] = { | |
20365 | (char *) "self",(char *) "text", NULL | |
20366 | }; | |
20367 | ||
20368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20371 | { |
20372 | arg2 = wxString_in_helper(obj1); | |
20373 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20374 | temp2 = true; |
d55e5bfc RD |
20375 | } |
20376 | { | |
20377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20378 | (arg1)->SetText((wxString const &)*arg2); | |
20379 | ||
20380 | wxPyEndAllowThreads(__tstate); | |
20381 | if (PyErr_Occurred()) SWIG_fail; | |
20382 | } | |
20383 | Py_INCREF(Py_None); resultobj = Py_None; | |
20384 | { | |
20385 | if (temp2) | |
20386 | delete arg2; | |
20387 | } | |
20388 | return resultobj; | |
20389 | fail: | |
20390 | { | |
20391 | if (temp2) | |
20392 | delete arg2; | |
20393 | } | |
20394 | return NULL; | |
20395 | } | |
20396 | ||
20397 | ||
c32bde28 | 20398 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20399 | PyObject *resultobj; |
20400 | long arg1 ; | |
20401 | PyObject * obj0 = 0 ; | |
20402 | char *kwnames[] = { | |
20403 | (char *) "updateInterval", NULL | |
20404 | }; | |
20405 | ||
20406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20407 | { |
20408 | arg1 = (long)(SWIG_As_long(obj0)); | |
20409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20410 | } | |
d55e5bfc RD |
20411 | { |
20412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20413 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
20414 | ||
20415 | wxPyEndAllowThreads(__tstate); | |
20416 | if (PyErr_Occurred()) SWIG_fail; | |
20417 | } | |
20418 | Py_INCREF(Py_None); resultobj = Py_None; | |
20419 | return resultobj; | |
20420 | fail: | |
20421 | return NULL; | |
20422 | } | |
20423 | ||
20424 | ||
c32bde28 | 20425 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20426 | PyObject *resultobj; |
20427 | long result; | |
20428 | char *kwnames[] = { | |
20429 | NULL | |
20430 | }; | |
20431 | ||
20432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
20433 | { | |
20434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20435 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
20436 | ||
20437 | wxPyEndAllowThreads(__tstate); | |
20438 | if (PyErr_Occurred()) SWIG_fail; | |
20439 | } | |
093d3ff1 RD |
20440 | { |
20441 | resultobj = SWIG_From_long((long)(result)); | |
20442 | } | |
d55e5bfc RD |
20443 | return resultobj; |
20444 | fail: | |
20445 | return NULL; | |
20446 | } | |
20447 | ||
20448 | ||
c32bde28 | 20449 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20450 | PyObject *resultobj; |
20451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20452 | bool result; | |
20453 | PyObject * obj0 = 0 ; | |
20454 | char *kwnames[] = { | |
20455 | (char *) "win", NULL | |
20456 | }; | |
20457 | ||
20458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
20460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20461 | { |
20462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20463 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
20464 | ||
20465 | wxPyEndAllowThreads(__tstate); | |
20466 | if (PyErr_Occurred()) SWIG_fail; | |
20467 | } | |
20468 | { | |
20469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20470 | } | |
20471 | return resultobj; | |
20472 | fail: | |
20473 | return NULL; | |
20474 | } | |
20475 | ||
20476 | ||
c32bde28 | 20477 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20478 | PyObject *resultobj; |
20479 | char *kwnames[] = { | |
20480 | NULL | |
20481 | }; | |
20482 | ||
20483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
20484 | { | |
20485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20486 | wxUpdateUIEvent::ResetUpdateTime(); | |
20487 | ||
20488 | wxPyEndAllowThreads(__tstate); | |
20489 | if (PyErr_Occurred()) SWIG_fail; | |
20490 | } | |
20491 | Py_INCREF(Py_None); resultobj = Py_None; | |
20492 | return resultobj; | |
20493 | fail: | |
20494 | return NULL; | |
20495 | } | |
20496 | ||
20497 | ||
c32bde28 | 20498 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 20499 | PyObject *resultobj; |
093d3ff1 | 20500 | wxUpdateUIMode arg1 ; |
d55e5bfc RD |
20501 | PyObject * obj0 = 0 ; |
20502 | char *kwnames[] = { | |
20503 | (char *) "mode", NULL | |
20504 | }; | |
20505 | ||
20506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20507 | { |
20508 | arg1 = (wxUpdateUIMode)(SWIG_As_int(obj0)); | |
20509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20510 | } | |
d55e5bfc RD |
20511 | { |
20512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20513 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
20514 | ||
20515 | wxPyEndAllowThreads(__tstate); | |
20516 | if (PyErr_Occurred()) SWIG_fail; | |
20517 | } | |
20518 | Py_INCREF(Py_None); resultobj = Py_None; | |
20519 | return resultobj; | |
20520 | fail: | |
20521 | return NULL; | |
20522 | } | |
20523 | ||
20524 | ||
c32bde28 | 20525 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 20526 | PyObject *resultobj; |
093d3ff1 | 20527 | wxUpdateUIMode result; |
d55e5bfc RD |
20528 | char *kwnames[] = { |
20529 | NULL | |
20530 | }; | |
20531 | ||
20532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
20533 | { | |
20534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 20535 | result = (wxUpdateUIMode)wxUpdateUIEvent::GetMode(); |
d55e5bfc RD |
20536 | |
20537 | wxPyEndAllowThreads(__tstate); | |
20538 | if (PyErr_Occurred()) SWIG_fail; | |
20539 | } | |
093d3ff1 | 20540 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
20541 | return resultobj; |
20542 | fail: | |
20543 | return NULL; | |
20544 | } | |
20545 | ||
20546 | ||
c32bde28 | 20547 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20548 | PyObject *obj; |
20549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20550 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
20551 | Py_INCREF(obj); | |
20552 | return Py_BuildValue((char *)""); | |
20553 | } | |
c32bde28 | 20554 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20555 | PyObject *resultobj; |
20556 | wxSysColourChangedEvent *result; | |
20557 | char *kwnames[] = { | |
20558 | NULL | |
20559 | }; | |
20560 | ||
20561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
20562 | { | |
20563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20564 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
20565 | ||
20566 | wxPyEndAllowThreads(__tstate); | |
20567 | if (PyErr_Occurred()) SWIG_fail; | |
20568 | } | |
20569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
20570 | return resultobj; | |
20571 | fail: | |
20572 | return NULL; | |
20573 | } | |
20574 | ||
20575 | ||
c32bde28 | 20576 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20577 | PyObject *obj; |
20578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20579 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
20580 | Py_INCREF(obj); | |
20581 | return Py_BuildValue((char *)""); | |
20582 | } | |
c32bde28 | 20583 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20584 | PyObject *resultobj; |
20585 | int arg1 = (int) 0 ; | |
20586 | wxWindow *arg2 = (wxWindow *) NULL ; | |
20587 | wxMouseCaptureChangedEvent *result; | |
20588 | PyObject * obj0 = 0 ; | |
20589 | PyObject * obj1 = 0 ; | |
20590 | char *kwnames[] = { | |
20591 | (char *) "winid",(char *) "gainedCapture", NULL | |
20592 | }; | |
20593 | ||
20594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
20595 | if (obj0) { | |
093d3ff1 RD |
20596 | { |
20597 | arg1 = (int)(SWIG_As_int(obj0)); | |
20598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20599 | } | |
d55e5bfc RD |
20600 | } |
20601 | if (obj1) { | |
093d3ff1 RD |
20602 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
20603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
20604 | } |
20605 | { | |
20606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20607 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
20608 | ||
20609 | wxPyEndAllowThreads(__tstate); | |
20610 | if (PyErr_Occurred()) SWIG_fail; | |
20611 | } | |
20612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
20613 | return resultobj; | |
20614 | fail: | |
20615 | return NULL; | |
20616 | } | |
20617 | ||
20618 | ||
c32bde28 | 20619 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20620 | PyObject *resultobj; |
20621 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
20622 | wxWindow *result; | |
20623 | PyObject * obj0 = 0 ; | |
20624 | char *kwnames[] = { | |
20625 | (char *) "self", NULL | |
20626 | }; | |
20627 | ||
20628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
20630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20631 | { |
20632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20633 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
20634 | ||
20635 | wxPyEndAllowThreads(__tstate); | |
20636 | if (PyErr_Occurred()) SWIG_fail; | |
20637 | } | |
20638 | { | |
412d302d | 20639 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20640 | } |
20641 | return resultobj; | |
20642 | fail: | |
20643 | return NULL; | |
20644 | } | |
20645 | ||
20646 | ||
c32bde28 | 20647 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20648 | PyObject *obj; |
20649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20650 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
20651 | Py_INCREF(obj); | |
20652 | return Py_BuildValue((char *)""); | |
20653 | } | |
c32bde28 | 20654 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20655 | PyObject *resultobj; |
20656 | wxDisplayChangedEvent *result; | |
20657 | char *kwnames[] = { | |
20658 | NULL | |
20659 | }; | |
20660 | ||
20661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
20662 | { | |
20663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20664 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
20665 | ||
20666 | wxPyEndAllowThreads(__tstate); | |
20667 | if (PyErr_Occurred()) SWIG_fail; | |
20668 | } | |
20669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
20670 | return resultobj; | |
20671 | fail: | |
20672 | return NULL; | |
20673 | } | |
20674 | ||
20675 | ||
c32bde28 | 20676 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20677 | PyObject *obj; |
20678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20679 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
20680 | Py_INCREF(obj); | |
20681 | return Py_BuildValue((char *)""); | |
20682 | } | |
c32bde28 | 20683 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20684 | PyObject *resultobj; |
20685 | int arg1 = (int) 0 ; | |
20686 | wxPaletteChangedEvent *result; | |
20687 | PyObject * obj0 = 0 ; | |
20688 | char *kwnames[] = { | |
20689 | (char *) "id", NULL | |
20690 | }; | |
20691 | ||
20692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
20693 | if (obj0) { | |
093d3ff1 RD |
20694 | { |
20695 | arg1 = (int)(SWIG_As_int(obj0)); | |
20696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20697 | } | |
d55e5bfc RD |
20698 | } |
20699 | { | |
20700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20701 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
20702 | ||
20703 | wxPyEndAllowThreads(__tstate); | |
20704 | if (PyErr_Occurred()) SWIG_fail; | |
20705 | } | |
20706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
20707 | return resultobj; | |
20708 | fail: | |
20709 | return NULL; | |
20710 | } | |
20711 | ||
20712 | ||
c32bde28 | 20713 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20714 | PyObject *resultobj; |
20715 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
20716 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20717 | PyObject * obj0 = 0 ; | |
20718 | PyObject * obj1 = 0 ; | |
20719 | char *kwnames[] = { | |
20720 | (char *) "self",(char *) "win", NULL | |
20721 | }; | |
20722 | ||
20723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
20725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20726 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
20727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
20728 | { |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | (arg1)->SetChangedWindow(arg2); | |
20731 | ||
20732 | wxPyEndAllowThreads(__tstate); | |
20733 | if (PyErr_Occurred()) SWIG_fail; | |
20734 | } | |
20735 | Py_INCREF(Py_None); resultobj = Py_None; | |
20736 | return resultobj; | |
20737 | fail: | |
20738 | return NULL; | |
20739 | } | |
20740 | ||
20741 | ||
c32bde28 | 20742 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20743 | PyObject *resultobj; |
20744 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
20745 | wxWindow *result; | |
20746 | PyObject * obj0 = 0 ; | |
20747 | char *kwnames[] = { | |
20748 | (char *) "self", NULL | |
20749 | }; | |
20750 | ||
20751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20752 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
20753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20754 | { |
20755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20756 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
20757 | ||
20758 | wxPyEndAllowThreads(__tstate); | |
20759 | if (PyErr_Occurred()) SWIG_fail; | |
20760 | } | |
20761 | { | |
412d302d | 20762 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20763 | } |
20764 | return resultobj; | |
20765 | fail: | |
20766 | return NULL; | |
20767 | } | |
20768 | ||
20769 | ||
c32bde28 | 20770 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20771 | PyObject *obj; |
20772 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20773 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
20774 | Py_INCREF(obj); | |
20775 | return Py_BuildValue((char *)""); | |
20776 | } | |
c32bde28 | 20777 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20778 | PyObject *resultobj; |
20779 | int arg1 = (int) 0 ; | |
20780 | wxQueryNewPaletteEvent *result; | |
20781 | PyObject * obj0 = 0 ; | |
20782 | char *kwnames[] = { | |
20783 | (char *) "winid", NULL | |
20784 | }; | |
20785 | ||
20786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
20787 | if (obj0) { | |
093d3ff1 RD |
20788 | { |
20789 | arg1 = (int)(SWIG_As_int(obj0)); | |
20790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20791 | } | |
d55e5bfc RD |
20792 | } |
20793 | { | |
20794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20795 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
20796 | ||
20797 | wxPyEndAllowThreads(__tstate); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | } | |
20800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
20801 | return resultobj; | |
20802 | fail: | |
20803 | return NULL; | |
20804 | } | |
20805 | ||
20806 | ||
c32bde28 | 20807 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20808 | PyObject *resultobj; |
20809 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
20810 | bool arg2 ; | |
20811 | PyObject * obj0 = 0 ; | |
20812 | PyObject * obj1 = 0 ; | |
20813 | char *kwnames[] = { | |
20814 | (char *) "self",(char *) "realized", NULL | |
20815 | }; | |
20816 | ||
20817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_EXCEPTION | 0); |
20819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20820 | { | |
20821 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20822 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20823 | } | |
d55e5bfc RD |
20824 | { |
20825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20826 | (arg1)->SetPaletteRealized(arg2); | |
20827 | ||
20828 | wxPyEndAllowThreads(__tstate); | |
20829 | if (PyErr_Occurred()) SWIG_fail; | |
20830 | } | |
20831 | Py_INCREF(Py_None); resultobj = Py_None; | |
20832 | return resultobj; | |
20833 | fail: | |
20834 | return NULL; | |
20835 | } | |
20836 | ||
20837 | ||
c32bde28 | 20838 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20839 | PyObject *resultobj; |
20840 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
20841 | bool result; | |
20842 | PyObject * obj0 = 0 ; | |
20843 | char *kwnames[] = { | |
20844 | (char *) "self", NULL | |
20845 | }; | |
20846 | ||
20847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_EXCEPTION | 0); |
20849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20850 | { |
20851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20852 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
20853 | ||
20854 | wxPyEndAllowThreads(__tstate); | |
20855 | if (PyErr_Occurred()) SWIG_fail; | |
20856 | } | |
20857 | { | |
20858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20859 | } | |
20860 | return resultobj; | |
20861 | fail: | |
20862 | return NULL; | |
20863 | } | |
20864 | ||
20865 | ||
c32bde28 | 20866 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20867 | PyObject *obj; |
20868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20869 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
20870 | Py_INCREF(obj); | |
20871 | return Py_BuildValue((char *)""); | |
20872 | } | |
c32bde28 | 20873 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20874 | PyObject *resultobj; |
20875 | wxNavigationKeyEvent *result; | |
20876 | char *kwnames[] = { | |
20877 | NULL | |
20878 | }; | |
20879 | ||
20880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
20881 | { | |
20882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20883 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
20884 | ||
20885 | wxPyEndAllowThreads(__tstate); | |
20886 | if (PyErr_Occurred()) SWIG_fail; | |
20887 | } | |
20888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
20889 | return resultobj; | |
20890 | fail: | |
20891 | return NULL; | |
20892 | } | |
20893 | ||
20894 | ||
c32bde28 | 20895 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20896 | PyObject *resultobj; |
20897 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
20898 | bool result; | |
20899 | PyObject * obj0 = 0 ; | |
20900 | char *kwnames[] = { | |
20901 | (char *) "self", NULL | |
20902 | }; | |
20903 | ||
20904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
20906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20907 | { |
20908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20909 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
20910 | ||
20911 | wxPyEndAllowThreads(__tstate); | |
20912 | if (PyErr_Occurred()) SWIG_fail; | |
20913 | } | |
20914 | { | |
20915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20916 | } | |
20917 | return resultobj; | |
20918 | fail: | |
20919 | return NULL; | |
20920 | } | |
20921 | ||
20922 | ||
c32bde28 | 20923 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20924 | PyObject *resultobj; |
20925 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
20926 | bool arg2 ; | |
20927 | PyObject * obj0 = 0 ; | |
20928 | PyObject * obj1 = 0 ; | |
20929 | char *kwnames[] = { | |
908b74cd | 20930 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
20931 | }; |
20932 | ||
20933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
20935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20936 | { | |
20937 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20938 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20939 | } | |
d55e5bfc RD |
20940 | { |
20941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20942 | (arg1)->SetDirection(arg2); | |
20943 | ||
20944 | wxPyEndAllowThreads(__tstate); | |
20945 | if (PyErr_Occurred()) SWIG_fail; | |
20946 | } | |
20947 | Py_INCREF(Py_None); resultobj = Py_None; | |
20948 | return resultobj; | |
20949 | fail: | |
20950 | return NULL; | |
20951 | } | |
20952 | ||
20953 | ||
c32bde28 | 20954 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20955 | PyObject *resultobj; |
20956 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
20957 | bool result; | |
20958 | PyObject * obj0 = 0 ; | |
20959 | char *kwnames[] = { | |
20960 | (char *) "self", NULL | |
20961 | }; | |
20962 | ||
20963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
20965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20966 | { |
20967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20968 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
20969 | ||
20970 | wxPyEndAllowThreads(__tstate); | |
20971 | if (PyErr_Occurred()) SWIG_fail; | |
20972 | } | |
20973 | { | |
20974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20975 | } | |
20976 | return resultobj; | |
20977 | fail: | |
20978 | return NULL; | |
20979 | } | |
20980 | ||
20981 | ||
c32bde28 | 20982 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20983 | PyObject *resultobj; |
20984 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
20985 | bool arg2 ; | |
20986 | PyObject * obj0 = 0 ; | |
20987 | PyObject * obj1 = 0 ; | |
20988 | char *kwnames[] = { | |
908b74cd | 20989 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
20990 | }; |
20991 | ||
20992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
20994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20995 | { | |
20996 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20997 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20998 | } | |
d55e5bfc RD |
20999 | { |
21000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21001 | (arg1)->SetWindowChange(arg2); | |
21002 | ||
21003 | wxPyEndAllowThreads(__tstate); | |
21004 | if (PyErr_Occurred()) SWIG_fail; | |
21005 | } | |
21006 | Py_INCREF(Py_None); resultobj = Py_None; | |
21007 | return resultobj; | |
21008 | fail: | |
21009 | return NULL; | |
21010 | } | |
21011 | ||
21012 | ||
c32bde28 | 21013 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
21014 | PyObject *resultobj; |
21015 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21016 | long arg2 ; | |
21017 | PyObject * obj0 = 0 ; | |
21018 | PyObject * obj1 = 0 ; | |
21019 | char *kwnames[] = { | |
21020 | (char *) "self",(char *) "flags", NULL | |
21021 | }; | |
21022 | ||
21023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21026 | { | |
21027 | arg2 = (long)(SWIG_As_long(obj1)); | |
21028 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21029 | } | |
908b74cd RD |
21030 | { |
21031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21032 | (arg1)->SetFlags(arg2); | |
21033 | ||
21034 | wxPyEndAllowThreads(__tstate); | |
21035 | if (PyErr_Occurred()) SWIG_fail; | |
21036 | } | |
21037 | Py_INCREF(Py_None); resultobj = Py_None; | |
21038 | return resultobj; | |
21039 | fail: | |
21040 | return NULL; | |
21041 | } | |
21042 | ||
21043 | ||
c32bde28 | 21044 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21045 | PyObject *resultobj; |
21046 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21047 | wxWindow *result; | |
21048 | PyObject * obj0 = 0 ; | |
21049 | char *kwnames[] = { | |
21050 | (char *) "self", NULL | |
21051 | }; | |
21052 | ||
21053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21056 | { |
21057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21058 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
21059 | ||
21060 | wxPyEndAllowThreads(__tstate); | |
21061 | if (PyErr_Occurred()) SWIG_fail; | |
21062 | } | |
21063 | { | |
412d302d | 21064 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21065 | } |
21066 | return resultobj; | |
21067 | fail: | |
21068 | return NULL; | |
21069 | } | |
21070 | ||
21071 | ||
c32bde28 | 21072 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21073 | PyObject *resultobj; |
21074 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21075 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21076 | PyObject * obj0 = 0 ; | |
21077 | PyObject * obj1 = 0 ; | |
21078 | char *kwnames[] = { | |
21079 | (char *) "self",(char *) "win", NULL | |
21080 | }; | |
21081 | ||
21082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21085 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21086 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
21087 | { |
21088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21089 | (arg1)->SetCurrentFocus(arg2); | |
21090 | ||
21091 | wxPyEndAllowThreads(__tstate); | |
21092 | if (PyErr_Occurred()) SWIG_fail; | |
21093 | } | |
21094 | Py_INCREF(Py_None); resultobj = Py_None; | |
21095 | return resultobj; | |
21096 | fail: | |
21097 | return NULL; | |
21098 | } | |
21099 | ||
21100 | ||
c32bde28 | 21101 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21102 | PyObject *obj; |
21103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21104 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
21105 | Py_INCREF(obj); | |
21106 | return Py_BuildValue((char *)""); | |
21107 | } | |
c32bde28 | 21108 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21109 | PyObject *resultobj; |
21110 | wxWindow *arg1 = (wxWindow *) NULL ; | |
21111 | wxWindowCreateEvent *result; | |
21112 | PyObject * obj0 = 0 ; | |
21113 | char *kwnames[] = { | |
21114 | (char *) "win", NULL | |
21115 | }; | |
21116 | ||
21117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
21118 | if (obj0) { | |
093d3ff1 RD |
21119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21121 | } |
21122 | { | |
21123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21124 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
21125 | ||
21126 | wxPyEndAllowThreads(__tstate); | |
21127 | if (PyErr_Occurred()) SWIG_fail; | |
21128 | } | |
21129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
21130 | return resultobj; | |
21131 | fail: | |
21132 | return NULL; | |
21133 | } | |
21134 | ||
21135 | ||
c32bde28 | 21136 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21137 | PyObject *resultobj; |
21138 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
21139 | wxWindow *result; | |
21140 | PyObject * obj0 = 0 ; | |
21141 | char *kwnames[] = { | |
21142 | (char *) "self", NULL | |
21143 | }; | |
21144 | ||
21145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowCreateEvent, SWIG_POINTER_EXCEPTION | 0); |
21147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21148 | { |
21149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21150 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
21151 | ||
21152 | wxPyEndAllowThreads(__tstate); | |
21153 | if (PyErr_Occurred()) SWIG_fail; | |
21154 | } | |
21155 | { | |
412d302d | 21156 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21157 | } |
21158 | return resultobj; | |
21159 | fail: | |
21160 | return NULL; | |
21161 | } | |
21162 | ||
21163 | ||
c32bde28 | 21164 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21165 | PyObject *obj; |
21166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21167 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
21168 | Py_INCREF(obj); | |
21169 | return Py_BuildValue((char *)""); | |
21170 | } | |
c32bde28 | 21171 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21172 | PyObject *resultobj; |
21173 | wxWindow *arg1 = (wxWindow *) NULL ; | |
21174 | wxWindowDestroyEvent *result; | |
21175 | PyObject * obj0 = 0 ; | |
21176 | char *kwnames[] = { | |
21177 | (char *) "win", NULL | |
21178 | }; | |
21179 | ||
21180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
21181 | if (obj0) { | |
093d3ff1 RD |
21182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21184 | } |
21185 | { | |
21186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21187 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
21188 | ||
21189 | wxPyEndAllowThreads(__tstate); | |
21190 | if (PyErr_Occurred()) SWIG_fail; | |
21191 | } | |
21192 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
21193 | return resultobj; | |
21194 | fail: | |
21195 | return NULL; | |
21196 | } | |
21197 | ||
21198 | ||
c32bde28 | 21199 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21200 | PyObject *resultobj; |
21201 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
21202 | wxWindow *result; | |
21203 | PyObject * obj0 = 0 ; | |
21204 | char *kwnames[] = { | |
21205 | (char *) "self", NULL | |
21206 | }; | |
21207 | ||
21208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDestroyEvent, SWIG_POINTER_EXCEPTION | 0); |
21210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21211 | { |
21212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21213 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
21214 | ||
21215 | wxPyEndAllowThreads(__tstate); | |
21216 | if (PyErr_Occurred()) SWIG_fail; | |
21217 | } | |
21218 | { | |
412d302d | 21219 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21220 | } |
21221 | return resultobj; | |
21222 | fail: | |
21223 | return NULL; | |
21224 | } | |
21225 | ||
21226 | ||
c32bde28 | 21227 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21228 | PyObject *obj; |
21229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21230 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
21231 | Py_INCREF(obj); | |
21232 | return Py_BuildValue((char *)""); | |
21233 | } | |
c32bde28 | 21234 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21235 | PyObject *resultobj; |
21236 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21237 | int arg2 = (int) 0 ; | |
21238 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21239 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21240 | wxContextMenuEvent *result; | |
21241 | wxPoint temp3 ; | |
21242 | PyObject * obj0 = 0 ; | |
21243 | PyObject * obj1 = 0 ; | |
21244 | PyObject * obj2 = 0 ; | |
21245 | char *kwnames[] = { | |
21246 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
21247 | }; | |
21248 | ||
21249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21250 | if (obj0) { | |
093d3ff1 RD |
21251 | { |
21252 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
21253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21254 | } | |
d55e5bfc RD |
21255 | } |
21256 | if (obj1) { | |
093d3ff1 RD |
21257 | { |
21258 | arg2 = (int)(SWIG_As_int(obj1)); | |
21259 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21260 | } | |
d55e5bfc RD |
21261 | } |
21262 | if (obj2) { | |
21263 | { | |
21264 | arg3 = &temp3; | |
21265 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21266 | } | |
21267 | } | |
21268 | { | |
21269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21270 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
21271 | ||
21272 | wxPyEndAllowThreads(__tstate); | |
21273 | if (PyErr_Occurred()) SWIG_fail; | |
21274 | } | |
21275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
21276 | return resultobj; | |
21277 | fail: | |
21278 | return NULL; | |
21279 | } | |
21280 | ||
21281 | ||
c32bde28 | 21282 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21283 | PyObject *resultobj; |
21284 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
21285 | wxPoint *result; | |
21286 | PyObject * obj0 = 0 ; | |
21287 | char *kwnames[] = { | |
21288 | (char *) "self", NULL | |
21289 | }; | |
21290 | ||
21291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
21293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21294 | { |
21295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21296 | { | |
21297 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
21298 | result = (wxPoint *) &_result_ref; | |
21299 | } | |
21300 | ||
21301 | wxPyEndAllowThreads(__tstate); | |
21302 | if (PyErr_Occurred()) SWIG_fail; | |
21303 | } | |
21304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
21305 | return resultobj; | |
21306 | fail: | |
21307 | return NULL; | |
21308 | } | |
21309 | ||
21310 | ||
c32bde28 | 21311 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21312 | PyObject *resultobj; |
21313 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
21314 | wxPoint *arg2 = 0 ; | |
21315 | wxPoint temp2 ; | |
21316 | PyObject * obj0 = 0 ; | |
21317 | PyObject * obj1 = 0 ; | |
21318 | char *kwnames[] = { | |
21319 | (char *) "self",(char *) "pos", NULL | |
21320 | }; | |
21321 | ||
21322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
21324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21325 | { |
21326 | arg2 = &temp2; | |
21327 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21328 | } | |
21329 | { | |
21330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21331 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
21332 | ||
21333 | wxPyEndAllowThreads(__tstate); | |
21334 | if (PyErr_Occurred()) SWIG_fail; | |
21335 | } | |
21336 | Py_INCREF(Py_None); resultobj = Py_None; | |
21337 | return resultobj; | |
21338 | fail: | |
21339 | return NULL; | |
21340 | } | |
21341 | ||
21342 | ||
c32bde28 | 21343 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21344 | PyObject *obj; |
21345 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21346 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
21347 | Py_INCREF(obj); | |
21348 | return Py_BuildValue((char *)""); | |
21349 | } | |
c32bde28 | 21350 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21351 | PyObject *resultobj; |
21352 | wxIdleEvent *result; | |
21353 | char *kwnames[] = { | |
21354 | NULL | |
21355 | }; | |
21356 | ||
21357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
21358 | { | |
21359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21360 | result = (wxIdleEvent *)new wxIdleEvent(); | |
21361 | ||
21362 | wxPyEndAllowThreads(__tstate); | |
21363 | if (PyErr_Occurred()) SWIG_fail; | |
21364 | } | |
21365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
21366 | return resultobj; | |
21367 | fail: | |
21368 | return NULL; | |
21369 | } | |
21370 | ||
21371 | ||
c32bde28 | 21372 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21373 | PyObject *resultobj; |
21374 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
ae8162c8 | 21375 | bool arg2 = (bool) true ; |
d55e5bfc RD |
21376 | PyObject * obj0 = 0 ; |
21377 | PyObject * obj1 = 0 ; | |
21378 | char *kwnames[] = { | |
21379 | (char *) "self",(char *) "needMore", NULL | |
21380 | }; | |
21381 | ||
21382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); |
21384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 21385 | if (obj1) { |
093d3ff1 RD |
21386 | { |
21387 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21389 | } | |
d55e5bfc RD |
21390 | } |
21391 | { | |
21392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21393 | (arg1)->RequestMore(arg2); | |
21394 | ||
21395 | wxPyEndAllowThreads(__tstate); | |
21396 | if (PyErr_Occurred()) SWIG_fail; | |
21397 | } | |
21398 | Py_INCREF(Py_None); resultobj = Py_None; | |
21399 | return resultobj; | |
21400 | fail: | |
21401 | return NULL; | |
21402 | } | |
21403 | ||
21404 | ||
c32bde28 | 21405 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21406 | PyObject *resultobj; |
21407 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
21408 | bool result; | |
21409 | PyObject * obj0 = 0 ; | |
21410 | char *kwnames[] = { | |
21411 | (char *) "self", NULL | |
21412 | }; | |
21413 | ||
21414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); |
21416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21417 | { |
21418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21419 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
21420 | ||
21421 | wxPyEndAllowThreads(__tstate); | |
21422 | if (PyErr_Occurred()) SWIG_fail; | |
21423 | } | |
21424 | { | |
21425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21426 | } | |
21427 | return resultobj; | |
21428 | fail: | |
21429 | return NULL; | |
21430 | } | |
21431 | ||
21432 | ||
c32bde28 | 21433 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 21434 | PyObject *resultobj; |
093d3ff1 | 21435 | wxIdleMode arg1 ; |
d55e5bfc RD |
21436 | PyObject * obj0 = 0 ; |
21437 | char *kwnames[] = { | |
21438 | (char *) "mode", NULL | |
21439 | }; | |
21440 | ||
21441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21442 | { |
21443 | arg1 = (wxIdleMode)(SWIG_As_int(obj0)); | |
21444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21445 | } | |
d55e5bfc RD |
21446 | { |
21447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21448 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
21449 | ||
21450 | wxPyEndAllowThreads(__tstate); | |
21451 | if (PyErr_Occurred()) SWIG_fail; | |
21452 | } | |
21453 | Py_INCREF(Py_None); resultobj = Py_None; | |
21454 | return resultobj; | |
21455 | fail: | |
21456 | return NULL; | |
21457 | } | |
21458 | ||
21459 | ||
c32bde28 | 21460 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 21461 | PyObject *resultobj; |
093d3ff1 | 21462 | wxIdleMode result; |
d55e5bfc RD |
21463 | char *kwnames[] = { |
21464 | NULL | |
21465 | }; | |
21466 | ||
21467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
21468 | { | |
21469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21470 | result = (wxIdleMode)wxIdleEvent::GetMode(); |
d55e5bfc RD |
21471 | |
21472 | wxPyEndAllowThreads(__tstate); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
21474 | } | |
093d3ff1 | 21475 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
21476 | return resultobj; |
21477 | fail: | |
21478 | return NULL; | |
21479 | } | |
21480 | ||
21481 | ||
c32bde28 | 21482 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21483 | PyObject *resultobj; |
21484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21485 | bool result; | |
21486 | PyObject * obj0 = 0 ; | |
21487 | char *kwnames[] = { | |
21488 | (char *) "win", NULL | |
21489 | }; | |
21490 | ||
21491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21494 | { |
21495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21496 | result = (bool)wxIdleEvent::CanSend(arg1); | |
21497 | ||
21498 | wxPyEndAllowThreads(__tstate); | |
21499 | if (PyErr_Occurred()) SWIG_fail; | |
21500 | } | |
21501 | { | |
21502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21503 | } | |
21504 | return resultobj; | |
21505 | fail: | |
21506 | return NULL; | |
21507 | } | |
21508 | ||
21509 | ||
c32bde28 | 21510 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21511 | PyObject *obj; |
21512 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21513 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
21514 | Py_INCREF(obj); | |
21515 | return Py_BuildValue((char *)""); | |
21516 | } | |
c32bde28 | 21517 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21518 | PyObject *resultobj; |
21519 | int arg1 = (int) 0 ; | |
21520 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
21521 | wxPyEvent *result; | |
21522 | PyObject * obj0 = 0 ; | |
21523 | PyObject * obj1 = 0 ; | |
21524 | char *kwnames[] = { | |
21525 | (char *) "winid",(char *) "commandType", NULL | |
21526 | }; | |
21527 | ||
21528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
21529 | if (obj0) { | |
093d3ff1 RD |
21530 | { |
21531 | arg1 = (int)(SWIG_As_int(obj0)); | |
21532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21533 | } | |
d55e5bfc RD |
21534 | } |
21535 | if (obj1) { | |
093d3ff1 RD |
21536 | { |
21537 | arg2 = (wxEventType)(SWIG_As_int(obj1)); | |
21538 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21539 | } | |
d55e5bfc RD |
21540 | } |
21541 | { | |
21542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21543 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
21544 | ||
21545 | wxPyEndAllowThreads(__tstate); | |
21546 | if (PyErr_Occurred()) SWIG_fail; | |
21547 | } | |
21548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
21549 | return resultobj; | |
21550 | fail: | |
21551 | return NULL; | |
21552 | } | |
21553 | ||
21554 | ||
c32bde28 | 21555 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21556 | PyObject *resultobj; |
21557 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
21558 | PyObject * obj0 = 0 ; | |
21559 | char *kwnames[] = { | |
21560 | (char *) "self", NULL | |
21561 | }; | |
21562 | ||
21563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
21565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21566 | { |
21567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21568 | delete arg1; | |
21569 | ||
21570 | wxPyEndAllowThreads(__tstate); | |
21571 | if (PyErr_Occurred()) SWIG_fail; | |
21572 | } | |
21573 | Py_INCREF(Py_None); resultobj = Py_None; | |
21574 | return resultobj; | |
21575 | fail: | |
21576 | return NULL; | |
21577 | } | |
21578 | ||
21579 | ||
c32bde28 | 21580 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21581 | PyObject *resultobj; |
21582 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
21583 | PyObject *arg2 = (PyObject *) 0 ; | |
21584 | PyObject * obj0 = 0 ; | |
21585 | PyObject * obj1 = 0 ; | |
21586 | char *kwnames[] = { | |
21587 | (char *) "self",(char *) "self", NULL | |
21588 | }; | |
21589 | ||
21590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
21592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21593 | arg2 = obj1; |
21594 | { | |
21595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21596 | (arg1)->SetSelf(arg2); | |
21597 | ||
21598 | wxPyEndAllowThreads(__tstate); | |
21599 | if (PyErr_Occurred()) SWIG_fail; | |
21600 | } | |
21601 | Py_INCREF(Py_None); resultobj = Py_None; | |
21602 | return resultobj; | |
21603 | fail: | |
21604 | return NULL; | |
21605 | } | |
21606 | ||
21607 | ||
c32bde28 | 21608 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21609 | PyObject *resultobj; |
21610 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
21611 | PyObject *result; | |
21612 | PyObject * obj0 = 0 ; | |
21613 | char *kwnames[] = { | |
21614 | (char *) "self", NULL | |
21615 | }; | |
21616 | ||
21617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
21619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21620 | { |
21621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21622 | result = (PyObject *)(arg1)->GetSelf(); | |
21623 | ||
21624 | wxPyEndAllowThreads(__tstate); | |
21625 | if (PyErr_Occurred()) SWIG_fail; | |
21626 | } | |
21627 | resultobj = result; | |
21628 | return resultobj; | |
21629 | fail: | |
21630 | return NULL; | |
21631 | } | |
21632 | ||
21633 | ||
c32bde28 | 21634 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21635 | PyObject *obj; |
21636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21637 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
21638 | Py_INCREF(obj); | |
21639 | return Py_BuildValue((char *)""); | |
21640 | } | |
c32bde28 | 21641 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21642 | PyObject *resultobj; |
21643 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
21644 | int arg2 = (int) 0 ; | |
21645 | wxPyCommandEvent *result; | |
21646 | PyObject * obj0 = 0 ; | |
21647 | PyObject * obj1 = 0 ; | |
21648 | char *kwnames[] = { | |
21649 | (char *) "commandType",(char *) "id", NULL | |
21650 | }; | |
21651 | ||
21652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
21653 | if (obj0) { | |
093d3ff1 RD |
21654 | { |
21655 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
21656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21657 | } | |
d55e5bfc RD |
21658 | } |
21659 | if (obj1) { | |
093d3ff1 RD |
21660 | { |
21661 | arg2 = (int)(SWIG_As_int(obj1)); | |
21662 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21663 | } | |
d55e5bfc RD |
21664 | } |
21665 | { | |
21666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21667 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
21668 | ||
21669 | wxPyEndAllowThreads(__tstate); | |
21670 | if (PyErr_Occurred()) SWIG_fail; | |
21671 | } | |
21672 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
21673 | return resultobj; | |
21674 | fail: | |
21675 | return NULL; | |
21676 | } | |
21677 | ||
21678 | ||
c32bde28 | 21679 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21680 | PyObject *resultobj; |
21681 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
21682 | PyObject * obj0 = 0 ; | |
21683 | char *kwnames[] = { | |
21684 | (char *) "self", NULL | |
21685 | }; | |
21686 | ||
21687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
21689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21690 | { |
21691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21692 | delete arg1; | |
21693 | ||
21694 | wxPyEndAllowThreads(__tstate); | |
21695 | if (PyErr_Occurred()) SWIG_fail; | |
21696 | } | |
21697 | Py_INCREF(Py_None); resultobj = Py_None; | |
21698 | return resultobj; | |
21699 | fail: | |
21700 | return NULL; | |
21701 | } | |
21702 | ||
21703 | ||
c32bde28 | 21704 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21705 | PyObject *resultobj; |
21706 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
21707 | PyObject *arg2 = (PyObject *) 0 ; | |
21708 | PyObject * obj0 = 0 ; | |
21709 | PyObject * obj1 = 0 ; | |
21710 | char *kwnames[] = { | |
21711 | (char *) "self",(char *) "self", NULL | |
21712 | }; | |
21713 | ||
21714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
21716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21717 | arg2 = obj1; |
21718 | { | |
21719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21720 | (arg1)->SetSelf(arg2); | |
21721 | ||
21722 | wxPyEndAllowThreads(__tstate); | |
21723 | if (PyErr_Occurred()) SWIG_fail; | |
21724 | } | |
21725 | Py_INCREF(Py_None); resultobj = Py_None; | |
21726 | return resultobj; | |
21727 | fail: | |
21728 | return NULL; | |
21729 | } | |
21730 | ||
21731 | ||
c32bde28 | 21732 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21733 | PyObject *resultobj; |
21734 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
21735 | PyObject *result; | |
21736 | PyObject * obj0 = 0 ; | |
21737 | char *kwnames[] = { | |
21738 | (char *) "self", NULL | |
21739 | }; | |
21740 | ||
21741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
21743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21744 | { |
21745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21746 | result = (PyObject *)(arg1)->GetSelf(); | |
21747 | ||
21748 | wxPyEndAllowThreads(__tstate); | |
21749 | if (PyErr_Occurred()) SWIG_fail; | |
21750 | } | |
21751 | resultobj = result; | |
21752 | return resultobj; | |
21753 | fail: | |
21754 | return NULL; | |
21755 | } | |
21756 | ||
21757 | ||
c32bde28 | 21758 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21759 | PyObject *obj; |
21760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21761 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
21762 | Py_INCREF(obj); | |
21763 | return Py_BuildValue((char *)""); | |
21764 | } | |
c32bde28 | 21765 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21766 | PyObject *resultobj; |
21767 | wxPyApp *result; | |
21768 | char *kwnames[] = { | |
21769 | NULL | |
21770 | }; | |
21771 | ||
21772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
21773 | { | |
21774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21775 | result = (wxPyApp *)new_wxPyApp(); | |
21776 | ||
21777 | wxPyEndAllowThreads(__tstate); | |
21778 | if (PyErr_Occurred()) SWIG_fail; | |
21779 | } | |
b0f7404b | 21780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
21781 | return resultobj; |
21782 | fail: | |
21783 | return NULL; | |
21784 | } | |
21785 | ||
21786 | ||
c32bde28 | 21787 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21788 | PyObject *resultobj; |
21789 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21790 | PyObject * obj0 = 0 ; | |
21791 | char *kwnames[] = { | |
21792 | (char *) "self", NULL | |
21793 | }; | |
21794 | ||
21795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
21797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21798 | { |
21799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21800 | delete arg1; | |
21801 | ||
21802 | wxPyEndAllowThreads(__tstate); | |
21803 | if (PyErr_Occurred()) SWIG_fail; | |
21804 | } | |
21805 | Py_INCREF(Py_None); resultobj = Py_None; | |
21806 | return resultobj; | |
21807 | fail: | |
21808 | return NULL; | |
21809 | } | |
21810 | ||
21811 | ||
c32bde28 | 21812 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21813 | PyObject *resultobj; |
21814 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21815 | PyObject *arg2 = (PyObject *) 0 ; | |
21816 | PyObject *arg3 = (PyObject *) 0 ; | |
21817 | PyObject * obj0 = 0 ; | |
21818 | PyObject * obj1 = 0 ; | |
21819 | PyObject * obj2 = 0 ; | |
21820 | char *kwnames[] = { | |
21821 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21822 | }; | |
21823 | ||
21824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
21825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
21826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21827 | arg2 = obj1; |
21828 | arg3 = obj2; | |
21829 | { | |
21830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21831 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21832 | ||
21833 | wxPyEndAllowThreads(__tstate); | |
21834 | if (PyErr_Occurred()) SWIG_fail; | |
21835 | } | |
21836 | Py_INCREF(Py_None); resultobj = Py_None; | |
21837 | return resultobj; | |
21838 | fail: | |
21839 | return NULL; | |
21840 | } | |
21841 | ||
21842 | ||
c32bde28 | 21843 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21844 | PyObject *resultobj; |
21845 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21846 | wxString result; | |
21847 | PyObject * obj0 = 0 ; | |
21848 | char *kwnames[] = { | |
21849 | (char *) "self", NULL | |
21850 | }; | |
21851 | ||
21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
21854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21855 | { |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
21858 | ||
21859 | wxPyEndAllowThreads(__tstate); | |
21860 | if (PyErr_Occurred()) SWIG_fail; | |
21861 | } | |
21862 | { | |
21863 | #if wxUSE_UNICODE | |
21864 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21865 | #else | |
21866 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21867 | #endif | |
21868 | } | |
21869 | return resultobj; | |
21870 | fail: | |
21871 | return NULL; | |
21872 | } | |
21873 | ||
21874 | ||
c32bde28 | 21875 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21876 | PyObject *resultobj; |
21877 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21878 | wxString *arg2 = 0 ; | |
ae8162c8 | 21879 | bool temp2 = false ; |
d55e5bfc RD |
21880 | PyObject * obj0 = 0 ; |
21881 | PyObject * obj1 = 0 ; | |
21882 | char *kwnames[] = { | |
21883 | (char *) "self",(char *) "name", NULL | |
21884 | }; | |
21885 | ||
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
21888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21889 | { |
21890 | arg2 = wxString_in_helper(obj1); | |
21891 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21892 | temp2 = true; |
d55e5bfc RD |
21893 | } |
21894 | { | |
21895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21896 | (arg1)->SetAppName((wxString const &)*arg2); | |
21897 | ||
21898 | wxPyEndAllowThreads(__tstate); | |
21899 | if (PyErr_Occurred()) SWIG_fail; | |
21900 | } | |
21901 | Py_INCREF(Py_None); resultobj = Py_None; | |
21902 | { | |
21903 | if (temp2) | |
21904 | delete arg2; | |
21905 | } | |
21906 | return resultobj; | |
21907 | fail: | |
21908 | { | |
21909 | if (temp2) | |
21910 | delete arg2; | |
21911 | } | |
21912 | return NULL; | |
21913 | } | |
21914 | ||
21915 | ||
c32bde28 | 21916 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21917 | PyObject *resultobj; |
21918 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21919 | wxString result; | |
21920 | PyObject * obj0 = 0 ; | |
21921 | char *kwnames[] = { | |
21922 | (char *) "self", NULL | |
21923 | }; | |
21924 | ||
21925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
21927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21928 | { |
21929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21930 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
21931 | ||
21932 | wxPyEndAllowThreads(__tstate); | |
21933 | if (PyErr_Occurred()) SWIG_fail; | |
21934 | } | |
21935 | { | |
21936 | #if wxUSE_UNICODE | |
21937 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21938 | #else | |
21939 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21940 | #endif | |
21941 | } | |
21942 | return resultobj; | |
21943 | fail: | |
21944 | return NULL; | |
21945 | } | |
21946 | ||
21947 | ||
c32bde28 | 21948 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21949 | PyObject *resultobj; |
21950 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21951 | wxString *arg2 = 0 ; | |
ae8162c8 | 21952 | bool temp2 = false ; |
d55e5bfc RD |
21953 | PyObject * obj0 = 0 ; |
21954 | PyObject * obj1 = 0 ; | |
21955 | char *kwnames[] = { | |
21956 | (char *) "self",(char *) "name", NULL | |
21957 | }; | |
21958 | ||
21959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
21961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21962 | { |
21963 | arg2 = wxString_in_helper(obj1); | |
21964 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21965 | temp2 = true; |
d55e5bfc RD |
21966 | } |
21967 | { | |
21968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21969 | (arg1)->SetClassName((wxString const &)*arg2); | |
21970 | ||
21971 | wxPyEndAllowThreads(__tstate); | |
21972 | if (PyErr_Occurred()) SWIG_fail; | |
21973 | } | |
21974 | Py_INCREF(Py_None); resultobj = Py_None; | |
21975 | { | |
21976 | if (temp2) | |
21977 | delete arg2; | |
21978 | } | |
21979 | return resultobj; | |
21980 | fail: | |
21981 | { | |
21982 | if (temp2) | |
21983 | delete arg2; | |
21984 | } | |
21985 | return NULL; | |
21986 | } | |
21987 | ||
21988 | ||
c32bde28 | 21989 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21990 | PyObject *resultobj; |
21991 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21992 | wxString *result; | |
21993 | PyObject * obj0 = 0 ; | |
21994 | char *kwnames[] = { | |
21995 | (char *) "self", NULL | |
21996 | }; | |
21997 | ||
21998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22001 | { |
22002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22003 | { | |
22004 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
22005 | result = (wxString *) &_result_ref; | |
22006 | } | |
22007 | ||
22008 | wxPyEndAllowThreads(__tstate); | |
22009 | if (PyErr_Occurred()) SWIG_fail; | |
22010 | } | |
22011 | { | |
22012 | #if wxUSE_UNICODE | |
22013 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22014 | #else | |
22015 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22016 | #endif | |
22017 | } | |
22018 | return resultobj; | |
22019 | fail: | |
22020 | return NULL; | |
22021 | } | |
22022 | ||
22023 | ||
c32bde28 | 22024 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22025 | PyObject *resultobj; |
22026 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22027 | wxString *arg2 = 0 ; | |
ae8162c8 | 22028 | bool temp2 = false ; |
d55e5bfc RD |
22029 | PyObject * obj0 = 0 ; |
22030 | PyObject * obj1 = 0 ; | |
22031 | char *kwnames[] = { | |
22032 | (char *) "self",(char *) "name", NULL | |
22033 | }; | |
22034 | ||
22035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22038 | { |
22039 | arg2 = wxString_in_helper(obj1); | |
22040 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22041 | temp2 = true; |
d55e5bfc RD |
22042 | } |
22043 | { | |
22044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22045 | (arg1)->SetVendorName((wxString const &)*arg2); | |
22046 | ||
22047 | wxPyEndAllowThreads(__tstate); | |
22048 | if (PyErr_Occurred()) SWIG_fail; | |
22049 | } | |
22050 | Py_INCREF(Py_None); resultobj = Py_None; | |
22051 | { | |
22052 | if (temp2) | |
22053 | delete arg2; | |
22054 | } | |
22055 | return resultobj; | |
22056 | fail: | |
22057 | { | |
22058 | if (temp2) | |
22059 | delete arg2; | |
22060 | } | |
22061 | return NULL; | |
22062 | } | |
22063 | ||
22064 | ||
c32bde28 | 22065 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22066 | PyObject *resultobj; |
22067 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22068 | wxAppTraits *result; | |
22069 | PyObject * obj0 = 0 ; | |
22070 | char *kwnames[] = { | |
22071 | (char *) "self", NULL | |
22072 | }; | |
22073 | ||
22074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22077 | { |
22078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22079 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
22080 | ||
22081 | wxPyEndAllowThreads(__tstate); | |
22082 | if (PyErr_Occurred()) SWIG_fail; | |
22083 | } | |
22084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
22085 | return resultobj; | |
22086 | fail: | |
22087 | return NULL; | |
22088 | } | |
22089 | ||
22090 | ||
c32bde28 | 22091 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22092 | PyObject *resultobj; |
22093 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22094 | PyObject * obj0 = 0 ; | |
22095 | char *kwnames[] = { | |
22096 | (char *) "self", NULL | |
22097 | }; | |
22098 | ||
22099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22102 | { |
22103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22104 | (arg1)->ProcessPendingEvents(); | |
22105 | ||
22106 | wxPyEndAllowThreads(__tstate); | |
22107 | if (PyErr_Occurred()) SWIG_fail; | |
22108 | } | |
22109 | Py_INCREF(Py_None); resultobj = Py_None; | |
22110 | return resultobj; | |
22111 | fail: | |
22112 | return NULL; | |
22113 | } | |
22114 | ||
22115 | ||
c32bde28 | 22116 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22117 | PyObject *resultobj; |
22118 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
ae8162c8 | 22119 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22120 | bool result; |
22121 | PyObject * obj0 = 0 ; | |
22122 | PyObject * obj1 = 0 ; | |
22123 | char *kwnames[] = { | |
22124 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
22125 | }; | |
22126 | ||
22127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 22130 | if (obj1) { |
093d3ff1 RD |
22131 | { |
22132 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
22133 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22134 | } | |
d55e5bfc RD |
22135 | } |
22136 | { | |
22137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22138 | result = (bool)(arg1)->Yield(arg2); | |
22139 | ||
22140 | wxPyEndAllowThreads(__tstate); | |
22141 | if (PyErr_Occurred()) SWIG_fail; | |
22142 | } | |
22143 | { | |
22144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22145 | } | |
22146 | return resultobj; | |
22147 | fail: | |
22148 | return NULL; | |
22149 | } | |
22150 | ||
22151 | ||
c32bde28 | 22152 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22153 | PyObject *resultobj; |
22154 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22155 | PyObject * obj0 = 0 ; | |
22156 | char *kwnames[] = { | |
22157 | (char *) "self", NULL | |
22158 | }; | |
22159 | ||
22160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22163 | { |
22164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22165 | (arg1)->WakeUpIdle(); | |
22166 | ||
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
22170 | Py_INCREF(Py_None); resultobj = Py_None; | |
22171 | return resultobj; | |
22172 | fail: | |
22173 | return NULL; | |
22174 | } | |
22175 | ||
22176 | ||
84f85550 RD |
22177 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
22178 | PyObject *resultobj; | |
22179 | bool result; | |
22180 | char *kwnames[] = { | |
22181 | NULL | |
22182 | }; | |
22183 | ||
22184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
22185 | { | |
22186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22187 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
22188 | ||
22189 | wxPyEndAllowThreads(__tstate); | |
22190 | if (PyErr_Occurred()) SWIG_fail; | |
22191 | } | |
22192 | { | |
22193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22194 | } | |
22195 | return resultobj; | |
22196 | fail: | |
22197 | return NULL; | |
22198 | } | |
22199 | ||
22200 | ||
c32bde28 | 22201 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22202 | PyObject *resultobj; |
22203 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22204 | int result; | |
22205 | PyObject * obj0 = 0 ; | |
22206 | char *kwnames[] = { | |
22207 | (char *) "self", NULL | |
22208 | }; | |
22209 | ||
22210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22213 | { |
22214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22215 | result = (int)(arg1)->MainLoop(); | |
22216 | ||
22217 | wxPyEndAllowThreads(__tstate); | |
22218 | if (PyErr_Occurred()) SWIG_fail; | |
22219 | } | |
093d3ff1 RD |
22220 | { |
22221 | resultobj = SWIG_From_int((int)(result)); | |
22222 | } | |
d55e5bfc RD |
22223 | return resultobj; |
22224 | fail: | |
22225 | return NULL; | |
22226 | } | |
22227 | ||
22228 | ||
c32bde28 | 22229 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22230 | PyObject *resultobj; |
22231 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22232 | PyObject * obj0 = 0 ; | |
22233 | char *kwnames[] = { | |
22234 | (char *) "self", NULL | |
22235 | }; | |
22236 | ||
22237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22240 | { |
22241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22242 | (arg1)->Exit(); | |
22243 | ||
22244 | wxPyEndAllowThreads(__tstate); | |
22245 | if (PyErr_Occurred()) SWIG_fail; | |
22246 | } | |
22247 | Py_INCREF(Py_None); resultobj = Py_None; | |
22248 | return resultobj; | |
22249 | fail: | |
22250 | return NULL; | |
22251 | } | |
22252 | ||
22253 | ||
c32bde28 | 22254 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22255 | PyObject *resultobj; |
22256 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22257 | PyObject * obj0 = 0 ; | |
22258 | char *kwnames[] = { | |
22259 | (char *) "self", NULL | |
22260 | }; | |
22261 | ||
22262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22265 | { |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22267 | (arg1)->ExitMainLoop(); | |
22268 | ||
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
22272 | Py_INCREF(Py_None); resultobj = Py_None; | |
22273 | return resultobj; | |
22274 | fail: | |
22275 | return NULL; | |
22276 | } | |
22277 | ||
22278 | ||
c32bde28 | 22279 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22280 | PyObject *resultobj; |
22281 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22282 | bool result; | |
22283 | PyObject * obj0 = 0 ; | |
22284 | char *kwnames[] = { | |
22285 | (char *) "self", NULL | |
22286 | }; | |
22287 | ||
22288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22291 | { |
22292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22293 | result = (bool)(arg1)->Pending(); | |
22294 | ||
22295 | wxPyEndAllowThreads(__tstate); | |
22296 | if (PyErr_Occurred()) SWIG_fail; | |
22297 | } | |
22298 | { | |
22299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22300 | } | |
22301 | return resultobj; | |
22302 | fail: | |
22303 | return NULL; | |
22304 | } | |
22305 | ||
22306 | ||
c32bde28 | 22307 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22308 | PyObject *resultobj; |
22309 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22310 | bool result; | |
22311 | PyObject * obj0 = 0 ; | |
22312 | char *kwnames[] = { | |
22313 | (char *) "self", NULL | |
22314 | }; | |
22315 | ||
22316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22319 | { |
22320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22321 | result = (bool)(arg1)->Dispatch(); | |
22322 | ||
22323 | wxPyEndAllowThreads(__tstate); | |
22324 | if (PyErr_Occurred()) SWIG_fail; | |
22325 | } | |
22326 | { | |
22327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22328 | } | |
22329 | return resultobj; | |
22330 | fail: | |
22331 | return NULL; | |
22332 | } | |
22333 | ||
22334 | ||
c32bde28 | 22335 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22336 | PyObject *resultobj; |
22337 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22338 | bool result; | |
22339 | PyObject * obj0 = 0 ; | |
22340 | char *kwnames[] = { | |
22341 | (char *) "self", NULL | |
22342 | }; | |
22343 | ||
22344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22347 | { |
22348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22349 | result = (bool)(arg1)->ProcessIdle(); | |
22350 | ||
22351 | wxPyEndAllowThreads(__tstate); | |
22352 | if (PyErr_Occurred()) SWIG_fail; | |
22353 | } | |
22354 | { | |
22355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22356 | } | |
22357 | return resultobj; | |
22358 | fail: | |
22359 | return NULL; | |
22360 | } | |
22361 | ||
22362 | ||
c32bde28 | 22363 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22364 | PyObject *resultobj; |
22365 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22366 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22367 | wxIdleEvent *arg3 = 0 ; | |
22368 | bool result; | |
22369 | PyObject * obj0 = 0 ; | |
22370 | PyObject * obj1 = 0 ; | |
22371 | PyObject * obj2 = 0 ; | |
22372 | char *kwnames[] = { | |
22373 | (char *) "self",(char *) "win",(char *) "event", NULL | |
22374 | }; | |
22375 | ||
22376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22379 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
22380 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22381 | { | |
22382 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); | |
22383 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22384 | if (arg3 == NULL) { | |
22385 | SWIG_null_ref("wxIdleEvent"); | |
22386 | } | |
22387 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
22388 | } |
22389 | { | |
22390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22391 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
22392 | ||
22393 | wxPyEndAllowThreads(__tstate); | |
22394 | if (PyErr_Occurred()) SWIG_fail; | |
22395 | } | |
22396 | { | |
22397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22398 | } | |
22399 | return resultobj; | |
22400 | fail: | |
22401 | return NULL; | |
22402 | } | |
22403 | ||
22404 | ||
c32bde28 | 22405 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22406 | PyObject *resultobj; |
22407 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22408 | bool result; | |
22409 | PyObject * obj0 = 0 ; | |
22410 | char *kwnames[] = { | |
22411 | (char *) "self", NULL | |
22412 | }; | |
22413 | ||
22414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22417 | { |
22418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22419 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
22420 | ||
22421 | wxPyEndAllowThreads(__tstate); | |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
22423 | } | |
22424 | { | |
22425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22426 | } | |
22427 | return resultobj; | |
22428 | fail: | |
22429 | return NULL; | |
22430 | } | |
22431 | ||
22432 | ||
c32bde28 | 22433 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22434 | PyObject *resultobj; |
22435 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22436 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22437 | PyObject * obj0 = 0 ; | |
22438 | PyObject * obj1 = 0 ; | |
22439 | char *kwnames[] = { | |
22440 | (char *) "self",(char *) "win", NULL | |
22441 | }; | |
22442 | ||
22443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22446 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
22447 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22448 | { |
22449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22450 | (arg1)->SetTopWindow(arg2); | |
22451 | ||
22452 | wxPyEndAllowThreads(__tstate); | |
22453 | if (PyErr_Occurred()) SWIG_fail; | |
22454 | } | |
22455 | Py_INCREF(Py_None); resultobj = Py_None; | |
22456 | return resultobj; | |
22457 | fail: | |
22458 | return NULL; | |
22459 | } | |
22460 | ||
22461 | ||
c32bde28 | 22462 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22463 | PyObject *resultobj; |
22464 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22465 | wxWindow *result; | |
22466 | PyObject * obj0 = 0 ; | |
22467 | char *kwnames[] = { | |
22468 | (char *) "self", NULL | |
22469 | }; | |
22470 | ||
22471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22474 | { |
22475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22476 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
22477 | ||
22478 | wxPyEndAllowThreads(__tstate); | |
22479 | if (PyErr_Occurred()) SWIG_fail; | |
22480 | } | |
22481 | { | |
412d302d | 22482 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22483 | } |
22484 | return resultobj; | |
22485 | fail: | |
22486 | return NULL; | |
22487 | } | |
22488 | ||
22489 | ||
c32bde28 | 22490 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22491 | PyObject *resultobj; |
22492 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22493 | bool arg2 ; | |
22494 | PyObject * obj0 = 0 ; | |
22495 | PyObject * obj1 = 0 ; | |
22496 | char *kwnames[] = { | |
22497 | (char *) "self",(char *) "flag", NULL | |
22498 | }; | |
22499 | ||
22500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22503 | { | |
22504 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
22505 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22506 | } | |
d55e5bfc RD |
22507 | { |
22508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22509 | (arg1)->SetExitOnFrameDelete(arg2); | |
22510 | ||
22511 | wxPyEndAllowThreads(__tstate); | |
22512 | if (PyErr_Occurred()) SWIG_fail; | |
22513 | } | |
22514 | Py_INCREF(Py_None); resultobj = Py_None; | |
22515 | return resultobj; | |
22516 | fail: | |
22517 | return NULL; | |
22518 | } | |
22519 | ||
22520 | ||
c32bde28 | 22521 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22522 | PyObject *resultobj; |
22523 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22524 | bool result; | |
22525 | PyObject * obj0 = 0 ; | |
22526 | char *kwnames[] = { | |
22527 | (char *) "self", NULL | |
22528 | }; | |
22529 | ||
22530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22533 | { |
22534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22535 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
22536 | ||
22537 | wxPyEndAllowThreads(__tstate); | |
22538 | if (PyErr_Occurred()) SWIG_fail; | |
22539 | } | |
22540 | { | |
22541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22542 | } | |
22543 | return resultobj; | |
22544 | fail: | |
22545 | return NULL; | |
22546 | } | |
22547 | ||
22548 | ||
c32bde28 | 22549 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22550 | PyObject *resultobj; |
22551 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22552 | bool arg2 ; | |
22553 | PyObject * obj0 = 0 ; | |
22554 | PyObject * obj1 = 0 ; | |
22555 | char *kwnames[] = { | |
22556 | (char *) "self",(char *) "flag", NULL | |
22557 | }; | |
22558 | ||
22559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22562 | { | |
22563 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
22564 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22565 | } | |
d55e5bfc RD |
22566 | { |
22567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22568 | (arg1)->SetUseBestVisual(arg2); | |
22569 | ||
22570 | wxPyEndAllowThreads(__tstate); | |
22571 | if (PyErr_Occurred()) SWIG_fail; | |
22572 | } | |
22573 | Py_INCREF(Py_None); resultobj = Py_None; | |
22574 | return resultobj; | |
22575 | fail: | |
22576 | return NULL; | |
22577 | } | |
22578 | ||
22579 | ||
c32bde28 | 22580 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22581 | PyObject *resultobj; |
22582 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22583 | bool result; | |
22584 | PyObject * obj0 = 0 ; | |
22585 | char *kwnames[] = { | |
22586 | (char *) "self", NULL | |
22587 | }; | |
22588 | ||
22589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22592 | { |
22593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22594 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
22595 | ||
22596 | wxPyEndAllowThreads(__tstate); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
22599 | { | |
22600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22601 | } | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
c32bde28 | 22608 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22609 | PyObject *resultobj; |
22610 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22611 | int arg2 ; | |
22612 | PyObject * obj0 = 0 ; | |
22613 | PyObject * obj1 = 0 ; | |
22614 | char *kwnames[] = { | |
22615 | (char *) "self",(char *) "mode", NULL | |
22616 | }; | |
22617 | ||
22618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22621 | { | |
22622 | arg2 = (int)(SWIG_As_int(obj1)); | |
22623 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22624 | } | |
d55e5bfc RD |
22625 | { |
22626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22627 | (arg1)->SetPrintMode(arg2); | |
22628 | ||
22629 | wxPyEndAllowThreads(__tstate); | |
22630 | if (PyErr_Occurred()) SWIG_fail; | |
22631 | } | |
22632 | Py_INCREF(Py_None); resultobj = Py_None; | |
22633 | return resultobj; | |
22634 | fail: | |
22635 | return NULL; | |
22636 | } | |
22637 | ||
22638 | ||
c32bde28 | 22639 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22640 | PyObject *resultobj; |
22641 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22642 | int result; | |
22643 | PyObject * obj0 = 0 ; | |
22644 | char *kwnames[] = { | |
22645 | (char *) "self", NULL | |
22646 | }; | |
22647 | ||
22648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22651 | { |
22652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22653 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
22654 | ||
22655 | wxPyEndAllowThreads(__tstate); | |
22656 | if (PyErr_Occurred()) SWIG_fail; | |
22657 | } | |
093d3ff1 RD |
22658 | { |
22659 | resultobj = SWIG_From_int((int)(result)); | |
22660 | } | |
d55e5bfc RD |
22661 | return resultobj; |
22662 | fail: | |
22663 | return NULL; | |
22664 | } | |
22665 | ||
22666 | ||
c32bde28 | 22667 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22668 | PyObject *resultobj; |
22669 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22670 | int arg2 ; | |
22671 | PyObject * obj0 = 0 ; | |
22672 | PyObject * obj1 = 0 ; | |
22673 | char *kwnames[] = { | |
22674 | (char *) "self",(char *) "mode", NULL | |
22675 | }; | |
22676 | ||
22677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22680 | { | |
22681 | arg2 = (int)(SWIG_As_int(obj1)); | |
22682 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22683 | } | |
d55e5bfc RD |
22684 | { |
22685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22686 | (arg1)->SetAssertMode(arg2); | |
22687 | ||
22688 | wxPyEndAllowThreads(__tstate); | |
22689 | if (PyErr_Occurred()) SWIG_fail; | |
22690 | } | |
22691 | Py_INCREF(Py_None); resultobj = Py_None; | |
22692 | return resultobj; | |
22693 | fail: | |
22694 | return NULL; | |
22695 | } | |
22696 | ||
22697 | ||
c32bde28 | 22698 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22699 | PyObject *resultobj; |
22700 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22701 | int result; | |
22702 | PyObject * obj0 = 0 ; | |
22703 | char *kwnames[] = { | |
22704 | (char *) "self", NULL | |
22705 | }; | |
22706 | ||
22707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22710 | { |
22711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22712 | result = (int)(arg1)->GetAssertMode(); | |
22713 | ||
22714 | wxPyEndAllowThreads(__tstate); | |
22715 | if (PyErr_Occurred()) SWIG_fail; | |
22716 | } | |
093d3ff1 RD |
22717 | { |
22718 | resultobj = SWIG_From_int((int)(result)); | |
22719 | } | |
d55e5bfc RD |
22720 | return resultobj; |
22721 | fail: | |
22722 | return NULL; | |
22723 | } | |
22724 | ||
22725 | ||
c32bde28 | 22726 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22727 | PyObject *resultobj; |
22728 | bool result; | |
22729 | char *kwnames[] = { | |
22730 | NULL | |
22731 | }; | |
22732 | ||
22733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
22734 | { | |
22735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22736 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
22737 | ||
22738 | wxPyEndAllowThreads(__tstate); | |
22739 | if (PyErr_Occurred()) SWIG_fail; | |
22740 | } | |
22741 | { | |
22742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22743 | } | |
22744 | return resultobj; | |
22745 | fail: | |
22746 | return NULL; | |
22747 | } | |
22748 | ||
22749 | ||
c32bde28 | 22750 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22751 | PyObject *resultobj; |
22752 | long result; | |
22753 | char *kwnames[] = { | |
22754 | NULL | |
22755 | }; | |
22756 | ||
22757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
22758 | { | |
22759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22760 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
22761 | ||
22762 | wxPyEndAllowThreads(__tstate); | |
22763 | if (PyErr_Occurred()) SWIG_fail; | |
22764 | } | |
093d3ff1 RD |
22765 | { |
22766 | resultobj = SWIG_From_long((long)(result)); | |
22767 | } | |
d55e5bfc RD |
22768 | return resultobj; |
22769 | fail: | |
22770 | return NULL; | |
22771 | } | |
22772 | ||
22773 | ||
c32bde28 | 22774 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22775 | PyObject *resultobj; |
22776 | long result; | |
22777 | char *kwnames[] = { | |
22778 | NULL | |
22779 | }; | |
22780 | ||
22781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
22782 | { | |
22783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22784 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
22785 | ||
22786 | wxPyEndAllowThreads(__tstate); | |
22787 | if (PyErr_Occurred()) SWIG_fail; | |
22788 | } | |
093d3ff1 RD |
22789 | { |
22790 | resultobj = SWIG_From_long((long)(result)); | |
22791 | } | |
d55e5bfc RD |
22792 | return resultobj; |
22793 | fail: | |
22794 | return NULL; | |
22795 | } | |
22796 | ||
22797 | ||
c32bde28 | 22798 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22799 | PyObject *resultobj; |
22800 | long result; | |
22801 | char *kwnames[] = { | |
22802 | NULL | |
22803 | }; | |
22804 | ||
22805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
22806 | { | |
22807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22808 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
22809 | ||
22810 | wxPyEndAllowThreads(__tstate); | |
22811 | if (PyErr_Occurred()) SWIG_fail; | |
22812 | } | |
093d3ff1 RD |
22813 | { |
22814 | resultobj = SWIG_From_long((long)(result)); | |
22815 | } | |
d55e5bfc RD |
22816 | return resultobj; |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
c32bde28 | 22822 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22823 | PyObject *resultobj; |
22824 | wxString result; | |
22825 | char *kwnames[] = { | |
22826 | NULL | |
22827 | }; | |
22828 | ||
22829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
22830 | { | |
22831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22832 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
22833 | ||
22834 | wxPyEndAllowThreads(__tstate); | |
22835 | if (PyErr_Occurred()) SWIG_fail; | |
22836 | } | |
22837 | { | |
22838 | #if wxUSE_UNICODE | |
22839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22840 | #else | |
22841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22842 | #endif | |
22843 | } | |
22844 | return resultobj; | |
22845 | fail: | |
22846 | return NULL; | |
22847 | } | |
22848 | ||
22849 | ||
c32bde28 | 22850 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22851 | PyObject *resultobj; |
22852 | bool arg1 ; | |
22853 | PyObject * obj0 = 0 ; | |
22854 | char *kwnames[] = { | |
22855 | (char *) "val", NULL | |
22856 | }; | |
22857 | ||
22858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22859 | { |
22860 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
22861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22862 | } | |
d55e5bfc RD |
22863 | { |
22864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22865 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
22866 | ||
22867 | wxPyEndAllowThreads(__tstate); | |
22868 | if (PyErr_Occurred()) SWIG_fail; | |
22869 | } | |
22870 | Py_INCREF(Py_None); resultobj = Py_None; | |
22871 | return resultobj; | |
22872 | fail: | |
22873 | return NULL; | |
22874 | } | |
22875 | ||
22876 | ||
c32bde28 | 22877 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22878 | PyObject *resultobj; |
22879 | long arg1 ; | |
22880 | PyObject * obj0 = 0 ; | |
22881 | char *kwnames[] = { | |
22882 | (char *) "val", NULL | |
22883 | }; | |
22884 | ||
22885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22886 | { |
22887 | arg1 = (long)(SWIG_As_long(obj0)); | |
22888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22889 | } | |
d55e5bfc RD |
22890 | { |
22891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22892 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
22893 | ||
22894 | wxPyEndAllowThreads(__tstate); | |
22895 | if (PyErr_Occurred()) SWIG_fail; | |
22896 | } | |
22897 | Py_INCREF(Py_None); resultobj = Py_None; | |
22898 | return resultobj; | |
22899 | fail: | |
22900 | return NULL; | |
22901 | } | |
22902 | ||
22903 | ||
c32bde28 | 22904 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22905 | PyObject *resultobj; |
22906 | long arg1 ; | |
22907 | PyObject * obj0 = 0 ; | |
22908 | char *kwnames[] = { | |
22909 | (char *) "val", NULL | |
22910 | }; | |
22911 | ||
22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22913 | { |
22914 | arg1 = (long)(SWIG_As_long(obj0)); | |
22915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22916 | } | |
d55e5bfc RD |
22917 | { |
22918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22919 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
22920 | ||
22921 | wxPyEndAllowThreads(__tstate); | |
22922 | if (PyErr_Occurred()) SWIG_fail; | |
22923 | } | |
22924 | Py_INCREF(Py_None); resultobj = Py_None; | |
22925 | return resultobj; | |
22926 | fail: | |
22927 | return NULL; | |
22928 | } | |
22929 | ||
22930 | ||
c32bde28 | 22931 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22932 | PyObject *resultobj; |
22933 | long arg1 ; | |
22934 | PyObject * obj0 = 0 ; | |
22935 | char *kwnames[] = { | |
22936 | (char *) "val", NULL | |
22937 | }; | |
22938 | ||
22939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22940 | { |
22941 | arg1 = (long)(SWIG_As_long(obj0)); | |
22942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22943 | } | |
d55e5bfc RD |
22944 | { |
22945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22946 | wxPyApp::SetMacExitMenuItemId(arg1); | |
22947 | ||
22948 | wxPyEndAllowThreads(__tstate); | |
22949 | if (PyErr_Occurred()) SWIG_fail; | |
22950 | } | |
22951 | Py_INCREF(Py_None); resultobj = Py_None; | |
22952 | return resultobj; | |
22953 | fail: | |
22954 | return NULL; | |
22955 | } | |
22956 | ||
22957 | ||
c32bde28 | 22958 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22959 | PyObject *resultobj; |
22960 | wxString *arg1 = 0 ; | |
ae8162c8 | 22961 | bool temp1 = false ; |
d55e5bfc RD |
22962 | PyObject * obj0 = 0 ; |
22963 | char *kwnames[] = { | |
22964 | (char *) "val", NULL | |
22965 | }; | |
22966 | ||
22967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
22968 | { | |
22969 | arg1 = wxString_in_helper(obj0); | |
22970 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 22971 | temp1 = true; |
d55e5bfc RD |
22972 | } |
22973 | { | |
22974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22975 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
22976 | ||
22977 | wxPyEndAllowThreads(__tstate); | |
22978 | if (PyErr_Occurred()) SWIG_fail; | |
22979 | } | |
22980 | Py_INCREF(Py_None); resultobj = Py_None; | |
22981 | { | |
22982 | if (temp1) | |
22983 | delete arg1; | |
22984 | } | |
22985 | return resultobj; | |
22986 | fail: | |
22987 | { | |
22988 | if (temp1) | |
22989 | delete arg1; | |
22990 | } | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
c32bde28 | 22995 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22996 | PyObject *resultobj; |
22997 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22998 | PyObject * obj0 = 0 ; | |
22999 | char *kwnames[] = { | |
23000 | (char *) "self", NULL | |
23001 | }; | |
23002 | ||
23003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",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 | (arg1)->_BootstrapApp(); | |
23009 | ||
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
23013 | Py_INCREF(Py_None); resultobj = Py_None; | |
23014 | return resultobj; | |
23015 | fail: | |
23016 | return NULL; | |
23017 | } | |
23018 | ||
23019 | ||
c32bde28 | 23020 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23021 | PyObject *resultobj; |
23022 | int result; | |
23023 | char *kwnames[] = { | |
23024 | NULL | |
23025 | }; | |
23026 | ||
23027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
23028 | { | |
23029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23030 | result = (int)wxPyApp::GetComCtl32Version(); | |
23031 | ||
23032 | wxPyEndAllowThreads(__tstate); | |
23033 | if (PyErr_Occurred()) SWIG_fail; | |
23034 | } | |
093d3ff1 RD |
23035 | { |
23036 | resultobj = SWIG_From_int((int)(result)); | |
23037 | } | |
d55e5bfc RD |
23038 | return resultobj; |
23039 | fail: | |
23040 | return NULL; | |
23041 | } | |
23042 | ||
23043 | ||
c32bde28 | 23044 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23045 | PyObject *obj; |
23046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23047 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
23048 | Py_INCREF(obj); | |
23049 | return Py_BuildValue((char *)""); | |
23050 | } | |
c32bde28 | 23051 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23052 | PyObject *resultobj; |
23053 | char *kwnames[] = { | |
23054 | NULL | |
23055 | }; | |
23056 | ||
23057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
23058 | { | |
23059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23060 | wxExit(); | |
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_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23073 | PyObject *resultobj; |
23074 | bool result; | |
23075 | char *kwnames[] = { | |
23076 | NULL | |
23077 | }; | |
23078 | ||
23079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
23080 | { | |
23081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23082 | result = (bool)wxYield(); | |
23083 | ||
23084 | wxPyEndAllowThreads(__tstate); | |
23085 | if (PyErr_Occurred()) SWIG_fail; | |
23086 | } | |
23087 | { | |
23088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23089 | } | |
23090 | return resultobj; | |
23091 | fail: | |
23092 | return NULL; | |
23093 | } | |
23094 | ||
23095 | ||
c32bde28 | 23096 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23097 | PyObject *resultobj; |
23098 | bool result; | |
23099 | char *kwnames[] = { | |
23100 | NULL | |
23101 | }; | |
23102 | ||
23103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
23104 | { | |
23105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23106 | result = (bool)wxYieldIfNeeded(); | |
23107 | ||
23108 | wxPyEndAllowThreads(__tstate); | |
23109 | if (PyErr_Occurred()) SWIG_fail; | |
23110 | } | |
23111 | { | |
23112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23113 | } | |
23114 | return resultobj; | |
23115 | fail: | |
23116 | return NULL; | |
23117 | } | |
23118 | ||
23119 | ||
c32bde28 | 23120 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23121 | PyObject *resultobj; |
23122 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 23123 | bool arg2 = (bool) false ; |
d55e5bfc RD |
23124 | bool result; |
23125 | PyObject * obj0 = 0 ; | |
23126 | PyObject * obj1 = 0 ; | |
23127 | char *kwnames[] = { | |
23128 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
23129 | }; | |
23130 | ||
23131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
23132 | if (obj0) { | |
093d3ff1 RD |
23133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
23134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23135 | } |
23136 | if (obj1) { | |
093d3ff1 RD |
23137 | { |
23138 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23139 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23140 | } | |
d55e5bfc RD |
23141 | } |
23142 | { | |
23143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23144 | result = (bool)wxSafeYield(arg1,arg2); | |
23145 | ||
23146 | wxPyEndAllowThreads(__tstate); | |
23147 | if (PyErr_Occurred()) SWIG_fail; | |
23148 | } | |
23149 | { | |
23150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23151 | } | |
23152 | return resultobj; | |
23153 | fail: | |
23154 | return NULL; | |
23155 | } | |
23156 | ||
23157 | ||
c32bde28 | 23158 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23159 | PyObject *resultobj; |
23160 | char *kwnames[] = { | |
23161 | NULL | |
23162 | }; | |
23163 | ||
23164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
23165 | { | |
23166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23167 | wxWakeUpIdle(); | |
23168 | ||
23169 | wxPyEndAllowThreads(__tstate); | |
23170 | if (PyErr_Occurred()) SWIG_fail; | |
23171 | } | |
23172 | Py_INCREF(Py_None); resultobj = Py_None; | |
23173 | return resultobj; | |
23174 | fail: | |
23175 | return NULL; | |
23176 | } | |
23177 | ||
23178 | ||
c32bde28 | 23179 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23180 | PyObject *resultobj; |
23181 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
23182 | wxEvent *arg2 = 0 ; | |
23183 | PyObject * obj0 = 0 ; | |
23184 | PyObject * obj1 = 0 ; | |
23185 | char *kwnames[] = { | |
23186 | (char *) "dest",(char *) "event", NULL | |
23187 | }; | |
23188 | ||
23189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
23191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23192 | { | |
23193 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
23194 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23195 | if (arg2 == NULL) { | |
23196 | SWIG_null_ref("wxEvent"); | |
23197 | } | |
23198 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23199 | } |
23200 | { | |
23201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23202 | wxPostEvent(arg1,*arg2); | |
23203 | ||
23204 | wxPyEndAllowThreads(__tstate); | |
23205 | if (PyErr_Occurred()) SWIG_fail; | |
23206 | } | |
23207 | Py_INCREF(Py_None); resultobj = Py_None; | |
23208 | return resultobj; | |
23209 | fail: | |
23210 | return NULL; | |
23211 | } | |
23212 | ||
23213 | ||
c32bde28 | 23214 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23215 | PyObject *resultobj; |
23216 | char *kwnames[] = { | |
23217 | NULL | |
23218 | }; | |
23219 | ||
23220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
23221 | { | |
23222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23223 | wxApp_CleanUp(); | |
23224 | ||
23225 | wxPyEndAllowThreads(__tstate); | |
23226 | if (PyErr_Occurred()) SWIG_fail; | |
23227 | } | |
23228 | Py_INCREF(Py_None); resultobj = Py_None; | |
23229 | return resultobj; | |
23230 | fail: | |
23231 | return NULL; | |
23232 | } | |
23233 | ||
23234 | ||
c32bde28 | 23235 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23236 | PyObject *resultobj; |
23237 | wxPyApp *result; | |
23238 | char *kwnames[] = { | |
23239 | NULL | |
23240 | }; | |
23241 | ||
23242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
23243 | { | |
23244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 23245 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
23246 | |
23247 | wxPyEndAllowThreads(__tstate); | |
23248 | if (PyErr_Occurred()) SWIG_fail; | |
23249 | } | |
23250 | { | |
412d302d | 23251 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23252 | } |
23253 | return resultobj; | |
23254 | fail: | |
23255 | return NULL; | |
23256 | } | |
23257 | ||
23258 | ||
5cbf236d RD |
23259 | static PyObject *_wrap_SetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
23260 | PyObject *resultobj; | |
093d3ff1 | 23261 | char *arg1 = (char *) 0 ; |
5cbf236d RD |
23262 | PyObject * obj0 = 0 ; |
23263 | char *kwnames[] = { | |
23264 | (char *) "encoding", NULL | |
23265 | }; | |
23266 | ||
23267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23268 | if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) { |
23269 | SWIG_arg_fail(1);SWIG_fail; | |
23270 | } | |
5cbf236d RD |
23271 | { |
23272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23273 | wxSetDefaultPyEncoding((char const *)arg1); | |
23274 | ||
23275 | wxPyEndAllowThreads(__tstate); | |
23276 | if (PyErr_Occurred()) SWIG_fail; | |
23277 | } | |
23278 | Py_INCREF(Py_None); resultobj = Py_None; | |
23279 | return resultobj; | |
23280 | fail: | |
23281 | return NULL; | |
23282 | } | |
23283 | ||
23284 | ||
23285 | static PyObject *_wrap_GetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
23286 | PyObject *resultobj; | |
23287 | char *result; | |
23288 | char *kwnames[] = { | |
23289 | NULL | |
23290 | }; | |
23291 | ||
23292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDefaultPyEncoding",kwnames)) goto fail; | |
23293 | { | |
23294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23295 | result = (char *)wxGetDefaultPyEncoding(); | |
23296 | ||
23297 | wxPyEndAllowThreads(__tstate); | |
23298 | if (PyErr_Occurred()) SWIG_fail; | |
23299 | } | |
23300 | resultobj = SWIG_FromCharPtr(result); | |
23301 | return resultobj; | |
23302 | fail: | |
23303 | return NULL; | |
23304 | } | |
23305 | ||
23306 | ||
ae8162c8 RD |
23307 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
23308 | PyObject *resultobj; | |
23309 | wxEventLoop *result; | |
23310 | char *kwnames[] = { | |
23311 | NULL | |
23312 | }; | |
23313 | ||
23314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
23315 | { | |
23316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23317 | result = (wxEventLoop *)new wxEventLoop(); | |
23318 | ||
23319 | wxPyEndAllowThreads(__tstate); | |
23320 | if (PyErr_Occurred()) SWIG_fail; | |
23321 | } | |
23322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
23323 | return resultobj; | |
23324 | fail: | |
23325 | return NULL; | |
23326 | } | |
23327 | ||
23328 | ||
23329 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
23330 | PyObject *resultobj; | |
23331 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
23332 | PyObject * obj0 = 0 ; | |
23333 | char *kwnames[] = { | |
23334 | (char *) "self", NULL | |
23335 | }; | |
23336 | ||
23337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
23339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
23340 | { |
23341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23342 | delete arg1; | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
23347 | Py_INCREF(Py_None); resultobj = Py_None; | |
23348 | return resultobj; | |
23349 | fail: | |
23350 | return NULL; | |
23351 | } | |
23352 | ||
23353 | ||
23354 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
23355 | PyObject *resultobj; | |
23356 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
23357 | int result; | |
23358 | PyObject * obj0 = 0 ; | |
23359 | char *kwnames[] = { | |
23360 | (char *) "self", NULL | |
23361 | }; | |
23362 | ||
23363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
23365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
23366 | { |
23367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23368 | result = (int)(arg1)->Run(); | |
23369 | ||
23370 | wxPyEndAllowThreads(__tstate); | |
23371 | if (PyErr_Occurred()) SWIG_fail; | |
23372 | } | |
093d3ff1 RD |
23373 | { |
23374 | resultobj = SWIG_From_int((int)(result)); | |
23375 | } | |
ae8162c8 RD |
23376 | return resultobj; |
23377 | fail: | |
23378 | return NULL; | |
23379 | } | |
23380 | ||
23381 | ||
23382 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
23383 | PyObject *resultobj; | |
23384 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
23385 | int arg2 = (int) 0 ; | |
23386 | PyObject * obj0 = 0 ; | |
23387 | PyObject * obj1 = 0 ; | |
23388 | char *kwnames[] = { | |
23389 | (char *) "self",(char *) "rc", NULL | |
23390 | }; | |
23391 | ||
23392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
23394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 | 23395 | if (obj1) { |
093d3ff1 RD |
23396 | { |
23397 | arg2 = (int)(SWIG_As_int(obj1)); | |
23398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23399 | } | |
ae8162c8 RD |
23400 | } |
23401 | { | |
23402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23403 | (arg1)->Exit(arg2); | |
23404 | ||
23405 | wxPyEndAllowThreads(__tstate); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | } | |
23408 | Py_INCREF(Py_None); resultobj = Py_None; | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | return NULL; | |
23412 | } | |
23413 | ||
23414 | ||
23415 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
23416 | PyObject *resultobj; | |
23417 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
23418 | bool result; | |
23419 | PyObject * obj0 = 0 ; | |
23420 | char *kwnames[] = { | |
23421 | (char *) "self", NULL | |
23422 | }; | |
23423 | ||
23424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
23426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
23427 | { |
23428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23429 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
23430 | ||
23431 | wxPyEndAllowThreads(__tstate); | |
23432 | if (PyErr_Occurred()) SWIG_fail; | |
23433 | } | |
23434 | { | |
23435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23436 | } | |
23437 | return resultobj; | |
23438 | fail: | |
23439 | return NULL; | |
23440 | } | |
23441 | ||
23442 | ||
23443 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
23444 | PyObject *resultobj; | |
23445 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
23446 | bool result; | |
23447 | PyObject * obj0 = 0 ; | |
23448 | char *kwnames[] = { | |
23449 | (char *) "self", NULL | |
23450 | }; | |
23451 | ||
23452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
23454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
23455 | { |
23456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23457 | result = (bool)(arg1)->Dispatch(); | |
23458 | ||
23459 | wxPyEndAllowThreads(__tstate); | |
23460 | if (PyErr_Occurred()) SWIG_fail; | |
23461 | } | |
23462 | { | |
23463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23464 | } | |
23465 | return resultobj; | |
23466 | fail: | |
23467 | return NULL; | |
23468 | } | |
23469 | ||
23470 | ||
23471 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
23472 | PyObject *resultobj; | |
23473 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
23474 | bool result; | |
23475 | PyObject * obj0 = 0 ; | |
23476 | char *kwnames[] = { | |
23477 | (char *) "self", NULL | |
23478 | }; | |
23479 | ||
23480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
23482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
23483 | { |
23484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23485 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
23486 | ||
23487 | wxPyEndAllowThreads(__tstate); | |
23488 | if (PyErr_Occurred()) SWIG_fail; | |
23489 | } | |
23490 | { | |
23491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23492 | } | |
23493 | return resultobj; | |
23494 | fail: | |
23495 | return NULL; | |
23496 | } | |
23497 | ||
23498 | ||
23499 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
23500 | PyObject *resultobj; | |
23501 | wxEventLoop *result; | |
23502 | char *kwnames[] = { | |
23503 | NULL | |
23504 | }; | |
23505 | ||
23506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
23507 | { | |
23508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23509 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
23510 | ||
23511 | wxPyEndAllowThreads(__tstate); | |
23512 | if (PyErr_Occurred()) SWIG_fail; | |
23513 | } | |
23514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
23515 | return resultobj; | |
23516 | fail: | |
23517 | return NULL; | |
23518 | } | |
23519 | ||
23520 | ||
23521 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
23522 | PyObject *resultobj; | |
23523 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
23524 | PyObject * obj0 = 0 ; | |
23525 | char *kwnames[] = { | |
23526 | (char *) "loop", NULL | |
23527 | }; | |
23528 | ||
23529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
23531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
23532 | { |
23533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23534 | wxEventLoop::SetActive(arg1); | |
23535 | ||
23536 | wxPyEndAllowThreads(__tstate); | |
23537 | if (PyErr_Occurred()) SWIG_fail; | |
23538 | } | |
23539 | Py_INCREF(Py_None); resultobj = Py_None; | |
23540 | return resultobj; | |
23541 | fail: | |
23542 | return NULL; | |
23543 | } | |
23544 | ||
23545 | ||
23546 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
23547 | PyObject *obj; | |
23548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23549 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
23550 | Py_INCREF(obj); | |
23551 | return Py_BuildValue((char *)""); | |
23552 | } | |
c32bde28 | 23553 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23554 | PyObject *resultobj; |
23555 | int arg1 = (int) 0 ; | |
23556 | int arg2 = (int) 0 ; | |
23557 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
23558 | wxAcceleratorEntry *result; |
23559 | PyObject * obj0 = 0 ; | |
23560 | PyObject * obj1 = 0 ; | |
23561 | PyObject * obj2 = 0 ; | |
d55e5bfc | 23562 | char *kwnames[] = { |
c24da6d6 | 23563 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
23564 | }; |
23565 | ||
c24da6d6 | 23566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 23567 | if (obj0) { |
093d3ff1 RD |
23568 | { |
23569 | arg1 = (int)(SWIG_As_int(obj0)); | |
23570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23571 | } | |
d55e5bfc RD |
23572 | } |
23573 | if (obj1) { | |
093d3ff1 RD |
23574 | { |
23575 | arg2 = (int)(SWIG_As_int(obj1)); | |
23576 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23577 | } | |
d55e5bfc RD |
23578 | } |
23579 | if (obj2) { | |
093d3ff1 RD |
23580 | { |
23581 | arg3 = (int)(SWIG_As_int(obj2)); | |
23582 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23583 | } | |
d55e5bfc | 23584 | } |
d55e5bfc RD |
23585 | { |
23586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 23587 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
23588 | |
23589 | wxPyEndAllowThreads(__tstate); | |
23590 | if (PyErr_Occurred()) SWIG_fail; | |
23591 | } | |
23592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
23593 | return resultobj; | |
23594 | fail: | |
23595 | return NULL; | |
23596 | } | |
23597 | ||
23598 | ||
c32bde28 | 23599 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23600 | PyObject *resultobj; |
23601 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
23602 | PyObject * obj0 = 0 ; | |
23603 | char *kwnames[] = { | |
23604 | (char *) "self", NULL | |
23605 | }; | |
23606 | ||
23607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
23609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23610 | { |
23611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23612 | delete arg1; | |
23613 | ||
23614 | wxPyEndAllowThreads(__tstate); | |
23615 | if (PyErr_Occurred()) SWIG_fail; | |
23616 | } | |
23617 | Py_INCREF(Py_None); resultobj = Py_None; | |
23618 | return resultobj; | |
23619 | fail: | |
23620 | return NULL; | |
23621 | } | |
23622 | ||
23623 | ||
c32bde28 | 23624 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23625 | PyObject *resultobj; |
23626 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
23627 | int arg2 ; | |
23628 | int arg3 ; | |
23629 | int arg4 ; | |
d55e5bfc RD |
23630 | PyObject * obj0 = 0 ; |
23631 | PyObject * obj1 = 0 ; | |
23632 | PyObject * obj2 = 0 ; | |
23633 | PyObject * obj3 = 0 ; | |
d55e5bfc | 23634 | char *kwnames[] = { |
c24da6d6 | 23635 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
23636 | }; |
23637 | ||
c24da6d6 | 23638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
23639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
23640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23641 | { | |
23642 | arg2 = (int)(SWIG_As_int(obj1)); | |
23643 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23644 | } | |
23645 | { | |
23646 | arg3 = (int)(SWIG_As_int(obj2)); | |
23647 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23648 | } | |
23649 | { | |
23650 | arg4 = (int)(SWIG_As_int(obj3)); | |
23651 | if (SWIG_arg_fail(4)) SWIG_fail; | |
23652 | } | |
d55e5bfc RD |
23653 | { |
23654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 23655 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
23656 | |
23657 | wxPyEndAllowThreads(__tstate); | |
23658 | if (PyErr_Occurred()) SWIG_fail; | |
23659 | } | |
23660 | Py_INCREF(Py_None); resultobj = Py_None; | |
23661 | return resultobj; | |
23662 | fail: | |
23663 | return NULL; | |
23664 | } | |
23665 | ||
23666 | ||
c32bde28 | 23667 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23668 | PyObject *resultobj; |
23669 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
23670 | int result; | |
23671 | PyObject * obj0 = 0 ; | |
23672 | char *kwnames[] = { | |
23673 | (char *) "self", NULL | |
23674 | }; | |
23675 | ||
23676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
23678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23679 | { |
23680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23681 | result = (int)(arg1)->GetFlags(); | |
23682 | ||
23683 | wxPyEndAllowThreads(__tstate); | |
23684 | if (PyErr_Occurred()) SWIG_fail; | |
23685 | } | |
093d3ff1 RD |
23686 | { |
23687 | resultobj = SWIG_From_int((int)(result)); | |
23688 | } | |
d55e5bfc RD |
23689 | return resultobj; |
23690 | fail: | |
23691 | return NULL; | |
23692 | } | |
23693 | ||
23694 | ||
c32bde28 | 23695 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23696 | PyObject *resultobj; |
23697 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
23698 | int result; | |
23699 | PyObject * obj0 = 0 ; | |
23700 | char *kwnames[] = { | |
23701 | (char *) "self", NULL | |
23702 | }; | |
23703 | ||
23704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
23706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23707 | { |
23708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23709 | result = (int)(arg1)->GetKeyCode(); | |
23710 | ||
23711 | wxPyEndAllowThreads(__tstate); | |
23712 | if (PyErr_Occurred()) SWIG_fail; | |
23713 | } | |
093d3ff1 RD |
23714 | { |
23715 | resultobj = SWIG_From_int((int)(result)); | |
23716 | } | |
d55e5bfc RD |
23717 | return resultobj; |
23718 | fail: | |
23719 | return NULL; | |
23720 | } | |
23721 | ||
23722 | ||
c32bde28 | 23723 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23724 | PyObject *resultobj; |
23725 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
23726 | int result; | |
23727 | PyObject * obj0 = 0 ; | |
23728 | char *kwnames[] = { | |
23729 | (char *) "self", NULL | |
23730 | }; | |
23731 | ||
23732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
23734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23735 | { |
23736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23737 | result = (int)(arg1)->GetCommand(); | |
23738 | ||
23739 | wxPyEndAllowThreads(__tstate); | |
23740 | if (PyErr_Occurred()) SWIG_fail; | |
23741 | } | |
093d3ff1 RD |
23742 | { |
23743 | resultobj = SWIG_From_int((int)(result)); | |
23744 | } | |
d55e5bfc RD |
23745 | return resultobj; |
23746 | fail: | |
23747 | return NULL; | |
23748 | } | |
23749 | ||
23750 | ||
c32bde28 | 23751 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23752 | PyObject *obj; |
23753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23754 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
23755 | Py_INCREF(obj); | |
23756 | return Py_BuildValue((char *)""); | |
23757 | } | |
c32bde28 | 23758 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23759 | PyObject *resultobj; |
23760 | int arg1 ; | |
23761 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
23762 | wxAcceleratorTable *result; | |
23763 | PyObject * obj0 = 0 ; | |
23764 | char *kwnames[] = { | |
23765 | (char *) "n", NULL | |
23766 | }; | |
23767 | ||
23768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
23769 | { | |
23770 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
23771 | if (arg2) arg1 = PyList_Size(obj0); | |
23772 | else arg1 = 0; | |
23773 | } | |
23774 | { | |
23775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23776 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
23777 | ||
23778 | wxPyEndAllowThreads(__tstate); | |
23779 | if (PyErr_Occurred()) SWIG_fail; | |
23780 | } | |
23781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
23782 | { | |
23783 | delete [] arg2; | |
23784 | } | |
23785 | return resultobj; | |
23786 | fail: | |
23787 | { | |
23788 | delete [] arg2; | |
23789 | } | |
23790 | return NULL; | |
23791 | } | |
23792 | ||
23793 | ||
c32bde28 | 23794 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23795 | PyObject *resultobj; |
23796 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
23797 | PyObject * obj0 = 0 ; | |
23798 | char *kwnames[] = { | |
23799 | (char *) "self", NULL | |
23800 | }; | |
23801 | ||
23802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); |
23804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23805 | { |
23806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23807 | delete arg1; | |
23808 | ||
23809 | wxPyEndAllowThreads(__tstate); | |
23810 | if (PyErr_Occurred()) SWIG_fail; | |
23811 | } | |
23812 | Py_INCREF(Py_None); resultobj = Py_None; | |
23813 | return resultobj; | |
23814 | fail: | |
23815 | return NULL; | |
23816 | } | |
23817 | ||
23818 | ||
c32bde28 | 23819 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23820 | PyObject *resultobj; |
23821 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
23822 | bool result; | |
23823 | PyObject * obj0 = 0 ; | |
23824 | char *kwnames[] = { | |
23825 | (char *) "self", NULL | |
23826 | }; | |
23827 | ||
23828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); |
23830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23831 | { |
23832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23833 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
23834 | ||
23835 | wxPyEndAllowThreads(__tstate); | |
23836 | if (PyErr_Occurred()) SWIG_fail; | |
23837 | } | |
23838 | { | |
23839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23840 | } | |
23841 | return resultobj; | |
23842 | fail: | |
23843 | return NULL; | |
23844 | } | |
23845 | ||
23846 | ||
c32bde28 | 23847 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23848 | PyObject *obj; |
23849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23850 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
23851 | Py_INCREF(obj); | |
23852 | return Py_BuildValue((char *)""); | |
23853 | } | |
c32bde28 | 23854 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
23855 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
23856 | return 1; | |
23857 | } | |
23858 | ||
23859 | ||
093d3ff1 | 23860 | static PyObject *_wrap_NullAcceleratorTable_get(void) { |
d55e5bfc RD |
23861 | PyObject *pyobj; |
23862 | ||
23863 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
23864 | return pyobj; | |
23865 | } | |
23866 | ||
23867 | ||
c32bde28 | 23868 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23869 | PyObject *resultobj; |
23870 | wxString *arg1 = 0 ; | |
23871 | wxAcceleratorEntry *result; | |
ae8162c8 | 23872 | bool temp1 = false ; |
d55e5bfc RD |
23873 | PyObject * obj0 = 0 ; |
23874 | char *kwnames[] = { | |
23875 | (char *) "label", NULL | |
23876 | }; | |
23877 | ||
23878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
23879 | { | |
23880 | arg1 = wxString_in_helper(obj0); | |
23881 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 23882 | temp1 = true; |
d55e5bfc RD |
23883 | } |
23884 | { | |
23885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23886 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
23887 | ||
23888 | wxPyEndAllowThreads(__tstate); | |
23889 | if (PyErr_Occurred()) SWIG_fail; | |
23890 | } | |
23891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
23892 | { | |
23893 | if (temp1) | |
23894 | delete arg1; | |
23895 | } | |
23896 | return resultobj; | |
23897 | fail: | |
23898 | { | |
23899 | if (temp1) | |
23900 | delete arg1; | |
23901 | } | |
23902 | return NULL; | |
23903 | } | |
23904 | ||
23905 | ||
c32bde28 | 23906 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
23907 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
23908 | return 1; | |
23909 | } | |
23910 | ||
23911 | ||
093d3ff1 | 23912 | static PyObject *_wrap_PanelNameStr_get(void) { |
d55e5bfc RD |
23913 | PyObject *pyobj; |
23914 | ||
23915 | { | |
23916 | #if wxUSE_UNICODE | |
23917 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
23918 | #else | |
23919 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
23920 | #endif | |
23921 | } | |
23922 | return pyobj; | |
23923 | } | |
23924 | ||
23925 | ||
c32bde28 | 23926 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23927 | PyObject *resultobj; |
23928 | wxVisualAttributes *result; | |
23929 | char *kwnames[] = { | |
23930 | NULL | |
23931 | }; | |
23932 | ||
23933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
23934 | { | |
23935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23936 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
23937 | ||
23938 | wxPyEndAllowThreads(__tstate); | |
23939 | if (PyErr_Occurred()) SWIG_fail; | |
23940 | } | |
23941 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
23942 | return resultobj; | |
23943 | fail: | |
23944 | return NULL; | |
23945 | } | |
23946 | ||
23947 | ||
c32bde28 | 23948 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23949 | PyObject *resultobj; |
23950 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
23951 | PyObject * obj0 = 0 ; | |
23952 | char *kwnames[] = { | |
23953 | (char *) "self", NULL | |
23954 | }; | |
23955 | ||
23956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
23958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23959 | { |
23960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23961 | delete_wxVisualAttributes(arg1); | |
23962 | ||
23963 | wxPyEndAllowThreads(__tstate); | |
23964 | if (PyErr_Occurred()) SWIG_fail; | |
23965 | } | |
23966 | Py_INCREF(Py_None); resultobj = Py_None; | |
23967 | return resultobj; | |
23968 | fail: | |
23969 | return NULL; | |
23970 | } | |
23971 | ||
23972 | ||
c32bde28 | 23973 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23974 | PyObject *resultobj; |
23975 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
23976 | wxFont *arg2 = (wxFont *) 0 ; | |
23977 | PyObject * obj0 = 0 ; | |
23978 | PyObject * obj1 = 0 ; | |
23979 | char *kwnames[] = { | |
23980 | (char *) "self",(char *) "font", NULL | |
23981 | }; | |
23982 | ||
23983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
23985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23986 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
23987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23988 | if (arg1) (arg1)->font = *arg2; |
23989 | ||
23990 | Py_INCREF(Py_None); resultobj = Py_None; | |
23991 | return resultobj; | |
23992 | fail: | |
23993 | return NULL; | |
23994 | } | |
23995 | ||
23996 | ||
c32bde28 | 23997 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23998 | PyObject *resultobj; |
23999 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24000 | wxFont *result; | |
24001 | PyObject * obj0 = 0 ; | |
24002 | char *kwnames[] = { | |
24003 | (char *) "self", NULL | |
24004 | }; | |
24005 | ||
24006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24009 | result = (wxFont *)& ((arg1)->font); |
24010 | ||
24011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
24012 | return resultobj; | |
24013 | fail: | |
24014 | return NULL; | |
24015 | } | |
24016 | ||
24017 | ||
c32bde28 | 24018 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24019 | PyObject *resultobj; |
24020 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24021 | wxColour *arg2 = (wxColour *) 0 ; | |
24022 | PyObject * obj0 = 0 ; | |
24023 | PyObject * obj1 = 0 ; | |
24024 | char *kwnames[] = { | |
24025 | (char *) "self",(char *) "colFg", NULL | |
24026 | }; | |
24027 | ||
24028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24031 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
24032 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24033 | if (arg1) (arg1)->colFg = *arg2; |
24034 | ||
24035 | Py_INCREF(Py_None); resultobj = Py_None; | |
24036 | return resultobj; | |
24037 | fail: | |
24038 | return NULL; | |
24039 | } | |
24040 | ||
24041 | ||
c32bde28 | 24042 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24043 | PyObject *resultobj; |
24044 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24045 | wxColour *result; | |
24046 | PyObject * obj0 = 0 ; | |
24047 | char *kwnames[] = { | |
24048 | (char *) "self", NULL | |
24049 | }; | |
24050 | ||
24051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24054 | result = (wxColour *)& ((arg1)->colFg); |
24055 | ||
24056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
24057 | return resultobj; | |
24058 | fail: | |
24059 | return NULL; | |
24060 | } | |
24061 | ||
24062 | ||
c32bde28 | 24063 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24064 | PyObject *resultobj; |
24065 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24066 | wxColour *arg2 = (wxColour *) 0 ; | |
24067 | PyObject * obj0 = 0 ; | |
24068 | PyObject * obj1 = 0 ; | |
24069 | char *kwnames[] = { | |
24070 | (char *) "self",(char *) "colBg", NULL | |
24071 | }; | |
24072 | ||
24073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24076 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
24077 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24078 | if (arg1) (arg1)->colBg = *arg2; |
24079 | ||
24080 | Py_INCREF(Py_None); resultobj = Py_None; | |
24081 | return resultobj; | |
24082 | fail: | |
24083 | return NULL; | |
24084 | } | |
24085 | ||
24086 | ||
c32bde28 | 24087 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24088 | PyObject *resultobj; |
24089 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24090 | wxColour *result; | |
24091 | PyObject * obj0 = 0 ; | |
24092 | char *kwnames[] = { | |
24093 | (char *) "self", NULL | |
24094 | }; | |
24095 | ||
24096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24099 | result = (wxColour *)& ((arg1)->colBg); |
24100 | ||
24101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
24102 | return resultobj; | |
24103 | fail: | |
24104 | return NULL; | |
24105 | } | |
24106 | ||
24107 | ||
c32bde28 | 24108 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24109 | PyObject *obj; |
24110 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24111 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
24112 | Py_INCREF(obj); | |
24113 | return Py_BuildValue((char *)""); | |
24114 | } | |
c32bde28 | 24115 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24116 | PyObject *resultobj; |
24117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24118 | int arg2 = (int) (int)-1 ; | |
24119 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
24120 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24121 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24122 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24123 | long arg5 = (long) 0 ; | |
24124 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
24125 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
24126 | wxWindow *result; | |
24127 | wxPoint temp3 ; | |
24128 | wxSize temp4 ; | |
ae8162c8 | 24129 | bool temp6 = false ; |
d55e5bfc RD |
24130 | PyObject * obj0 = 0 ; |
24131 | PyObject * obj1 = 0 ; | |
24132 | PyObject * obj2 = 0 ; | |
24133 | PyObject * obj3 = 0 ; | |
24134 | PyObject * obj4 = 0 ; | |
24135 | PyObject * obj5 = 0 ; | |
24136 | char *kwnames[] = { | |
24137 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24138 | }; | |
24139 | ||
24140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
24141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 24143 | if (obj1) { |
093d3ff1 RD |
24144 | { |
24145 | arg2 = (int const)(SWIG_As_int(obj1)); | |
24146 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24147 | } | |
d55e5bfc RD |
24148 | } |
24149 | if (obj2) { | |
24150 | { | |
24151 | arg3 = &temp3; | |
24152 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24153 | } | |
24154 | } | |
24155 | if (obj3) { | |
24156 | { | |
24157 | arg4 = &temp4; | |
24158 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24159 | } | |
24160 | } | |
24161 | if (obj4) { | |
093d3ff1 RD |
24162 | { |
24163 | arg5 = (long)(SWIG_As_long(obj4)); | |
24164 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24165 | } | |
d55e5bfc RD |
24166 | } |
24167 | if (obj5) { | |
24168 | { | |
24169 | arg6 = wxString_in_helper(obj5); | |
24170 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 24171 | temp6 = true; |
d55e5bfc RD |
24172 | } |
24173 | } | |
24174 | { | |
0439c23b | 24175 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24177 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
24178 | ||
24179 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24180 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 24181 | } |
b0f7404b | 24182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
24183 | { |
24184 | if (temp6) | |
24185 | delete arg6; | |
24186 | } | |
24187 | return resultobj; | |
24188 | fail: | |
24189 | { | |
24190 | if (temp6) | |
24191 | delete arg6; | |
24192 | } | |
24193 | return NULL; | |
24194 | } | |
24195 | ||
24196 | ||
c32bde28 | 24197 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24198 | PyObject *resultobj; |
24199 | wxWindow *result; | |
24200 | char *kwnames[] = { | |
24201 | NULL | |
24202 | }; | |
24203 | ||
24204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
24205 | { | |
0439c23b | 24206 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24208 | result = (wxWindow *)new wxWindow(); | |
24209 | ||
24210 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24211 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 24212 | } |
b0f7404b | 24213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
24214 | return resultobj; |
24215 | fail: | |
24216 | return NULL; | |
24217 | } | |
24218 | ||
24219 | ||
c32bde28 | 24220 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24221 | PyObject *resultobj; |
24222 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24223 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24224 | int arg3 = (int) (int)-1 ; | |
24225 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24226 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24227 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24228 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24229 | long arg6 = (long) 0 ; | |
24230 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
24231 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24232 | bool result; | |
24233 | wxPoint temp4 ; | |
24234 | wxSize temp5 ; | |
ae8162c8 | 24235 | bool temp7 = false ; |
d55e5bfc RD |
24236 | PyObject * obj0 = 0 ; |
24237 | PyObject * obj1 = 0 ; | |
24238 | PyObject * obj2 = 0 ; | |
24239 | PyObject * obj3 = 0 ; | |
24240 | PyObject * obj4 = 0 ; | |
24241 | PyObject * obj5 = 0 ; | |
24242 | PyObject * obj6 = 0 ; | |
24243 | char *kwnames[] = { | |
24244 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24245 | }; | |
24246 | ||
24247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
24248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24250 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
24251 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 24252 | if (obj2) { |
093d3ff1 RD |
24253 | { |
24254 | arg3 = (int const)(SWIG_As_int(obj2)); | |
24255 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24256 | } | |
d55e5bfc RD |
24257 | } |
24258 | if (obj3) { | |
24259 | { | |
24260 | arg4 = &temp4; | |
24261 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24262 | } | |
24263 | } | |
24264 | if (obj4) { | |
24265 | { | |
24266 | arg5 = &temp5; | |
24267 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24268 | } | |
24269 | } | |
24270 | if (obj5) { | |
093d3ff1 RD |
24271 | { |
24272 | arg6 = (long)(SWIG_As_long(obj5)); | |
24273 | if (SWIG_arg_fail(6)) SWIG_fail; | |
24274 | } | |
d55e5bfc RD |
24275 | } |
24276 | if (obj6) { | |
24277 | { | |
24278 | arg7 = wxString_in_helper(obj6); | |
24279 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 24280 | temp7 = true; |
d55e5bfc RD |
24281 | } |
24282 | } | |
24283 | { | |
24284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24285 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24286 | ||
24287 | wxPyEndAllowThreads(__tstate); | |
24288 | if (PyErr_Occurred()) SWIG_fail; | |
24289 | } | |
24290 | { | |
24291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24292 | } | |
24293 | { | |
24294 | if (temp7) | |
24295 | delete arg7; | |
24296 | } | |
24297 | return resultobj; | |
24298 | fail: | |
24299 | { | |
24300 | if (temp7) | |
24301 | delete arg7; | |
24302 | } | |
24303 | return NULL; | |
24304 | } | |
24305 | ||
24306 | ||
c32bde28 | 24307 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24308 | PyObject *resultobj; |
24309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24310 | bool arg2 = (bool) false ; |
d55e5bfc RD |
24311 | bool result; |
24312 | PyObject * obj0 = 0 ; | |
24313 | PyObject * obj1 = 0 ; | |
24314 | char *kwnames[] = { | |
24315 | (char *) "self",(char *) "force", NULL | |
24316 | }; | |
24317 | ||
24318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 24321 | if (obj1) { |
093d3ff1 RD |
24322 | { |
24323 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
24324 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24325 | } | |
d55e5bfc RD |
24326 | } |
24327 | { | |
24328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24329 | result = (bool)(arg1)->Close(arg2); | |
24330 | ||
24331 | wxPyEndAllowThreads(__tstate); | |
24332 | if (PyErr_Occurred()) SWIG_fail; | |
24333 | } | |
24334 | { | |
24335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24336 | } | |
24337 | return resultobj; | |
24338 | fail: | |
24339 | return NULL; | |
24340 | } | |
24341 | ||
24342 | ||
c32bde28 | 24343 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24344 | PyObject *resultobj; |
24345 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24346 | bool result; | |
24347 | PyObject * obj0 = 0 ; | |
24348 | char *kwnames[] = { | |
24349 | (char *) "self", NULL | |
24350 | }; | |
24351 | ||
24352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24355 | { |
24356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24357 | result = (bool)(arg1)->Destroy(); | |
24358 | ||
24359 | wxPyEndAllowThreads(__tstate); | |
24360 | if (PyErr_Occurred()) SWIG_fail; | |
24361 | } | |
24362 | { | |
24363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24364 | } | |
24365 | return resultobj; | |
24366 | fail: | |
24367 | return NULL; | |
24368 | } | |
24369 | ||
24370 | ||
c32bde28 | 24371 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24372 | PyObject *resultobj; |
24373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24374 | bool result; | |
24375 | PyObject * obj0 = 0 ; | |
24376 | char *kwnames[] = { | |
24377 | (char *) "self", NULL | |
24378 | }; | |
24379 | ||
24380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24383 | { |
24384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24385 | result = (bool)(arg1)->DestroyChildren(); | |
24386 | ||
24387 | wxPyEndAllowThreads(__tstate); | |
24388 | if (PyErr_Occurred()) SWIG_fail; | |
24389 | } | |
24390 | { | |
24391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24392 | } | |
24393 | return resultobj; | |
24394 | fail: | |
24395 | return NULL; | |
24396 | } | |
24397 | ||
24398 | ||
c32bde28 | 24399 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24400 | PyObject *resultobj; |
24401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24402 | bool result; | |
24403 | PyObject * obj0 = 0 ; | |
24404 | char *kwnames[] = { | |
24405 | (char *) "self", NULL | |
24406 | }; | |
24407 | ||
24408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24411 | { |
24412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24413 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
24414 | ||
24415 | wxPyEndAllowThreads(__tstate); | |
24416 | if (PyErr_Occurred()) SWIG_fail; | |
24417 | } | |
24418 | { | |
24419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24420 | } | |
24421 | return resultobj; | |
24422 | fail: | |
24423 | return NULL; | |
24424 | } | |
24425 | ||
24426 | ||
c32bde28 | 24427 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24428 | PyObject *resultobj; |
24429 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24430 | wxString *arg2 = 0 ; | |
ae8162c8 | 24431 | bool temp2 = false ; |
d55e5bfc RD |
24432 | PyObject * obj0 = 0 ; |
24433 | PyObject * obj1 = 0 ; | |
24434 | char *kwnames[] = { | |
24435 | (char *) "self",(char *) "title", NULL | |
24436 | }; | |
24437 | ||
24438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24441 | { |
24442 | arg2 = wxString_in_helper(obj1); | |
24443 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24444 | temp2 = true; |
d55e5bfc RD |
24445 | } |
24446 | { | |
24447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24448 | (arg1)->SetTitle((wxString const &)*arg2); | |
24449 | ||
24450 | wxPyEndAllowThreads(__tstate); | |
24451 | if (PyErr_Occurred()) SWIG_fail; | |
24452 | } | |
24453 | Py_INCREF(Py_None); resultobj = Py_None; | |
24454 | { | |
24455 | if (temp2) | |
24456 | delete arg2; | |
24457 | } | |
24458 | return resultobj; | |
24459 | fail: | |
24460 | { | |
24461 | if (temp2) | |
24462 | delete arg2; | |
24463 | } | |
24464 | return NULL; | |
24465 | } | |
24466 | ||
24467 | ||
c32bde28 | 24468 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24469 | PyObject *resultobj; |
24470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24471 | wxString result; | |
24472 | PyObject * obj0 = 0 ; | |
24473 | char *kwnames[] = { | |
24474 | (char *) "self", NULL | |
24475 | }; | |
24476 | ||
24477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24480 | { |
24481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24482 | result = ((wxWindow const *)arg1)->GetTitle(); | |
24483 | ||
24484 | wxPyEndAllowThreads(__tstate); | |
24485 | if (PyErr_Occurred()) SWIG_fail; | |
24486 | } | |
24487 | { | |
24488 | #if wxUSE_UNICODE | |
24489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24490 | #else | |
24491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24492 | #endif | |
24493 | } | |
24494 | return resultobj; | |
24495 | fail: | |
24496 | return NULL; | |
24497 | } | |
24498 | ||
24499 | ||
c32bde28 | 24500 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24501 | PyObject *resultobj; |
24502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24503 | wxString *arg2 = 0 ; | |
ae8162c8 | 24504 | bool temp2 = false ; |
d55e5bfc RD |
24505 | PyObject * obj0 = 0 ; |
24506 | PyObject * obj1 = 0 ; | |
24507 | char *kwnames[] = { | |
24508 | (char *) "self",(char *) "label", NULL | |
24509 | }; | |
24510 | ||
24511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24514 | { |
24515 | arg2 = wxString_in_helper(obj1); | |
24516 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24517 | temp2 = true; |
d55e5bfc RD |
24518 | } |
24519 | { | |
24520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24521 | (arg1)->SetLabel((wxString const &)*arg2); | |
24522 | ||
24523 | wxPyEndAllowThreads(__tstate); | |
24524 | if (PyErr_Occurred()) SWIG_fail; | |
24525 | } | |
24526 | Py_INCREF(Py_None); resultobj = Py_None; | |
24527 | { | |
24528 | if (temp2) | |
24529 | delete arg2; | |
24530 | } | |
24531 | return resultobj; | |
24532 | fail: | |
24533 | { | |
24534 | if (temp2) | |
24535 | delete arg2; | |
24536 | } | |
24537 | return NULL; | |
24538 | } | |
24539 | ||
24540 | ||
c32bde28 | 24541 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24542 | PyObject *resultobj; |
24543 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24544 | wxString result; | |
24545 | PyObject * obj0 = 0 ; | |
24546 | char *kwnames[] = { | |
24547 | (char *) "self", NULL | |
24548 | }; | |
24549 | ||
24550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24553 | { |
24554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24555 | result = ((wxWindow const *)arg1)->GetLabel(); | |
24556 | ||
24557 | wxPyEndAllowThreads(__tstate); | |
24558 | if (PyErr_Occurred()) SWIG_fail; | |
24559 | } | |
24560 | { | |
24561 | #if wxUSE_UNICODE | |
24562 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24563 | #else | |
24564 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24565 | #endif | |
24566 | } | |
24567 | return resultobj; | |
24568 | fail: | |
24569 | return NULL; | |
24570 | } | |
24571 | ||
24572 | ||
c32bde28 | 24573 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24574 | PyObject *resultobj; |
24575 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24576 | wxString *arg2 = 0 ; | |
ae8162c8 | 24577 | bool temp2 = false ; |
d55e5bfc RD |
24578 | PyObject * obj0 = 0 ; |
24579 | PyObject * obj1 = 0 ; | |
24580 | char *kwnames[] = { | |
24581 | (char *) "self",(char *) "name", NULL | |
24582 | }; | |
24583 | ||
24584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24587 | { |
24588 | arg2 = wxString_in_helper(obj1); | |
24589 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24590 | temp2 = true; |
d55e5bfc RD |
24591 | } |
24592 | { | |
24593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24594 | (arg1)->SetName((wxString const &)*arg2); | |
24595 | ||
24596 | wxPyEndAllowThreads(__tstate); | |
24597 | if (PyErr_Occurred()) SWIG_fail; | |
24598 | } | |
24599 | Py_INCREF(Py_None); resultobj = Py_None; | |
24600 | { | |
24601 | if (temp2) | |
24602 | delete arg2; | |
24603 | } | |
24604 | return resultobj; | |
24605 | fail: | |
24606 | { | |
24607 | if (temp2) | |
24608 | delete arg2; | |
24609 | } | |
24610 | return NULL; | |
24611 | } | |
24612 | ||
24613 | ||
c32bde28 | 24614 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24615 | PyObject *resultobj; |
24616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24617 | wxString result; | |
24618 | PyObject * obj0 = 0 ; | |
24619 | char *kwnames[] = { | |
24620 | (char *) "self", NULL | |
24621 | }; | |
24622 | ||
24623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24626 | { |
24627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24628 | result = ((wxWindow const *)arg1)->GetName(); | |
24629 | ||
24630 | wxPyEndAllowThreads(__tstate); | |
24631 | if (PyErr_Occurred()) SWIG_fail; | |
24632 | } | |
24633 | { | |
24634 | #if wxUSE_UNICODE | |
24635 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24636 | #else | |
24637 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24638 | #endif | |
24639 | } | |
24640 | return resultobj; | |
24641 | fail: | |
24642 | return NULL; | |
24643 | } | |
24644 | ||
24645 | ||
c32bde28 | 24646 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24647 | PyObject *resultobj; |
24648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 24649 | wxWindowVariant arg2 ; |
d55e5bfc RD |
24650 | PyObject * obj0 = 0 ; |
24651 | PyObject * obj1 = 0 ; | |
24652 | char *kwnames[] = { | |
24653 | (char *) "self",(char *) "variant", NULL | |
24654 | }; | |
24655 | ||
24656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24659 | { | |
24660 | arg2 = (wxWindowVariant)(SWIG_As_int(obj1)); | |
24661 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24662 | } | |
d55e5bfc RD |
24663 | { |
24664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24665 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
24666 | ||
24667 | wxPyEndAllowThreads(__tstate); | |
24668 | if (PyErr_Occurred()) SWIG_fail; | |
24669 | } | |
24670 | Py_INCREF(Py_None); resultobj = Py_None; | |
24671 | return resultobj; | |
24672 | fail: | |
24673 | return NULL; | |
24674 | } | |
24675 | ||
24676 | ||
c32bde28 | 24677 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24678 | PyObject *resultobj; |
24679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 24680 | wxWindowVariant result; |
d55e5bfc RD |
24681 | PyObject * obj0 = 0 ; |
24682 | char *kwnames[] = { | |
24683 | (char *) "self", NULL | |
24684 | }; | |
24685 | ||
24686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24689 | { |
24690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 24691 | result = (wxWindowVariant)((wxWindow const *)arg1)->GetWindowVariant(); |
d55e5bfc RD |
24692 | |
24693 | wxPyEndAllowThreads(__tstate); | |
24694 | if (PyErr_Occurred()) SWIG_fail; | |
24695 | } | |
093d3ff1 | 24696 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
24697 | return resultobj; |
24698 | fail: | |
24699 | return NULL; | |
24700 | } | |
24701 | ||
24702 | ||
c32bde28 | 24703 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24704 | PyObject *resultobj; |
24705 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24706 | int arg2 ; | |
24707 | PyObject * obj0 = 0 ; | |
24708 | PyObject * obj1 = 0 ; | |
24709 | char *kwnames[] = { | |
24710 | (char *) "self",(char *) "winid", NULL | |
24711 | }; | |
24712 | ||
24713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24714 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24715 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24716 | { | |
24717 | arg2 = (int)(SWIG_As_int(obj1)); | |
24718 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24719 | } | |
d55e5bfc RD |
24720 | { |
24721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24722 | (arg1)->SetId(arg2); | |
24723 | ||
24724 | wxPyEndAllowThreads(__tstate); | |
24725 | if (PyErr_Occurred()) SWIG_fail; | |
24726 | } | |
24727 | Py_INCREF(Py_None); resultobj = Py_None; | |
24728 | return resultobj; | |
24729 | fail: | |
24730 | return NULL; | |
24731 | } | |
24732 | ||
24733 | ||
c32bde28 | 24734 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24735 | PyObject *resultobj; |
24736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24737 | int result; | |
24738 | PyObject * obj0 = 0 ; | |
24739 | char *kwnames[] = { | |
24740 | (char *) "self", NULL | |
24741 | }; | |
24742 | ||
24743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24746 | { |
24747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24748 | result = (int)((wxWindow const *)arg1)->GetId(); | |
24749 | ||
24750 | wxPyEndAllowThreads(__tstate); | |
24751 | if (PyErr_Occurred()) SWIG_fail; | |
24752 | } | |
093d3ff1 RD |
24753 | { |
24754 | resultobj = SWIG_From_int((int)(result)); | |
24755 | } | |
d55e5bfc RD |
24756 | return resultobj; |
24757 | fail: | |
24758 | return NULL; | |
24759 | } | |
24760 | ||
24761 | ||
c32bde28 | 24762 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24763 | PyObject *resultobj; |
24764 | int result; | |
24765 | char *kwnames[] = { | |
24766 | NULL | |
24767 | }; | |
24768 | ||
24769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
24770 | { | |
24771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24772 | result = (int)wxWindow::NewControlId(); | |
24773 | ||
24774 | wxPyEndAllowThreads(__tstate); | |
24775 | if (PyErr_Occurred()) SWIG_fail; | |
24776 | } | |
093d3ff1 RD |
24777 | { |
24778 | resultobj = SWIG_From_int((int)(result)); | |
24779 | } | |
d55e5bfc RD |
24780 | return resultobj; |
24781 | fail: | |
24782 | return NULL; | |
24783 | } | |
24784 | ||
24785 | ||
c32bde28 | 24786 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24787 | PyObject *resultobj; |
24788 | int arg1 ; | |
24789 | int result; | |
24790 | PyObject * obj0 = 0 ; | |
24791 | char *kwnames[] = { | |
24792 | (char *) "winid", NULL | |
24793 | }; | |
24794 | ||
24795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24796 | { |
24797 | arg1 = (int)(SWIG_As_int(obj0)); | |
24798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24799 | } | |
d55e5bfc RD |
24800 | { |
24801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24802 | result = (int)wxWindow::NextControlId(arg1); | |
24803 | ||
24804 | wxPyEndAllowThreads(__tstate); | |
24805 | if (PyErr_Occurred()) SWIG_fail; | |
24806 | } | |
093d3ff1 RD |
24807 | { |
24808 | resultobj = SWIG_From_int((int)(result)); | |
24809 | } | |
d55e5bfc RD |
24810 | return resultobj; |
24811 | fail: | |
24812 | return NULL; | |
24813 | } | |
24814 | ||
24815 | ||
c32bde28 | 24816 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24817 | PyObject *resultobj; |
24818 | int arg1 ; | |
24819 | int result; | |
24820 | PyObject * obj0 = 0 ; | |
24821 | char *kwnames[] = { | |
24822 | (char *) "winid", NULL | |
24823 | }; | |
24824 | ||
24825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24826 | { |
24827 | arg1 = (int)(SWIG_As_int(obj0)); | |
24828 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24829 | } | |
d55e5bfc RD |
24830 | { |
24831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24832 | result = (int)wxWindow::PrevControlId(arg1); | |
24833 | ||
24834 | wxPyEndAllowThreads(__tstate); | |
24835 | if (PyErr_Occurred()) SWIG_fail; | |
24836 | } | |
093d3ff1 RD |
24837 | { |
24838 | resultobj = SWIG_From_int((int)(result)); | |
24839 | } | |
d55e5bfc RD |
24840 | return resultobj; |
24841 | fail: | |
24842 | return NULL; | |
24843 | } | |
24844 | ||
24845 | ||
c32bde28 | 24846 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24847 | PyObject *resultobj; |
24848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24849 | wxSize *arg2 = 0 ; | |
24850 | wxSize temp2 ; | |
24851 | PyObject * obj0 = 0 ; | |
24852 | PyObject * obj1 = 0 ; | |
24853 | char *kwnames[] = { | |
24854 | (char *) "self",(char *) "size", NULL | |
24855 | }; | |
24856 | ||
24857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24860 | { |
24861 | arg2 = &temp2; | |
24862 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24863 | } | |
24864 | { | |
24865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24866 | (arg1)->SetSize((wxSize const &)*arg2); | |
24867 | ||
24868 | wxPyEndAllowThreads(__tstate); | |
24869 | if (PyErr_Occurred()) SWIG_fail; | |
24870 | } | |
24871 | Py_INCREF(Py_None); resultobj = Py_None; | |
24872 | return resultobj; | |
24873 | fail: | |
24874 | return NULL; | |
24875 | } | |
24876 | ||
24877 | ||
c32bde28 | 24878 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24879 | PyObject *resultobj; |
24880 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24881 | int arg2 ; | |
24882 | int arg3 ; | |
24883 | int arg4 ; | |
24884 | int arg5 ; | |
24885 | int arg6 = (int) wxSIZE_AUTO ; | |
24886 | PyObject * obj0 = 0 ; | |
24887 | PyObject * obj1 = 0 ; | |
24888 | PyObject * obj2 = 0 ; | |
24889 | PyObject * obj3 = 0 ; | |
24890 | PyObject * obj4 = 0 ; | |
24891 | PyObject * obj5 = 0 ; | |
24892 | char *kwnames[] = { | |
24893 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
24894 | }; | |
24895 | ||
24896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
24897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24899 | { | |
24900 | arg2 = (int)(SWIG_As_int(obj1)); | |
24901 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24902 | } | |
24903 | { | |
24904 | arg3 = (int)(SWIG_As_int(obj2)); | |
24905 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24906 | } | |
24907 | { | |
24908 | arg4 = (int)(SWIG_As_int(obj3)); | |
24909 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24910 | } | |
24911 | { | |
24912 | arg5 = (int)(SWIG_As_int(obj4)); | |
24913 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24914 | } | |
d55e5bfc | 24915 | if (obj5) { |
093d3ff1 RD |
24916 | { |
24917 | arg6 = (int)(SWIG_As_int(obj5)); | |
24918 | if (SWIG_arg_fail(6)) SWIG_fail; | |
24919 | } | |
d55e5bfc RD |
24920 | } |
24921 | { | |
24922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24923 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
24924 | ||
24925 | wxPyEndAllowThreads(__tstate); | |
24926 | if (PyErr_Occurred()) SWIG_fail; | |
24927 | } | |
24928 | Py_INCREF(Py_None); resultobj = Py_None; | |
24929 | return resultobj; | |
24930 | fail: | |
24931 | return NULL; | |
24932 | } | |
24933 | ||
24934 | ||
c32bde28 | 24935 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24936 | PyObject *resultobj; |
24937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24938 | wxRect *arg2 = 0 ; | |
24939 | int arg3 = (int) wxSIZE_AUTO ; | |
24940 | wxRect temp2 ; | |
24941 | PyObject * obj0 = 0 ; | |
24942 | PyObject * obj1 = 0 ; | |
24943 | PyObject * obj2 = 0 ; | |
24944 | char *kwnames[] = { | |
24945 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
24946 | }; | |
24947 | ||
24948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24951 | { |
24952 | arg2 = &temp2; | |
24953 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24954 | } | |
24955 | if (obj2) { | |
093d3ff1 RD |
24956 | { |
24957 | arg3 = (int)(SWIG_As_int(obj2)); | |
24958 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24959 | } | |
d55e5bfc RD |
24960 | } |
24961 | { | |
24962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24963 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
24964 | ||
24965 | wxPyEndAllowThreads(__tstate); | |
24966 | if (PyErr_Occurred()) SWIG_fail; | |
24967 | } | |
24968 | Py_INCREF(Py_None); resultobj = Py_None; | |
24969 | return resultobj; | |
24970 | fail: | |
24971 | return NULL; | |
24972 | } | |
24973 | ||
24974 | ||
c32bde28 | 24975 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24976 | PyObject *resultobj; |
24977 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24978 | int arg2 ; | |
24979 | int arg3 ; | |
24980 | PyObject * obj0 = 0 ; | |
24981 | PyObject * obj1 = 0 ; | |
24982 | PyObject * obj2 = 0 ; | |
24983 | char *kwnames[] = { | |
24984 | (char *) "self",(char *) "width",(char *) "height", NULL | |
24985 | }; | |
24986 | ||
24987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24990 | { | |
24991 | arg2 = (int)(SWIG_As_int(obj1)); | |
24992 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24993 | } | |
24994 | { | |
24995 | arg3 = (int)(SWIG_As_int(obj2)); | |
24996 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24997 | } | |
d55e5bfc RD |
24998 | { |
24999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25000 | (arg1)->SetSize(arg2,arg3); | |
25001 | ||
25002 | wxPyEndAllowThreads(__tstate); | |
25003 | if (PyErr_Occurred()) SWIG_fail; | |
25004 | } | |
25005 | Py_INCREF(Py_None); resultobj = Py_None; | |
25006 | return resultobj; | |
25007 | fail: | |
25008 | return NULL; | |
25009 | } | |
25010 | ||
25011 | ||
c32bde28 | 25012 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25013 | PyObject *resultobj; |
25014 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25015 | wxPoint *arg2 = 0 ; | |
25016 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
25017 | wxPoint temp2 ; | |
25018 | PyObject * obj0 = 0 ; | |
25019 | PyObject * obj1 = 0 ; | |
25020 | PyObject * obj2 = 0 ; | |
25021 | char *kwnames[] = { | |
25022 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
25023 | }; | |
25024 | ||
25025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25028 | { |
25029 | arg2 = &temp2; | |
25030 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25031 | } | |
25032 | if (obj2) { | |
093d3ff1 RD |
25033 | { |
25034 | arg3 = (int)(SWIG_As_int(obj2)); | |
25035 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25036 | } | |
d55e5bfc RD |
25037 | } |
25038 | { | |
25039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25040 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
25041 | ||
25042 | wxPyEndAllowThreads(__tstate); | |
25043 | if (PyErr_Occurred()) SWIG_fail; | |
25044 | } | |
25045 | Py_INCREF(Py_None); resultobj = Py_None; | |
25046 | return resultobj; | |
25047 | fail: | |
25048 | return NULL; | |
25049 | } | |
25050 | ||
25051 | ||
c32bde28 | 25052 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25053 | PyObject *resultobj; |
25054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25055 | int arg2 ; | |
25056 | int arg3 ; | |
25057 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
25058 | PyObject * obj0 = 0 ; | |
25059 | PyObject * obj1 = 0 ; | |
25060 | PyObject * obj2 = 0 ; | |
25061 | PyObject * obj3 = 0 ; | |
25062 | char *kwnames[] = { | |
25063 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
25064 | }; | |
25065 | ||
25066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
25067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25069 | { | |
25070 | arg2 = (int)(SWIG_As_int(obj1)); | |
25071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25072 | } | |
25073 | { | |
25074 | arg3 = (int)(SWIG_As_int(obj2)); | |
25075 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25076 | } | |
d55e5bfc | 25077 | if (obj3) { |
093d3ff1 RD |
25078 | { |
25079 | arg4 = (int)(SWIG_As_int(obj3)); | |
25080 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25081 | } | |
d55e5bfc RD |
25082 | } |
25083 | { | |
25084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25085 | (arg1)->Move(arg2,arg3,arg4); | |
25086 | ||
25087 | wxPyEndAllowThreads(__tstate); | |
25088 | if (PyErr_Occurred()) SWIG_fail; | |
25089 | } | |
25090 | Py_INCREF(Py_None); resultobj = Py_None; | |
25091 | return resultobj; | |
25092 | fail: | |
25093 | return NULL; | |
25094 | } | |
25095 | ||
25096 | ||
c32bde28 | 25097 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
25098 | PyObject *resultobj; |
25099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25100 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
25101 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
25102 | wxSize temp2 ; | |
25103 | PyObject * obj0 = 0 ; | |
25104 | PyObject * obj1 = 0 ; | |
25105 | char *kwnames[] = { | |
25106 | (char *) "self",(char *) "size", NULL | |
25107 | }; | |
25108 | ||
25109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
f8167d6e RD |
25112 | if (obj1) { |
25113 | { | |
25114 | arg2 = &temp2; | |
25115 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25116 | } | |
25117 | } | |
25118 | { | |
25119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25120 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
25121 | ||
25122 | wxPyEndAllowThreads(__tstate); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
25124 | } | |
25125 | Py_INCREF(Py_None); resultobj = Py_None; | |
25126 | return resultobj; | |
25127 | fail: | |
25128 | return NULL; | |
25129 | } | |
25130 | ||
25131 | ||
c32bde28 | 25132 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25133 | PyObject *resultobj; |
25134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25135 | PyObject * obj0 = 0 ; | |
25136 | char *kwnames[] = { | |
25137 | (char *) "self", NULL | |
25138 | }; | |
25139 | ||
25140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25143 | { |
25144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25145 | (arg1)->Raise(); | |
25146 | ||
25147 | wxPyEndAllowThreads(__tstate); | |
25148 | if (PyErr_Occurred()) SWIG_fail; | |
25149 | } | |
25150 | Py_INCREF(Py_None); resultobj = Py_None; | |
25151 | return resultobj; | |
25152 | fail: | |
25153 | return NULL; | |
25154 | } | |
25155 | ||
25156 | ||
c32bde28 | 25157 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25158 | PyObject *resultobj; |
25159 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25160 | PyObject * obj0 = 0 ; | |
25161 | char *kwnames[] = { | |
25162 | (char *) "self", NULL | |
25163 | }; | |
25164 | ||
25165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25168 | { |
25169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25170 | (arg1)->Lower(); | |
25171 | ||
25172 | wxPyEndAllowThreads(__tstate); | |
25173 | if (PyErr_Occurred()) SWIG_fail; | |
25174 | } | |
25175 | Py_INCREF(Py_None); resultobj = Py_None; | |
25176 | return resultobj; | |
25177 | fail: | |
25178 | return NULL; | |
25179 | } | |
25180 | ||
25181 | ||
c32bde28 | 25182 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25183 | PyObject *resultobj; |
25184 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25185 | wxSize *arg2 = 0 ; | |
25186 | wxSize temp2 ; | |
25187 | PyObject * obj0 = 0 ; | |
25188 | PyObject * obj1 = 0 ; | |
25189 | char *kwnames[] = { | |
25190 | (char *) "self",(char *) "size", NULL | |
25191 | }; | |
25192 | ||
25193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25196 | { |
25197 | arg2 = &temp2; | |
25198 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25199 | } | |
25200 | { | |
25201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25202 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
25203 | ||
25204 | wxPyEndAllowThreads(__tstate); | |
25205 | if (PyErr_Occurred()) SWIG_fail; | |
25206 | } | |
25207 | Py_INCREF(Py_None); resultobj = Py_None; | |
25208 | return resultobj; | |
25209 | fail: | |
25210 | return NULL; | |
25211 | } | |
25212 | ||
25213 | ||
c32bde28 | 25214 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25215 | PyObject *resultobj; |
25216 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25217 | int arg2 ; | |
25218 | int arg3 ; | |
25219 | PyObject * obj0 = 0 ; | |
25220 | PyObject * obj1 = 0 ; | |
25221 | PyObject * obj2 = 0 ; | |
25222 | char *kwnames[] = { | |
25223 | (char *) "self",(char *) "width",(char *) "height", NULL | |
25224 | }; | |
25225 | ||
25226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25229 | { | |
25230 | arg2 = (int)(SWIG_As_int(obj1)); | |
25231 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25232 | } | |
25233 | { | |
25234 | arg3 = (int)(SWIG_As_int(obj2)); | |
25235 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25236 | } | |
d55e5bfc RD |
25237 | { |
25238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25239 | (arg1)->SetClientSize(arg2,arg3); | |
25240 | ||
25241 | wxPyEndAllowThreads(__tstate); | |
25242 | if (PyErr_Occurred()) SWIG_fail; | |
25243 | } | |
25244 | Py_INCREF(Py_None); resultobj = Py_None; | |
25245 | return resultobj; | |
25246 | fail: | |
25247 | return NULL; | |
25248 | } | |
25249 | ||
25250 | ||
c32bde28 | 25251 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25252 | PyObject *resultobj; |
25253 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25254 | wxRect *arg2 = 0 ; | |
25255 | wxRect temp2 ; | |
25256 | PyObject * obj0 = 0 ; | |
25257 | PyObject * obj1 = 0 ; | |
25258 | char *kwnames[] = { | |
25259 | (char *) "self",(char *) "rect", NULL | |
25260 | }; | |
25261 | ||
25262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25265 | { |
25266 | arg2 = &temp2; | |
25267 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25268 | } | |
25269 | { | |
25270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25271 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
25272 | ||
25273 | wxPyEndAllowThreads(__tstate); | |
25274 | if (PyErr_Occurred()) SWIG_fail; | |
25275 | } | |
25276 | Py_INCREF(Py_None); resultobj = Py_None; | |
25277 | return resultobj; | |
25278 | fail: | |
25279 | return NULL; | |
25280 | } | |
25281 | ||
25282 | ||
c32bde28 | 25283 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25284 | PyObject *resultobj; |
25285 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25286 | wxPoint result; | |
25287 | PyObject * obj0 = 0 ; | |
25288 | char *kwnames[] = { | |
25289 | (char *) "self", NULL | |
25290 | }; | |
25291 | ||
25292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25295 | { |
25296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25297 | result = (arg1)->GetPosition(); | |
25298 | ||
25299 | wxPyEndAllowThreads(__tstate); | |
25300 | if (PyErr_Occurred()) SWIG_fail; | |
25301 | } | |
25302 | { | |
25303 | wxPoint * resultptr; | |
093d3ff1 | 25304 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
25305 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
25306 | } | |
25307 | return resultobj; | |
25308 | fail: | |
25309 | return NULL; | |
25310 | } | |
25311 | ||
25312 | ||
c32bde28 | 25313 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25314 | PyObject *resultobj; |
25315 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25316 | int *arg2 = (int *) 0 ; | |
25317 | int *arg3 = (int *) 0 ; | |
25318 | int temp2 ; | |
c32bde28 | 25319 | int res2 = 0 ; |
d55e5bfc | 25320 | int temp3 ; |
c32bde28 | 25321 | int res3 = 0 ; |
d55e5bfc RD |
25322 | PyObject * obj0 = 0 ; |
25323 | char *kwnames[] = { | |
25324 | (char *) "self", NULL | |
25325 | }; | |
25326 | ||
c32bde28 RD |
25327 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
25328 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 25329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25332 | { |
25333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25334 | (arg1)->GetPosition(arg2,arg3); | |
25335 | ||
25336 | wxPyEndAllowThreads(__tstate); | |
25337 | if (PyErr_Occurred()) SWIG_fail; | |
25338 | } | |
25339 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
25340 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
25341 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
25342 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
25343 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
25344 | return resultobj; |
25345 | fail: | |
25346 | return NULL; | |
25347 | } | |
25348 | ||
25349 | ||
c32bde28 | 25350 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25351 | PyObject *resultobj; |
25352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25353 | wxSize result; | |
25354 | PyObject * obj0 = 0 ; | |
25355 | char *kwnames[] = { | |
25356 | (char *) "self", NULL | |
25357 | }; | |
25358 | ||
25359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25362 | { |
25363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25364 | result = ((wxWindow const *)arg1)->GetSize(); | |
25365 | ||
25366 | wxPyEndAllowThreads(__tstate); | |
25367 | if (PyErr_Occurred()) SWIG_fail; | |
25368 | } | |
25369 | { | |
25370 | wxSize * resultptr; | |
093d3ff1 | 25371 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
25372 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
25373 | } | |
25374 | return resultobj; | |
25375 | fail: | |
25376 | return NULL; | |
25377 | } | |
25378 | ||
25379 | ||
c32bde28 | 25380 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25381 | PyObject *resultobj; |
25382 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25383 | int *arg2 = (int *) 0 ; | |
25384 | int *arg3 = (int *) 0 ; | |
25385 | int temp2 ; | |
c32bde28 | 25386 | int res2 = 0 ; |
d55e5bfc | 25387 | int temp3 ; |
c32bde28 | 25388 | int res3 = 0 ; |
d55e5bfc RD |
25389 | PyObject * obj0 = 0 ; |
25390 | char *kwnames[] = { | |
25391 | (char *) "self", NULL | |
25392 | }; | |
25393 | ||
c32bde28 RD |
25394 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
25395 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 25396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25399 | { |
25400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25401 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
25402 | ||
25403 | wxPyEndAllowThreads(__tstate); | |
25404 | if (PyErr_Occurred()) SWIG_fail; | |
25405 | } | |
25406 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
25407 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
25408 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
25409 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
25410 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
25411 | return resultobj; |
25412 | fail: | |
25413 | return NULL; | |
25414 | } | |
25415 | ||
25416 | ||
c32bde28 | 25417 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25418 | PyObject *resultobj; |
25419 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25420 | wxRect result; | |
25421 | PyObject * obj0 = 0 ; | |
25422 | char *kwnames[] = { | |
25423 | (char *) "self", NULL | |
25424 | }; | |
25425 | ||
25426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25429 | { |
25430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25431 | result = ((wxWindow const *)arg1)->GetRect(); | |
25432 | ||
25433 | wxPyEndAllowThreads(__tstate); | |
25434 | if (PyErr_Occurred()) SWIG_fail; | |
25435 | } | |
25436 | { | |
25437 | wxRect * resultptr; | |
093d3ff1 | 25438 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
25439 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
25440 | } | |
25441 | return resultobj; | |
25442 | fail: | |
25443 | return NULL; | |
25444 | } | |
25445 | ||
25446 | ||
c32bde28 | 25447 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25448 | PyObject *resultobj; |
25449 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25450 | wxSize result; | |
25451 | PyObject * obj0 = 0 ; | |
25452 | char *kwnames[] = { | |
25453 | (char *) "self", NULL | |
25454 | }; | |
25455 | ||
25456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25459 | { |
25460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25461 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
25462 | ||
25463 | wxPyEndAllowThreads(__tstate); | |
25464 | if (PyErr_Occurred()) SWIG_fail; | |
25465 | } | |
25466 | { | |
25467 | wxSize * resultptr; | |
093d3ff1 | 25468 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
25469 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
25470 | } | |
25471 | return resultobj; | |
25472 | fail: | |
25473 | return NULL; | |
25474 | } | |
25475 | ||
25476 | ||
c32bde28 | 25477 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25478 | PyObject *resultobj; |
25479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25480 | int *arg2 = (int *) 0 ; | |
25481 | int *arg3 = (int *) 0 ; | |
25482 | int temp2 ; | |
c32bde28 | 25483 | int res2 = 0 ; |
d55e5bfc | 25484 | int temp3 ; |
c32bde28 | 25485 | int res3 = 0 ; |
d55e5bfc RD |
25486 | PyObject * obj0 = 0 ; |
25487 | char *kwnames[] = { | |
25488 | (char *) "self", NULL | |
25489 | }; | |
25490 | ||
c32bde28 RD |
25491 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
25492 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 25493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25496 | { |
25497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25498 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
25499 | ||
25500 | wxPyEndAllowThreads(__tstate); | |
25501 | if (PyErr_Occurred()) SWIG_fail; | |
25502 | } | |
25503 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
25504 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
25505 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
25506 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
25507 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
25508 | return resultobj; |
25509 | fail: | |
25510 | return NULL; | |
25511 | } | |
25512 | ||
25513 | ||
c32bde28 | 25514 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25515 | PyObject *resultobj; |
25516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25517 | wxPoint result; | |
25518 | PyObject * obj0 = 0 ; | |
25519 | char *kwnames[] = { | |
25520 | (char *) "self", NULL | |
25521 | }; | |
25522 | ||
25523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25526 | { |
25527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25528 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
25529 | ||
25530 | wxPyEndAllowThreads(__tstate); | |
25531 | if (PyErr_Occurred()) SWIG_fail; | |
25532 | } | |
25533 | { | |
25534 | wxPoint * resultptr; | |
093d3ff1 | 25535 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
25536 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
25537 | } | |
25538 | return resultobj; | |
25539 | fail: | |
25540 | return NULL; | |
25541 | } | |
25542 | ||
25543 | ||
c32bde28 | 25544 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25545 | PyObject *resultobj; |
25546 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25547 | wxRect result; | |
25548 | PyObject * obj0 = 0 ; | |
25549 | char *kwnames[] = { | |
25550 | (char *) "self", NULL | |
25551 | }; | |
25552 | ||
25553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25556 | { |
25557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25558 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
25559 | ||
25560 | wxPyEndAllowThreads(__tstate); | |
25561 | if (PyErr_Occurred()) SWIG_fail; | |
25562 | } | |
25563 | { | |
25564 | wxRect * resultptr; | |
093d3ff1 | 25565 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
25566 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
25567 | } | |
25568 | return resultobj; | |
25569 | fail: | |
25570 | return NULL; | |
25571 | } | |
25572 | ||
25573 | ||
c32bde28 | 25574 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25575 | PyObject *resultobj; |
25576 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25577 | wxSize result; | |
25578 | PyObject * obj0 = 0 ; | |
25579 | char *kwnames[] = { | |
25580 | (char *) "self", NULL | |
25581 | }; | |
25582 | ||
25583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25584 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25585 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25586 | { |
25587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25588 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
25589 | ||
25590 | wxPyEndAllowThreads(__tstate); | |
25591 | if (PyErr_Occurred()) SWIG_fail; | |
25592 | } | |
25593 | { | |
25594 | wxSize * resultptr; | |
093d3ff1 | 25595 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
25596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
25597 | } | |
25598 | return resultobj; | |
25599 | fail: | |
25600 | return NULL; | |
25601 | } | |
25602 | ||
25603 | ||
c32bde28 | 25604 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25605 | PyObject *resultobj; |
25606 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25607 | int *arg2 = (int *) 0 ; | |
25608 | int *arg3 = (int *) 0 ; | |
25609 | int temp2 ; | |
c32bde28 | 25610 | int res2 = 0 ; |
d55e5bfc | 25611 | int temp3 ; |
c32bde28 | 25612 | int res3 = 0 ; |
d55e5bfc RD |
25613 | PyObject * obj0 = 0 ; |
25614 | char *kwnames[] = { | |
25615 | (char *) "self", NULL | |
25616 | }; | |
25617 | ||
c32bde28 RD |
25618 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
25619 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 25620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25623 | { |
25624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25625 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
25626 | ||
25627 | wxPyEndAllowThreads(__tstate); | |
25628 | if (PyErr_Occurred()) SWIG_fail; | |
25629 | } | |
25630 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
25631 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
25632 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
25633 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
25634 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
25635 | return resultobj; |
25636 | fail: | |
25637 | return NULL; | |
25638 | } | |
25639 | ||
25640 | ||
c32bde28 | 25641 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
25642 | PyObject *resultobj; |
25643 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25644 | PyObject * obj0 = 0 ; | |
25645 | char *kwnames[] = { | |
25646 | (char *) "self", NULL | |
25647 | }; | |
25648 | ||
25649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a001823c RD |
25652 | { |
25653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25654 | (arg1)->InvalidateBestSize(); | |
25655 | ||
25656 | wxPyEndAllowThreads(__tstate); | |
25657 | if (PyErr_Occurred()) SWIG_fail; | |
25658 | } | |
25659 | Py_INCREF(Py_None); resultobj = Py_None; | |
25660 | return resultobj; | |
25661 | fail: | |
25662 | return NULL; | |
25663 | } | |
25664 | ||
25665 | ||
c32bde28 | 25666 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
25667 | PyObject *resultobj; |
25668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25669 | wxSize result; | |
25670 | PyObject * obj0 = 0 ; | |
25671 | char *kwnames[] = { | |
25672 | (char *) "self", NULL | |
25673 | }; | |
25674 | ||
25675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a001823c RD |
25678 | { |
25679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25680 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
25681 | ||
25682 | wxPyEndAllowThreads(__tstate); | |
25683 | if (PyErr_Occurred()) SWIG_fail; | |
25684 | } | |
25685 | { | |
25686 | wxSize * resultptr; | |
093d3ff1 | 25687 | resultptr = new wxSize((wxSize &)(result)); |
a001823c RD |
25688 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
25689 | } | |
25690 | return resultobj; | |
25691 | fail: | |
25692 | return NULL; | |
25693 | } | |
25694 | ||
25695 | ||
c32bde28 | 25696 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25697 | PyObject *resultobj; |
25698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25699 | wxSize result; | |
25700 | PyObject * obj0 = 0 ; | |
25701 | char *kwnames[] = { | |
25702 | (char *) "self", NULL | |
25703 | }; | |
25704 | ||
25705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25708 | { |
25709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25710 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
25711 | ||
25712 | wxPyEndAllowThreads(__tstate); | |
25713 | if (PyErr_Occurred()) SWIG_fail; | |
25714 | } | |
25715 | { | |
25716 | wxSize * resultptr; | |
093d3ff1 | 25717 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
25718 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
25719 | } | |
25720 | return resultobj; | |
25721 | fail: | |
25722 | return NULL; | |
25723 | } | |
25724 | ||
25725 | ||
c32bde28 | 25726 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25727 | PyObject *resultobj; |
25728 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25729 | int arg2 = (int) wxBOTH ; | |
25730 | PyObject * obj0 = 0 ; | |
25731 | PyObject * obj1 = 0 ; | |
25732 | char *kwnames[] = { | |
25733 | (char *) "self",(char *) "direction", NULL | |
25734 | }; | |
25735 | ||
25736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 25739 | if (obj1) { |
093d3ff1 RD |
25740 | { |
25741 | arg2 = (int)(SWIG_As_int(obj1)); | |
25742 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25743 | } | |
d55e5bfc RD |
25744 | } |
25745 | { | |
25746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25747 | (arg1)->Center(arg2); | |
25748 | ||
25749 | wxPyEndAllowThreads(__tstate); | |
25750 | if (PyErr_Occurred()) SWIG_fail; | |
25751 | } | |
25752 | Py_INCREF(Py_None); resultobj = Py_None; | |
25753 | return resultobj; | |
25754 | fail: | |
25755 | return NULL; | |
25756 | } | |
25757 | ||
25758 | ||
c32bde28 | 25759 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25760 | PyObject *resultobj; |
25761 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25762 | int arg2 = (int) wxBOTH ; | |
25763 | PyObject * obj0 = 0 ; | |
25764 | PyObject * obj1 = 0 ; | |
25765 | char *kwnames[] = { | |
25766 | (char *) "self",(char *) "dir", NULL | |
25767 | }; | |
25768 | ||
25769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 25772 | if (obj1) { |
093d3ff1 RD |
25773 | { |
25774 | arg2 = (int)(SWIG_As_int(obj1)); | |
25775 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25776 | } | |
d55e5bfc RD |
25777 | } |
25778 | { | |
25779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25780 | (arg1)->CenterOnScreen(arg2); | |
25781 | ||
25782 | wxPyEndAllowThreads(__tstate); | |
25783 | if (PyErr_Occurred()) SWIG_fail; | |
25784 | } | |
25785 | Py_INCREF(Py_None); resultobj = Py_None; | |
25786 | return resultobj; | |
25787 | fail: | |
25788 | return NULL; | |
25789 | } | |
25790 | ||
25791 | ||
c32bde28 | 25792 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25793 | PyObject *resultobj; |
25794 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25795 | int arg2 = (int) wxBOTH ; | |
25796 | PyObject * obj0 = 0 ; | |
25797 | PyObject * obj1 = 0 ; | |
25798 | char *kwnames[] = { | |
25799 | (char *) "self",(char *) "dir", NULL | |
25800 | }; | |
25801 | ||
25802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 25805 | if (obj1) { |
093d3ff1 RD |
25806 | { |
25807 | arg2 = (int)(SWIG_As_int(obj1)); | |
25808 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25809 | } | |
d55e5bfc RD |
25810 | } |
25811 | { | |
25812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25813 | (arg1)->CenterOnParent(arg2); | |
25814 | ||
25815 | wxPyEndAllowThreads(__tstate); | |
25816 | if (PyErr_Occurred()) SWIG_fail; | |
25817 | } | |
25818 | Py_INCREF(Py_None); resultobj = Py_None; | |
25819 | return resultobj; | |
25820 | fail: | |
25821 | return NULL; | |
25822 | } | |
25823 | ||
25824 | ||
c32bde28 | 25825 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25826 | PyObject *resultobj; |
25827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25828 | PyObject * obj0 = 0 ; | |
25829 | char *kwnames[] = { | |
25830 | (char *) "self", NULL | |
25831 | }; | |
25832 | ||
25833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25836 | { |
25837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25838 | (arg1)->Fit(); | |
25839 | ||
25840 | wxPyEndAllowThreads(__tstate); | |
25841 | if (PyErr_Occurred()) SWIG_fail; | |
25842 | } | |
25843 | Py_INCREF(Py_None); resultobj = Py_None; | |
25844 | return resultobj; | |
25845 | fail: | |
25846 | return NULL; | |
25847 | } | |
25848 | ||
25849 | ||
c32bde28 | 25850 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25851 | PyObject *resultobj; |
25852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25853 | PyObject * obj0 = 0 ; | |
25854 | char *kwnames[] = { | |
25855 | (char *) "self", NULL | |
25856 | }; | |
25857 | ||
25858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25861 | { |
25862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25863 | (arg1)->FitInside(); | |
25864 | ||
25865 | wxPyEndAllowThreads(__tstate); | |
25866 | if (PyErr_Occurred()) SWIG_fail; | |
25867 | } | |
25868 | Py_INCREF(Py_None); resultobj = Py_None; | |
25869 | return resultobj; | |
25870 | fail: | |
25871 | return NULL; | |
25872 | } | |
25873 | ||
25874 | ||
c32bde28 | 25875 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25876 | PyObject *resultobj; |
25877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25878 | int arg2 ; | |
25879 | int arg3 ; | |
25880 | int arg4 = (int) -1 ; | |
25881 | int arg5 = (int) -1 ; | |
25882 | int arg6 = (int) -1 ; | |
25883 | int arg7 = (int) -1 ; | |
25884 | PyObject * obj0 = 0 ; | |
25885 | PyObject * obj1 = 0 ; | |
25886 | PyObject * obj2 = 0 ; | |
25887 | PyObject * obj3 = 0 ; | |
25888 | PyObject * obj4 = 0 ; | |
25889 | PyObject * obj5 = 0 ; | |
25890 | PyObject * obj6 = 0 ; | |
03837c5c RD |
25891 | char *kwnames[] = { |
25892 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
25893 | }; | |
d55e5bfc | 25894 | |
03837c5c | 25895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
25896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25898 | { | |
25899 | arg2 = (int)(SWIG_As_int(obj1)); | |
25900 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25901 | } | |
25902 | { | |
25903 | arg3 = (int)(SWIG_As_int(obj2)); | |
25904 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25905 | } | |
d55e5bfc | 25906 | if (obj3) { |
093d3ff1 RD |
25907 | { |
25908 | arg4 = (int)(SWIG_As_int(obj3)); | |
25909 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25910 | } | |
d55e5bfc RD |
25911 | } |
25912 | if (obj4) { | |
093d3ff1 RD |
25913 | { |
25914 | arg5 = (int)(SWIG_As_int(obj4)); | |
25915 | if (SWIG_arg_fail(5)) SWIG_fail; | |
25916 | } | |
d55e5bfc RD |
25917 | } |
25918 | if (obj5) { | |
093d3ff1 RD |
25919 | { |
25920 | arg6 = (int)(SWIG_As_int(obj5)); | |
25921 | if (SWIG_arg_fail(6)) SWIG_fail; | |
25922 | } | |
d55e5bfc RD |
25923 | } |
25924 | if (obj6) { | |
093d3ff1 RD |
25925 | { |
25926 | arg7 = (int)(SWIG_As_int(obj6)); | |
25927 | if (SWIG_arg_fail(7)) SWIG_fail; | |
25928 | } | |
d55e5bfc RD |
25929 | } |
25930 | { | |
25931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25932 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
25933 | ||
25934 | wxPyEndAllowThreads(__tstate); | |
25935 | if (PyErr_Occurred()) SWIG_fail; | |
25936 | } | |
25937 | Py_INCREF(Py_None); resultobj = Py_None; | |
25938 | return resultobj; | |
25939 | fail: | |
25940 | return NULL; | |
25941 | } | |
25942 | ||
25943 | ||
c32bde28 | 25944 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25945 | PyObject *resultobj; |
25946 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
25947 | wxSize *arg2 = 0 ; |
25948 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
25949 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
25950 | wxSize const &arg4_defvalue = wxDefaultSize ; |
25951 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
25952 | wxSize temp2 ; |
25953 | wxSize temp3 ; | |
03837c5c | 25954 | wxSize temp4 ; |
d55e5bfc RD |
25955 | PyObject * obj0 = 0 ; |
25956 | PyObject * obj1 = 0 ; | |
25957 | PyObject * obj2 = 0 ; | |
03837c5c RD |
25958 | PyObject * obj3 = 0 ; |
25959 | char *kwnames[] = { | |
25960 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
25961 | }; | |
d55e5bfc | 25962 | |
03837c5c | 25963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
25966 | { |
25967 | arg2 = &temp2; | |
25968 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 25969 | } |
908b74cd RD |
25970 | if (obj2) { |
25971 | { | |
25972 | arg3 = &temp3; | |
25973 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
25974 | } | |
d55e5bfc | 25975 | } |
03837c5c RD |
25976 | if (obj3) { |
25977 | { | |
25978 | arg4 = &temp4; | |
25979 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25980 | } | |
25981 | } | |
d55e5bfc RD |
25982 | { |
25983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 25984 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
25985 | |
25986 | wxPyEndAllowThreads(__tstate); | |
25987 | if (PyErr_Occurred()) SWIG_fail; | |
25988 | } | |
25989 | Py_INCREF(Py_None); resultobj = Py_None; | |
25990 | return resultobj; | |
25991 | fail: | |
25992 | return NULL; | |
25993 | } | |
25994 | ||
25995 | ||
c32bde28 | 25996 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25997 | PyObject *resultobj; |
25998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
25999 | int arg2 ; |
26000 | int arg3 ; | |
26001 | int arg4 = (int) -1 ; | |
26002 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
26003 | PyObject * obj0 = 0 ; |
26004 | PyObject * obj1 = 0 ; | |
26005 | PyObject * obj2 = 0 ; | |
908b74cd RD |
26006 | PyObject * obj3 = 0 ; |
26007 | PyObject * obj4 = 0 ; | |
03837c5c RD |
26008 | char *kwnames[] = { |
26009 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
26010 | }; | |
d55e5bfc | 26011 | |
03837c5c | 26012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
26013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26015 | { | |
26016 | arg2 = (int)(SWIG_As_int(obj1)); | |
26017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26018 | } | |
26019 | { | |
26020 | arg3 = (int)(SWIG_As_int(obj2)); | |
26021 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26022 | } | |
908b74cd | 26023 | if (obj3) { |
093d3ff1 RD |
26024 | { |
26025 | arg4 = (int)(SWIG_As_int(obj3)); | |
26026 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26027 | } | |
d55e5bfc | 26028 | } |
908b74cd | 26029 | if (obj4) { |
093d3ff1 RD |
26030 | { |
26031 | arg5 = (int)(SWIG_As_int(obj4)); | |
26032 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26033 | } | |
d55e5bfc RD |
26034 | } |
26035 | { | |
26036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26037 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
26038 | |
26039 | wxPyEndAllowThreads(__tstate); | |
26040 | if (PyErr_Occurred()) SWIG_fail; | |
26041 | } | |
26042 | Py_INCREF(Py_None); resultobj = Py_None; | |
26043 | return resultobj; | |
26044 | fail: | |
26045 | return NULL; | |
26046 | } | |
26047 | ||
26048 | ||
c32bde28 | 26049 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
26050 | PyObject *resultobj; |
26051 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26052 | wxSize *arg2 = 0 ; | |
26053 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
26054 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
26055 | wxSize temp2 ; | |
26056 | wxSize temp3 ; | |
26057 | PyObject * obj0 = 0 ; | |
26058 | PyObject * obj1 = 0 ; | |
26059 | PyObject * obj2 = 0 ; | |
26060 | char *kwnames[] = { | |
26061 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
26062 | }; | |
d55e5bfc | 26063 | |
03837c5c | 26064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
03837c5c RD |
26067 | { |
26068 | arg2 = &temp2; | |
26069 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 26070 | } |
03837c5c | 26071 | if (obj2) { |
d55e5bfc | 26072 | { |
03837c5c RD |
26073 | arg3 = &temp3; |
26074 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
26075 | } |
26076 | } | |
03837c5c RD |
26077 | { |
26078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26079 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
26080 | ||
26081 | wxPyEndAllowThreads(__tstate); | |
26082 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 26083 | } |
03837c5c RD |
26084 | Py_INCREF(Py_None); resultobj = Py_None; |
26085 | return resultobj; | |
26086 | fail: | |
d55e5bfc RD |
26087 | return NULL; |
26088 | } | |
26089 | ||
26090 | ||
c32bde28 | 26091 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26092 | PyObject *resultobj; |
26093 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 26094 | wxSize result; |
d55e5bfc RD |
26095 | PyObject * obj0 = 0 ; |
26096 | char *kwnames[] = { | |
26097 | (char *) "self", NULL | |
26098 | }; | |
26099 | ||
908b74cd | 26100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26103 | { |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26105 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
26106 | |
26107 | wxPyEndAllowThreads(__tstate); | |
26108 | if (PyErr_Occurred()) SWIG_fail; | |
26109 | } | |
908b74cd RD |
26110 | { |
26111 | wxSize * resultptr; | |
093d3ff1 | 26112 | resultptr = new wxSize((wxSize &)(result)); |
908b74cd RD |
26113 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26114 | } | |
d55e5bfc RD |
26115 | return resultobj; |
26116 | fail: | |
26117 | return NULL; | |
26118 | } | |
26119 | ||
26120 | ||
c32bde28 | 26121 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26122 | PyObject *resultobj; |
26123 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 26124 | wxSize result; |
d55e5bfc RD |
26125 | PyObject * obj0 = 0 ; |
26126 | char *kwnames[] = { | |
26127 | (char *) "self", NULL | |
26128 | }; | |
26129 | ||
908b74cd | 26130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26133 | { |
26134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26135 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
26136 | |
26137 | wxPyEndAllowThreads(__tstate); | |
26138 | if (PyErr_Occurred()) SWIG_fail; | |
26139 | } | |
908b74cd RD |
26140 | { |
26141 | wxSize * resultptr; | |
093d3ff1 | 26142 | resultptr = new wxSize((wxSize &)(result)); |
908b74cd RD |
26143 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26144 | } | |
d55e5bfc RD |
26145 | return resultobj; |
26146 | fail: | |
26147 | return NULL; | |
26148 | } | |
26149 | ||
26150 | ||
c32bde28 | 26151 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
26152 | PyObject *resultobj; |
26153 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26154 | wxSize *arg2 = 0 ; | |
26155 | wxSize temp2 ; | |
26156 | PyObject * obj0 = 0 ; | |
26157 | PyObject * obj1 = 0 ; | |
26158 | char *kwnames[] = { | |
26159 | (char *) "self",(char *) "minSize", NULL | |
26160 | }; | |
26161 | ||
26162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
26165 | { |
26166 | arg2 = &temp2; | |
26167 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26168 | } | |
26169 | { | |
26170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26171 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
26172 | ||
26173 | wxPyEndAllowThreads(__tstate); | |
26174 | if (PyErr_Occurred()) SWIG_fail; | |
26175 | } | |
26176 | Py_INCREF(Py_None); resultobj = Py_None; | |
26177 | return resultobj; | |
26178 | fail: | |
26179 | return NULL; | |
26180 | } | |
26181 | ||
26182 | ||
c32bde28 | 26183 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
26184 | PyObject *resultobj; |
26185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26186 | wxSize *arg2 = 0 ; | |
26187 | wxSize temp2 ; | |
26188 | PyObject * obj0 = 0 ; | |
26189 | PyObject * obj1 = 0 ; | |
26190 | char *kwnames[] = { | |
26191 | (char *) "self",(char *) "maxSize", NULL | |
26192 | }; | |
26193 | ||
26194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26195 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26196 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
26197 | { |
26198 | arg2 = &temp2; | |
26199 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26200 | } | |
26201 | { | |
26202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26203 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
26204 | ||
26205 | wxPyEndAllowThreads(__tstate); | |
26206 | if (PyErr_Occurred()) SWIG_fail; | |
26207 | } | |
26208 | Py_INCREF(Py_None); resultobj = Py_None; | |
26209 | return resultobj; | |
26210 | fail: | |
26211 | return NULL; | |
26212 | } | |
26213 | ||
26214 | ||
c32bde28 | 26215 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26216 | PyObject *resultobj; |
26217 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26218 | int result; | |
26219 | PyObject * obj0 = 0 ; | |
26220 | char *kwnames[] = { | |
26221 | (char *) "self", NULL | |
26222 | }; | |
26223 | ||
908b74cd | 26224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26227 | { |
26228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26229 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
26230 | |
26231 | wxPyEndAllowThreads(__tstate); | |
26232 | if (PyErr_Occurred()) SWIG_fail; | |
26233 | } | |
093d3ff1 RD |
26234 | { |
26235 | resultobj = SWIG_From_int((int)(result)); | |
26236 | } | |
d55e5bfc RD |
26237 | return resultobj; |
26238 | fail: | |
26239 | return NULL; | |
26240 | } | |
26241 | ||
26242 | ||
c32bde28 | 26243 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26244 | PyObject *resultobj; |
26245 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26246 | int result; | |
26247 | PyObject * obj0 = 0 ; | |
26248 | char *kwnames[] = { | |
26249 | (char *) "self", NULL | |
26250 | }; | |
26251 | ||
908b74cd | 26252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26255 | { |
26256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26257 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
26258 | |
26259 | wxPyEndAllowThreads(__tstate); | |
26260 | if (PyErr_Occurred()) SWIG_fail; | |
26261 | } | |
093d3ff1 RD |
26262 | { |
26263 | resultobj = SWIG_From_int((int)(result)); | |
26264 | } | |
d55e5bfc RD |
26265 | return resultobj; |
26266 | fail: | |
26267 | return NULL; | |
26268 | } | |
26269 | ||
26270 | ||
c32bde28 | 26271 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26272 | PyObject *resultobj; |
26273 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 26274 | int result; |
d55e5bfc RD |
26275 | PyObject * obj0 = 0 ; |
26276 | char *kwnames[] = { | |
26277 | (char *) "self", NULL | |
26278 | }; | |
26279 | ||
908b74cd | 26280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26283 | { |
26284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26285 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
26286 | |
26287 | wxPyEndAllowThreads(__tstate); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | } | |
093d3ff1 RD |
26290 | { |
26291 | resultobj = SWIG_From_int((int)(result)); | |
26292 | } | |
d55e5bfc RD |
26293 | return resultobj; |
26294 | fail: | |
26295 | return NULL; | |
26296 | } | |
26297 | ||
26298 | ||
c32bde28 | 26299 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26300 | PyObject *resultobj; |
26301 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 26302 | int result; |
d55e5bfc RD |
26303 | PyObject * obj0 = 0 ; |
26304 | char *kwnames[] = { | |
26305 | (char *) "self", NULL | |
26306 | }; | |
26307 | ||
908b74cd | 26308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26311 | { |
26312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26313 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
26314 | |
26315 | wxPyEndAllowThreads(__tstate); | |
26316 | if (PyErr_Occurred()) SWIG_fail; | |
26317 | } | |
093d3ff1 RD |
26318 | { |
26319 | resultobj = SWIG_From_int((int)(result)); | |
26320 | } | |
d55e5bfc RD |
26321 | return resultobj; |
26322 | fail: | |
26323 | return NULL; | |
26324 | } | |
26325 | ||
26326 | ||
c32bde28 | 26327 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26328 | PyObject *resultobj; |
26329 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26330 | wxSize *arg2 = 0 ; | |
26331 | wxSize temp2 ; | |
26332 | PyObject * obj0 = 0 ; | |
26333 | PyObject * obj1 = 0 ; | |
26334 | char *kwnames[] = { | |
26335 | (char *) "self",(char *) "size", NULL | |
26336 | }; | |
26337 | ||
26338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26341 | { |
26342 | arg2 = &temp2; | |
26343 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26344 | } | |
26345 | { | |
26346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26347 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
26348 | ||
26349 | wxPyEndAllowThreads(__tstate); | |
26350 | if (PyErr_Occurred()) SWIG_fail; | |
26351 | } | |
26352 | Py_INCREF(Py_None); resultobj = Py_None; | |
26353 | return resultobj; | |
26354 | fail: | |
26355 | return NULL; | |
26356 | } | |
26357 | ||
26358 | ||
c32bde28 | 26359 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26360 | PyObject *resultobj; |
26361 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26362 | int arg2 ; | |
26363 | int arg3 ; | |
26364 | PyObject * obj0 = 0 ; | |
26365 | PyObject * obj1 = 0 ; | |
26366 | PyObject * obj2 = 0 ; | |
26367 | char *kwnames[] = { | |
26368 | (char *) "self",(char *) "w",(char *) "h", NULL | |
26369 | }; | |
26370 | ||
26371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
26372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26374 | { | |
26375 | arg2 = (int)(SWIG_As_int(obj1)); | |
26376 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26377 | } | |
26378 | { | |
26379 | arg3 = (int)(SWIG_As_int(obj2)); | |
26380 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26381 | } | |
d55e5bfc RD |
26382 | { |
26383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26384 | (arg1)->SetVirtualSize(arg2,arg3); | |
26385 | ||
26386 | wxPyEndAllowThreads(__tstate); | |
26387 | if (PyErr_Occurred()) SWIG_fail; | |
26388 | } | |
26389 | Py_INCREF(Py_None); resultobj = Py_None; | |
26390 | return resultobj; | |
26391 | fail: | |
26392 | return NULL; | |
26393 | } | |
26394 | ||
26395 | ||
c32bde28 | 26396 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26397 | PyObject *resultobj; |
26398 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26399 | wxSize result; | |
26400 | PyObject * obj0 = 0 ; | |
26401 | char *kwnames[] = { | |
26402 | (char *) "self", NULL | |
26403 | }; | |
26404 | ||
26405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26406 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26407 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26408 | { |
26409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26410 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
26411 | ||
26412 | wxPyEndAllowThreads(__tstate); | |
26413 | if (PyErr_Occurred()) SWIG_fail; | |
26414 | } | |
26415 | { | |
26416 | wxSize * resultptr; | |
093d3ff1 | 26417 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
26418 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26419 | } | |
26420 | return resultobj; | |
26421 | fail: | |
26422 | return NULL; | |
26423 | } | |
26424 | ||
26425 | ||
c32bde28 | 26426 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26427 | PyObject *resultobj; |
26428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26429 | int *arg2 = (int *) 0 ; | |
26430 | int *arg3 = (int *) 0 ; | |
26431 | int temp2 ; | |
c32bde28 | 26432 | int res2 = 0 ; |
d55e5bfc | 26433 | int temp3 ; |
c32bde28 | 26434 | int res3 = 0 ; |
d55e5bfc RD |
26435 | PyObject * obj0 = 0 ; |
26436 | char *kwnames[] = { | |
26437 | (char *) "self", NULL | |
26438 | }; | |
26439 | ||
c32bde28 RD |
26440 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26441 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 26442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",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; | |
d55e5bfc RD |
26445 | { |
26446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26447 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
26448 | ||
26449 | wxPyEndAllowThreads(__tstate); | |
26450 | if (PyErr_Occurred()) SWIG_fail; | |
26451 | } | |
26452 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26453 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26454 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26455 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26456 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
26457 | return resultobj; |
26458 | fail: | |
26459 | return NULL; | |
26460 | } | |
26461 | ||
26462 | ||
c32bde28 | 26463 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26464 | PyObject *resultobj; |
26465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26466 | wxSize result; | |
26467 | PyObject * obj0 = 0 ; | |
26468 | char *kwnames[] = { | |
26469 | (char *) "self", NULL | |
26470 | }; | |
26471 | ||
26472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26475 | { |
26476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26477 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
26478 | ||
26479 | wxPyEndAllowThreads(__tstate); | |
26480 | if (PyErr_Occurred()) SWIG_fail; | |
26481 | } | |
26482 | { | |
26483 | wxSize * resultptr; | |
093d3ff1 | 26484 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
26485 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26486 | } | |
26487 | return resultobj; | |
26488 | fail: | |
26489 | return NULL; | |
26490 | } | |
26491 | ||
26492 | ||
c32bde28 | 26493 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26494 | PyObject *resultobj; |
26495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 26496 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26497 | bool result; |
26498 | PyObject * obj0 = 0 ; | |
26499 | PyObject * obj1 = 0 ; | |
26500 | char *kwnames[] = { | |
26501 | (char *) "self",(char *) "show", NULL | |
26502 | }; | |
26503 | ||
26504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26507 | if (obj1) { |
093d3ff1 RD |
26508 | { |
26509 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
26510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26511 | } | |
d55e5bfc RD |
26512 | } |
26513 | { | |
26514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26515 | result = (bool)(arg1)->Show(arg2); | |
26516 | ||
26517 | wxPyEndAllowThreads(__tstate); | |
26518 | if (PyErr_Occurred()) SWIG_fail; | |
26519 | } | |
26520 | { | |
26521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26522 | } | |
26523 | return resultobj; | |
26524 | fail: | |
26525 | return NULL; | |
26526 | } | |
26527 | ||
26528 | ||
c32bde28 | 26529 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26530 | PyObject *resultobj; |
26531 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26532 | bool result; | |
26533 | PyObject * obj0 = 0 ; | |
26534 | char *kwnames[] = { | |
26535 | (char *) "self", NULL | |
26536 | }; | |
26537 | ||
26538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26541 | { |
26542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26543 | result = (bool)(arg1)->Hide(); | |
26544 | ||
26545 | wxPyEndAllowThreads(__tstate); | |
26546 | if (PyErr_Occurred()) SWIG_fail; | |
26547 | } | |
26548 | { | |
26549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26550 | } | |
26551 | return resultobj; | |
26552 | fail: | |
26553 | return NULL; | |
26554 | } | |
26555 | ||
26556 | ||
c32bde28 | 26557 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26558 | PyObject *resultobj; |
26559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 26560 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26561 | bool result; |
26562 | PyObject * obj0 = 0 ; | |
26563 | PyObject * obj1 = 0 ; | |
26564 | char *kwnames[] = { | |
26565 | (char *) "self",(char *) "enable", NULL | |
26566 | }; | |
26567 | ||
26568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26571 | if (obj1) { |
093d3ff1 RD |
26572 | { |
26573 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
26574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26575 | } | |
d55e5bfc RD |
26576 | } |
26577 | { | |
26578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26579 | result = (bool)(arg1)->Enable(arg2); | |
26580 | ||
26581 | wxPyEndAllowThreads(__tstate); | |
26582 | if (PyErr_Occurred()) SWIG_fail; | |
26583 | } | |
26584 | { | |
26585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26586 | } | |
26587 | return resultobj; | |
26588 | fail: | |
26589 | return NULL; | |
26590 | } | |
26591 | ||
26592 | ||
c32bde28 | 26593 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26594 | PyObject *resultobj; |
26595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26596 | bool result; | |
26597 | PyObject * obj0 = 0 ; | |
26598 | char *kwnames[] = { | |
26599 | (char *) "self", NULL | |
26600 | }; | |
26601 | ||
26602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26605 | { |
26606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26607 | result = (bool)(arg1)->Disable(); | |
26608 | ||
26609 | wxPyEndAllowThreads(__tstate); | |
26610 | if (PyErr_Occurred()) SWIG_fail; | |
26611 | } | |
26612 | { | |
26613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26614 | } | |
26615 | return resultobj; | |
26616 | fail: | |
26617 | return NULL; | |
26618 | } | |
26619 | ||
26620 | ||
c32bde28 | 26621 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26622 | PyObject *resultobj; |
26623 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26624 | bool result; | |
26625 | PyObject * obj0 = 0 ; | |
26626 | char *kwnames[] = { | |
26627 | (char *) "self", NULL | |
26628 | }; | |
26629 | ||
26630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26633 | { |
26634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26635 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
26636 | ||
26637 | wxPyEndAllowThreads(__tstate); | |
26638 | if (PyErr_Occurred()) SWIG_fail; | |
26639 | } | |
26640 | { | |
26641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26642 | } | |
26643 | return resultobj; | |
26644 | fail: | |
26645 | return NULL; | |
26646 | } | |
26647 | ||
26648 | ||
c32bde28 | 26649 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26650 | PyObject *resultobj; |
26651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26652 | bool result; | |
26653 | PyObject * obj0 = 0 ; | |
26654 | char *kwnames[] = { | |
26655 | (char *) "self", NULL | |
26656 | }; | |
26657 | ||
26658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26661 | { |
26662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26663 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
26664 | ||
26665 | wxPyEndAllowThreads(__tstate); | |
26666 | if (PyErr_Occurred()) SWIG_fail; | |
26667 | } | |
26668 | { | |
26669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26670 | } | |
26671 | return resultobj; | |
26672 | fail: | |
26673 | return NULL; | |
26674 | } | |
26675 | ||
26676 | ||
c32bde28 | 26677 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26678 | PyObject *resultobj; |
26679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26680 | long arg2 ; | |
26681 | PyObject * obj0 = 0 ; | |
26682 | PyObject * obj1 = 0 ; | |
26683 | char *kwnames[] = { | |
26684 | (char *) "self",(char *) "style", NULL | |
26685 | }; | |
26686 | ||
26687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26690 | { | |
26691 | arg2 = (long)(SWIG_As_long(obj1)); | |
26692 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26693 | } | |
d55e5bfc RD |
26694 | { |
26695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26696 | (arg1)->SetWindowStyleFlag(arg2); | |
26697 | ||
26698 | wxPyEndAllowThreads(__tstate); | |
26699 | if (PyErr_Occurred()) SWIG_fail; | |
26700 | } | |
26701 | Py_INCREF(Py_None); resultobj = Py_None; | |
26702 | return resultobj; | |
26703 | fail: | |
26704 | return NULL; | |
26705 | } | |
26706 | ||
26707 | ||
c32bde28 | 26708 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26709 | PyObject *resultobj; |
26710 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26711 | long result; | |
26712 | PyObject * obj0 = 0 ; | |
26713 | char *kwnames[] = { | |
26714 | (char *) "self", NULL | |
26715 | }; | |
26716 | ||
26717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26720 | { |
26721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26722 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
26723 | ||
26724 | wxPyEndAllowThreads(__tstate); | |
26725 | if (PyErr_Occurred()) SWIG_fail; | |
26726 | } | |
093d3ff1 RD |
26727 | { |
26728 | resultobj = SWIG_From_long((long)(result)); | |
26729 | } | |
d55e5bfc RD |
26730 | return resultobj; |
26731 | fail: | |
26732 | return NULL; | |
26733 | } | |
26734 | ||
26735 | ||
c32bde28 | 26736 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26737 | PyObject *resultobj; |
26738 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26739 | int arg2 ; | |
26740 | bool result; | |
26741 | PyObject * obj0 = 0 ; | |
26742 | PyObject * obj1 = 0 ; | |
26743 | char *kwnames[] = { | |
26744 | (char *) "self",(char *) "flag", NULL | |
26745 | }; | |
26746 | ||
26747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26750 | { | |
26751 | arg2 = (int)(SWIG_As_int(obj1)); | |
26752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26753 | } | |
d55e5bfc RD |
26754 | { |
26755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26756 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
26757 | ||
26758 | wxPyEndAllowThreads(__tstate); | |
26759 | if (PyErr_Occurred()) SWIG_fail; | |
26760 | } | |
26761 | { | |
26762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26763 | } | |
26764 | return resultobj; | |
26765 | fail: | |
26766 | return NULL; | |
26767 | } | |
26768 | ||
26769 | ||
c32bde28 | 26770 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26771 | PyObject *resultobj; |
26772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26773 | bool result; | |
26774 | PyObject * obj0 = 0 ; | |
26775 | char *kwnames[] = { | |
26776 | (char *) "self", NULL | |
26777 | }; | |
26778 | ||
26779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26782 | { |
26783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26784 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
26785 | ||
26786 | wxPyEndAllowThreads(__tstate); | |
26787 | if (PyErr_Occurred()) SWIG_fail; | |
26788 | } | |
26789 | { | |
26790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26791 | } | |
26792 | return resultobj; | |
26793 | fail: | |
26794 | return NULL; | |
26795 | } | |
26796 | ||
26797 | ||
c32bde28 | 26798 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26799 | PyObject *resultobj; |
26800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26801 | long arg2 ; | |
26802 | PyObject * obj0 = 0 ; | |
26803 | PyObject * obj1 = 0 ; | |
26804 | char *kwnames[] = { | |
26805 | (char *) "self",(char *) "exStyle", NULL | |
26806 | }; | |
26807 | ||
26808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26811 | { | |
26812 | arg2 = (long)(SWIG_As_long(obj1)); | |
26813 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26814 | } | |
d55e5bfc RD |
26815 | { |
26816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26817 | (arg1)->SetExtraStyle(arg2); | |
26818 | ||
26819 | wxPyEndAllowThreads(__tstate); | |
26820 | if (PyErr_Occurred()) SWIG_fail; | |
26821 | } | |
26822 | Py_INCREF(Py_None); resultobj = Py_None; | |
26823 | return resultobj; | |
26824 | fail: | |
26825 | return NULL; | |
26826 | } | |
26827 | ||
26828 | ||
c32bde28 | 26829 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26830 | PyObject *resultobj; |
26831 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26832 | long result; | |
26833 | PyObject * obj0 = 0 ; | |
26834 | char *kwnames[] = { | |
26835 | (char *) "self", NULL | |
26836 | }; | |
26837 | ||
26838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26841 | { |
26842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26843 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
26844 | ||
26845 | wxPyEndAllowThreads(__tstate); | |
26846 | if (PyErr_Occurred()) SWIG_fail; | |
26847 | } | |
093d3ff1 RD |
26848 | { |
26849 | resultobj = SWIG_From_long((long)(result)); | |
26850 | } | |
d55e5bfc RD |
26851 | return resultobj; |
26852 | fail: | |
26853 | return NULL; | |
26854 | } | |
26855 | ||
26856 | ||
c32bde28 | 26857 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26858 | PyObject *resultobj; |
26859 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 26860 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26861 | PyObject * obj0 = 0 ; |
26862 | PyObject * obj1 = 0 ; | |
26863 | char *kwnames[] = { | |
26864 | (char *) "self",(char *) "modal", NULL | |
26865 | }; | |
26866 | ||
26867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26870 | if (obj1) { |
093d3ff1 RD |
26871 | { |
26872 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
26873 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26874 | } | |
d55e5bfc RD |
26875 | } |
26876 | { | |
26877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26878 | (arg1)->MakeModal(arg2); | |
26879 | ||
26880 | wxPyEndAllowThreads(__tstate); | |
26881 | if (PyErr_Occurred()) SWIG_fail; | |
26882 | } | |
26883 | Py_INCREF(Py_None); resultobj = Py_None; | |
26884 | return resultobj; | |
26885 | fail: | |
26886 | return NULL; | |
26887 | } | |
26888 | ||
26889 | ||
c32bde28 | 26890 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26891 | PyObject *resultobj; |
26892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26893 | bool arg2 ; | |
26894 | PyObject * obj0 = 0 ; | |
26895 | PyObject * obj1 = 0 ; | |
26896 | char *kwnames[] = { | |
26897 | (char *) "self",(char *) "enableTheme", NULL | |
26898 | }; | |
26899 | ||
26900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26901 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26903 | { | |
26904 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
26905 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26906 | } | |
d55e5bfc RD |
26907 | { |
26908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26909 | (arg1)->SetThemeEnabled(arg2); | |
26910 | ||
26911 | wxPyEndAllowThreads(__tstate); | |
26912 | if (PyErr_Occurred()) SWIG_fail; | |
26913 | } | |
26914 | Py_INCREF(Py_None); resultobj = Py_None; | |
26915 | return resultobj; | |
26916 | fail: | |
26917 | return NULL; | |
26918 | } | |
26919 | ||
26920 | ||
c32bde28 | 26921 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26922 | PyObject *resultobj; |
26923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26924 | bool result; | |
26925 | PyObject * obj0 = 0 ; | |
26926 | char *kwnames[] = { | |
26927 | (char *) "self", NULL | |
26928 | }; | |
26929 | ||
26930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26933 | { |
26934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26935 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
26936 | ||
26937 | wxPyEndAllowThreads(__tstate); | |
26938 | if (PyErr_Occurred()) SWIG_fail; | |
26939 | } | |
26940 | { | |
26941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26942 | } | |
26943 | return resultobj; | |
26944 | fail: | |
26945 | return NULL; | |
26946 | } | |
26947 | ||
26948 | ||
c32bde28 | 26949 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26950 | PyObject *resultobj; |
26951 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26952 | PyObject * obj0 = 0 ; | |
26953 | char *kwnames[] = { | |
26954 | (char *) "self", NULL | |
26955 | }; | |
26956 | ||
26957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26960 | { |
26961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26962 | (arg1)->SetFocus(); | |
26963 | ||
26964 | wxPyEndAllowThreads(__tstate); | |
26965 | if (PyErr_Occurred()) SWIG_fail; | |
26966 | } | |
26967 | Py_INCREF(Py_None); resultobj = Py_None; | |
26968 | return resultobj; | |
26969 | fail: | |
26970 | return NULL; | |
26971 | } | |
26972 | ||
26973 | ||
c32bde28 | 26974 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26975 | PyObject *resultobj; |
26976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26977 | PyObject * obj0 = 0 ; | |
26978 | char *kwnames[] = { | |
26979 | (char *) "self", NULL | |
26980 | }; | |
26981 | ||
26982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26985 | { |
26986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26987 | (arg1)->SetFocusFromKbd(); | |
26988 | ||
26989 | wxPyEndAllowThreads(__tstate); | |
26990 | if (PyErr_Occurred()) SWIG_fail; | |
26991 | } | |
26992 | Py_INCREF(Py_None); resultobj = Py_None; | |
26993 | return resultobj; | |
26994 | fail: | |
26995 | return NULL; | |
26996 | } | |
26997 | ||
26998 | ||
c32bde28 | 26999 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27000 | PyObject *resultobj; |
27001 | wxWindow *result; | |
27002 | char *kwnames[] = { | |
27003 | NULL | |
27004 | }; | |
27005 | ||
27006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
27007 | { | |
0439c23b | 27008 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27010 | result = (wxWindow *)wxWindow::FindFocus(); | |
27011 | ||
27012 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27013 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
27014 | } |
27015 | { | |
412d302d | 27016 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27017 | } |
27018 | return resultobj; | |
27019 | fail: | |
27020 | return NULL; | |
27021 | } | |
27022 | ||
27023 | ||
c32bde28 | 27024 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27025 | PyObject *resultobj; |
27026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27027 | bool result; | |
27028 | PyObject * obj0 = 0 ; | |
27029 | char *kwnames[] = { | |
27030 | (char *) "self", NULL | |
27031 | }; | |
27032 | ||
27033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27036 | { |
27037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27038 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
27039 | ||
27040 | wxPyEndAllowThreads(__tstate); | |
27041 | if (PyErr_Occurred()) SWIG_fail; | |
27042 | } | |
27043 | { | |
27044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27045 | } | |
27046 | return resultobj; | |
27047 | fail: | |
27048 | return NULL; | |
27049 | } | |
27050 | ||
27051 | ||
c32bde28 | 27052 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27053 | PyObject *resultobj; |
27054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27055 | bool result; | |
27056 | PyObject * obj0 = 0 ; | |
27057 | char *kwnames[] = { | |
27058 | (char *) "self", NULL | |
27059 | }; | |
27060 | ||
27061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27064 | { |
27065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27066 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
27067 | ||
27068 | wxPyEndAllowThreads(__tstate); | |
27069 | if (PyErr_Occurred()) SWIG_fail; | |
27070 | } | |
27071 | { | |
27072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27073 | } | |
27074 | return resultobj; | |
27075 | fail: | |
27076 | return NULL; | |
27077 | } | |
27078 | ||
27079 | ||
c32bde28 | 27080 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27081 | PyObject *resultobj; |
27082 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27083 | wxWindow *result; | |
27084 | PyObject * obj0 = 0 ; | |
27085 | char *kwnames[] = { | |
27086 | (char *) "self", NULL | |
27087 | }; | |
27088 | ||
27089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27090 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27091 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27092 | { |
27093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27094 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
27095 | ||
27096 | wxPyEndAllowThreads(__tstate); | |
27097 | if (PyErr_Occurred()) SWIG_fail; | |
27098 | } | |
27099 | { | |
412d302d | 27100 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27101 | } |
27102 | return resultobj; | |
27103 | fail: | |
27104 | return NULL; | |
27105 | } | |
27106 | ||
27107 | ||
c32bde28 | 27108 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27109 | PyObject *resultobj; |
27110 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27111 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27112 | wxWindow *result; | |
27113 | PyObject * obj0 = 0 ; | |
27114 | PyObject * obj1 = 0 ; | |
27115 | char *kwnames[] = { | |
27116 | (char *) "self",(char *) "child", NULL | |
27117 | }; | |
27118 | ||
27119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27122 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27123 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27124 | { |
27125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27126 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
27127 | ||
27128 | wxPyEndAllowThreads(__tstate); | |
27129 | if (PyErr_Occurred()) SWIG_fail; | |
27130 | } | |
27131 | { | |
412d302d | 27132 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27133 | } |
27134 | return resultobj; | |
27135 | fail: | |
27136 | return NULL; | |
27137 | } | |
27138 | ||
27139 | ||
c32bde28 | 27140 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27141 | PyObject *resultobj; |
27142 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27143 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27144 | PyObject * obj0 = 0 ; | |
27145 | PyObject * obj1 = 0 ; | |
27146 | char *kwnames[] = { | |
27147 | (char *) "self",(char *) "win", NULL | |
27148 | }; | |
27149 | ||
27150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27153 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27154 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27155 | { |
27156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27157 | (arg1)->SetTmpDefaultItem(arg2); | |
27158 | ||
27159 | wxPyEndAllowThreads(__tstate); | |
27160 | if (PyErr_Occurred()) SWIG_fail; | |
27161 | } | |
27162 | Py_INCREF(Py_None); resultobj = Py_None; | |
27163 | return resultobj; | |
27164 | fail: | |
27165 | return NULL; | |
27166 | } | |
27167 | ||
27168 | ||
c32bde28 | 27169 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
27170 | PyObject *resultobj; |
27171 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27172 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
27173 | bool result; | |
27174 | PyObject * obj0 = 0 ; | |
27175 | PyObject * obj1 = 0 ; | |
27176 | char *kwnames[] = { | |
27177 | (char *) "self",(char *) "flags", NULL | |
27178 | }; | |
27179 | ||
27180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27181 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd | 27183 | if (obj1) { |
093d3ff1 RD |
27184 | { |
27185 | arg2 = (int)(SWIG_As_int(obj1)); | |
27186 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27187 | } | |
908b74cd RD |
27188 | } |
27189 | { | |
27190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27191 | result = (bool)(arg1)->Navigate(arg2); | |
27192 | ||
27193 | wxPyEndAllowThreads(__tstate); | |
27194 | if (PyErr_Occurred()) SWIG_fail; | |
27195 | } | |
27196 | { | |
27197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27198 | } | |
27199 | return resultobj; | |
27200 | fail: | |
27201 | return NULL; | |
27202 | } | |
27203 | ||
27204 | ||
c32bde28 | 27205 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
27206 | PyObject *resultobj; |
27207 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27208 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27209 | PyObject * obj0 = 0 ; | |
27210 | PyObject * obj1 = 0 ; | |
27211 | char *kwnames[] = { | |
27212 | (char *) "self",(char *) "win", NULL | |
27213 | }; | |
27214 | ||
27215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27218 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27219 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bf26d883 RD |
27220 | { |
27221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27222 | (arg1)->MoveAfterInTabOrder(arg2); | |
27223 | ||
27224 | wxPyEndAllowThreads(__tstate); | |
27225 | if (PyErr_Occurred()) SWIG_fail; | |
27226 | } | |
27227 | Py_INCREF(Py_None); resultobj = Py_None; | |
27228 | return resultobj; | |
27229 | fail: | |
27230 | return NULL; | |
27231 | } | |
27232 | ||
27233 | ||
c32bde28 | 27234 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
27235 | PyObject *resultobj; |
27236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27237 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27238 | PyObject * obj0 = 0 ; | |
27239 | PyObject * obj1 = 0 ; | |
27240 | char *kwnames[] = { | |
27241 | (char *) "self",(char *) "win", NULL | |
27242 | }; | |
27243 | ||
27244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27247 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27248 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bf26d883 RD |
27249 | { |
27250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27251 | (arg1)->MoveBeforeInTabOrder(arg2); | |
27252 | ||
27253 | wxPyEndAllowThreads(__tstate); | |
27254 | if (PyErr_Occurred()) SWIG_fail; | |
27255 | } | |
27256 | Py_INCREF(Py_None); resultobj = Py_None; | |
27257 | return resultobj; | |
27258 | fail: | |
27259 | return NULL; | |
27260 | } | |
27261 | ||
27262 | ||
c32bde28 | 27263 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27264 | PyObject *resultobj; |
27265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27266 | PyObject *result; | |
27267 | PyObject * obj0 = 0 ; | |
27268 | char *kwnames[] = { | |
27269 | (char *) "self", NULL | |
27270 | }; | |
27271 | ||
27272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27275 | { |
27276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27277 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
27278 | ||
27279 | wxPyEndAllowThreads(__tstate); | |
27280 | if (PyErr_Occurred()) SWIG_fail; | |
27281 | } | |
27282 | resultobj = result; | |
27283 | return resultobj; | |
27284 | fail: | |
27285 | return NULL; | |
27286 | } | |
27287 | ||
27288 | ||
c32bde28 | 27289 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27290 | PyObject *resultobj; |
27291 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27292 | wxWindow *result; | |
27293 | PyObject * obj0 = 0 ; | |
27294 | char *kwnames[] = { | |
27295 | (char *) "self", NULL | |
27296 | }; | |
27297 | ||
27298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27301 | { |
27302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27303 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
27304 | ||
27305 | wxPyEndAllowThreads(__tstate); | |
27306 | if (PyErr_Occurred()) SWIG_fail; | |
27307 | } | |
27308 | { | |
412d302d | 27309 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27310 | } |
27311 | return resultobj; | |
27312 | fail: | |
27313 | return NULL; | |
27314 | } | |
27315 | ||
27316 | ||
c32bde28 | 27317 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27318 | PyObject *resultobj; |
27319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27320 | wxWindow *result; | |
27321 | PyObject * obj0 = 0 ; | |
27322 | char *kwnames[] = { | |
27323 | (char *) "self", NULL | |
27324 | }; | |
27325 | ||
27326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27329 | { |
27330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27331 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
27332 | ||
27333 | wxPyEndAllowThreads(__tstate); | |
27334 | if (PyErr_Occurred()) SWIG_fail; | |
27335 | } | |
27336 | { | |
412d302d | 27337 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27338 | } |
27339 | return resultobj; | |
27340 | fail: | |
27341 | return NULL; | |
27342 | } | |
27343 | ||
27344 | ||
c32bde28 | 27345 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27346 | PyObject *resultobj; |
27347 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27348 | bool result; | |
27349 | PyObject * obj0 = 0 ; | |
27350 | char *kwnames[] = { | |
27351 | (char *) "self", NULL | |
27352 | }; | |
27353 | ||
27354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27357 | { |
27358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27359 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
27360 | ||
27361 | wxPyEndAllowThreads(__tstate); | |
27362 | if (PyErr_Occurred()) SWIG_fail; | |
27363 | } | |
27364 | { | |
27365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27366 | } | |
27367 | return resultobj; | |
27368 | fail: | |
27369 | return NULL; | |
27370 | } | |
27371 | ||
27372 | ||
c32bde28 | 27373 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27374 | PyObject *resultobj; |
27375 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27376 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27377 | bool result; | |
27378 | PyObject * obj0 = 0 ; | |
27379 | PyObject * obj1 = 0 ; | |
27380 | char *kwnames[] = { | |
27381 | (char *) "self",(char *) "newParent", NULL | |
27382 | }; | |
27383 | ||
27384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27387 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27389 | { |
27390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27391 | result = (bool)(arg1)->Reparent(arg2); | |
27392 | ||
27393 | wxPyEndAllowThreads(__tstate); | |
27394 | if (PyErr_Occurred()) SWIG_fail; | |
27395 | } | |
27396 | { | |
27397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27398 | } | |
27399 | return resultobj; | |
27400 | fail: | |
27401 | return NULL; | |
27402 | } | |
27403 | ||
27404 | ||
c32bde28 | 27405 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27406 | PyObject *resultobj; |
27407 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27408 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27409 | PyObject * obj0 = 0 ; | |
27410 | PyObject * obj1 = 0 ; | |
27411 | char *kwnames[] = { | |
27412 | (char *) "self",(char *) "child", NULL | |
27413 | }; | |
27414 | ||
27415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27418 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27420 | { |
27421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27422 | (arg1)->AddChild(arg2); | |
27423 | ||
27424 | wxPyEndAllowThreads(__tstate); | |
27425 | if (PyErr_Occurred()) SWIG_fail; | |
27426 | } | |
27427 | Py_INCREF(Py_None); resultobj = Py_None; | |
27428 | return resultobj; | |
27429 | fail: | |
27430 | return NULL; | |
27431 | } | |
27432 | ||
27433 | ||
c32bde28 | 27434 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27435 | PyObject *resultobj; |
27436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27437 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27438 | PyObject * obj0 = 0 ; | |
27439 | PyObject * obj1 = 0 ; | |
27440 | char *kwnames[] = { | |
27441 | (char *) "self",(char *) "child", NULL | |
27442 | }; | |
27443 | ||
27444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27447 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27448 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27449 | { |
27450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27451 | (arg1)->RemoveChild(arg2); | |
27452 | ||
27453 | wxPyEndAllowThreads(__tstate); | |
27454 | if (PyErr_Occurred()) SWIG_fail; | |
27455 | } | |
27456 | Py_INCREF(Py_None); resultobj = Py_None; | |
27457 | return resultobj; | |
27458 | fail: | |
27459 | return NULL; | |
27460 | } | |
27461 | ||
27462 | ||
c32bde28 | 27463 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27464 | PyObject *resultobj; |
27465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27466 | long arg2 ; | |
27467 | wxWindow *result; | |
27468 | PyObject * obj0 = 0 ; | |
27469 | PyObject * obj1 = 0 ; | |
27470 | char *kwnames[] = { | |
27471 | (char *) "self",(char *) "winid", NULL | |
27472 | }; | |
27473 | ||
27474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27477 | { | |
27478 | arg2 = (long)(SWIG_As_long(obj1)); | |
27479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27480 | } | |
d55e5bfc RD |
27481 | { |
27482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27483 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
27484 | ||
27485 | wxPyEndAllowThreads(__tstate); | |
27486 | if (PyErr_Occurred()) SWIG_fail; | |
27487 | } | |
27488 | { | |
412d302d | 27489 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27490 | } |
27491 | return resultobj; | |
27492 | fail: | |
27493 | return NULL; | |
27494 | } | |
27495 | ||
27496 | ||
c32bde28 | 27497 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27498 | PyObject *resultobj; |
27499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27500 | wxString *arg2 = 0 ; | |
27501 | wxWindow *result; | |
ae8162c8 | 27502 | bool temp2 = false ; |
d55e5bfc RD |
27503 | PyObject * obj0 = 0 ; |
27504 | PyObject * obj1 = 0 ; | |
27505 | char *kwnames[] = { | |
27506 | (char *) "self",(char *) "name", NULL | |
27507 | }; | |
27508 | ||
27509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27512 | { |
27513 | arg2 = wxString_in_helper(obj1); | |
27514 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27515 | temp2 = true; |
d55e5bfc RD |
27516 | } |
27517 | { | |
27518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27519 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
27520 | ||
27521 | wxPyEndAllowThreads(__tstate); | |
27522 | if (PyErr_Occurred()) SWIG_fail; | |
27523 | } | |
27524 | { | |
412d302d | 27525 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27526 | } |
27527 | { | |
27528 | if (temp2) | |
27529 | delete arg2; | |
27530 | } | |
27531 | return resultobj; | |
27532 | fail: | |
27533 | { | |
27534 | if (temp2) | |
27535 | delete arg2; | |
27536 | } | |
27537 | return NULL; | |
27538 | } | |
27539 | ||
27540 | ||
c32bde28 | 27541 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27542 | PyObject *resultobj; |
27543 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27544 | wxEvtHandler *result; | |
27545 | PyObject * obj0 = 0 ; | |
27546 | char *kwnames[] = { | |
27547 | (char *) "self", NULL | |
27548 | }; | |
27549 | ||
27550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27553 | { |
27554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27555 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
27556 | ||
27557 | wxPyEndAllowThreads(__tstate); | |
27558 | if (PyErr_Occurred()) SWIG_fail; | |
27559 | } | |
27560 | { | |
412d302d | 27561 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27562 | } |
27563 | return resultobj; | |
27564 | fail: | |
27565 | return NULL; | |
27566 | } | |
27567 | ||
27568 | ||
c32bde28 | 27569 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27570 | PyObject *resultobj; |
27571 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27572 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
27573 | PyObject * obj0 = 0 ; | |
27574 | PyObject * obj1 = 0 ; | |
27575 | char *kwnames[] = { | |
27576 | (char *) "self",(char *) "handler", NULL | |
27577 | }; | |
27578 | ||
27579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27582 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
27583 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27584 | { |
27585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27586 | (arg1)->SetEventHandler(arg2); | |
27587 | ||
27588 | wxPyEndAllowThreads(__tstate); | |
27589 | if (PyErr_Occurred()) SWIG_fail; | |
27590 | } | |
27591 | Py_INCREF(Py_None); resultobj = Py_None; | |
27592 | return resultobj; | |
27593 | fail: | |
27594 | return NULL; | |
27595 | } | |
27596 | ||
27597 | ||
c32bde28 | 27598 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27599 | PyObject *resultobj; |
27600 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27601 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
27602 | PyObject * obj0 = 0 ; | |
27603 | PyObject * obj1 = 0 ; | |
27604 | char *kwnames[] = { | |
27605 | (char *) "self",(char *) "handler", NULL | |
27606 | }; | |
27607 | ||
27608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27611 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
27612 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27613 | { |
27614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27615 | (arg1)->PushEventHandler(arg2); | |
27616 | ||
27617 | wxPyEndAllowThreads(__tstate); | |
27618 | if (PyErr_Occurred()) SWIG_fail; | |
27619 | } | |
27620 | Py_INCREF(Py_None); resultobj = Py_None; | |
27621 | return resultobj; | |
27622 | fail: | |
27623 | return NULL; | |
27624 | } | |
27625 | ||
27626 | ||
c32bde28 | 27627 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27628 | PyObject *resultobj; |
27629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 27630 | bool arg2 = (bool) false ; |
d55e5bfc RD |
27631 | wxEvtHandler *result; |
27632 | PyObject * obj0 = 0 ; | |
27633 | PyObject * obj1 = 0 ; | |
27634 | char *kwnames[] = { | |
27635 | (char *) "self",(char *) "deleteHandler", NULL | |
27636 | }; | |
27637 | ||
27638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 27641 | if (obj1) { |
093d3ff1 RD |
27642 | { |
27643 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27645 | } | |
d55e5bfc RD |
27646 | } |
27647 | { | |
27648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27649 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
27650 | ||
27651 | wxPyEndAllowThreads(__tstate); | |
27652 | if (PyErr_Occurred()) SWIG_fail; | |
27653 | } | |
27654 | { | |
412d302d | 27655 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27656 | } |
27657 | return resultobj; | |
27658 | fail: | |
27659 | return NULL; | |
27660 | } | |
27661 | ||
27662 | ||
c32bde28 | 27663 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27664 | PyObject *resultobj; |
27665 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27666 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
27667 | bool result; | |
27668 | PyObject * obj0 = 0 ; | |
27669 | PyObject * obj1 = 0 ; | |
27670 | char *kwnames[] = { | |
27671 | (char *) "self",(char *) "handler", NULL | |
27672 | }; | |
27673 | ||
27674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27677 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
27678 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27679 | { |
27680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27681 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
27682 | ||
27683 | wxPyEndAllowThreads(__tstate); | |
27684 | if (PyErr_Occurred()) SWIG_fail; | |
27685 | } | |
27686 | { | |
27687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27688 | } | |
27689 | return resultobj; | |
27690 | fail: | |
27691 | return NULL; | |
27692 | } | |
27693 | ||
27694 | ||
c32bde28 | 27695 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27696 | PyObject *resultobj; |
27697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27698 | wxValidator *arg2 = 0 ; | |
27699 | PyObject * obj0 = 0 ; | |
27700 | PyObject * obj1 = 0 ; | |
27701 | char *kwnames[] = { | |
27702 | (char *) "self",(char *) "validator", NULL | |
27703 | }; | |
27704 | ||
27705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27708 | { | |
27709 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
27710 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27711 | if (arg2 == NULL) { | |
27712 | SWIG_null_ref("wxValidator"); | |
27713 | } | |
27714 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27715 | } |
27716 | { | |
27717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27718 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
27719 | ||
27720 | wxPyEndAllowThreads(__tstate); | |
27721 | if (PyErr_Occurred()) SWIG_fail; | |
27722 | } | |
27723 | Py_INCREF(Py_None); resultobj = Py_None; | |
27724 | return resultobj; | |
27725 | fail: | |
27726 | return NULL; | |
27727 | } | |
27728 | ||
27729 | ||
c32bde28 | 27730 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27731 | PyObject *resultobj; |
27732 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27733 | wxValidator *result; | |
27734 | PyObject * obj0 = 0 ; | |
27735 | char *kwnames[] = { | |
27736 | (char *) "self", NULL | |
27737 | }; | |
27738 | ||
27739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27742 | { |
27743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27744 | result = (wxValidator *)(arg1)->GetValidator(); | |
27745 | ||
27746 | wxPyEndAllowThreads(__tstate); | |
27747 | if (PyErr_Occurred()) SWIG_fail; | |
27748 | } | |
27749 | { | |
412d302d | 27750 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27751 | } |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
c32bde28 | 27758 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27759 | PyObject *resultobj; |
27760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27761 | bool result; | |
27762 | PyObject * obj0 = 0 ; | |
27763 | char *kwnames[] = { | |
27764 | (char *) "self", NULL | |
27765 | }; | |
27766 | ||
27767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27770 | { |
27771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27772 | result = (bool)(arg1)->Validate(); | |
27773 | ||
27774 | wxPyEndAllowThreads(__tstate); | |
27775 | if (PyErr_Occurred()) SWIG_fail; | |
27776 | } | |
27777 | { | |
27778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27779 | } | |
27780 | return resultobj; | |
27781 | fail: | |
27782 | return NULL; | |
27783 | } | |
27784 | ||
27785 | ||
c32bde28 | 27786 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27787 | PyObject *resultobj; |
27788 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27789 | bool result; | |
27790 | PyObject * obj0 = 0 ; | |
27791 | char *kwnames[] = { | |
27792 | (char *) "self", NULL | |
27793 | }; | |
27794 | ||
27795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27798 | { |
27799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27800 | result = (bool)(arg1)->TransferDataToWindow(); | |
27801 | ||
27802 | wxPyEndAllowThreads(__tstate); | |
27803 | if (PyErr_Occurred()) SWIG_fail; | |
27804 | } | |
27805 | { | |
27806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27807 | } | |
27808 | return resultobj; | |
27809 | fail: | |
27810 | return NULL; | |
27811 | } | |
27812 | ||
27813 | ||
c32bde28 | 27814 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27815 | PyObject *resultobj; |
27816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27817 | bool result; | |
27818 | PyObject * obj0 = 0 ; | |
27819 | char *kwnames[] = { | |
27820 | (char *) "self", NULL | |
27821 | }; | |
27822 | ||
27823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27824 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27826 | { |
27827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27828 | result = (bool)(arg1)->TransferDataFromWindow(); | |
27829 | ||
27830 | wxPyEndAllowThreads(__tstate); | |
27831 | if (PyErr_Occurred()) SWIG_fail; | |
27832 | } | |
27833 | { | |
27834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27835 | } | |
27836 | return resultobj; | |
27837 | fail: | |
27838 | return NULL; | |
27839 | } | |
27840 | ||
27841 | ||
c32bde28 | 27842 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27843 | PyObject *resultobj; |
27844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27845 | PyObject * obj0 = 0 ; | |
27846 | char *kwnames[] = { | |
27847 | (char *) "self", NULL | |
27848 | }; | |
27849 | ||
27850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27853 | { |
27854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27855 | (arg1)->InitDialog(); | |
27856 | ||
27857 | wxPyEndAllowThreads(__tstate); | |
27858 | if (PyErr_Occurred()) SWIG_fail; | |
27859 | } | |
27860 | Py_INCREF(Py_None); resultobj = Py_None; | |
27861 | return resultobj; | |
27862 | fail: | |
27863 | return NULL; | |
27864 | } | |
27865 | ||
27866 | ||
c32bde28 | 27867 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27868 | PyObject *resultobj; |
27869 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27870 | wxAcceleratorTable *arg2 = 0 ; | |
27871 | PyObject * obj0 = 0 ; | |
27872 | PyObject * obj1 = 0 ; | |
27873 | char *kwnames[] = { | |
27874 | (char *) "self",(char *) "accel", NULL | |
27875 | }; | |
27876 | ||
27877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27880 | { | |
27881 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); | |
27882 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27883 | if (arg2 == NULL) { | |
27884 | SWIG_null_ref("wxAcceleratorTable"); | |
27885 | } | |
27886 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27887 | } |
27888 | { | |
27889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27890 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
27891 | ||
27892 | wxPyEndAllowThreads(__tstate); | |
27893 | if (PyErr_Occurred()) SWIG_fail; | |
27894 | } | |
27895 | Py_INCREF(Py_None); resultobj = Py_None; | |
27896 | return resultobj; | |
27897 | fail: | |
27898 | return NULL; | |
27899 | } | |
27900 | ||
27901 | ||
c32bde28 | 27902 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27903 | PyObject *resultobj; |
27904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27905 | wxAcceleratorTable *result; | |
27906 | PyObject * obj0 = 0 ; | |
27907 | char *kwnames[] = { | |
27908 | (char *) "self", NULL | |
27909 | }; | |
27910 | ||
27911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27914 | { |
27915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27916 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
27917 | ||
27918 | wxPyEndAllowThreads(__tstate); | |
27919 | if (PyErr_Occurred()) SWIG_fail; | |
27920 | } | |
27921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
27922 | return resultobj; | |
27923 | fail: | |
27924 | return NULL; | |
27925 | } | |
27926 | ||
27927 | ||
c32bde28 | 27928 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27929 | PyObject *resultobj; |
27930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27931 | int arg2 ; | |
27932 | int arg3 ; | |
27933 | int arg4 ; | |
27934 | bool result; | |
27935 | PyObject * obj0 = 0 ; | |
27936 | PyObject * obj1 = 0 ; | |
27937 | PyObject * obj2 = 0 ; | |
27938 | PyObject * obj3 = 0 ; | |
27939 | char *kwnames[] = { | |
27940 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
27941 | }; | |
27942 | ||
27943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) 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 | { | |
27947 | arg2 = (int)(SWIG_As_int(obj1)); | |
27948 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27949 | } | |
27950 | { | |
27951 | arg3 = (int)(SWIG_As_int(obj2)); | |
27952 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27953 | } | |
27954 | { | |
27955 | arg4 = (int)(SWIG_As_int(obj3)); | |
27956 | if (SWIG_arg_fail(4)) SWIG_fail; | |
27957 | } | |
d55e5bfc RD |
27958 | { |
27959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27960 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
27961 | ||
27962 | wxPyEndAllowThreads(__tstate); | |
27963 | if (PyErr_Occurred()) SWIG_fail; | |
27964 | } | |
27965 | { | |
27966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27967 | } | |
27968 | return resultobj; | |
27969 | fail: | |
27970 | return NULL; | |
27971 | } | |
27972 | ||
27973 | ||
c32bde28 | 27974 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27975 | PyObject *resultobj; |
27976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27977 | int arg2 ; | |
27978 | bool result; | |
27979 | PyObject * obj0 = 0 ; | |
27980 | PyObject * obj1 = 0 ; | |
27981 | char *kwnames[] = { | |
27982 | (char *) "self",(char *) "hotkeyId", NULL | |
27983 | }; | |
27984 | ||
27985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27988 | { | |
27989 | arg2 = (int)(SWIG_As_int(obj1)); | |
27990 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27991 | } | |
d55e5bfc RD |
27992 | { |
27993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27994 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
27995 | ||
27996 | wxPyEndAllowThreads(__tstate); | |
27997 | if (PyErr_Occurred()) SWIG_fail; | |
27998 | } | |
27999 | { | |
28000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28001 | } | |
28002 | return resultobj; | |
28003 | fail: | |
28004 | return NULL; | |
28005 | } | |
28006 | ||
28007 | ||
c32bde28 | 28008 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28009 | PyObject *resultobj; |
28010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28011 | wxPoint *arg2 = 0 ; | |
28012 | wxPoint result; | |
28013 | wxPoint temp2 ; | |
28014 | PyObject * obj0 = 0 ; | |
28015 | PyObject * obj1 = 0 ; | |
28016 | char *kwnames[] = { | |
28017 | (char *) "self",(char *) "pt", NULL | |
28018 | }; | |
28019 | ||
28020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28023 | { |
28024 | arg2 = &temp2; | |
28025 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28026 | } | |
28027 | { | |
28028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28029 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
28030 | ||
28031 | wxPyEndAllowThreads(__tstate); | |
28032 | if (PyErr_Occurred()) SWIG_fail; | |
28033 | } | |
28034 | { | |
28035 | wxPoint * resultptr; | |
093d3ff1 | 28036 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
28037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
28038 | } | |
28039 | return resultobj; | |
28040 | fail: | |
28041 | return NULL; | |
28042 | } | |
28043 | ||
28044 | ||
c32bde28 | 28045 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28046 | PyObject *resultobj; |
28047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28048 | wxSize *arg2 = 0 ; | |
28049 | wxSize result; | |
28050 | wxSize temp2 ; | |
28051 | PyObject * obj0 = 0 ; | |
28052 | PyObject * obj1 = 0 ; | |
28053 | char *kwnames[] = { | |
28054 | (char *) "self",(char *) "sz", NULL | |
28055 | }; | |
28056 | ||
28057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28060 | { |
28061 | arg2 = &temp2; | |
28062 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28063 | } | |
28064 | { | |
28065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28066 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
28067 | ||
28068 | wxPyEndAllowThreads(__tstate); | |
28069 | if (PyErr_Occurred()) SWIG_fail; | |
28070 | } | |
28071 | { | |
28072 | wxSize * resultptr; | |
093d3ff1 | 28073 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
28074 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
28075 | } | |
28076 | return resultobj; | |
28077 | fail: | |
28078 | return NULL; | |
28079 | } | |
28080 | ||
28081 | ||
c32bde28 | 28082 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28083 | PyObject *resultobj; |
28084 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28085 | wxPoint *arg2 = 0 ; | |
28086 | wxPoint result; | |
28087 | wxPoint temp2 ; | |
28088 | PyObject * obj0 = 0 ; | |
28089 | PyObject * obj1 = 0 ; | |
28090 | char *kwnames[] = { | |
28091 | (char *) "self",(char *) "pt", NULL | |
28092 | }; | |
28093 | ||
28094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28097 | { |
28098 | arg2 = &temp2; | |
28099 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28100 | } | |
28101 | { | |
28102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28103 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
28104 | ||
28105 | wxPyEndAllowThreads(__tstate); | |
28106 | if (PyErr_Occurred()) SWIG_fail; | |
28107 | } | |
28108 | { | |
28109 | wxPoint * resultptr; | |
093d3ff1 | 28110 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
28111 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
28112 | } | |
28113 | return resultobj; | |
28114 | fail: | |
28115 | return NULL; | |
28116 | } | |
28117 | ||
28118 | ||
c32bde28 | 28119 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28120 | PyObject *resultobj; |
28121 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28122 | wxSize *arg2 = 0 ; | |
28123 | wxSize result; | |
28124 | wxSize temp2 ; | |
28125 | PyObject * obj0 = 0 ; | |
28126 | PyObject * obj1 = 0 ; | |
28127 | char *kwnames[] = { | |
28128 | (char *) "self",(char *) "sz", NULL | |
28129 | }; | |
28130 | ||
28131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28134 | { |
28135 | arg2 = &temp2; | |
28136 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28137 | } | |
28138 | { | |
28139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28140 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
28141 | ||
28142 | wxPyEndAllowThreads(__tstate); | |
28143 | if (PyErr_Occurred()) SWIG_fail; | |
28144 | } | |
28145 | { | |
28146 | wxSize * resultptr; | |
093d3ff1 | 28147 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
28148 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
28149 | } | |
28150 | return resultobj; | |
28151 | fail: | |
28152 | return NULL; | |
28153 | } | |
28154 | ||
28155 | ||
c32bde28 | 28156 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28157 | PyObject *resultobj; |
28158 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28159 | wxPoint *arg2 = 0 ; | |
28160 | wxPoint result; | |
28161 | wxPoint temp2 ; | |
28162 | PyObject * obj0 = 0 ; | |
28163 | PyObject * obj1 = 0 ; | |
28164 | char *kwnames[] = { | |
28165 | (char *) "self",(char *) "pt", NULL | |
28166 | }; | |
28167 | ||
28168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28171 | { |
28172 | arg2 = &temp2; | |
28173 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28174 | } | |
28175 | { | |
28176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28177 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
28178 | ||
28179 | wxPyEndAllowThreads(__tstate); | |
28180 | if (PyErr_Occurred()) SWIG_fail; | |
28181 | } | |
28182 | { | |
28183 | wxPoint * resultptr; | |
093d3ff1 | 28184 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
28185 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
28186 | } | |
28187 | return resultobj; | |
28188 | fail: | |
28189 | return NULL; | |
28190 | } | |
28191 | ||
28192 | ||
c32bde28 | 28193 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28194 | PyObject *resultobj; |
28195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28196 | wxSize *arg2 = 0 ; | |
28197 | wxSize result; | |
28198 | wxSize temp2 ; | |
28199 | PyObject * obj0 = 0 ; | |
28200 | PyObject * obj1 = 0 ; | |
28201 | char *kwnames[] = { | |
28202 | (char *) "self",(char *) "sz", NULL | |
28203 | }; | |
28204 | ||
28205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28208 | { |
28209 | arg2 = &temp2; | |
28210 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28211 | } | |
28212 | { | |
28213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28214 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
28215 | ||
28216 | wxPyEndAllowThreads(__tstate); | |
28217 | if (PyErr_Occurred()) SWIG_fail; | |
28218 | } | |
28219 | { | |
28220 | wxSize * resultptr; | |
093d3ff1 | 28221 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
28222 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
28223 | } | |
28224 | return resultobj; | |
28225 | fail: | |
28226 | return NULL; | |
28227 | } | |
28228 | ||
28229 | ||
c32bde28 | 28230 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28231 | PyObject *resultobj; |
28232 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28233 | int arg2 ; | |
28234 | int arg3 ; | |
28235 | PyObject * obj0 = 0 ; | |
28236 | PyObject * obj1 = 0 ; | |
28237 | PyObject * obj2 = 0 ; | |
28238 | char *kwnames[] = { | |
28239 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28240 | }; | |
28241 | ||
28242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28245 | { | |
28246 | arg2 = (int)(SWIG_As_int(obj1)); | |
28247 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28248 | } | |
28249 | { | |
28250 | arg3 = (int)(SWIG_As_int(obj2)); | |
28251 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28252 | } | |
d55e5bfc RD |
28253 | { |
28254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28255 | (arg1)->WarpPointer(arg2,arg3); | |
28256 | ||
28257 | wxPyEndAllowThreads(__tstate); | |
28258 | if (PyErr_Occurred()) SWIG_fail; | |
28259 | } | |
28260 | Py_INCREF(Py_None); resultobj = Py_None; | |
28261 | return resultobj; | |
28262 | fail: | |
28263 | return NULL; | |
28264 | } | |
28265 | ||
28266 | ||
c32bde28 | 28267 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28268 | PyObject *resultobj; |
28269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28270 | PyObject * obj0 = 0 ; | |
28271 | char *kwnames[] = { | |
28272 | (char *) "self", NULL | |
28273 | }; | |
28274 | ||
28275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28278 | { |
28279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28280 | (arg1)->CaptureMouse(); | |
28281 | ||
28282 | wxPyEndAllowThreads(__tstate); | |
28283 | if (PyErr_Occurred()) SWIG_fail; | |
28284 | } | |
28285 | Py_INCREF(Py_None); resultobj = Py_None; | |
28286 | return resultobj; | |
28287 | fail: | |
28288 | return NULL; | |
28289 | } | |
28290 | ||
28291 | ||
c32bde28 | 28292 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28293 | PyObject *resultobj; |
28294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28295 | PyObject * obj0 = 0 ; | |
28296 | char *kwnames[] = { | |
28297 | (char *) "self", NULL | |
28298 | }; | |
28299 | ||
28300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28303 | { |
28304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28305 | (arg1)->ReleaseMouse(); | |
28306 | ||
28307 | wxPyEndAllowThreads(__tstate); | |
28308 | if (PyErr_Occurred()) SWIG_fail; | |
28309 | } | |
28310 | Py_INCREF(Py_None); resultobj = Py_None; | |
28311 | return resultobj; | |
28312 | fail: | |
28313 | return NULL; | |
28314 | } | |
28315 | ||
28316 | ||
c32bde28 | 28317 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28318 | PyObject *resultobj; |
28319 | wxWindow *result; | |
28320 | char *kwnames[] = { | |
28321 | NULL | |
28322 | }; | |
28323 | ||
28324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
28325 | { | |
0439c23b | 28326 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28328 | result = (wxWindow *)wxWindow::GetCapture(); | |
28329 | ||
28330 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28331 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28332 | } |
28333 | { | |
412d302d | 28334 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28335 | } |
28336 | return resultobj; | |
28337 | fail: | |
28338 | return NULL; | |
28339 | } | |
28340 | ||
28341 | ||
c32bde28 | 28342 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28343 | PyObject *resultobj; |
28344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28345 | bool result; | |
28346 | PyObject * obj0 = 0 ; | |
28347 | char *kwnames[] = { | |
28348 | (char *) "self", NULL | |
28349 | }; | |
28350 | ||
28351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28352 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28353 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28354 | { |
28355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28356 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
28357 | ||
28358 | wxPyEndAllowThreads(__tstate); | |
28359 | if (PyErr_Occurred()) SWIG_fail; | |
28360 | } | |
28361 | { | |
28362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28363 | } | |
28364 | return resultobj; | |
28365 | fail: | |
28366 | return NULL; | |
28367 | } | |
28368 | ||
28369 | ||
c32bde28 | 28370 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28371 | PyObject *resultobj; |
28372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 28373 | bool arg2 = (bool) true ; |
d55e5bfc RD |
28374 | wxRect *arg3 = (wxRect *) NULL ; |
28375 | PyObject * obj0 = 0 ; | |
28376 | PyObject * obj1 = 0 ; | |
28377 | PyObject * obj2 = 0 ; | |
28378 | char *kwnames[] = { | |
28379 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
28380 | }; | |
28381 | ||
28382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 28385 | if (obj1) { |
093d3ff1 RD |
28386 | { |
28387 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
28388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28389 | } | |
d55e5bfc RD |
28390 | } |
28391 | if (obj2) { | |
093d3ff1 RD |
28392 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
28393 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
28394 | } |
28395 | { | |
28396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28397 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
28398 | ||
28399 | wxPyEndAllowThreads(__tstate); | |
28400 | if (PyErr_Occurred()) SWIG_fail; | |
28401 | } | |
28402 | Py_INCREF(Py_None); resultobj = Py_None; | |
28403 | return resultobj; | |
28404 | fail: | |
28405 | return NULL; | |
28406 | } | |
28407 | ||
28408 | ||
c32bde28 | 28409 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28410 | PyObject *resultobj; |
28411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28412 | wxRect *arg2 = 0 ; | |
fef4c27a | 28413 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28414 | wxRect temp2 ; |
28415 | PyObject * obj0 = 0 ; | |
28416 | PyObject * obj1 = 0 ; | |
fef4c27a | 28417 | PyObject * obj2 = 0 ; |
d55e5bfc | 28418 | char *kwnames[] = { |
fef4c27a | 28419 | (char *) "self",(char *) "rect",(char *) "eraseBackground", NULL |
d55e5bfc RD |
28420 | }; |
28421 | ||
fef4c27a | 28422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_RefreshRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28425 | { |
28426 | arg2 = &temp2; | |
28427 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
28428 | } | |
fef4c27a RD |
28429 | if (obj2) { |
28430 | { | |
28431 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
28432 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28433 | } | |
28434 | } | |
d55e5bfc RD |
28435 | { |
28436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 28437 | (arg1)->RefreshRect((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
28438 | |
28439 | wxPyEndAllowThreads(__tstate); | |
28440 | if (PyErr_Occurred()) SWIG_fail; | |
28441 | } | |
28442 | Py_INCREF(Py_None); resultobj = Py_None; | |
28443 | return resultobj; | |
28444 | fail: | |
28445 | return NULL; | |
28446 | } | |
28447 | ||
28448 | ||
c32bde28 | 28449 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28450 | PyObject *resultobj; |
28451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28452 | PyObject * obj0 = 0 ; | |
28453 | char *kwnames[] = { | |
28454 | (char *) "self", NULL | |
28455 | }; | |
28456 | ||
28457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28460 | { |
28461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28462 | (arg1)->Update(); | |
28463 | ||
28464 | wxPyEndAllowThreads(__tstate); | |
28465 | if (PyErr_Occurred()) SWIG_fail; | |
28466 | } | |
28467 | Py_INCREF(Py_None); resultobj = Py_None; | |
28468 | return resultobj; | |
28469 | fail: | |
28470 | return NULL; | |
28471 | } | |
28472 | ||
28473 | ||
c32bde28 | 28474 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28475 | PyObject *resultobj; |
28476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28477 | PyObject * obj0 = 0 ; | |
28478 | char *kwnames[] = { | |
28479 | (char *) "self", NULL | |
28480 | }; | |
28481 | ||
28482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28483 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28484 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28485 | { |
28486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28487 | (arg1)->ClearBackground(); | |
28488 | ||
28489 | wxPyEndAllowThreads(__tstate); | |
28490 | if (PyErr_Occurred()) SWIG_fail; | |
28491 | } | |
28492 | Py_INCREF(Py_None); resultobj = Py_None; | |
28493 | return resultobj; | |
28494 | fail: | |
28495 | return NULL; | |
28496 | } | |
28497 | ||
28498 | ||
c32bde28 | 28499 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28500 | PyObject *resultobj; |
28501 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28502 | PyObject * obj0 = 0 ; | |
28503 | char *kwnames[] = { | |
28504 | (char *) "self", NULL | |
28505 | }; | |
28506 | ||
28507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28510 | { |
28511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28512 | (arg1)->Freeze(); | |
28513 | ||
28514 | wxPyEndAllowThreads(__tstate); | |
28515 | if (PyErr_Occurred()) SWIG_fail; | |
28516 | } | |
28517 | Py_INCREF(Py_None); resultobj = Py_None; | |
28518 | return resultobj; | |
28519 | fail: | |
28520 | return NULL; | |
28521 | } | |
28522 | ||
28523 | ||
c32bde28 | 28524 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28525 | PyObject *resultobj; |
28526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28527 | PyObject * obj0 = 0 ; | |
28528 | char *kwnames[] = { | |
28529 | (char *) "self", NULL | |
28530 | }; | |
28531 | ||
28532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",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 | (arg1)->Thaw(); | |
28538 | ||
28539 | wxPyEndAllowThreads(__tstate); | |
28540 | if (PyErr_Occurred()) SWIG_fail; | |
28541 | } | |
28542 | Py_INCREF(Py_None); resultobj = Py_None; | |
28543 | return resultobj; | |
28544 | fail: | |
28545 | return NULL; | |
28546 | } | |
28547 | ||
28548 | ||
c32bde28 | 28549 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28550 | PyObject *resultobj; |
28551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28552 | wxDC *arg2 = 0 ; | |
28553 | PyObject * obj0 = 0 ; | |
28554 | PyObject * obj1 = 0 ; | |
28555 | char *kwnames[] = { | |
28556 | (char *) "self",(char *) "dc", NULL | |
28557 | }; | |
28558 | ||
28559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28562 | { | |
28563 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
28564 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28565 | if (arg2 == NULL) { | |
28566 | SWIG_null_ref("wxDC"); | |
28567 | } | |
28568 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28569 | } |
28570 | { | |
28571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28572 | (arg1)->PrepareDC(*arg2); | |
28573 | ||
28574 | wxPyEndAllowThreads(__tstate); | |
28575 | if (PyErr_Occurred()) SWIG_fail; | |
28576 | } | |
28577 | Py_INCREF(Py_None); resultobj = Py_None; | |
28578 | return resultobj; | |
28579 | fail: | |
28580 | return NULL; | |
28581 | } | |
28582 | ||
28583 | ||
c32bde28 | 28584 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28585 | PyObject *resultobj; |
28586 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28587 | wxRegion *result; | |
28588 | PyObject * obj0 = 0 ; | |
28589 | char *kwnames[] = { | |
28590 | (char *) "self", NULL | |
28591 | }; | |
28592 | ||
28593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28596 | { |
28597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28598 | { | |
28599 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
28600 | result = (wxRegion *) &_result_ref; | |
28601 | } | |
28602 | ||
28603 | wxPyEndAllowThreads(__tstate); | |
28604 | if (PyErr_Occurred()) SWIG_fail; | |
28605 | } | |
28606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
28607 | return resultobj; | |
28608 | fail: | |
28609 | return NULL; | |
28610 | } | |
28611 | ||
28612 | ||
c32bde28 | 28613 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28614 | PyObject *resultobj; |
28615 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28616 | wxRect result; | |
28617 | PyObject * obj0 = 0 ; | |
28618 | char *kwnames[] = { | |
28619 | (char *) "self", NULL | |
28620 | }; | |
28621 | ||
28622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28625 | { |
28626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28627 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
28628 | ||
28629 | wxPyEndAllowThreads(__tstate); | |
28630 | if (PyErr_Occurred()) SWIG_fail; | |
28631 | } | |
28632 | { | |
28633 | wxRect * resultptr; | |
093d3ff1 | 28634 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
28635 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
28636 | } | |
28637 | return resultobj; | |
28638 | fail: | |
28639 | return NULL; | |
28640 | } | |
28641 | ||
28642 | ||
c32bde28 | 28643 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28644 | PyObject *resultobj; |
28645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28646 | int arg2 ; | |
28647 | int arg3 ; | |
28648 | int arg4 = (int) 1 ; | |
28649 | int arg5 = (int) 1 ; | |
28650 | bool result; | |
28651 | PyObject * obj0 = 0 ; | |
28652 | PyObject * obj1 = 0 ; | |
28653 | PyObject * obj2 = 0 ; | |
28654 | PyObject * obj3 = 0 ; | |
28655 | PyObject * obj4 = 0 ; | |
28656 | char *kwnames[] = { | |
28657 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
28658 | }; | |
28659 | ||
28660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
28661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28663 | { | |
28664 | arg2 = (int)(SWIG_As_int(obj1)); | |
28665 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28666 | } | |
28667 | { | |
28668 | arg3 = (int)(SWIG_As_int(obj2)); | |
28669 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28670 | } | |
d55e5bfc | 28671 | if (obj3) { |
093d3ff1 RD |
28672 | { |
28673 | arg4 = (int)(SWIG_As_int(obj3)); | |
28674 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28675 | } | |
d55e5bfc RD |
28676 | } |
28677 | if (obj4) { | |
093d3ff1 RD |
28678 | { |
28679 | arg5 = (int)(SWIG_As_int(obj4)); | |
28680 | if (SWIG_arg_fail(5)) SWIG_fail; | |
28681 | } | |
d55e5bfc RD |
28682 | } |
28683 | { | |
28684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28685 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
28686 | ||
28687 | wxPyEndAllowThreads(__tstate); | |
28688 | if (PyErr_Occurred()) SWIG_fail; | |
28689 | } | |
28690 | { | |
28691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28692 | } | |
28693 | return resultobj; | |
28694 | fail: | |
28695 | return NULL; | |
28696 | } | |
28697 | ||
28698 | ||
c32bde28 | 28699 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28700 | PyObject *resultobj; |
28701 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28702 | wxPoint *arg2 = 0 ; | |
28703 | bool result; | |
28704 | wxPoint temp2 ; | |
28705 | PyObject * obj0 = 0 ; | |
28706 | PyObject * obj1 = 0 ; | |
28707 | char *kwnames[] = { | |
28708 | (char *) "self",(char *) "pt", NULL | |
28709 | }; | |
28710 | ||
28711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28714 | { |
28715 | arg2 = &temp2; | |
28716 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28717 | } | |
28718 | { | |
28719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28720 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
28721 | ||
28722 | wxPyEndAllowThreads(__tstate); | |
28723 | if (PyErr_Occurred()) SWIG_fail; | |
28724 | } | |
28725 | { | |
28726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28727 | } | |
28728 | return resultobj; | |
28729 | fail: | |
28730 | return NULL; | |
28731 | } | |
28732 | ||
28733 | ||
c32bde28 | 28734 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28735 | PyObject *resultobj; |
28736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28737 | wxRect *arg2 = 0 ; | |
28738 | bool result; | |
28739 | wxRect temp2 ; | |
28740 | PyObject * obj0 = 0 ; | |
28741 | PyObject * obj1 = 0 ; | |
28742 | char *kwnames[] = { | |
28743 | (char *) "self",(char *) "rect", NULL | |
28744 | }; | |
28745 | ||
28746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28749 | { |
28750 | arg2 = &temp2; | |
28751 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
28752 | } | |
28753 | { | |
28754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28755 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
28756 | ||
28757 | wxPyEndAllowThreads(__tstate); | |
28758 | if (PyErr_Occurred()) SWIG_fail; | |
28759 | } | |
28760 | { | |
28761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28762 | } | |
28763 | return resultobj; | |
28764 | fail: | |
28765 | return NULL; | |
28766 | } | |
28767 | ||
28768 | ||
c32bde28 | 28769 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28770 | PyObject *resultobj; |
28771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28772 | wxVisualAttributes result; | |
28773 | PyObject * obj0 = 0 ; | |
28774 | char *kwnames[] = { | |
28775 | (char *) "self", NULL | |
28776 | }; | |
28777 | ||
28778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) 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; | |
d55e5bfc RD |
28781 | { |
28782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28783 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
28784 | ||
28785 | wxPyEndAllowThreads(__tstate); | |
28786 | if (PyErr_Occurred()) SWIG_fail; | |
28787 | } | |
28788 | { | |
28789 | wxVisualAttributes * resultptr; | |
093d3ff1 | 28790 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
28791 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
28792 | } | |
28793 | return resultobj; | |
28794 | fail: | |
28795 | return NULL; | |
28796 | } | |
28797 | ||
28798 | ||
c32bde28 | 28799 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 28800 | PyObject *resultobj; |
093d3ff1 | 28801 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
28802 | wxVisualAttributes result; |
28803 | PyObject * obj0 = 0 ; | |
28804 | char *kwnames[] = { | |
28805 | (char *) "variant", NULL | |
28806 | }; | |
28807 | ||
28808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
28809 | if (obj0) { | |
093d3ff1 RD |
28810 | { |
28811 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
28812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28813 | } | |
d55e5bfc RD |
28814 | } |
28815 | { | |
0439c23b | 28816 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28818 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
28819 | ||
28820 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28821 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28822 | } |
28823 | { | |
28824 | wxVisualAttributes * resultptr; | |
093d3ff1 | 28825 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
28826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
28827 | } | |
28828 | return resultobj; | |
28829 | fail: | |
28830 | return NULL; | |
28831 | } | |
28832 | ||
28833 | ||
c32bde28 | 28834 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28835 | PyObject *resultobj; |
28836 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28837 | wxColour *arg2 = 0 ; | |
28838 | bool result; | |
28839 | wxColour temp2 ; | |
28840 | PyObject * obj0 = 0 ; | |
28841 | PyObject * obj1 = 0 ; | |
28842 | char *kwnames[] = { | |
28843 | (char *) "self",(char *) "colour", NULL | |
28844 | }; | |
28845 | ||
28846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28849 | { |
28850 | arg2 = &temp2; | |
28851 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28852 | } | |
28853 | { | |
28854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28855 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
28856 | ||
28857 | wxPyEndAllowThreads(__tstate); | |
28858 | if (PyErr_Occurred()) SWIG_fail; | |
28859 | } | |
28860 | { | |
28861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28862 | } | |
28863 | return resultobj; | |
28864 | fail: | |
28865 | return NULL; | |
28866 | } | |
28867 | ||
28868 | ||
c32bde28 | 28869 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28870 | PyObject *resultobj; |
28871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28872 | wxColour *arg2 = 0 ; | |
28873 | wxColour temp2 ; | |
28874 | PyObject * obj0 = 0 ; | |
28875 | PyObject * obj1 = 0 ; | |
28876 | char *kwnames[] = { | |
28877 | (char *) "self",(char *) "colour", NULL | |
28878 | }; | |
28879 | ||
412d302d | 28880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28883 | { |
28884 | arg2 = &temp2; | |
28885 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28886 | } | |
28887 | { | |
28888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 28889 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
28890 | |
28891 | wxPyEndAllowThreads(__tstate); | |
28892 | if (PyErr_Occurred()) SWIG_fail; | |
28893 | } | |
28894 | Py_INCREF(Py_None); resultobj = Py_None; | |
28895 | return resultobj; | |
28896 | fail: | |
28897 | return NULL; | |
28898 | } | |
28899 | ||
28900 | ||
c32bde28 | 28901 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28902 | PyObject *resultobj; |
28903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28904 | wxColour *arg2 = 0 ; | |
28905 | bool result; | |
28906 | wxColour temp2 ; | |
28907 | PyObject * obj0 = 0 ; | |
28908 | PyObject * obj1 = 0 ; | |
28909 | char *kwnames[] = { | |
28910 | (char *) "self",(char *) "colour", NULL | |
28911 | }; | |
28912 | ||
28913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28916 | { |
28917 | arg2 = &temp2; | |
28918 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28919 | } | |
28920 | { | |
28921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28922 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
28923 | ||
28924 | wxPyEndAllowThreads(__tstate); | |
28925 | if (PyErr_Occurred()) SWIG_fail; | |
28926 | } | |
28927 | { | |
28928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28929 | } | |
28930 | return resultobj; | |
28931 | fail: | |
28932 | return NULL; | |
28933 | } | |
28934 | ||
28935 | ||
c32bde28 | 28936 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28937 | PyObject *resultobj; |
28938 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28939 | wxColour *arg2 = 0 ; | |
28940 | wxColour temp2 ; | |
28941 | PyObject * obj0 = 0 ; | |
28942 | PyObject * obj1 = 0 ; | |
28943 | char *kwnames[] = { | |
28944 | (char *) "self",(char *) "colour", NULL | |
28945 | }; | |
28946 | ||
fa47d7a7 | 28947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28950 | { |
28951 | arg2 = &temp2; | |
28952 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28953 | } | |
28954 | { | |
28955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 28956 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
28957 | |
28958 | wxPyEndAllowThreads(__tstate); | |
28959 | if (PyErr_Occurred()) SWIG_fail; | |
28960 | } | |
28961 | Py_INCREF(Py_None); resultobj = Py_None; | |
28962 | return resultobj; | |
28963 | fail: | |
28964 | return NULL; | |
28965 | } | |
28966 | ||
28967 | ||
c32bde28 | 28968 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28969 | PyObject *resultobj; |
28970 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28971 | wxColour result; | |
28972 | PyObject * obj0 = 0 ; | |
28973 | char *kwnames[] = { | |
28974 | (char *) "self", NULL | |
28975 | }; | |
28976 | ||
28977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28980 | { |
28981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28982 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
28983 | ||
28984 | wxPyEndAllowThreads(__tstate); | |
28985 | if (PyErr_Occurred()) SWIG_fail; | |
28986 | } | |
28987 | { | |
28988 | wxColour * resultptr; | |
093d3ff1 | 28989 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
28990 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
28991 | } | |
28992 | return resultobj; | |
28993 | fail: | |
28994 | return NULL; | |
28995 | } | |
28996 | ||
28997 | ||
c32bde28 | 28998 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28999 | PyObject *resultobj; |
29000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29001 | wxColour result; | |
29002 | PyObject * obj0 = 0 ; | |
29003 | char *kwnames[] = { | |
29004 | (char *) "self", NULL | |
29005 | }; | |
29006 | ||
29007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29010 | { |
29011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29012 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
29013 | ||
29014 | wxPyEndAllowThreads(__tstate); | |
29015 | if (PyErr_Occurred()) SWIG_fail; | |
29016 | } | |
29017 | { | |
29018 | wxColour * resultptr; | |
093d3ff1 | 29019 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
29020 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
29021 | } | |
29022 | return resultobj; | |
29023 | fail: | |
29024 | return NULL; | |
29025 | } | |
29026 | ||
29027 | ||
c32bde28 | 29028 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
29029 | PyObject *resultobj; |
29030 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 29031 | wxBackgroundStyle arg2 ; |
0f63ec68 RD |
29032 | bool result; |
29033 | PyObject * obj0 = 0 ; | |
29034 | PyObject * obj1 = 0 ; | |
29035 | char *kwnames[] = { | |
29036 | (char *) "self",(char *) "style", NULL | |
29037 | }; | |
29038 | ||
29039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29042 | { | |
29043 | arg2 = (wxBackgroundStyle)(SWIG_As_int(obj1)); | |
29044 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29045 | } | |
0f63ec68 RD |
29046 | { |
29047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29048 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
29049 | ||
29050 | wxPyEndAllowThreads(__tstate); | |
29051 | if (PyErr_Occurred()) SWIG_fail; | |
29052 | } | |
29053 | { | |
29054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29055 | } | |
29056 | return resultobj; | |
29057 | fail: | |
29058 | return NULL; | |
29059 | } | |
29060 | ||
29061 | ||
c32bde28 | 29062 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
29063 | PyObject *resultobj; |
29064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 29065 | wxBackgroundStyle result; |
0f63ec68 RD |
29066 | PyObject * obj0 = 0 ; |
29067 | char *kwnames[] = { | |
29068 | (char *) "self", NULL | |
29069 | }; | |
29070 | ||
29071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
0f63ec68 RD |
29074 | { |
29075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29076 | result = (wxBackgroundStyle)((wxWindow const *)arg1)->GetBackgroundStyle(); |
0f63ec68 RD |
29077 | |
29078 | wxPyEndAllowThreads(__tstate); | |
29079 | if (PyErr_Occurred()) SWIG_fail; | |
29080 | } | |
093d3ff1 | 29081 | resultobj = SWIG_From_int((result)); |
0f63ec68 RD |
29082 | return resultobj; |
29083 | fail: | |
29084 | return NULL; | |
29085 | } | |
29086 | ||
29087 | ||
51b83b37 RD |
29088 | static PyObject *_wrap_Window_HasTransparentBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
29089 | PyObject *resultobj; | |
29090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29091 | bool result; | |
29092 | PyObject * obj0 = 0 ; | |
29093 | char *kwnames[] = { | |
29094 | (char *) "self", NULL | |
29095 | }; | |
29096 | ||
29097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasTransparentBackground",kwnames,&obj0)) goto fail; | |
29098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
29099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29100 | { | |
29101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29102 | result = (bool)(arg1)->HasTransparentBackground(); | |
29103 | ||
29104 | wxPyEndAllowThreads(__tstate); | |
29105 | if (PyErr_Occurred()) SWIG_fail; | |
29106 | } | |
29107 | { | |
29108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29109 | } | |
29110 | return resultobj; | |
29111 | fail: | |
29112 | return NULL; | |
29113 | } | |
29114 | ||
29115 | ||
c32bde28 | 29116 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29117 | PyObject *resultobj; |
29118 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29119 | wxCursor *arg2 = 0 ; | |
29120 | bool result; | |
29121 | PyObject * obj0 = 0 ; | |
29122 | PyObject * obj1 = 0 ; | |
29123 | char *kwnames[] = { | |
29124 | (char *) "self",(char *) "cursor", NULL | |
29125 | }; | |
29126 | ||
29127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29130 | { | |
29131 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
29132 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29133 | if (arg2 == NULL) { | |
29134 | SWIG_null_ref("wxCursor"); | |
29135 | } | |
29136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29137 | } |
29138 | { | |
29139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29140 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
29141 | ||
29142 | wxPyEndAllowThreads(__tstate); | |
29143 | if (PyErr_Occurred()) SWIG_fail; | |
29144 | } | |
29145 | { | |
29146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29147 | } | |
29148 | return resultobj; | |
29149 | fail: | |
29150 | return NULL; | |
29151 | } | |
29152 | ||
29153 | ||
c32bde28 | 29154 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29155 | PyObject *resultobj; |
29156 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 29157 | wxCursor result; |
d55e5bfc RD |
29158 | PyObject * obj0 = 0 ; |
29159 | char *kwnames[] = { | |
29160 | (char *) "self", NULL | |
29161 | }; | |
29162 | ||
29163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29166 | { |
29167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 29168 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
29169 | |
29170 | wxPyEndAllowThreads(__tstate); | |
29171 | if (PyErr_Occurred()) SWIG_fail; | |
29172 | } | |
29173 | { | |
a001823c | 29174 | wxCursor * resultptr; |
093d3ff1 | 29175 | resultptr = new wxCursor((wxCursor &)(result)); |
a001823c | 29176 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); |
d55e5bfc RD |
29177 | } |
29178 | return resultobj; | |
29179 | fail: | |
29180 | return NULL; | |
29181 | } | |
29182 | ||
29183 | ||
c32bde28 | 29184 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29185 | PyObject *resultobj; |
29186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29187 | wxFont *arg2 = 0 ; | |
29188 | bool result; | |
29189 | PyObject * obj0 = 0 ; | |
29190 | PyObject * obj1 = 0 ; | |
29191 | char *kwnames[] = { | |
29192 | (char *) "self",(char *) "font", NULL | |
29193 | }; | |
29194 | ||
29195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29198 | { | |
29199 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
29200 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29201 | if (arg2 == NULL) { | |
29202 | SWIG_null_ref("wxFont"); | |
29203 | } | |
29204 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29205 | } |
29206 | { | |
29207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29208 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
29209 | ||
29210 | wxPyEndAllowThreads(__tstate); | |
29211 | if (PyErr_Occurred()) SWIG_fail; | |
29212 | } | |
29213 | { | |
29214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29215 | } | |
29216 | return resultobj; | |
29217 | fail: | |
29218 | return NULL; | |
29219 | } | |
29220 | ||
29221 | ||
c32bde28 | 29222 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29223 | PyObject *resultobj; |
29224 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29225 | wxFont *arg2 = 0 ; | |
29226 | PyObject * obj0 = 0 ; | |
29227 | PyObject * obj1 = 0 ; | |
29228 | char *kwnames[] = { | |
29229 | (char *) "self",(char *) "font", NULL | |
29230 | }; | |
29231 | ||
fa47d7a7 | 29232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
29233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29235 | { | |
29236 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
29237 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29238 | if (arg2 == NULL) { | |
29239 | SWIG_null_ref("wxFont"); | |
29240 | } | |
29241 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29242 | } |
29243 | { | |
29244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 29245 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
29246 | |
29247 | wxPyEndAllowThreads(__tstate); | |
29248 | if (PyErr_Occurred()) SWIG_fail; | |
29249 | } | |
29250 | Py_INCREF(Py_None); resultobj = Py_None; | |
29251 | return resultobj; | |
29252 | fail: | |
29253 | return NULL; | |
29254 | } | |
29255 | ||
29256 | ||
c32bde28 | 29257 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29258 | PyObject *resultobj; |
29259 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 29260 | wxFont result; |
d55e5bfc RD |
29261 | PyObject * obj0 = 0 ; |
29262 | char *kwnames[] = { | |
29263 | (char *) "self", NULL | |
29264 | }; | |
29265 | ||
29266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29269 | { |
29270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 29271 | result = (arg1)->GetFont(); |
d55e5bfc RD |
29272 | |
29273 | wxPyEndAllowThreads(__tstate); | |
29274 | if (PyErr_Occurred()) SWIG_fail; | |
29275 | } | |
29276 | { | |
a001823c | 29277 | wxFont * resultptr; |
093d3ff1 | 29278 | resultptr = new wxFont((wxFont &)(result)); |
a001823c | 29279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d55e5bfc RD |
29280 | } |
29281 | return resultobj; | |
29282 | fail: | |
29283 | return NULL; | |
29284 | } | |
29285 | ||
29286 | ||
c32bde28 | 29287 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29288 | PyObject *resultobj; |
29289 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29290 | wxCaret *arg2 = (wxCaret *) 0 ; | |
29291 | PyObject * obj0 = 0 ; | |
29292 | PyObject * obj1 = 0 ; | |
29293 | char *kwnames[] = { | |
29294 | (char *) "self",(char *) "caret", NULL | |
29295 | }; | |
29296 | ||
29297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29300 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); | |
29301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29302 | { |
29303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29304 | (arg1)->SetCaret(arg2); | |
29305 | ||
29306 | wxPyEndAllowThreads(__tstate); | |
29307 | if (PyErr_Occurred()) SWIG_fail; | |
29308 | } | |
29309 | Py_INCREF(Py_None); resultobj = Py_None; | |
29310 | return resultobj; | |
29311 | fail: | |
29312 | return NULL; | |
29313 | } | |
29314 | ||
29315 | ||
c32bde28 | 29316 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29317 | PyObject *resultobj; |
29318 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29319 | wxCaret *result; | |
29320 | PyObject * obj0 = 0 ; | |
29321 | char *kwnames[] = { | |
29322 | (char *) "self", NULL | |
29323 | }; | |
29324 | ||
29325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",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 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
29331 | ||
29332 | wxPyEndAllowThreads(__tstate); | |
29333 | if (PyErr_Occurred()) SWIG_fail; | |
29334 | } | |
29335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
29336 | return resultobj; | |
29337 | fail: | |
29338 | return NULL; | |
29339 | } | |
29340 | ||
29341 | ||
c32bde28 | 29342 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29343 | PyObject *resultobj; |
29344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29345 | int result; | |
29346 | PyObject * obj0 = 0 ; | |
29347 | char *kwnames[] = { | |
29348 | (char *) "self", NULL | |
29349 | }; | |
29350 | ||
29351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29352 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29353 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29354 | { |
29355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29356 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
29357 | ||
29358 | wxPyEndAllowThreads(__tstate); | |
29359 | if (PyErr_Occurred()) SWIG_fail; | |
29360 | } | |
093d3ff1 RD |
29361 | { |
29362 | resultobj = SWIG_From_int((int)(result)); | |
29363 | } | |
d55e5bfc RD |
29364 | return resultobj; |
29365 | fail: | |
29366 | return NULL; | |
29367 | } | |
29368 | ||
29369 | ||
c32bde28 | 29370 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29371 | PyObject *resultobj; |
29372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29373 | int result; | |
29374 | PyObject * obj0 = 0 ; | |
29375 | char *kwnames[] = { | |
29376 | (char *) "self", NULL | |
29377 | }; | |
29378 | ||
29379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29382 | { |
29383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29384 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
29385 | ||
29386 | wxPyEndAllowThreads(__tstate); | |
29387 | if (PyErr_Occurred()) SWIG_fail; | |
29388 | } | |
093d3ff1 RD |
29389 | { |
29390 | resultobj = SWIG_From_int((int)(result)); | |
29391 | } | |
d55e5bfc RD |
29392 | return resultobj; |
29393 | fail: | |
29394 | return NULL; | |
29395 | } | |
29396 | ||
29397 | ||
c32bde28 | 29398 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29399 | PyObject *resultobj; |
29400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29401 | wxString *arg2 = 0 ; | |
29402 | int *arg3 = (int *) 0 ; | |
29403 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 29404 | bool temp2 = false ; |
d55e5bfc | 29405 | int temp3 ; |
c32bde28 | 29406 | int res3 = 0 ; |
d55e5bfc | 29407 | int temp4 ; |
c32bde28 | 29408 | int res4 = 0 ; |
d55e5bfc RD |
29409 | PyObject * obj0 = 0 ; |
29410 | PyObject * obj1 = 0 ; | |
29411 | char *kwnames[] = { | |
29412 | (char *) "self",(char *) "string", NULL | |
29413 | }; | |
29414 | ||
c32bde28 RD |
29415 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
29416 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 29417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
29418 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29419 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29420 | { |
29421 | arg2 = wxString_in_helper(obj1); | |
29422 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29423 | temp2 = true; |
d55e5bfc RD |
29424 | } |
29425 | { | |
29426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29427 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
29428 | ||
29429 | wxPyEndAllowThreads(__tstate); | |
29430 | if (PyErr_Occurred()) SWIG_fail; | |
29431 | } | |
29432 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29433 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
29434 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
29435 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
29436 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
29437 | { |
29438 | if (temp2) | |
29439 | delete arg2; | |
29440 | } | |
29441 | return resultobj; | |
29442 | fail: | |
29443 | { | |
29444 | if (temp2) | |
29445 | delete arg2; | |
29446 | } | |
29447 | return NULL; | |
29448 | } | |
29449 | ||
29450 | ||
c32bde28 | 29451 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29452 | PyObject *resultobj; |
29453 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29454 | wxString *arg2 = 0 ; | |
29455 | int *arg3 = (int *) 0 ; | |
29456 | int *arg4 = (int *) 0 ; | |
29457 | int *arg5 = (int *) 0 ; | |
29458 | int *arg6 = (int *) 0 ; | |
29459 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 29460 | bool temp2 = false ; |
d55e5bfc | 29461 | int temp3 ; |
c32bde28 | 29462 | int res3 = 0 ; |
d55e5bfc | 29463 | int temp4 ; |
c32bde28 | 29464 | int res4 = 0 ; |
d55e5bfc | 29465 | int temp5 ; |
c32bde28 | 29466 | int res5 = 0 ; |
d55e5bfc | 29467 | int temp6 ; |
c32bde28 | 29468 | int res6 = 0 ; |
d55e5bfc RD |
29469 | PyObject * obj0 = 0 ; |
29470 | PyObject * obj1 = 0 ; | |
29471 | PyObject * obj2 = 0 ; | |
29472 | char *kwnames[] = { | |
29473 | (char *) "self",(char *) "string",(char *) "font", NULL | |
29474 | }; | |
29475 | ||
c32bde28 RD |
29476 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
29477 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
29478 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
29479 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc | 29480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29483 | { |
29484 | arg2 = wxString_in_helper(obj1); | |
29485 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29486 | temp2 = true; |
d55e5bfc RD |
29487 | } |
29488 | if (obj2) { | |
093d3ff1 RD |
29489 | SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); |
29490 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
29491 | } |
29492 | { | |
29493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29494 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
29495 | ||
29496 | wxPyEndAllowThreads(__tstate); | |
29497 | if (PyErr_Occurred()) SWIG_fail; | |
29498 | } | |
29499 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29500 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
29501 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
29502 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
29503 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
29504 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
29505 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
29506 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
29507 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
29508 | { |
29509 | if (temp2) | |
29510 | delete arg2; | |
29511 | } | |
29512 | return resultobj; | |
29513 | fail: | |
29514 | { | |
29515 | if (temp2) | |
29516 | delete arg2; | |
29517 | } | |
29518 | return NULL; | |
29519 | } | |
29520 | ||
29521 | ||
c32bde28 | 29522 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29523 | PyObject *resultobj; |
29524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29525 | int *arg2 = (int *) 0 ; | |
29526 | int *arg3 = (int *) 0 ; | |
29527 | int temp2 ; | |
c32bde28 | 29528 | int res2 = 0 ; |
d55e5bfc | 29529 | int temp3 ; |
c32bde28 | 29530 | int res3 = 0 ; |
d55e5bfc RD |
29531 | PyObject * obj0 = 0 ; |
29532 | PyObject * obj1 = 0 ; | |
29533 | PyObject * obj2 = 0 ; | |
29534 | char *kwnames[] = { | |
29535 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29536 | }; | |
29537 | ||
29538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 29541 | { |
c32bde28 RD |
29542 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
29543 | temp2 = SWIG_As_int(obj1); | |
093d3ff1 | 29544 | if (SWIG_arg_fail(2)) SWIG_fail; |
c32bde28 RD |
29545 | arg2 = &temp2; |
29546 | res2 = SWIG_NEWOBJ; | |
29547 | } | |
d55e5bfc RD |
29548 | } |
29549 | { | |
c32bde28 RD |
29550 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
29551 | temp3 = SWIG_As_int(obj2); | |
093d3ff1 | 29552 | if (SWIG_arg_fail(3)) SWIG_fail; |
c32bde28 RD |
29553 | arg3 = &temp3; |
29554 | res3 = SWIG_NEWOBJ; | |
29555 | } | |
d55e5bfc RD |
29556 | } |
29557 | { | |
29558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29559 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
29560 | ||
29561 | wxPyEndAllowThreads(__tstate); | |
29562 | if (PyErr_Occurred()) SWIG_fail; | |
29563 | } | |
29564 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29565 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29566 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29567 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29568 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
29569 | return resultobj; |
29570 | fail: | |
29571 | return NULL; | |
29572 | } | |
29573 | ||
29574 | ||
c32bde28 | 29575 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29576 | PyObject *resultobj; |
29577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29578 | int *arg2 = (int *) 0 ; | |
29579 | int *arg3 = (int *) 0 ; | |
29580 | int temp2 ; | |
c32bde28 | 29581 | int res2 = 0 ; |
d55e5bfc | 29582 | int temp3 ; |
c32bde28 | 29583 | int res3 = 0 ; |
d55e5bfc RD |
29584 | PyObject * obj0 = 0 ; |
29585 | PyObject * obj1 = 0 ; | |
29586 | PyObject * obj2 = 0 ; | |
29587 | char *kwnames[] = { | |
29588 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29589 | }; | |
29590 | ||
29591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 29594 | { |
c32bde28 RD |
29595 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
29596 | temp2 = SWIG_As_int(obj1); | |
093d3ff1 | 29597 | if (SWIG_arg_fail(2)) SWIG_fail; |
c32bde28 RD |
29598 | arg2 = &temp2; |
29599 | res2 = SWIG_NEWOBJ; | |
29600 | } | |
d55e5bfc RD |
29601 | } |
29602 | { | |
c32bde28 RD |
29603 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
29604 | temp3 = SWIG_As_int(obj2); | |
093d3ff1 | 29605 | if (SWIG_arg_fail(3)) SWIG_fail; |
c32bde28 RD |
29606 | arg3 = &temp3; |
29607 | res3 = SWIG_NEWOBJ; | |
29608 | } | |
d55e5bfc RD |
29609 | } |
29610 | { | |
29611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29612 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
29613 | ||
29614 | wxPyEndAllowThreads(__tstate); | |
29615 | if (PyErr_Occurred()) SWIG_fail; | |
29616 | } | |
29617 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
29618 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
29619 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
29620 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
29621 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
29622 | return resultobj; |
29623 | fail: | |
29624 | return NULL; | |
29625 | } | |
29626 | ||
29627 | ||
c32bde28 | 29628 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29629 | PyObject *resultobj; |
29630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29631 | wxPoint *arg2 = 0 ; | |
29632 | wxPoint result; | |
29633 | wxPoint temp2 ; | |
29634 | PyObject * obj0 = 0 ; | |
29635 | PyObject * obj1 = 0 ; | |
29636 | char *kwnames[] = { | |
29637 | (char *) "self",(char *) "pt", NULL | |
29638 | }; | |
29639 | ||
29640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29643 | { |
29644 | arg2 = &temp2; | |
29645 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29646 | } | |
29647 | { | |
29648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29649 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
29650 | ||
29651 | wxPyEndAllowThreads(__tstate); | |
29652 | if (PyErr_Occurred()) SWIG_fail; | |
29653 | } | |
29654 | { | |
29655 | wxPoint * resultptr; | |
093d3ff1 | 29656 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
29657 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
29658 | } | |
29659 | return resultobj; | |
29660 | fail: | |
29661 | return NULL; | |
29662 | } | |
29663 | ||
29664 | ||
c32bde28 | 29665 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29666 | PyObject *resultobj; |
29667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29668 | wxPoint *arg2 = 0 ; | |
29669 | wxPoint result; | |
29670 | wxPoint temp2 ; | |
29671 | PyObject * obj0 = 0 ; | |
29672 | PyObject * obj1 = 0 ; | |
29673 | char *kwnames[] = { | |
29674 | (char *) "self",(char *) "pt", NULL | |
29675 | }; | |
29676 | ||
29677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29680 | { |
29681 | arg2 = &temp2; | |
29682 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29683 | } | |
29684 | { | |
29685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29686 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
29687 | ||
29688 | wxPyEndAllowThreads(__tstate); | |
29689 | if (PyErr_Occurred()) SWIG_fail; | |
29690 | } | |
29691 | { | |
29692 | wxPoint * resultptr; | |
093d3ff1 | 29693 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
29694 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
29695 | } | |
29696 | return resultobj; | |
29697 | fail: | |
29698 | return NULL; | |
29699 | } | |
29700 | ||
29701 | ||
c32bde28 | 29702 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29703 | PyObject *resultobj; |
29704 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29705 | int arg2 ; | |
29706 | int arg3 ; | |
093d3ff1 | 29707 | wxHitTest result; |
d55e5bfc RD |
29708 | PyObject * obj0 = 0 ; |
29709 | PyObject * obj1 = 0 ; | |
29710 | PyObject * obj2 = 0 ; | |
29711 | char *kwnames[] = { | |
29712 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29713 | }; | |
29714 | ||
29715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29718 | { | |
29719 | arg2 = (int)(SWIG_As_int(obj1)); | |
29720 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29721 | } | |
29722 | { | |
29723 | arg3 = (int)(SWIG_As_int(obj2)); | |
29724 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29725 | } | |
d55e5bfc RD |
29726 | { |
29727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29728 | result = (wxHitTest)((wxWindow const *)arg1)->HitTest(arg2,arg3); |
d55e5bfc RD |
29729 | |
29730 | wxPyEndAllowThreads(__tstate); | |
29731 | if (PyErr_Occurred()) SWIG_fail; | |
29732 | } | |
093d3ff1 | 29733 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29734 | return resultobj; |
29735 | fail: | |
29736 | return NULL; | |
29737 | } | |
29738 | ||
29739 | ||
c32bde28 | 29740 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29741 | PyObject *resultobj; |
29742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29743 | wxPoint *arg2 = 0 ; | |
093d3ff1 | 29744 | wxHitTest result; |
d55e5bfc RD |
29745 | wxPoint temp2 ; |
29746 | PyObject * obj0 = 0 ; | |
29747 | PyObject * obj1 = 0 ; | |
29748 | char *kwnames[] = { | |
29749 | (char *) "self",(char *) "pt", NULL | |
29750 | }; | |
29751 | ||
29752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29755 | { |
29756 | arg2 = &temp2; | |
29757 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29758 | } | |
29759 | { | |
29760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29761 | result = (wxHitTest)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); |
d55e5bfc RD |
29762 | |
29763 | wxPyEndAllowThreads(__tstate); | |
29764 | if (PyErr_Occurred()) SWIG_fail; | |
29765 | } | |
093d3ff1 | 29766 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29767 | return resultobj; |
29768 | fail: | |
29769 | return NULL; | |
29770 | } | |
29771 | ||
29772 | ||
c32bde28 | 29773 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
29774 | PyObject *resultobj; |
29775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29776 | long arg2 ; | |
093d3ff1 | 29777 | wxBorder result; |
d55e5bfc RD |
29778 | PyObject * obj0 = 0 ; |
29779 | PyObject * obj1 = 0 ; | |
29780 | ||
29781 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29784 | { | |
29785 | arg2 = (long)(SWIG_As_long(obj1)); | |
29786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29787 | } | |
d55e5bfc RD |
29788 | { |
29789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29790 | result = (wxBorder)((wxWindow const *)arg1)->GetBorder(arg2); |
d55e5bfc RD |
29791 | |
29792 | wxPyEndAllowThreads(__tstate); | |
29793 | if (PyErr_Occurred()) SWIG_fail; | |
29794 | } | |
093d3ff1 | 29795 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29796 | return resultobj; |
29797 | fail: | |
29798 | return NULL; | |
29799 | } | |
29800 | ||
29801 | ||
c32bde28 | 29802 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
29803 | PyObject *resultobj; |
29804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 29805 | wxBorder result; |
d55e5bfc RD |
29806 | PyObject * obj0 = 0 ; |
29807 | ||
29808 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
093d3ff1 RD |
29809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29811 | { |
29812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29813 | result = (wxBorder)((wxWindow const *)arg1)->GetBorder(); |
d55e5bfc RD |
29814 | |
29815 | wxPyEndAllowThreads(__tstate); | |
29816 | if (PyErr_Occurred()) SWIG_fail; | |
29817 | } | |
093d3ff1 | 29818 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
29819 | return resultobj; |
29820 | fail: | |
29821 | return NULL; | |
29822 | } | |
29823 | ||
29824 | ||
29825 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
29826 | int argc; | |
29827 | PyObject *argv[3]; | |
29828 | int ii; | |
29829 | ||
29830 | argc = PyObject_Length(args); | |
29831 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
29832 | argv[ii] = PyTuple_GetItem(args,ii); | |
29833 | } | |
29834 | if (argc == 1) { | |
29835 | int _v; | |
29836 | { | |
29837 | void *ptr; | |
29838 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
29839 | _v = 0; | |
29840 | PyErr_Clear(); | |
29841 | } else { | |
29842 | _v = 1; | |
29843 | } | |
29844 | } | |
29845 | if (_v) { | |
29846 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
29847 | } | |
29848 | } | |
29849 | if (argc == 2) { | |
29850 | int _v; | |
29851 | { | |
29852 | void *ptr; | |
29853 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
29854 | _v = 0; | |
29855 | PyErr_Clear(); | |
29856 | } else { | |
29857 | _v = 1; | |
29858 | } | |
29859 | } | |
29860 | if (_v) { | |
c32bde28 | 29861 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
29862 | if (_v) { |
29863 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
29864 | } | |
29865 | } | |
29866 | } | |
29867 | ||
093d3ff1 | 29868 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'Window_GetBorder'"); |
d55e5bfc RD |
29869 | return NULL; |
29870 | } | |
29871 | ||
29872 | ||
c32bde28 | 29873 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29874 | PyObject *resultobj; |
29875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29876 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
29877 | PyObject * obj0 = 0 ; | |
29878 | PyObject * obj1 = 0 ; | |
29879 | char *kwnames[] = { | |
29880 | (char *) "self",(char *) "flags", NULL | |
29881 | }; | |
29882 | ||
29883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 29886 | if (obj1) { |
093d3ff1 RD |
29887 | { |
29888 | arg2 = (long)(SWIG_As_long(obj1)); | |
29889 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29890 | } | |
d55e5bfc RD |
29891 | } |
29892 | { | |
29893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29894 | (arg1)->UpdateWindowUI(arg2); | |
29895 | ||
29896 | wxPyEndAllowThreads(__tstate); | |
29897 | if (PyErr_Occurred()) SWIG_fail; | |
29898 | } | |
29899 | Py_INCREF(Py_None); resultobj = Py_None; | |
29900 | return resultobj; | |
29901 | fail: | |
29902 | return NULL; | |
29903 | } | |
29904 | ||
29905 | ||
c32bde28 | 29906 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29907 | PyObject *resultobj; |
29908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29909 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
29910 | int arg3 = (int) -1 ; |
29911 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
29912 | bool result; |
29913 | PyObject * obj0 = 0 ; | |
29914 | PyObject * obj1 = 0 ; | |
29915 | PyObject * obj2 = 0 ; | |
29916 | PyObject * obj3 = 0 ; | |
29917 | char *kwnames[] = { | |
29918 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
29919 | }; | |
29920 | ||
7a0b95b0 | 29921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
29922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29924 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
29925 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7a0b95b0 | 29926 | if (obj2) { |
093d3ff1 RD |
29927 | { |
29928 | arg3 = (int)(SWIG_As_int(obj2)); | |
29929 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29930 | } | |
7a0b95b0 RD |
29931 | } |
29932 | if (obj3) { | |
093d3ff1 RD |
29933 | { |
29934 | arg4 = (int)(SWIG_As_int(obj3)); | |
29935 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29936 | } | |
7a0b95b0 | 29937 | } |
d55e5bfc RD |
29938 | { |
29939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29940 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
29941 | ||
29942 | wxPyEndAllowThreads(__tstate); | |
29943 | if (PyErr_Occurred()) SWIG_fail; | |
29944 | } | |
29945 | { | |
29946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29947 | } | |
29948 | return resultobj; | |
29949 | fail: | |
29950 | return NULL; | |
29951 | } | |
29952 | ||
29953 | ||
c32bde28 | 29954 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29955 | PyObject *resultobj; |
29956 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29957 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
29958 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29959 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
29960 | bool result; |
29961 | wxPoint temp3 ; | |
29962 | PyObject * obj0 = 0 ; | |
29963 | PyObject * obj1 = 0 ; | |
29964 | PyObject * obj2 = 0 ; | |
29965 | char *kwnames[] = { | |
29966 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
29967 | }; | |
29968 | ||
7a0b95b0 | 29969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29972 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
29973 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7a0b95b0 RD |
29974 | if (obj2) { |
29975 | { | |
29976 | arg3 = &temp3; | |
29977 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29978 | } | |
d55e5bfc RD |
29979 | } |
29980 | { | |
29981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29982 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
29983 | ||
29984 | wxPyEndAllowThreads(__tstate); | |
29985 | if (PyErr_Occurred()) SWIG_fail; | |
29986 | } | |
29987 | { | |
29988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29989 | } | |
29990 | return resultobj; | |
29991 | fail: | |
29992 | return NULL; | |
29993 | } | |
29994 | ||
29995 | ||
c32bde28 | 29996 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29997 | PyObject *resultobj; |
29998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29999 | long result; | |
30000 | PyObject * obj0 = 0 ; | |
30001 | char *kwnames[] = { | |
30002 | (char *) "self", NULL | |
30003 | }; | |
30004 | ||
30005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30008 | { |
30009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30010 | result = (long)wxWindow_GetHandle(arg1); | |
30011 | ||
30012 | wxPyEndAllowThreads(__tstate); | |
30013 | if (PyErr_Occurred()) SWIG_fail; | |
30014 | } | |
093d3ff1 RD |
30015 | { |
30016 | resultobj = SWIG_From_long((long)(result)); | |
30017 | } | |
d55e5bfc RD |
30018 | return resultobj; |
30019 | fail: | |
30020 | return NULL; | |
30021 | } | |
30022 | ||
30023 | ||
7e63a440 RD |
30024 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
30025 | PyObject *resultobj; | |
30026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30027 | long arg2 ; | |
30028 | PyObject * obj0 = 0 ; | |
30029 | PyObject * obj1 = 0 ; | |
30030 | char *kwnames[] = { | |
30031 | (char *) "self",(char *) "handle", NULL | |
30032 | }; | |
30033 | ||
30034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30037 | { | |
30038 | arg2 = (long)(SWIG_As_long(obj1)); | |
30039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30040 | } | |
7e63a440 RD |
30041 | { |
30042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30043 | wxWindow_AssociateHandle(arg1,arg2); | |
30044 | ||
30045 | wxPyEndAllowThreads(__tstate); | |
30046 | if (PyErr_Occurred()) SWIG_fail; | |
30047 | } | |
30048 | Py_INCREF(Py_None); resultobj = Py_None; | |
30049 | return resultobj; | |
30050 | fail: | |
30051 | return NULL; | |
30052 | } | |
30053 | ||
30054 | ||
30055 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
30056 | PyObject *resultobj; | |
30057 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30058 | PyObject * obj0 = 0 ; | |
30059 | char *kwnames[] = { | |
30060 | (char *) "self", NULL | |
30061 | }; | |
30062 | ||
30063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7e63a440 RD |
30066 | { |
30067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30068 | (arg1)->DissociateHandle(); | |
30069 | ||
30070 | wxPyEndAllowThreads(__tstate); | |
30071 | if (PyErr_Occurred()) SWIG_fail; | |
30072 | } | |
30073 | Py_INCREF(Py_None); resultobj = Py_None; | |
30074 | return resultobj; | |
30075 | fail: | |
30076 | return NULL; | |
30077 | } | |
30078 | ||
30079 | ||
c32bde28 | 30080 | static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30081 | PyObject *resultobj; |
30082 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30083 | wxPaintEvent *arg2 = 0 ; | |
30084 | PyObject * obj0 = 0 ; | |
30085 | PyObject * obj1 = 0 ; | |
30086 | char *kwnames[] = { | |
30087 | (char *) "self",(char *) "event", NULL | |
30088 | }; | |
30089 | ||
30090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30093 | { | |
30094 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPaintEvent, SWIG_POINTER_EXCEPTION | 0); | |
30095 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30096 | if (arg2 == NULL) { | |
30097 | SWIG_null_ref("wxPaintEvent"); | |
30098 | } | |
30099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30100 | } |
30101 | { | |
30102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30103 | (arg1)->OnPaint(*arg2); | |
30104 | ||
30105 | wxPyEndAllowThreads(__tstate); | |
30106 | if (PyErr_Occurred()) SWIG_fail; | |
30107 | } | |
30108 | Py_INCREF(Py_None); resultobj = Py_None; | |
30109 | return resultobj; | |
30110 | fail: | |
30111 | return NULL; | |
30112 | } | |
30113 | ||
30114 | ||
c32bde28 | 30115 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30116 | PyObject *resultobj; |
30117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30118 | int arg2 ; | |
30119 | bool result; | |
30120 | PyObject * obj0 = 0 ; | |
30121 | PyObject * obj1 = 0 ; | |
30122 | char *kwnames[] = { | |
30123 | (char *) "self",(char *) "orient", NULL | |
30124 | }; | |
30125 | ||
30126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30129 | { | |
30130 | arg2 = (int)(SWIG_As_int(obj1)); | |
30131 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30132 | } | |
d55e5bfc RD |
30133 | { |
30134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30135 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
30136 | ||
30137 | wxPyEndAllowThreads(__tstate); | |
30138 | if (PyErr_Occurred()) SWIG_fail; | |
30139 | } | |
30140 | { | |
30141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30142 | } | |
30143 | return resultobj; | |
30144 | fail: | |
30145 | return NULL; | |
30146 | } | |
30147 | ||
30148 | ||
c32bde28 | 30149 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30150 | PyObject *resultobj; |
30151 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30152 | int arg2 ; | |
30153 | int arg3 ; | |
30154 | int arg4 ; | |
30155 | int arg5 ; | |
ae8162c8 | 30156 | bool arg6 = (bool) true ; |
d55e5bfc RD |
30157 | PyObject * obj0 = 0 ; |
30158 | PyObject * obj1 = 0 ; | |
30159 | PyObject * obj2 = 0 ; | |
30160 | PyObject * obj3 = 0 ; | |
30161 | PyObject * obj4 = 0 ; | |
30162 | PyObject * obj5 = 0 ; | |
30163 | char *kwnames[] = { | |
79fccf9d | 30164 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
30165 | }; |
30166 | ||
30167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
30168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30170 | { | |
30171 | arg2 = (int)(SWIG_As_int(obj1)); | |
30172 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30173 | } | |
30174 | { | |
30175 | arg3 = (int)(SWIG_As_int(obj2)); | |
30176 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30177 | } | |
30178 | { | |
30179 | arg4 = (int)(SWIG_As_int(obj3)); | |
30180 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30181 | } | |
30182 | { | |
30183 | arg5 = (int)(SWIG_As_int(obj4)); | |
30184 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30185 | } | |
d55e5bfc | 30186 | if (obj5) { |
093d3ff1 RD |
30187 | { |
30188 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
30189 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30190 | } | |
d55e5bfc RD |
30191 | } |
30192 | { | |
30193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30194 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
30195 | ||
30196 | wxPyEndAllowThreads(__tstate); | |
30197 | if (PyErr_Occurred()) SWIG_fail; | |
30198 | } | |
30199 | Py_INCREF(Py_None); resultobj = Py_None; | |
30200 | return resultobj; | |
30201 | fail: | |
30202 | return NULL; | |
30203 | } | |
30204 | ||
30205 | ||
c32bde28 | 30206 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30207 | PyObject *resultobj; |
30208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30209 | int arg2 ; | |
30210 | int arg3 ; | |
ae8162c8 | 30211 | bool arg4 = (bool) true ; |
d55e5bfc RD |
30212 | PyObject * obj0 = 0 ; |
30213 | PyObject * obj1 = 0 ; | |
30214 | PyObject * obj2 = 0 ; | |
30215 | PyObject * obj3 = 0 ; | |
30216 | char *kwnames[] = { | |
30217 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
30218 | }; | |
30219 | ||
30220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30223 | { | |
30224 | arg2 = (int)(SWIG_As_int(obj1)); | |
30225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30226 | } | |
30227 | { | |
30228 | arg3 = (int)(SWIG_As_int(obj2)); | |
30229 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30230 | } | |
d55e5bfc | 30231 | if (obj3) { |
093d3ff1 RD |
30232 | { |
30233 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
30234 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30235 | } | |
d55e5bfc RD |
30236 | } |
30237 | { | |
30238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30239 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
30240 | ||
30241 | wxPyEndAllowThreads(__tstate); | |
30242 | if (PyErr_Occurred()) SWIG_fail; | |
30243 | } | |
30244 | Py_INCREF(Py_None); resultobj = Py_None; | |
30245 | return resultobj; | |
30246 | fail: | |
30247 | return NULL; | |
30248 | } | |
30249 | ||
30250 | ||
c32bde28 | 30251 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30252 | PyObject *resultobj; |
30253 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30254 | int arg2 ; | |
30255 | int result; | |
30256 | PyObject * obj0 = 0 ; | |
30257 | PyObject * obj1 = 0 ; | |
30258 | char *kwnames[] = { | |
30259 | (char *) "self",(char *) "orientation", NULL | |
30260 | }; | |
30261 | ||
30262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30265 | { | |
30266 | arg2 = (int)(SWIG_As_int(obj1)); | |
30267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30268 | } | |
d55e5bfc RD |
30269 | { |
30270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30271 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
30272 | ||
30273 | wxPyEndAllowThreads(__tstate); | |
30274 | if (PyErr_Occurred()) SWIG_fail; | |
30275 | } | |
093d3ff1 RD |
30276 | { |
30277 | resultobj = SWIG_From_int((int)(result)); | |
30278 | } | |
d55e5bfc RD |
30279 | return resultobj; |
30280 | fail: | |
30281 | return NULL; | |
30282 | } | |
30283 | ||
30284 | ||
c32bde28 | 30285 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30286 | PyObject *resultobj; |
30287 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30288 | int arg2 ; | |
30289 | int result; | |
30290 | PyObject * obj0 = 0 ; | |
30291 | PyObject * obj1 = 0 ; | |
30292 | char *kwnames[] = { | |
30293 | (char *) "self",(char *) "orientation", NULL | |
30294 | }; | |
30295 | ||
30296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30299 | { | |
30300 | arg2 = (int)(SWIG_As_int(obj1)); | |
30301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30302 | } | |
d55e5bfc RD |
30303 | { |
30304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30305 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
30306 | ||
30307 | wxPyEndAllowThreads(__tstate); | |
30308 | if (PyErr_Occurred()) SWIG_fail; | |
30309 | } | |
093d3ff1 RD |
30310 | { |
30311 | resultobj = SWIG_From_int((int)(result)); | |
30312 | } | |
d55e5bfc RD |
30313 | return resultobj; |
30314 | fail: | |
30315 | return NULL; | |
30316 | } | |
30317 | ||
30318 | ||
c32bde28 | 30319 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30320 | PyObject *resultobj; |
30321 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30322 | int arg2 ; | |
30323 | int result; | |
30324 | PyObject * obj0 = 0 ; | |
30325 | PyObject * obj1 = 0 ; | |
30326 | char *kwnames[] = { | |
30327 | (char *) "self",(char *) "orientation", NULL | |
30328 | }; | |
30329 | ||
30330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30333 | { | |
30334 | arg2 = (int)(SWIG_As_int(obj1)); | |
30335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30336 | } | |
d55e5bfc RD |
30337 | { |
30338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30339 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
30340 | ||
30341 | wxPyEndAllowThreads(__tstate); | |
30342 | if (PyErr_Occurred()) SWIG_fail; | |
30343 | } | |
093d3ff1 RD |
30344 | { |
30345 | resultobj = SWIG_From_int((int)(result)); | |
30346 | } | |
d55e5bfc RD |
30347 | return resultobj; |
30348 | fail: | |
30349 | return NULL; | |
30350 | } | |
30351 | ||
30352 | ||
c32bde28 | 30353 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30354 | PyObject *resultobj; |
30355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30356 | int arg2 ; | |
30357 | int arg3 ; | |
30358 | wxRect *arg4 = (wxRect *) NULL ; | |
30359 | PyObject * obj0 = 0 ; | |
30360 | PyObject * obj1 = 0 ; | |
30361 | PyObject * obj2 = 0 ; | |
30362 | PyObject * obj3 = 0 ; | |
30363 | char *kwnames[] = { | |
30364 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
30365 | }; | |
30366 | ||
30367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
30368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30370 | { | |
30371 | arg2 = (int)(SWIG_As_int(obj1)); | |
30372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30373 | } | |
30374 | { | |
30375 | arg3 = (int)(SWIG_As_int(obj2)); | |
30376 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30377 | } | |
d55e5bfc | 30378 | if (obj3) { |
093d3ff1 RD |
30379 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
30380 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
30381 | } |
30382 | { | |
30383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30384 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
30385 | ||
30386 | wxPyEndAllowThreads(__tstate); | |
30387 | if (PyErr_Occurred()) SWIG_fail; | |
30388 | } | |
30389 | Py_INCREF(Py_None); resultobj = Py_None; | |
30390 | return resultobj; | |
30391 | fail: | |
30392 | return NULL; | |
30393 | } | |
30394 | ||
30395 | ||
c32bde28 | 30396 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30397 | PyObject *resultobj; |
30398 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30399 | int arg2 ; | |
30400 | bool result; | |
30401 | PyObject * obj0 = 0 ; | |
30402 | PyObject * obj1 = 0 ; | |
30403 | char *kwnames[] = { | |
30404 | (char *) "self",(char *) "lines", NULL | |
30405 | }; | |
30406 | ||
30407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30410 | { | |
30411 | arg2 = (int)(SWIG_As_int(obj1)); | |
30412 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30413 | } | |
d55e5bfc RD |
30414 | { |
30415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30416 | result = (bool)(arg1)->ScrollLines(arg2); | |
30417 | ||
30418 | wxPyEndAllowThreads(__tstate); | |
30419 | if (PyErr_Occurred()) SWIG_fail; | |
30420 | } | |
30421 | { | |
30422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30423 | } | |
30424 | return resultobj; | |
30425 | fail: | |
30426 | return NULL; | |
30427 | } | |
30428 | ||
30429 | ||
c32bde28 | 30430 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30431 | PyObject *resultobj; |
30432 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30433 | int arg2 ; | |
30434 | bool result; | |
30435 | PyObject * obj0 = 0 ; | |
30436 | PyObject * obj1 = 0 ; | |
30437 | char *kwnames[] = { | |
30438 | (char *) "self",(char *) "pages", NULL | |
30439 | }; | |
30440 | ||
30441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30442 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30443 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30444 | { | |
30445 | arg2 = (int)(SWIG_As_int(obj1)); | |
30446 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30447 | } | |
d55e5bfc RD |
30448 | { |
30449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30450 | result = (bool)(arg1)->ScrollPages(arg2); | |
30451 | ||
30452 | wxPyEndAllowThreads(__tstate); | |
30453 | if (PyErr_Occurred()) SWIG_fail; | |
30454 | } | |
30455 | { | |
30456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30457 | } | |
30458 | return resultobj; | |
30459 | fail: | |
30460 | return NULL; | |
30461 | } | |
30462 | ||
30463 | ||
c32bde28 | 30464 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30465 | PyObject *resultobj; |
30466 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30467 | bool result; | |
30468 | PyObject * obj0 = 0 ; | |
30469 | char *kwnames[] = { | |
30470 | (char *) "self", NULL | |
30471 | }; | |
30472 | ||
30473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30476 | { |
30477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30478 | result = (bool)(arg1)->LineUp(); | |
30479 | ||
30480 | wxPyEndAllowThreads(__tstate); | |
30481 | if (PyErr_Occurred()) SWIG_fail; | |
30482 | } | |
30483 | { | |
30484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30485 | } | |
30486 | return resultobj; | |
30487 | fail: | |
30488 | return NULL; | |
30489 | } | |
30490 | ||
30491 | ||
c32bde28 | 30492 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30493 | PyObject *resultobj; |
30494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30495 | bool result; | |
30496 | PyObject * obj0 = 0 ; | |
30497 | char *kwnames[] = { | |
30498 | (char *) "self", NULL | |
30499 | }; | |
30500 | ||
30501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30502 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30503 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30504 | { |
30505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30506 | result = (bool)(arg1)->LineDown(); | |
30507 | ||
30508 | wxPyEndAllowThreads(__tstate); | |
30509 | if (PyErr_Occurred()) SWIG_fail; | |
30510 | } | |
30511 | { | |
30512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30513 | } | |
30514 | return resultobj; | |
30515 | fail: | |
30516 | return NULL; | |
30517 | } | |
30518 | ||
30519 | ||
c32bde28 | 30520 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30521 | PyObject *resultobj; |
30522 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30523 | bool result; | |
30524 | PyObject * obj0 = 0 ; | |
30525 | char *kwnames[] = { | |
30526 | (char *) "self", NULL | |
30527 | }; | |
30528 | ||
30529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30532 | { |
30533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30534 | result = (bool)(arg1)->PageUp(); | |
30535 | ||
30536 | wxPyEndAllowThreads(__tstate); | |
30537 | if (PyErr_Occurred()) SWIG_fail; | |
30538 | } | |
30539 | { | |
30540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30541 | } | |
30542 | return resultobj; | |
30543 | fail: | |
30544 | return NULL; | |
30545 | } | |
30546 | ||
30547 | ||
c32bde28 | 30548 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30549 | PyObject *resultobj; |
30550 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30551 | bool result; | |
30552 | PyObject * obj0 = 0 ; | |
30553 | char *kwnames[] = { | |
30554 | (char *) "self", NULL | |
30555 | }; | |
30556 | ||
30557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30560 | { |
30561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30562 | result = (bool)(arg1)->PageDown(); | |
30563 | ||
30564 | wxPyEndAllowThreads(__tstate); | |
30565 | if (PyErr_Occurred()) SWIG_fail; | |
30566 | } | |
30567 | { | |
30568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30569 | } | |
30570 | return resultobj; | |
30571 | fail: | |
30572 | return NULL; | |
30573 | } | |
30574 | ||
30575 | ||
c32bde28 | 30576 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30577 | PyObject *resultobj; |
30578 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30579 | wxString *arg2 = 0 ; | |
ae8162c8 | 30580 | bool temp2 = false ; |
d55e5bfc RD |
30581 | PyObject * obj0 = 0 ; |
30582 | PyObject * obj1 = 0 ; | |
30583 | char *kwnames[] = { | |
30584 | (char *) "self",(char *) "text", NULL | |
30585 | }; | |
30586 | ||
30587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30590 | { |
30591 | arg2 = wxString_in_helper(obj1); | |
30592 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30593 | temp2 = true; |
d55e5bfc RD |
30594 | } |
30595 | { | |
30596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30597 | (arg1)->SetHelpText((wxString const &)*arg2); | |
30598 | ||
30599 | wxPyEndAllowThreads(__tstate); | |
30600 | if (PyErr_Occurred()) SWIG_fail; | |
30601 | } | |
30602 | Py_INCREF(Py_None); resultobj = Py_None; | |
30603 | { | |
30604 | if (temp2) | |
30605 | delete arg2; | |
30606 | } | |
30607 | return resultobj; | |
30608 | fail: | |
30609 | { | |
30610 | if (temp2) | |
30611 | delete arg2; | |
30612 | } | |
30613 | return NULL; | |
30614 | } | |
30615 | ||
30616 | ||
c32bde28 | 30617 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30618 | PyObject *resultobj; |
30619 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30620 | wxString *arg2 = 0 ; | |
ae8162c8 | 30621 | bool temp2 = false ; |
d55e5bfc RD |
30622 | PyObject * obj0 = 0 ; |
30623 | PyObject * obj1 = 0 ; | |
30624 | char *kwnames[] = { | |
30625 | (char *) "self",(char *) "text", NULL | |
30626 | }; | |
30627 | ||
30628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30631 | { |
30632 | arg2 = wxString_in_helper(obj1); | |
30633 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30634 | temp2 = true; |
d55e5bfc RD |
30635 | } |
30636 | { | |
30637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30638 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
30639 | ||
30640 | wxPyEndAllowThreads(__tstate); | |
30641 | if (PyErr_Occurred()) SWIG_fail; | |
30642 | } | |
30643 | Py_INCREF(Py_None); resultobj = Py_None; | |
30644 | { | |
30645 | if (temp2) | |
30646 | delete arg2; | |
30647 | } | |
30648 | return resultobj; | |
30649 | fail: | |
30650 | { | |
30651 | if (temp2) | |
30652 | delete arg2; | |
30653 | } | |
30654 | return NULL; | |
30655 | } | |
30656 | ||
30657 | ||
c32bde28 | 30658 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30659 | PyObject *resultobj; |
30660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30661 | wxString result; | |
30662 | PyObject * obj0 = 0 ; | |
30663 | char *kwnames[] = { | |
30664 | (char *) "self", NULL | |
30665 | }; | |
30666 | ||
30667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30670 | { |
30671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30672 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
30673 | ||
30674 | wxPyEndAllowThreads(__tstate); | |
30675 | if (PyErr_Occurred()) SWIG_fail; | |
30676 | } | |
30677 | { | |
30678 | #if wxUSE_UNICODE | |
30679 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30680 | #else | |
30681 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30682 | #endif | |
30683 | } | |
30684 | return resultobj; | |
30685 | fail: | |
30686 | return NULL; | |
30687 | } | |
30688 | ||
30689 | ||
c32bde28 | 30690 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30691 | PyObject *resultobj; |
30692 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30693 | wxString *arg2 = 0 ; | |
ae8162c8 | 30694 | bool temp2 = false ; |
d55e5bfc RD |
30695 | PyObject * obj0 = 0 ; |
30696 | PyObject * obj1 = 0 ; | |
30697 | char *kwnames[] = { | |
30698 | (char *) "self",(char *) "tip", NULL | |
30699 | }; | |
30700 | ||
30701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30704 | { |
30705 | arg2 = wxString_in_helper(obj1); | |
30706 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30707 | temp2 = true; |
d55e5bfc RD |
30708 | } |
30709 | { | |
30710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30711 | (arg1)->SetToolTip((wxString const &)*arg2); | |
30712 | ||
30713 | wxPyEndAllowThreads(__tstate); | |
30714 | if (PyErr_Occurred()) SWIG_fail; | |
30715 | } | |
30716 | Py_INCREF(Py_None); resultobj = Py_None; | |
30717 | { | |
30718 | if (temp2) | |
30719 | delete arg2; | |
30720 | } | |
30721 | return resultobj; | |
30722 | fail: | |
30723 | { | |
30724 | if (temp2) | |
30725 | delete arg2; | |
30726 | } | |
30727 | return NULL; | |
30728 | } | |
30729 | ||
30730 | ||
c32bde28 | 30731 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30732 | PyObject *resultobj; |
30733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30734 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
30735 | PyObject * obj0 = 0 ; | |
30736 | PyObject * obj1 = 0 ; | |
30737 | char *kwnames[] = { | |
30738 | (char *) "self",(char *) "tip", NULL | |
30739 | }; | |
30740 | ||
30741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30744 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); | |
30745 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30746 | { |
30747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30748 | (arg1)->SetToolTip(arg2); | |
30749 | ||
30750 | wxPyEndAllowThreads(__tstate); | |
30751 | if (PyErr_Occurred()) SWIG_fail; | |
30752 | } | |
30753 | Py_INCREF(Py_None); resultobj = Py_None; | |
30754 | return resultobj; | |
30755 | fail: | |
30756 | return NULL; | |
30757 | } | |
30758 | ||
30759 | ||
c32bde28 | 30760 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30761 | PyObject *resultobj; |
30762 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30763 | wxToolTip *result; | |
30764 | PyObject * obj0 = 0 ; | |
30765 | char *kwnames[] = { | |
30766 | (char *) "self", NULL | |
30767 | }; | |
30768 | ||
30769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30772 | { |
30773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30774 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
30775 | ||
30776 | wxPyEndAllowThreads(__tstate); | |
30777 | if (PyErr_Occurred()) SWIG_fail; | |
30778 | } | |
30779 | { | |
412d302d | 30780 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30781 | } |
30782 | return resultobj; | |
30783 | fail: | |
30784 | return NULL; | |
30785 | } | |
30786 | ||
30787 | ||
c32bde28 | 30788 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30789 | PyObject *resultobj; |
30790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30791 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
30792 | PyObject * obj0 = 0 ; | |
30793 | PyObject * obj1 = 0 ; | |
30794 | char *kwnames[] = { | |
30795 | (char *) "self",(char *) "dropTarget", NULL | |
30796 | }; | |
30797 | ||
30798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30801 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
30802 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30803 | { |
30804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30805 | (arg1)->SetDropTarget(arg2); | |
30806 | ||
30807 | wxPyEndAllowThreads(__tstate); | |
30808 | if (PyErr_Occurred()) SWIG_fail; | |
30809 | } | |
30810 | Py_INCREF(Py_None); resultobj = Py_None; | |
30811 | return resultobj; | |
30812 | fail: | |
30813 | return NULL; | |
30814 | } | |
30815 | ||
30816 | ||
c32bde28 | 30817 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30818 | PyObject *resultobj; |
30819 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30820 | wxPyDropTarget *result; | |
30821 | PyObject * obj0 = 0 ; | |
30822 | char *kwnames[] = { | |
30823 | (char *) "self", NULL | |
30824 | }; | |
30825 | ||
30826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30827 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30828 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30829 | { |
30830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30831 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
30832 | ||
30833 | wxPyEndAllowThreads(__tstate); | |
30834 | if (PyErr_Occurred()) SWIG_fail; | |
30835 | } | |
30836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
30837 | return resultobj; | |
30838 | fail: | |
30839 | return NULL; | |
30840 | } | |
30841 | ||
30842 | ||
c32bde28 | 30843 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30844 | PyObject *resultobj; |
30845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30846 | bool arg2 ; | |
30847 | PyObject * obj0 = 0 ; | |
30848 | PyObject * obj1 = 0 ; | |
30849 | char *kwnames[] = { | |
30850 | (char *) "self",(char *) "accept", NULL | |
30851 | }; | |
30852 | ||
30853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30856 | { | |
30857 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
30858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30859 | } | |
d55e5bfc RD |
30860 | { |
30861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30862 | (arg1)->DragAcceptFiles(arg2); | |
30863 | ||
30864 | wxPyEndAllowThreads(__tstate); | |
30865 | if (PyErr_Occurred()) SWIG_fail; | |
30866 | } | |
30867 | Py_INCREF(Py_None); resultobj = Py_None; | |
30868 | return resultobj; | |
30869 | fail: | |
30870 | return NULL; | |
30871 | } | |
30872 | ||
30873 | ||
c32bde28 | 30874 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30875 | PyObject *resultobj; |
30876 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30877 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
30878 | PyObject * obj0 = 0 ; | |
30879 | PyObject * obj1 = 0 ; | |
30880 | char *kwnames[] = { | |
30881 | (char *) "self",(char *) "constraints", NULL | |
30882 | }; | |
30883 | ||
30884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30887 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); | |
30888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30889 | { |
30890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30891 | (arg1)->SetConstraints(arg2); | |
30892 | ||
30893 | wxPyEndAllowThreads(__tstate); | |
30894 | if (PyErr_Occurred()) SWIG_fail; | |
30895 | } | |
30896 | Py_INCREF(Py_None); resultobj = Py_None; | |
30897 | return resultobj; | |
30898 | fail: | |
30899 | return NULL; | |
30900 | } | |
30901 | ||
30902 | ||
c32bde28 | 30903 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30904 | PyObject *resultobj; |
30905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30906 | wxLayoutConstraints *result; | |
30907 | PyObject * obj0 = 0 ; | |
30908 | char *kwnames[] = { | |
30909 | (char *) "self", NULL | |
30910 | }; | |
30911 | ||
30912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",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; | |
d55e5bfc RD |
30915 | { |
30916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30917 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
30918 | ||
30919 | wxPyEndAllowThreads(__tstate); | |
30920 | if (PyErr_Occurred()) SWIG_fail; | |
30921 | } | |
30922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
30923 | return resultobj; | |
30924 | fail: | |
30925 | return NULL; | |
30926 | } | |
30927 | ||
30928 | ||
c32bde28 | 30929 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30930 | PyObject *resultobj; |
30931 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30932 | bool arg2 ; | |
30933 | PyObject * obj0 = 0 ; | |
30934 | PyObject * obj1 = 0 ; | |
30935 | char *kwnames[] = { | |
30936 | (char *) "self",(char *) "autoLayout", NULL | |
30937 | }; | |
30938 | ||
30939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",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 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
30944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30945 | } | |
d55e5bfc RD |
30946 | { |
30947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30948 | (arg1)->SetAutoLayout(arg2); | |
30949 | ||
30950 | wxPyEndAllowThreads(__tstate); | |
30951 | if (PyErr_Occurred()) SWIG_fail; | |
30952 | } | |
30953 | Py_INCREF(Py_None); resultobj = Py_None; | |
30954 | return resultobj; | |
30955 | fail: | |
30956 | return NULL; | |
30957 | } | |
30958 | ||
30959 | ||
c32bde28 | 30960 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30961 | PyObject *resultobj; |
30962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30963 | bool result; | |
30964 | PyObject * obj0 = 0 ; | |
30965 | char *kwnames[] = { | |
30966 | (char *) "self", NULL | |
30967 | }; | |
30968 | ||
30969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30972 | { |
30973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30974 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
30975 | ||
30976 | wxPyEndAllowThreads(__tstate); | |
30977 | if (PyErr_Occurred()) SWIG_fail; | |
30978 | } | |
30979 | { | |
30980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30981 | } | |
30982 | return resultobj; | |
30983 | fail: | |
30984 | return NULL; | |
30985 | } | |
30986 | ||
30987 | ||
c32bde28 | 30988 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30989 | PyObject *resultobj; |
30990 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30991 | bool result; | |
30992 | PyObject * obj0 = 0 ; | |
30993 | char *kwnames[] = { | |
30994 | (char *) "self", NULL | |
30995 | }; | |
30996 | ||
30997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31000 | { |
31001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31002 | result = (bool)(arg1)->Layout(); | |
31003 | ||
31004 | wxPyEndAllowThreads(__tstate); | |
31005 | if (PyErr_Occurred()) SWIG_fail; | |
31006 | } | |
31007 | { | |
31008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31009 | } | |
31010 | return resultobj; | |
31011 | fail: | |
31012 | return NULL; | |
31013 | } | |
31014 | ||
31015 | ||
c32bde28 | 31016 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31017 | PyObject *resultobj; |
31018 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31019 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 31020 | bool arg3 = (bool) true ; |
d55e5bfc RD |
31021 | PyObject * obj0 = 0 ; |
31022 | PyObject * obj1 = 0 ; | |
31023 | PyObject * obj2 = 0 ; | |
31024 | char *kwnames[] = { | |
31025 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
31026 | }; | |
31027 | ||
31028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
31029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31031 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31032 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 31033 | if (obj2) { |
093d3ff1 RD |
31034 | { |
31035 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
31036 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31037 | } | |
d55e5bfc RD |
31038 | } |
31039 | { | |
31040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31041 | (arg1)->SetSizer(arg2,arg3); | |
31042 | ||
31043 | wxPyEndAllowThreads(__tstate); | |
31044 | if (PyErr_Occurred()) SWIG_fail; | |
31045 | } | |
31046 | Py_INCREF(Py_None); resultobj = Py_None; | |
31047 | return resultobj; | |
31048 | fail: | |
31049 | return NULL; | |
31050 | } | |
31051 | ||
31052 | ||
c32bde28 | 31053 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31054 | PyObject *resultobj; |
31055 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31056 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 31057 | bool arg3 = (bool) true ; |
d55e5bfc RD |
31058 | PyObject * obj0 = 0 ; |
31059 | PyObject * obj1 = 0 ; | |
31060 | PyObject * obj2 = 0 ; | |
31061 | char *kwnames[] = { | |
31062 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
31063 | }; | |
31064 | ||
31065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
31066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31068 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31069 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 31070 | if (obj2) { |
093d3ff1 RD |
31071 | { |
31072 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
31073 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31074 | } | |
d55e5bfc RD |
31075 | } |
31076 | { | |
31077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31078 | (arg1)->SetSizerAndFit(arg2,arg3); | |
31079 | ||
31080 | wxPyEndAllowThreads(__tstate); | |
31081 | if (PyErr_Occurred()) SWIG_fail; | |
31082 | } | |
31083 | Py_INCREF(Py_None); resultobj = Py_None; | |
31084 | return resultobj; | |
31085 | fail: | |
31086 | return NULL; | |
31087 | } | |
31088 | ||
31089 | ||
c32bde28 | 31090 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31091 | PyObject *resultobj; |
31092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31093 | wxSizer *result; | |
31094 | PyObject * obj0 = 0 ; | |
31095 | char *kwnames[] = { | |
31096 | (char *) "self", NULL | |
31097 | }; | |
31098 | ||
31099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31102 | { |
31103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31104 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
31105 | ||
31106 | wxPyEndAllowThreads(__tstate); | |
31107 | if (PyErr_Occurred()) SWIG_fail; | |
31108 | } | |
31109 | { | |
412d302d | 31110 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
31111 | } |
31112 | return resultobj; | |
31113 | fail: | |
31114 | return NULL; | |
31115 | } | |
31116 | ||
31117 | ||
c32bde28 | 31118 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31119 | PyObject *resultobj; |
31120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31121 | wxSizer *arg2 = (wxSizer *) 0 ; | |
31122 | PyObject * obj0 = 0 ; | |
31123 | PyObject * obj1 = 0 ; | |
31124 | char *kwnames[] = { | |
31125 | (char *) "self",(char *) "sizer", NULL | |
31126 | }; | |
31127 | ||
31128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31131 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31132 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31133 | { |
31134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31135 | (arg1)->SetContainingSizer(arg2); | |
31136 | ||
31137 | wxPyEndAllowThreads(__tstate); | |
31138 | if (PyErr_Occurred()) SWIG_fail; | |
31139 | } | |
31140 | Py_INCREF(Py_None); resultobj = Py_None; | |
31141 | return resultobj; | |
31142 | fail: | |
31143 | return NULL; | |
31144 | } | |
31145 | ||
31146 | ||
c32bde28 | 31147 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31148 | PyObject *resultobj; |
31149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31150 | wxSizer *result; | |
31151 | PyObject * obj0 = 0 ; | |
31152 | char *kwnames[] = { | |
31153 | (char *) "self", NULL | |
31154 | }; | |
31155 | ||
31156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31159 | { |
31160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31161 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
31162 | ||
31163 | wxPyEndAllowThreads(__tstate); | |
31164 | if (PyErr_Occurred()) SWIG_fail; | |
31165 | } | |
31166 | { | |
412d302d | 31167 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
31168 | } |
31169 | return resultobj; | |
31170 | fail: | |
31171 | return NULL; | |
31172 | } | |
31173 | ||
31174 | ||
c32bde28 | 31175 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31176 | PyObject *resultobj; |
31177 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31178 | PyObject * obj0 = 0 ; | |
31179 | char *kwnames[] = { | |
31180 | (char *) "self", NULL | |
31181 | }; | |
31182 | ||
31183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31186 | { |
31187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31188 | (arg1)->InheritAttributes(); | |
31189 | ||
31190 | wxPyEndAllowThreads(__tstate); | |
31191 | if (PyErr_Occurred()) SWIG_fail; | |
31192 | } | |
31193 | Py_INCREF(Py_None); resultobj = Py_None; | |
31194 | return resultobj; | |
31195 | fail: | |
31196 | return NULL; | |
31197 | } | |
31198 | ||
31199 | ||
c32bde28 | 31200 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31201 | PyObject *resultobj; |
31202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31203 | bool result; | |
31204 | PyObject * obj0 = 0 ; | |
31205 | char *kwnames[] = { | |
31206 | (char *) "self", NULL | |
31207 | }; | |
31208 | ||
31209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31212 | { |
31213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31214 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
31215 | ||
31216 | wxPyEndAllowThreads(__tstate); | |
31217 | if (PyErr_Occurred()) SWIG_fail; | |
31218 | } | |
31219 | { | |
31220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31221 | } | |
31222 | return resultobj; | |
31223 | fail: | |
31224 | return NULL; | |
31225 | } | |
31226 | ||
31227 | ||
c32bde28 | 31228 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31229 | PyObject *obj; |
31230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31231 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
31232 | Py_INCREF(obj); | |
31233 | return Py_BuildValue((char *)""); | |
31234 | } | |
c32bde28 | 31235 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31236 | PyObject *resultobj; |
31237 | long arg1 ; | |
31238 | wxWindow *arg2 = (wxWindow *) NULL ; | |
31239 | wxWindow *result; | |
31240 | PyObject * obj0 = 0 ; | |
31241 | PyObject * obj1 = 0 ; | |
31242 | char *kwnames[] = { | |
31243 | (char *) "id",(char *) "parent", NULL | |
31244 | }; | |
31245 | ||
31246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31247 | { |
31248 | arg1 = (long)(SWIG_As_long(obj0)); | |
31249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31250 | } | |
d55e5bfc | 31251 | if (obj1) { |
093d3ff1 RD |
31252 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31253 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31254 | } |
31255 | { | |
0439c23b | 31256 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31258 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
31259 | ||
31260 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31261 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31262 | } |
31263 | { | |
412d302d | 31264 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31265 | } |
31266 | return resultobj; | |
31267 | fail: | |
31268 | return NULL; | |
31269 | } | |
31270 | ||
31271 | ||
c32bde28 | 31272 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31273 | PyObject *resultobj; |
31274 | wxString *arg1 = 0 ; | |
31275 | wxWindow *arg2 = (wxWindow *) NULL ; | |
31276 | wxWindow *result; | |
ae8162c8 | 31277 | bool temp1 = false ; |
d55e5bfc RD |
31278 | PyObject * obj0 = 0 ; |
31279 | PyObject * obj1 = 0 ; | |
31280 | char *kwnames[] = { | |
31281 | (char *) "name",(char *) "parent", NULL | |
31282 | }; | |
31283 | ||
31284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
31285 | { | |
31286 | arg1 = wxString_in_helper(obj0); | |
31287 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 31288 | temp1 = true; |
d55e5bfc RD |
31289 | } |
31290 | if (obj1) { | |
093d3ff1 RD |
31291 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31292 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31293 | } |
31294 | { | |
0439c23b | 31295 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31297 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
31298 | ||
31299 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31300 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31301 | } |
31302 | { | |
412d302d | 31303 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31304 | } |
31305 | { | |
31306 | if (temp1) | |
31307 | delete arg1; | |
31308 | } | |
31309 | return resultobj; | |
31310 | fail: | |
31311 | { | |
31312 | if (temp1) | |
31313 | delete arg1; | |
31314 | } | |
31315 | return NULL; | |
31316 | } | |
31317 | ||
31318 | ||
c32bde28 | 31319 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31320 | PyObject *resultobj; |
31321 | wxString *arg1 = 0 ; | |
31322 | wxWindow *arg2 = (wxWindow *) NULL ; | |
31323 | wxWindow *result; | |
ae8162c8 | 31324 | bool temp1 = false ; |
d55e5bfc RD |
31325 | PyObject * obj0 = 0 ; |
31326 | PyObject * obj1 = 0 ; | |
31327 | char *kwnames[] = { | |
31328 | (char *) "label",(char *) "parent", NULL | |
31329 | }; | |
31330 | ||
31331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
31332 | { | |
31333 | arg1 = wxString_in_helper(obj0); | |
31334 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 31335 | temp1 = true; |
d55e5bfc RD |
31336 | } |
31337 | if (obj1) { | |
093d3ff1 RD |
31338 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31339 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31340 | } |
31341 | { | |
0439c23b | 31342 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31344 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
31345 | ||
31346 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31347 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31348 | } |
31349 | { | |
412d302d | 31350 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31351 | } |
31352 | { | |
31353 | if (temp1) | |
31354 | delete arg1; | |
31355 | } | |
31356 | return resultobj; | |
31357 | fail: | |
31358 | { | |
31359 | if (temp1) | |
31360 | delete arg1; | |
31361 | } | |
31362 | return NULL; | |
31363 | } | |
31364 | ||
31365 | ||
c32bde28 | 31366 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31367 | PyObject *resultobj; |
31368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31369 | unsigned long arg2 ; | |
31370 | wxWindow *result; | |
31371 | PyObject * obj0 = 0 ; | |
31372 | PyObject * obj1 = 0 ; | |
31373 | char *kwnames[] = { | |
31374 | (char *) "parent",(char *) "_hWnd", NULL | |
31375 | }; | |
31376 | ||
31377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31380 | { | |
31381 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
31382 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31383 | } | |
d55e5bfc RD |
31384 | { |
31385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31386 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
31387 | ||
31388 | wxPyEndAllowThreads(__tstate); | |
31389 | if (PyErr_Occurred()) SWIG_fail; | |
31390 | } | |
31391 | { | |
412d302d | 31392 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31393 | } |
31394 | return resultobj; | |
31395 | fail: | |
31396 | return NULL; | |
31397 | } | |
31398 | ||
31399 | ||
c32bde28 | 31400 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31401 | PyObject *resultobj; |
31402 | wxValidator *result; | |
31403 | char *kwnames[] = { | |
31404 | NULL | |
31405 | }; | |
31406 | ||
31407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
31408 | { | |
31409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31410 | result = (wxValidator *)new wxValidator(); | |
31411 | ||
31412 | wxPyEndAllowThreads(__tstate); | |
31413 | if (PyErr_Occurred()) SWIG_fail; | |
31414 | } | |
b0f7404b | 31415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
31416 | return resultobj; |
31417 | fail: | |
31418 | return NULL; | |
31419 | } | |
31420 | ||
31421 | ||
c32bde28 | 31422 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31423 | PyObject *resultobj; |
31424 | wxValidator *arg1 = (wxValidator *) 0 ; | |
31425 | wxValidator *result; | |
31426 | PyObject * obj0 = 0 ; | |
31427 | char *kwnames[] = { | |
31428 | (char *) "self", NULL | |
31429 | }; | |
31430 | ||
31431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
31433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31434 | { |
31435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31436 | result = (wxValidator *)(arg1)->Clone(); | |
31437 | ||
31438 | wxPyEndAllowThreads(__tstate); | |
31439 | if (PyErr_Occurred()) SWIG_fail; | |
31440 | } | |
31441 | { | |
412d302d | 31442 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31443 | } |
31444 | return resultobj; | |
31445 | fail: | |
31446 | return NULL; | |
31447 | } | |
31448 | ||
31449 | ||
c32bde28 | 31450 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31451 | PyObject *resultobj; |
31452 | wxValidator *arg1 = (wxValidator *) 0 ; | |
31453 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31454 | bool result; | |
31455 | PyObject * obj0 = 0 ; | |
31456 | PyObject * obj1 = 0 ; | |
31457 | char *kwnames[] = { | |
31458 | (char *) "self",(char *) "parent", NULL | |
31459 | }; | |
31460 | ||
31461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
31463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31464 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
31465 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31466 | { |
31467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31468 | result = (bool)(arg1)->Validate(arg2); | |
31469 | ||
31470 | wxPyEndAllowThreads(__tstate); | |
31471 | if (PyErr_Occurred()) SWIG_fail; | |
31472 | } | |
31473 | { | |
31474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31475 | } | |
31476 | return resultobj; | |
31477 | fail: | |
31478 | return NULL; | |
31479 | } | |
31480 | ||
31481 | ||
c32bde28 | 31482 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31483 | PyObject *resultobj; |
31484 | wxValidator *arg1 = (wxValidator *) 0 ; | |
31485 | bool result; | |
31486 | PyObject * obj0 = 0 ; | |
31487 | char *kwnames[] = { | |
31488 | (char *) "self", NULL | |
31489 | }; | |
31490 | ||
31491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
31493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31494 | { |
31495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31496 | result = (bool)(arg1)->TransferToWindow(); | |
31497 | ||
31498 | wxPyEndAllowThreads(__tstate); | |
31499 | if (PyErr_Occurred()) SWIG_fail; | |
31500 | } | |
31501 | { | |
31502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31503 | } | |
31504 | return resultobj; | |
31505 | fail: | |
31506 | return NULL; | |
31507 | } | |
31508 | ||
31509 | ||
c32bde28 | 31510 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31511 | PyObject *resultobj; |
31512 | wxValidator *arg1 = (wxValidator *) 0 ; | |
31513 | bool result; | |
31514 | PyObject * obj0 = 0 ; | |
31515 | char *kwnames[] = { | |
31516 | (char *) "self", NULL | |
31517 | }; | |
31518 | ||
31519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
31521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31522 | { |
31523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31524 | result = (bool)(arg1)->TransferFromWindow(); | |
31525 | ||
31526 | wxPyEndAllowThreads(__tstate); | |
31527 | if (PyErr_Occurred()) SWIG_fail; | |
31528 | } | |
31529 | { | |
31530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31531 | } | |
31532 | return resultobj; | |
31533 | fail: | |
31534 | return NULL; | |
31535 | } | |
31536 | ||
31537 | ||
c32bde28 | 31538 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31539 | PyObject *resultobj; |
31540 | wxValidator *arg1 = (wxValidator *) 0 ; | |
31541 | wxWindow *result; | |
31542 | PyObject * obj0 = 0 ; | |
31543 | char *kwnames[] = { | |
31544 | (char *) "self", NULL | |
31545 | }; | |
31546 | ||
31547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
31549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31550 | { |
31551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31552 | result = (wxWindow *)(arg1)->GetWindow(); | |
31553 | ||
31554 | wxPyEndAllowThreads(__tstate); | |
31555 | if (PyErr_Occurred()) SWIG_fail; | |
31556 | } | |
31557 | { | |
412d302d | 31558 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31559 | } |
31560 | return resultobj; | |
31561 | fail: | |
31562 | return NULL; | |
31563 | } | |
31564 | ||
31565 | ||
c32bde28 | 31566 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31567 | PyObject *resultobj; |
31568 | wxValidator *arg1 = (wxValidator *) 0 ; | |
31569 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31570 | PyObject * obj0 = 0 ; | |
31571 | PyObject * obj1 = 0 ; | |
31572 | char *kwnames[] = { | |
31573 | (char *) "self",(char *) "window", NULL | |
31574 | }; | |
31575 | ||
31576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
31578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31579 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
31580 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
31581 | { |
31582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31583 | (arg1)->SetWindow(arg2); | |
31584 | ||
31585 | wxPyEndAllowThreads(__tstate); | |
31586 | if (PyErr_Occurred()) SWIG_fail; | |
31587 | } | |
31588 | Py_INCREF(Py_None); resultobj = Py_None; | |
31589 | return resultobj; | |
31590 | fail: | |
31591 | return NULL; | |
31592 | } | |
31593 | ||
31594 | ||
c32bde28 | 31595 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31596 | PyObject *resultobj; |
31597 | bool result; | |
31598 | char *kwnames[] = { | |
31599 | NULL | |
31600 | }; | |
31601 | ||
31602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
31603 | { | |
31604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31605 | result = (bool)wxValidator::IsSilent(); | |
31606 | ||
31607 | wxPyEndAllowThreads(__tstate); | |
31608 | if (PyErr_Occurred()) SWIG_fail; | |
31609 | } | |
31610 | { | |
31611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31612 | } | |
31613 | return resultobj; | |
31614 | fail: | |
31615 | return NULL; | |
31616 | } | |
31617 | ||
31618 | ||
c32bde28 | 31619 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 31620 | PyObject *resultobj; |
ae8162c8 | 31621 | int arg1 = (int) true ; |
d55e5bfc RD |
31622 | PyObject * obj0 = 0 ; |
31623 | char *kwnames[] = { | |
31624 | (char *) "doIt", NULL | |
31625 | }; | |
31626 | ||
31627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
31628 | if (obj0) { | |
093d3ff1 RD |
31629 | { |
31630 | arg1 = (int)(SWIG_As_int(obj0)); | |
31631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31632 | } | |
d55e5bfc RD |
31633 | } |
31634 | { | |
31635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31636 | wxValidator::SetBellOnError(arg1); | |
31637 | ||
31638 | wxPyEndAllowThreads(__tstate); | |
31639 | if (PyErr_Occurred()) SWIG_fail; | |
31640 | } | |
31641 | Py_INCREF(Py_None); resultobj = Py_None; | |
31642 | return resultobj; | |
31643 | fail: | |
31644 | return NULL; | |
31645 | } | |
31646 | ||
31647 | ||
c32bde28 | 31648 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31649 | PyObject *obj; |
31650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31651 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
31652 | Py_INCREF(obj); | |
31653 | return Py_BuildValue((char *)""); | |
31654 | } | |
c32bde28 | 31655 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31656 | PyObject *resultobj; |
31657 | wxPyValidator *result; | |
31658 | char *kwnames[] = { | |
31659 | NULL | |
31660 | }; | |
31661 | ||
31662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
31663 | { | |
31664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31665 | result = (wxPyValidator *)new wxPyValidator(); | |
31666 | ||
31667 | wxPyEndAllowThreads(__tstate); | |
31668 | if (PyErr_Occurred()) SWIG_fail; | |
31669 | } | |
31670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
31671 | return resultobj; | |
31672 | fail: | |
31673 | return NULL; | |
31674 | } | |
31675 | ||
31676 | ||
c32bde28 | 31677 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31678 | PyObject *resultobj; |
31679 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
31680 | PyObject *arg2 = (PyObject *) 0 ; | |
31681 | PyObject *arg3 = (PyObject *) 0 ; | |
ae8162c8 | 31682 | int arg4 = (int) true ; |
d55e5bfc RD |
31683 | PyObject * obj0 = 0 ; |
31684 | PyObject * obj1 = 0 ; | |
31685 | PyObject * obj2 = 0 ; | |
31686 | PyObject * obj3 = 0 ; | |
31687 | char *kwnames[] = { | |
31688 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
31689 | }; | |
31690 | ||
31691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
31692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyValidator, SWIG_POINTER_EXCEPTION | 0); |
31693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31694 | arg2 = obj1; |
31695 | arg3 = obj2; | |
31696 | if (obj3) { | |
093d3ff1 RD |
31697 | { |
31698 | arg4 = (int)(SWIG_As_int(obj3)); | |
31699 | if (SWIG_arg_fail(4)) SWIG_fail; | |
31700 | } | |
d55e5bfc RD |
31701 | } |
31702 | { | |
31703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31704 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
31705 | ||
31706 | wxPyEndAllowThreads(__tstate); | |
31707 | if (PyErr_Occurred()) SWIG_fail; | |
31708 | } | |
31709 | Py_INCREF(Py_None); resultobj = Py_None; | |
31710 | return resultobj; | |
31711 | fail: | |
31712 | return NULL; | |
31713 | } | |
31714 | ||
31715 | ||
c32bde28 | 31716 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31717 | PyObject *obj; |
31718 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31719 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
31720 | Py_INCREF(obj); | |
31721 | return Py_BuildValue((char *)""); | |
31722 | } | |
c32bde28 | 31723 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
31724 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
31725 | return 1; | |
31726 | } | |
31727 | ||
31728 | ||
093d3ff1 | 31729 | static PyObject *_wrap_DefaultValidator_get(void) { |
d55e5bfc RD |
31730 | PyObject *pyobj; |
31731 | ||
31732 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
31733 | return pyobj; | |
31734 | } | |
31735 | ||
31736 | ||
c32bde28 | 31737 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31738 | PyObject *resultobj; |
31739 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
31740 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
31741 | long arg2 = (long) 0 ; | |
31742 | wxMenu *result; | |
ae8162c8 | 31743 | bool temp1 = false ; |
d55e5bfc RD |
31744 | PyObject * obj0 = 0 ; |
31745 | PyObject * obj1 = 0 ; | |
31746 | char *kwnames[] = { | |
31747 | (char *) "title",(char *) "style", NULL | |
31748 | }; | |
31749 | ||
31750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
31751 | if (obj0) { | |
31752 | { | |
31753 | arg1 = wxString_in_helper(obj0); | |
31754 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 31755 | temp1 = true; |
d55e5bfc RD |
31756 | } |
31757 | } | |
31758 | if (obj1) { | |
093d3ff1 RD |
31759 | { |
31760 | arg2 = (long)(SWIG_As_long(obj1)); | |
31761 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31762 | } | |
d55e5bfc RD |
31763 | } |
31764 | { | |
0439c23b | 31765 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31767 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
31768 | ||
31769 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31770 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31771 | } |
b0f7404b | 31772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
31773 | { |
31774 | if (temp1) | |
31775 | delete arg1; | |
31776 | } | |
31777 | return resultobj; | |
31778 | fail: | |
31779 | { | |
31780 | if (temp1) | |
31781 | delete arg1; | |
31782 | } | |
31783 | return NULL; | |
31784 | } | |
31785 | ||
31786 | ||
c32bde28 | 31787 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31788 | PyObject *resultobj; |
31789 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31790 | int arg2 ; | |
31791 | wxString *arg3 = 0 ; | |
31792 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31793 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 31794 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc | 31795 | wxMenuItem *result; |
ae8162c8 RD |
31796 | bool temp3 = false ; |
31797 | bool temp4 = false ; | |
d55e5bfc RD |
31798 | PyObject * obj0 = 0 ; |
31799 | PyObject * obj1 = 0 ; | |
31800 | PyObject * obj2 = 0 ; | |
31801 | PyObject * obj3 = 0 ; | |
31802 | PyObject * obj4 = 0 ; | |
31803 | char *kwnames[] = { | |
31804 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
31805 | }; | |
31806 | ||
31807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
31808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
31809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31810 | { | |
31811 | arg2 = (int)(SWIG_As_int(obj1)); | |
31812 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31813 | } | |
d55e5bfc RD |
31814 | { |
31815 | arg3 = wxString_in_helper(obj2); | |
31816 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31817 | temp3 = true; |
d55e5bfc RD |
31818 | } |
31819 | if (obj3) { | |
31820 | { | |
31821 | arg4 = wxString_in_helper(obj3); | |
31822 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31823 | temp4 = true; |
d55e5bfc RD |
31824 | } |
31825 | } | |
31826 | if (obj4) { | |
093d3ff1 RD |
31827 | { |
31828 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
31829 | if (SWIG_arg_fail(5)) SWIG_fail; | |
31830 | } | |
d55e5bfc RD |
31831 | } |
31832 | { | |
31833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31834 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
31835 | ||
31836 | wxPyEndAllowThreads(__tstate); | |
31837 | if (PyErr_Occurred()) SWIG_fail; | |
31838 | } | |
31839 | { | |
412d302d | 31840 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31841 | } |
31842 | { | |
31843 | if (temp3) | |
31844 | delete arg3; | |
31845 | } | |
31846 | { | |
31847 | if (temp4) | |
31848 | delete arg4; | |
31849 | } | |
31850 | return resultobj; | |
31851 | fail: | |
31852 | { | |
31853 | if (temp3) | |
31854 | delete arg3; | |
31855 | } | |
31856 | { | |
31857 | if (temp4) | |
31858 | delete arg4; | |
31859 | } | |
31860 | return NULL; | |
31861 | } | |
31862 | ||
31863 | ||
c32bde28 | 31864 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31865 | PyObject *resultobj; |
31866 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31867 | wxMenuItem *result; | |
31868 | PyObject * obj0 = 0 ; | |
31869 | char *kwnames[] = { | |
31870 | (char *) "self", NULL | |
31871 | }; | |
31872 | ||
31873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31874 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
31875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31876 | { |
31877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31878 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
31879 | ||
31880 | wxPyEndAllowThreads(__tstate); | |
31881 | if (PyErr_Occurred()) SWIG_fail; | |
31882 | } | |
31883 | { | |
412d302d | 31884 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31885 | } |
31886 | return resultobj; | |
31887 | fail: | |
31888 | return NULL; | |
31889 | } | |
31890 | ||
31891 | ||
c32bde28 | 31892 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31893 | PyObject *resultobj; |
31894 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31895 | int arg2 ; | |
31896 | wxString *arg3 = 0 ; | |
31897 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31898 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31899 | wxMenuItem *result; | |
ae8162c8 RD |
31900 | bool temp3 = false ; |
31901 | bool temp4 = false ; | |
d55e5bfc RD |
31902 | PyObject * obj0 = 0 ; |
31903 | PyObject * obj1 = 0 ; | |
31904 | PyObject * obj2 = 0 ; | |
31905 | PyObject * obj3 = 0 ; | |
31906 | char *kwnames[] = { | |
31907 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
31908 | }; | |
31909 | ||
31910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
31911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
31912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31913 | { | |
31914 | arg2 = (int)(SWIG_As_int(obj1)); | |
31915 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31916 | } | |
d55e5bfc RD |
31917 | { |
31918 | arg3 = wxString_in_helper(obj2); | |
31919 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31920 | temp3 = true; |
d55e5bfc RD |
31921 | } |
31922 | if (obj3) { | |
31923 | { | |
31924 | arg4 = wxString_in_helper(obj3); | |
31925 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31926 | temp4 = true; |
d55e5bfc RD |
31927 | } |
31928 | } | |
31929 | { | |
31930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31931 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
31932 | ||
31933 | wxPyEndAllowThreads(__tstate); | |
31934 | if (PyErr_Occurred()) SWIG_fail; | |
31935 | } | |
31936 | { | |
412d302d | 31937 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31938 | } |
31939 | { | |
31940 | if (temp3) | |
31941 | delete arg3; | |
31942 | } | |
31943 | { | |
31944 | if (temp4) | |
31945 | delete arg4; | |
31946 | } | |
31947 | return resultobj; | |
31948 | fail: | |
31949 | { | |
31950 | if (temp3) | |
31951 | delete arg3; | |
31952 | } | |
31953 | { | |
31954 | if (temp4) | |
31955 | delete arg4; | |
31956 | } | |
31957 | return NULL; | |
31958 | } | |
31959 | ||
31960 | ||
c32bde28 | 31961 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31962 | PyObject *resultobj; |
31963 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31964 | int arg2 ; | |
31965 | wxString *arg3 = 0 ; | |
31966 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31967 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31968 | wxMenuItem *result; | |
ae8162c8 RD |
31969 | bool temp3 = false ; |
31970 | bool temp4 = false ; | |
d55e5bfc RD |
31971 | PyObject * obj0 = 0 ; |
31972 | PyObject * obj1 = 0 ; | |
31973 | PyObject * obj2 = 0 ; | |
31974 | PyObject * obj3 = 0 ; | |
31975 | char *kwnames[] = { | |
31976 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
31977 | }; | |
31978 | ||
31979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
31980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
31981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31982 | { | |
31983 | arg2 = (int)(SWIG_As_int(obj1)); | |
31984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31985 | } | |
d55e5bfc RD |
31986 | { |
31987 | arg3 = wxString_in_helper(obj2); | |
31988 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31989 | temp3 = true; |
d55e5bfc RD |
31990 | } |
31991 | if (obj3) { | |
31992 | { | |
31993 | arg4 = wxString_in_helper(obj3); | |
31994 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31995 | temp4 = true; |
d55e5bfc RD |
31996 | } |
31997 | } | |
31998 | { | |
31999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32000 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
32001 | ||
32002 | wxPyEndAllowThreads(__tstate); | |
32003 | if (PyErr_Occurred()) SWIG_fail; | |
32004 | } | |
32005 | { | |
412d302d | 32006 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32007 | } |
32008 | { | |
32009 | if (temp3) | |
32010 | delete arg3; | |
32011 | } | |
32012 | { | |
32013 | if (temp4) | |
32014 | delete arg4; | |
32015 | } | |
32016 | return resultobj; | |
32017 | fail: | |
32018 | { | |
32019 | if (temp3) | |
32020 | delete arg3; | |
32021 | } | |
32022 | { | |
32023 | if (temp4) | |
32024 | delete arg4; | |
32025 | } | |
32026 | return NULL; | |
32027 | } | |
32028 | ||
32029 | ||
c32bde28 | 32030 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32031 | PyObject *resultobj; |
32032 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32033 | int arg2 ; | |
32034 | wxString *arg3 = 0 ; | |
32035 | wxMenu *arg4 = (wxMenu *) 0 ; | |
32036 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
32037 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
32038 | wxMenuItem *result; | |
ae8162c8 RD |
32039 | bool temp3 = false ; |
32040 | bool temp5 = false ; | |
d55e5bfc RD |
32041 | PyObject * obj0 = 0 ; |
32042 | PyObject * obj1 = 0 ; | |
32043 | PyObject * obj2 = 0 ; | |
32044 | PyObject * obj3 = 0 ; | |
32045 | PyObject * obj4 = 0 ; | |
32046 | char *kwnames[] = { | |
32047 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
32048 | }; | |
32049 | ||
32050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32053 | { | |
32054 | arg2 = (int)(SWIG_As_int(obj1)); | |
32055 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32056 | } | |
d55e5bfc RD |
32057 | { |
32058 | arg3 = wxString_in_helper(obj2); | |
32059 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32060 | temp3 = true; |
d55e5bfc | 32061 | } |
093d3ff1 RD |
32062 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32063 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
32064 | if (obj4) { |
32065 | { | |
32066 | arg5 = wxString_in_helper(obj4); | |
32067 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 32068 | temp5 = true; |
d55e5bfc RD |
32069 | } |
32070 | } | |
32071 | { | |
32072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32073 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
32074 | ||
32075 | wxPyEndAllowThreads(__tstate); | |
32076 | if (PyErr_Occurred()) SWIG_fail; | |
32077 | } | |
32078 | { | |
412d302d | 32079 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32080 | } |
32081 | { | |
32082 | if (temp3) | |
32083 | delete arg3; | |
32084 | } | |
32085 | { | |
32086 | if (temp5) | |
32087 | delete arg5; | |
32088 | } | |
32089 | return resultobj; | |
32090 | fail: | |
32091 | { | |
32092 | if (temp3) | |
32093 | delete arg3; | |
32094 | } | |
32095 | { | |
32096 | if (temp5) | |
32097 | delete arg5; | |
32098 | } | |
32099 | return NULL; | |
32100 | } | |
32101 | ||
32102 | ||
c32bde28 | 32103 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32104 | PyObject *resultobj; |
32105 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32106 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
32107 | wxMenuItem *result; | |
32108 | PyObject * obj0 = 0 ; | |
32109 | PyObject * obj1 = 0 ; | |
32110 | char *kwnames[] = { | |
32111 | (char *) "self",(char *) "item", NULL | |
32112 | }; | |
32113 | ||
32114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32117 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
32118 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32119 | { |
32120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32121 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
32122 | ||
32123 | wxPyEndAllowThreads(__tstate); | |
32124 | if (PyErr_Occurred()) SWIG_fail; | |
32125 | } | |
32126 | { | |
412d302d | 32127 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32128 | } |
32129 | return resultobj; | |
32130 | fail: | |
32131 | return NULL; | |
32132 | } | |
32133 | ||
32134 | ||
c32bde28 | 32135 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32136 | PyObject *resultobj; |
32137 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32138 | PyObject * obj0 = 0 ; | |
32139 | char *kwnames[] = { | |
32140 | (char *) "self", NULL | |
32141 | }; | |
32142 | ||
32143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32146 | { |
32147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32148 | (arg1)->Break(); | |
32149 | ||
32150 | wxPyEndAllowThreads(__tstate); | |
32151 | if (PyErr_Occurred()) SWIG_fail; | |
32152 | } | |
32153 | Py_INCREF(Py_None); resultobj = Py_None; | |
32154 | return resultobj; | |
32155 | fail: | |
32156 | return NULL; | |
32157 | } | |
32158 | ||
32159 | ||
c32bde28 | 32160 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32161 | PyObject *resultobj; |
32162 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32163 | size_t arg2 ; | |
32164 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
32165 | wxMenuItem *result; | |
32166 | PyObject * obj0 = 0 ; | |
32167 | PyObject * obj1 = 0 ; | |
32168 | PyObject * obj2 = 0 ; | |
32169 | char *kwnames[] = { | |
32170 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
32171 | }; | |
32172 | ||
32173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32176 | { | |
32177 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
32178 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32179 | } | |
32180 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
32181 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
32182 | { |
32183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32184 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
32185 | ||
32186 | wxPyEndAllowThreads(__tstate); | |
32187 | if (PyErr_Occurred()) SWIG_fail; | |
32188 | } | |
32189 | { | |
412d302d | 32190 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32191 | } |
32192 | return resultobj; | |
32193 | fail: | |
32194 | return NULL; | |
32195 | } | |
32196 | ||
32197 | ||
c32bde28 | 32198 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32199 | PyObject *resultobj; |
32200 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32201 | size_t arg2 ; | |
32202 | int arg3 ; | |
32203 | wxString *arg4 = 0 ; | |
32204 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
32205 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
093d3ff1 | 32206 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc | 32207 | wxMenuItem *result; |
ae8162c8 RD |
32208 | bool temp4 = false ; |
32209 | bool temp5 = false ; | |
d55e5bfc RD |
32210 | PyObject * obj0 = 0 ; |
32211 | PyObject * obj1 = 0 ; | |
32212 | PyObject * obj2 = 0 ; | |
32213 | PyObject * obj3 = 0 ; | |
32214 | PyObject * obj4 = 0 ; | |
32215 | PyObject * obj5 = 0 ; | |
32216 | char *kwnames[] = { | |
32217 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
32218 | }; | |
32219 | ||
32220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
32221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32223 | { | |
32224 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
32225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32226 | } | |
32227 | { | |
32228 | arg3 = (int)(SWIG_As_int(obj2)); | |
32229 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32230 | } | |
d55e5bfc RD |
32231 | { |
32232 | arg4 = wxString_in_helper(obj3); | |
32233 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32234 | temp4 = true; |
d55e5bfc RD |
32235 | } |
32236 | if (obj4) { | |
32237 | { | |
32238 | arg5 = wxString_in_helper(obj4); | |
32239 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 32240 | temp5 = true; |
d55e5bfc RD |
32241 | } |
32242 | } | |
32243 | if (obj5) { | |
093d3ff1 RD |
32244 | { |
32245 | arg6 = (wxItemKind)(SWIG_As_int(obj5)); | |
32246 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32247 | } | |
d55e5bfc RD |
32248 | } |
32249 | { | |
32250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32251 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
32252 | ||
32253 | wxPyEndAllowThreads(__tstate); | |
32254 | if (PyErr_Occurred()) SWIG_fail; | |
32255 | } | |
32256 | { | |
412d302d | 32257 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32258 | } |
32259 | { | |
32260 | if (temp4) | |
32261 | delete arg4; | |
32262 | } | |
32263 | { | |
32264 | if (temp5) | |
32265 | delete arg5; | |
32266 | } | |
32267 | return resultobj; | |
32268 | fail: | |
32269 | { | |
32270 | if (temp4) | |
32271 | delete arg4; | |
32272 | } | |
32273 | { | |
32274 | if (temp5) | |
32275 | delete arg5; | |
32276 | } | |
32277 | return NULL; | |
32278 | } | |
32279 | ||
32280 | ||
c32bde28 | 32281 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32282 | PyObject *resultobj; |
32283 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32284 | size_t arg2 ; | |
32285 | wxMenuItem *result; | |
32286 | PyObject * obj0 = 0 ; | |
32287 | PyObject * obj1 = 0 ; | |
32288 | char *kwnames[] = { | |
32289 | (char *) "self",(char *) "pos", NULL | |
32290 | }; | |
32291 | ||
32292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32295 | { | |
32296 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
32297 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32298 | } | |
d55e5bfc RD |
32299 | { |
32300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32301 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
32302 | ||
32303 | wxPyEndAllowThreads(__tstate); | |
32304 | if (PyErr_Occurred()) SWIG_fail; | |
32305 | } | |
32306 | { | |
412d302d | 32307 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32308 | } |
32309 | return resultobj; | |
32310 | fail: | |
32311 | return NULL; | |
32312 | } | |
32313 | ||
32314 | ||
c32bde28 | 32315 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32316 | PyObject *resultobj; |
32317 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32318 | size_t arg2 ; | |
32319 | int arg3 ; | |
32320 | wxString *arg4 = 0 ; | |
32321 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
32322 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
32323 | wxMenuItem *result; | |
ae8162c8 RD |
32324 | bool temp4 = false ; |
32325 | bool temp5 = false ; | |
d55e5bfc RD |
32326 | PyObject * obj0 = 0 ; |
32327 | PyObject * obj1 = 0 ; | |
32328 | PyObject * obj2 = 0 ; | |
32329 | PyObject * obj3 = 0 ; | |
32330 | PyObject * obj4 = 0 ; | |
32331 | char *kwnames[] = { | |
32332 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
32333 | }; | |
32334 | ||
32335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32338 | { | |
32339 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
32340 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32341 | } | |
32342 | { | |
32343 | arg3 = (int)(SWIG_As_int(obj2)); | |
32344 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32345 | } | |
d55e5bfc RD |
32346 | { |
32347 | arg4 = wxString_in_helper(obj3); | |
32348 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32349 | temp4 = true; |
d55e5bfc RD |
32350 | } |
32351 | if (obj4) { | |
32352 | { | |
32353 | arg5 = wxString_in_helper(obj4); | |
32354 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 32355 | temp5 = true; |
d55e5bfc RD |
32356 | } |
32357 | } | |
32358 | { | |
32359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32360 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
32361 | ||
32362 | wxPyEndAllowThreads(__tstate); | |
32363 | if (PyErr_Occurred()) SWIG_fail; | |
32364 | } | |
32365 | { | |
412d302d | 32366 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32367 | } |
32368 | { | |
32369 | if (temp4) | |
32370 | delete arg4; | |
32371 | } | |
32372 | { | |
32373 | if (temp5) | |
32374 | delete arg5; | |
32375 | } | |
32376 | return resultobj; | |
32377 | fail: | |
32378 | { | |
32379 | if (temp4) | |
32380 | delete arg4; | |
32381 | } | |
32382 | { | |
32383 | if (temp5) | |
32384 | delete arg5; | |
32385 | } | |
32386 | return NULL; | |
32387 | } | |
32388 | ||
32389 | ||
c32bde28 | 32390 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32391 | PyObject *resultobj; |
32392 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32393 | size_t arg2 ; | |
32394 | int arg3 ; | |
32395 | wxString *arg4 = 0 ; | |
32396 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
32397 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
32398 | wxMenuItem *result; | |
ae8162c8 RD |
32399 | bool temp4 = false ; |
32400 | bool temp5 = false ; | |
d55e5bfc RD |
32401 | PyObject * obj0 = 0 ; |
32402 | PyObject * obj1 = 0 ; | |
32403 | PyObject * obj2 = 0 ; | |
32404 | PyObject * obj3 = 0 ; | |
32405 | PyObject * obj4 = 0 ; | |
32406 | char *kwnames[] = { | |
32407 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
32408 | }; | |
32409 | ||
32410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32411 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32413 | { | |
32414 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
32415 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32416 | } | |
32417 | { | |
32418 | arg3 = (int)(SWIG_As_int(obj2)); | |
32419 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32420 | } | |
d55e5bfc RD |
32421 | { |
32422 | arg4 = wxString_in_helper(obj3); | |
32423 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32424 | temp4 = true; |
d55e5bfc RD |
32425 | } |
32426 | if (obj4) { | |
32427 | { | |
32428 | arg5 = wxString_in_helper(obj4); | |
32429 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 32430 | temp5 = true; |
d55e5bfc RD |
32431 | } |
32432 | } | |
32433 | { | |
32434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32435 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
32436 | ||
32437 | wxPyEndAllowThreads(__tstate); | |
32438 | if (PyErr_Occurred()) SWIG_fail; | |
32439 | } | |
32440 | { | |
412d302d | 32441 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32442 | } |
32443 | { | |
32444 | if (temp4) | |
32445 | delete arg4; | |
32446 | } | |
32447 | { | |
32448 | if (temp5) | |
32449 | delete arg5; | |
32450 | } | |
32451 | return resultobj; | |
32452 | fail: | |
32453 | { | |
32454 | if (temp4) | |
32455 | delete arg4; | |
32456 | } | |
32457 | { | |
32458 | if (temp5) | |
32459 | delete arg5; | |
32460 | } | |
32461 | return NULL; | |
32462 | } | |
32463 | ||
32464 | ||
c32bde28 | 32465 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32466 | PyObject *resultobj; |
32467 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32468 | size_t arg2 ; | |
32469 | int arg3 ; | |
32470 | wxString *arg4 = 0 ; | |
32471 | wxMenu *arg5 = (wxMenu *) 0 ; | |
32472 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
32473 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
32474 | wxMenuItem *result; | |
ae8162c8 RD |
32475 | bool temp4 = false ; |
32476 | bool temp6 = false ; | |
d55e5bfc RD |
32477 | PyObject * obj0 = 0 ; |
32478 | PyObject * obj1 = 0 ; | |
32479 | PyObject * obj2 = 0 ; | |
32480 | PyObject * obj3 = 0 ; | |
32481 | PyObject * obj4 = 0 ; | |
32482 | PyObject * obj5 = 0 ; | |
32483 | char *kwnames[] = { | |
32484 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
32485 | }; | |
32486 | ||
32487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
32488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32490 | { | |
32491 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
32492 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32493 | } | |
32494 | { | |
32495 | arg3 = (int)(SWIG_As_int(obj2)); | |
32496 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32497 | } | |
d55e5bfc RD |
32498 | { |
32499 | arg4 = wxString_in_helper(obj3); | |
32500 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32501 | temp4 = true; |
d55e5bfc | 32502 | } |
093d3ff1 RD |
32503 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32504 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
32505 | if (obj5) { |
32506 | { | |
32507 | arg6 = wxString_in_helper(obj5); | |
32508 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 32509 | temp6 = true; |
d55e5bfc RD |
32510 | } |
32511 | } | |
32512 | { | |
32513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32514 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
32515 | ||
32516 | wxPyEndAllowThreads(__tstate); | |
32517 | if (PyErr_Occurred()) SWIG_fail; | |
32518 | } | |
32519 | { | |
412d302d | 32520 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32521 | } |
32522 | { | |
32523 | if (temp4) | |
32524 | delete arg4; | |
32525 | } | |
32526 | { | |
32527 | if (temp6) | |
32528 | delete arg6; | |
32529 | } | |
32530 | return resultobj; | |
32531 | fail: | |
32532 | { | |
32533 | if (temp4) | |
32534 | delete arg4; | |
32535 | } | |
32536 | { | |
32537 | if (temp6) | |
32538 | delete arg6; | |
32539 | } | |
32540 | return NULL; | |
32541 | } | |
32542 | ||
32543 | ||
c32bde28 | 32544 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32545 | PyObject *resultobj; |
32546 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32547 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
32548 | wxMenuItem *result; | |
32549 | PyObject * obj0 = 0 ; | |
32550 | PyObject * obj1 = 0 ; | |
32551 | char *kwnames[] = { | |
32552 | (char *) "self",(char *) "item", NULL | |
32553 | }; | |
32554 | ||
32555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32558 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
32559 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32560 | { |
32561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32562 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
32563 | ||
32564 | wxPyEndAllowThreads(__tstate); | |
32565 | if (PyErr_Occurred()) SWIG_fail; | |
32566 | } | |
32567 | { | |
412d302d | 32568 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32569 | } |
32570 | return resultobj; | |
32571 | fail: | |
32572 | return NULL; | |
32573 | } | |
32574 | ||
32575 | ||
c32bde28 | 32576 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32577 | PyObject *resultobj; |
32578 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32579 | int arg2 ; | |
32580 | wxString *arg3 = 0 ; | |
32581 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32582 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 32583 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc | 32584 | wxMenuItem *result; |
ae8162c8 RD |
32585 | bool temp3 = false ; |
32586 | bool temp4 = false ; | |
d55e5bfc RD |
32587 | PyObject * obj0 = 0 ; |
32588 | PyObject * obj1 = 0 ; | |
32589 | PyObject * obj2 = 0 ; | |
32590 | PyObject * obj3 = 0 ; | |
32591 | PyObject * obj4 = 0 ; | |
32592 | char *kwnames[] = { | |
32593 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
32594 | }; | |
32595 | ||
32596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32599 | { | |
32600 | arg2 = (int)(SWIG_As_int(obj1)); | |
32601 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32602 | } | |
d55e5bfc RD |
32603 | { |
32604 | arg3 = wxString_in_helper(obj2); | |
32605 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32606 | temp3 = true; |
d55e5bfc RD |
32607 | } |
32608 | if (obj3) { | |
32609 | { | |
32610 | arg4 = wxString_in_helper(obj3); | |
32611 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32612 | temp4 = true; |
d55e5bfc RD |
32613 | } |
32614 | } | |
32615 | if (obj4) { | |
093d3ff1 RD |
32616 | { |
32617 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
32618 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32619 | } | |
d55e5bfc RD |
32620 | } |
32621 | { | |
32622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32623 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
32624 | ||
32625 | wxPyEndAllowThreads(__tstate); | |
32626 | if (PyErr_Occurred()) SWIG_fail; | |
32627 | } | |
32628 | { | |
412d302d | 32629 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32630 | } |
32631 | { | |
32632 | if (temp3) | |
32633 | delete arg3; | |
32634 | } | |
32635 | { | |
32636 | if (temp4) | |
32637 | delete arg4; | |
32638 | } | |
32639 | return resultobj; | |
32640 | fail: | |
32641 | { | |
32642 | if (temp3) | |
32643 | delete arg3; | |
32644 | } | |
32645 | { | |
32646 | if (temp4) | |
32647 | delete arg4; | |
32648 | } | |
32649 | return NULL; | |
32650 | } | |
32651 | ||
32652 | ||
c32bde28 | 32653 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32654 | PyObject *resultobj; |
32655 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32656 | wxMenuItem *result; | |
32657 | PyObject * obj0 = 0 ; | |
32658 | char *kwnames[] = { | |
32659 | (char *) "self", NULL | |
32660 | }; | |
32661 | ||
32662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32665 | { |
32666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32667 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
32668 | ||
32669 | wxPyEndAllowThreads(__tstate); | |
32670 | if (PyErr_Occurred()) SWIG_fail; | |
32671 | } | |
32672 | { | |
412d302d | 32673 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32674 | } |
32675 | return resultobj; | |
32676 | fail: | |
32677 | return NULL; | |
32678 | } | |
32679 | ||
32680 | ||
c32bde28 | 32681 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32682 | PyObject *resultobj; |
32683 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32684 | int arg2 ; | |
32685 | wxString *arg3 = 0 ; | |
32686 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32687 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32688 | wxMenuItem *result; | |
ae8162c8 RD |
32689 | bool temp3 = false ; |
32690 | bool temp4 = false ; | |
d55e5bfc RD |
32691 | PyObject * obj0 = 0 ; |
32692 | PyObject * obj1 = 0 ; | |
32693 | PyObject * obj2 = 0 ; | |
32694 | PyObject * obj3 = 0 ; | |
32695 | char *kwnames[] = { | |
32696 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
32697 | }; | |
32698 | ||
32699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
32700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32702 | { | |
32703 | arg2 = (int)(SWIG_As_int(obj1)); | |
32704 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32705 | } | |
d55e5bfc RD |
32706 | { |
32707 | arg3 = wxString_in_helper(obj2); | |
32708 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32709 | temp3 = true; |
d55e5bfc RD |
32710 | } |
32711 | if (obj3) { | |
32712 | { | |
32713 | arg4 = wxString_in_helper(obj3); | |
32714 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32715 | temp4 = true; |
d55e5bfc RD |
32716 | } |
32717 | } | |
32718 | { | |
32719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32720 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
32721 | ||
32722 | wxPyEndAllowThreads(__tstate); | |
32723 | if (PyErr_Occurred()) SWIG_fail; | |
32724 | } | |
32725 | { | |
412d302d | 32726 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32727 | } |
32728 | { | |
32729 | if (temp3) | |
32730 | delete arg3; | |
32731 | } | |
32732 | { | |
32733 | if (temp4) | |
32734 | delete arg4; | |
32735 | } | |
32736 | return resultobj; | |
32737 | fail: | |
32738 | { | |
32739 | if (temp3) | |
32740 | delete arg3; | |
32741 | } | |
32742 | { | |
32743 | if (temp4) | |
32744 | delete arg4; | |
32745 | } | |
32746 | return NULL; | |
32747 | } | |
32748 | ||
32749 | ||
c32bde28 | 32750 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32751 | PyObject *resultobj; |
32752 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32753 | int arg2 ; | |
32754 | wxString *arg3 = 0 ; | |
32755 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32756 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32757 | wxMenuItem *result; | |
ae8162c8 RD |
32758 | bool temp3 = false ; |
32759 | bool temp4 = false ; | |
d55e5bfc RD |
32760 | PyObject * obj0 = 0 ; |
32761 | PyObject * obj1 = 0 ; | |
32762 | PyObject * obj2 = 0 ; | |
32763 | PyObject * obj3 = 0 ; | |
32764 | char *kwnames[] = { | |
32765 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
32766 | }; | |
32767 | ||
32768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
32769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32771 | { | |
32772 | arg2 = (int)(SWIG_As_int(obj1)); | |
32773 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32774 | } | |
d55e5bfc RD |
32775 | { |
32776 | arg3 = wxString_in_helper(obj2); | |
32777 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32778 | temp3 = true; |
d55e5bfc RD |
32779 | } |
32780 | if (obj3) { | |
32781 | { | |
32782 | arg4 = wxString_in_helper(obj3); | |
32783 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32784 | temp4 = true; |
d55e5bfc RD |
32785 | } |
32786 | } | |
32787 | { | |
32788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32789 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
32790 | ||
32791 | wxPyEndAllowThreads(__tstate); | |
32792 | if (PyErr_Occurred()) SWIG_fail; | |
32793 | } | |
32794 | { | |
412d302d | 32795 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32796 | } |
32797 | { | |
32798 | if (temp3) | |
32799 | delete arg3; | |
32800 | } | |
32801 | { | |
32802 | if (temp4) | |
32803 | delete arg4; | |
32804 | } | |
32805 | return resultobj; | |
32806 | fail: | |
32807 | { | |
32808 | if (temp3) | |
32809 | delete arg3; | |
32810 | } | |
32811 | { | |
32812 | if (temp4) | |
32813 | delete arg4; | |
32814 | } | |
32815 | return NULL; | |
32816 | } | |
32817 | ||
32818 | ||
c32bde28 | 32819 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32820 | PyObject *resultobj; |
32821 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32822 | int arg2 ; | |
32823 | wxString *arg3 = 0 ; | |
32824 | wxMenu *arg4 = (wxMenu *) 0 ; | |
32825 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
32826 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
32827 | wxMenuItem *result; | |
ae8162c8 RD |
32828 | bool temp3 = false ; |
32829 | bool temp5 = false ; | |
d55e5bfc RD |
32830 | PyObject * obj0 = 0 ; |
32831 | PyObject * obj1 = 0 ; | |
32832 | PyObject * obj2 = 0 ; | |
32833 | PyObject * obj3 = 0 ; | |
32834 | PyObject * obj4 = 0 ; | |
32835 | char *kwnames[] = { | |
32836 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
32837 | }; | |
32838 | ||
32839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32840 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32841 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32842 | { | |
32843 | arg2 = (int)(SWIG_As_int(obj1)); | |
32844 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32845 | } | |
d55e5bfc RD |
32846 | { |
32847 | arg3 = wxString_in_helper(obj2); | |
32848 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32849 | temp3 = true; |
d55e5bfc | 32850 | } |
093d3ff1 RD |
32851 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32852 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
32853 | if (obj4) { |
32854 | { | |
32855 | arg5 = wxString_in_helper(obj4); | |
32856 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 32857 | temp5 = true; |
d55e5bfc RD |
32858 | } |
32859 | } | |
32860 | { | |
32861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32862 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
32863 | ||
32864 | wxPyEndAllowThreads(__tstate); | |
32865 | if (PyErr_Occurred()) SWIG_fail; | |
32866 | } | |
32867 | { | |
412d302d | 32868 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32869 | } |
32870 | { | |
32871 | if (temp3) | |
32872 | delete arg3; | |
32873 | } | |
32874 | { | |
32875 | if (temp5) | |
32876 | delete arg5; | |
32877 | } | |
32878 | return resultobj; | |
32879 | fail: | |
32880 | { | |
32881 | if (temp3) | |
32882 | delete arg3; | |
32883 | } | |
32884 | { | |
32885 | if (temp5) | |
32886 | delete arg5; | |
32887 | } | |
32888 | return NULL; | |
32889 | } | |
32890 | ||
32891 | ||
c32bde28 | 32892 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32893 | PyObject *resultobj; |
32894 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32895 | int arg2 ; | |
32896 | wxMenuItem *result; | |
32897 | PyObject * obj0 = 0 ; | |
32898 | PyObject * obj1 = 0 ; | |
32899 | char *kwnames[] = { | |
32900 | (char *) "self",(char *) "id", NULL | |
32901 | }; | |
32902 | ||
32903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32906 | { | |
32907 | arg2 = (int)(SWIG_As_int(obj1)); | |
32908 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32909 | } | |
d55e5bfc RD |
32910 | { |
32911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32912 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
32913 | ||
32914 | wxPyEndAllowThreads(__tstate); | |
32915 | if (PyErr_Occurred()) SWIG_fail; | |
32916 | } | |
32917 | { | |
412d302d | 32918 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32919 | } |
32920 | return resultobj; | |
32921 | fail: | |
32922 | return NULL; | |
32923 | } | |
32924 | ||
32925 | ||
c32bde28 | 32926 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32927 | PyObject *resultobj; |
32928 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32929 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
32930 | wxMenuItem *result; | |
32931 | PyObject * obj0 = 0 ; | |
32932 | PyObject * obj1 = 0 ; | |
32933 | char *kwnames[] = { | |
32934 | (char *) "self",(char *) "item", NULL | |
32935 | }; | |
32936 | ||
32937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32940 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
32941 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32942 | { |
32943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32944 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
32945 | ||
32946 | wxPyEndAllowThreads(__tstate); | |
32947 | if (PyErr_Occurred()) SWIG_fail; | |
32948 | } | |
32949 | { | |
412d302d | 32950 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32951 | } |
32952 | return resultobj; | |
32953 | fail: | |
32954 | return NULL; | |
32955 | } | |
32956 | ||
32957 | ||
c32bde28 | 32958 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32959 | PyObject *resultobj; |
32960 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32961 | int arg2 ; | |
32962 | bool result; | |
32963 | PyObject * obj0 = 0 ; | |
32964 | PyObject * obj1 = 0 ; | |
32965 | char *kwnames[] = { | |
32966 | (char *) "self",(char *) "id", NULL | |
32967 | }; | |
32968 | ||
32969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32972 | { | |
32973 | arg2 = (int)(SWIG_As_int(obj1)); | |
32974 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32975 | } | |
d55e5bfc RD |
32976 | { |
32977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32978 | result = (bool)(arg1)->Delete(arg2); | |
32979 | ||
32980 | wxPyEndAllowThreads(__tstate); | |
32981 | if (PyErr_Occurred()) SWIG_fail; | |
32982 | } | |
32983 | { | |
32984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32985 | } | |
32986 | return resultobj; | |
32987 | fail: | |
32988 | return NULL; | |
32989 | } | |
32990 | ||
32991 | ||
c32bde28 | 32992 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32993 | PyObject *resultobj; |
32994 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32995 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
32996 | bool result; | |
32997 | PyObject * obj0 = 0 ; | |
32998 | PyObject * obj1 = 0 ; | |
32999 | char *kwnames[] = { | |
33000 | (char *) "self",(char *) "item", NULL | |
33001 | }; | |
33002 | ||
33003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33006 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33007 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33008 | { |
33009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33010 | result = (bool)(arg1)->Delete(arg2); | |
33011 | ||
33012 | wxPyEndAllowThreads(__tstate); | |
33013 | if (PyErr_Occurred()) SWIG_fail; | |
33014 | } | |
33015 | { | |
33016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33017 | } | |
33018 | return resultobj; | |
33019 | fail: | |
33020 | return NULL; | |
33021 | } | |
33022 | ||
33023 | ||
c32bde28 | 33024 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33025 | PyObject *resultobj; |
33026 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33027 | PyObject * obj0 = 0 ; | |
33028 | char *kwnames[] = { | |
33029 | (char *) "self", NULL | |
33030 | }; | |
33031 | ||
33032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33035 | { |
33036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33037 | wxMenu_Destroy(arg1); | |
33038 | ||
33039 | wxPyEndAllowThreads(__tstate); | |
33040 | if (PyErr_Occurred()) SWIG_fail; | |
33041 | } | |
33042 | Py_INCREF(Py_None); resultobj = Py_None; | |
33043 | return resultobj; | |
33044 | fail: | |
33045 | return NULL; | |
33046 | } | |
33047 | ||
33048 | ||
c32bde28 | 33049 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33050 | PyObject *resultobj; |
33051 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33052 | int arg2 ; | |
33053 | bool result; | |
33054 | PyObject * obj0 = 0 ; | |
33055 | PyObject * obj1 = 0 ; | |
33056 | char *kwnames[] = { | |
33057 | (char *) "self",(char *) "id", NULL | |
33058 | }; | |
33059 | ||
33060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33063 | { | |
33064 | arg2 = (int)(SWIG_As_int(obj1)); | |
33065 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33066 | } | |
d55e5bfc RD |
33067 | { |
33068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33069 | result = (bool)(arg1)->Destroy(arg2); | |
33070 | ||
33071 | wxPyEndAllowThreads(__tstate); | |
33072 | if (PyErr_Occurred()) SWIG_fail; | |
33073 | } | |
33074 | { | |
33075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33076 | } | |
33077 | return resultobj; | |
33078 | fail: | |
33079 | return NULL; | |
33080 | } | |
33081 | ||
33082 | ||
c32bde28 | 33083 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33084 | PyObject *resultobj; |
33085 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33086 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
33087 | bool result; | |
33088 | PyObject * obj0 = 0 ; | |
33089 | PyObject * obj1 = 0 ; | |
33090 | char *kwnames[] = { | |
33091 | (char *) "self",(char *) "item", NULL | |
33092 | }; | |
33093 | ||
33094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33097 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33098 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33099 | { |
33100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33101 | result = (bool)(arg1)->Destroy(arg2); | |
33102 | ||
33103 | wxPyEndAllowThreads(__tstate); | |
33104 | if (PyErr_Occurred()) SWIG_fail; | |
33105 | } | |
33106 | { | |
33107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33108 | } | |
33109 | return resultobj; | |
33110 | fail: | |
33111 | return NULL; | |
33112 | } | |
33113 | ||
33114 | ||
c32bde28 | 33115 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33116 | PyObject *resultobj; |
33117 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33118 | size_t result; | |
33119 | PyObject * obj0 = 0 ; | |
33120 | char *kwnames[] = { | |
33121 | (char *) "self", NULL | |
33122 | }; | |
33123 | ||
33124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33127 | { |
33128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33129 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
33130 | ||
33131 | wxPyEndAllowThreads(__tstate); | |
33132 | if (PyErr_Occurred()) SWIG_fail; | |
33133 | } | |
093d3ff1 RD |
33134 | { |
33135 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
33136 | } | |
d55e5bfc RD |
33137 | return resultobj; |
33138 | fail: | |
33139 | return NULL; | |
33140 | } | |
33141 | ||
33142 | ||
c32bde28 | 33143 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33144 | PyObject *resultobj; |
33145 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33146 | PyObject *result; | |
33147 | PyObject * obj0 = 0 ; | |
33148 | char *kwnames[] = { | |
33149 | (char *) "self", NULL | |
33150 | }; | |
33151 | ||
33152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33155 | { |
33156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33157 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
33158 | ||
33159 | wxPyEndAllowThreads(__tstate); | |
33160 | if (PyErr_Occurred()) SWIG_fail; | |
33161 | } | |
33162 | resultobj = result; | |
33163 | return resultobj; | |
33164 | fail: | |
33165 | return NULL; | |
33166 | } | |
33167 | ||
33168 | ||
c32bde28 | 33169 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33170 | PyObject *resultobj; |
33171 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33172 | wxString *arg2 = 0 ; | |
33173 | int result; | |
ae8162c8 | 33174 | bool temp2 = false ; |
d55e5bfc RD |
33175 | PyObject * obj0 = 0 ; |
33176 | PyObject * obj1 = 0 ; | |
33177 | char *kwnames[] = { | |
33178 | (char *) "self",(char *) "item", NULL | |
33179 | }; | |
33180 | ||
33181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33184 | { |
33185 | arg2 = wxString_in_helper(obj1); | |
33186 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33187 | temp2 = true; |
d55e5bfc RD |
33188 | } |
33189 | { | |
33190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33191 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
33192 | ||
33193 | wxPyEndAllowThreads(__tstate); | |
33194 | if (PyErr_Occurred()) SWIG_fail; | |
33195 | } | |
093d3ff1 RD |
33196 | { |
33197 | resultobj = SWIG_From_int((int)(result)); | |
33198 | } | |
d55e5bfc RD |
33199 | { |
33200 | if (temp2) | |
33201 | delete arg2; | |
33202 | } | |
33203 | return resultobj; | |
33204 | fail: | |
33205 | { | |
33206 | if (temp2) | |
33207 | delete arg2; | |
33208 | } | |
33209 | return NULL; | |
33210 | } | |
33211 | ||
33212 | ||
c32bde28 | 33213 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33214 | PyObject *resultobj; |
33215 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33216 | int arg2 ; | |
33217 | wxMenuItem *result; | |
33218 | PyObject * obj0 = 0 ; | |
33219 | PyObject * obj1 = 0 ; | |
33220 | char *kwnames[] = { | |
33221 | (char *) "self",(char *) "id", NULL | |
33222 | }; | |
33223 | ||
33224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33227 | { | |
33228 | arg2 = (int)(SWIG_As_int(obj1)); | |
33229 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33230 | } | |
d55e5bfc RD |
33231 | { |
33232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33233 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
33234 | ||
33235 | wxPyEndAllowThreads(__tstate); | |
33236 | if (PyErr_Occurred()) SWIG_fail; | |
33237 | } | |
33238 | { | |
412d302d | 33239 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33240 | } |
33241 | return resultobj; | |
33242 | fail: | |
33243 | return NULL; | |
33244 | } | |
33245 | ||
33246 | ||
c32bde28 | 33247 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33248 | PyObject *resultobj; |
33249 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33250 | size_t arg2 ; | |
33251 | wxMenuItem *result; | |
33252 | PyObject * obj0 = 0 ; | |
33253 | PyObject * obj1 = 0 ; | |
33254 | char *kwnames[] = { | |
33255 | (char *) "self",(char *) "position", NULL | |
33256 | }; | |
33257 | ||
33258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33261 | { | |
33262 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33263 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33264 | } | |
d55e5bfc RD |
33265 | { |
33266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33267 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
33268 | ||
33269 | wxPyEndAllowThreads(__tstate); | |
33270 | if (PyErr_Occurred()) SWIG_fail; | |
33271 | } | |
33272 | { | |
412d302d | 33273 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33274 | } |
33275 | return resultobj; | |
33276 | fail: | |
33277 | return NULL; | |
33278 | } | |
33279 | ||
33280 | ||
c32bde28 | 33281 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33282 | PyObject *resultobj; |
33283 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33284 | int arg2 ; | |
33285 | bool arg3 ; | |
33286 | PyObject * obj0 = 0 ; | |
33287 | PyObject * obj1 = 0 ; | |
33288 | PyObject * obj2 = 0 ; | |
33289 | char *kwnames[] = { | |
33290 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
33291 | }; | |
33292 | ||
33293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33296 | { | |
33297 | arg2 = (int)(SWIG_As_int(obj1)); | |
33298 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33299 | } | |
33300 | { | |
33301 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
33302 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33303 | } | |
d55e5bfc RD |
33304 | { |
33305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33306 | (arg1)->Enable(arg2,arg3); | |
33307 | ||
33308 | wxPyEndAllowThreads(__tstate); | |
33309 | if (PyErr_Occurred()) SWIG_fail; | |
33310 | } | |
33311 | Py_INCREF(Py_None); resultobj = Py_None; | |
33312 | return resultobj; | |
33313 | fail: | |
33314 | return NULL; | |
33315 | } | |
33316 | ||
33317 | ||
c32bde28 | 33318 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33319 | PyObject *resultobj; |
33320 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33321 | int arg2 ; | |
33322 | bool result; | |
33323 | PyObject * obj0 = 0 ; | |
33324 | PyObject * obj1 = 0 ; | |
33325 | char *kwnames[] = { | |
33326 | (char *) "self",(char *) "id", NULL | |
33327 | }; | |
33328 | ||
33329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33332 | { | |
33333 | arg2 = (int)(SWIG_As_int(obj1)); | |
33334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33335 | } | |
d55e5bfc RD |
33336 | { |
33337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33338 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
33339 | ||
33340 | wxPyEndAllowThreads(__tstate); | |
33341 | if (PyErr_Occurred()) SWIG_fail; | |
33342 | } | |
33343 | { | |
33344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33345 | } | |
33346 | return resultobj; | |
33347 | fail: | |
33348 | return NULL; | |
33349 | } | |
33350 | ||
33351 | ||
c32bde28 | 33352 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33353 | PyObject *resultobj; |
33354 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33355 | int arg2 ; | |
33356 | bool arg3 ; | |
33357 | PyObject * obj0 = 0 ; | |
33358 | PyObject * obj1 = 0 ; | |
33359 | PyObject * obj2 = 0 ; | |
33360 | char *kwnames[] = { | |
33361 | (char *) "self",(char *) "id",(char *) "check", NULL | |
33362 | }; | |
33363 | ||
33364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33367 | { | |
33368 | arg2 = (int)(SWIG_As_int(obj1)); | |
33369 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33370 | } | |
33371 | { | |
33372 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
33373 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33374 | } | |
d55e5bfc RD |
33375 | { |
33376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33377 | (arg1)->Check(arg2,arg3); | |
33378 | ||
33379 | wxPyEndAllowThreads(__tstate); | |
33380 | if (PyErr_Occurred()) SWIG_fail; | |
33381 | } | |
33382 | Py_INCREF(Py_None); resultobj = Py_None; | |
33383 | return resultobj; | |
33384 | fail: | |
33385 | return NULL; | |
33386 | } | |
33387 | ||
33388 | ||
c32bde28 | 33389 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33390 | PyObject *resultobj; |
33391 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33392 | int arg2 ; | |
33393 | bool result; | |
33394 | PyObject * obj0 = 0 ; | |
33395 | PyObject * obj1 = 0 ; | |
33396 | char *kwnames[] = { | |
33397 | (char *) "self",(char *) "id", NULL | |
33398 | }; | |
33399 | ||
33400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33403 | { | |
33404 | arg2 = (int)(SWIG_As_int(obj1)); | |
33405 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33406 | } | |
d55e5bfc RD |
33407 | { |
33408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33409 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
33410 | ||
33411 | wxPyEndAllowThreads(__tstate); | |
33412 | if (PyErr_Occurred()) SWIG_fail; | |
33413 | } | |
33414 | { | |
33415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33416 | } | |
33417 | return resultobj; | |
33418 | fail: | |
33419 | return NULL; | |
33420 | } | |
33421 | ||
33422 | ||
c32bde28 | 33423 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33424 | PyObject *resultobj; |
33425 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33426 | int arg2 ; | |
33427 | wxString *arg3 = 0 ; | |
ae8162c8 | 33428 | bool temp3 = false ; |
d55e5bfc RD |
33429 | PyObject * obj0 = 0 ; |
33430 | PyObject * obj1 = 0 ; | |
33431 | PyObject * obj2 = 0 ; | |
33432 | char *kwnames[] = { | |
33433 | (char *) "self",(char *) "id",(char *) "label", NULL | |
33434 | }; | |
33435 | ||
33436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33439 | { | |
33440 | arg2 = (int)(SWIG_As_int(obj1)); | |
33441 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33442 | } | |
d55e5bfc RD |
33443 | { |
33444 | arg3 = wxString_in_helper(obj2); | |
33445 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33446 | temp3 = true; |
d55e5bfc RD |
33447 | } |
33448 | { | |
33449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33450 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
33451 | ||
33452 | wxPyEndAllowThreads(__tstate); | |
33453 | if (PyErr_Occurred()) SWIG_fail; | |
33454 | } | |
33455 | Py_INCREF(Py_None); resultobj = Py_None; | |
33456 | { | |
33457 | if (temp3) | |
33458 | delete arg3; | |
33459 | } | |
33460 | return resultobj; | |
33461 | fail: | |
33462 | { | |
33463 | if (temp3) | |
33464 | delete arg3; | |
33465 | } | |
33466 | return NULL; | |
33467 | } | |
33468 | ||
33469 | ||
c32bde28 | 33470 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33471 | PyObject *resultobj; |
33472 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33473 | int arg2 ; | |
33474 | wxString result; | |
33475 | PyObject * obj0 = 0 ; | |
33476 | PyObject * obj1 = 0 ; | |
33477 | char *kwnames[] = { | |
33478 | (char *) "self",(char *) "id", NULL | |
33479 | }; | |
33480 | ||
33481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33484 | { | |
33485 | arg2 = (int)(SWIG_As_int(obj1)); | |
33486 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33487 | } | |
d55e5bfc RD |
33488 | { |
33489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33490 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
33491 | ||
33492 | wxPyEndAllowThreads(__tstate); | |
33493 | if (PyErr_Occurred()) SWIG_fail; | |
33494 | } | |
33495 | { | |
33496 | #if wxUSE_UNICODE | |
33497 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33498 | #else | |
33499 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33500 | #endif | |
33501 | } | |
33502 | return resultobj; | |
33503 | fail: | |
33504 | return NULL; | |
33505 | } | |
33506 | ||
33507 | ||
c32bde28 | 33508 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33509 | PyObject *resultobj; |
33510 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33511 | int arg2 ; | |
33512 | wxString *arg3 = 0 ; | |
ae8162c8 | 33513 | bool temp3 = false ; |
d55e5bfc RD |
33514 | PyObject * obj0 = 0 ; |
33515 | PyObject * obj1 = 0 ; | |
33516 | PyObject * obj2 = 0 ; | |
33517 | char *kwnames[] = { | |
33518 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
33519 | }; | |
33520 | ||
33521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33524 | { | |
33525 | arg2 = (int)(SWIG_As_int(obj1)); | |
33526 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33527 | } | |
d55e5bfc RD |
33528 | { |
33529 | arg3 = wxString_in_helper(obj2); | |
33530 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33531 | temp3 = true; |
d55e5bfc RD |
33532 | } |
33533 | { | |
33534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33535 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
33536 | ||
33537 | wxPyEndAllowThreads(__tstate); | |
33538 | if (PyErr_Occurred()) SWIG_fail; | |
33539 | } | |
33540 | Py_INCREF(Py_None); resultobj = Py_None; | |
33541 | { | |
33542 | if (temp3) | |
33543 | delete arg3; | |
33544 | } | |
33545 | return resultobj; | |
33546 | fail: | |
33547 | { | |
33548 | if (temp3) | |
33549 | delete arg3; | |
33550 | } | |
33551 | return NULL; | |
33552 | } | |
33553 | ||
33554 | ||
c32bde28 | 33555 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33556 | PyObject *resultobj; |
33557 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33558 | int arg2 ; | |
33559 | wxString result; | |
33560 | PyObject * obj0 = 0 ; | |
33561 | PyObject * obj1 = 0 ; | |
33562 | char *kwnames[] = { | |
33563 | (char *) "self",(char *) "id", NULL | |
33564 | }; | |
33565 | ||
33566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33569 | { | |
33570 | arg2 = (int)(SWIG_As_int(obj1)); | |
33571 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33572 | } | |
d55e5bfc RD |
33573 | { |
33574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33575 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
33576 | ||
33577 | wxPyEndAllowThreads(__tstate); | |
33578 | if (PyErr_Occurred()) SWIG_fail; | |
33579 | } | |
33580 | { | |
33581 | #if wxUSE_UNICODE | |
33582 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33583 | #else | |
33584 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33585 | #endif | |
33586 | } | |
33587 | return resultobj; | |
33588 | fail: | |
33589 | return NULL; | |
33590 | } | |
33591 | ||
33592 | ||
c32bde28 | 33593 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33594 | PyObject *resultobj; |
33595 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33596 | wxString *arg2 = 0 ; | |
ae8162c8 | 33597 | bool temp2 = false ; |
d55e5bfc RD |
33598 | PyObject * obj0 = 0 ; |
33599 | PyObject * obj1 = 0 ; | |
33600 | char *kwnames[] = { | |
33601 | (char *) "self",(char *) "title", NULL | |
33602 | }; | |
33603 | ||
33604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33607 | { |
33608 | arg2 = wxString_in_helper(obj1); | |
33609 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33610 | temp2 = true; |
d55e5bfc RD |
33611 | } |
33612 | { | |
33613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33614 | (arg1)->SetTitle((wxString const &)*arg2); | |
33615 | ||
33616 | wxPyEndAllowThreads(__tstate); | |
33617 | if (PyErr_Occurred()) SWIG_fail; | |
33618 | } | |
33619 | Py_INCREF(Py_None); resultobj = Py_None; | |
33620 | { | |
33621 | if (temp2) | |
33622 | delete arg2; | |
33623 | } | |
33624 | return resultobj; | |
33625 | fail: | |
33626 | { | |
33627 | if (temp2) | |
33628 | delete arg2; | |
33629 | } | |
33630 | return NULL; | |
33631 | } | |
33632 | ||
33633 | ||
c32bde28 | 33634 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33635 | PyObject *resultobj; |
33636 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33637 | wxString result; | |
33638 | PyObject * obj0 = 0 ; | |
33639 | char *kwnames[] = { | |
33640 | (char *) "self", NULL | |
33641 | }; | |
33642 | ||
33643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33646 | { |
33647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33648 | result = ((wxMenu const *)arg1)->GetTitle(); | |
33649 | ||
33650 | wxPyEndAllowThreads(__tstate); | |
33651 | if (PyErr_Occurred()) SWIG_fail; | |
33652 | } | |
33653 | { | |
33654 | #if wxUSE_UNICODE | |
33655 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33656 | #else | |
33657 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33658 | #endif | |
33659 | } | |
33660 | return resultobj; | |
33661 | fail: | |
33662 | return NULL; | |
33663 | } | |
33664 | ||
33665 | ||
c32bde28 | 33666 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33667 | PyObject *resultobj; |
33668 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33669 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
33670 | PyObject * obj0 = 0 ; | |
33671 | PyObject * obj1 = 0 ; | |
33672 | char *kwnames[] = { | |
33673 | (char *) "self",(char *) "handler", NULL | |
33674 | }; | |
33675 | ||
33676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33679 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
33680 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33681 | { |
33682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33683 | (arg1)->SetEventHandler(arg2); | |
33684 | ||
33685 | wxPyEndAllowThreads(__tstate); | |
33686 | if (PyErr_Occurred()) SWIG_fail; | |
33687 | } | |
33688 | Py_INCREF(Py_None); resultobj = Py_None; | |
33689 | return resultobj; | |
33690 | fail: | |
33691 | return NULL; | |
33692 | } | |
33693 | ||
33694 | ||
c32bde28 | 33695 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33696 | PyObject *resultobj; |
33697 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33698 | wxEvtHandler *result; | |
33699 | PyObject * obj0 = 0 ; | |
33700 | char *kwnames[] = { | |
33701 | (char *) "self", NULL | |
33702 | }; | |
33703 | ||
33704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33707 | { |
33708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33709 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
33710 | ||
33711 | wxPyEndAllowThreads(__tstate); | |
33712 | if (PyErr_Occurred()) SWIG_fail; | |
33713 | } | |
33714 | { | |
412d302d | 33715 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33716 | } |
33717 | return resultobj; | |
33718 | fail: | |
33719 | return NULL; | |
33720 | } | |
33721 | ||
33722 | ||
c32bde28 | 33723 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33724 | PyObject *resultobj; |
33725 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33726 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33727 | PyObject * obj0 = 0 ; | |
33728 | PyObject * obj1 = 0 ; | |
33729 | char *kwnames[] = { | |
33730 | (char *) "self",(char *) "win", NULL | |
33731 | }; | |
33732 | ||
33733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33736 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33737 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33738 | { |
33739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33740 | (arg1)->SetInvokingWindow(arg2); | |
33741 | ||
33742 | wxPyEndAllowThreads(__tstate); | |
33743 | if (PyErr_Occurred()) SWIG_fail; | |
33744 | } | |
33745 | Py_INCREF(Py_None); resultobj = Py_None; | |
33746 | return resultobj; | |
33747 | fail: | |
33748 | return NULL; | |
33749 | } | |
33750 | ||
33751 | ||
c32bde28 | 33752 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33753 | PyObject *resultobj; |
33754 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33755 | wxWindow *result; | |
33756 | PyObject * obj0 = 0 ; | |
33757 | char *kwnames[] = { | |
33758 | (char *) "self", NULL | |
33759 | }; | |
33760 | ||
33761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33764 | { |
33765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33766 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
33767 | ||
33768 | wxPyEndAllowThreads(__tstate); | |
33769 | if (PyErr_Occurred()) SWIG_fail; | |
33770 | } | |
33771 | { | |
412d302d | 33772 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33773 | } |
33774 | return resultobj; | |
33775 | fail: | |
33776 | return NULL; | |
33777 | } | |
33778 | ||
33779 | ||
c32bde28 | 33780 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33781 | PyObject *resultobj; |
33782 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33783 | long result; | |
33784 | PyObject * obj0 = 0 ; | |
33785 | char *kwnames[] = { | |
33786 | (char *) "self", NULL | |
33787 | }; | |
33788 | ||
33789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33792 | { |
33793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33794 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
33795 | ||
33796 | wxPyEndAllowThreads(__tstate); | |
33797 | if (PyErr_Occurred()) SWIG_fail; | |
33798 | } | |
093d3ff1 RD |
33799 | { |
33800 | resultobj = SWIG_From_long((long)(result)); | |
33801 | } | |
d55e5bfc RD |
33802 | return resultobj; |
33803 | fail: | |
33804 | return NULL; | |
33805 | } | |
33806 | ||
33807 | ||
c32bde28 | 33808 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33809 | PyObject *resultobj; |
33810 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33811 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
33812 | PyObject * obj0 = 0 ; | |
33813 | PyObject * obj1 = 0 ; | |
33814 | char *kwnames[] = { | |
33815 | (char *) "self",(char *) "source", NULL | |
33816 | }; | |
33817 | ||
33818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",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; | |
d55e5bfc | 33821 | if (obj1) { |
093d3ff1 RD |
33822 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
33823 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33824 | } |
33825 | { | |
33826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33827 | (arg1)->UpdateUI(arg2); | |
33828 | ||
33829 | wxPyEndAllowThreads(__tstate); | |
33830 | if (PyErr_Occurred()) SWIG_fail; | |
33831 | } | |
33832 | Py_INCREF(Py_None); resultobj = Py_None; | |
33833 | return resultobj; | |
33834 | fail: | |
33835 | return NULL; | |
33836 | } | |
33837 | ||
33838 | ||
c32bde28 | 33839 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33840 | PyObject *resultobj; |
33841 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33842 | wxMenuBar *result; | |
33843 | PyObject * obj0 = 0 ; | |
33844 | char *kwnames[] = { | |
33845 | (char *) "self", NULL | |
33846 | }; | |
33847 | ||
33848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33851 | { |
33852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33853 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
33854 | ||
33855 | wxPyEndAllowThreads(__tstate); | |
33856 | if (PyErr_Occurred()) SWIG_fail; | |
33857 | } | |
33858 | { | |
412d302d | 33859 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33860 | } |
33861 | return resultobj; | |
33862 | fail: | |
33863 | return NULL; | |
33864 | } | |
33865 | ||
33866 | ||
c32bde28 | 33867 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33868 | PyObject *resultobj; |
33869 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33870 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
33871 | PyObject * obj0 = 0 ; | |
33872 | PyObject * obj1 = 0 ; | |
33873 | char *kwnames[] = { | |
33874 | (char *) "self",(char *) "menubar", NULL | |
33875 | }; | |
33876 | ||
33877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33880 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuBarBase, SWIG_POINTER_EXCEPTION | 0); | |
33881 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33882 | { |
33883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33884 | (arg1)->Attach(arg2); | |
33885 | ||
33886 | wxPyEndAllowThreads(__tstate); | |
33887 | if (PyErr_Occurred()) SWIG_fail; | |
33888 | } | |
33889 | Py_INCREF(Py_None); resultobj = Py_None; | |
33890 | return resultobj; | |
33891 | fail: | |
33892 | return NULL; | |
33893 | } | |
33894 | ||
33895 | ||
c32bde28 | 33896 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33897 | PyObject *resultobj; |
33898 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33899 | PyObject * obj0 = 0 ; | |
33900 | char *kwnames[] = { | |
33901 | (char *) "self", NULL | |
33902 | }; | |
33903 | ||
33904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33907 | { |
33908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33909 | (arg1)->Detach(); | |
33910 | ||
33911 | wxPyEndAllowThreads(__tstate); | |
33912 | if (PyErr_Occurred()) SWIG_fail; | |
33913 | } | |
33914 | Py_INCREF(Py_None); resultobj = Py_None; | |
33915 | return resultobj; | |
33916 | fail: | |
33917 | return NULL; | |
33918 | } | |
33919 | ||
33920 | ||
c32bde28 | 33921 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33922 | PyObject *resultobj; |
33923 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33924 | bool result; | |
33925 | PyObject * obj0 = 0 ; | |
33926 | char *kwnames[] = { | |
33927 | (char *) "self", NULL | |
33928 | }; | |
33929 | ||
33930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33933 | { |
33934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33935 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
33936 | ||
33937 | wxPyEndAllowThreads(__tstate); | |
33938 | if (PyErr_Occurred()) SWIG_fail; | |
33939 | } | |
33940 | { | |
33941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33942 | } | |
33943 | return resultobj; | |
33944 | fail: | |
33945 | return NULL; | |
33946 | } | |
33947 | ||
33948 | ||
c32bde28 | 33949 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33950 | PyObject *resultobj; |
33951 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33952 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33953 | PyObject * obj0 = 0 ; | |
33954 | PyObject * obj1 = 0 ; | |
33955 | char *kwnames[] = { | |
33956 | (char *) "self",(char *) "parent", NULL | |
33957 | }; | |
33958 | ||
33959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33962 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
33963 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33964 | { |
33965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33966 | (arg1)->SetParent(arg2); | |
33967 | ||
33968 | wxPyEndAllowThreads(__tstate); | |
33969 | if (PyErr_Occurred()) SWIG_fail; | |
33970 | } | |
33971 | Py_INCREF(Py_None); resultobj = Py_None; | |
33972 | return resultobj; | |
33973 | fail: | |
33974 | return NULL; | |
33975 | } | |
33976 | ||
33977 | ||
c32bde28 | 33978 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33979 | PyObject *resultobj; |
33980 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33981 | wxMenu *result; | |
33982 | PyObject * obj0 = 0 ; | |
33983 | char *kwnames[] = { | |
33984 | (char *) "self", NULL | |
33985 | }; | |
33986 | ||
33987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33990 | { |
33991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33992 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
33993 | ||
33994 | wxPyEndAllowThreads(__tstate); | |
33995 | if (PyErr_Occurred()) SWIG_fail; | |
33996 | } | |
33997 | { | |
412d302d | 33998 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33999 | } |
34000 | return resultobj; | |
34001 | fail: | |
34002 | return NULL; | |
34003 | } | |
34004 | ||
34005 | ||
c32bde28 | 34006 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34007 | PyObject *obj; |
34008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34009 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
34010 | Py_INCREF(obj); | |
34011 | return Py_BuildValue((char *)""); | |
34012 | } | |
c32bde28 | 34013 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34014 | PyObject *resultobj; |
34015 | long arg1 = (long) 0 ; | |
34016 | wxMenuBar *result; | |
34017 | PyObject * obj0 = 0 ; | |
34018 | char *kwnames[] = { | |
34019 | (char *) "style", NULL | |
34020 | }; | |
34021 | ||
34022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
34023 | if (obj0) { | |
093d3ff1 RD |
34024 | { |
34025 | arg1 = (long)(SWIG_As_long(obj0)); | |
34026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34027 | } | |
d55e5bfc RD |
34028 | } |
34029 | { | |
0439c23b | 34030 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34032 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
34033 | ||
34034 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34035 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34036 | } |
b0f7404b | 34037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
34038 | return resultobj; |
34039 | fail: | |
34040 | return NULL; | |
34041 | } | |
34042 | ||
34043 | ||
c32bde28 | 34044 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34045 | PyObject *resultobj; |
34046 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34047 | wxMenu *arg2 = (wxMenu *) 0 ; | |
34048 | wxString *arg3 = 0 ; | |
34049 | bool result; | |
ae8162c8 | 34050 | bool temp3 = false ; |
d55e5bfc RD |
34051 | PyObject * obj0 = 0 ; |
34052 | PyObject * obj1 = 0 ; | |
34053 | PyObject * obj2 = 0 ; | |
34054 | char *kwnames[] = { | |
34055 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
34056 | }; | |
34057 | ||
34058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34061 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34062 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34063 | { |
34064 | arg3 = wxString_in_helper(obj2); | |
34065 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34066 | temp3 = true; |
d55e5bfc RD |
34067 | } |
34068 | { | |
34069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34070 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
34071 | ||
34072 | wxPyEndAllowThreads(__tstate); | |
34073 | if (PyErr_Occurred()) SWIG_fail; | |
34074 | } | |
34075 | { | |
34076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34077 | } | |
34078 | { | |
34079 | if (temp3) | |
34080 | delete arg3; | |
34081 | } | |
34082 | return resultobj; | |
34083 | fail: | |
34084 | { | |
34085 | if (temp3) | |
34086 | delete arg3; | |
34087 | } | |
34088 | return NULL; | |
34089 | } | |
34090 | ||
34091 | ||
c32bde28 | 34092 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34093 | PyObject *resultobj; |
34094 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34095 | size_t arg2 ; | |
34096 | wxMenu *arg3 = (wxMenu *) 0 ; | |
34097 | wxString *arg4 = 0 ; | |
34098 | bool result; | |
ae8162c8 | 34099 | bool temp4 = false ; |
d55e5bfc RD |
34100 | PyObject * obj0 = 0 ; |
34101 | PyObject * obj1 = 0 ; | |
34102 | PyObject * obj2 = 0 ; | |
34103 | PyObject * obj3 = 0 ; | |
34104 | char *kwnames[] = { | |
34105 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
34106 | }; | |
34107 | ||
34108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
34109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34111 | { | |
34112 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34113 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34114 | } | |
34115 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34116 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
34117 | { |
34118 | arg4 = wxString_in_helper(obj3); | |
34119 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 34120 | temp4 = true; |
d55e5bfc RD |
34121 | } |
34122 | { | |
34123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34124 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
34125 | ||
34126 | wxPyEndAllowThreads(__tstate); | |
34127 | if (PyErr_Occurred()) SWIG_fail; | |
34128 | } | |
34129 | { | |
34130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34131 | } | |
34132 | { | |
34133 | if (temp4) | |
34134 | delete arg4; | |
34135 | } | |
34136 | return resultobj; | |
34137 | fail: | |
34138 | { | |
34139 | if (temp4) | |
34140 | delete arg4; | |
34141 | } | |
34142 | return NULL; | |
34143 | } | |
34144 | ||
34145 | ||
c32bde28 | 34146 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34147 | PyObject *resultobj; |
34148 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34149 | size_t result; | |
34150 | PyObject * obj0 = 0 ; | |
34151 | char *kwnames[] = { | |
34152 | (char *) "self", NULL | |
34153 | }; | |
34154 | ||
34155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34156 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34157 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34158 | { |
34159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34160 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
34161 | ||
34162 | wxPyEndAllowThreads(__tstate); | |
34163 | if (PyErr_Occurred()) SWIG_fail; | |
34164 | } | |
093d3ff1 RD |
34165 | { |
34166 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
34167 | } | |
d55e5bfc RD |
34168 | return resultobj; |
34169 | fail: | |
34170 | return NULL; | |
34171 | } | |
34172 | ||
34173 | ||
c32bde28 | 34174 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34175 | PyObject *resultobj; |
34176 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34177 | size_t arg2 ; | |
34178 | wxMenu *result; | |
34179 | PyObject * obj0 = 0 ; | |
34180 | PyObject * obj1 = 0 ; | |
34181 | char *kwnames[] = { | |
34182 | (char *) "self",(char *) "pos", NULL | |
34183 | }; | |
34184 | ||
34185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34188 | { | |
34189 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34190 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34191 | } | |
d55e5bfc RD |
34192 | { |
34193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34194 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
34195 | ||
34196 | wxPyEndAllowThreads(__tstate); | |
34197 | if (PyErr_Occurred()) SWIG_fail; | |
34198 | } | |
34199 | { | |
412d302d | 34200 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34201 | } |
34202 | return resultobj; | |
34203 | fail: | |
34204 | return NULL; | |
34205 | } | |
34206 | ||
34207 | ||
c32bde28 | 34208 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34209 | PyObject *resultobj; |
34210 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34211 | size_t arg2 ; | |
34212 | wxMenu *arg3 = (wxMenu *) 0 ; | |
34213 | wxString *arg4 = 0 ; | |
34214 | wxMenu *result; | |
ae8162c8 | 34215 | bool temp4 = false ; |
d55e5bfc RD |
34216 | PyObject * obj0 = 0 ; |
34217 | PyObject * obj1 = 0 ; | |
34218 | PyObject * obj2 = 0 ; | |
34219 | PyObject * obj3 = 0 ; | |
34220 | char *kwnames[] = { | |
34221 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
34222 | }; | |
34223 | ||
34224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
34225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34227 | { | |
34228 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34229 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34230 | } | |
34231 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34232 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
34233 | { |
34234 | arg4 = wxString_in_helper(obj3); | |
34235 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 34236 | temp4 = true; |
d55e5bfc RD |
34237 | } |
34238 | { | |
34239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34240 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
34241 | ||
34242 | wxPyEndAllowThreads(__tstate); | |
34243 | if (PyErr_Occurred()) SWIG_fail; | |
34244 | } | |
34245 | { | |
412d302d | 34246 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34247 | } |
34248 | { | |
34249 | if (temp4) | |
34250 | delete arg4; | |
34251 | } | |
34252 | return resultobj; | |
34253 | fail: | |
34254 | { | |
34255 | if (temp4) | |
34256 | delete arg4; | |
34257 | } | |
34258 | return NULL; | |
34259 | } | |
34260 | ||
34261 | ||
c32bde28 | 34262 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34263 | PyObject *resultobj; |
34264 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34265 | size_t arg2 ; | |
34266 | wxMenu *result; | |
34267 | PyObject * obj0 = 0 ; | |
34268 | PyObject * obj1 = 0 ; | |
34269 | char *kwnames[] = { | |
34270 | (char *) "self",(char *) "pos", NULL | |
34271 | }; | |
34272 | ||
34273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34276 | { | |
34277 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34279 | } | |
d55e5bfc RD |
34280 | { |
34281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34282 | result = (wxMenu *)(arg1)->Remove(arg2); | |
34283 | ||
34284 | wxPyEndAllowThreads(__tstate); | |
34285 | if (PyErr_Occurred()) SWIG_fail; | |
34286 | } | |
34287 | { | |
412d302d | 34288 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34289 | } |
34290 | return resultobj; | |
34291 | fail: | |
34292 | return NULL; | |
34293 | } | |
34294 | ||
34295 | ||
c32bde28 | 34296 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34297 | PyObject *resultobj; |
34298 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34299 | size_t arg2 ; | |
34300 | bool arg3 ; | |
34301 | PyObject * obj0 = 0 ; | |
34302 | PyObject * obj1 = 0 ; | |
34303 | PyObject * obj2 = 0 ; | |
34304 | char *kwnames[] = { | |
34305 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
34306 | }; | |
34307 | ||
34308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34311 | { | |
34312 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34314 | } | |
34315 | { | |
34316 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
34317 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34318 | } | |
d55e5bfc RD |
34319 | { |
34320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34321 | (arg1)->EnableTop(arg2,arg3); | |
34322 | ||
34323 | wxPyEndAllowThreads(__tstate); | |
34324 | if (PyErr_Occurred()) SWIG_fail; | |
34325 | } | |
34326 | Py_INCREF(Py_None); resultobj = Py_None; | |
34327 | return resultobj; | |
34328 | fail: | |
34329 | return NULL; | |
34330 | } | |
34331 | ||
34332 | ||
c32bde28 | 34333 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34334 | PyObject *resultobj; |
34335 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34336 | size_t arg2 ; | |
34337 | bool result; | |
34338 | PyObject * obj0 = 0 ; | |
34339 | PyObject * obj1 = 0 ; | |
34340 | char *kwnames[] = { | |
34341 | (char *) "self",(char *) "pos", NULL | |
34342 | }; | |
34343 | ||
34344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34347 | { | |
34348 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34349 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34350 | } | |
d55e5bfc RD |
34351 | { |
34352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34353 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
34354 | ||
34355 | wxPyEndAllowThreads(__tstate); | |
34356 | if (PyErr_Occurred()) SWIG_fail; | |
34357 | } | |
34358 | { | |
34359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34360 | } | |
34361 | return resultobj; | |
34362 | fail: | |
34363 | return NULL; | |
34364 | } | |
34365 | ||
34366 | ||
c32bde28 | 34367 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34368 | PyObject *resultobj; |
34369 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34370 | size_t arg2 ; | |
34371 | wxString *arg3 = 0 ; | |
ae8162c8 | 34372 | bool temp3 = false ; |
d55e5bfc RD |
34373 | PyObject * obj0 = 0 ; |
34374 | PyObject * obj1 = 0 ; | |
34375 | PyObject * obj2 = 0 ; | |
34376 | char *kwnames[] = { | |
34377 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
34378 | }; | |
34379 | ||
34380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34383 | { | |
34384 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34385 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34386 | } | |
d55e5bfc RD |
34387 | { |
34388 | arg3 = wxString_in_helper(obj2); | |
34389 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34390 | temp3 = true; |
d55e5bfc RD |
34391 | } |
34392 | { | |
34393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34394 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
34395 | ||
34396 | wxPyEndAllowThreads(__tstate); | |
34397 | if (PyErr_Occurred()) SWIG_fail; | |
34398 | } | |
34399 | Py_INCREF(Py_None); resultobj = Py_None; | |
34400 | { | |
34401 | if (temp3) | |
34402 | delete arg3; | |
34403 | } | |
34404 | return resultobj; | |
34405 | fail: | |
34406 | { | |
34407 | if (temp3) | |
34408 | delete arg3; | |
34409 | } | |
34410 | return NULL; | |
34411 | } | |
34412 | ||
34413 | ||
c32bde28 | 34414 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34415 | PyObject *resultobj; |
34416 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34417 | size_t arg2 ; | |
34418 | wxString result; | |
34419 | PyObject * obj0 = 0 ; | |
34420 | PyObject * obj1 = 0 ; | |
34421 | char *kwnames[] = { | |
34422 | (char *) "self",(char *) "pos", NULL | |
34423 | }; | |
34424 | ||
34425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34428 | { | |
34429 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34430 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34431 | } | |
d55e5bfc RD |
34432 | { |
34433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34434 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
34435 | ||
34436 | wxPyEndAllowThreads(__tstate); | |
34437 | if (PyErr_Occurred()) SWIG_fail; | |
34438 | } | |
34439 | { | |
34440 | #if wxUSE_UNICODE | |
34441 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34442 | #else | |
34443 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34444 | #endif | |
34445 | } | |
34446 | return resultobj; | |
34447 | fail: | |
34448 | return NULL; | |
34449 | } | |
34450 | ||
34451 | ||
c32bde28 | 34452 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34453 | PyObject *resultobj; |
34454 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34455 | wxString *arg2 = 0 ; | |
34456 | wxString *arg3 = 0 ; | |
34457 | int result; | |
ae8162c8 RD |
34458 | bool temp2 = false ; |
34459 | bool temp3 = false ; | |
d55e5bfc RD |
34460 | PyObject * obj0 = 0 ; |
34461 | PyObject * obj1 = 0 ; | |
34462 | PyObject * obj2 = 0 ; | |
34463 | char *kwnames[] = { | |
34464 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
34465 | }; | |
34466 | ||
34467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34470 | { |
34471 | arg2 = wxString_in_helper(obj1); | |
34472 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34473 | temp2 = true; |
d55e5bfc RD |
34474 | } |
34475 | { | |
34476 | arg3 = wxString_in_helper(obj2); | |
34477 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34478 | temp3 = true; |
d55e5bfc RD |
34479 | } |
34480 | { | |
34481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34482 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
34483 | ||
34484 | wxPyEndAllowThreads(__tstate); | |
34485 | if (PyErr_Occurred()) SWIG_fail; | |
34486 | } | |
093d3ff1 RD |
34487 | { |
34488 | resultobj = SWIG_From_int((int)(result)); | |
34489 | } | |
d55e5bfc RD |
34490 | { |
34491 | if (temp2) | |
34492 | delete arg2; | |
34493 | } | |
34494 | { | |
34495 | if (temp3) | |
34496 | delete arg3; | |
34497 | } | |
34498 | return resultobj; | |
34499 | fail: | |
34500 | { | |
34501 | if (temp2) | |
34502 | delete arg2; | |
34503 | } | |
34504 | { | |
34505 | if (temp3) | |
34506 | delete arg3; | |
34507 | } | |
34508 | return NULL; | |
34509 | } | |
34510 | ||
34511 | ||
c32bde28 | 34512 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34513 | PyObject *resultobj; |
34514 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34515 | int arg2 ; | |
34516 | wxMenuItem *result; | |
34517 | PyObject * obj0 = 0 ; | |
34518 | PyObject * obj1 = 0 ; | |
34519 | char *kwnames[] = { | |
34520 | (char *) "self",(char *) "id", NULL | |
34521 | }; | |
34522 | ||
34523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34526 | { | |
34527 | arg2 = (int)(SWIG_As_int(obj1)); | |
34528 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34529 | } | |
d55e5bfc RD |
34530 | { |
34531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34532 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
34533 | ||
34534 | wxPyEndAllowThreads(__tstate); | |
34535 | if (PyErr_Occurred()) SWIG_fail; | |
34536 | } | |
34537 | { | |
412d302d | 34538 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34539 | } |
34540 | return resultobj; | |
34541 | fail: | |
34542 | return NULL; | |
34543 | } | |
34544 | ||
34545 | ||
c32bde28 | 34546 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34547 | PyObject *resultobj; |
34548 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34549 | wxString *arg2 = 0 ; | |
34550 | int result; | |
ae8162c8 | 34551 | bool temp2 = false ; |
d55e5bfc RD |
34552 | PyObject * obj0 = 0 ; |
34553 | PyObject * obj1 = 0 ; | |
34554 | char *kwnames[] = { | |
34555 | (char *) "self",(char *) "title", NULL | |
34556 | }; | |
34557 | ||
34558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34561 | { |
34562 | arg2 = wxString_in_helper(obj1); | |
34563 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34564 | temp2 = true; |
d55e5bfc RD |
34565 | } |
34566 | { | |
34567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34568 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
34569 | ||
34570 | wxPyEndAllowThreads(__tstate); | |
34571 | if (PyErr_Occurred()) SWIG_fail; | |
34572 | } | |
093d3ff1 RD |
34573 | { |
34574 | resultobj = SWIG_From_int((int)(result)); | |
34575 | } | |
d55e5bfc RD |
34576 | { |
34577 | if (temp2) | |
34578 | delete arg2; | |
34579 | } | |
34580 | return resultobj; | |
34581 | fail: | |
34582 | { | |
34583 | if (temp2) | |
34584 | delete arg2; | |
34585 | } | |
34586 | return NULL; | |
34587 | } | |
34588 | ||
34589 | ||
c32bde28 | 34590 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34591 | PyObject *resultobj; |
34592 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34593 | int arg2 ; | |
34594 | bool arg3 ; | |
34595 | PyObject * obj0 = 0 ; | |
34596 | PyObject * obj1 = 0 ; | |
34597 | PyObject * obj2 = 0 ; | |
34598 | char *kwnames[] = { | |
34599 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
34600 | }; | |
34601 | ||
34602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34605 | { | |
34606 | arg2 = (int)(SWIG_As_int(obj1)); | |
34607 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34608 | } | |
34609 | { | |
34610 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
34611 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34612 | } | |
d55e5bfc RD |
34613 | { |
34614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34615 | (arg1)->Enable(arg2,arg3); | |
34616 | ||
34617 | wxPyEndAllowThreads(__tstate); | |
34618 | if (PyErr_Occurred()) SWIG_fail; | |
34619 | } | |
34620 | Py_INCREF(Py_None); resultobj = Py_None; | |
34621 | return resultobj; | |
34622 | fail: | |
34623 | return NULL; | |
34624 | } | |
34625 | ||
34626 | ||
c32bde28 | 34627 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34628 | PyObject *resultobj; |
34629 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34630 | int arg2 ; | |
34631 | bool arg3 ; | |
34632 | PyObject * obj0 = 0 ; | |
34633 | PyObject * obj1 = 0 ; | |
34634 | PyObject * obj2 = 0 ; | |
34635 | char *kwnames[] = { | |
34636 | (char *) "self",(char *) "id",(char *) "check", NULL | |
34637 | }; | |
34638 | ||
34639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34642 | { | |
34643 | arg2 = (int)(SWIG_As_int(obj1)); | |
34644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34645 | } | |
34646 | { | |
34647 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
34648 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34649 | } | |
d55e5bfc RD |
34650 | { |
34651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34652 | (arg1)->Check(arg2,arg3); | |
34653 | ||
34654 | wxPyEndAllowThreads(__tstate); | |
34655 | if (PyErr_Occurred()) SWIG_fail; | |
34656 | } | |
34657 | Py_INCREF(Py_None); resultobj = Py_None; | |
34658 | return resultobj; | |
34659 | fail: | |
34660 | return NULL; | |
34661 | } | |
34662 | ||
34663 | ||
c32bde28 | 34664 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34665 | PyObject *resultobj; |
34666 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34667 | int arg2 ; | |
34668 | bool result; | |
34669 | PyObject * obj0 = 0 ; | |
34670 | PyObject * obj1 = 0 ; | |
34671 | char *kwnames[] = { | |
34672 | (char *) "self",(char *) "id", NULL | |
34673 | }; | |
34674 | ||
34675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34678 | { | |
34679 | arg2 = (int)(SWIG_As_int(obj1)); | |
34680 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34681 | } | |
d55e5bfc RD |
34682 | { |
34683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34684 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
34685 | ||
34686 | wxPyEndAllowThreads(__tstate); | |
34687 | if (PyErr_Occurred()) SWIG_fail; | |
34688 | } | |
34689 | { | |
34690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34691 | } | |
34692 | return resultobj; | |
34693 | fail: | |
34694 | return NULL; | |
34695 | } | |
34696 | ||
34697 | ||
c32bde28 | 34698 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34699 | PyObject *resultobj; |
34700 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34701 | int arg2 ; | |
34702 | bool result; | |
34703 | PyObject * obj0 = 0 ; | |
34704 | PyObject * obj1 = 0 ; | |
34705 | char *kwnames[] = { | |
34706 | (char *) "self",(char *) "id", NULL | |
34707 | }; | |
34708 | ||
34709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34712 | { | |
34713 | arg2 = (int)(SWIG_As_int(obj1)); | |
34714 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34715 | } | |
d55e5bfc RD |
34716 | { |
34717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34718 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
34719 | ||
34720 | wxPyEndAllowThreads(__tstate); | |
34721 | if (PyErr_Occurred()) SWIG_fail; | |
34722 | } | |
34723 | { | |
34724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34725 | } | |
34726 | return resultobj; | |
34727 | fail: | |
34728 | return NULL; | |
34729 | } | |
34730 | ||
34731 | ||
c32bde28 | 34732 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34733 | PyObject *resultobj; |
34734 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34735 | int arg2 ; | |
34736 | wxString *arg3 = 0 ; | |
ae8162c8 | 34737 | bool temp3 = false ; |
d55e5bfc RD |
34738 | PyObject * obj0 = 0 ; |
34739 | PyObject * obj1 = 0 ; | |
34740 | PyObject * obj2 = 0 ; | |
34741 | char *kwnames[] = { | |
34742 | (char *) "self",(char *) "id",(char *) "label", NULL | |
34743 | }; | |
34744 | ||
34745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34748 | { | |
34749 | arg2 = (int)(SWIG_As_int(obj1)); | |
34750 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34751 | } | |
d55e5bfc RD |
34752 | { |
34753 | arg3 = wxString_in_helper(obj2); | |
34754 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34755 | temp3 = true; |
d55e5bfc RD |
34756 | } |
34757 | { | |
34758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34759 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
34760 | ||
34761 | wxPyEndAllowThreads(__tstate); | |
34762 | if (PyErr_Occurred()) SWIG_fail; | |
34763 | } | |
34764 | Py_INCREF(Py_None); resultobj = Py_None; | |
34765 | { | |
34766 | if (temp3) | |
34767 | delete arg3; | |
34768 | } | |
34769 | return resultobj; | |
34770 | fail: | |
34771 | { | |
34772 | if (temp3) | |
34773 | delete arg3; | |
34774 | } | |
34775 | return NULL; | |
34776 | } | |
34777 | ||
34778 | ||
c32bde28 | 34779 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34780 | PyObject *resultobj; |
34781 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34782 | int arg2 ; | |
34783 | wxString result; | |
34784 | PyObject * obj0 = 0 ; | |
34785 | PyObject * obj1 = 0 ; | |
34786 | char *kwnames[] = { | |
34787 | (char *) "self",(char *) "id", NULL | |
34788 | }; | |
34789 | ||
34790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34793 | { | |
34794 | arg2 = (int)(SWIG_As_int(obj1)); | |
34795 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34796 | } | |
d55e5bfc RD |
34797 | { |
34798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34799 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
34800 | ||
34801 | wxPyEndAllowThreads(__tstate); | |
34802 | if (PyErr_Occurred()) SWIG_fail; | |
34803 | } | |
34804 | { | |
34805 | #if wxUSE_UNICODE | |
34806 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34807 | #else | |
34808 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34809 | #endif | |
34810 | } | |
34811 | return resultobj; | |
34812 | fail: | |
34813 | return NULL; | |
34814 | } | |
34815 | ||
34816 | ||
c32bde28 | 34817 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34818 | PyObject *resultobj; |
34819 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34820 | int arg2 ; | |
34821 | wxString *arg3 = 0 ; | |
ae8162c8 | 34822 | bool temp3 = false ; |
d55e5bfc RD |
34823 | PyObject * obj0 = 0 ; |
34824 | PyObject * obj1 = 0 ; | |
34825 | PyObject * obj2 = 0 ; | |
34826 | char *kwnames[] = { | |
34827 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
34828 | }; | |
34829 | ||
34830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34833 | { | |
34834 | arg2 = (int)(SWIG_As_int(obj1)); | |
34835 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34836 | } | |
d55e5bfc RD |
34837 | { |
34838 | arg3 = wxString_in_helper(obj2); | |
34839 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34840 | temp3 = true; |
d55e5bfc RD |
34841 | } |
34842 | { | |
34843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34844 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
34845 | ||
34846 | wxPyEndAllowThreads(__tstate); | |
34847 | if (PyErr_Occurred()) SWIG_fail; | |
34848 | } | |
34849 | Py_INCREF(Py_None); resultobj = Py_None; | |
34850 | { | |
34851 | if (temp3) | |
34852 | delete arg3; | |
34853 | } | |
34854 | return resultobj; | |
34855 | fail: | |
34856 | { | |
34857 | if (temp3) | |
34858 | delete arg3; | |
34859 | } | |
34860 | return NULL; | |
34861 | } | |
34862 | ||
34863 | ||
c32bde28 | 34864 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34865 | PyObject *resultobj; |
34866 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34867 | int arg2 ; | |
34868 | wxString result; | |
34869 | PyObject * obj0 = 0 ; | |
34870 | PyObject * obj1 = 0 ; | |
34871 | char *kwnames[] = { | |
34872 | (char *) "self",(char *) "id", NULL | |
34873 | }; | |
34874 | ||
34875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34878 | { | |
34879 | arg2 = (int)(SWIG_As_int(obj1)); | |
34880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34881 | } | |
d55e5bfc RD |
34882 | { |
34883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34884 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
34885 | ||
34886 | wxPyEndAllowThreads(__tstate); | |
34887 | if (PyErr_Occurred()) SWIG_fail; | |
34888 | } | |
34889 | { | |
34890 | #if wxUSE_UNICODE | |
34891 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34892 | #else | |
34893 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34894 | #endif | |
34895 | } | |
34896 | return resultobj; | |
34897 | fail: | |
34898 | return NULL; | |
34899 | } | |
34900 | ||
34901 | ||
c32bde28 | 34902 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34903 | PyObject *resultobj; |
34904 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34905 | wxFrame *result; | |
34906 | PyObject * obj0 = 0 ; | |
34907 | char *kwnames[] = { | |
34908 | (char *) "self", NULL | |
34909 | }; | |
34910 | ||
34911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34914 | { |
34915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34916 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
34917 | ||
34918 | wxPyEndAllowThreads(__tstate); | |
34919 | if (PyErr_Occurred()) SWIG_fail; | |
34920 | } | |
34921 | { | |
412d302d | 34922 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
34923 | } |
34924 | return resultobj; | |
34925 | fail: | |
34926 | return NULL; | |
34927 | } | |
34928 | ||
34929 | ||
c32bde28 | 34930 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34931 | PyObject *resultobj; |
34932 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34933 | bool result; | |
34934 | PyObject * obj0 = 0 ; | |
34935 | char *kwnames[] = { | |
34936 | (char *) "self", NULL | |
34937 | }; | |
34938 | ||
34939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34942 | { |
34943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34944 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
34945 | ||
34946 | wxPyEndAllowThreads(__tstate); | |
34947 | if (PyErr_Occurred()) SWIG_fail; | |
34948 | } | |
34949 | { | |
34950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34951 | } | |
34952 | return resultobj; | |
34953 | fail: | |
34954 | return NULL; | |
34955 | } | |
34956 | ||
34957 | ||
c32bde28 | 34958 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34959 | PyObject *resultobj; |
34960 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34961 | wxFrame *arg2 = (wxFrame *) 0 ; | |
34962 | PyObject * obj0 = 0 ; | |
34963 | PyObject * obj1 = 0 ; | |
34964 | char *kwnames[] = { | |
34965 | (char *) "self",(char *) "frame", NULL | |
34966 | }; | |
34967 | ||
34968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34971 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); | |
34972 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34973 | { |
34974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34975 | (arg1)->Attach(arg2); | |
34976 | ||
34977 | wxPyEndAllowThreads(__tstate); | |
34978 | if (PyErr_Occurred()) SWIG_fail; | |
34979 | } | |
34980 | Py_INCREF(Py_None); resultobj = Py_None; | |
34981 | return resultobj; | |
34982 | fail: | |
34983 | return NULL; | |
34984 | } | |
34985 | ||
34986 | ||
c32bde28 | 34987 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34988 | PyObject *resultobj; |
34989 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34990 | PyObject * obj0 = 0 ; | |
34991 | char *kwnames[] = { | |
34992 | (char *) "self", NULL | |
34993 | }; | |
34994 | ||
34995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34998 | { |
34999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35000 | (arg1)->Detach(); | |
35001 | ||
35002 | wxPyEndAllowThreads(__tstate); | |
35003 | if (PyErr_Occurred()) SWIG_fail; | |
35004 | } | |
35005 | Py_INCREF(Py_None); resultobj = Py_None; | |
35006 | return resultobj; | |
35007 | fail: | |
35008 | return NULL; | |
35009 | } | |
35010 | ||
35011 | ||
c32bde28 | 35012 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35013 | PyObject *obj; |
35014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35015 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
35016 | Py_INCREF(obj); | |
35017 | return Py_BuildValue((char *)""); | |
35018 | } | |
c32bde28 | 35019 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35020 | PyObject *resultobj; |
35021 | wxMenu *arg1 = (wxMenu *) NULL ; | |
35022 | int arg2 = (int) wxID_ANY ; | |
35023 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
35024 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
35025 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
35026 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 35027 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc RD |
35028 | wxMenu *arg6 = (wxMenu *) NULL ; |
35029 | wxMenuItem *result; | |
ae8162c8 RD |
35030 | bool temp3 = false ; |
35031 | bool temp4 = false ; | |
d55e5bfc RD |
35032 | PyObject * obj0 = 0 ; |
35033 | PyObject * obj1 = 0 ; | |
35034 | PyObject * obj2 = 0 ; | |
35035 | PyObject * obj3 = 0 ; | |
35036 | PyObject * obj4 = 0 ; | |
35037 | PyObject * obj5 = 0 ; | |
35038 | char *kwnames[] = { | |
35039 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
35040 | }; | |
35041 | ||
35042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35043 | if (obj0) { | |
093d3ff1 RD |
35044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
35045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35046 | } |
35047 | if (obj1) { | |
093d3ff1 RD |
35048 | { |
35049 | arg2 = (int)(SWIG_As_int(obj1)); | |
35050 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35051 | } | |
d55e5bfc RD |
35052 | } |
35053 | if (obj2) { | |
35054 | { | |
35055 | arg3 = wxString_in_helper(obj2); | |
35056 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35057 | temp3 = true; |
d55e5bfc RD |
35058 | } |
35059 | } | |
35060 | if (obj3) { | |
35061 | { | |
35062 | arg4 = wxString_in_helper(obj3); | |
35063 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 35064 | temp4 = true; |
d55e5bfc RD |
35065 | } |
35066 | } | |
35067 | if (obj4) { | |
093d3ff1 RD |
35068 | { |
35069 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
35070 | if (SWIG_arg_fail(5)) SWIG_fail; | |
35071 | } | |
d55e5bfc RD |
35072 | } |
35073 | if (obj5) { | |
093d3ff1 RD |
35074 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
35075 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
35076 | } |
35077 | { | |
35078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35079 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
35080 | ||
35081 | wxPyEndAllowThreads(__tstate); | |
35082 | if (PyErr_Occurred()) SWIG_fail; | |
35083 | } | |
35084 | { | |
412d302d | 35085 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
35086 | } |
35087 | { | |
35088 | if (temp3) | |
35089 | delete arg3; | |
35090 | } | |
35091 | { | |
35092 | if (temp4) | |
35093 | delete arg4; | |
35094 | } | |
35095 | return resultobj; | |
35096 | fail: | |
35097 | { | |
35098 | if (temp3) | |
35099 | delete arg3; | |
35100 | } | |
35101 | { | |
35102 | if (temp4) | |
35103 | delete arg4; | |
35104 | } | |
35105 | return NULL; | |
35106 | } | |
35107 | ||
35108 | ||
c32bde28 | 35109 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35110 | PyObject *resultobj; |
35111 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35112 | wxMenu *result; | |
35113 | PyObject * obj0 = 0 ; | |
35114 | char *kwnames[] = { | |
35115 | (char *) "self", NULL | |
35116 | }; | |
35117 | ||
35118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35121 | { |
35122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35123 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
35124 | ||
35125 | wxPyEndAllowThreads(__tstate); | |
35126 | if (PyErr_Occurred()) SWIG_fail; | |
35127 | } | |
35128 | { | |
412d302d | 35129 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35130 | } |
35131 | return resultobj; | |
35132 | fail: | |
35133 | return NULL; | |
35134 | } | |
35135 | ||
35136 | ||
c32bde28 | 35137 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35138 | PyObject *resultobj; |
35139 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35140 | wxMenu *arg2 = (wxMenu *) 0 ; | |
35141 | PyObject * obj0 = 0 ; | |
35142 | PyObject * obj1 = 0 ; | |
35143 | char *kwnames[] = { | |
35144 | (char *) "self",(char *) "menu", NULL | |
35145 | }; | |
35146 | ||
35147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35150 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
35151 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
35152 | { |
35153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35154 | (arg1)->SetMenu(arg2); | |
35155 | ||
35156 | wxPyEndAllowThreads(__tstate); | |
35157 | if (PyErr_Occurred()) SWIG_fail; | |
35158 | } | |
35159 | Py_INCREF(Py_None); resultobj = Py_None; | |
35160 | return resultobj; | |
35161 | fail: | |
35162 | return NULL; | |
35163 | } | |
35164 | ||
35165 | ||
c32bde28 | 35166 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35167 | PyObject *resultobj; |
35168 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35169 | int arg2 ; | |
35170 | PyObject * obj0 = 0 ; | |
35171 | PyObject * obj1 = 0 ; | |
35172 | char *kwnames[] = { | |
35173 | (char *) "self",(char *) "id", NULL | |
35174 | }; | |
35175 | ||
35176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35179 | { | |
35180 | arg2 = (int)(SWIG_As_int(obj1)); | |
35181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35182 | } | |
d55e5bfc RD |
35183 | { |
35184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35185 | (arg1)->SetId(arg2); | |
35186 | ||
35187 | wxPyEndAllowThreads(__tstate); | |
35188 | if (PyErr_Occurred()) SWIG_fail; | |
35189 | } | |
35190 | Py_INCREF(Py_None); resultobj = Py_None; | |
35191 | return resultobj; | |
35192 | fail: | |
35193 | return NULL; | |
35194 | } | |
35195 | ||
35196 | ||
c32bde28 | 35197 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35198 | PyObject *resultobj; |
35199 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35200 | int result; | |
35201 | PyObject * obj0 = 0 ; | |
35202 | char *kwnames[] = { | |
35203 | (char *) "self", NULL | |
35204 | }; | |
35205 | ||
35206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35209 | { |
35210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35211 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
35212 | ||
35213 | wxPyEndAllowThreads(__tstate); | |
35214 | if (PyErr_Occurred()) SWIG_fail; | |
35215 | } | |
093d3ff1 RD |
35216 | { |
35217 | resultobj = SWIG_From_int((int)(result)); | |
35218 | } | |
d55e5bfc RD |
35219 | return resultobj; |
35220 | fail: | |
35221 | return NULL; | |
35222 | } | |
35223 | ||
35224 | ||
c32bde28 | 35225 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35226 | PyObject *resultobj; |
35227 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35228 | bool result; | |
35229 | PyObject * obj0 = 0 ; | |
35230 | char *kwnames[] = { | |
35231 | (char *) "self", NULL | |
35232 | }; | |
35233 | ||
35234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35237 | { |
35238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35239 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
35240 | ||
35241 | wxPyEndAllowThreads(__tstate); | |
35242 | if (PyErr_Occurred()) SWIG_fail; | |
35243 | } | |
35244 | { | |
35245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35246 | } | |
35247 | return resultobj; | |
35248 | fail: | |
35249 | return NULL; | |
35250 | } | |
35251 | ||
35252 | ||
c32bde28 | 35253 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35254 | PyObject *resultobj; |
35255 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35256 | wxString *arg2 = 0 ; | |
ae8162c8 | 35257 | bool temp2 = false ; |
d55e5bfc RD |
35258 | PyObject * obj0 = 0 ; |
35259 | PyObject * obj1 = 0 ; | |
35260 | char *kwnames[] = { | |
35261 | (char *) "self",(char *) "str", NULL | |
35262 | }; | |
35263 | ||
35264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35265 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35267 | { |
35268 | arg2 = wxString_in_helper(obj1); | |
35269 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 35270 | temp2 = true; |
d55e5bfc RD |
35271 | } |
35272 | { | |
35273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35274 | (arg1)->SetText((wxString const &)*arg2); | |
35275 | ||
35276 | wxPyEndAllowThreads(__tstate); | |
35277 | if (PyErr_Occurred()) SWIG_fail; | |
35278 | } | |
35279 | Py_INCREF(Py_None); resultobj = Py_None; | |
35280 | { | |
35281 | if (temp2) | |
35282 | delete arg2; | |
35283 | } | |
35284 | return resultobj; | |
35285 | fail: | |
35286 | { | |
35287 | if (temp2) | |
35288 | delete arg2; | |
35289 | } | |
35290 | return NULL; | |
35291 | } | |
35292 | ||
35293 | ||
c32bde28 | 35294 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35295 | PyObject *resultobj; |
35296 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35297 | wxString result; | |
35298 | PyObject * obj0 = 0 ; | |
35299 | char *kwnames[] = { | |
35300 | (char *) "self", NULL | |
35301 | }; | |
35302 | ||
35303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35306 | { |
35307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35308 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
35309 | ||
35310 | wxPyEndAllowThreads(__tstate); | |
35311 | if (PyErr_Occurred()) SWIG_fail; | |
35312 | } | |
35313 | { | |
35314 | #if wxUSE_UNICODE | |
35315 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35316 | #else | |
35317 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35318 | #endif | |
35319 | } | |
35320 | return resultobj; | |
35321 | fail: | |
35322 | return NULL; | |
35323 | } | |
35324 | ||
35325 | ||
c32bde28 | 35326 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35327 | PyObject *resultobj; |
35328 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35329 | wxString *result; | |
35330 | PyObject * obj0 = 0 ; | |
35331 | char *kwnames[] = { | |
35332 | (char *) "self", NULL | |
35333 | }; | |
35334 | ||
35335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35338 | { |
35339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35340 | { | |
35341 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
35342 | result = (wxString *) &_result_ref; | |
35343 | } | |
35344 | ||
35345 | wxPyEndAllowThreads(__tstate); | |
35346 | if (PyErr_Occurred()) SWIG_fail; | |
35347 | } | |
35348 | { | |
35349 | #if wxUSE_UNICODE | |
35350 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
35351 | #else | |
35352 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
35353 | #endif | |
35354 | } | |
35355 | return resultobj; | |
35356 | fail: | |
35357 | return NULL; | |
35358 | } | |
35359 | ||
35360 | ||
c32bde28 | 35361 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35362 | PyObject *resultobj; |
35363 | wxString *arg1 = 0 ; | |
35364 | wxString result; | |
ae8162c8 | 35365 | bool temp1 = false ; |
d55e5bfc RD |
35366 | PyObject * obj0 = 0 ; |
35367 | char *kwnames[] = { | |
35368 | (char *) "text", NULL | |
35369 | }; | |
35370 | ||
35371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
35372 | { | |
35373 | arg1 = wxString_in_helper(obj0); | |
35374 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 35375 | temp1 = true; |
d55e5bfc RD |
35376 | } |
35377 | { | |
35378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35379 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
35380 | ||
35381 | wxPyEndAllowThreads(__tstate); | |
35382 | if (PyErr_Occurred()) SWIG_fail; | |
35383 | } | |
35384 | { | |
35385 | #if wxUSE_UNICODE | |
35386 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35387 | #else | |
35388 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35389 | #endif | |
35390 | } | |
35391 | { | |
35392 | if (temp1) | |
35393 | delete arg1; | |
35394 | } | |
35395 | return resultobj; | |
35396 | fail: | |
35397 | { | |
35398 | if (temp1) | |
35399 | delete arg1; | |
35400 | } | |
35401 | return NULL; | |
35402 | } | |
35403 | ||
35404 | ||
c32bde28 | 35405 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35406 | PyObject *resultobj; |
35407 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
093d3ff1 | 35408 | wxItemKind result; |
d55e5bfc RD |
35409 | PyObject * obj0 = 0 ; |
35410 | char *kwnames[] = { | |
35411 | (char *) "self", NULL | |
35412 | }; | |
35413 | ||
35414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35417 | { |
35418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 35419 | result = (wxItemKind)((wxMenuItem const *)arg1)->GetKind(); |
d55e5bfc RD |
35420 | |
35421 | wxPyEndAllowThreads(__tstate); | |
35422 | if (PyErr_Occurred()) SWIG_fail; | |
35423 | } | |
093d3ff1 | 35424 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
35425 | return resultobj; |
35426 | fail: | |
35427 | return NULL; | |
35428 | } | |
35429 | ||
35430 | ||
c32bde28 | 35431 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35432 | PyObject *resultobj; |
35433 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
093d3ff1 | 35434 | wxItemKind arg2 ; |
d55e5bfc RD |
35435 | PyObject * obj0 = 0 ; |
35436 | PyObject * obj1 = 0 ; | |
35437 | char *kwnames[] = { | |
35438 | (char *) "self",(char *) "kind", NULL | |
35439 | }; | |
35440 | ||
35441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35442 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35443 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35444 | { | |
35445 | arg2 = (wxItemKind)(SWIG_As_int(obj1)); | |
35446 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35447 | } | |
d55e5bfc RD |
35448 | { |
35449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35450 | (arg1)->SetKind((wxItemKind )arg2); | |
35451 | ||
35452 | wxPyEndAllowThreads(__tstate); | |
35453 | if (PyErr_Occurred()) SWIG_fail; | |
35454 | } | |
35455 | Py_INCREF(Py_None); resultobj = Py_None; | |
35456 | return resultobj; | |
35457 | fail: | |
35458 | return NULL; | |
35459 | } | |
35460 | ||
35461 | ||
c32bde28 | 35462 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35463 | PyObject *resultobj; |
35464 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35465 | bool arg2 ; | |
35466 | PyObject * obj0 = 0 ; | |
35467 | PyObject * obj1 = 0 ; | |
35468 | char *kwnames[] = { | |
35469 | (char *) "self",(char *) "checkable", NULL | |
35470 | }; | |
35471 | ||
35472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35475 | { | |
35476 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
35477 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35478 | } | |
d55e5bfc RD |
35479 | { |
35480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35481 | (arg1)->SetCheckable(arg2); | |
35482 | ||
35483 | wxPyEndAllowThreads(__tstate); | |
35484 | if (PyErr_Occurred()) SWIG_fail; | |
35485 | } | |
35486 | Py_INCREF(Py_None); resultobj = Py_None; | |
35487 | return resultobj; | |
35488 | fail: | |
35489 | return NULL; | |
35490 | } | |
35491 | ||
35492 | ||
c32bde28 | 35493 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35494 | PyObject *resultobj; |
35495 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35496 | bool result; | |
35497 | PyObject * obj0 = 0 ; | |
35498 | char *kwnames[] = { | |
35499 | (char *) "self", NULL | |
35500 | }; | |
35501 | ||
35502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35505 | { |
35506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35507 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
35508 | ||
35509 | wxPyEndAllowThreads(__tstate); | |
35510 | if (PyErr_Occurred()) SWIG_fail; | |
35511 | } | |
35512 | { | |
35513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35514 | } | |
35515 | return resultobj; | |
35516 | fail: | |
35517 | return NULL; | |
35518 | } | |
35519 | ||
35520 | ||
c32bde28 | 35521 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35522 | PyObject *resultobj; |
35523 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35524 | bool result; | |
35525 | PyObject * obj0 = 0 ; | |
35526 | char *kwnames[] = { | |
35527 | (char *) "self", NULL | |
35528 | }; | |
35529 | ||
35530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35533 | { |
35534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35535 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
35536 | ||
35537 | wxPyEndAllowThreads(__tstate); | |
35538 | if (PyErr_Occurred()) SWIG_fail; | |
35539 | } | |
35540 | { | |
35541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35542 | } | |
35543 | return resultobj; | |
35544 | fail: | |
35545 | return NULL; | |
35546 | } | |
35547 | ||
35548 | ||
c32bde28 | 35549 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35550 | PyObject *resultobj; |
35551 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35552 | wxMenu *arg2 = (wxMenu *) 0 ; | |
35553 | PyObject * obj0 = 0 ; | |
35554 | PyObject * obj1 = 0 ; | |
35555 | char *kwnames[] = { | |
35556 | (char *) "self",(char *) "menu", NULL | |
35557 | }; | |
35558 | ||
35559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35562 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
35563 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
35564 | { |
35565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35566 | (arg1)->SetSubMenu(arg2); | |
35567 | ||
35568 | wxPyEndAllowThreads(__tstate); | |
35569 | if (PyErr_Occurred()) SWIG_fail; | |
35570 | } | |
35571 | Py_INCREF(Py_None); resultobj = Py_None; | |
35572 | return resultobj; | |
35573 | fail: | |
35574 | return NULL; | |
35575 | } | |
35576 | ||
35577 | ||
c32bde28 | 35578 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35579 | PyObject *resultobj; |
35580 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35581 | wxMenu *result; | |
35582 | PyObject * obj0 = 0 ; | |
35583 | char *kwnames[] = { | |
35584 | (char *) "self", NULL | |
35585 | }; | |
35586 | ||
35587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35590 | { |
35591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35592 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
35593 | ||
35594 | wxPyEndAllowThreads(__tstate); | |
35595 | if (PyErr_Occurred()) SWIG_fail; | |
35596 | } | |
35597 | { | |
412d302d | 35598 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35599 | } |
35600 | return resultobj; | |
35601 | fail: | |
35602 | return NULL; | |
35603 | } | |
35604 | ||
35605 | ||
c32bde28 | 35606 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35607 | PyObject *resultobj; |
35608 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 35609 | bool arg2 = (bool) true ; |
d55e5bfc RD |
35610 | PyObject * obj0 = 0 ; |
35611 | PyObject * obj1 = 0 ; | |
35612 | char *kwnames[] = { | |
35613 | (char *) "self",(char *) "enable", NULL | |
35614 | }; | |
35615 | ||
35616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 35619 | if (obj1) { |
093d3ff1 RD |
35620 | { |
35621 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
35622 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35623 | } | |
d55e5bfc RD |
35624 | } |
35625 | { | |
35626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35627 | (arg1)->Enable(arg2); | |
35628 | ||
35629 | wxPyEndAllowThreads(__tstate); | |
35630 | if (PyErr_Occurred()) SWIG_fail; | |
35631 | } | |
35632 | Py_INCREF(Py_None); resultobj = Py_None; | |
35633 | return resultobj; | |
35634 | fail: | |
35635 | return NULL; | |
35636 | } | |
35637 | ||
35638 | ||
c32bde28 | 35639 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35640 | PyObject *resultobj; |
35641 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35642 | bool result; | |
35643 | PyObject * obj0 = 0 ; | |
35644 | char *kwnames[] = { | |
35645 | (char *) "self", NULL | |
35646 | }; | |
35647 | ||
35648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35651 | { |
35652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35653 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
35654 | ||
35655 | wxPyEndAllowThreads(__tstate); | |
35656 | if (PyErr_Occurred()) SWIG_fail; | |
35657 | } | |
35658 | { | |
35659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35660 | } | |
35661 | return resultobj; | |
35662 | fail: | |
35663 | return NULL; | |
35664 | } | |
35665 | ||
35666 | ||
c32bde28 | 35667 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35668 | PyObject *resultobj; |
35669 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 35670 | bool arg2 = (bool) true ; |
d55e5bfc RD |
35671 | PyObject * obj0 = 0 ; |
35672 | PyObject * obj1 = 0 ; | |
35673 | char *kwnames[] = { | |
35674 | (char *) "self",(char *) "check", NULL | |
35675 | }; | |
35676 | ||
35677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 35680 | if (obj1) { |
093d3ff1 RD |
35681 | { |
35682 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
35683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35684 | } | |
d55e5bfc RD |
35685 | } |
35686 | { | |
35687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35688 | (arg1)->Check(arg2); | |
35689 | ||
35690 | wxPyEndAllowThreads(__tstate); | |
35691 | if (PyErr_Occurred()) SWIG_fail; | |
35692 | } | |
35693 | Py_INCREF(Py_None); resultobj = Py_None; | |
35694 | return resultobj; | |
35695 | fail: | |
35696 | return NULL; | |
35697 | } | |
35698 | ||
35699 | ||
c32bde28 | 35700 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35701 | PyObject *resultobj; |
35702 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35703 | bool result; | |
35704 | PyObject * obj0 = 0 ; | |
35705 | char *kwnames[] = { | |
35706 | (char *) "self", NULL | |
35707 | }; | |
35708 | ||
35709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35712 | { |
35713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35714 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
35715 | ||
35716 | wxPyEndAllowThreads(__tstate); | |
35717 | if (PyErr_Occurred()) SWIG_fail; | |
35718 | } | |
35719 | { | |
35720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35721 | } | |
35722 | return resultobj; | |
35723 | fail: | |
35724 | return NULL; | |
35725 | } | |
35726 | ||
35727 | ||
c32bde28 | 35728 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35729 | PyObject *resultobj; |
35730 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35731 | PyObject * obj0 = 0 ; | |
35732 | char *kwnames[] = { | |
35733 | (char *) "self", NULL | |
35734 | }; | |
35735 | ||
35736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35739 | { |
35740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35741 | (arg1)->Toggle(); | |
35742 | ||
35743 | wxPyEndAllowThreads(__tstate); | |
35744 | if (PyErr_Occurred()) SWIG_fail; | |
35745 | } | |
35746 | Py_INCREF(Py_None); resultobj = Py_None; | |
35747 | return resultobj; | |
35748 | fail: | |
35749 | return NULL; | |
35750 | } | |
35751 | ||
35752 | ||
c32bde28 | 35753 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35754 | PyObject *resultobj; |
35755 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35756 | wxString *arg2 = 0 ; | |
ae8162c8 | 35757 | bool temp2 = false ; |
d55e5bfc RD |
35758 | PyObject * obj0 = 0 ; |
35759 | PyObject * obj1 = 0 ; | |
35760 | char *kwnames[] = { | |
35761 | (char *) "self",(char *) "str", NULL | |
35762 | }; | |
35763 | ||
35764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35767 | { |
35768 | arg2 = wxString_in_helper(obj1); | |
35769 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 35770 | temp2 = true; |
d55e5bfc RD |
35771 | } |
35772 | { | |
35773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35774 | (arg1)->SetHelp((wxString const &)*arg2); | |
35775 | ||
35776 | wxPyEndAllowThreads(__tstate); | |
35777 | if (PyErr_Occurred()) SWIG_fail; | |
35778 | } | |
35779 | Py_INCREF(Py_None); resultobj = Py_None; | |
35780 | { | |
35781 | if (temp2) | |
35782 | delete arg2; | |
35783 | } | |
35784 | return resultobj; | |
35785 | fail: | |
35786 | { | |
35787 | if (temp2) | |
35788 | delete arg2; | |
35789 | } | |
35790 | return NULL; | |
35791 | } | |
35792 | ||
35793 | ||
c32bde28 | 35794 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35795 | PyObject *resultobj; |
35796 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35797 | wxString *result; | |
35798 | PyObject * obj0 = 0 ; | |
35799 | char *kwnames[] = { | |
35800 | (char *) "self", NULL | |
35801 | }; | |
35802 | ||
35803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35804 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35805 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35806 | { |
35807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35808 | { | |
35809 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
35810 | result = (wxString *) &_result_ref; | |
35811 | } | |
35812 | ||
35813 | wxPyEndAllowThreads(__tstate); | |
35814 | if (PyErr_Occurred()) SWIG_fail; | |
35815 | } | |
35816 | { | |
35817 | #if wxUSE_UNICODE | |
35818 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
35819 | #else | |
35820 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
35821 | #endif | |
35822 | } | |
35823 | return resultobj; | |
35824 | fail: | |
35825 | return NULL; | |
35826 | } | |
35827 | ||
35828 | ||
c32bde28 | 35829 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35830 | PyObject *resultobj; |
35831 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35832 | wxAcceleratorEntry *result; | |
35833 | PyObject * obj0 = 0 ; | |
35834 | char *kwnames[] = { | |
35835 | (char *) "self", NULL | |
35836 | }; | |
35837 | ||
35838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35841 | { |
35842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35843 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
35844 | ||
35845 | wxPyEndAllowThreads(__tstate); | |
35846 | if (PyErr_Occurred()) SWIG_fail; | |
35847 | } | |
35848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
35849 | return resultobj; | |
35850 | fail: | |
35851 | return NULL; | |
35852 | } | |
35853 | ||
35854 | ||
c32bde28 | 35855 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35856 | PyObject *resultobj; |
35857 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35858 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
35859 | PyObject * obj0 = 0 ; | |
35860 | PyObject * obj1 = 0 ; | |
35861 | char *kwnames[] = { | |
35862 | (char *) "self",(char *) "accel", NULL | |
35863 | }; | |
35864 | ||
35865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35868 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); | |
35869 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
35870 | { |
35871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35872 | (arg1)->SetAccel(arg2); | |
35873 | ||
35874 | wxPyEndAllowThreads(__tstate); | |
35875 | if (PyErr_Occurred()) SWIG_fail; | |
35876 | } | |
35877 | Py_INCREF(Py_None); resultobj = Py_None; | |
35878 | return resultobj; | |
35879 | fail: | |
35880 | return NULL; | |
35881 | } | |
35882 | ||
35883 | ||
c32bde28 | 35884 | static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35885 | PyObject *resultobj; |
35886 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35887 | wxFont *arg2 = 0 ; | |
35888 | PyObject * obj0 = 0 ; | |
35889 | PyObject * obj1 = 0 ; | |
35890 | char *kwnames[] = { | |
35891 | (char *) "self",(char *) "font", NULL | |
35892 | }; | |
35893 | ||
35894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35897 | { | |
35898 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
35899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35900 | if (arg2 == NULL) { | |
35901 | SWIG_null_ref("wxFont"); | |
35902 | } | |
35903 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
35904 | } |
35905 | { | |
35906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35907 | (arg1)->SetFont((wxFont const &)*arg2); | |
35908 | ||
35909 | wxPyEndAllowThreads(__tstate); | |
35910 | if (PyErr_Occurred()) SWIG_fail; | |
35911 | } | |
35912 | Py_INCREF(Py_None); resultobj = Py_None; | |
35913 | return resultobj; | |
35914 | fail: | |
35915 | return NULL; | |
35916 | } | |
35917 | ||
35918 | ||
c32bde28 | 35919 | static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35920 | PyObject *resultobj; |
35921 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35922 | wxFont result; | |
35923 | PyObject * obj0 = 0 ; | |
35924 | char *kwnames[] = { | |
35925 | (char *) "self", NULL | |
35926 | }; | |
35927 | ||
35928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35931 | { |
35932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35933 | result = (arg1)->GetFont(); | |
35934 | ||
35935 | wxPyEndAllowThreads(__tstate); | |
35936 | if (PyErr_Occurred()) SWIG_fail; | |
35937 | } | |
35938 | { | |
35939 | wxFont * resultptr; | |
093d3ff1 | 35940 | resultptr = new wxFont((wxFont &)(result)); |
d55e5bfc RD |
35941 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
35942 | } | |
35943 | return resultobj; | |
35944 | fail: | |
35945 | return NULL; | |
35946 | } | |
35947 | ||
35948 | ||
c32bde28 | 35949 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35950 | PyObject *resultobj; |
35951 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35952 | wxColour *arg2 = 0 ; | |
35953 | wxColour temp2 ; | |
35954 | PyObject * obj0 = 0 ; | |
35955 | PyObject * obj1 = 0 ; | |
35956 | char *kwnames[] = { | |
35957 | (char *) "self",(char *) "colText", NULL | |
35958 | }; | |
35959 | ||
35960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35963 | { |
35964 | arg2 = &temp2; | |
35965 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
35966 | } | |
35967 | { | |
35968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35969 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
35970 | ||
35971 | wxPyEndAllowThreads(__tstate); | |
35972 | if (PyErr_Occurred()) SWIG_fail; | |
35973 | } | |
35974 | Py_INCREF(Py_None); resultobj = Py_None; | |
35975 | return resultobj; | |
35976 | fail: | |
35977 | return NULL; | |
35978 | } | |
35979 | ||
35980 | ||
c32bde28 | 35981 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35982 | PyObject *resultobj; |
35983 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35984 | wxColour result; | |
35985 | PyObject * obj0 = 0 ; | |
35986 | char *kwnames[] = { | |
35987 | (char *) "self", NULL | |
35988 | }; | |
35989 | ||
35990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35991 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35992 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
35993 | { |
35994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35995 | result = (arg1)->GetTextColour(); | |
35996 | ||
35997 | wxPyEndAllowThreads(__tstate); | |
35998 | if (PyErr_Occurred()) SWIG_fail; | |
35999 | } | |
36000 | { | |
36001 | wxColour * resultptr; | |
093d3ff1 | 36002 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
36003 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
36004 | } | |
36005 | return resultobj; | |
36006 | fail: | |
36007 | return NULL; | |
36008 | } | |
36009 | ||
36010 | ||
c32bde28 | 36011 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36012 | PyObject *resultobj; |
36013 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36014 | wxColour *arg2 = 0 ; | |
36015 | wxColour temp2 ; | |
36016 | PyObject * obj0 = 0 ; | |
36017 | PyObject * obj1 = 0 ; | |
36018 | char *kwnames[] = { | |
36019 | (char *) "self",(char *) "colBack", NULL | |
36020 | }; | |
36021 | ||
36022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36025 | { |
36026 | arg2 = &temp2; | |
36027 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
36028 | } | |
36029 | { | |
36030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36031 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
36032 | ||
36033 | wxPyEndAllowThreads(__tstate); | |
36034 | if (PyErr_Occurred()) SWIG_fail; | |
36035 | } | |
36036 | Py_INCREF(Py_None); resultobj = Py_None; | |
36037 | return resultobj; | |
36038 | fail: | |
36039 | return NULL; | |
36040 | } | |
36041 | ||
36042 | ||
c32bde28 | 36043 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36044 | PyObject *resultobj; |
36045 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36046 | wxColour result; | |
36047 | PyObject * obj0 = 0 ; | |
36048 | char *kwnames[] = { | |
36049 | (char *) "self", NULL | |
36050 | }; | |
36051 | ||
36052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36055 | { |
36056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36057 | result = (arg1)->GetBackgroundColour(); | |
36058 | ||
36059 | wxPyEndAllowThreads(__tstate); | |
36060 | if (PyErr_Occurred()) SWIG_fail; | |
36061 | } | |
36062 | { | |
36063 | wxColour * resultptr; | |
093d3ff1 | 36064 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
36065 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
36066 | } | |
36067 | return resultobj; | |
36068 | fail: | |
36069 | return NULL; | |
36070 | } | |
36071 | ||
36072 | ||
c32bde28 | 36073 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36074 | PyObject *resultobj; |
36075 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36076 | wxBitmap *arg2 = 0 ; | |
36077 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
36078 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
36079 | PyObject * obj0 = 0 ; | |
36080 | PyObject * obj1 = 0 ; | |
36081 | PyObject * obj2 = 0 ; | |
36082 | char *kwnames[] = { | |
36083 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
36084 | }; | |
36085 | ||
36086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
36087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36089 | { | |
36090 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36091 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36092 | if (arg2 == NULL) { | |
36093 | SWIG_null_ref("wxBitmap"); | |
36094 | } | |
36095 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36096 | } |
36097 | if (obj2) { | |
093d3ff1 RD |
36098 | { |
36099 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36100 | if (SWIG_arg_fail(3)) SWIG_fail; | |
36101 | if (arg3 == NULL) { | |
36102 | SWIG_null_ref("wxBitmap"); | |
36103 | } | |
36104 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
36105 | } |
36106 | } | |
36107 | { | |
36108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36109 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
36110 | ||
36111 | wxPyEndAllowThreads(__tstate); | |
36112 | if (PyErr_Occurred()) SWIG_fail; | |
36113 | } | |
36114 | Py_INCREF(Py_None); resultobj = Py_None; | |
36115 | return resultobj; | |
36116 | fail: | |
36117 | return NULL; | |
36118 | } | |
36119 | ||
36120 | ||
c32bde28 | 36121 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36122 | PyObject *resultobj; |
36123 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36124 | wxBitmap *arg2 = 0 ; | |
36125 | PyObject * obj0 = 0 ; | |
36126 | PyObject * obj1 = 0 ; | |
36127 | char *kwnames[] = { | |
36128 | (char *) "self",(char *) "bmpDisabled", NULL | |
36129 | }; | |
36130 | ||
36131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36134 | { | |
36135 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36137 | if (arg2 == NULL) { | |
36138 | SWIG_null_ref("wxBitmap"); | |
36139 | } | |
36140 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36141 | } |
36142 | { | |
36143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36144 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
36145 | ||
36146 | wxPyEndAllowThreads(__tstate); | |
36147 | if (PyErr_Occurred()) SWIG_fail; | |
36148 | } | |
36149 | Py_INCREF(Py_None); resultobj = Py_None; | |
36150 | return resultobj; | |
36151 | fail: | |
36152 | return NULL; | |
36153 | } | |
36154 | ||
36155 | ||
c32bde28 | 36156 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36157 | PyObject *resultobj; |
36158 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36159 | wxBitmap *result; | |
36160 | PyObject * obj0 = 0 ; | |
36161 | char *kwnames[] = { | |
36162 | (char *) "self", NULL | |
36163 | }; | |
36164 | ||
36165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36168 | { |
36169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36170 | { | |
36171 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
36172 | result = (wxBitmap *) &_result_ref; | |
36173 | } | |
36174 | ||
36175 | wxPyEndAllowThreads(__tstate); | |
36176 | if (PyErr_Occurred()) SWIG_fail; | |
36177 | } | |
36178 | { | |
36179 | wxBitmap* resultptr = new wxBitmap(*result); | |
36180 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
36181 | } | |
36182 | return resultobj; | |
36183 | fail: | |
36184 | return NULL; | |
36185 | } | |
36186 | ||
36187 | ||
c32bde28 | 36188 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36189 | PyObject *resultobj; |
36190 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36191 | int arg2 ; | |
36192 | PyObject * obj0 = 0 ; | |
36193 | PyObject * obj1 = 0 ; | |
36194 | char *kwnames[] = { | |
36195 | (char *) "self",(char *) "nWidth", NULL | |
36196 | }; | |
36197 | ||
36198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36201 | { | |
36202 | arg2 = (int)(SWIG_As_int(obj1)); | |
36203 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36204 | } | |
d55e5bfc RD |
36205 | { |
36206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36207 | (arg1)->SetMarginWidth(arg2); | |
36208 | ||
36209 | wxPyEndAllowThreads(__tstate); | |
36210 | if (PyErr_Occurred()) SWIG_fail; | |
36211 | } | |
36212 | Py_INCREF(Py_None); resultobj = Py_None; | |
36213 | return resultobj; | |
36214 | fail: | |
36215 | return NULL; | |
36216 | } | |
36217 | ||
36218 | ||
c32bde28 | 36219 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36220 | PyObject *resultobj; |
36221 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36222 | int result; | |
36223 | PyObject * obj0 = 0 ; | |
36224 | char *kwnames[] = { | |
36225 | (char *) "self", NULL | |
36226 | }; | |
36227 | ||
36228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36231 | { |
36232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36233 | result = (int)(arg1)->GetMarginWidth(); | |
36234 | ||
36235 | wxPyEndAllowThreads(__tstate); | |
36236 | if (PyErr_Occurred()) SWIG_fail; | |
36237 | } | |
093d3ff1 RD |
36238 | { |
36239 | resultobj = SWIG_From_int((int)(result)); | |
36240 | } | |
d55e5bfc RD |
36241 | return resultobj; |
36242 | fail: | |
36243 | return NULL; | |
36244 | } | |
36245 | ||
36246 | ||
c32bde28 | 36247 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36248 | PyObject *resultobj; |
36249 | int result; | |
36250 | char *kwnames[] = { | |
36251 | NULL | |
36252 | }; | |
36253 | ||
36254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
36255 | { | |
36256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36257 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
36258 | ||
36259 | wxPyEndAllowThreads(__tstate); | |
36260 | if (PyErr_Occurred()) SWIG_fail; | |
36261 | } | |
093d3ff1 RD |
36262 | { |
36263 | resultobj = SWIG_From_int((int)(result)); | |
36264 | } | |
d55e5bfc RD |
36265 | return resultobj; |
36266 | fail: | |
36267 | return NULL; | |
36268 | } | |
36269 | ||
36270 | ||
c32bde28 | 36271 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36272 | PyObject *resultobj; |
36273 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36274 | bool result; | |
36275 | PyObject * obj0 = 0 ; | |
36276 | char *kwnames[] = { | |
36277 | (char *) "self", NULL | |
36278 | }; | |
36279 | ||
36280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36283 | { |
36284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36285 | result = (bool)(arg1)->IsOwnerDrawn(); | |
36286 | ||
36287 | wxPyEndAllowThreads(__tstate); | |
36288 | if (PyErr_Occurred()) SWIG_fail; | |
36289 | } | |
36290 | { | |
36291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36292 | } | |
36293 | return resultobj; | |
36294 | fail: | |
36295 | return NULL; | |
36296 | } | |
36297 | ||
36298 | ||
c32bde28 | 36299 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36300 | PyObject *resultobj; |
36301 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 36302 | bool arg2 = (bool) true ; |
d55e5bfc RD |
36303 | PyObject * obj0 = 0 ; |
36304 | PyObject * obj1 = 0 ; | |
36305 | char *kwnames[] = { | |
36306 | (char *) "self",(char *) "ownerDrawn", NULL | |
36307 | }; | |
36308 | ||
36309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36310 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36311 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 36312 | if (obj1) { |
093d3ff1 RD |
36313 | { |
36314 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
36315 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36316 | } | |
d55e5bfc RD |
36317 | } |
36318 | { | |
36319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36320 | (arg1)->SetOwnerDrawn(arg2); | |
36321 | ||
36322 | wxPyEndAllowThreads(__tstate); | |
36323 | if (PyErr_Occurred()) SWIG_fail; | |
36324 | } | |
36325 | Py_INCREF(Py_None); resultobj = Py_None; | |
36326 | return resultobj; | |
36327 | fail: | |
36328 | return NULL; | |
36329 | } | |
36330 | ||
36331 | ||
c32bde28 | 36332 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36333 | PyObject *resultobj; |
36334 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36335 | PyObject * obj0 = 0 ; | |
36336 | char *kwnames[] = { | |
36337 | (char *) "self", NULL | |
36338 | }; | |
36339 | ||
36340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36343 | { |
36344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36345 | (arg1)->ResetOwnerDrawn(); | |
36346 | ||
36347 | wxPyEndAllowThreads(__tstate); | |
36348 | if (PyErr_Occurred()) SWIG_fail; | |
36349 | } | |
36350 | Py_INCREF(Py_None); resultobj = Py_None; | |
36351 | return resultobj; | |
36352 | fail: | |
36353 | return NULL; | |
36354 | } | |
36355 | ||
36356 | ||
c32bde28 | 36357 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36358 | PyObject *resultobj; |
36359 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36360 | wxBitmap *arg2 = 0 ; | |
36361 | PyObject * obj0 = 0 ; | |
36362 | PyObject * obj1 = 0 ; | |
36363 | char *kwnames[] = { | |
36364 | (char *) "self",(char *) "bitmap", NULL | |
36365 | }; | |
36366 | ||
36367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36370 | { | |
36371 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36373 | if (arg2 == NULL) { | |
36374 | SWIG_null_ref("wxBitmap"); | |
36375 | } | |
36376 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36377 | } |
36378 | { | |
36379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36380 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
36381 | ||
36382 | wxPyEndAllowThreads(__tstate); | |
36383 | if (PyErr_Occurred()) SWIG_fail; | |
36384 | } | |
36385 | Py_INCREF(Py_None); resultobj = Py_None; | |
36386 | return resultobj; | |
36387 | fail: | |
36388 | return NULL; | |
36389 | } | |
36390 | ||
36391 | ||
c32bde28 | 36392 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36393 | PyObject *resultobj; |
36394 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36395 | wxBitmap *result; | |
36396 | PyObject * obj0 = 0 ; | |
36397 | char *kwnames[] = { | |
36398 | (char *) "self", NULL | |
36399 | }; | |
36400 | ||
36401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36404 | { |
36405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36406 | { | |
36407 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
36408 | result = (wxBitmap *) &_result_ref; | |
36409 | } | |
36410 | ||
36411 | wxPyEndAllowThreads(__tstate); | |
36412 | if (PyErr_Occurred()) SWIG_fail; | |
36413 | } | |
36414 | { | |
36415 | wxBitmap* resultptr = new wxBitmap(*result); | |
36416 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
36417 | } | |
36418 | return resultobj; | |
36419 | fail: | |
36420 | return NULL; | |
36421 | } | |
36422 | ||
36423 | ||
c32bde28 | 36424 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36425 | PyObject *obj; |
36426 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36427 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
36428 | Py_INCREF(obj); | |
36429 | return Py_BuildValue((char *)""); | |
36430 | } | |
c32bde28 | 36431 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
36432 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
36433 | return 1; | |
36434 | } | |
36435 | ||
36436 | ||
093d3ff1 | 36437 | static PyObject *_wrap_ControlNameStr_get(void) { |
d55e5bfc RD |
36438 | PyObject *pyobj; |
36439 | ||
36440 | { | |
36441 | #if wxUSE_UNICODE | |
36442 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
36443 | #else | |
36444 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
36445 | #endif | |
36446 | } | |
36447 | return pyobj; | |
36448 | } | |
36449 | ||
36450 | ||
c32bde28 | 36451 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36452 | PyObject *resultobj; |
36453 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 36454 | int arg2 = (int) -1 ; |
d55e5bfc RD |
36455 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
36456 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
36457 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
36458 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
36459 | long arg5 = (long) 0 ; | |
36460 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
36461 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
36462 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
36463 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
36464 | wxControl *result; | |
36465 | wxPoint temp3 ; | |
36466 | wxSize temp4 ; | |
ae8162c8 | 36467 | bool temp7 = false ; |
d55e5bfc RD |
36468 | PyObject * obj0 = 0 ; |
36469 | PyObject * obj1 = 0 ; | |
36470 | PyObject * obj2 = 0 ; | |
36471 | PyObject * obj3 = 0 ; | |
36472 | PyObject * obj4 = 0 ; | |
36473 | PyObject * obj5 = 0 ; | |
36474 | PyObject * obj6 = 0 ; | |
36475 | char *kwnames[] = { | |
36476 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
36477 | }; | |
36478 | ||
248ed943 | 36479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
36480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
36481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 36482 | if (obj1) { |
093d3ff1 RD |
36483 | { |
36484 | arg2 = (int)(SWIG_As_int(obj1)); | |
36485 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36486 | } | |
248ed943 | 36487 | } |
d55e5bfc RD |
36488 | if (obj2) { |
36489 | { | |
36490 | arg3 = &temp3; | |
36491 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36492 | } | |
36493 | } | |
36494 | if (obj3) { | |
36495 | { | |
36496 | arg4 = &temp4; | |
36497 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36498 | } | |
36499 | } | |
36500 | if (obj4) { | |
093d3ff1 RD |
36501 | { |
36502 | arg5 = (long)(SWIG_As_long(obj4)); | |
36503 | if (SWIG_arg_fail(5)) SWIG_fail; | |
36504 | } | |
d55e5bfc RD |
36505 | } |
36506 | if (obj5) { | |
093d3ff1 RD |
36507 | { |
36508 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
36509 | if (SWIG_arg_fail(6)) SWIG_fail; | |
36510 | if (arg6 == NULL) { | |
36511 | SWIG_null_ref("wxValidator"); | |
36512 | } | |
36513 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
36514 | } |
36515 | } | |
36516 | if (obj6) { | |
36517 | { | |
36518 | arg7 = wxString_in_helper(obj6); | |
36519 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 36520 | temp7 = true; |
d55e5bfc RD |
36521 | } |
36522 | } | |
36523 | { | |
0439c23b | 36524 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
36525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36526 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
36527 | ||
36528 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 36529 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 36530 | } |
b0f7404b | 36531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
36532 | { |
36533 | if (temp7) | |
36534 | delete arg7; | |
36535 | } | |
36536 | return resultobj; | |
36537 | fail: | |
36538 | { | |
36539 | if (temp7) | |
36540 | delete arg7; | |
36541 | } | |
36542 | return NULL; | |
36543 | } | |
36544 | ||
36545 | ||
c32bde28 | 36546 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36547 | PyObject *resultobj; |
36548 | wxControl *result; | |
36549 | char *kwnames[] = { | |
36550 | NULL | |
36551 | }; | |
36552 | ||
36553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
36554 | { | |
0439c23b | 36555 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
36556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36557 | result = (wxControl *)new wxControl(); | |
36558 | ||
36559 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 36560 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 36561 | } |
b0f7404b | 36562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
36563 | return resultobj; |
36564 | fail: | |
36565 | return NULL; | |
36566 | } | |
36567 | ||
36568 | ||
c32bde28 | 36569 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36570 | PyObject *resultobj; |
36571 | wxControl *arg1 = (wxControl *) 0 ; | |
36572 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 36573 | int arg3 = (int) -1 ; |
d55e5bfc RD |
36574 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
36575 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
36576 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
36577 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
36578 | long arg6 = (long) 0 ; | |
36579 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
36580 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
36581 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
36582 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
36583 | bool result; | |
36584 | wxPoint temp4 ; | |
36585 | wxSize temp5 ; | |
ae8162c8 | 36586 | bool temp8 = false ; |
d55e5bfc RD |
36587 | PyObject * obj0 = 0 ; |
36588 | PyObject * obj1 = 0 ; | |
36589 | PyObject * obj2 = 0 ; | |
36590 | PyObject * obj3 = 0 ; | |
36591 | PyObject * obj4 = 0 ; | |
36592 | PyObject * obj5 = 0 ; | |
36593 | PyObject * obj6 = 0 ; | |
36594 | PyObject * obj7 = 0 ; | |
36595 | char *kwnames[] = { | |
36596 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
36597 | }; | |
36598 | ||
248ed943 | 36599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
36600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
36601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36602 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
36603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 36604 | if (obj2) { |
093d3ff1 RD |
36605 | { |
36606 | arg3 = (int)(SWIG_As_int(obj2)); | |
36607 | if (SWIG_arg_fail(3)) SWIG_fail; | |
36608 | } | |
248ed943 | 36609 | } |
d55e5bfc RD |
36610 | if (obj3) { |
36611 | { | |
36612 | arg4 = &temp4; | |
36613 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36614 | } | |
36615 | } | |
36616 | if (obj4) { | |
36617 | { | |
36618 | arg5 = &temp5; | |
36619 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36620 | } | |
36621 | } | |
36622 | if (obj5) { | |
093d3ff1 RD |
36623 | { |
36624 | arg6 = (long)(SWIG_As_long(obj5)); | |
36625 | if (SWIG_arg_fail(6)) SWIG_fail; | |
36626 | } | |
d55e5bfc RD |
36627 | } |
36628 | if (obj6) { | |
093d3ff1 RD |
36629 | { |
36630 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
36631 | if (SWIG_arg_fail(7)) SWIG_fail; | |
36632 | if (arg7 == NULL) { | |
36633 | SWIG_null_ref("wxValidator"); | |
36634 | } | |
36635 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
36636 | } |
36637 | } | |
36638 | if (obj7) { | |
36639 | { | |
36640 | arg8 = wxString_in_helper(obj7); | |
36641 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 36642 | temp8 = true; |
d55e5bfc RD |
36643 | } |
36644 | } | |
36645 | { | |
36646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36647 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
36648 | ||
36649 | wxPyEndAllowThreads(__tstate); | |
36650 | if (PyErr_Occurred()) SWIG_fail; | |
36651 | } | |
36652 | { | |
36653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36654 | } | |
36655 | { | |
36656 | if (temp8) | |
36657 | delete arg8; | |
36658 | } | |
36659 | return resultobj; | |
36660 | fail: | |
36661 | { | |
36662 | if (temp8) | |
36663 | delete arg8; | |
36664 | } | |
36665 | return NULL; | |
36666 | } | |
36667 | ||
36668 | ||
c32bde28 | 36669 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36670 | PyObject *resultobj; |
36671 | wxControl *arg1 = (wxControl *) 0 ; | |
36672 | wxCommandEvent *arg2 = 0 ; | |
36673 | PyObject * obj0 = 0 ; | |
36674 | PyObject * obj1 = 0 ; | |
36675 | char *kwnames[] = { | |
36676 | (char *) "self",(char *) "event", NULL | |
36677 | }; | |
36678 | ||
36679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
36681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36682 | { | |
36683 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); | |
36684 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36685 | if (arg2 == NULL) { | |
36686 | SWIG_null_ref("wxCommandEvent"); | |
36687 | } | |
36688 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
36689 | } |
36690 | { | |
36691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36692 | (arg1)->Command(*arg2); | |
36693 | ||
36694 | wxPyEndAllowThreads(__tstate); | |
36695 | if (PyErr_Occurred()) SWIG_fail; | |
36696 | } | |
36697 | Py_INCREF(Py_None); resultobj = Py_None; | |
36698 | return resultobj; | |
36699 | fail: | |
36700 | return NULL; | |
36701 | } | |
36702 | ||
36703 | ||
c32bde28 | 36704 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36705 | PyObject *resultobj; |
36706 | wxControl *arg1 = (wxControl *) 0 ; | |
36707 | wxString result; | |
36708 | PyObject * obj0 = 0 ; | |
36709 | char *kwnames[] = { | |
36710 | (char *) "self", NULL | |
36711 | }; | |
36712 | ||
36713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36714 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
36715 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36716 | { |
36717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36718 | result = (arg1)->GetLabel(); | |
36719 | ||
36720 | wxPyEndAllowThreads(__tstate); | |
36721 | if (PyErr_Occurred()) SWIG_fail; | |
36722 | } | |
36723 | { | |
36724 | #if wxUSE_UNICODE | |
36725 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36726 | #else | |
36727 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36728 | #endif | |
36729 | } | |
36730 | return resultobj; | |
36731 | fail: | |
36732 | return NULL; | |
36733 | } | |
36734 | ||
36735 | ||
c32bde28 | 36736 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36737 | PyObject *resultobj; |
36738 | wxControl *arg1 = (wxControl *) 0 ; | |
36739 | wxString *arg2 = 0 ; | |
ae8162c8 | 36740 | bool temp2 = false ; |
d55e5bfc RD |
36741 | PyObject * obj0 = 0 ; |
36742 | PyObject * obj1 = 0 ; | |
36743 | char *kwnames[] = { | |
36744 | (char *) "self",(char *) "label", NULL | |
36745 | }; | |
36746 | ||
36747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
36749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36750 | { |
36751 | arg2 = wxString_in_helper(obj1); | |
36752 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 36753 | temp2 = true; |
d55e5bfc RD |
36754 | } |
36755 | { | |
36756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36757 | (arg1)->SetLabel((wxString const &)*arg2); | |
36758 | ||
36759 | wxPyEndAllowThreads(__tstate); | |
36760 | if (PyErr_Occurred()) SWIG_fail; | |
36761 | } | |
36762 | Py_INCREF(Py_None); resultobj = Py_None; | |
36763 | { | |
36764 | if (temp2) | |
36765 | delete arg2; | |
36766 | } | |
36767 | return resultobj; | |
36768 | fail: | |
36769 | { | |
36770 | if (temp2) | |
36771 | delete arg2; | |
36772 | } | |
36773 | return NULL; | |
36774 | } | |
36775 | ||
36776 | ||
c32bde28 | 36777 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 36778 | PyObject *resultobj; |
093d3ff1 | 36779 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
36780 | wxVisualAttributes result; |
36781 | PyObject * obj0 = 0 ; | |
36782 | char *kwnames[] = { | |
36783 | (char *) "variant", NULL | |
36784 | }; | |
36785 | ||
36786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
36787 | if (obj0) { | |
093d3ff1 RD |
36788 | { |
36789 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
36790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36791 | } | |
d55e5bfc RD |
36792 | } |
36793 | { | |
a001823c | 36794 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
36795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36796 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
36797 | ||
36798 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 36799 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
36800 | } |
36801 | { | |
36802 | wxVisualAttributes * resultptr; | |
093d3ff1 | 36803 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
36804 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
36805 | } | |
36806 | return resultobj; | |
36807 | fail: | |
36808 | return NULL; | |
36809 | } | |
36810 | ||
36811 | ||
c32bde28 | 36812 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36813 | PyObject *obj; |
36814 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36815 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
36816 | Py_INCREF(obj); | |
36817 | return Py_BuildValue((char *)""); | |
36818 | } | |
c32bde28 | 36819 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36820 | PyObject *resultobj; |
36821 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
36822 | wxString *arg2 = 0 ; | |
36823 | PyObject *arg3 = (PyObject *) NULL ; | |
36824 | int result; | |
ae8162c8 | 36825 | bool temp2 = false ; |
d55e5bfc RD |
36826 | PyObject * obj0 = 0 ; |
36827 | PyObject * obj1 = 0 ; | |
36828 | PyObject * obj2 = 0 ; | |
36829 | char *kwnames[] = { | |
36830 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
36831 | }; | |
36832 | ||
36833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
36834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
36835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36836 | { |
36837 | arg2 = wxString_in_helper(obj1); | |
36838 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 36839 | temp2 = true; |
d55e5bfc RD |
36840 | } |
36841 | if (obj2) { | |
36842 | arg3 = obj2; | |
36843 | } | |
36844 | { | |
36845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36846 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
36847 | ||
36848 | wxPyEndAllowThreads(__tstate); | |
36849 | if (PyErr_Occurred()) SWIG_fail; | |
36850 | } | |
093d3ff1 RD |
36851 | { |
36852 | resultobj = SWIG_From_int((int)(result)); | |
36853 | } | |
d55e5bfc RD |
36854 | { |
36855 | if (temp2) | |
36856 | delete arg2; | |
36857 | } | |
36858 | return resultobj; | |
36859 | fail: | |
36860 | { | |
36861 | if (temp2) | |
36862 | delete arg2; | |
36863 | } | |
36864 | return NULL; | |
36865 | } | |
36866 | ||
36867 | ||
c32bde28 | 36868 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36869 | PyObject *resultobj; |
36870 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
36871 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 36872 | bool temp2 = false ; |
d55e5bfc RD |
36873 | PyObject * obj0 = 0 ; |
36874 | PyObject * obj1 = 0 ; | |
36875 | char *kwnames[] = { | |
36876 | (char *) "self",(char *) "strings", NULL | |
36877 | }; | |
36878 | ||
36879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36880 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
36881 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36882 | { |
36883 | if (! PySequence_Check(obj1)) { | |
36884 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
36885 | SWIG_fail; | |
36886 | } | |
36887 | arg2 = new wxArrayString; | |
ae8162c8 | 36888 | temp2 = true; |
d55e5bfc RD |
36889 | int i, len=PySequence_Length(obj1); |
36890 | for (i=0; i<len; i++) { | |
36891 | PyObject* item = PySequence_GetItem(obj1, i); | |
36892 | #if wxUSE_UNICODE | |
36893 | PyObject* str = PyObject_Unicode(item); | |
36894 | #else | |
36895 | PyObject* str = PyObject_Str(item); | |
36896 | #endif | |
36897 | if (PyErr_Occurred()) SWIG_fail; | |
36898 | arg2->Add(Py2wxString(str)); | |
36899 | Py_DECREF(item); | |
36900 | Py_DECREF(str); | |
36901 | } | |
36902 | } | |
36903 | { | |
36904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36905 | (arg1)->Append((wxArrayString const &)*arg2); | |
36906 | ||
36907 | wxPyEndAllowThreads(__tstate); | |
36908 | if (PyErr_Occurred()) SWIG_fail; | |
36909 | } | |
36910 | Py_INCREF(Py_None); resultobj = Py_None; | |
36911 | { | |
36912 | if (temp2) delete arg2; | |
36913 | } | |
36914 | return resultobj; | |
36915 | fail: | |
36916 | { | |
36917 | if (temp2) delete arg2; | |
36918 | } | |
36919 | return NULL; | |
36920 | } | |
36921 | ||
36922 | ||
c32bde28 | 36923 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36924 | PyObject *resultobj; |
36925 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
36926 | wxString *arg2 = 0 ; | |
36927 | int arg3 ; | |
36928 | PyObject *arg4 = (PyObject *) NULL ; | |
36929 | int result; | |
ae8162c8 | 36930 | bool temp2 = false ; |
d55e5bfc RD |
36931 | PyObject * obj0 = 0 ; |
36932 | PyObject * obj1 = 0 ; | |
36933 | PyObject * obj2 = 0 ; | |
36934 | PyObject * obj3 = 0 ; | |
36935 | char *kwnames[] = { | |
36936 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
36937 | }; | |
36938 | ||
36939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
36940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
36941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36942 | { |
36943 | arg2 = wxString_in_helper(obj1); | |
36944 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 36945 | temp2 = true; |
d55e5bfc | 36946 | } |
093d3ff1 RD |
36947 | { |
36948 | arg3 = (int)(SWIG_As_int(obj2)); | |
36949 | if (SWIG_arg_fail(3)) SWIG_fail; | |
36950 | } | |
d55e5bfc RD |
36951 | if (obj3) { |
36952 | arg4 = obj3; | |
36953 | } | |
36954 | { | |
36955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36956 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
36957 | ||
36958 | wxPyEndAllowThreads(__tstate); | |
36959 | if (PyErr_Occurred()) SWIG_fail; | |
36960 | } | |
093d3ff1 RD |
36961 | { |
36962 | resultobj = SWIG_From_int((int)(result)); | |
36963 | } | |
d55e5bfc RD |
36964 | { |
36965 | if (temp2) | |
36966 | delete arg2; | |
36967 | } | |
36968 | return resultobj; | |
36969 | fail: | |
36970 | { | |
36971 | if (temp2) | |
36972 | delete arg2; | |
36973 | } | |
36974 | return NULL; | |
36975 | } | |
36976 | ||
36977 | ||
c32bde28 | 36978 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36979 | PyObject *resultobj; |
36980 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
36981 | PyObject * obj0 = 0 ; | |
36982 | char *kwnames[] = { | |
36983 | (char *) "self", NULL | |
36984 | }; | |
36985 | ||
36986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36987 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
36988 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
36989 | { |
36990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36991 | (arg1)->Clear(); | |
36992 | ||
36993 | wxPyEndAllowThreads(__tstate); | |
36994 | if (PyErr_Occurred()) SWIG_fail; | |
36995 | } | |
36996 | Py_INCREF(Py_None); resultobj = Py_None; | |
36997 | return resultobj; | |
36998 | fail: | |
36999 | return NULL; | |
37000 | } | |
37001 | ||
37002 | ||
c32bde28 | 37003 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37004 | PyObject *resultobj; |
37005 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37006 | int arg2 ; | |
37007 | PyObject * obj0 = 0 ; | |
37008 | PyObject * obj1 = 0 ; | |
37009 | char *kwnames[] = { | |
37010 | (char *) "self",(char *) "n", NULL | |
37011 | }; | |
37012 | ||
37013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37016 | { | |
37017 | arg2 = (int)(SWIG_As_int(obj1)); | |
37018 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37019 | } | |
d55e5bfc RD |
37020 | { |
37021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37022 | (arg1)->Delete(arg2); | |
37023 | ||
37024 | wxPyEndAllowThreads(__tstate); | |
37025 | if (PyErr_Occurred()) SWIG_fail; | |
37026 | } | |
37027 | Py_INCREF(Py_None); resultobj = Py_None; | |
37028 | return resultobj; | |
37029 | fail: | |
37030 | return NULL; | |
37031 | } | |
37032 | ||
37033 | ||
c32bde28 | 37034 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37035 | PyObject *resultobj; |
37036 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37037 | int result; | |
37038 | PyObject * obj0 = 0 ; | |
37039 | char *kwnames[] = { | |
37040 | (char *) "self", NULL | |
37041 | }; | |
37042 | ||
37043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37046 | { |
37047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37048 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
37049 | ||
37050 | wxPyEndAllowThreads(__tstate); | |
37051 | if (PyErr_Occurred()) SWIG_fail; | |
37052 | } | |
093d3ff1 RD |
37053 | { |
37054 | resultobj = SWIG_From_int((int)(result)); | |
37055 | } | |
d55e5bfc RD |
37056 | return resultobj; |
37057 | fail: | |
37058 | return NULL; | |
37059 | } | |
37060 | ||
37061 | ||
c32bde28 | 37062 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37063 | PyObject *resultobj; |
37064 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37065 | bool result; | |
37066 | PyObject * obj0 = 0 ; | |
37067 | char *kwnames[] = { | |
37068 | (char *) "self", NULL | |
37069 | }; | |
37070 | ||
37071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37074 | { |
37075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37076 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
37077 | ||
37078 | wxPyEndAllowThreads(__tstate); | |
37079 | if (PyErr_Occurred()) SWIG_fail; | |
37080 | } | |
37081 | { | |
37082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37083 | } | |
37084 | return resultobj; | |
37085 | fail: | |
37086 | return NULL; | |
37087 | } | |
37088 | ||
37089 | ||
c32bde28 | 37090 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37091 | PyObject *resultobj; |
37092 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37093 | int arg2 ; | |
37094 | wxString result; | |
37095 | PyObject * obj0 = 0 ; | |
37096 | PyObject * obj1 = 0 ; | |
37097 | char *kwnames[] = { | |
37098 | (char *) "self",(char *) "n", NULL | |
37099 | }; | |
37100 | ||
37101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37104 | { | |
37105 | arg2 = (int)(SWIG_As_int(obj1)); | |
37106 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37107 | } | |
d55e5bfc RD |
37108 | { |
37109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37110 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
37111 | ||
37112 | wxPyEndAllowThreads(__tstate); | |
37113 | if (PyErr_Occurred()) SWIG_fail; | |
37114 | } | |
37115 | { | |
37116 | #if wxUSE_UNICODE | |
37117 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37118 | #else | |
37119 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37120 | #endif | |
37121 | } | |
37122 | return resultobj; | |
37123 | fail: | |
37124 | return NULL; | |
37125 | } | |
37126 | ||
37127 | ||
c32bde28 | 37128 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37129 | PyObject *resultobj; |
37130 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37131 | wxArrayString result; | |
37132 | PyObject * obj0 = 0 ; | |
37133 | char *kwnames[] = { | |
37134 | (char *) "self", NULL | |
37135 | }; | |
37136 | ||
37137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37140 | { |
37141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37142 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
37143 | ||
37144 | wxPyEndAllowThreads(__tstate); | |
37145 | if (PyErr_Occurred()) SWIG_fail; | |
37146 | } | |
37147 | { | |
37148 | resultobj = wxArrayString2PyList_helper(result); | |
37149 | } | |
37150 | return resultobj; | |
37151 | fail: | |
37152 | return NULL; | |
37153 | } | |
37154 | ||
37155 | ||
c32bde28 | 37156 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37157 | PyObject *resultobj; |
37158 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37159 | int arg2 ; | |
37160 | wxString *arg3 = 0 ; | |
ae8162c8 | 37161 | bool temp3 = false ; |
d55e5bfc RD |
37162 | PyObject * obj0 = 0 ; |
37163 | PyObject * obj1 = 0 ; | |
37164 | PyObject * obj2 = 0 ; | |
37165 | char *kwnames[] = { | |
37166 | (char *) "self",(char *) "n",(char *) "s", NULL | |
37167 | }; | |
37168 | ||
37169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
37170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37172 | { | |
37173 | arg2 = (int)(SWIG_As_int(obj1)); | |
37174 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37175 | } | |
d55e5bfc RD |
37176 | { |
37177 | arg3 = wxString_in_helper(obj2); | |
37178 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 37179 | temp3 = true; |
d55e5bfc RD |
37180 | } |
37181 | { | |
37182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37183 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
37184 | ||
37185 | wxPyEndAllowThreads(__tstate); | |
37186 | if (PyErr_Occurred()) SWIG_fail; | |
37187 | } | |
37188 | Py_INCREF(Py_None); resultobj = Py_None; | |
37189 | { | |
37190 | if (temp3) | |
37191 | delete arg3; | |
37192 | } | |
37193 | return resultobj; | |
37194 | fail: | |
37195 | { | |
37196 | if (temp3) | |
37197 | delete arg3; | |
37198 | } | |
37199 | return NULL; | |
37200 | } | |
37201 | ||
37202 | ||
c32bde28 | 37203 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37204 | PyObject *resultobj; |
37205 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37206 | wxString *arg2 = 0 ; | |
37207 | int result; | |
ae8162c8 | 37208 | bool temp2 = false ; |
d55e5bfc RD |
37209 | PyObject * obj0 = 0 ; |
37210 | PyObject * obj1 = 0 ; | |
37211 | char *kwnames[] = { | |
37212 | (char *) "self",(char *) "s", NULL | |
37213 | }; | |
37214 | ||
37215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37218 | { |
37219 | arg2 = wxString_in_helper(obj1); | |
37220 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 37221 | temp2 = true; |
d55e5bfc RD |
37222 | } |
37223 | { | |
37224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37225 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
37226 | ||
37227 | wxPyEndAllowThreads(__tstate); | |
37228 | if (PyErr_Occurred()) SWIG_fail; | |
37229 | } | |
093d3ff1 RD |
37230 | { |
37231 | resultobj = SWIG_From_int((int)(result)); | |
37232 | } | |
d55e5bfc RD |
37233 | { |
37234 | if (temp2) | |
37235 | delete arg2; | |
37236 | } | |
37237 | return resultobj; | |
37238 | fail: | |
37239 | { | |
37240 | if (temp2) | |
37241 | delete arg2; | |
37242 | } | |
37243 | return NULL; | |
37244 | } | |
37245 | ||
37246 | ||
c32bde28 | 37247 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37248 | PyObject *resultobj; |
37249 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37250 | int arg2 ; | |
37251 | PyObject * obj0 = 0 ; | |
37252 | PyObject * obj1 = 0 ; | |
37253 | char *kwnames[] = { | |
37254 | (char *) "self",(char *) "n", NULL | |
37255 | }; | |
37256 | ||
37257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37260 | { | |
37261 | arg2 = (int)(SWIG_As_int(obj1)); | |
37262 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37263 | } | |
d55e5bfc RD |
37264 | { |
37265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37266 | (arg1)->Select(arg2); | |
37267 | ||
37268 | wxPyEndAllowThreads(__tstate); | |
37269 | if (PyErr_Occurred()) SWIG_fail; | |
37270 | } | |
37271 | Py_INCREF(Py_None); resultobj = Py_None; | |
37272 | return resultobj; | |
37273 | fail: | |
37274 | return NULL; | |
37275 | } | |
37276 | ||
37277 | ||
c32bde28 | 37278 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37279 | PyObject *resultobj; |
37280 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37281 | int result; | |
37282 | PyObject * obj0 = 0 ; | |
37283 | char *kwnames[] = { | |
37284 | (char *) "self", NULL | |
37285 | }; | |
37286 | ||
37287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37290 | { |
37291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37292 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
37293 | ||
37294 | wxPyEndAllowThreads(__tstate); | |
37295 | if (PyErr_Occurred()) SWIG_fail; | |
37296 | } | |
093d3ff1 RD |
37297 | { |
37298 | resultobj = SWIG_From_int((int)(result)); | |
37299 | } | |
d55e5bfc RD |
37300 | return resultobj; |
37301 | fail: | |
37302 | return NULL; | |
37303 | } | |
37304 | ||
37305 | ||
c32bde28 | 37306 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37307 | PyObject *resultobj; |
37308 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37309 | wxString result; | |
37310 | PyObject * obj0 = 0 ; | |
37311 | char *kwnames[] = { | |
37312 | (char *) "self", NULL | |
37313 | }; | |
37314 | ||
37315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37318 | { |
37319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37320 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
37321 | ||
37322 | wxPyEndAllowThreads(__tstate); | |
37323 | if (PyErr_Occurred()) SWIG_fail; | |
37324 | } | |
37325 | { | |
37326 | #if wxUSE_UNICODE | |
37327 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37328 | #else | |
37329 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37330 | #endif | |
37331 | } | |
37332 | return resultobj; | |
37333 | fail: | |
37334 | return NULL; | |
37335 | } | |
37336 | ||
37337 | ||
c32bde28 | 37338 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37339 | PyObject *resultobj; |
37340 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37341 | int arg2 ; | |
37342 | PyObject *result; | |
37343 | PyObject * obj0 = 0 ; | |
37344 | PyObject * obj1 = 0 ; | |
37345 | char *kwnames[] = { | |
37346 | (char *) "self",(char *) "n", NULL | |
37347 | }; | |
37348 | ||
37349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37350 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37351 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37352 | { | |
37353 | arg2 = (int)(SWIG_As_int(obj1)); | |
37354 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37355 | } | |
d55e5bfc RD |
37356 | { |
37357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37358 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
37359 | ||
37360 | wxPyEndAllowThreads(__tstate); | |
37361 | if (PyErr_Occurred()) SWIG_fail; | |
37362 | } | |
37363 | resultobj = result; | |
37364 | return resultobj; | |
37365 | fail: | |
37366 | return NULL; | |
37367 | } | |
37368 | ||
37369 | ||
c32bde28 | 37370 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37371 | PyObject *resultobj; |
37372 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37373 | int arg2 ; | |
37374 | PyObject *arg3 = (PyObject *) 0 ; | |
37375 | PyObject * obj0 = 0 ; | |
37376 | PyObject * obj1 = 0 ; | |
37377 | PyObject * obj2 = 0 ; | |
37378 | char *kwnames[] = { | |
37379 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
37380 | }; | |
37381 | ||
37382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
37383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37385 | { | |
37386 | arg2 = (int)(SWIG_As_int(obj1)); | |
37387 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37388 | } | |
d55e5bfc RD |
37389 | arg3 = obj2; |
37390 | { | |
37391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37392 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
37393 | ||
37394 | wxPyEndAllowThreads(__tstate); | |
37395 | if (PyErr_Occurred()) SWIG_fail; | |
37396 | } | |
37397 | Py_INCREF(Py_None); resultobj = Py_None; | |
37398 | return resultobj; | |
37399 | fail: | |
37400 | return NULL; | |
37401 | } | |
37402 | ||
37403 | ||
c32bde28 | 37404 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37405 | PyObject *obj; |
37406 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37407 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
37408 | Py_INCREF(obj); | |
37409 | return Py_BuildValue((char *)""); | |
37410 | } | |
c32bde28 | 37411 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37412 | PyObject *obj; |
37413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37414 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
37415 | Py_INCREF(obj); | |
37416 | return Py_BuildValue((char *)""); | |
37417 | } | |
c32bde28 | 37418 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37419 | PyObject *resultobj; |
37420 | wxSizerItem *result; | |
37421 | char *kwnames[] = { | |
37422 | NULL | |
37423 | }; | |
37424 | ||
37425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
37426 | { | |
37427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37428 | result = (wxSizerItem *)new wxSizerItem(); | |
37429 | ||
37430 | wxPyEndAllowThreads(__tstate); | |
37431 | if (PyErr_Occurred()) SWIG_fail; | |
37432 | } | |
37433 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
37434 | return resultobj; | |
37435 | fail: | |
37436 | return NULL; | |
37437 | } | |
37438 | ||
37439 | ||
c32bde28 | 37440 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 37441 | PyObject *resultobj; |
248ed943 | 37442 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
37443 | int arg2 ; |
37444 | int arg3 ; | |
37445 | int arg4 ; | |
248ed943 | 37446 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
37447 | wxSizerItem *result; |
37448 | PyObject * obj0 = 0 ; | |
37449 | PyObject * obj1 = 0 ; | |
37450 | PyObject * obj2 = 0 ; | |
37451 | PyObject * obj3 = 0 ; | |
37452 | PyObject * obj4 = 0 ; | |
d55e5bfc | 37453 | char *kwnames[] = { |
248ed943 | 37454 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
37455 | }; |
37456 | ||
248ed943 | 37457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
37458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
37459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37460 | { | |
37461 | arg2 = (int)(SWIG_As_int(obj1)); | |
37462 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37463 | } | |
37464 | { | |
37465 | arg3 = (int)(SWIG_As_int(obj2)); | |
37466 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37467 | } | |
37468 | { | |
37469 | arg4 = (int)(SWIG_As_int(obj3)); | |
37470 | if (SWIG_arg_fail(4)) SWIG_fail; | |
37471 | } | |
248ed943 RD |
37472 | if (obj4) { |
37473 | arg5 = obj4; | |
37474 | } | |
d55e5bfc RD |
37475 | { |
37476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37477 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
37478 | |
37479 | wxPyEndAllowThreads(__tstate); | |
37480 | if (PyErr_Occurred()) SWIG_fail; | |
37481 | } | |
37482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
37483 | return resultobj; | |
37484 | fail: | |
37485 | return NULL; | |
37486 | } | |
37487 | ||
37488 | ||
c32bde28 | 37489 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 37490 | PyObject *resultobj; |
248ed943 | 37491 | int arg1 ; |
d55e5bfc RD |
37492 | int arg2 ; |
37493 | int arg3 ; | |
37494 | int arg4 ; | |
248ed943 RD |
37495 | int arg5 ; |
37496 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
37497 | wxSizerItem *result; |
37498 | PyObject * obj0 = 0 ; | |
37499 | PyObject * obj1 = 0 ; | |
37500 | PyObject * obj2 = 0 ; | |
37501 | PyObject * obj3 = 0 ; | |
37502 | PyObject * obj4 = 0 ; | |
248ed943 | 37503 | PyObject * obj5 = 0 ; |
d55e5bfc | 37504 | char *kwnames[] = { |
248ed943 | 37505 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
37506 | }; |
37507 | ||
248ed943 | 37508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
37509 | { |
37510 | arg1 = (int)(SWIG_As_int(obj0)); | |
37511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37512 | } | |
37513 | { | |
37514 | arg2 = (int)(SWIG_As_int(obj1)); | |
37515 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37516 | } | |
37517 | { | |
37518 | arg3 = (int)(SWIG_As_int(obj2)); | |
37519 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37520 | } | |
37521 | { | |
37522 | arg4 = (int)(SWIG_As_int(obj3)); | |
37523 | if (SWIG_arg_fail(4)) SWIG_fail; | |
37524 | } | |
37525 | { | |
37526 | arg5 = (int)(SWIG_As_int(obj4)); | |
37527 | if (SWIG_arg_fail(5)) SWIG_fail; | |
37528 | } | |
248ed943 RD |
37529 | if (obj5) { |
37530 | arg6 = obj5; | |
37531 | } | |
d55e5bfc RD |
37532 | { |
37533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37534 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
37535 | |
37536 | wxPyEndAllowThreads(__tstate); | |
37537 | if (PyErr_Occurred()) SWIG_fail; | |
37538 | } | |
37539 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
37540 | return resultobj; | |
37541 | fail: | |
37542 | return NULL; | |
37543 | } | |
37544 | ||
37545 | ||
c32bde28 | 37546 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37547 | PyObject *resultobj; |
37548 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37549 | int arg2 ; | |
37550 | int arg3 ; | |
37551 | int arg4 ; | |
248ed943 | 37552 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
37553 | wxSizerItem *result; |
37554 | PyObject * obj0 = 0 ; | |
37555 | PyObject * obj1 = 0 ; | |
37556 | PyObject * obj2 = 0 ; | |
37557 | PyObject * obj3 = 0 ; | |
37558 | PyObject * obj4 = 0 ; | |
37559 | char *kwnames[] = { | |
37560 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37561 | }; | |
37562 | ||
248ed943 | 37563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
37564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
37565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37566 | { | |
37567 | arg2 = (int)(SWIG_As_int(obj1)); | |
37568 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37569 | } | |
37570 | { | |
37571 | arg3 = (int)(SWIG_As_int(obj2)); | |
37572 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37573 | } | |
37574 | { | |
37575 | arg4 = (int)(SWIG_As_int(obj3)); | |
37576 | if (SWIG_arg_fail(4)) SWIG_fail; | |
37577 | } | |
248ed943 RD |
37578 | if (obj4) { |
37579 | arg5 = obj4; | |
37580 | } | |
d55e5bfc RD |
37581 | { |
37582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37583 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
37584 | |
37585 | wxPyEndAllowThreads(__tstate); | |
37586 | if (PyErr_Occurred()) SWIG_fail; | |
37587 | } | |
37588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
37589 | return resultobj; | |
37590 | fail: | |
37591 | return NULL; | |
37592 | } | |
37593 | ||
37594 | ||
c32bde28 | 37595 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37596 | PyObject *resultobj; |
37597 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37598 | PyObject * obj0 = 0 ; | |
37599 | char *kwnames[] = { | |
37600 | (char *) "self", NULL | |
37601 | }; | |
37602 | ||
37603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37606 | { |
37607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37608 | (arg1)->DeleteWindows(); | |
37609 | ||
37610 | wxPyEndAllowThreads(__tstate); | |
37611 | if (PyErr_Occurred()) SWIG_fail; | |
37612 | } | |
37613 | Py_INCREF(Py_None); resultobj = Py_None; | |
37614 | return resultobj; | |
37615 | fail: | |
37616 | return NULL; | |
37617 | } | |
37618 | ||
37619 | ||
c32bde28 | 37620 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37621 | PyObject *resultobj; |
37622 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37623 | PyObject * obj0 = 0 ; | |
37624 | char *kwnames[] = { | |
37625 | (char *) "self", NULL | |
37626 | }; | |
37627 | ||
37628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37631 | { |
37632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37633 | (arg1)->DetachSizer(); | |
37634 | ||
37635 | wxPyEndAllowThreads(__tstate); | |
37636 | if (PyErr_Occurred()) SWIG_fail; | |
37637 | } | |
37638 | Py_INCREF(Py_None); resultobj = Py_None; | |
37639 | return resultobj; | |
37640 | fail: | |
37641 | return NULL; | |
37642 | } | |
37643 | ||
37644 | ||
c32bde28 | 37645 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37646 | PyObject *resultobj; |
37647 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37648 | wxSize result; | |
37649 | PyObject * obj0 = 0 ; | |
37650 | char *kwnames[] = { | |
37651 | (char *) "self", NULL | |
37652 | }; | |
37653 | ||
37654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37657 | { |
37658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37659 | result = (arg1)->GetSize(); | |
37660 | ||
37661 | wxPyEndAllowThreads(__tstate); | |
37662 | if (PyErr_Occurred()) SWIG_fail; | |
37663 | } | |
37664 | { | |
37665 | wxSize * resultptr; | |
093d3ff1 | 37666 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
37667 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
37668 | } | |
37669 | return resultobj; | |
37670 | fail: | |
37671 | return NULL; | |
37672 | } | |
37673 | ||
37674 | ||
c32bde28 | 37675 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37676 | PyObject *resultobj; |
37677 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37678 | wxSize result; | |
37679 | PyObject * obj0 = 0 ; | |
37680 | char *kwnames[] = { | |
37681 | (char *) "self", NULL | |
37682 | }; | |
37683 | ||
37684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37687 | { |
37688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37689 | result = (arg1)->CalcMin(); | |
37690 | ||
37691 | wxPyEndAllowThreads(__tstate); | |
37692 | if (PyErr_Occurred()) SWIG_fail; | |
37693 | } | |
37694 | { | |
37695 | wxSize * resultptr; | |
093d3ff1 | 37696 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
37697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
37698 | } | |
37699 | return resultobj; | |
37700 | fail: | |
37701 | return NULL; | |
37702 | } | |
37703 | ||
37704 | ||
c32bde28 | 37705 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37706 | PyObject *resultobj; |
37707 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37708 | wxPoint arg2 ; | |
37709 | wxSize arg3 ; | |
d55e5bfc RD |
37710 | PyObject * obj0 = 0 ; |
37711 | PyObject * obj1 = 0 ; | |
37712 | PyObject * obj2 = 0 ; | |
37713 | char *kwnames[] = { | |
37714 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
37715 | }; | |
37716 | ||
37717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
37718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37720 | { | |
37721 | wxPoint * argp; | |
37722 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION); | |
37723 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37724 | if (argp == NULL) { | |
37725 | SWIG_null_ref("wxPoint"); | |
37726 | } | |
37727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37728 | arg2 = *argp; | |
37729 | } | |
37730 | { | |
37731 | wxSize * argp; | |
37732 | SWIG_Python_ConvertPtr(obj2, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION); | |
37733 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37734 | if (argp == NULL) { | |
37735 | SWIG_null_ref("wxSize"); | |
37736 | } | |
37737 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37738 | arg3 = *argp; | |
37739 | } | |
d55e5bfc RD |
37740 | { |
37741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37742 | (arg1)->SetDimension(arg2,arg3); | |
37743 | ||
37744 | wxPyEndAllowThreads(__tstate); | |
37745 | if (PyErr_Occurred()) SWIG_fail; | |
37746 | } | |
37747 | Py_INCREF(Py_None); resultobj = Py_None; | |
37748 | return resultobj; | |
37749 | fail: | |
37750 | return NULL; | |
37751 | } | |
37752 | ||
37753 | ||
c32bde28 | 37754 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37755 | PyObject *resultobj; |
37756 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37757 | wxSize result; | |
37758 | PyObject * obj0 = 0 ; | |
37759 | char *kwnames[] = { | |
37760 | (char *) "self", NULL | |
37761 | }; | |
37762 | ||
37763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37766 | { |
37767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37768 | result = (arg1)->GetMinSize(); | |
37769 | ||
37770 | wxPyEndAllowThreads(__tstate); | |
37771 | if (PyErr_Occurred()) SWIG_fail; | |
37772 | } | |
37773 | { | |
37774 | wxSize * resultptr; | |
093d3ff1 | 37775 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
37776 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
37777 | } | |
37778 | return resultobj; | |
37779 | fail: | |
37780 | return NULL; | |
37781 | } | |
37782 | ||
37783 | ||
c32bde28 | 37784 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
37785 | PyObject *resultobj; |
37786 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37787 | wxSize result; | |
37788 | PyObject * obj0 = 0 ; | |
37789 | char *kwnames[] = { | |
37790 | (char *) "self", NULL | |
37791 | }; | |
37792 | ||
37793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a001823c RD |
37796 | { |
37797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37798 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
37799 | ||
37800 | wxPyEndAllowThreads(__tstate); | |
37801 | if (PyErr_Occurred()) SWIG_fail; | |
37802 | } | |
37803 | { | |
37804 | wxSize * resultptr; | |
093d3ff1 | 37805 | resultptr = new wxSize((wxSize &)(result)); |
a001823c RD |
37806 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
37807 | } | |
37808 | return resultobj; | |
37809 | fail: | |
37810 | return NULL; | |
37811 | } | |
37812 | ||
37813 | ||
c32bde28 | 37814 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37815 | PyObject *resultobj; |
37816 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37817 | int arg2 ; | |
37818 | int arg3 ; | |
37819 | PyObject * obj0 = 0 ; | |
37820 | PyObject * obj1 = 0 ; | |
37821 | PyObject * obj2 = 0 ; | |
37822 | char *kwnames[] = { | |
37823 | (char *) "self",(char *) "x",(char *) "y", NULL | |
37824 | }; | |
37825 | ||
37826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
37827 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37828 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37829 | { | |
37830 | arg2 = (int)(SWIG_As_int(obj1)); | |
37831 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37832 | } | |
37833 | { | |
37834 | arg3 = (int)(SWIG_As_int(obj2)); | |
37835 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37836 | } | |
d55e5bfc RD |
37837 | { |
37838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37839 | (arg1)->SetInitSize(arg2,arg3); | |
37840 | ||
37841 | wxPyEndAllowThreads(__tstate); | |
37842 | if (PyErr_Occurred()) SWIG_fail; | |
37843 | } | |
37844 | Py_INCREF(Py_None); resultobj = Py_None; | |
37845 | return resultobj; | |
37846 | fail: | |
37847 | return NULL; | |
37848 | } | |
37849 | ||
37850 | ||
c32bde28 | 37851 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37852 | PyObject *resultobj; |
37853 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37854 | int arg2 ; | |
37855 | int arg3 ; | |
37856 | PyObject * obj0 = 0 ; | |
37857 | PyObject * obj1 = 0 ; | |
37858 | PyObject * obj2 = 0 ; | |
37859 | char *kwnames[] = { | |
37860 | (char *) "self",(char *) "width",(char *) "height", NULL | |
37861 | }; | |
37862 | ||
37863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
37864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37866 | { | |
37867 | arg2 = (int)(SWIG_As_int(obj1)); | |
37868 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37869 | } | |
37870 | { | |
37871 | arg3 = (int)(SWIG_As_int(obj2)); | |
37872 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37873 | } | |
d55e5bfc RD |
37874 | { |
37875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37876 | (arg1)->SetRatio(arg2,arg3); | |
37877 | ||
37878 | wxPyEndAllowThreads(__tstate); | |
37879 | if (PyErr_Occurred()) SWIG_fail; | |
37880 | } | |
37881 | Py_INCREF(Py_None); resultobj = Py_None; | |
37882 | return resultobj; | |
37883 | fail: | |
37884 | return NULL; | |
37885 | } | |
37886 | ||
37887 | ||
c32bde28 | 37888 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37889 | PyObject *resultobj; |
37890 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37891 | wxSize arg2 ; | |
d55e5bfc RD |
37892 | PyObject * obj0 = 0 ; |
37893 | PyObject * obj1 = 0 ; | |
37894 | char *kwnames[] = { | |
37895 | (char *) "self",(char *) "size", NULL | |
37896 | }; | |
37897 | ||
37898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37901 | { | |
37902 | wxSize * argp; | |
37903 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION); | |
37904 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37905 | if (argp == NULL) { | |
37906 | SWIG_null_ref("wxSize"); | |
37907 | } | |
37908 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37909 | arg2 = *argp; | |
37910 | } | |
d55e5bfc RD |
37911 | { |
37912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37913 | (arg1)->SetRatio(arg2); | |
37914 | ||
37915 | wxPyEndAllowThreads(__tstate); | |
37916 | if (PyErr_Occurred()) SWIG_fail; | |
37917 | } | |
37918 | Py_INCREF(Py_None); resultobj = Py_None; | |
37919 | return resultobj; | |
37920 | fail: | |
37921 | return NULL; | |
37922 | } | |
37923 | ||
37924 | ||
c32bde28 | 37925 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37926 | PyObject *resultobj; |
37927 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37928 | float arg2 ; | |
37929 | PyObject * obj0 = 0 ; | |
37930 | PyObject * obj1 = 0 ; | |
37931 | char *kwnames[] = { | |
37932 | (char *) "self",(char *) "ratio", NULL | |
37933 | }; | |
37934 | ||
37935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37938 | { | |
37939 | arg2 = (float)(SWIG_As_float(obj1)); | |
37940 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37941 | } | |
d55e5bfc RD |
37942 | { |
37943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37944 | (arg1)->SetRatio(arg2); | |
37945 | ||
37946 | wxPyEndAllowThreads(__tstate); | |
37947 | if (PyErr_Occurred()) SWIG_fail; | |
37948 | } | |
37949 | Py_INCREF(Py_None); resultobj = Py_None; | |
37950 | return resultobj; | |
37951 | fail: | |
37952 | return NULL; | |
37953 | } | |
37954 | ||
37955 | ||
c32bde28 | 37956 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37957 | PyObject *resultobj; |
37958 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37959 | float result; | |
37960 | PyObject * obj0 = 0 ; | |
37961 | char *kwnames[] = { | |
37962 | (char *) "self", NULL | |
37963 | }; | |
37964 | ||
37965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37966 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
37968 | { |
37969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37970 | result = (float)(arg1)->GetRatio(); | |
37971 | ||
37972 | wxPyEndAllowThreads(__tstate); | |
37973 | if (PyErr_Occurred()) SWIG_fail; | |
37974 | } | |
093d3ff1 RD |
37975 | { |
37976 | resultobj = SWIG_From_float((float)(result)); | |
37977 | } | |
d55e5bfc RD |
37978 | return resultobj; |
37979 | fail: | |
37980 | return NULL; | |
37981 | } | |
37982 | ||
37983 | ||
c1cb24a4 RD |
37984 | static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
37985 | PyObject *resultobj; | |
37986 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
37987 | wxRect result; | |
37988 | PyObject * obj0 = 0 ; | |
37989 | char *kwnames[] = { | |
37990 | (char *) "self", NULL | |
37991 | }; | |
37992 | ||
37993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37994 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
37995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
37996 | { |
37997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37998 | result = (arg1)->GetRect(); | |
37999 | ||
38000 | wxPyEndAllowThreads(__tstate); | |
38001 | if (PyErr_Occurred()) SWIG_fail; | |
38002 | } | |
38003 | { | |
38004 | wxRect * resultptr; | |
093d3ff1 | 38005 | resultptr = new wxRect((wxRect &)(result)); |
c1cb24a4 RD |
38006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
38007 | } | |
38008 | return resultobj; | |
38009 | fail: | |
38010 | return NULL; | |
38011 | } | |
38012 | ||
38013 | ||
c32bde28 | 38014 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38015 | PyObject *resultobj; |
38016 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38017 | bool result; | |
38018 | PyObject * obj0 = 0 ; | |
38019 | char *kwnames[] = { | |
38020 | (char *) "self", NULL | |
38021 | }; | |
38022 | ||
38023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38026 | { |
38027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38028 | result = (bool)(arg1)->IsWindow(); | |
38029 | ||
38030 | wxPyEndAllowThreads(__tstate); | |
38031 | if (PyErr_Occurred()) SWIG_fail; | |
38032 | } | |
38033 | { | |
38034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38035 | } | |
38036 | return resultobj; | |
38037 | fail: | |
38038 | return NULL; | |
38039 | } | |
38040 | ||
38041 | ||
c32bde28 | 38042 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38043 | PyObject *resultobj; |
38044 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38045 | bool result; | |
38046 | PyObject * obj0 = 0 ; | |
38047 | char *kwnames[] = { | |
38048 | (char *) "self", NULL | |
38049 | }; | |
38050 | ||
38051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38054 | { |
38055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38056 | result = (bool)(arg1)->IsSizer(); | |
38057 | ||
38058 | wxPyEndAllowThreads(__tstate); | |
38059 | if (PyErr_Occurred()) SWIG_fail; | |
38060 | } | |
38061 | { | |
38062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38063 | } | |
38064 | return resultobj; | |
38065 | fail: | |
38066 | return NULL; | |
38067 | } | |
38068 | ||
38069 | ||
c32bde28 | 38070 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38071 | PyObject *resultobj; |
38072 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38073 | bool result; | |
38074 | PyObject * obj0 = 0 ; | |
38075 | char *kwnames[] = { | |
38076 | (char *) "self", NULL | |
38077 | }; | |
38078 | ||
38079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38082 | { |
38083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38084 | result = (bool)(arg1)->IsSpacer(); | |
38085 | ||
38086 | wxPyEndAllowThreads(__tstate); | |
38087 | if (PyErr_Occurred()) SWIG_fail; | |
38088 | } | |
38089 | { | |
38090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38091 | } | |
38092 | return resultobj; | |
38093 | fail: | |
38094 | return NULL; | |
38095 | } | |
38096 | ||
38097 | ||
c32bde28 | 38098 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38099 | PyObject *resultobj; |
38100 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38101 | int arg2 ; | |
38102 | PyObject * obj0 = 0 ; | |
38103 | PyObject * obj1 = 0 ; | |
38104 | char *kwnames[] = { | |
38105 | (char *) "self",(char *) "proportion", NULL | |
38106 | }; | |
38107 | ||
38108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38111 | { | |
38112 | arg2 = (int)(SWIG_As_int(obj1)); | |
38113 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38114 | } | |
d55e5bfc RD |
38115 | { |
38116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38117 | (arg1)->SetProportion(arg2); | |
38118 | ||
38119 | wxPyEndAllowThreads(__tstate); | |
38120 | if (PyErr_Occurred()) SWIG_fail; | |
38121 | } | |
38122 | Py_INCREF(Py_None); resultobj = Py_None; | |
38123 | return resultobj; | |
38124 | fail: | |
38125 | return NULL; | |
38126 | } | |
38127 | ||
38128 | ||
c32bde28 | 38129 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38130 | PyObject *resultobj; |
38131 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38132 | int result; | |
38133 | PyObject * obj0 = 0 ; | |
38134 | char *kwnames[] = { | |
38135 | (char *) "self", NULL | |
38136 | }; | |
38137 | ||
38138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38139 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38140 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38141 | { |
38142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38143 | result = (int)(arg1)->GetProportion(); | |
38144 | ||
38145 | wxPyEndAllowThreads(__tstate); | |
38146 | if (PyErr_Occurred()) SWIG_fail; | |
38147 | } | |
093d3ff1 RD |
38148 | { |
38149 | resultobj = SWIG_From_int((int)(result)); | |
38150 | } | |
d55e5bfc RD |
38151 | return resultobj; |
38152 | fail: | |
38153 | return NULL; | |
38154 | } | |
38155 | ||
38156 | ||
c32bde28 | 38157 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38158 | PyObject *resultobj; |
38159 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38160 | int arg2 ; | |
38161 | PyObject * obj0 = 0 ; | |
38162 | PyObject * obj1 = 0 ; | |
38163 | char *kwnames[] = { | |
38164 | (char *) "self",(char *) "flag", NULL | |
38165 | }; | |
38166 | ||
38167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38170 | { | |
38171 | arg2 = (int)(SWIG_As_int(obj1)); | |
38172 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38173 | } | |
d55e5bfc RD |
38174 | { |
38175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38176 | (arg1)->SetFlag(arg2); | |
38177 | ||
38178 | wxPyEndAllowThreads(__tstate); | |
38179 | if (PyErr_Occurred()) SWIG_fail; | |
38180 | } | |
38181 | Py_INCREF(Py_None); resultobj = Py_None; | |
38182 | return resultobj; | |
38183 | fail: | |
38184 | return NULL; | |
38185 | } | |
38186 | ||
38187 | ||
c32bde28 | 38188 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38189 | PyObject *resultobj; |
38190 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38191 | int result; | |
38192 | PyObject * obj0 = 0 ; | |
38193 | char *kwnames[] = { | |
38194 | (char *) "self", NULL | |
38195 | }; | |
38196 | ||
38197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38198 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38199 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38200 | { |
38201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38202 | result = (int)(arg1)->GetFlag(); | |
38203 | ||
38204 | wxPyEndAllowThreads(__tstate); | |
38205 | if (PyErr_Occurred()) SWIG_fail; | |
38206 | } | |
093d3ff1 RD |
38207 | { |
38208 | resultobj = SWIG_From_int((int)(result)); | |
38209 | } | |
d55e5bfc RD |
38210 | return resultobj; |
38211 | fail: | |
38212 | return NULL; | |
38213 | } | |
38214 | ||
38215 | ||
c32bde28 | 38216 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38217 | PyObject *resultobj; |
38218 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38219 | int arg2 ; | |
38220 | PyObject * obj0 = 0 ; | |
38221 | PyObject * obj1 = 0 ; | |
38222 | char *kwnames[] = { | |
38223 | (char *) "self",(char *) "border", NULL | |
38224 | }; | |
38225 | ||
38226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38229 | { | |
38230 | arg2 = (int)(SWIG_As_int(obj1)); | |
38231 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38232 | } | |
d55e5bfc RD |
38233 | { |
38234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38235 | (arg1)->SetBorder(arg2); | |
38236 | ||
38237 | wxPyEndAllowThreads(__tstate); | |
38238 | if (PyErr_Occurred()) SWIG_fail; | |
38239 | } | |
38240 | Py_INCREF(Py_None); resultobj = Py_None; | |
38241 | return resultobj; | |
38242 | fail: | |
38243 | return NULL; | |
38244 | } | |
38245 | ||
38246 | ||
c32bde28 | 38247 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38248 | PyObject *resultobj; |
38249 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38250 | int result; | |
38251 | PyObject * obj0 = 0 ; | |
38252 | char *kwnames[] = { | |
38253 | (char *) "self", NULL | |
38254 | }; | |
38255 | ||
38256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38259 | { |
38260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38261 | result = (int)(arg1)->GetBorder(); | |
38262 | ||
38263 | wxPyEndAllowThreads(__tstate); | |
38264 | if (PyErr_Occurred()) SWIG_fail; | |
38265 | } | |
093d3ff1 RD |
38266 | { |
38267 | resultobj = SWIG_From_int((int)(result)); | |
38268 | } | |
d55e5bfc RD |
38269 | return resultobj; |
38270 | fail: | |
38271 | return NULL; | |
38272 | } | |
38273 | ||
38274 | ||
c32bde28 | 38275 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38276 | PyObject *resultobj; |
38277 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38278 | wxWindow *result; | |
38279 | PyObject * obj0 = 0 ; | |
38280 | char *kwnames[] = { | |
38281 | (char *) "self", NULL | |
38282 | }; | |
38283 | ||
38284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38287 | { |
38288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38289 | result = (wxWindow *)(arg1)->GetWindow(); | |
38290 | ||
38291 | wxPyEndAllowThreads(__tstate); | |
38292 | if (PyErr_Occurred()) SWIG_fail; | |
38293 | } | |
38294 | { | |
412d302d | 38295 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
38296 | } |
38297 | return resultobj; | |
38298 | fail: | |
38299 | return NULL; | |
38300 | } | |
38301 | ||
38302 | ||
c32bde28 | 38303 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38304 | PyObject *resultobj; |
38305 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38306 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38307 | PyObject * obj0 = 0 ; | |
38308 | PyObject * obj1 = 0 ; | |
38309 | char *kwnames[] = { | |
38310 | (char *) "self",(char *) "window", NULL | |
38311 | }; | |
38312 | ||
38313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38316 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
38317 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
38318 | { |
38319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38320 | (arg1)->SetWindow(arg2); | |
38321 | ||
38322 | wxPyEndAllowThreads(__tstate); | |
38323 | if (PyErr_Occurred()) SWIG_fail; | |
38324 | } | |
38325 | Py_INCREF(Py_None); resultobj = Py_None; | |
38326 | return resultobj; | |
38327 | fail: | |
38328 | return NULL; | |
38329 | } | |
38330 | ||
38331 | ||
c32bde28 | 38332 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38333 | PyObject *resultobj; |
38334 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38335 | wxSizer *result; | |
38336 | PyObject * obj0 = 0 ; | |
38337 | char *kwnames[] = { | |
38338 | (char *) "self", NULL | |
38339 | }; | |
38340 | ||
38341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38344 | { |
38345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38346 | result = (wxSizer *)(arg1)->GetSizer(); | |
38347 | ||
38348 | wxPyEndAllowThreads(__tstate); | |
38349 | if (PyErr_Occurred()) SWIG_fail; | |
38350 | } | |
38351 | { | |
412d302d | 38352 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
38353 | } |
38354 | return resultobj; | |
38355 | fail: | |
38356 | return NULL; | |
38357 | } | |
38358 | ||
38359 | ||
c32bde28 | 38360 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38361 | PyObject *resultobj; |
38362 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38363 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38364 | PyObject * obj0 = 0 ; | |
38365 | PyObject * obj1 = 0 ; | |
38366 | char *kwnames[] = { | |
38367 | (char *) "self",(char *) "sizer", NULL | |
38368 | }; | |
38369 | ||
38370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38373 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
38374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
38375 | { |
38376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38377 | (arg1)->SetSizer(arg2); | |
38378 | ||
38379 | wxPyEndAllowThreads(__tstate); | |
38380 | if (PyErr_Occurred()) SWIG_fail; | |
38381 | } | |
38382 | Py_INCREF(Py_None); resultobj = Py_None; | |
38383 | return resultobj; | |
38384 | fail: | |
38385 | return NULL; | |
38386 | } | |
38387 | ||
38388 | ||
c32bde28 | 38389 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38390 | PyObject *resultobj; |
38391 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38392 | wxSize *result; | |
38393 | PyObject * obj0 = 0 ; | |
38394 | char *kwnames[] = { | |
38395 | (char *) "self", NULL | |
38396 | }; | |
38397 | ||
38398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38401 | { |
38402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38403 | { | |
38404 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
38405 | result = (wxSize *) &_result_ref; | |
38406 | } | |
38407 | ||
38408 | wxPyEndAllowThreads(__tstate); | |
38409 | if (PyErr_Occurred()) SWIG_fail; | |
38410 | } | |
38411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
38412 | return resultobj; | |
38413 | fail: | |
38414 | return NULL; | |
38415 | } | |
38416 | ||
38417 | ||
c32bde28 | 38418 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38419 | PyObject *resultobj; |
38420 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38421 | wxSize *arg2 = 0 ; | |
38422 | wxSize temp2 ; | |
38423 | PyObject * obj0 = 0 ; | |
38424 | PyObject * obj1 = 0 ; | |
38425 | char *kwnames[] = { | |
38426 | (char *) "self",(char *) "size", NULL | |
38427 | }; | |
38428 | ||
38429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38432 | { |
38433 | arg2 = &temp2; | |
38434 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38435 | } | |
38436 | { | |
38437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38438 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
38439 | ||
38440 | wxPyEndAllowThreads(__tstate); | |
38441 | if (PyErr_Occurred()) SWIG_fail; | |
38442 | } | |
38443 | Py_INCREF(Py_None); resultobj = Py_None; | |
38444 | return resultobj; | |
38445 | fail: | |
38446 | return NULL; | |
38447 | } | |
38448 | ||
38449 | ||
c32bde28 | 38450 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38451 | PyObject *resultobj; |
38452 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38453 | bool arg2 ; | |
38454 | PyObject * obj0 = 0 ; | |
38455 | PyObject * obj1 = 0 ; | |
38456 | char *kwnames[] = { | |
38457 | (char *) "self",(char *) "show", NULL | |
38458 | }; | |
38459 | ||
38460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38463 | { | |
38464 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
38465 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38466 | } | |
d55e5bfc RD |
38467 | { |
38468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38469 | (arg1)->Show(arg2); | |
38470 | ||
38471 | wxPyEndAllowThreads(__tstate); | |
38472 | if (PyErr_Occurred()) SWIG_fail; | |
38473 | } | |
38474 | Py_INCREF(Py_None); resultobj = Py_None; | |
38475 | return resultobj; | |
38476 | fail: | |
38477 | return NULL; | |
38478 | } | |
38479 | ||
38480 | ||
c32bde28 | 38481 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38482 | PyObject *resultobj; |
38483 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38484 | bool result; | |
38485 | PyObject * obj0 = 0 ; | |
38486 | char *kwnames[] = { | |
38487 | (char *) "self", NULL | |
38488 | }; | |
38489 | ||
38490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38493 | { |
38494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38495 | result = (bool)(arg1)->IsShown(); | |
38496 | ||
38497 | wxPyEndAllowThreads(__tstate); | |
38498 | if (PyErr_Occurred()) SWIG_fail; | |
38499 | } | |
38500 | { | |
38501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38502 | } | |
38503 | return resultobj; | |
38504 | fail: | |
38505 | return NULL; | |
38506 | } | |
38507 | ||
38508 | ||
c32bde28 | 38509 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38510 | PyObject *resultobj; |
38511 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38512 | wxPoint result; | |
38513 | PyObject * obj0 = 0 ; | |
38514 | char *kwnames[] = { | |
38515 | (char *) "self", NULL | |
38516 | }; | |
38517 | ||
38518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38521 | { |
38522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38523 | result = (arg1)->GetPosition(); | |
38524 | ||
38525 | wxPyEndAllowThreads(__tstate); | |
38526 | if (PyErr_Occurred()) SWIG_fail; | |
38527 | } | |
38528 | { | |
38529 | wxPoint * resultptr; | |
093d3ff1 | 38530 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
38531 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
38532 | } | |
38533 | return resultobj; | |
38534 | fail: | |
38535 | return NULL; | |
38536 | } | |
38537 | ||
38538 | ||
c32bde28 | 38539 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38540 | PyObject *resultobj; |
38541 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38542 | PyObject *result; | |
38543 | PyObject * obj0 = 0 ; | |
38544 | char *kwnames[] = { | |
38545 | (char *) "self", NULL | |
38546 | }; | |
38547 | ||
38548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38549 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38550 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38551 | { |
38552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38553 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
38554 | ||
38555 | wxPyEndAllowThreads(__tstate); | |
38556 | if (PyErr_Occurred()) SWIG_fail; | |
38557 | } | |
38558 | resultobj = result; | |
38559 | return resultobj; | |
38560 | fail: | |
38561 | return NULL; | |
38562 | } | |
38563 | ||
38564 | ||
c32bde28 | 38565 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38566 | PyObject *obj; |
38567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38568 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
38569 | Py_INCREF(obj); | |
38570 | return Py_BuildValue((char *)""); | |
38571 | } | |
c32bde28 | 38572 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38573 | PyObject *resultobj; |
38574 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38575 | PyObject *arg2 = (PyObject *) 0 ; | |
38576 | PyObject * obj0 = 0 ; | |
38577 | PyObject * obj1 = 0 ; | |
38578 | char *kwnames[] = { | |
38579 | (char *) "self",(char *) "_self", NULL | |
38580 | }; | |
38581 | ||
38582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38583 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38584 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38585 | arg2 = obj1; |
38586 | { | |
38587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38588 | wxSizer__setOORInfo(arg1,arg2); | |
38589 | ||
38590 | wxPyEndAllowThreads(__tstate); | |
38591 | if (PyErr_Occurred()) SWIG_fail; | |
38592 | } | |
38593 | Py_INCREF(Py_None); resultobj = Py_None; | |
38594 | return resultobj; | |
38595 | fail: | |
38596 | return NULL; | |
38597 | } | |
38598 | ||
38599 | ||
c32bde28 | 38600 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38601 | PyObject *resultobj; |
38602 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38603 | PyObject *arg2 = (PyObject *) 0 ; | |
38604 | int arg3 = (int) 0 ; | |
38605 | int arg4 = (int) 0 ; | |
38606 | int arg5 = (int) 0 ; | |
38607 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 38608 | wxSizerItem *result; |
d55e5bfc RD |
38609 | PyObject * obj0 = 0 ; |
38610 | PyObject * obj1 = 0 ; | |
38611 | PyObject * obj2 = 0 ; | |
38612 | PyObject * obj3 = 0 ; | |
38613 | PyObject * obj4 = 0 ; | |
38614 | PyObject * obj5 = 0 ; | |
38615 | char *kwnames[] = { | |
38616 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38617 | }; | |
38618 | ||
38619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
38620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38622 | arg2 = obj1; |
38623 | if (obj2) { | |
093d3ff1 RD |
38624 | { |
38625 | arg3 = (int)(SWIG_As_int(obj2)); | |
38626 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38627 | } | |
d55e5bfc RD |
38628 | } |
38629 | if (obj3) { | |
093d3ff1 RD |
38630 | { |
38631 | arg4 = (int)(SWIG_As_int(obj3)); | |
38632 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38633 | } | |
d55e5bfc RD |
38634 | } |
38635 | if (obj4) { | |
093d3ff1 RD |
38636 | { |
38637 | arg5 = (int)(SWIG_As_int(obj4)); | |
38638 | if (SWIG_arg_fail(5)) SWIG_fail; | |
38639 | } | |
d55e5bfc RD |
38640 | } |
38641 | if (obj5) { | |
38642 | arg6 = obj5; | |
38643 | } | |
38644 | { | |
38645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 38646 | result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38647 | |
38648 | wxPyEndAllowThreads(__tstate); | |
38649 | if (PyErr_Occurred()) SWIG_fail; | |
38650 | } | |
c1cb24a4 | 38651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
38652 | return resultobj; |
38653 | fail: | |
38654 | return NULL; | |
38655 | } | |
38656 | ||
38657 | ||
c32bde28 | 38658 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38659 | PyObject *resultobj; |
38660 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38661 | int arg2 ; | |
38662 | PyObject *arg3 = (PyObject *) 0 ; | |
38663 | int arg4 = (int) 0 ; | |
38664 | int arg5 = (int) 0 ; | |
38665 | int arg6 = (int) 0 ; | |
38666 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 38667 | wxSizerItem *result; |
d55e5bfc RD |
38668 | PyObject * obj0 = 0 ; |
38669 | PyObject * obj1 = 0 ; | |
38670 | PyObject * obj2 = 0 ; | |
38671 | PyObject * obj3 = 0 ; | |
38672 | PyObject * obj4 = 0 ; | |
38673 | PyObject * obj5 = 0 ; | |
38674 | PyObject * obj6 = 0 ; | |
38675 | char *kwnames[] = { | |
38676 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38677 | }; | |
38678 | ||
38679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
38680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38682 | { | |
38683 | arg2 = (int)(SWIG_As_int(obj1)); | |
38684 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38685 | } | |
d55e5bfc RD |
38686 | arg3 = obj2; |
38687 | if (obj3) { | |
093d3ff1 RD |
38688 | { |
38689 | arg4 = (int)(SWIG_As_int(obj3)); | |
38690 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38691 | } | |
d55e5bfc RD |
38692 | } |
38693 | if (obj4) { | |
093d3ff1 RD |
38694 | { |
38695 | arg5 = (int)(SWIG_As_int(obj4)); | |
38696 | if (SWIG_arg_fail(5)) SWIG_fail; | |
38697 | } | |
d55e5bfc RD |
38698 | } |
38699 | if (obj5) { | |
093d3ff1 RD |
38700 | { |
38701 | arg6 = (int)(SWIG_As_int(obj5)); | |
38702 | if (SWIG_arg_fail(6)) SWIG_fail; | |
38703 | } | |
d55e5bfc RD |
38704 | } |
38705 | if (obj6) { | |
38706 | arg7 = obj6; | |
38707 | } | |
38708 | { | |
38709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 38710 | result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
38711 | |
38712 | wxPyEndAllowThreads(__tstate); | |
38713 | if (PyErr_Occurred()) SWIG_fail; | |
38714 | } | |
c1cb24a4 | 38715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
38716 | return resultobj; |
38717 | fail: | |
38718 | return NULL; | |
38719 | } | |
38720 | ||
38721 | ||
c32bde28 | 38722 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38723 | PyObject *resultobj; |
38724 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38725 | PyObject *arg2 = (PyObject *) 0 ; | |
38726 | int arg3 = (int) 0 ; | |
38727 | int arg4 = (int) 0 ; | |
38728 | int arg5 = (int) 0 ; | |
38729 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 38730 | wxSizerItem *result; |
d55e5bfc RD |
38731 | PyObject * obj0 = 0 ; |
38732 | PyObject * obj1 = 0 ; | |
38733 | PyObject * obj2 = 0 ; | |
38734 | PyObject * obj3 = 0 ; | |
38735 | PyObject * obj4 = 0 ; | |
38736 | PyObject * obj5 = 0 ; | |
38737 | char *kwnames[] = { | |
38738 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38739 | }; | |
38740 | ||
38741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
38742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38744 | arg2 = obj1; |
38745 | if (obj2) { | |
093d3ff1 RD |
38746 | { |
38747 | arg3 = (int)(SWIG_As_int(obj2)); | |
38748 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38749 | } | |
d55e5bfc RD |
38750 | } |
38751 | if (obj3) { | |
093d3ff1 RD |
38752 | { |
38753 | arg4 = (int)(SWIG_As_int(obj3)); | |
38754 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38755 | } | |
d55e5bfc RD |
38756 | } |
38757 | if (obj4) { | |
093d3ff1 RD |
38758 | { |
38759 | arg5 = (int)(SWIG_As_int(obj4)); | |
38760 | if (SWIG_arg_fail(5)) SWIG_fail; | |
38761 | } | |
d55e5bfc RD |
38762 | } |
38763 | if (obj5) { | |
38764 | arg6 = obj5; | |
38765 | } | |
38766 | { | |
38767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 38768 | result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38769 | |
38770 | wxPyEndAllowThreads(__tstate); | |
38771 | if (PyErr_Occurred()) SWIG_fail; | |
38772 | } | |
c1cb24a4 | 38773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
38774 | return resultobj; |
38775 | fail: | |
38776 | return NULL; | |
38777 | } | |
38778 | ||
38779 | ||
c32bde28 | 38780 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38781 | PyObject *resultobj; |
38782 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38783 | PyObject *arg2 = (PyObject *) 0 ; | |
38784 | bool result; | |
38785 | PyObject * obj0 = 0 ; | |
38786 | PyObject * obj1 = 0 ; | |
38787 | char *kwnames[] = { | |
38788 | (char *) "self",(char *) "item", NULL | |
38789 | }; | |
38790 | ||
38791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38794 | arg2 = obj1; |
38795 | { | |
38796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38797 | result = (bool)wxSizer_Remove(arg1,arg2); | |
38798 | ||
38799 | wxPyEndAllowThreads(__tstate); | |
38800 | if (PyErr_Occurred()) SWIG_fail; | |
38801 | } | |
38802 | { | |
38803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38804 | } | |
38805 | return resultobj; | |
38806 | fail: | |
38807 | return NULL; | |
38808 | } | |
38809 | ||
38810 | ||
c32bde28 | 38811 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
38812 | PyObject *resultobj; |
38813 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38814 | PyObject *arg2 = (PyObject *) 0 ; | |
38815 | bool result; | |
38816 | PyObject * obj0 = 0 ; | |
38817 | PyObject * obj1 = 0 ; | |
38818 | char *kwnames[] = { | |
38819 | (char *) "self",(char *) "item", NULL | |
38820 | }; | |
38821 | ||
38822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1a6bba1e RD |
38825 | arg2 = obj1; |
38826 | { | |
38827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38828 | result = (bool)wxSizer_Detach(arg1,arg2); | |
38829 | ||
38830 | wxPyEndAllowThreads(__tstate); | |
38831 | if (PyErr_Occurred()) SWIG_fail; | |
38832 | } | |
38833 | { | |
38834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38835 | } | |
38836 | return resultobj; | |
38837 | fail: | |
38838 | return NULL; | |
38839 | } | |
38840 | ||
38841 | ||
c1cb24a4 RD |
38842 | static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
38843 | PyObject *resultobj; | |
38844 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38845 | PyObject *arg2 = (PyObject *) 0 ; | |
38846 | wxSizerItem *result; | |
38847 | PyObject * obj0 = 0 ; | |
38848 | PyObject * obj1 = 0 ; | |
38849 | char *kwnames[] = { | |
38850 | (char *) "self",(char *) "item", NULL | |
38851 | }; | |
38852 | ||
38853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c1cb24a4 RD |
38856 | arg2 = obj1; |
38857 | { | |
38858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38859 | result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2); | |
38860 | ||
38861 | wxPyEndAllowThreads(__tstate); | |
38862 | if (PyErr_Occurred()) SWIG_fail; | |
38863 | } | |
38864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); | |
38865 | return resultobj; | |
38866 | fail: | |
38867 | return NULL; | |
38868 | } | |
38869 | ||
38870 | ||
c32bde28 | 38871 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38872 | PyObject *resultobj; |
38873 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38874 | PyObject *arg2 = (PyObject *) 0 ; | |
38875 | wxSize *arg3 = 0 ; | |
38876 | wxSize temp3 ; | |
38877 | PyObject * obj0 = 0 ; | |
38878 | PyObject * obj1 = 0 ; | |
38879 | PyObject * obj2 = 0 ; | |
38880 | char *kwnames[] = { | |
38881 | (char *) "self",(char *) "item",(char *) "size", NULL | |
38882 | }; | |
38883 | ||
38884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
38885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
38887 | arg2 = obj1; |
38888 | { | |
38889 | arg3 = &temp3; | |
38890 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
38891 | } | |
38892 | { | |
38893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38894 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
38895 | ||
38896 | wxPyEndAllowThreads(__tstate); | |
38897 | if (PyErr_Occurred()) SWIG_fail; | |
38898 | } | |
38899 | Py_INCREF(Py_None); resultobj = Py_None; | |
38900 | return resultobj; | |
38901 | fail: | |
38902 | return NULL; | |
38903 | } | |
38904 | ||
38905 | ||
c32bde28 | 38906 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38907 | PyObject *resultobj; |
38908 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38909 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 38910 | wxSizerItem *result; |
d55e5bfc RD |
38911 | PyObject * obj0 = 0 ; |
38912 | PyObject * obj1 = 0 ; | |
38913 | char *kwnames[] = { | |
38914 | (char *) "self",(char *) "item", NULL | |
38915 | }; | |
38916 | ||
38917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38920 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
38921 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
38922 | { |
38923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 38924 | result = (wxSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
38925 | |
38926 | wxPyEndAllowThreads(__tstate); | |
38927 | if (PyErr_Occurred()) SWIG_fail; | |
38928 | } | |
c1cb24a4 | 38929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
38930 | return resultobj; |
38931 | fail: | |
38932 | return NULL; | |
38933 | } | |
38934 | ||
38935 | ||
c32bde28 | 38936 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38937 | PyObject *resultobj; |
38938 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38939 | size_t arg2 ; | |
38940 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 38941 | wxSizerItem *result; |
d55e5bfc RD |
38942 | PyObject * obj0 = 0 ; |
38943 | PyObject * obj1 = 0 ; | |
38944 | PyObject * obj2 = 0 ; | |
38945 | char *kwnames[] = { | |
38946 | (char *) "self",(char *) "index",(char *) "item", NULL | |
38947 | }; | |
38948 | ||
38949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
38950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38952 | { | |
38953 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
38954 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38955 | } | |
38956 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
38957 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
38958 | { |
38959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 38960 | result = (wxSizerItem *)(arg1)->Insert(arg2,arg3); |
d55e5bfc RD |
38961 | |
38962 | wxPyEndAllowThreads(__tstate); | |
38963 | if (PyErr_Occurred()) SWIG_fail; | |
38964 | } | |
c1cb24a4 | 38965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
38966 | return resultobj; |
38967 | fail: | |
38968 | return NULL; | |
38969 | } | |
38970 | ||
38971 | ||
c32bde28 | 38972 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38973 | PyObject *resultobj; |
38974 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38975 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 38976 | wxSizerItem *result; |
d55e5bfc RD |
38977 | PyObject * obj0 = 0 ; |
38978 | PyObject * obj1 = 0 ; | |
38979 | char *kwnames[] = { | |
38980 | (char *) "self",(char *) "item", NULL | |
38981 | }; | |
38982 | ||
38983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38986 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
38987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
38988 | { |
38989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 38990 | result = (wxSizerItem *)(arg1)->Prepend(arg2); |
d55e5bfc RD |
38991 | |
38992 | wxPyEndAllowThreads(__tstate); | |
38993 | if (PyErr_Occurred()) SWIG_fail; | |
38994 | } | |
c1cb24a4 | 38995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
38996 | return resultobj; |
38997 | fail: | |
38998 | return NULL; | |
38999 | } | |
39000 | ||
39001 | ||
c32bde28 | 39002 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39003 | PyObject *resultobj; |
39004 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39005 | int arg2 ; | |
39006 | int arg3 ; | |
39007 | int arg4 ; | |
39008 | int arg5 ; | |
39009 | PyObject * obj0 = 0 ; | |
39010 | PyObject * obj1 = 0 ; | |
39011 | PyObject * obj2 = 0 ; | |
39012 | PyObject * obj3 = 0 ; | |
39013 | PyObject * obj4 = 0 ; | |
39014 | char *kwnames[] = { | |
39015 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
39016 | }; | |
39017 | ||
39018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
39019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39021 | { | |
39022 | arg2 = (int)(SWIG_As_int(obj1)); | |
39023 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39024 | } | |
39025 | { | |
39026 | arg3 = (int)(SWIG_As_int(obj2)); | |
39027 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39028 | } | |
39029 | { | |
39030 | arg4 = (int)(SWIG_As_int(obj3)); | |
39031 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39032 | } | |
39033 | { | |
39034 | arg5 = (int)(SWIG_As_int(obj4)); | |
39035 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39036 | } | |
d55e5bfc RD |
39037 | { |
39038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39039 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
39040 | ||
39041 | wxPyEndAllowThreads(__tstate); | |
39042 | if (PyErr_Occurred()) SWIG_fail; | |
39043 | } | |
39044 | Py_INCREF(Py_None); resultobj = Py_None; | |
39045 | return resultobj; | |
39046 | fail: | |
39047 | return NULL; | |
39048 | } | |
39049 | ||
39050 | ||
c32bde28 | 39051 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39052 | PyObject *resultobj; |
39053 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39054 | wxSize *arg2 = 0 ; | |
39055 | wxSize temp2 ; | |
39056 | PyObject * obj0 = 0 ; | |
39057 | PyObject * obj1 = 0 ; | |
39058 | char *kwnames[] = { | |
39059 | (char *) "self",(char *) "size", NULL | |
39060 | }; | |
39061 | ||
39062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39065 | { |
39066 | arg2 = &temp2; | |
39067 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
39068 | } | |
39069 | { | |
39070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39071 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
39072 | ||
39073 | wxPyEndAllowThreads(__tstate); | |
39074 | if (PyErr_Occurred()) SWIG_fail; | |
39075 | } | |
39076 | Py_INCREF(Py_None); resultobj = Py_None; | |
39077 | return resultobj; | |
39078 | fail: | |
39079 | return NULL; | |
39080 | } | |
39081 | ||
39082 | ||
c32bde28 | 39083 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39084 | PyObject *resultobj; |
39085 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39086 | wxSize result; | |
39087 | PyObject * obj0 = 0 ; | |
39088 | char *kwnames[] = { | |
39089 | (char *) "self", NULL | |
39090 | }; | |
39091 | ||
39092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39095 | { |
39096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39097 | result = (arg1)->GetSize(); | |
39098 | ||
39099 | wxPyEndAllowThreads(__tstate); | |
39100 | if (PyErr_Occurred()) SWIG_fail; | |
39101 | } | |
39102 | { | |
39103 | wxSize * resultptr; | |
093d3ff1 | 39104 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
39105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
39106 | } | |
39107 | return resultobj; | |
39108 | fail: | |
39109 | return NULL; | |
39110 | } | |
39111 | ||
39112 | ||
c32bde28 | 39113 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39114 | PyObject *resultobj; |
39115 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39116 | wxPoint result; | |
39117 | PyObject * obj0 = 0 ; | |
39118 | char *kwnames[] = { | |
39119 | (char *) "self", NULL | |
39120 | }; | |
39121 | ||
39122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39125 | { |
39126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39127 | result = (arg1)->GetPosition(); | |
39128 | ||
39129 | wxPyEndAllowThreads(__tstate); | |
39130 | if (PyErr_Occurred()) SWIG_fail; | |
39131 | } | |
39132 | { | |
39133 | wxPoint * resultptr; | |
093d3ff1 | 39134 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
39135 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
39136 | } | |
39137 | return resultobj; | |
39138 | fail: | |
39139 | return NULL; | |
39140 | } | |
39141 | ||
39142 | ||
c32bde28 | 39143 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39144 | PyObject *resultobj; |
39145 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39146 | wxSize result; | |
39147 | PyObject * obj0 = 0 ; | |
39148 | char *kwnames[] = { | |
39149 | (char *) "self", NULL | |
39150 | }; | |
39151 | ||
39152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39155 | { |
39156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39157 | result = (arg1)->GetMinSize(); | |
39158 | ||
39159 | wxPyEndAllowThreads(__tstate); | |
39160 | if (PyErr_Occurred()) SWIG_fail; | |
39161 | } | |
39162 | { | |
39163 | wxSize * resultptr; | |
093d3ff1 | 39164 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
39165 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
39166 | } | |
39167 | return resultobj; | |
39168 | fail: | |
39169 | return NULL; | |
39170 | } | |
39171 | ||
39172 | ||
c32bde28 | 39173 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39174 | PyObject *resultobj; |
39175 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39176 | PyObject * obj0 = 0 ; | |
39177 | char *kwnames[] = { | |
39178 | (char *) "self", NULL | |
39179 | }; | |
39180 | ||
39181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39184 | { |
39185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39186 | (arg1)->RecalcSizes(); | |
39187 | ||
39188 | wxPyEndAllowThreads(__tstate); | |
39189 | if (PyErr_Occurred()) SWIG_fail; | |
39190 | } | |
39191 | Py_INCREF(Py_None); resultobj = Py_None; | |
39192 | return resultobj; | |
39193 | fail: | |
39194 | return NULL; | |
39195 | } | |
39196 | ||
39197 | ||
c32bde28 | 39198 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39199 | PyObject *resultobj; |
39200 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39201 | wxSize result; | |
39202 | PyObject * obj0 = 0 ; | |
39203 | char *kwnames[] = { | |
39204 | (char *) "self", NULL | |
39205 | }; | |
39206 | ||
39207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39210 | { |
39211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39212 | result = (arg1)->CalcMin(); | |
39213 | ||
39214 | wxPyEndAllowThreads(__tstate); | |
39215 | if (PyErr_Occurred()) SWIG_fail; | |
39216 | } | |
39217 | { | |
39218 | wxSize * resultptr; | |
093d3ff1 | 39219 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
39220 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
39221 | } | |
39222 | return resultobj; | |
39223 | fail: | |
39224 | return NULL; | |
39225 | } | |
39226 | ||
39227 | ||
c32bde28 | 39228 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39229 | PyObject *resultobj; |
39230 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39231 | PyObject * obj0 = 0 ; | |
39232 | char *kwnames[] = { | |
39233 | (char *) "self", NULL | |
39234 | }; | |
39235 | ||
39236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39239 | { |
39240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39241 | (arg1)->Layout(); | |
39242 | ||
39243 | wxPyEndAllowThreads(__tstate); | |
39244 | if (PyErr_Occurred()) SWIG_fail; | |
39245 | } | |
39246 | Py_INCREF(Py_None); resultobj = Py_None; | |
39247 | return resultobj; | |
39248 | fail: | |
39249 | return NULL; | |
39250 | } | |
39251 | ||
39252 | ||
c32bde28 | 39253 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39254 | PyObject *resultobj; |
39255 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39256 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39257 | wxSize result; | |
39258 | PyObject * obj0 = 0 ; | |
39259 | PyObject * obj1 = 0 ; | |
39260 | char *kwnames[] = { | |
39261 | (char *) "self",(char *) "window", NULL | |
39262 | }; | |
39263 | ||
39264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39265 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39267 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
39268 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
39269 | { |
39270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39271 | result = (arg1)->Fit(arg2); | |
39272 | ||
39273 | wxPyEndAllowThreads(__tstate); | |
39274 | if (PyErr_Occurred()) SWIG_fail; | |
39275 | } | |
39276 | { | |
39277 | wxSize * resultptr; | |
093d3ff1 | 39278 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
39279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
39280 | } | |
39281 | return resultobj; | |
39282 | fail: | |
39283 | return NULL; | |
39284 | } | |
39285 | ||
39286 | ||
c32bde28 | 39287 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39288 | PyObject *resultobj; |
39289 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39290 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39291 | PyObject * obj0 = 0 ; | |
39292 | PyObject * obj1 = 0 ; | |
39293 | char *kwnames[] = { | |
39294 | (char *) "self",(char *) "window", NULL | |
39295 | }; | |
39296 | ||
39297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39300 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
39301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
39302 | { |
39303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39304 | (arg1)->FitInside(arg2); | |
39305 | ||
39306 | wxPyEndAllowThreads(__tstate); | |
39307 | if (PyErr_Occurred()) SWIG_fail; | |
39308 | } | |
39309 | Py_INCREF(Py_None); resultobj = Py_None; | |
39310 | return resultobj; | |
39311 | fail: | |
39312 | return NULL; | |
39313 | } | |
39314 | ||
39315 | ||
c32bde28 | 39316 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39317 | PyObject *resultobj; |
39318 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39319 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39320 | PyObject * obj0 = 0 ; | |
39321 | PyObject * obj1 = 0 ; | |
39322 | char *kwnames[] = { | |
39323 | (char *) "self",(char *) "window", NULL | |
39324 | }; | |
39325 | ||
39326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39329 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
39330 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
39331 | { |
39332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39333 | (arg1)->SetSizeHints(arg2); | |
39334 | ||
39335 | wxPyEndAllowThreads(__tstate); | |
39336 | if (PyErr_Occurred()) SWIG_fail; | |
39337 | } | |
39338 | Py_INCREF(Py_None); resultobj = Py_None; | |
39339 | return resultobj; | |
39340 | fail: | |
39341 | return NULL; | |
39342 | } | |
39343 | ||
39344 | ||
c32bde28 | 39345 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39346 | PyObject *resultobj; |
39347 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39348 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39349 | PyObject * obj0 = 0 ; | |
39350 | PyObject * obj1 = 0 ; | |
39351 | char *kwnames[] = { | |
39352 | (char *) "self",(char *) "window", NULL | |
39353 | }; | |
39354 | ||
39355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39358 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
39359 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
39360 | { |
39361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39362 | (arg1)->SetVirtualSizeHints(arg2); | |
39363 | ||
39364 | wxPyEndAllowThreads(__tstate); | |
39365 | if (PyErr_Occurred()) SWIG_fail; | |
39366 | } | |
39367 | Py_INCREF(Py_None); resultobj = Py_None; | |
39368 | return resultobj; | |
39369 | fail: | |
39370 | return NULL; | |
39371 | } | |
39372 | ||
39373 | ||
c32bde28 | 39374 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39375 | PyObject *resultobj; |
39376 | wxSizer *arg1 = (wxSizer *) 0 ; | |
ae8162c8 | 39377 | bool arg2 = (bool) false ; |
d55e5bfc RD |
39378 | PyObject * obj0 = 0 ; |
39379 | PyObject * obj1 = 0 ; | |
39380 | char *kwnames[] = { | |
248ed943 | 39381 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
39382 | }; |
39383 | ||
39384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 39387 | if (obj1) { |
093d3ff1 RD |
39388 | { |
39389 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
39390 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39391 | } | |
d55e5bfc RD |
39392 | } |
39393 | { | |
39394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39395 | (arg1)->Clear(arg2); | |
39396 | ||
39397 | wxPyEndAllowThreads(__tstate); | |
39398 | if (PyErr_Occurred()) SWIG_fail; | |
39399 | } | |
39400 | Py_INCREF(Py_None); resultobj = Py_None; | |
39401 | return resultobj; | |
39402 | fail: | |
39403 | return NULL; | |
39404 | } | |
39405 | ||
39406 | ||
c32bde28 | 39407 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39408 | PyObject *resultobj; |
39409 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39410 | PyObject * obj0 = 0 ; | |
39411 | char *kwnames[] = { | |
39412 | (char *) "self", NULL | |
39413 | }; | |
39414 | ||
39415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39418 | { |
39419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39420 | (arg1)->DeleteWindows(); | |
39421 | ||
39422 | wxPyEndAllowThreads(__tstate); | |
39423 | if (PyErr_Occurred()) SWIG_fail; | |
39424 | } | |
39425 | Py_INCREF(Py_None); resultobj = Py_None; | |
39426 | return resultobj; | |
39427 | fail: | |
39428 | return NULL; | |
39429 | } | |
39430 | ||
39431 | ||
c32bde28 | 39432 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39433 | PyObject *resultobj; |
39434 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39435 | PyObject *result; | |
39436 | PyObject * obj0 = 0 ; | |
39437 | char *kwnames[] = { | |
39438 | (char *) "self", NULL | |
39439 | }; | |
39440 | ||
39441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39442 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39443 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39444 | { |
39445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39446 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
39447 | ||
39448 | wxPyEndAllowThreads(__tstate); | |
39449 | if (PyErr_Occurred()) SWIG_fail; | |
39450 | } | |
39451 | resultobj = result; | |
39452 | return resultobj; | |
39453 | fail: | |
39454 | return NULL; | |
39455 | } | |
39456 | ||
39457 | ||
c32bde28 | 39458 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39459 | PyObject *resultobj; |
39460 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39461 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 RD |
39462 | bool arg3 = (bool) true ; |
39463 | bool arg4 = (bool) false ; | |
7e63a440 | 39464 | bool result; |
d55e5bfc RD |
39465 | PyObject * obj0 = 0 ; |
39466 | PyObject * obj1 = 0 ; | |
39467 | PyObject * obj2 = 0 ; | |
7e63a440 | 39468 | PyObject * obj3 = 0 ; |
d55e5bfc | 39469 | char *kwnames[] = { |
7e63a440 | 39470 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
39471 | }; |
39472 | ||
7e63a440 | 39473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
39474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39476 | arg2 = obj1; |
39477 | if (obj2) { | |
093d3ff1 RD |
39478 | { |
39479 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
39480 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39481 | } | |
d55e5bfc | 39482 | } |
7e63a440 | 39483 | if (obj3) { |
093d3ff1 RD |
39484 | { |
39485 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
39486 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39487 | } | |
7e63a440 | 39488 | } |
d55e5bfc RD |
39489 | { |
39490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e63a440 | 39491 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
39492 | |
39493 | wxPyEndAllowThreads(__tstate); | |
39494 | if (PyErr_Occurred()) SWIG_fail; | |
39495 | } | |
7e63a440 RD |
39496 | { |
39497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39498 | } | |
d55e5bfc RD |
39499 | return resultobj; |
39500 | fail: | |
39501 | return NULL; | |
39502 | } | |
39503 | ||
39504 | ||
c32bde28 | 39505 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39506 | PyObject *resultobj; |
39507 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39508 | PyObject *arg2 = (PyObject *) 0 ; | |
39509 | bool result; | |
39510 | PyObject * obj0 = 0 ; | |
39511 | PyObject * obj1 = 0 ; | |
39512 | char *kwnames[] = { | |
39513 | (char *) "self",(char *) "item", NULL | |
39514 | }; | |
39515 | ||
39516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39519 | arg2 = obj1; |
39520 | { | |
39521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39522 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
39523 | ||
39524 | wxPyEndAllowThreads(__tstate); | |
39525 | if (PyErr_Occurred()) SWIG_fail; | |
39526 | } | |
39527 | { | |
39528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39529 | } | |
39530 | return resultobj; | |
39531 | fail: | |
39532 | return NULL; | |
39533 | } | |
39534 | ||
39535 | ||
c32bde28 | 39536 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39537 | PyObject *resultobj; |
39538 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39539 | bool arg2 ; | |
39540 | PyObject * obj0 = 0 ; | |
39541 | PyObject * obj1 = 0 ; | |
39542 | char *kwnames[] = { | |
39543 | (char *) "self",(char *) "show", NULL | |
39544 | }; | |
39545 | ||
39546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39549 | { | |
39550 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
39551 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39552 | } | |
d55e5bfc RD |
39553 | { |
39554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39555 | (arg1)->ShowItems(arg2); | |
39556 | ||
39557 | wxPyEndAllowThreads(__tstate); | |
39558 | if (PyErr_Occurred()) SWIG_fail; | |
39559 | } | |
39560 | Py_INCREF(Py_None); resultobj = Py_None; | |
39561 | return resultobj; | |
39562 | fail: | |
39563 | return NULL; | |
39564 | } | |
39565 | ||
39566 | ||
c32bde28 | 39567 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39568 | PyObject *obj; |
39569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39570 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
39571 | Py_INCREF(obj); | |
39572 | return Py_BuildValue((char *)""); | |
39573 | } | |
c32bde28 | 39574 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39575 | PyObject *resultobj; |
39576 | wxPySizer *result; | |
39577 | char *kwnames[] = { | |
39578 | NULL | |
39579 | }; | |
39580 | ||
39581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
39582 | { | |
39583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39584 | result = (wxPySizer *)new wxPySizer(); | |
39585 | ||
39586 | wxPyEndAllowThreads(__tstate); | |
39587 | if (PyErr_Occurred()) SWIG_fail; | |
39588 | } | |
39589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
39590 | return resultobj; | |
39591 | fail: | |
39592 | return NULL; | |
39593 | } | |
39594 | ||
39595 | ||
c32bde28 | 39596 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39597 | PyObject *resultobj; |
39598 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
39599 | PyObject *arg2 = (PyObject *) 0 ; | |
39600 | PyObject *arg3 = (PyObject *) 0 ; | |
39601 | PyObject * obj0 = 0 ; | |
39602 | PyObject * obj1 = 0 ; | |
39603 | PyObject * obj2 = 0 ; | |
39604 | char *kwnames[] = { | |
39605 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
39606 | }; | |
39607 | ||
39608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
39609 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPySizer, SWIG_POINTER_EXCEPTION | 0); |
39610 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39611 | arg2 = obj1; |
39612 | arg3 = obj2; | |
39613 | { | |
39614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39615 | (arg1)->_setCallbackInfo(arg2,arg3); | |
39616 | ||
39617 | wxPyEndAllowThreads(__tstate); | |
39618 | if (PyErr_Occurred()) SWIG_fail; | |
39619 | } | |
39620 | Py_INCREF(Py_None); resultobj = Py_None; | |
39621 | return resultobj; | |
39622 | fail: | |
39623 | return NULL; | |
39624 | } | |
39625 | ||
39626 | ||
c32bde28 | 39627 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39628 | PyObject *obj; |
39629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39630 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
39631 | Py_INCREF(obj); | |
39632 | return Py_BuildValue((char *)""); | |
39633 | } | |
c32bde28 | 39634 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39635 | PyObject *resultobj; |
39636 | int arg1 = (int) wxHORIZONTAL ; | |
39637 | wxBoxSizer *result; | |
39638 | PyObject * obj0 = 0 ; | |
39639 | char *kwnames[] = { | |
39640 | (char *) "orient", NULL | |
39641 | }; | |
39642 | ||
39643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
39644 | if (obj0) { | |
093d3ff1 RD |
39645 | { |
39646 | arg1 = (int)(SWIG_As_int(obj0)); | |
39647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39648 | } | |
d55e5bfc RD |
39649 | } |
39650 | { | |
39651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39652 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
39653 | ||
39654 | wxPyEndAllowThreads(__tstate); | |
39655 | if (PyErr_Occurred()) SWIG_fail; | |
39656 | } | |
39657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
39658 | return resultobj; | |
39659 | fail: | |
39660 | return NULL; | |
39661 | } | |
39662 | ||
39663 | ||
c32bde28 | 39664 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39665 | PyObject *resultobj; |
39666 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
39667 | int result; | |
39668 | PyObject * obj0 = 0 ; | |
39669 | char *kwnames[] = { | |
39670 | (char *) "self", NULL | |
39671 | }; | |
39672 | ||
39673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
39675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39676 | { |
39677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39678 | result = (int)(arg1)->GetOrientation(); | |
39679 | ||
39680 | wxPyEndAllowThreads(__tstate); | |
39681 | if (PyErr_Occurred()) SWIG_fail; | |
39682 | } | |
093d3ff1 RD |
39683 | { |
39684 | resultobj = SWIG_From_int((int)(result)); | |
39685 | } | |
d55e5bfc RD |
39686 | return resultobj; |
39687 | fail: | |
39688 | return NULL; | |
39689 | } | |
39690 | ||
39691 | ||
c32bde28 | 39692 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39693 | PyObject *resultobj; |
39694 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
39695 | int arg2 ; | |
39696 | PyObject * obj0 = 0 ; | |
39697 | PyObject * obj1 = 0 ; | |
39698 | char *kwnames[] = { | |
39699 | (char *) "self",(char *) "orient", NULL | |
39700 | }; | |
39701 | ||
39702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
39704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39705 | { | |
39706 | arg2 = (int)(SWIG_As_int(obj1)); | |
39707 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39708 | } | |
d55e5bfc RD |
39709 | { |
39710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39711 | (arg1)->SetOrientation(arg2); | |
39712 | ||
39713 | wxPyEndAllowThreads(__tstate); | |
39714 | if (PyErr_Occurred()) SWIG_fail; | |
39715 | } | |
39716 | Py_INCREF(Py_None); resultobj = Py_None; | |
39717 | return resultobj; | |
39718 | fail: | |
39719 | return NULL; | |
39720 | } | |
39721 | ||
39722 | ||
c32bde28 | 39723 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39724 | PyObject *obj; |
39725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39726 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
39727 | Py_INCREF(obj); | |
39728 | return Py_BuildValue((char *)""); | |
39729 | } | |
c32bde28 | 39730 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39731 | PyObject *resultobj; |
39732 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
39733 | int arg2 = (int) wxHORIZONTAL ; | |
39734 | wxStaticBoxSizer *result; | |
39735 | PyObject * obj0 = 0 ; | |
39736 | PyObject * obj1 = 0 ; | |
39737 | char *kwnames[] = { | |
39738 | (char *) "box",(char *) "orient", NULL | |
39739 | }; | |
39740 | ||
39741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
39743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 39744 | if (obj1) { |
093d3ff1 RD |
39745 | { |
39746 | arg2 = (int)(SWIG_As_int(obj1)); | |
39747 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39748 | } | |
d55e5bfc RD |
39749 | } |
39750 | { | |
39751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39752 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
39753 | ||
39754 | wxPyEndAllowThreads(__tstate); | |
39755 | if (PyErr_Occurred()) SWIG_fail; | |
39756 | } | |
39757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
39758 | return resultobj; | |
39759 | fail: | |
39760 | return NULL; | |
39761 | } | |
39762 | ||
39763 | ||
c32bde28 | 39764 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39765 | PyObject *resultobj; |
39766 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
39767 | wxStaticBox *result; | |
39768 | PyObject * obj0 = 0 ; | |
39769 | char *kwnames[] = { | |
39770 | (char *) "self", NULL | |
39771 | }; | |
39772 | ||
39773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39774 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
39775 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39776 | { |
39777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39778 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
39779 | ||
39780 | wxPyEndAllowThreads(__tstate); | |
39781 | if (PyErr_Occurred()) SWIG_fail; | |
39782 | } | |
39783 | { | |
412d302d | 39784 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
39785 | } |
39786 | return resultobj; | |
39787 | fail: | |
39788 | return NULL; | |
39789 | } | |
39790 | ||
39791 | ||
c32bde28 | 39792 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39793 | PyObject *obj; |
39794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39795 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
39796 | Py_INCREF(obj); | |
39797 | return Py_BuildValue((char *)""); | |
39798 | } | |
c32bde28 | 39799 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39800 | PyObject *resultobj; |
39801 | int arg1 = (int) 1 ; | |
39802 | int arg2 = (int) 0 ; | |
39803 | int arg3 = (int) 0 ; | |
39804 | int arg4 = (int) 0 ; | |
39805 | wxGridSizer *result; | |
39806 | PyObject * obj0 = 0 ; | |
39807 | PyObject * obj1 = 0 ; | |
39808 | PyObject * obj2 = 0 ; | |
39809 | PyObject * obj3 = 0 ; | |
39810 | char *kwnames[] = { | |
39811 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
39812 | }; | |
39813 | ||
39814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39815 | if (obj0) { | |
093d3ff1 RD |
39816 | { |
39817 | arg1 = (int)(SWIG_As_int(obj0)); | |
39818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39819 | } | |
d55e5bfc RD |
39820 | } |
39821 | if (obj1) { | |
093d3ff1 RD |
39822 | { |
39823 | arg2 = (int)(SWIG_As_int(obj1)); | |
39824 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39825 | } | |
d55e5bfc RD |
39826 | } |
39827 | if (obj2) { | |
093d3ff1 RD |
39828 | { |
39829 | arg3 = (int)(SWIG_As_int(obj2)); | |
39830 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39831 | } | |
d55e5bfc RD |
39832 | } |
39833 | if (obj3) { | |
093d3ff1 RD |
39834 | { |
39835 | arg4 = (int)(SWIG_As_int(obj3)); | |
39836 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39837 | } | |
d55e5bfc RD |
39838 | } |
39839 | { | |
39840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39841 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
39842 | ||
39843 | wxPyEndAllowThreads(__tstate); | |
39844 | if (PyErr_Occurred()) SWIG_fail; | |
39845 | } | |
39846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
39847 | return resultobj; | |
39848 | fail: | |
39849 | return NULL; | |
39850 | } | |
39851 | ||
39852 | ||
c32bde28 | 39853 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39854 | PyObject *resultobj; |
39855 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
39856 | int arg2 ; | |
39857 | PyObject * obj0 = 0 ; | |
39858 | PyObject * obj1 = 0 ; | |
39859 | char *kwnames[] = { | |
39860 | (char *) "self",(char *) "cols", NULL | |
39861 | }; | |
39862 | ||
39863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
39865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39866 | { | |
39867 | arg2 = (int)(SWIG_As_int(obj1)); | |
39868 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39869 | } | |
d55e5bfc RD |
39870 | { |
39871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39872 | (arg1)->SetCols(arg2); | |
39873 | ||
39874 | wxPyEndAllowThreads(__tstate); | |
39875 | if (PyErr_Occurred()) SWIG_fail; | |
39876 | } | |
39877 | Py_INCREF(Py_None); resultobj = Py_None; | |
39878 | return resultobj; | |
39879 | fail: | |
39880 | return NULL; | |
39881 | } | |
39882 | ||
39883 | ||
c32bde28 | 39884 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39885 | PyObject *resultobj; |
39886 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
39887 | int arg2 ; | |
39888 | PyObject * obj0 = 0 ; | |
39889 | PyObject * obj1 = 0 ; | |
39890 | char *kwnames[] = { | |
39891 | (char *) "self",(char *) "rows", NULL | |
39892 | }; | |
39893 | ||
39894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
39896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39897 | { | |
39898 | arg2 = (int)(SWIG_As_int(obj1)); | |
39899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39900 | } | |
d55e5bfc RD |
39901 | { |
39902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39903 | (arg1)->SetRows(arg2); | |
39904 | ||
39905 | wxPyEndAllowThreads(__tstate); | |
39906 | if (PyErr_Occurred()) SWIG_fail; | |
39907 | } | |
39908 | Py_INCREF(Py_None); resultobj = Py_None; | |
39909 | return resultobj; | |
39910 | fail: | |
39911 | return NULL; | |
39912 | } | |
39913 | ||
39914 | ||
c32bde28 | 39915 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39916 | PyObject *resultobj; |
39917 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
39918 | int arg2 ; | |
39919 | PyObject * obj0 = 0 ; | |
39920 | PyObject * obj1 = 0 ; | |
39921 | char *kwnames[] = { | |
39922 | (char *) "self",(char *) "gap", NULL | |
39923 | }; | |
39924 | ||
39925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
39927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39928 | { | |
39929 | arg2 = (int)(SWIG_As_int(obj1)); | |
39930 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39931 | } | |
d55e5bfc RD |
39932 | { |
39933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39934 | (arg1)->SetVGap(arg2); | |
39935 | ||
39936 | wxPyEndAllowThreads(__tstate); | |
39937 | if (PyErr_Occurred()) SWIG_fail; | |
39938 | } | |
39939 | Py_INCREF(Py_None); resultobj = Py_None; | |
39940 | return resultobj; | |
39941 | fail: | |
39942 | return NULL; | |
39943 | } | |
39944 | ||
39945 | ||
c32bde28 | 39946 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39947 | PyObject *resultobj; |
39948 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
39949 | int arg2 ; | |
39950 | PyObject * obj0 = 0 ; | |
39951 | PyObject * obj1 = 0 ; | |
39952 | char *kwnames[] = { | |
39953 | (char *) "self",(char *) "gap", NULL | |
39954 | }; | |
39955 | ||
39956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
39958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39959 | { | |
39960 | arg2 = (int)(SWIG_As_int(obj1)); | |
39961 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39962 | } | |
d55e5bfc RD |
39963 | { |
39964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39965 | (arg1)->SetHGap(arg2); | |
39966 | ||
39967 | wxPyEndAllowThreads(__tstate); | |
39968 | if (PyErr_Occurred()) SWIG_fail; | |
39969 | } | |
39970 | Py_INCREF(Py_None); resultobj = Py_None; | |
39971 | return resultobj; | |
39972 | fail: | |
39973 | return NULL; | |
39974 | } | |
39975 | ||
39976 | ||
c32bde28 | 39977 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39978 | PyObject *resultobj; |
39979 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
39980 | int result; | |
39981 | PyObject * obj0 = 0 ; | |
39982 | char *kwnames[] = { | |
39983 | (char *) "self", NULL | |
39984 | }; | |
39985 | ||
39986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39987 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
39988 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
39989 | { |
39990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39991 | result = (int)(arg1)->GetCols(); | |
39992 | ||
39993 | wxPyEndAllowThreads(__tstate); | |
39994 | if (PyErr_Occurred()) SWIG_fail; | |
39995 | } | |
093d3ff1 RD |
39996 | { |
39997 | resultobj = SWIG_From_int((int)(result)); | |
39998 | } | |
d55e5bfc RD |
39999 | return resultobj; |
40000 | fail: | |
40001 | return NULL; | |
40002 | } | |
40003 | ||
40004 | ||
c32bde28 | 40005 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40006 | PyObject *resultobj; |
40007 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40008 | int result; | |
40009 | PyObject * obj0 = 0 ; | |
40010 | char *kwnames[] = { | |
40011 | (char *) "self", NULL | |
40012 | }; | |
40013 | ||
40014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40017 | { |
40018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40019 | result = (int)(arg1)->GetRows(); | |
40020 | ||
40021 | wxPyEndAllowThreads(__tstate); | |
40022 | if (PyErr_Occurred()) SWIG_fail; | |
40023 | } | |
093d3ff1 RD |
40024 | { |
40025 | resultobj = SWIG_From_int((int)(result)); | |
40026 | } | |
d55e5bfc RD |
40027 | return resultobj; |
40028 | fail: | |
40029 | return NULL; | |
40030 | } | |
40031 | ||
40032 | ||
c32bde28 | 40033 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40034 | PyObject *resultobj; |
40035 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40036 | int result; | |
40037 | PyObject * obj0 = 0 ; | |
40038 | char *kwnames[] = { | |
40039 | (char *) "self", NULL | |
40040 | }; | |
40041 | ||
40042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40043 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40045 | { |
40046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40047 | result = (int)(arg1)->GetVGap(); | |
40048 | ||
40049 | wxPyEndAllowThreads(__tstate); | |
40050 | if (PyErr_Occurred()) SWIG_fail; | |
40051 | } | |
093d3ff1 RD |
40052 | { |
40053 | resultobj = SWIG_From_int((int)(result)); | |
40054 | } | |
d55e5bfc RD |
40055 | return resultobj; |
40056 | fail: | |
40057 | return NULL; | |
40058 | } | |
40059 | ||
40060 | ||
c32bde28 | 40061 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40062 | PyObject *resultobj; |
40063 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40064 | int result; | |
40065 | PyObject * obj0 = 0 ; | |
40066 | char *kwnames[] = { | |
40067 | (char *) "self", NULL | |
40068 | }; | |
40069 | ||
40070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40071 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40072 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40073 | { |
40074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40075 | result = (int)(arg1)->GetHGap(); | |
40076 | ||
40077 | wxPyEndAllowThreads(__tstate); | |
40078 | if (PyErr_Occurred()) SWIG_fail; | |
40079 | } | |
093d3ff1 RD |
40080 | { |
40081 | resultobj = SWIG_From_int((int)(result)); | |
40082 | } | |
d55e5bfc RD |
40083 | return resultobj; |
40084 | fail: | |
40085 | return NULL; | |
40086 | } | |
40087 | ||
40088 | ||
c32bde28 | 40089 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40090 | PyObject *obj; |
40091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40092 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
40093 | Py_INCREF(obj); | |
40094 | return Py_BuildValue((char *)""); | |
40095 | } | |
c32bde28 | 40096 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40097 | PyObject *resultobj; |
40098 | int arg1 = (int) 1 ; | |
40099 | int arg2 = (int) 0 ; | |
40100 | int arg3 = (int) 0 ; | |
40101 | int arg4 = (int) 0 ; | |
40102 | wxFlexGridSizer *result; | |
40103 | PyObject * obj0 = 0 ; | |
40104 | PyObject * obj1 = 0 ; | |
40105 | PyObject * obj2 = 0 ; | |
40106 | PyObject * obj3 = 0 ; | |
40107 | char *kwnames[] = { | |
40108 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
40109 | }; | |
40110 | ||
40111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40112 | if (obj0) { | |
093d3ff1 RD |
40113 | { |
40114 | arg1 = (int)(SWIG_As_int(obj0)); | |
40115 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40116 | } | |
d55e5bfc RD |
40117 | } |
40118 | if (obj1) { | |
093d3ff1 RD |
40119 | { |
40120 | arg2 = (int)(SWIG_As_int(obj1)); | |
40121 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40122 | } | |
d55e5bfc RD |
40123 | } |
40124 | if (obj2) { | |
093d3ff1 RD |
40125 | { |
40126 | arg3 = (int)(SWIG_As_int(obj2)); | |
40127 | if (SWIG_arg_fail(3)) SWIG_fail; | |
40128 | } | |
d55e5bfc RD |
40129 | } |
40130 | if (obj3) { | |
093d3ff1 RD |
40131 | { |
40132 | arg4 = (int)(SWIG_As_int(obj3)); | |
40133 | if (SWIG_arg_fail(4)) SWIG_fail; | |
40134 | } | |
d55e5bfc RD |
40135 | } |
40136 | { | |
40137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40138 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
40139 | ||
40140 | wxPyEndAllowThreads(__tstate); | |
40141 | if (PyErr_Occurred()) SWIG_fail; | |
40142 | } | |
40143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
40144 | return resultobj; | |
40145 | fail: | |
40146 | return NULL; | |
40147 | } | |
40148 | ||
40149 | ||
c32bde28 | 40150 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40151 | PyObject *resultobj; |
40152 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
40153 | size_t arg2 ; | |
40154 | int arg3 = (int) 0 ; | |
40155 | PyObject * obj0 = 0 ; | |
40156 | PyObject * obj1 = 0 ; | |
40157 | PyObject * obj2 = 0 ; | |
40158 | char *kwnames[] = { | |
40159 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
40160 | }; | |
40161 | ||
40162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
40163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40165 | { | |
40166 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
40167 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40168 | } | |
d55e5bfc | 40169 | if (obj2) { |
093d3ff1 RD |
40170 | { |
40171 | arg3 = (int)(SWIG_As_int(obj2)); | |
40172 | if (SWIG_arg_fail(3)) SWIG_fail; | |
40173 | } | |
d55e5bfc RD |
40174 | } |
40175 | { | |
40176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40177 | (arg1)->AddGrowableRow(arg2,arg3); | |
40178 | ||
40179 | wxPyEndAllowThreads(__tstate); | |
40180 | if (PyErr_Occurred()) SWIG_fail; | |
40181 | } | |
40182 | Py_INCREF(Py_None); resultobj = Py_None; | |
40183 | return resultobj; | |
40184 | fail: | |
40185 | return NULL; | |
40186 | } | |
40187 | ||
40188 | ||
c32bde28 | 40189 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40190 | PyObject *resultobj; |
40191 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
40192 | size_t arg2 ; | |
40193 | PyObject * obj0 = 0 ; | |
40194 | PyObject * obj1 = 0 ; | |
40195 | char *kwnames[] = { | |
40196 | (char *) "self",(char *) "idx", NULL | |
40197 | }; | |
40198 | ||
40199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40202 | { | |
40203 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
40204 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40205 | } | |
d55e5bfc RD |
40206 | { |
40207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40208 | (arg1)->RemoveGrowableRow(arg2); | |
40209 | ||
40210 | wxPyEndAllowThreads(__tstate); | |
40211 | if (PyErr_Occurred()) SWIG_fail; | |
40212 | } | |
40213 | Py_INCREF(Py_None); resultobj = Py_None; | |
40214 | return resultobj; | |
40215 | fail: | |
40216 | return NULL; | |
40217 | } | |
40218 | ||
40219 | ||
c32bde28 | 40220 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40221 | PyObject *resultobj; |
40222 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
40223 | size_t arg2 ; | |
40224 | int arg3 = (int) 0 ; | |
40225 | PyObject * obj0 = 0 ; | |
40226 | PyObject * obj1 = 0 ; | |
40227 | PyObject * obj2 = 0 ; | |
40228 | char *kwnames[] = { | |
40229 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
40230 | }; | |
40231 | ||
40232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
40233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40235 | { | |
40236 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
40237 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40238 | } | |
d55e5bfc | 40239 | if (obj2) { |
093d3ff1 RD |
40240 | { |
40241 | arg3 = (int)(SWIG_As_int(obj2)); | |
40242 | if (SWIG_arg_fail(3)) SWIG_fail; | |
40243 | } | |
d55e5bfc RD |
40244 | } |
40245 | { | |
40246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40247 | (arg1)->AddGrowableCol(arg2,arg3); | |
40248 | ||
40249 | wxPyEndAllowThreads(__tstate); | |
40250 | if (PyErr_Occurred()) SWIG_fail; | |
40251 | } | |
40252 | Py_INCREF(Py_None); resultobj = Py_None; | |
40253 | return resultobj; | |
40254 | fail: | |
40255 | return NULL; | |
40256 | } | |
40257 | ||
40258 | ||
c32bde28 | 40259 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40260 | PyObject *resultobj; |
40261 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
40262 | size_t arg2 ; | |
40263 | PyObject * obj0 = 0 ; | |
40264 | PyObject * obj1 = 0 ; | |
40265 | char *kwnames[] = { | |
40266 | (char *) "self",(char *) "idx", NULL | |
40267 | }; | |
40268 | ||
40269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40272 | { | |
40273 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
40274 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40275 | } | |
d55e5bfc RD |
40276 | { |
40277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40278 | (arg1)->RemoveGrowableCol(arg2); | |
40279 | ||
40280 | wxPyEndAllowThreads(__tstate); | |
40281 | if (PyErr_Occurred()) SWIG_fail; | |
40282 | } | |
40283 | Py_INCREF(Py_None); resultobj = Py_None; | |
40284 | return resultobj; | |
40285 | fail: | |
40286 | return NULL; | |
40287 | } | |
40288 | ||
40289 | ||
c32bde28 | 40290 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40291 | PyObject *resultobj; |
40292 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
40293 | int arg2 ; | |
40294 | PyObject * obj0 = 0 ; | |
40295 | PyObject * obj1 = 0 ; | |
40296 | char *kwnames[] = { | |
40297 | (char *) "self",(char *) "direction", NULL | |
40298 | }; | |
40299 | ||
40300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40303 | { | |
40304 | arg2 = (int)(SWIG_As_int(obj1)); | |
40305 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40306 | } | |
d55e5bfc RD |
40307 | { |
40308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40309 | (arg1)->SetFlexibleDirection(arg2); | |
40310 | ||
40311 | wxPyEndAllowThreads(__tstate); | |
40312 | if (PyErr_Occurred()) SWIG_fail; | |
40313 | } | |
40314 | Py_INCREF(Py_None); resultobj = Py_None; | |
40315 | return resultobj; | |
40316 | fail: | |
40317 | return NULL; | |
40318 | } | |
40319 | ||
40320 | ||
c32bde28 | 40321 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40322 | PyObject *resultobj; |
40323 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
40324 | int result; | |
40325 | PyObject * obj0 = 0 ; | |
40326 | char *kwnames[] = { | |
40327 | (char *) "self", NULL | |
40328 | }; | |
40329 | ||
40330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40333 | { |
40334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40335 | result = (int)(arg1)->GetFlexibleDirection(); | |
40336 | ||
40337 | wxPyEndAllowThreads(__tstate); | |
40338 | if (PyErr_Occurred()) SWIG_fail; | |
40339 | } | |
093d3ff1 RD |
40340 | { |
40341 | resultobj = SWIG_From_int((int)(result)); | |
40342 | } | |
d55e5bfc RD |
40343 | return resultobj; |
40344 | fail: | |
40345 | return NULL; | |
40346 | } | |
40347 | ||
40348 | ||
c32bde28 | 40349 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40350 | PyObject *resultobj; |
40351 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
093d3ff1 | 40352 | wxFlexSizerGrowMode arg2 ; |
d55e5bfc RD |
40353 | PyObject * obj0 = 0 ; |
40354 | PyObject * obj1 = 0 ; | |
40355 | char *kwnames[] = { | |
40356 | (char *) "self",(char *) "mode", NULL | |
40357 | }; | |
40358 | ||
40359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40362 | { | |
40363 | arg2 = (wxFlexSizerGrowMode)(SWIG_As_int(obj1)); | |
40364 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40365 | } | |
d55e5bfc RD |
40366 | { |
40367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40368 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
40369 | ||
40370 | wxPyEndAllowThreads(__tstate); | |
40371 | if (PyErr_Occurred()) SWIG_fail; | |
40372 | } | |
40373 | Py_INCREF(Py_None); resultobj = Py_None; | |
40374 | return resultobj; | |
40375 | fail: | |
40376 | return NULL; | |
40377 | } | |
40378 | ||
40379 | ||
c32bde28 | 40380 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40381 | PyObject *resultobj; |
40382 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
093d3ff1 | 40383 | wxFlexSizerGrowMode result; |
d55e5bfc RD |
40384 | PyObject * obj0 = 0 ; |
40385 | char *kwnames[] = { | |
40386 | (char *) "self", NULL | |
40387 | }; | |
40388 | ||
40389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40392 | { |
40393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 40394 | result = (wxFlexSizerGrowMode)(arg1)->GetNonFlexibleGrowMode(); |
d55e5bfc RD |
40395 | |
40396 | wxPyEndAllowThreads(__tstate); | |
40397 | if (PyErr_Occurred()) SWIG_fail; | |
40398 | } | |
093d3ff1 | 40399 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
40400 | return resultobj; |
40401 | fail: | |
40402 | return NULL; | |
40403 | } | |
40404 | ||
40405 | ||
c32bde28 | 40406 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40407 | PyObject *resultobj; |
40408 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
40409 | wxArrayInt *result; | |
40410 | PyObject * obj0 = 0 ; | |
40411 | char *kwnames[] = { | |
40412 | (char *) "self", NULL | |
40413 | }; | |
40414 | ||
40415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40418 | { |
40419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40420 | { | |
40421 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
40422 | result = (wxArrayInt *) &_result_ref; | |
40423 | } | |
40424 | ||
40425 | wxPyEndAllowThreads(__tstate); | |
40426 | if (PyErr_Occurred()) SWIG_fail; | |
40427 | } | |
40428 | { | |
40429 | resultobj = PyList_New(0); | |
40430 | size_t idx; | |
40431 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
40432 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
40433 | PyList_Append(resultobj, val); | |
40434 | Py_DECREF(val); | |
40435 | } | |
40436 | } | |
40437 | return resultobj; | |
40438 | fail: | |
40439 | return NULL; | |
40440 | } | |
40441 | ||
40442 | ||
c32bde28 | 40443 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40444 | PyObject *resultobj; |
40445 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
40446 | wxArrayInt *result; | |
40447 | PyObject * obj0 = 0 ; | |
40448 | char *kwnames[] = { | |
40449 | (char *) "self", NULL | |
40450 | }; | |
40451 | ||
40452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40455 | { |
40456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40457 | { | |
40458 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
40459 | result = (wxArrayInt *) &_result_ref; | |
40460 | } | |
40461 | ||
40462 | wxPyEndAllowThreads(__tstate); | |
40463 | if (PyErr_Occurred()) SWIG_fail; | |
40464 | } | |
40465 | { | |
40466 | resultobj = PyList_New(0); | |
40467 | size_t idx; | |
40468 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
40469 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
40470 | PyList_Append(resultobj, val); | |
40471 | Py_DECREF(val); | |
40472 | } | |
40473 | } | |
40474 | return resultobj; | |
40475 | fail: | |
40476 | return NULL; | |
40477 | } | |
40478 | ||
40479 | ||
c32bde28 | 40480 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40481 | PyObject *obj; |
40482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40483 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
40484 | Py_INCREF(obj); | |
40485 | return Py_BuildValue((char *)""); | |
40486 | } | |
62d32a5f RD |
40487 | static PyObject *_wrap_new_StdDialogButtonSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
40488 | PyObject *resultobj; | |
40489 | wxStdDialogButtonSizer *result; | |
40490 | char *kwnames[] = { | |
40491 | NULL | |
40492 | }; | |
40493 | ||
40494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StdDialogButtonSizer",kwnames)) goto fail; | |
40495 | { | |
40496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40497 | result = (wxStdDialogButtonSizer *)new wxStdDialogButtonSizer(); | |
40498 | ||
40499 | wxPyEndAllowThreads(__tstate); | |
40500 | if (PyErr_Occurred()) SWIG_fail; | |
40501 | } | |
40502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStdDialogButtonSizer, 1); | |
40503 | return resultobj; | |
40504 | fail: | |
40505 | return NULL; | |
40506 | } | |
40507 | ||
40508 | ||
40509 | static PyObject *_wrap_StdDialogButtonSizer_AddButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
40510 | PyObject *resultobj; | |
40511 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40512 | wxButton *arg2 = (wxButton *) 0 ; | |
40513 | PyObject * obj0 = 0 ; | |
40514 | PyObject * obj1 = 0 ; | |
40515 | char *kwnames[] = { | |
40516 | (char *) "self",(char *) "button", NULL | |
40517 | }; | |
40518 | ||
40519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_AddButton",kwnames,&obj0,&obj1)) goto fail; | |
40520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40522 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
40523 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40524 | { | |
40525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40526 | (arg1)->AddButton(arg2); | |
40527 | ||
40528 | wxPyEndAllowThreads(__tstate); | |
40529 | if (PyErr_Occurred()) SWIG_fail; | |
40530 | } | |
40531 | Py_INCREF(Py_None); resultobj = Py_None; | |
40532 | return resultobj; | |
40533 | fail: | |
40534 | return NULL; | |
40535 | } | |
40536 | ||
40537 | ||
40538 | static PyObject *_wrap_StdDialogButtonSizer_Finalise(PyObject *, PyObject *args, PyObject *kwargs) { | |
40539 | PyObject *resultobj; | |
40540 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40541 | PyObject * obj0 = 0 ; | |
40542 | char *kwnames[] = { | |
40543 | (char *) "self", NULL | |
40544 | }; | |
40545 | ||
40546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_Finalise",kwnames,&obj0)) goto fail; | |
40547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40549 | { | |
40550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40551 | (arg1)->Finalise(); | |
40552 | ||
40553 | wxPyEndAllowThreads(__tstate); | |
40554 | if (PyErr_Occurred()) SWIG_fail; | |
40555 | } | |
40556 | Py_INCREF(Py_None); resultobj = Py_None; | |
40557 | return resultobj; | |
40558 | fail: | |
40559 | return NULL; | |
40560 | } | |
40561 | ||
40562 | ||
51b83b37 RD |
40563 | static PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) { |
40564 | PyObject *resultobj; | |
40565 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40566 | wxButton *arg2 = (wxButton *) 0 ; | |
40567 | PyObject * obj0 = 0 ; | |
40568 | PyObject * obj1 = 0 ; | |
40569 | char *kwnames[] = { | |
40570 | (char *) "self",(char *) "button", NULL | |
40571 | }; | |
40572 | ||
40573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) goto fail; | |
40574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40576 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
40577 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40578 | { | |
40579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40580 | (arg1)->SetAffirmativeButton(arg2); | |
40581 | ||
40582 | wxPyEndAllowThreads(__tstate); | |
40583 | if (PyErr_Occurred()) SWIG_fail; | |
40584 | } | |
40585 | Py_INCREF(Py_None); resultobj = Py_None; | |
40586 | return resultobj; | |
40587 | fail: | |
40588 | return NULL; | |
40589 | } | |
40590 | ||
40591 | ||
40592 | static PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
40593 | PyObject *resultobj; | |
40594 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40595 | wxButton *arg2 = (wxButton *) 0 ; | |
40596 | PyObject * obj0 = 0 ; | |
40597 | PyObject * obj1 = 0 ; | |
40598 | char *kwnames[] = { | |
40599 | (char *) "self",(char *) "button", NULL | |
40600 | }; | |
40601 | ||
40602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) goto fail; | |
40603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40605 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
40606 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40607 | { | |
40608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40609 | (arg1)->SetNegativeButton(arg2); | |
40610 | ||
40611 | wxPyEndAllowThreads(__tstate); | |
40612 | if (PyErr_Occurred()) SWIG_fail; | |
40613 | } | |
40614 | Py_INCREF(Py_None); resultobj = Py_None; | |
40615 | return resultobj; | |
40616 | fail: | |
40617 | return NULL; | |
40618 | } | |
40619 | ||
40620 | ||
40621 | static PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
40622 | PyObject *resultobj; | |
40623 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40624 | wxButton *arg2 = (wxButton *) 0 ; | |
40625 | PyObject * obj0 = 0 ; | |
40626 | PyObject * obj1 = 0 ; | |
40627 | char *kwnames[] = { | |
40628 | (char *) "self",(char *) "button", NULL | |
40629 | }; | |
40630 | ||
40631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) goto fail; | |
40632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40634 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
40635 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40636 | { | |
40637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40638 | (arg1)->SetCancelButton(arg2); | |
40639 | ||
40640 | wxPyEndAllowThreads(__tstate); | |
40641 | if (PyErr_Occurred()) SWIG_fail; | |
40642 | } | |
40643 | Py_INCREF(Py_None); resultobj = Py_None; | |
40644 | return resultobj; | |
40645 | fail: | |
40646 | return NULL; | |
40647 | } | |
40648 | ||
40649 | ||
62d32a5f RD |
40650 | static PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) { |
40651 | PyObject *resultobj; | |
40652 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40653 | wxButton *result; | |
40654 | PyObject * obj0 = 0 ; | |
40655 | char *kwnames[] = { | |
40656 | (char *) "self", NULL | |
40657 | }; | |
40658 | ||
40659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetAffirmativeButton",kwnames,&obj0)) goto fail; | |
40660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40662 | { | |
40663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40664 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetAffirmativeButton(); | |
40665 | ||
40666 | wxPyEndAllowThreads(__tstate); | |
40667 | if (PyErr_Occurred()) SWIG_fail; | |
40668 | } | |
40669 | { | |
40670 | resultobj = wxPyMake_wxObject(result, 0); | |
40671 | } | |
40672 | return resultobj; | |
40673 | fail: | |
40674 | return NULL; | |
40675 | } | |
40676 | ||
40677 | ||
40678 | static PyObject *_wrap_StdDialogButtonSizer_GetApplyButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
40679 | PyObject *resultobj; | |
40680 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40681 | wxButton *result; | |
40682 | PyObject * obj0 = 0 ; | |
40683 | char *kwnames[] = { | |
40684 | (char *) "self", NULL | |
40685 | }; | |
40686 | ||
40687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetApplyButton",kwnames,&obj0)) goto fail; | |
40688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40690 | { | |
40691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40692 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetApplyButton(); | |
40693 | ||
40694 | wxPyEndAllowThreads(__tstate); | |
40695 | if (PyErr_Occurred()) SWIG_fail; | |
40696 | } | |
40697 | { | |
40698 | resultobj = wxPyMake_wxObject(result, 0); | |
40699 | } | |
40700 | return resultobj; | |
40701 | fail: | |
40702 | return NULL; | |
40703 | } | |
40704 | ||
40705 | ||
40706 | static PyObject *_wrap_StdDialogButtonSizer_GetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
40707 | PyObject *resultobj; | |
40708 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40709 | wxButton *result; | |
40710 | PyObject * obj0 = 0 ; | |
40711 | char *kwnames[] = { | |
40712 | (char *) "self", NULL | |
40713 | }; | |
40714 | ||
40715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetNegativeButton",kwnames,&obj0)) goto fail; | |
40716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40718 | { | |
40719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40720 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetNegativeButton(); | |
40721 | ||
40722 | wxPyEndAllowThreads(__tstate); | |
40723 | if (PyErr_Occurred()) SWIG_fail; | |
40724 | } | |
40725 | { | |
40726 | resultobj = wxPyMake_wxObject(result, 0); | |
40727 | } | |
40728 | return resultobj; | |
40729 | fail: | |
40730 | return NULL; | |
40731 | } | |
40732 | ||
40733 | ||
40734 | static PyObject *_wrap_StdDialogButtonSizer_GetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
40735 | PyObject *resultobj; | |
40736 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40737 | wxButton *result; | |
40738 | PyObject * obj0 = 0 ; | |
40739 | char *kwnames[] = { | |
40740 | (char *) "self", NULL | |
40741 | }; | |
40742 | ||
40743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetCancelButton",kwnames,&obj0)) goto fail; | |
40744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40746 | { | |
40747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40748 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetCancelButton(); | |
40749 | ||
40750 | wxPyEndAllowThreads(__tstate); | |
40751 | if (PyErr_Occurred()) SWIG_fail; | |
40752 | } | |
40753 | { | |
40754 | resultobj = wxPyMake_wxObject(result, 0); | |
40755 | } | |
40756 | return resultobj; | |
40757 | fail: | |
40758 | return NULL; | |
40759 | } | |
40760 | ||
40761 | ||
40762 | static PyObject *_wrap_StdDialogButtonSizer_GetHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
40763 | PyObject *resultobj; | |
40764 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
40765 | wxButton *result; | |
40766 | PyObject * obj0 = 0 ; | |
40767 | char *kwnames[] = { | |
40768 | (char *) "self", NULL | |
40769 | }; | |
40770 | ||
40771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetHelpButton",kwnames,&obj0)) goto fail; | |
40772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
40773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40774 | { | |
40775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40776 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetHelpButton(); | |
40777 | ||
40778 | wxPyEndAllowThreads(__tstate); | |
40779 | if (PyErr_Occurred()) SWIG_fail; | |
40780 | } | |
40781 | { | |
40782 | resultobj = wxPyMake_wxObject(result, 0); | |
40783 | } | |
40784 | return resultobj; | |
40785 | fail: | |
40786 | return NULL; | |
40787 | } | |
40788 | ||
40789 | ||
40790 | static PyObject * StdDialogButtonSizer_swigregister(PyObject *, PyObject *args) { | |
40791 | PyObject *obj; | |
40792 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40793 | SWIG_TypeClientData(SWIGTYPE_p_wxStdDialogButtonSizer, obj); | |
40794 | Py_INCREF(obj); | |
40795 | return Py_BuildValue((char *)""); | |
40796 | } | |
c32bde28 | 40797 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40798 | PyObject *resultobj; |
40799 | int arg1 = (int) 0 ; | |
40800 | int arg2 = (int) 0 ; | |
40801 | wxGBPosition *result; | |
40802 | PyObject * obj0 = 0 ; | |
40803 | PyObject * obj1 = 0 ; | |
40804 | char *kwnames[] = { | |
40805 | (char *) "row",(char *) "col", NULL | |
40806 | }; | |
40807 | ||
40808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
40809 | if (obj0) { | |
093d3ff1 RD |
40810 | { |
40811 | arg1 = (int)(SWIG_As_int(obj0)); | |
40812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40813 | } | |
d55e5bfc RD |
40814 | } |
40815 | if (obj1) { | |
093d3ff1 RD |
40816 | { |
40817 | arg2 = (int)(SWIG_As_int(obj1)); | |
40818 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40819 | } | |
d55e5bfc RD |
40820 | } |
40821 | { | |
40822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40823 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
40824 | ||
40825 | wxPyEndAllowThreads(__tstate); | |
40826 | if (PyErr_Occurred()) SWIG_fail; | |
40827 | } | |
40828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
40829 | return resultobj; | |
40830 | fail: | |
40831 | return NULL; | |
40832 | } | |
40833 | ||
40834 | ||
c32bde28 | 40835 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40836 | PyObject *resultobj; |
40837 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
40838 | int result; | |
40839 | PyObject * obj0 = 0 ; | |
40840 | char *kwnames[] = { | |
40841 | (char *) "self", NULL | |
40842 | }; | |
40843 | ||
40844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
40846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40847 | { |
40848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40849 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
40850 | ||
40851 | wxPyEndAllowThreads(__tstate); | |
40852 | if (PyErr_Occurred()) SWIG_fail; | |
40853 | } | |
093d3ff1 RD |
40854 | { |
40855 | resultobj = SWIG_From_int((int)(result)); | |
40856 | } | |
d55e5bfc RD |
40857 | return resultobj; |
40858 | fail: | |
40859 | return NULL; | |
40860 | } | |
40861 | ||
40862 | ||
c32bde28 | 40863 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40864 | PyObject *resultobj; |
40865 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
40866 | int result; | |
40867 | PyObject * obj0 = 0 ; | |
40868 | char *kwnames[] = { | |
40869 | (char *) "self", NULL | |
40870 | }; | |
40871 | ||
40872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
40874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40875 | { |
40876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40877 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
40878 | ||
40879 | wxPyEndAllowThreads(__tstate); | |
40880 | if (PyErr_Occurred()) SWIG_fail; | |
40881 | } | |
093d3ff1 RD |
40882 | { |
40883 | resultobj = SWIG_From_int((int)(result)); | |
40884 | } | |
d55e5bfc RD |
40885 | return resultobj; |
40886 | fail: | |
40887 | return NULL; | |
40888 | } | |
40889 | ||
40890 | ||
c32bde28 | 40891 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40892 | PyObject *resultobj; |
40893 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
40894 | int arg2 ; | |
40895 | PyObject * obj0 = 0 ; | |
40896 | PyObject * obj1 = 0 ; | |
40897 | char *kwnames[] = { | |
40898 | (char *) "self",(char *) "row", NULL | |
40899 | }; | |
40900 | ||
40901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40902 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
40903 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40904 | { | |
40905 | arg2 = (int)(SWIG_As_int(obj1)); | |
40906 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40907 | } | |
d55e5bfc RD |
40908 | { |
40909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40910 | (arg1)->SetRow(arg2); | |
40911 | ||
40912 | wxPyEndAllowThreads(__tstate); | |
40913 | if (PyErr_Occurred()) SWIG_fail; | |
40914 | } | |
40915 | Py_INCREF(Py_None); resultobj = Py_None; | |
40916 | return resultobj; | |
40917 | fail: | |
40918 | return NULL; | |
40919 | } | |
40920 | ||
40921 | ||
c32bde28 | 40922 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40923 | PyObject *resultobj; |
40924 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
40925 | int arg2 ; | |
40926 | PyObject * obj0 = 0 ; | |
40927 | PyObject * obj1 = 0 ; | |
40928 | char *kwnames[] = { | |
40929 | (char *) "self",(char *) "col", NULL | |
40930 | }; | |
40931 | ||
40932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
40934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40935 | { | |
40936 | arg2 = (int)(SWIG_As_int(obj1)); | |
40937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40938 | } | |
d55e5bfc RD |
40939 | { |
40940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40941 | (arg1)->SetCol(arg2); | |
40942 | ||
40943 | wxPyEndAllowThreads(__tstate); | |
40944 | if (PyErr_Occurred()) SWIG_fail; | |
40945 | } | |
40946 | Py_INCREF(Py_None); resultobj = Py_None; | |
40947 | return resultobj; | |
40948 | fail: | |
40949 | return NULL; | |
40950 | } | |
40951 | ||
40952 | ||
c32bde28 | 40953 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40954 | PyObject *resultobj; |
40955 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
40956 | wxGBPosition *arg2 = 0 ; | |
40957 | bool result; | |
40958 | wxGBPosition temp2 ; | |
40959 | PyObject * obj0 = 0 ; | |
40960 | PyObject * obj1 = 0 ; | |
40961 | char *kwnames[] = { | |
40962 | (char *) "self",(char *) "other", NULL | |
40963 | }; | |
40964 | ||
40965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40966 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
40967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
40968 | { |
40969 | arg2 = &temp2; | |
40970 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
40971 | } | |
40972 | { | |
40973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40974 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
40975 | ||
40976 | wxPyEndAllowThreads(__tstate); | |
40977 | if (PyErr_Occurred()) SWIG_fail; | |
40978 | } | |
40979 | { | |
40980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40981 | } | |
40982 | return resultobj; | |
40983 | fail: | |
40984 | return NULL; | |
40985 | } | |
40986 | ||
40987 | ||
c32bde28 | 40988 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40989 | PyObject *resultobj; |
40990 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
40991 | wxGBPosition *arg2 = 0 ; | |
40992 | bool result; | |
40993 | wxGBPosition temp2 ; | |
40994 | PyObject * obj0 = 0 ; | |
40995 | PyObject * obj1 = 0 ; | |
40996 | char *kwnames[] = { | |
40997 | (char *) "self",(char *) "other", NULL | |
40998 | }; | |
40999 | ||
41000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41003 | { |
41004 | arg2 = &temp2; | |
41005 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41006 | } | |
41007 | { | |
41008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41009 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
41010 | ||
41011 | wxPyEndAllowThreads(__tstate); | |
41012 | if (PyErr_Occurred()) SWIG_fail; | |
41013 | } | |
41014 | { | |
41015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41016 | } | |
41017 | return resultobj; | |
41018 | fail: | |
41019 | return NULL; | |
41020 | } | |
41021 | ||
41022 | ||
c32bde28 | 41023 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41024 | PyObject *resultobj; |
41025 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41026 | int arg2 = (int) 0 ; | |
41027 | int arg3 = (int) 0 ; | |
41028 | PyObject * obj0 = 0 ; | |
41029 | PyObject * obj1 = 0 ; | |
41030 | PyObject * obj2 = 0 ; | |
41031 | char *kwnames[] = { | |
41032 | (char *) "self",(char *) "row",(char *) "col", NULL | |
41033 | }; | |
41034 | ||
41035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
41036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 41038 | if (obj1) { |
093d3ff1 RD |
41039 | { |
41040 | arg2 = (int)(SWIG_As_int(obj1)); | |
41041 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41042 | } | |
d55e5bfc RD |
41043 | } |
41044 | if (obj2) { | |
093d3ff1 RD |
41045 | { |
41046 | arg3 = (int)(SWIG_As_int(obj2)); | |
41047 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41048 | } | |
d55e5bfc RD |
41049 | } |
41050 | { | |
41051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41052 | wxGBPosition_Set(arg1,arg2,arg3); | |
41053 | ||
41054 | wxPyEndAllowThreads(__tstate); | |
41055 | if (PyErr_Occurred()) SWIG_fail; | |
41056 | } | |
41057 | Py_INCREF(Py_None); resultobj = Py_None; | |
41058 | return resultobj; | |
41059 | fail: | |
41060 | return NULL; | |
41061 | } | |
41062 | ||
41063 | ||
c32bde28 | 41064 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41065 | PyObject *resultobj; |
41066 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41067 | PyObject *result; | |
41068 | PyObject * obj0 = 0 ; | |
41069 | char *kwnames[] = { | |
41070 | (char *) "self", NULL | |
41071 | }; | |
41072 | ||
41073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41076 | { |
41077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41078 | result = (PyObject *)wxGBPosition_Get(arg1); | |
41079 | ||
41080 | wxPyEndAllowThreads(__tstate); | |
41081 | if (PyErr_Occurred()) SWIG_fail; | |
41082 | } | |
41083 | resultobj = result; | |
41084 | return resultobj; | |
41085 | fail: | |
41086 | return NULL; | |
41087 | } | |
41088 | ||
41089 | ||
c32bde28 | 41090 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41091 | PyObject *obj; |
41092 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41093 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
41094 | Py_INCREF(obj); | |
41095 | return Py_BuildValue((char *)""); | |
41096 | } | |
c32bde28 | 41097 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41098 | PyObject *resultobj; |
41099 | int arg1 = (int) 1 ; | |
41100 | int arg2 = (int) 1 ; | |
41101 | wxGBSpan *result; | |
41102 | PyObject * obj0 = 0 ; | |
41103 | PyObject * obj1 = 0 ; | |
41104 | char *kwnames[] = { | |
41105 | (char *) "rowspan",(char *) "colspan", NULL | |
41106 | }; | |
41107 | ||
41108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
41109 | if (obj0) { | |
093d3ff1 RD |
41110 | { |
41111 | arg1 = (int)(SWIG_As_int(obj0)); | |
41112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41113 | } | |
d55e5bfc RD |
41114 | } |
41115 | if (obj1) { | |
093d3ff1 RD |
41116 | { |
41117 | arg2 = (int)(SWIG_As_int(obj1)); | |
41118 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41119 | } | |
d55e5bfc RD |
41120 | } |
41121 | { | |
41122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41123 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
41124 | ||
41125 | wxPyEndAllowThreads(__tstate); | |
41126 | if (PyErr_Occurred()) SWIG_fail; | |
41127 | } | |
41128 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
41129 | return resultobj; | |
41130 | fail: | |
41131 | return NULL; | |
41132 | } | |
41133 | ||
41134 | ||
c32bde28 | 41135 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41136 | PyObject *resultobj; |
41137 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41138 | int result; | |
41139 | PyObject * obj0 = 0 ; | |
41140 | char *kwnames[] = { | |
41141 | (char *) "self", NULL | |
41142 | }; | |
41143 | ||
41144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41147 | { |
41148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41149 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
41150 | ||
41151 | wxPyEndAllowThreads(__tstate); | |
41152 | if (PyErr_Occurred()) SWIG_fail; | |
41153 | } | |
093d3ff1 RD |
41154 | { |
41155 | resultobj = SWIG_From_int((int)(result)); | |
41156 | } | |
d55e5bfc RD |
41157 | return resultobj; |
41158 | fail: | |
41159 | return NULL; | |
41160 | } | |
41161 | ||
41162 | ||
c32bde28 | 41163 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41164 | PyObject *resultobj; |
41165 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41166 | int result; | |
41167 | PyObject * obj0 = 0 ; | |
41168 | char *kwnames[] = { | |
41169 | (char *) "self", NULL | |
41170 | }; | |
41171 | ||
41172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41175 | { |
41176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41177 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
41178 | ||
41179 | wxPyEndAllowThreads(__tstate); | |
41180 | if (PyErr_Occurred()) SWIG_fail; | |
41181 | } | |
093d3ff1 RD |
41182 | { |
41183 | resultobj = SWIG_From_int((int)(result)); | |
41184 | } | |
d55e5bfc RD |
41185 | return resultobj; |
41186 | fail: | |
41187 | return NULL; | |
41188 | } | |
41189 | ||
41190 | ||
c32bde28 | 41191 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41192 | PyObject *resultobj; |
41193 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41194 | int arg2 ; | |
41195 | PyObject * obj0 = 0 ; | |
41196 | PyObject * obj1 = 0 ; | |
41197 | char *kwnames[] = { | |
41198 | (char *) "self",(char *) "rowspan", NULL | |
41199 | }; | |
41200 | ||
41201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41202 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41203 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41204 | { | |
41205 | arg2 = (int)(SWIG_As_int(obj1)); | |
41206 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41207 | } | |
d55e5bfc RD |
41208 | { |
41209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41210 | (arg1)->SetRowspan(arg2); | |
41211 | ||
41212 | wxPyEndAllowThreads(__tstate); | |
41213 | if (PyErr_Occurred()) SWIG_fail; | |
41214 | } | |
41215 | Py_INCREF(Py_None); resultobj = Py_None; | |
41216 | return resultobj; | |
41217 | fail: | |
41218 | return NULL; | |
41219 | } | |
41220 | ||
41221 | ||
c32bde28 | 41222 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41223 | PyObject *resultobj; |
41224 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41225 | int arg2 ; | |
41226 | PyObject * obj0 = 0 ; | |
41227 | PyObject * obj1 = 0 ; | |
41228 | char *kwnames[] = { | |
41229 | (char *) "self",(char *) "colspan", NULL | |
41230 | }; | |
41231 | ||
41232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41235 | { | |
41236 | arg2 = (int)(SWIG_As_int(obj1)); | |
41237 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41238 | } | |
d55e5bfc RD |
41239 | { |
41240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41241 | (arg1)->SetColspan(arg2); | |
41242 | ||
41243 | wxPyEndAllowThreads(__tstate); | |
41244 | if (PyErr_Occurred()) SWIG_fail; | |
41245 | } | |
41246 | Py_INCREF(Py_None); resultobj = Py_None; | |
41247 | return resultobj; | |
41248 | fail: | |
41249 | return NULL; | |
41250 | } | |
41251 | ||
41252 | ||
c32bde28 | 41253 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41254 | PyObject *resultobj; |
41255 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41256 | wxGBSpan *arg2 = 0 ; | |
41257 | bool result; | |
41258 | wxGBSpan temp2 ; | |
41259 | PyObject * obj0 = 0 ; | |
41260 | PyObject * obj1 = 0 ; | |
41261 | char *kwnames[] = { | |
41262 | (char *) "self",(char *) "other", NULL | |
41263 | }; | |
41264 | ||
41265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41268 | { |
41269 | arg2 = &temp2; | |
41270 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
41271 | } | |
41272 | { | |
41273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41274 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
41275 | ||
41276 | wxPyEndAllowThreads(__tstate); | |
41277 | if (PyErr_Occurred()) SWIG_fail; | |
41278 | } | |
41279 | { | |
41280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41281 | } | |
41282 | return resultobj; | |
41283 | fail: | |
41284 | return NULL; | |
41285 | } | |
41286 | ||
41287 | ||
c32bde28 | 41288 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41289 | PyObject *resultobj; |
41290 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41291 | wxGBSpan *arg2 = 0 ; | |
41292 | bool result; | |
41293 | wxGBSpan temp2 ; | |
41294 | PyObject * obj0 = 0 ; | |
41295 | PyObject * obj1 = 0 ; | |
41296 | char *kwnames[] = { | |
41297 | (char *) "self",(char *) "other", NULL | |
41298 | }; | |
41299 | ||
41300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41303 | { |
41304 | arg2 = &temp2; | |
41305 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
41306 | } | |
41307 | { | |
41308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41309 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
41310 | ||
41311 | wxPyEndAllowThreads(__tstate); | |
41312 | if (PyErr_Occurred()) SWIG_fail; | |
41313 | } | |
41314 | { | |
41315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41316 | } | |
41317 | return resultobj; | |
41318 | fail: | |
41319 | return NULL; | |
41320 | } | |
41321 | ||
41322 | ||
c32bde28 | 41323 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41324 | PyObject *resultobj; |
41325 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41326 | int arg2 = (int) 1 ; | |
41327 | int arg3 = (int) 1 ; | |
41328 | PyObject * obj0 = 0 ; | |
41329 | PyObject * obj1 = 0 ; | |
41330 | PyObject * obj2 = 0 ; | |
41331 | char *kwnames[] = { | |
41332 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
41333 | }; | |
41334 | ||
41335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
41336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 41338 | if (obj1) { |
093d3ff1 RD |
41339 | { |
41340 | arg2 = (int)(SWIG_As_int(obj1)); | |
41341 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41342 | } | |
d55e5bfc RD |
41343 | } |
41344 | if (obj2) { | |
093d3ff1 RD |
41345 | { |
41346 | arg3 = (int)(SWIG_As_int(obj2)); | |
41347 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41348 | } | |
d55e5bfc RD |
41349 | } |
41350 | { | |
41351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41352 | wxGBSpan_Set(arg1,arg2,arg3); | |
41353 | ||
41354 | wxPyEndAllowThreads(__tstate); | |
41355 | if (PyErr_Occurred()) SWIG_fail; | |
41356 | } | |
41357 | Py_INCREF(Py_None); resultobj = Py_None; | |
41358 | return resultobj; | |
41359 | fail: | |
41360 | return NULL; | |
41361 | } | |
41362 | ||
41363 | ||
c32bde28 | 41364 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41365 | PyObject *resultobj; |
41366 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41367 | PyObject *result; | |
41368 | PyObject * obj0 = 0 ; | |
41369 | char *kwnames[] = { | |
41370 | (char *) "self", NULL | |
41371 | }; | |
41372 | ||
41373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41376 | { |
41377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41378 | result = (PyObject *)wxGBSpan_Get(arg1); | |
41379 | ||
41380 | wxPyEndAllowThreads(__tstate); | |
41381 | if (PyErr_Occurred()) SWIG_fail; | |
41382 | } | |
41383 | resultobj = result; | |
41384 | return resultobj; | |
41385 | fail: | |
41386 | return NULL; | |
41387 | } | |
41388 | ||
41389 | ||
c32bde28 | 41390 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41391 | PyObject *obj; |
41392 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41393 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
41394 | Py_INCREF(obj); | |
41395 | return Py_BuildValue((char *)""); | |
41396 | } | |
c32bde28 | 41397 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
41398 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
41399 | return 1; | |
41400 | } | |
41401 | ||
41402 | ||
093d3ff1 | 41403 | static PyObject *_wrap_DefaultSpan_get(void) { |
d55e5bfc RD |
41404 | PyObject *pyobj; |
41405 | ||
41406 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
41407 | return pyobj; | |
41408 | } | |
41409 | ||
41410 | ||
c32bde28 | 41411 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41412 | PyObject *resultobj; |
41413 | wxGBSizerItem *result; | |
41414 | char *kwnames[] = { | |
41415 | NULL | |
41416 | }; | |
41417 | ||
41418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
41419 | { | |
41420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41421 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
41422 | ||
41423 | wxPyEndAllowThreads(__tstate); | |
41424 | if (PyErr_Occurred()) SWIG_fail; | |
41425 | } | |
41426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
41427 | return resultobj; | |
41428 | fail: | |
41429 | return NULL; | |
41430 | } | |
41431 | ||
41432 | ||
c32bde28 | 41433 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41434 | PyObject *resultobj; |
41435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
41436 | wxGBPosition *arg2 = 0 ; | |
41437 | wxGBSpan *arg3 = 0 ; | |
41438 | int arg4 ; | |
41439 | int arg5 ; | |
248ed943 | 41440 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
41441 | wxGBSizerItem *result; |
41442 | wxGBPosition temp2 ; | |
41443 | wxGBSpan temp3 ; | |
41444 | PyObject * obj0 = 0 ; | |
41445 | PyObject * obj1 = 0 ; | |
41446 | PyObject * obj2 = 0 ; | |
41447 | PyObject * obj3 = 0 ; | |
41448 | PyObject * obj4 = 0 ; | |
41449 | PyObject * obj5 = 0 ; | |
41450 | char *kwnames[] = { | |
41451 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
41452 | }; | |
41453 | ||
248ed943 | 41454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
41455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
41456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41457 | { |
41458 | arg2 = &temp2; | |
41459 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41460 | } | |
41461 | { | |
41462 | arg3 = &temp3; | |
41463 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
41464 | } | |
093d3ff1 RD |
41465 | { |
41466 | arg4 = (int)(SWIG_As_int(obj3)); | |
41467 | if (SWIG_arg_fail(4)) SWIG_fail; | |
41468 | } | |
41469 | { | |
41470 | arg5 = (int)(SWIG_As_int(obj4)); | |
41471 | if (SWIG_arg_fail(5)) SWIG_fail; | |
41472 | } | |
248ed943 RD |
41473 | if (obj5) { |
41474 | arg6 = obj5; | |
41475 | } | |
d55e5bfc RD |
41476 | { |
41477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 41478 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
41479 | |
41480 | wxPyEndAllowThreads(__tstate); | |
41481 | if (PyErr_Occurred()) SWIG_fail; | |
41482 | } | |
41483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
41484 | return resultobj; | |
41485 | fail: | |
41486 | return NULL; | |
41487 | } | |
41488 | ||
41489 | ||
c32bde28 | 41490 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41491 | PyObject *resultobj; |
41492 | wxSizer *arg1 = (wxSizer *) 0 ; | |
41493 | wxGBPosition *arg2 = 0 ; | |
41494 | wxGBSpan *arg3 = 0 ; | |
41495 | int arg4 ; | |
41496 | int arg5 ; | |
248ed943 | 41497 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
41498 | wxGBSizerItem *result; |
41499 | wxGBPosition temp2 ; | |
41500 | wxGBSpan temp3 ; | |
41501 | PyObject * obj0 = 0 ; | |
41502 | PyObject * obj1 = 0 ; | |
41503 | PyObject * obj2 = 0 ; | |
41504 | PyObject * obj3 = 0 ; | |
41505 | PyObject * obj4 = 0 ; | |
41506 | PyObject * obj5 = 0 ; | |
41507 | char *kwnames[] = { | |
41508 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
41509 | }; | |
41510 | ||
248ed943 | 41511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
41512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
41513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41514 | { |
41515 | arg2 = &temp2; | |
41516 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41517 | } | |
41518 | { | |
41519 | arg3 = &temp3; | |
41520 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
41521 | } | |
093d3ff1 RD |
41522 | { |
41523 | arg4 = (int)(SWIG_As_int(obj3)); | |
41524 | if (SWIG_arg_fail(4)) SWIG_fail; | |
41525 | } | |
41526 | { | |
41527 | arg5 = (int)(SWIG_As_int(obj4)); | |
41528 | if (SWIG_arg_fail(5)) SWIG_fail; | |
41529 | } | |
248ed943 RD |
41530 | if (obj5) { |
41531 | arg6 = obj5; | |
41532 | } | |
d55e5bfc RD |
41533 | { |
41534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 41535 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
41536 | |
41537 | wxPyEndAllowThreads(__tstate); | |
41538 | if (PyErr_Occurred()) SWIG_fail; | |
41539 | } | |
41540 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
41541 | return resultobj; | |
41542 | fail: | |
41543 | return NULL; | |
41544 | } | |
41545 | ||
41546 | ||
c32bde28 | 41547 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41548 | PyObject *resultobj; |
41549 | int arg1 ; | |
41550 | int arg2 ; | |
41551 | wxGBPosition *arg3 = 0 ; | |
41552 | wxGBSpan *arg4 = 0 ; | |
41553 | int arg5 ; | |
41554 | int arg6 ; | |
248ed943 | 41555 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
41556 | wxGBSizerItem *result; |
41557 | wxGBPosition temp3 ; | |
41558 | wxGBSpan temp4 ; | |
41559 | PyObject * obj0 = 0 ; | |
41560 | PyObject * obj1 = 0 ; | |
41561 | PyObject * obj2 = 0 ; | |
41562 | PyObject * obj3 = 0 ; | |
41563 | PyObject * obj4 = 0 ; | |
41564 | PyObject * obj5 = 0 ; | |
41565 | PyObject * obj6 = 0 ; | |
41566 | char *kwnames[] = { | |
41567 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
41568 | }; | |
41569 | ||
248ed943 | 41570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
41571 | { |
41572 | arg1 = (int)(SWIG_As_int(obj0)); | |
41573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41574 | } | |
41575 | { | |
41576 | arg2 = (int)(SWIG_As_int(obj1)); | |
41577 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41578 | } | |
d55e5bfc RD |
41579 | { |
41580 | arg3 = &temp3; | |
41581 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
41582 | } | |
41583 | { | |
41584 | arg4 = &temp4; | |
41585 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
41586 | } | |
093d3ff1 RD |
41587 | { |
41588 | arg5 = (int)(SWIG_As_int(obj4)); | |
41589 | if (SWIG_arg_fail(5)) SWIG_fail; | |
41590 | } | |
41591 | { | |
41592 | arg6 = (int)(SWIG_As_int(obj5)); | |
41593 | if (SWIG_arg_fail(6)) SWIG_fail; | |
41594 | } | |
248ed943 RD |
41595 | if (obj6) { |
41596 | arg7 = obj6; | |
41597 | } | |
d55e5bfc RD |
41598 | { |
41599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 41600 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
41601 | |
41602 | wxPyEndAllowThreads(__tstate); | |
41603 | if (PyErr_Occurred()) SWIG_fail; | |
41604 | } | |
41605 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
41606 | return resultobj; | |
41607 | fail: | |
41608 | return NULL; | |
41609 | } | |
41610 | ||
41611 | ||
c32bde28 | 41612 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41613 | PyObject *resultobj; |
41614 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
41615 | wxGBPosition result; | |
41616 | PyObject * obj0 = 0 ; | |
41617 | char *kwnames[] = { | |
41618 | (char *) "self", NULL | |
41619 | }; | |
41620 | ||
41621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41624 | { |
41625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41626 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
41627 | ||
41628 | wxPyEndAllowThreads(__tstate); | |
41629 | if (PyErr_Occurred()) SWIG_fail; | |
41630 | } | |
41631 | { | |
41632 | wxGBPosition * resultptr; | |
093d3ff1 | 41633 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
d55e5bfc RD |
41634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
41635 | } | |
41636 | return resultobj; | |
41637 | fail: | |
41638 | return NULL; | |
41639 | } | |
41640 | ||
41641 | ||
c32bde28 | 41642 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41643 | PyObject *resultobj; |
41644 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
41645 | wxGBSpan result; | |
41646 | PyObject * obj0 = 0 ; | |
41647 | char *kwnames[] = { | |
41648 | (char *) "self", NULL | |
41649 | }; | |
41650 | ||
41651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41654 | { |
41655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41656 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
41657 | ||
41658 | wxPyEndAllowThreads(__tstate); | |
41659 | if (PyErr_Occurred()) SWIG_fail; | |
41660 | } | |
41661 | { | |
41662 | wxGBSpan * resultptr; | |
093d3ff1 | 41663 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
d55e5bfc RD |
41664 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
41665 | } | |
41666 | return resultobj; | |
41667 | fail: | |
41668 | return NULL; | |
41669 | } | |
41670 | ||
41671 | ||
c32bde28 | 41672 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41673 | PyObject *resultobj; |
41674 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
41675 | wxGBPosition *arg2 = 0 ; | |
41676 | bool result; | |
41677 | wxGBPosition temp2 ; | |
41678 | PyObject * obj0 = 0 ; | |
41679 | PyObject * obj1 = 0 ; | |
41680 | char *kwnames[] = { | |
41681 | (char *) "self",(char *) "pos", NULL | |
41682 | }; | |
41683 | ||
41684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41687 | { |
41688 | arg2 = &temp2; | |
41689 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41690 | } | |
41691 | { | |
41692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41693 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
41694 | ||
41695 | wxPyEndAllowThreads(__tstate); | |
41696 | if (PyErr_Occurred()) SWIG_fail; | |
41697 | } | |
41698 | { | |
41699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41700 | } | |
41701 | return resultobj; | |
41702 | fail: | |
41703 | return NULL; | |
41704 | } | |
41705 | ||
41706 | ||
c32bde28 | 41707 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41708 | PyObject *resultobj; |
41709 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
41710 | wxGBSpan *arg2 = 0 ; | |
41711 | bool result; | |
41712 | wxGBSpan temp2 ; | |
41713 | PyObject * obj0 = 0 ; | |
41714 | PyObject * obj1 = 0 ; | |
41715 | char *kwnames[] = { | |
41716 | (char *) "self",(char *) "span", NULL | |
41717 | }; | |
41718 | ||
41719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41720 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41721 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41722 | { |
41723 | arg2 = &temp2; | |
41724 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
41725 | } | |
41726 | { | |
41727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41728 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
41729 | ||
41730 | wxPyEndAllowThreads(__tstate); | |
41731 | if (PyErr_Occurred()) SWIG_fail; | |
41732 | } | |
41733 | { | |
41734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41735 | } | |
41736 | return resultobj; | |
41737 | fail: | |
41738 | return NULL; | |
41739 | } | |
41740 | ||
41741 | ||
c32bde28 | 41742 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41743 | PyObject *resultobj; |
41744 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
41745 | wxGBSizerItem *arg2 = 0 ; | |
41746 | bool result; | |
41747 | PyObject * obj0 = 0 ; | |
41748 | PyObject * obj1 = 0 ; | |
248ed943 RD |
41749 | char *kwnames[] = { |
41750 | (char *) "self",(char *) "other", NULL | |
41751 | }; | |
d55e5bfc | 41752 | |
248ed943 | 41753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
41754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41756 | { | |
41757 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
41758 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41759 | if (arg2 == NULL) { | |
41760 | SWIG_null_ref("wxGBSizerItem"); | |
41761 | } | |
41762 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
41763 | } |
41764 | { | |
41765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41766 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
41767 | ||
41768 | wxPyEndAllowThreads(__tstate); | |
41769 | if (PyErr_Occurred()) SWIG_fail; | |
41770 | } | |
41771 | { | |
41772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41773 | } | |
41774 | return resultobj; | |
41775 | fail: | |
41776 | return NULL; | |
41777 | } | |
41778 | ||
41779 | ||
c32bde28 | 41780 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41781 | PyObject *resultobj; |
41782 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
41783 | wxGBPosition *arg2 = 0 ; | |
41784 | wxGBSpan *arg3 = 0 ; | |
41785 | bool result; | |
41786 | wxGBPosition temp2 ; | |
41787 | wxGBSpan temp3 ; | |
41788 | PyObject * obj0 = 0 ; | |
41789 | PyObject * obj1 = 0 ; | |
41790 | PyObject * obj2 = 0 ; | |
248ed943 RD |
41791 | char *kwnames[] = { |
41792 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
41793 | }; | |
d55e5bfc | 41794 | |
248ed943 | 41795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
41796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41798 | { |
41799 | arg2 = &temp2; | |
41800 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41801 | } | |
41802 | { | |
41803 | arg3 = &temp3; | |
41804 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
41805 | } | |
41806 | { | |
41807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41808 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
41809 | ||
41810 | wxPyEndAllowThreads(__tstate); | |
41811 | if (PyErr_Occurred()) SWIG_fail; | |
41812 | } | |
41813 | { | |
41814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41815 | } | |
41816 | return resultobj; | |
41817 | fail: | |
41818 | return NULL; | |
41819 | } | |
41820 | ||
41821 | ||
c32bde28 | 41822 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41823 | PyObject *resultobj; |
41824 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 41825 | wxGBPosition result; |
d55e5bfc | 41826 | PyObject * obj0 = 0 ; |
d55e5bfc | 41827 | char *kwnames[] = { |
248ed943 | 41828 | (char *) "self", NULL |
d55e5bfc RD |
41829 | }; |
41830 | ||
248ed943 | 41831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
41832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41834 | { |
41835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 41836 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
41837 | |
41838 | wxPyEndAllowThreads(__tstate); | |
41839 | if (PyErr_Occurred()) SWIG_fail; | |
41840 | } | |
248ed943 RD |
41841 | { |
41842 | wxGBPosition * resultptr; | |
093d3ff1 | 41843 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
248ed943 RD |
41844 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
41845 | } | |
d55e5bfc RD |
41846 | return resultobj; |
41847 | fail: | |
41848 | return NULL; | |
41849 | } | |
41850 | ||
41851 | ||
c32bde28 | 41852 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41853 | PyObject *resultobj; |
41854 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
41855 | wxGridBagSizer *result; | |
41856 | PyObject * obj0 = 0 ; | |
41857 | char *kwnames[] = { | |
41858 | (char *) "self", NULL | |
41859 | }; | |
41860 | ||
41861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41864 | { |
41865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41866 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
41867 | ||
41868 | wxPyEndAllowThreads(__tstate); | |
41869 | if (PyErr_Occurred()) SWIG_fail; | |
41870 | } | |
41871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
41872 | return resultobj; | |
41873 | fail: | |
41874 | return NULL; | |
41875 | } | |
41876 | ||
41877 | ||
c32bde28 | 41878 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41879 | PyObject *resultobj; |
41880 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
41881 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
41882 | PyObject * obj0 = 0 ; | |
41883 | PyObject * obj1 = 0 ; | |
41884 | char *kwnames[] = { | |
41885 | (char *) "self",(char *) "sizer", NULL | |
41886 | }; | |
41887 | ||
41888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
41890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41891 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); | |
41892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
41893 | { |
41894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41895 | (arg1)->SetGBSizer(arg2); | |
41896 | ||
41897 | wxPyEndAllowThreads(__tstate); | |
41898 | if (PyErr_Occurred()) SWIG_fail; | |
41899 | } | |
41900 | Py_INCREF(Py_None); resultobj = Py_None; | |
41901 | return resultobj; | |
41902 | fail: | |
41903 | return NULL; | |
41904 | } | |
41905 | ||
41906 | ||
c32bde28 | 41907 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41908 | PyObject *obj; |
41909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41910 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
41911 | Py_INCREF(obj); | |
41912 | return Py_BuildValue((char *)""); | |
41913 | } | |
c32bde28 | 41914 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41915 | PyObject *resultobj; |
41916 | int arg1 = (int) 0 ; | |
41917 | int arg2 = (int) 0 ; | |
41918 | wxGridBagSizer *result; | |
41919 | PyObject * obj0 = 0 ; | |
41920 | PyObject * obj1 = 0 ; | |
41921 | char *kwnames[] = { | |
41922 | (char *) "vgap",(char *) "hgap", NULL | |
41923 | }; | |
41924 | ||
41925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
41926 | if (obj0) { | |
093d3ff1 RD |
41927 | { |
41928 | arg1 = (int)(SWIG_As_int(obj0)); | |
41929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41930 | } | |
d55e5bfc RD |
41931 | } |
41932 | if (obj1) { | |
093d3ff1 RD |
41933 | { |
41934 | arg2 = (int)(SWIG_As_int(obj1)); | |
41935 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41936 | } | |
d55e5bfc RD |
41937 | } |
41938 | { | |
41939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41940 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
41941 | ||
41942 | wxPyEndAllowThreads(__tstate); | |
41943 | if (PyErr_Occurred()) SWIG_fail; | |
41944 | } | |
41945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
41946 | return resultobj; | |
41947 | fail: | |
41948 | return NULL; | |
41949 | } | |
41950 | ||
41951 | ||
c32bde28 | 41952 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41953 | PyObject *resultobj; |
41954 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
41955 | PyObject *arg2 = (PyObject *) 0 ; | |
41956 | wxGBPosition *arg3 = 0 ; | |
41957 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
41958 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
41959 | int arg5 = (int) 0 ; | |
41960 | int arg6 = (int) 0 ; | |
41961 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 41962 | wxGBSizerItem *result; |
d55e5bfc RD |
41963 | wxGBPosition temp3 ; |
41964 | wxGBSpan temp4 ; | |
41965 | PyObject * obj0 = 0 ; | |
41966 | PyObject * obj1 = 0 ; | |
41967 | PyObject * obj2 = 0 ; | |
41968 | PyObject * obj3 = 0 ; | |
41969 | PyObject * obj4 = 0 ; | |
41970 | PyObject * obj5 = 0 ; | |
41971 | PyObject * obj6 = 0 ; | |
41972 | char *kwnames[] = { | |
41973 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
41974 | }; | |
41975 | ||
41976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
41977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
41978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
41979 | arg2 = obj1; |
41980 | { | |
41981 | arg3 = &temp3; | |
41982 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
41983 | } | |
41984 | if (obj3) { | |
41985 | { | |
41986 | arg4 = &temp4; | |
41987 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
41988 | } | |
41989 | } | |
41990 | if (obj4) { | |
093d3ff1 RD |
41991 | { |
41992 | arg5 = (int)(SWIG_As_int(obj4)); | |
41993 | if (SWIG_arg_fail(5)) SWIG_fail; | |
41994 | } | |
d55e5bfc RD |
41995 | } |
41996 | if (obj5) { | |
093d3ff1 RD |
41997 | { |
41998 | arg6 = (int)(SWIG_As_int(obj5)); | |
41999 | if (SWIG_arg_fail(6)) SWIG_fail; | |
42000 | } | |
d55e5bfc RD |
42001 | } |
42002 | if (obj6) { | |
42003 | arg7 = obj6; | |
42004 | } | |
42005 | { | |
42006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 42007 | result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
42008 | |
42009 | wxPyEndAllowThreads(__tstate); | |
42010 | if (PyErr_Occurred()) SWIG_fail; | |
42011 | } | |
c1cb24a4 | 42012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
42013 | return resultobj; |
42014 | fail: | |
42015 | return NULL; | |
42016 | } | |
42017 | ||
42018 | ||
c32bde28 | 42019 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42020 | PyObject *resultobj; |
42021 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42022 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
c1cb24a4 | 42023 | wxGBSizerItem *result; |
d55e5bfc RD |
42024 | PyObject * obj0 = 0 ; |
42025 | PyObject * obj1 = 0 ; | |
42026 | char *kwnames[] = { | |
42027 | (char *) "self",(char *) "item", NULL | |
42028 | }; | |
42029 | ||
42030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42033 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
42034 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42035 | { |
42036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 42037 | result = (wxGBSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
42038 | |
42039 | wxPyEndAllowThreads(__tstate); | |
42040 | if (PyErr_Occurred()) SWIG_fail; | |
42041 | } | |
c1cb24a4 | 42042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
42043 | return resultobj; |
42044 | fail: | |
42045 | return NULL; | |
42046 | } | |
42047 | ||
42048 | ||
84f85550 RD |
42049 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
42050 | PyObject *resultobj; | |
42051 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42052 | int arg2 ; | |
42053 | int arg3 ; | |
42054 | wxSize result; | |
42055 | PyObject * obj0 = 0 ; | |
42056 | PyObject * obj1 = 0 ; | |
42057 | PyObject * obj2 = 0 ; | |
42058 | char *kwnames[] = { | |
42059 | (char *) "self",(char *) "row",(char *) "col", NULL | |
42060 | }; | |
42061 | ||
42062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42065 | { | |
42066 | arg2 = (int)(SWIG_As_int(obj1)); | |
42067 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42068 | } | |
42069 | { | |
42070 | arg3 = (int)(SWIG_As_int(obj2)); | |
42071 | if (SWIG_arg_fail(3)) SWIG_fail; | |
42072 | } | |
84f85550 RD |
42073 | { |
42074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42075 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
42076 | ||
42077 | wxPyEndAllowThreads(__tstate); | |
42078 | if (PyErr_Occurred()) SWIG_fail; | |
42079 | } | |
42080 | { | |
42081 | wxSize * resultptr; | |
093d3ff1 | 42082 | resultptr = new wxSize((wxSize &)(result)); |
84f85550 RD |
42083 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
42084 | } | |
42085 | return resultobj; | |
42086 | fail: | |
42087 | return NULL; | |
42088 | } | |
42089 | ||
42090 | ||
c32bde28 | 42091 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42092 | PyObject *resultobj; |
42093 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42094 | wxSize result; | |
42095 | PyObject * obj0 = 0 ; | |
42096 | char *kwnames[] = { | |
42097 | (char *) "self", NULL | |
42098 | }; | |
42099 | ||
42100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42103 | { |
42104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42105 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
42106 | ||
42107 | wxPyEndAllowThreads(__tstate); | |
42108 | if (PyErr_Occurred()) SWIG_fail; | |
42109 | } | |
42110 | { | |
42111 | wxSize * resultptr; | |
093d3ff1 | 42112 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
42113 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
42114 | } | |
42115 | return resultobj; | |
42116 | fail: | |
42117 | return NULL; | |
42118 | } | |
42119 | ||
42120 | ||
c32bde28 | 42121 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
42122 | PyObject *resultobj; |
42123 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42124 | wxSize *arg2 = 0 ; | |
42125 | wxSize temp2 ; | |
42126 | PyObject * obj0 = 0 ; | |
42127 | PyObject * obj1 = 0 ; | |
42128 | char *kwnames[] = { | |
42129 | (char *) "self",(char *) "sz", NULL | |
42130 | }; | |
42131 | ||
42132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
42135 | { |
42136 | arg2 = &temp2; | |
42137 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
42138 | } | |
42139 | { | |
42140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42141 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
42142 | ||
42143 | wxPyEndAllowThreads(__tstate); | |
42144 | if (PyErr_Occurred()) SWIG_fail; | |
42145 | } | |
42146 | Py_INCREF(Py_None); resultobj = Py_None; | |
42147 | return resultobj; | |
42148 | fail: | |
42149 | return NULL; | |
42150 | } | |
42151 | ||
42152 | ||
c32bde28 | 42153 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
42154 | PyObject *resultobj; |
42155 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42156 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42157 | wxGBPosition result; | |
42158 | PyObject * obj0 = 0 ; | |
42159 | PyObject * obj1 = 0 ; | |
42160 | ||
42161 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42164 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
42165 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42166 | { |
42167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42168 | result = (arg1)->GetItemPosition(arg2); | |
42169 | ||
42170 | wxPyEndAllowThreads(__tstate); | |
42171 | if (PyErr_Occurred()) SWIG_fail; | |
42172 | } | |
42173 | { | |
42174 | wxGBPosition * resultptr; | |
093d3ff1 | 42175 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
d55e5bfc RD |
42176 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
42177 | } | |
42178 | return resultobj; | |
42179 | fail: | |
42180 | return NULL; | |
42181 | } | |
42182 | ||
42183 | ||
c32bde28 | 42184 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
42185 | PyObject *resultobj; |
42186 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42187 | wxSizer *arg2 = (wxSizer *) 0 ; | |
42188 | wxGBPosition result; | |
42189 | PyObject * obj0 = 0 ; | |
42190 | PyObject * obj1 = 0 ; | |
42191 | ||
42192 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42195 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
42196 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42197 | { |
42198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42199 | result = (arg1)->GetItemPosition(arg2); | |
42200 | ||
42201 | wxPyEndAllowThreads(__tstate); | |
42202 | if (PyErr_Occurred()) SWIG_fail; | |
42203 | } | |
42204 | { | |
42205 | wxGBPosition * resultptr; | |
093d3ff1 | 42206 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
d55e5bfc RD |
42207 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
42208 | } | |
42209 | return resultobj; | |
42210 | fail: | |
42211 | return NULL; | |
42212 | } | |
42213 | ||
42214 | ||
c32bde28 | 42215 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
42216 | PyObject *resultobj; |
42217 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42218 | size_t arg2 ; | |
42219 | wxGBPosition result; | |
42220 | PyObject * obj0 = 0 ; | |
42221 | PyObject * obj1 = 0 ; | |
42222 | ||
42223 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42226 | { | |
42227 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
42228 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42229 | } | |
d55e5bfc RD |
42230 | { |
42231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42232 | result = (arg1)->GetItemPosition(arg2); | |
42233 | ||
42234 | wxPyEndAllowThreads(__tstate); | |
42235 | if (PyErr_Occurred()) SWIG_fail; | |
42236 | } | |
42237 | { | |
42238 | wxGBPosition * resultptr; | |
093d3ff1 | 42239 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
d55e5bfc RD |
42240 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
42241 | } | |
42242 | return resultobj; | |
42243 | fail: | |
42244 | return NULL; | |
42245 | } | |
42246 | ||
42247 | ||
42248 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
42249 | int argc; | |
42250 | PyObject *argv[3]; | |
42251 | int ii; | |
42252 | ||
42253 | argc = PyObject_Length(args); | |
42254 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
42255 | argv[ii] = PyTuple_GetItem(args,ii); | |
42256 | } | |
42257 | if (argc == 2) { | |
42258 | int _v; | |
42259 | { | |
42260 | void *ptr; | |
42261 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42262 | _v = 0; | |
42263 | PyErr_Clear(); | |
42264 | } else { | |
42265 | _v = 1; | |
42266 | } | |
42267 | } | |
42268 | if (_v) { | |
42269 | { | |
42270 | void *ptr; | |
42271 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
42272 | _v = 0; | |
42273 | PyErr_Clear(); | |
42274 | } else { | |
42275 | _v = 1; | |
42276 | } | |
42277 | } | |
42278 | if (_v) { | |
42279 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
42280 | } | |
42281 | } | |
42282 | } | |
42283 | if (argc == 2) { | |
42284 | int _v; | |
42285 | { | |
42286 | void *ptr; | |
42287 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42288 | _v = 0; | |
42289 | PyErr_Clear(); | |
42290 | } else { | |
42291 | _v = 1; | |
42292 | } | |
42293 | } | |
42294 | if (_v) { | |
42295 | { | |
42296 | void *ptr; | |
42297 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
42298 | _v = 0; | |
42299 | PyErr_Clear(); | |
42300 | } else { | |
42301 | _v = 1; | |
42302 | } | |
42303 | } | |
42304 | if (_v) { | |
42305 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
42306 | } | |
42307 | } | |
42308 | } | |
42309 | if (argc == 2) { | |
42310 | int _v; | |
42311 | { | |
42312 | void *ptr; | |
42313 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42314 | _v = 0; | |
42315 | PyErr_Clear(); | |
42316 | } else { | |
42317 | _v = 1; | |
42318 | } | |
42319 | } | |
42320 | if (_v) { | |
c32bde28 | 42321 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
42322 | if (_v) { |
42323 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
42324 | } | |
42325 | } | |
42326 | } | |
42327 | ||
093d3ff1 | 42328 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); |
d55e5bfc RD |
42329 | return NULL; |
42330 | } | |
42331 | ||
42332 | ||
c32bde28 | 42333 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
42334 | PyObject *resultobj; |
42335 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42336 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42337 | wxGBPosition *arg3 = 0 ; | |
42338 | bool result; | |
42339 | wxGBPosition temp3 ; | |
42340 | PyObject * obj0 = 0 ; | |
42341 | PyObject * obj1 = 0 ; | |
42342 | PyObject * obj2 = 0 ; | |
42343 | ||
42344 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42347 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
42348 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42349 | { |
42350 | arg3 = &temp3; | |
42351 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
42352 | } | |
42353 | { | |
42354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42355 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
42356 | ||
42357 | wxPyEndAllowThreads(__tstate); | |
42358 | if (PyErr_Occurred()) SWIG_fail; | |
42359 | } | |
42360 | { | |
42361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42362 | } | |
42363 | return resultobj; | |
42364 | fail: | |
42365 | return NULL; | |
42366 | } | |
42367 | ||
42368 | ||
c32bde28 | 42369 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
42370 | PyObject *resultobj; |
42371 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42372 | wxSizer *arg2 = (wxSizer *) 0 ; | |
42373 | wxGBPosition *arg3 = 0 ; | |
42374 | bool result; | |
42375 | wxGBPosition temp3 ; | |
42376 | PyObject * obj0 = 0 ; | |
42377 | PyObject * obj1 = 0 ; | |
42378 | PyObject * obj2 = 0 ; | |
42379 | ||
42380 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42383 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
42384 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42385 | { |
42386 | arg3 = &temp3; | |
42387 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
42388 | } | |
42389 | { | |
42390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42391 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
42392 | ||
42393 | wxPyEndAllowThreads(__tstate); | |
42394 | if (PyErr_Occurred()) SWIG_fail; | |
42395 | } | |
42396 | { | |
42397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42398 | } | |
42399 | return resultobj; | |
42400 | fail: | |
42401 | return NULL; | |
42402 | } | |
42403 | ||
42404 | ||
c32bde28 | 42405 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
42406 | PyObject *resultobj; |
42407 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42408 | size_t arg2 ; | |
42409 | wxGBPosition *arg3 = 0 ; | |
42410 | bool result; | |
42411 | wxGBPosition temp3 ; | |
42412 | PyObject * obj0 = 0 ; | |
42413 | PyObject * obj1 = 0 ; | |
42414 | PyObject * obj2 = 0 ; | |
42415 | ||
42416 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42419 | { | |
42420 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
42421 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42422 | } | |
d55e5bfc RD |
42423 | { |
42424 | arg3 = &temp3; | |
42425 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
42426 | } | |
42427 | { | |
42428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42429 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
42430 | ||
42431 | wxPyEndAllowThreads(__tstate); | |
42432 | if (PyErr_Occurred()) SWIG_fail; | |
42433 | } | |
42434 | { | |
42435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42436 | } | |
42437 | return resultobj; | |
42438 | fail: | |
42439 | return NULL; | |
42440 | } | |
42441 | ||
42442 | ||
42443 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
42444 | int argc; | |
42445 | PyObject *argv[4]; | |
42446 | int ii; | |
42447 | ||
42448 | argc = PyObject_Length(args); | |
42449 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
42450 | argv[ii] = PyTuple_GetItem(args,ii); | |
42451 | } | |
42452 | if (argc == 3) { | |
42453 | int _v; | |
42454 | { | |
42455 | void *ptr; | |
42456 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42457 | _v = 0; | |
42458 | PyErr_Clear(); | |
42459 | } else { | |
42460 | _v = 1; | |
42461 | } | |
42462 | } | |
42463 | if (_v) { | |
42464 | { | |
42465 | void *ptr; | |
42466 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
42467 | _v = 0; | |
42468 | PyErr_Clear(); | |
42469 | } else { | |
42470 | _v = 1; | |
42471 | } | |
42472 | } | |
42473 | if (_v) { | |
42474 | { | |
42475 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
42476 | } | |
42477 | if (_v) { | |
42478 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
42479 | } | |
42480 | } | |
42481 | } | |
42482 | } | |
42483 | if (argc == 3) { | |
42484 | int _v; | |
42485 | { | |
42486 | void *ptr; | |
42487 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42488 | _v = 0; | |
42489 | PyErr_Clear(); | |
42490 | } else { | |
42491 | _v = 1; | |
42492 | } | |
42493 | } | |
42494 | if (_v) { | |
42495 | { | |
42496 | void *ptr; | |
42497 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
42498 | _v = 0; | |
42499 | PyErr_Clear(); | |
42500 | } else { | |
42501 | _v = 1; | |
42502 | } | |
42503 | } | |
42504 | if (_v) { | |
42505 | { | |
42506 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
42507 | } | |
42508 | if (_v) { | |
42509 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
42510 | } | |
42511 | } | |
42512 | } | |
42513 | } | |
42514 | if (argc == 3) { | |
42515 | int _v; | |
42516 | { | |
42517 | void *ptr; | |
42518 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42519 | _v = 0; | |
42520 | PyErr_Clear(); | |
42521 | } else { | |
42522 | _v = 1; | |
42523 | } | |
42524 | } | |
42525 | if (_v) { | |
c32bde28 | 42526 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
42527 | if (_v) { |
42528 | { | |
42529 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
42530 | } | |
42531 | if (_v) { | |
42532 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
42533 | } | |
42534 | } | |
42535 | } | |
42536 | } | |
42537 | ||
093d3ff1 | 42538 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); |
d55e5bfc RD |
42539 | return NULL; |
42540 | } | |
42541 | ||
42542 | ||
c32bde28 | 42543 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
42544 | PyObject *resultobj; |
42545 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42546 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42547 | wxGBSpan result; | |
42548 | PyObject * obj0 = 0 ; | |
42549 | PyObject * obj1 = 0 ; | |
42550 | ||
42551 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42554 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
42555 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42556 | { |
42557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42558 | result = (arg1)->GetItemSpan(arg2); | |
42559 | ||
42560 | wxPyEndAllowThreads(__tstate); | |
42561 | if (PyErr_Occurred()) SWIG_fail; | |
42562 | } | |
42563 | { | |
42564 | wxGBSpan * resultptr; | |
093d3ff1 | 42565 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
d55e5bfc RD |
42566 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
42567 | } | |
42568 | return resultobj; | |
42569 | fail: | |
42570 | return NULL; | |
42571 | } | |
42572 | ||
42573 | ||
c32bde28 | 42574 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
42575 | PyObject *resultobj; |
42576 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42577 | wxSizer *arg2 = (wxSizer *) 0 ; | |
42578 | wxGBSpan result; | |
42579 | PyObject * obj0 = 0 ; | |
42580 | PyObject * obj1 = 0 ; | |
42581 | ||
42582 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42583 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42584 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42585 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
42586 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42587 | { |
42588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42589 | result = (arg1)->GetItemSpan(arg2); | |
42590 | ||
42591 | wxPyEndAllowThreads(__tstate); | |
42592 | if (PyErr_Occurred()) SWIG_fail; | |
42593 | } | |
42594 | { | |
42595 | wxGBSpan * resultptr; | |
093d3ff1 | 42596 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
d55e5bfc RD |
42597 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
42598 | } | |
42599 | return resultobj; | |
42600 | fail: | |
42601 | return NULL; | |
42602 | } | |
42603 | ||
42604 | ||
c32bde28 | 42605 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
42606 | PyObject *resultobj; |
42607 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42608 | size_t arg2 ; | |
42609 | wxGBSpan result; | |
42610 | PyObject * obj0 = 0 ; | |
42611 | PyObject * obj1 = 0 ; | |
42612 | ||
42613 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42616 | { | |
42617 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
42618 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42619 | } | |
d55e5bfc RD |
42620 | { |
42621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42622 | result = (arg1)->GetItemSpan(arg2); | |
42623 | ||
42624 | wxPyEndAllowThreads(__tstate); | |
42625 | if (PyErr_Occurred()) SWIG_fail; | |
42626 | } | |
42627 | { | |
42628 | wxGBSpan * resultptr; | |
093d3ff1 | 42629 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
d55e5bfc RD |
42630 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
42631 | } | |
42632 | return resultobj; | |
42633 | fail: | |
42634 | return NULL; | |
42635 | } | |
42636 | ||
42637 | ||
42638 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
42639 | int argc; | |
42640 | PyObject *argv[3]; | |
42641 | int ii; | |
42642 | ||
42643 | argc = PyObject_Length(args); | |
42644 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
42645 | argv[ii] = PyTuple_GetItem(args,ii); | |
42646 | } | |
42647 | if (argc == 2) { | |
42648 | int _v; | |
42649 | { | |
42650 | void *ptr; | |
42651 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42652 | _v = 0; | |
42653 | PyErr_Clear(); | |
42654 | } else { | |
42655 | _v = 1; | |
42656 | } | |
42657 | } | |
42658 | if (_v) { | |
42659 | { | |
42660 | void *ptr; | |
42661 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
42662 | _v = 0; | |
42663 | PyErr_Clear(); | |
42664 | } else { | |
42665 | _v = 1; | |
42666 | } | |
42667 | } | |
42668 | if (_v) { | |
42669 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
42670 | } | |
42671 | } | |
42672 | } | |
42673 | if (argc == 2) { | |
42674 | int _v; | |
42675 | { | |
42676 | void *ptr; | |
42677 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42678 | _v = 0; | |
42679 | PyErr_Clear(); | |
42680 | } else { | |
42681 | _v = 1; | |
42682 | } | |
42683 | } | |
42684 | if (_v) { | |
42685 | { | |
42686 | void *ptr; | |
42687 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
42688 | _v = 0; | |
42689 | PyErr_Clear(); | |
42690 | } else { | |
42691 | _v = 1; | |
42692 | } | |
42693 | } | |
42694 | if (_v) { | |
42695 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
42696 | } | |
42697 | } | |
42698 | } | |
42699 | if (argc == 2) { | |
42700 | int _v; | |
42701 | { | |
42702 | void *ptr; | |
42703 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42704 | _v = 0; | |
42705 | PyErr_Clear(); | |
42706 | } else { | |
42707 | _v = 1; | |
42708 | } | |
42709 | } | |
42710 | if (_v) { | |
c32bde28 | 42711 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
42712 | if (_v) { |
42713 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
42714 | } | |
42715 | } | |
42716 | } | |
42717 | ||
093d3ff1 | 42718 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); |
d55e5bfc RD |
42719 | return NULL; |
42720 | } | |
42721 | ||
42722 | ||
c32bde28 | 42723 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
42724 | PyObject *resultobj; |
42725 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42726 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42727 | wxGBSpan *arg3 = 0 ; | |
42728 | bool result; | |
42729 | wxGBSpan temp3 ; | |
42730 | PyObject * obj0 = 0 ; | |
42731 | PyObject * obj1 = 0 ; | |
42732 | PyObject * obj2 = 0 ; | |
42733 | ||
42734 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42737 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
42738 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42739 | { |
42740 | arg3 = &temp3; | |
42741 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42742 | } | |
42743 | { | |
42744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42745 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
42746 | ||
42747 | wxPyEndAllowThreads(__tstate); | |
42748 | if (PyErr_Occurred()) SWIG_fail; | |
42749 | } | |
42750 | { | |
42751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42752 | } | |
42753 | return resultobj; | |
42754 | fail: | |
42755 | return NULL; | |
42756 | } | |
42757 | ||
42758 | ||
c32bde28 | 42759 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
42760 | PyObject *resultobj; |
42761 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42762 | wxSizer *arg2 = (wxSizer *) 0 ; | |
42763 | wxGBSpan *arg3 = 0 ; | |
42764 | bool result; | |
42765 | wxGBSpan temp3 ; | |
42766 | PyObject * obj0 = 0 ; | |
42767 | PyObject * obj1 = 0 ; | |
42768 | PyObject * obj2 = 0 ; | |
42769 | ||
42770 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42771 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42773 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
42774 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42775 | { |
42776 | arg3 = &temp3; | |
42777 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42778 | } | |
42779 | { | |
42780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42781 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
42782 | ||
42783 | wxPyEndAllowThreads(__tstate); | |
42784 | if (PyErr_Occurred()) SWIG_fail; | |
42785 | } | |
42786 | { | |
42787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42788 | } | |
42789 | return resultobj; | |
42790 | fail: | |
42791 | return NULL; | |
42792 | } | |
42793 | ||
42794 | ||
c32bde28 | 42795 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
42796 | PyObject *resultobj; |
42797 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42798 | size_t arg2 ; | |
42799 | wxGBSpan *arg3 = 0 ; | |
42800 | bool result; | |
42801 | wxGBSpan temp3 ; | |
42802 | PyObject * obj0 = 0 ; | |
42803 | PyObject * obj1 = 0 ; | |
42804 | PyObject * obj2 = 0 ; | |
42805 | ||
42806 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42809 | { | |
42810 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
42811 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42812 | } | |
d55e5bfc RD |
42813 | { |
42814 | arg3 = &temp3; | |
42815 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42816 | } | |
42817 | { | |
42818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42819 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
42820 | ||
42821 | wxPyEndAllowThreads(__tstate); | |
42822 | if (PyErr_Occurred()) SWIG_fail; | |
42823 | } | |
42824 | { | |
42825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42826 | } | |
42827 | return resultobj; | |
42828 | fail: | |
42829 | return NULL; | |
42830 | } | |
42831 | ||
42832 | ||
42833 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
42834 | int argc; | |
42835 | PyObject *argv[4]; | |
42836 | int ii; | |
42837 | ||
42838 | argc = PyObject_Length(args); | |
42839 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
42840 | argv[ii] = PyTuple_GetItem(args,ii); | |
42841 | } | |
42842 | if (argc == 3) { | |
42843 | int _v; | |
42844 | { | |
42845 | void *ptr; | |
42846 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42847 | _v = 0; | |
42848 | PyErr_Clear(); | |
42849 | } else { | |
42850 | _v = 1; | |
42851 | } | |
42852 | } | |
42853 | if (_v) { | |
42854 | { | |
42855 | void *ptr; | |
42856 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
42857 | _v = 0; | |
42858 | PyErr_Clear(); | |
42859 | } else { | |
42860 | _v = 1; | |
42861 | } | |
42862 | } | |
42863 | if (_v) { | |
42864 | { | |
42865 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
42866 | } | |
42867 | if (_v) { | |
42868 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
42869 | } | |
42870 | } | |
42871 | } | |
42872 | } | |
42873 | if (argc == 3) { | |
42874 | int _v; | |
42875 | { | |
42876 | void *ptr; | |
42877 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42878 | _v = 0; | |
42879 | PyErr_Clear(); | |
42880 | } else { | |
42881 | _v = 1; | |
42882 | } | |
42883 | } | |
42884 | if (_v) { | |
42885 | { | |
42886 | void *ptr; | |
42887 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
42888 | _v = 0; | |
42889 | PyErr_Clear(); | |
42890 | } else { | |
42891 | _v = 1; | |
42892 | } | |
42893 | } | |
42894 | if (_v) { | |
42895 | { | |
42896 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
42897 | } | |
42898 | if (_v) { | |
42899 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
42900 | } | |
42901 | } | |
42902 | } | |
42903 | } | |
42904 | if (argc == 3) { | |
42905 | int _v; | |
42906 | { | |
42907 | void *ptr; | |
42908 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
42909 | _v = 0; | |
42910 | PyErr_Clear(); | |
42911 | } else { | |
42912 | _v = 1; | |
42913 | } | |
42914 | } | |
42915 | if (_v) { | |
c32bde28 | 42916 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
42917 | if (_v) { |
42918 | { | |
42919 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
42920 | } | |
42921 | if (_v) { | |
42922 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
42923 | } | |
42924 | } | |
42925 | } | |
42926 | } | |
42927 | ||
093d3ff1 | 42928 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); |
d55e5bfc RD |
42929 | return NULL; |
42930 | } | |
42931 | ||
42932 | ||
c32bde28 | 42933 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
42934 | PyObject *resultobj; |
42935 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42936 | wxWindow *arg2 = (wxWindow *) 0 ; | |
42937 | wxGBSizerItem *result; | |
42938 | PyObject * obj0 = 0 ; | |
42939 | PyObject * obj1 = 0 ; | |
42940 | ||
42941 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42942 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42943 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42944 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
42945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42946 | { |
42947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42948 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
42949 | ||
42950 | wxPyEndAllowThreads(__tstate); | |
42951 | if (PyErr_Occurred()) SWIG_fail; | |
42952 | } | |
42953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
42954 | return resultobj; | |
42955 | fail: | |
42956 | return NULL; | |
42957 | } | |
42958 | ||
42959 | ||
c32bde28 | 42960 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
42961 | PyObject *resultobj; |
42962 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42963 | wxSizer *arg2 = (wxSizer *) 0 ; | |
42964 | wxGBSizerItem *result; | |
42965 | PyObject * obj0 = 0 ; | |
42966 | PyObject * obj1 = 0 ; | |
42967 | ||
42968 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42971 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
42972 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
42973 | { |
42974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42975 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
42976 | ||
42977 | wxPyEndAllowThreads(__tstate); | |
42978 | if (PyErr_Occurred()) SWIG_fail; | |
42979 | } | |
42980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
42981 | return resultobj; | |
42982 | fail: | |
42983 | return NULL; | |
42984 | } | |
42985 | ||
42986 | ||
42987 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
42988 | int argc; | |
42989 | PyObject *argv[3]; | |
42990 | int ii; | |
42991 | ||
42992 | argc = PyObject_Length(args); | |
42993 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
42994 | argv[ii] = PyTuple_GetItem(args,ii); | |
42995 | } | |
42996 | if (argc == 2) { | |
42997 | int _v; | |
42998 | { | |
42999 | void *ptr; | |
43000 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43001 | _v = 0; | |
43002 | PyErr_Clear(); | |
43003 | } else { | |
43004 | _v = 1; | |
43005 | } | |
43006 | } | |
43007 | if (_v) { | |
43008 | { | |
43009 | void *ptr; | |
43010 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
43011 | _v = 0; | |
43012 | PyErr_Clear(); | |
43013 | } else { | |
43014 | _v = 1; | |
43015 | } | |
43016 | } | |
43017 | if (_v) { | |
43018 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
43019 | } | |
43020 | } | |
43021 | } | |
43022 | if (argc == 2) { | |
43023 | int _v; | |
43024 | { | |
43025 | void *ptr; | |
43026 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
43027 | _v = 0; | |
43028 | PyErr_Clear(); | |
43029 | } else { | |
43030 | _v = 1; | |
43031 | } | |
43032 | } | |
43033 | if (_v) { | |
43034 | { | |
43035 | void *ptr; | |
43036 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
43037 | _v = 0; | |
43038 | PyErr_Clear(); | |
43039 | } else { | |
43040 | _v = 1; | |
43041 | } | |
43042 | } | |
43043 | if (_v) { | |
43044 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
43045 | } | |
43046 | } | |
43047 | } | |
43048 | ||
093d3ff1 | 43049 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_FindItem'"); |
d55e5bfc RD |
43050 | return NULL; |
43051 | } | |
43052 | ||
43053 | ||
c32bde28 | 43054 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43055 | PyObject *resultobj; |
43056 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43057 | wxGBPosition *arg2 = 0 ; | |
43058 | wxGBSizerItem *result; | |
43059 | wxGBPosition temp2 ; | |
43060 | PyObject * obj0 = 0 ; | |
43061 | PyObject * obj1 = 0 ; | |
43062 | char *kwnames[] = { | |
43063 | (char *) "self",(char *) "pos", NULL | |
43064 | }; | |
43065 | ||
43066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43069 | { |
43070 | arg2 = &temp2; | |
43071 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
43072 | } | |
43073 | { | |
43074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43075 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
43076 | ||
43077 | wxPyEndAllowThreads(__tstate); | |
43078 | if (PyErr_Occurred()) SWIG_fail; | |
43079 | } | |
43080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
43081 | return resultobj; | |
43082 | fail: | |
43083 | return NULL; | |
43084 | } | |
43085 | ||
43086 | ||
c32bde28 | 43087 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43088 | PyObject *resultobj; |
43089 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43090 | wxPoint *arg2 = 0 ; | |
43091 | wxGBSizerItem *result; | |
43092 | wxPoint temp2 ; | |
43093 | PyObject * obj0 = 0 ; | |
43094 | PyObject * obj1 = 0 ; | |
43095 | char *kwnames[] = { | |
43096 | (char *) "self",(char *) "pt", NULL | |
43097 | }; | |
43098 | ||
43099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43102 | { |
43103 | arg2 = &temp2; | |
43104 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
43105 | } | |
43106 | { | |
43107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43108 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
43109 | ||
43110 | wxPyEndAllowThreads(__tstate); | |
43111 | if (PyErr_Occurred()) SWIG_fail; | |
43112 | } | |
43113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
43114 | return resultobj; | |
43115 | fail: | |
43116 | return NULL; | |
43117 | } | |
43118 | ||
43119 | ||
c32bde28 | 43120 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43121 | PyObject *resultobj; |
43122 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43123 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
43124 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
43125 | bool result; | |
43126 | PyObject * obj0 = 0 ; | |
43127 | PyObject * obj1 = 0 ; | |
43128 | PyObject * obj2 = 0 ; | |
248ed943 RD |
43129 | char *kwnames[] = { |
43130 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
43131 | }; | |
d55e5bfc | 43132 | |
248ed943 | 43133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
43134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43136 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
43137 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 43138 | if (obj2) { |
093d3ff1 RD |
43139 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
43140 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
43141 | } |
43142 | { | |
43143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43144 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
43145 | ||
43146 | wxPyEndAllowThreads(__tstate); | |
43147 | if (PyErr_Occurred()) SWIG_fail; | |
43148 | } | |
43149 | { | |
43150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43151 | } | |
43152 | return resultobj; | |
43153 | fail: | |
43154 | return NULL; | |
43155 | } | |
43156 | ||
43157 | ||
c32bde28 | 43158 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43159 | PyObject *resultobj; |
43160 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43161 | wxGBPosition *arg2 = 0 ; | |
43162 | wxGBSpan *arg3 = 0 ; | |
43163 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
43164 | bool result; | |
43165 | wxGBPosition temp2 ; | |
43166 | wxGBSpan temp3 ; | |
43167 | PyObject * obj0 = 0 ; | |
43168 | PyObject * obj1 = 0 ; | |
43169 | PyObject * obj2 = 0 ; | |
43170 | PyObject * obj3 = 0 ; | |
248ed943 RD |
43171 | char *kwnames[] = { |
43172 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
43173 | }; | |
d55e5bfc | 43174 | |
248ed943 | 43175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
43176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43178 | { |
43179 | arg2 = &temp2; | |
43180 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
43181 | } | |
43182 | { | |
43183 | arg3 = &temp3; | |
43184 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
43185 | } | |
43186 | if (obj3) { | |
093d3ff1 RD |
43187 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
43188 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
43189 | } |
43190 | { | |
43191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43192 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
43193 | ||
43194 | wxPyEndAllowThreads(__tstate); | |
43195 | if (PyErr_Occurred()) SWIG_fail; | |
43196 | } | |
43197 | { | |
43198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43199 | } | |
43200 | return resultobj; | |
43201 | fail: | |
43202 | return NULL; | |
43203 | } | |
43204 | ||
43205 | ||
c32bde28 | 43206 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
43207 | PyObject *obj; |
43208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
43209 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
43210 | Py_INCREF(obj); | |
43211 | return Py_BuildValue((char *)""); | |
43212 | } | |
c32bde28 | 43213 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43214 | PyObject *resultobj; |
43215 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 43216 | wxRelationship arg2 ; |
d55e5bfc | 43217 | wxWindow *arg3 = (wxWindow *) 0 ; |
093d3ff1 | 43218 | wxEdge arg4 ; |
d55e5bfc RD |
43219 | int arg5 = (int) 0 ; |
43220 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
43221 | PyObject * obj0 = 0 ; | |
43222 | PyObject * obj1 = 0 ; | |
43223 | PyObject * obj2 = 0 ; | |
43224 | PyObject * obj3 = 0 ; | |
43225 | PyObject * obj4 = 0 ; | |
43226 | PyObject * obj5 = 0 ; | |
43227 | char *kwnames[] = { | |
43228 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
43229 | }; | |
43230 | ||
43231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
43232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43234 | { | |
43235 | arg2 = (wxRelationship)(SWIG_As_int(obj1)); | |
43236 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43237 | } | |
43238 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43239 | if (SWIG_arg_fail(3)) SWIG_fail; | |
43240 | { | |
43241 | arg4 = (wxEdge)(SWIG_As_int(obj3)); | |
43242 | if (SWIG_arg_fail(4)) SWIG_fail; | |
43243 | } | |
d55e5bfc | 43244 | if (obj4) { |
093d3ff1 RD |
43245 | { |
43246 | arg5 = (int)(SWIG_As_int(obj4)); | |
43247 | if (SWIG_arg_fail(5)) SWIG_fail; | |
43248 | } | |
d55e5bfc RD |
43249 | } |
43250 | if (obj5) { | |
093d3ff1 RD |
43251 | { |
43252 | arg6 = (int)(SWIG_As_int(obj5)); | |
43253 | if (SWIG_arg_fail(6)) SWIG_fail; | |
43254 | } | |
d55e5bfc RD |
43255 | } |
43256 | { | |
43257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43258 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
43259 | ||
43260 | wxPyEndAllowThreads(__tstate); | |
43261 | if (PyErr_Occurred()) SWIG_fail; | |
43262 | } | |
43263 | Py_INCREF(Py_None); resultobj = Py_None; | |
43264 | return resultobj; | |
43265 | fail: | |
43266 | return NULL; | |
43267 | } | |
43268 | ||
43269 | ||
c32bde28 | 43270 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43271 | PyObject *resultobj; |
43272 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43273 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43274 | int arg3 = (int) 0 ; | |
43275 | PyObject * obj0 = 0 ; | |
43276 | PyObject * obj1 = 0 ; | |
43277 | PyObject * obj2 = 0 ; | |
43278 | char *kwnames[] = { | |
43279 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
43280 | }; | |
43281 | ||
43282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43285 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43286 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 43287 | if (obj2) { |
093d3ff1 RD |
43288 | { |
43289 | arg3 = (int)(SWIG_As_int(obj2)); | |
43290 | if (SWIG_arg_fail(3)) SWIG_fail; | |
43291 | } | |
d55e5bfc RD |
43292 | } |
43293 | { | |
43294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43295 | (arg1)->LeftOf(arg2,arg3); | |
43296 | ||
43297 | wxPyEndAllowThreads(__tstate); | |
43298 | if (PyErr_Occurred()) SWIG_fail; | |
43299 | } | |
43300 | Py_INCREF(Py_None); resultobj = Py_None; | |
43301 | return resultobj; | |
43302 | fail: | |
43303 | return NULL; | |
43304 | } | |
43305 | ||
43306 | ||
c32bde28 | 43307 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43308 | PyObject *resultobj; |
43309 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43310 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43311 | int arg3 = (int) 0 ; | |
43312 | PyObject * obj0 = 0 ; | |
43313 | PyObject * obj1 = 0 ; | |
43314 | PyObject * obj2 = 0 ; | |
43315 | char *kwnames[] = { | |
43316 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
43317 | }; | |
43318 | ||
43319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43322 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43323 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 43324 | if (obj2) { |
093d3ff1 RD |
43325 | { |
43326 | arg3 = (int)(SWIG_As_int(obj2)); | |
43327 | if (SWIG_arg_fail(3)) SWIG_fail; | |
43328 | } | |
d55e5bfc RD |
43329 | } |
43330 | { | |
43331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43332 | (arg1)->RightOf(arg2,arg3); | |
43333 | ||
43334 | wxPyEndAllowThreads(__tstate); | |
43335 | if (PyErr_Occurred()) SWIG_fail; | |
43336 | } | |
43337 | Py_INCREF(Py_None); resultobj = Py_None; | |
43338 | return resultobj; | |
43339 | fail: | |
43340 | return NULL; | |
43341 | } | |
43342 | ||
43343 | ||
c32bde28 | 43344 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43345 | PyObject *resultobj; |
43346 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43347 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43348 | int arg3 = (int) 0 ; | |
43349 | PyObject * obj0 = 0 ; | |
43350 | PyObject * obj1 = 0 ; | |
43351 | PyObject * obj2 = 0 ; | |
43352 | char *kwnames[] = { | |
43353 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
43354 | }; | |
43355 | ||
43356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43357 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43358 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43359 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43360 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 43361 | if (obj2) { |
093d3ff1 RD |
43362 | { |
43363 | arg3 = (int)(SWIG_As_int(obj2)); | |
43364 | if (SWIG_arg_fail(3)) SWIG_fail; | |
43365 | } | |
d55e5bfc RD |
43366 | } |
43367 | { | |
43368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43369 | (arg1)->Above(arg2,arg3); | |
43370 | ||
43371 | wxPyEndAllowThreads(__tstate); | |
43372 | if (PyErr_Occurred()) SWIG_fail; | |
43373 | } | |
43374 | Py_INCREF(Py_None); resultobj = Py_None; | |
43375 | return resultobj; | |
43376 | fail: | |
43377 | return NULL; | |
43378 | } | |
43379 | ||
43380 | ||
c32bde28 | 43381 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43382 | PyObject *resultobj; |
43383 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43384 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43385 | int arg3 = (int) 0 ; | |
43386 | PyObject * obj0 = 0 ; | |
43387 | PyObject * obj1 = 0 ; | |
43388 | PyObject * obj2 = 0 ; | |
43389 | char *kwnames[] = { | |
43390 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
43391 | }; | |
43392 | ||
43393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43396 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43397 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 43398 | if (obj2) { |
093d3ff1 RD |
43399 | { |
43400 | arg3 = (int)(SWIG_As_int(obj2)); | |
43401 | if (SWIG_arg_fail(3)) SWIG_fail; | |
43402 | } | |
d55e5bfc RD |
43403 | } |
43404 | { | |
43405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43406 | (arg1)->Below(arg2,arg3); | |
43407 | ||
43408 | wxPyEndAllowThreads(__tstate); | |
43409 | if (PyErr_Occurred()) SWIG_fail; | |
43410 | } | |
43411 | Py_INCREF(Py_None); resultobj = Py_None; | |
43412 | return resultobj; | |
43413 | fail: | |
43414 | return NULL; | |
43415 | } | |
43416 | ||
43417 | ||
c32bde28 | 43418 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43419 | PyObject *resultobj; |
43420 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43421 | wxWindow *arg2 = (wxWindow *) 0 ; | |
093d3ff1 | 43422 | wxEdge arg3 ; |
d55e5bfc RD |
43423 | int arg4 = (int) 0 ; |
43424 | PyObject * obj0 = 0 ; | |
43425 | PyObject * obj1 = 0 ; | |
43426 | PyObject * obj2 = 0 ; | |
43427 | PyObject * obj3 = 0 ; | |
43428 | char *kwnames[] = { | |
43429 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
43430 | }; | |
43431 | ||
43432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
43433 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43434 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43435 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43436 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43437 | { | |
43438 | arg3 = (wxEdge)(SWIG_As_int(obj2)); | |
43439 | if (SWIG_arg_fail(3)) SWIG_fail; | |
43440 | } | |
d55e5bfc | 43441 | if (obj3) { |
093d3ff1 RD |
43442 | { |
43443 | arg4 = (int)(SWIG_As_int(obj3)); | |
43444 | if (SWIG_arg_fail(4)) SWIG_fail; | |
43445 | } | |
d55e5bfc RD |
43446 | } |
43447 | { | |
43448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43449 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
43450 | ||
43451 | wxPyEndAllowThreads(__tstate); | |
43452 | if (PyErr_Occurred()) SWIG_fail; | |
43453 | } | |
43454 | Py_INCREF(Py_None); resultobj = Py_None; | |
43455 | return resultobj; | |
43456 | fail: | |
43457 | return NULL; | |
43458 | } | |
43459 | ||
43460 | ||
c32bde28 | 43461 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43462 | PyObject *resultobj; |
43463 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43464 | wxWindow *arg2 = (wxWindow *) 0 ; | |
093d3ff1 | 43465 | wxEdge arg3 ; |
d55e5bfc RD |
43466 | int arg4 ; |
43467 | PyObject * obj0 = 0 ; | |
43468 | PyObject * obj1 = 0 ; | |
43469 | PyObject * obj2 = 0 ; | |
43470 | PyObject * obj3 = 0 ; | |
43471 | char *kwnames[] = { | |
43472 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
43473 | }; | |
43474 | ||
43475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
43476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43478 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43480 | { | |
43481 | arg3 = (wxEdge)(SWIG_As_int(obj2)); | |
43482 | if (SWIG_arg_fail(3)) SWIG_fail; | |
43483 | } | |
43484 | { | |
43485 | arg4 = (int)(SWIG_As_int(obj3)); | |
43486 | if (SWIG_arg_fail(4)) SWIG_fail; | |
43487 | } | |
d55e5bfc RD |
43488 | { |
43489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43490 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
43491 | ||
43492 | wxPyEndAllowThreads(__tstate); | |
43493 | if (PyErr_Occurred()) SWIG_fail; | |
43494 | } | |
43495 | Py_INCREF(Py_None); resultobj = Py_None; | |
43496 | return resultobj; | |
43497 | fail: | |
43498 | return NULL; | |
43499 | } | |
43500 | ||
43501 | ||
c32bde28 | 43502 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43503 | PyObject *resultobj; |
43504 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43505 | int arg2 ; | |
43506 | PyObject * obj0 = 0 ; | |
43507 | PyObject * obj1 = 0 ; | |
43508 | char *kwnames[] = { | |
43509 | (char *) "self",(char *) "val", NULL | |
43510 | }; | |
43511 | ||
43512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43515 | { | |
43516 | arg2 = (int)(SWIG_As_int(obj1)); | |
43517 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43518 | } | |
d55e5bfc RD |
43519 | { |
43520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43521 | (arg1)->Absolute(arg2); | |
43522 | ||
43523 | wxPyEndAllowThreads(__tstate); | |
43524 | if (PyErr_Occurred()) SWIG_fail; | |
43525 | } | |
43526 | Py_INCREF(Py_None); resultobj = Py_None; | |
43527 | return resultobj; | |
43528 | fail: | |
43529 | return NULL; | |
43530 | } | |
43531 | ||
43532 | ||
c32bde28 | 43533 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43534 | PyObject *resultobj; |
43535 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43536 | PyObject * obj0 = 0 ; | |
43537 | char *kwnames[] = { | |
43538 | (char *) "self", NULL | |
43539 | }; | |
43540 | ||
43541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43544 | { |
43545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43546 | (arg1)->Unconstrained(); | |
43547 | ||
43548 | wxPyEndAllowThreads(__tstate); | |
43549 | if (PyErr_Occurred()) SWIG_fail; | |
43550 | } | |
43551 | Py_INCREF(Py_None); resultobj = Py_None; | |
43552 | return resultobj; | |
43553 | fail: | |
43554 | return NULL; | |
43555 | } | |
43556 | ||
43557 | ||
c32bde28 | 43558 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43559 | PyObject *resultobj; |
43560 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43561 | PyObject * obj0 = 0 ; | |
43562 | char *kwnames[] = { | |
43563 | (char *) "self", NULL | |
43564 | }; | |
43565 | ||
43566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43569 | { |
43570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43571 | (arg1)->AsIs(); | |
43572 | ||
43573 | wxPyEndAllowThreads(__tstate); | |
43574 | if (PyErr_Occurred()) SWIG_fail; | |
43575 | } | |
43576 | Py_INCREF(Py_None); resultobj = Py_None; | |
43577 | return resultobj; | |
43578 | fail: | |
43579 | return NULL; | |
43580 | } | |
43581 | ||
43582 | ||
c32bde28 | 43583 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43584 | PyObject *resultobj; |
43585 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43586 | wxWindow *result; | |
43587 | PyObject * obj0 = 0 ; | |
43588 | char *kwnames[] = { | |
43589 | (char *) "self", NULL | |
43590 | }; | |
43591 | ||
43592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43595 | { |
43596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43597 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
43598 | ||
43599 | wxPyEndAllowThreads(__tstate); | |
43600 | if (PyErr_Occurred()) SWIG_fail; | |
43601 | } | |
43602 | { | |
412d302d | 43603 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
43604 | } |
43605 | return resultobj; | |
43606 | fail: | |
43607 | return NULL; | |
43608 | } | |
43609 | ||
43610 | ||
c32bde28 | 43611 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43612 | PyObject *resultobj; |
43613 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 43614 | wxEdge result; |
d55e5bfc RD |
43615 | PyObject * obj0 = 0 ; |
43616 | char *kwnames[] = { | |
43617 | (char *) "self", NULL | |
43618 | }; | |
43619 | ||
43620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43623 | { |
43624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 43625 | result = (wxEdge)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); |
d55e5bfc RD |
43626 | |
43627 | wxPyEndAllowThreads(__tstate); | |
43628 | if (PyErr_Occurred()) SWIG_fail; | |
43629 | } | |
093d3ff1 | 43630 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
43631 | return resultobj; |
43632 | fail: | |
43633 | return NULL; | |
43634 | } | |
43635 | ||
43636 | ||
c32bde28 | 43637 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43638 | PyObject *resultobj; |
43639 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 43640 | wxEdge arg2 ; |
d55e5bfc RD |
43641 | PyObject * obj0 = 0 ; |
43642 | PyObject * obj1 = 0 ; | |
43643 | char *kwnames[] = { | |
43644 | (char *) "self",(char *) "which", NULL | |
43645 | }; | |
43646 | ||
43647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43650 | { | |
43651 | arg2 = (wxEdge)(SWIG_As_int(obj1)); | |
43652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43653 | } | |
d55e5bfc RD |
43654 | { |
43655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43656 | (arg1)->SetEdge((wxEdge )arg2); | |
43657 | ||
43658 | wxPyEndAllowThreads(__tstate); | |
43659 | if (PyErr_Occurred()) SWIG_fail; | |
43660 | } | |
43661 | Py_INCREF(Py_None); resultobj = Py_None; | |
43662 | return resultobj; | |
43663 | fail: | |
43664 | return NULL; | |
43665 | } | |
43666 | ||
43667 | ||
c32bde28 | 43668 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43669 | PyObject *resultobj; |
43670 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43671 | int arg2 ; | |
43672 | PyObject * obj0 = 0 ; | |
43673 | PyObject * obj1 = 0 ; | |
43674 | char *kwnames[] = { | |
43675 | (char *) "self",(char *) "v", NULL | |
43676 | }; | |
43677 | ||
43678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43681 | { | |
43682 | arg2 = (int)(SWIG_As_int(obj1)); | |
43683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43684 | } | |
d55e5bfc RD |
43685 | { |
43686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43687 | (arg1)->SetValue(arg2); | |
43688 | ||
43689 | wxPyEndAllowThreads(__tstate); | |
43690 | if (PyErr_Occurred()) SWIG_fail; | |
43691 | } | |
43692 | Py_INCREF(Py_None); resultobj = Py_None; | |
43693 | return resultobj; | |
43694 | fail: | |
43695 | return NULL; | |
43696 | } | |
43697 | ||
43698 | ||
c32bde28 | 43699 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43700 | PyObject *resultobj; |
43701 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43702 | int result; | |
43703 | PyObject * obj0 = 0 ; | |
43704 | char *kwnames[] = { | |
43705 | (char *) "self", NULL | |
43706 | }; | |
43707 | ||
43708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43711 | { |
43712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43713 | result = (int)(arg1)->GetMargin(); | |
43714 | ||
43715 | wxPyEndAllowThreads(__tstate); | |
43716 | if (PyErr_Occurred()) SWIG_fail; | |
43717 | } | |
093d3ff1 RD |
43718 | { |
43719 | resultobj = SWIG_From_int((int)(result)); | |
43720 | } | |
d55e5bfc RD |
43721 | return resultobj; |
43722 | fail: | |
43723 | return NULL; | |
43724 | } | |
43725 | ||
43726 | ||
c32bde28 | 43727 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43728 | PyObject *resultobj; |
43729 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43730 | int arg2 ; | |
43731 | PyObject * obj0 = 0 ; | |
43732 | PyObject * obj1 = 0 ; | |
43733 | char *kwnames[] = { | |
43734 | (char *) "self",(char *) "m", NULL | |
43735 | }; | |
43736 | ||
43737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43740 | { | |
43741 | arg2 = (int)(SWIG_As_int(obj1)); | |
43742 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43743 | } | |
d55e5bfc RD |
43744 | { |
43745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43746 | (arg1)->SetMargin(arg2); | |
43747 | ||
43748 | wxPyEndAllowThreads(__tstate); | |
43749 | if (PyErr_Occurred()) SWIG_fail; | |
43750 | } | |
43751 | Py_INCREF(Py_None); resultobj = Py_None; | |
43752 | return resultobj; | |
43753 | fail: | |
43754 | return NULL; | |
43755 | } | |
43756 | ||
43757 | ||
c32bde28 | 43758 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43759 | PyObject *resultobj; |
43760 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43761 | int result; | |
43762 | PyObject * obj0 = 0 ; | |
43763 | char *kwnames[] = { | |
43764 | (char *) "self", NULL | |
43765 | }; | |
43766 | ||
43767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43770 | { |
43771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43772 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
43773 | ||
43774 | wxPyEndAllowThreads(__tstate); | |
43775 | if (PyErr_Occurred()) SWIG_fail; | |
43776 | } | |
093d3ff1 RD |
43777 | { |
43778 | resultobj = SWIG_From_int((int)(result)); | |
43779 | } | |
d55e5bfc RD |
43780 | return resultobj; |
43781 | fail: | |
43782 | return NULL; | |
43783 | } | |
43784 | ||
43785 | ||
c32bde28 | 43786 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43787 | PyObject *resultobj; |
43788 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43789 | int result; | |
43790 | PyObject * obj0 = 0 ; | |
43791 | char *kwnames[] = { | |
43792 | (char *) "self", NULL | |
43793 | }; | |
43794 | ||
43795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43798 | { |
43799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43800 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
43801 | ||
43802 | wxPyEndAllowThreads(__tstate); | |
43803 | if (PyErr_Occurred()) SWIG_fail; | |
43804 | } | |
093d3ff1 RD |
43805 | { |
43806 | resultobj = SWIG_From_int((int)(result)); | |
43807 | } | |
d55e5bfc RD |
43808 | return resultobj; |
43809 | fail: | |
43810 | return NULL; | |
43811 | } | |
43812 | ||
43813 | ||
c32bde28 | 43814 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43815 | PyObject *resultobj; |
43816 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43817 | int result; | |
43818 | PyObject * obj0 = 0 ; | |
43819 | char *kwnames[] = { | |
43820 | (char *) "self", NULL | |
43821 | }; | |
43822 | ||
43823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43824 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43826 | { |
43827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43828 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
43829 | ||
43830 | wxPyEndAllowThreads(__tstate); | |
43831 | if (PyErr_Occurred()) SWIG_fail; | |
43832 | } | |
093d3ff1 RD |
43833 | { |
43834 | resultobj = SWIG_From_int((int)(result)); | |
43835 | } | |
d55e5bfc RD |
43836 | return resultobj; |
43837 | fail: | |
43838 | return NULL; | |
43839 | } | |
43840 | ||
43841 | ||
c32bde28 | 43842 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43843 | PyObject *resultobj; |
43844 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43845 | bool result; | |
43846 | PyObject * obj0 = 0 ; | |
43847 | char *kwnames[] = { | |
43848 | (char *) "self", NULL | |
43849 | }; | |
43850 | ||
43851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43854 | { |
43855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43856 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
43857 | ||
43858 | wxPyEndAllowThreads(__tstate); | |
43859 | if (PyErr_Occurred()) SWIG_fail; | |
43860 | } | |
43861 | { | |
43862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43863 | } | |
43864 | return resultobj; | |
43865 | fail: | |
43866 | return NULL; | |
43867 | } | |
43868 | ||
43869 | ||
c32bde28 | 43870 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43871 | PyObject *resultobj; |
43872 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43873 | bool arg2 ; | |
43874 | PyObject * obj0 = 0 ; | |
43875 | PyObject * obj1 = 0 ; | |
43876 | char *kwnames[] = { | |
43877 | (char *) "self",(char *) "d", NULL | |
43878 | }; | |
43879 | ||
43880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43883 | { | |
43884 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
43885 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43886 | } | |
d55e5bfc RD |
43887 | { |
43888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43889 | (arg1)->SetDone(arg2); | |
43890 | ||
43891 | wxPyEndAllowThreads(__tstate); | |
43892 | if (PyErr_Occurred()) SWIG_fail; | |
43893 | } | |
43894 | Py_INCREF(Py_None); resultobj = Py_None; | |
43895 | return resultobj; | |
43896 | fail: | |
43897 | return NULL; | |
43898 | } | |
43899 | ||
43900 | ||
c32bde28 | 43901 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43902 | PyObject *resultobj; |
43903 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 43904 | wxRelationship result; |
d55e5bfc RD |
43905 | PyObject * obj0 = 0 ; |
43906 | char *kwnames[] = { | |
43907 | (char *) "self", NULL | |
43908 | }; | |
43909 | ||
43910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
43911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
43913 | { |
43914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 43915 | result = (wxRelationship)(arg1)->GetRelationship(); |
d55e5bfc RD |
43916 | |
43917 | wxPyEndAllowThreads(__tstate); | |
43918 | if (PyErr_Occurred()) SWIG_fail; | |
43919 | } | |
093d3ff1 | 43920 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
43921 | return resultobj; |
43922 | fail: | |
43923 | return NULL; | |
43924 | } | |
43925 | ||
43926 | ||
c32bde28 | 43927 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43928 | PyObject *resultobj; |
43929 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 43930 | wxRelationship arg2 ; |
d55e5bfc RD |
43931 | PyObject * obj0 = 0 ; |
43932 | PyObject * obj1 = 0 ; | |
43933 | char *kwnames[] = { | |
43934 | (char *) "self",(char *) "r", NULL | |
43935 | }; | |
43936 | ||
43937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43940 | { | |
43941 | arg2 = (wxRelationship)(SWIG_As_int(obj1)); | |
43942 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43943 | } | |
d55e5bfc RD |
43944 | { |
43945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43946 | (arg1)->SetRelationship((wxRelationship )arg2); | |
43947 | ||
43948 | wxPyEndAllowThreads(__tstate); | |
43949 | if (PyErr_Occurred()) SWIG_fail; | |
43950 | } | |
43951 | Py_INCREF(Py_None); resultobj = Py_None; | |
43952 | return resultobj; | |
43953 | fail: | |
43954 | return NULL; | |
43955 | } | |
43956 | ||
43957 | ||
c32bde28 | 43958 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43959 | PyObject *resultobj; |
43960 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43961 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43962 | bool result; | |
43963 | PyObject * obj0 = 0 ; | |
43964 | PyObject * obj1 = 0 ; | |
43965 | char *kwnames[] = { | |
43966 | (char *) "self",(char *) "otherW", NULL | |
43967 | }; | |
43968 | ||
43969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
43971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43972 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43973 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
43974 | { |
43975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43976 | result = (bool)(arg1)->ResetIfWin(arg2); | |
43977 | ||
43978 | wxPyEndAllowThreads(__tstate); | |
43979 | if (PyErr_Occurred()) SWIG_fail; | |
43980 | } | |
43981 | { | |
43982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43983 | } | |
43984 | return resultobj; | |
43985 | fail: | |
43986 | return NULL; | |
43987 | } | |
43988 | ||
43989 | ||
c32bde28 | 43990 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
43991 | PyObject *resultobj; |
43992 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
43993 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
43994 | wxWindow *arg3 = (wxWindow *) 0 ; | |
43995 | bool result; | |
43996 | PyObject * obj0 = 0 ; | |
43997 | PyObject * obj1 = 0 ; | |
43998 | PyObject * obj2 = 0 ; | |
43999 | char *kwnames[] = { | |
44000 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
44001 | }; | |
44002 | ||
44003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
44004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44006 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); | |
44007 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44008 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44009 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
44010 | { |
44011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44012 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
44013 | ||
44014 | wxPyEndAllowThreads(__tstate); | |
44015 | if (PyErr_Occurred()) SWIG_fail; | |
44016 | } | |
44017 | { | |
44018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44019 | } | |
44020 | return resultobj; | |
44021 | fail: | |
44022 | return NULL; | |
44023 | } | |
44024 | ||
44025 | ||
c32bde28 | 44026 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44027 | PyObject *resultobj; |
44028 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44029 | wxEdge arg2 ; |
d55e5bfc RD |
44030 | wxWindow *arg3 = (wxWindow *) 0 ; |
44031 | wxWindow *arg4 = (wxWindow *) 0 ; | |
44032 | int result; | |
44033 | PyObject * obj0 = 0 ; | |
44034 | PyObject * obj1 = 0 ; | |
44035 | PyObject * obj2 = 0 ; | |
44036 | PyObject * obj3 = 0 ; | |
44037 | char *kwnames[] = { | |
44038 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
44039 | }; | |
44040 | ||
44041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
44042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44044 | { | |
44045 | arg2 = (wxEdge)(SWIG_As_int(obj1)); | |
44046 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44047 | } | |
44048 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44049 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44050 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44051 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
44052 | { |
44053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44054 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
44055 | ||
44056 | wxPyEndAllowThreads(__tstate); | |
44057 | if (PyErr_Occurred()) SWIG_fail; | |
44058 | } | |
093d3ff1 RD |
44059 | { |
44060 | resultobj = SWIG_From_int((int)(result)); | |
44061 | } | |
d55e5bfc RD |
44062 | return resultobj; |
44063 | fail: | |
44064 | return NULL; | |
44065 | } | |
44066 | ||
44067 | ||
c32bde28 | 44068 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
44069 | PyObject *obj; |
44070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
44071 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
44072 | Py_INCREF(obj); | |
44073 | return Py_BuildValue((char *)""); | |
44074 | } | |
c32bde28 | 44075 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44076 | PyObject *resultobj; |
44077 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44078 | wxIndividualLayoutConstraint *result; | |
44079 | PyObject * obj0 = 0 ; | |
44080 | char *kwnames[] = { | |
44081 | (char *) "self", NULL | |
44082 | }; | |
44083 | ||
44084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44087 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
44088 | ||
44089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
44090 | return resultobj; | |
44091 | fail: | |
44092 | return NULL; | |
44093 | } | |
44094 | ||
44095 | ||
c32bde28 | 44096 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44097 | PyObject *resultobj; |
44098 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44099 | wxIndividualLayoutConstraint *result; | |
44100 | PyObject * obj0 = 0 ; | |
44101 | char *kwnames[] = { | |
44102 | (char *) "self", NULL | |
44103 | }; | |
44104 | ||
44105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44108 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
44109 | ||
44110 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
44111 | return resultobj; | |
44112 | fail: | |
44113 | return NULL; | |
44114 | } | |
44115 | ||
44116 | ||
c32bde28 | 44117 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44118 | PyObject *resultobj; |
44119 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44120 | wxIndividualLayoutConstraint *result; | |
44121 | PyObject * obj0 = 0 ; | |
44122 | char *kwnames[] = { | |
44123 | (char *) "self", NULL | |
44124 | }; | |
44125 | ||
44126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44129 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
44130 | ||
44131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
44132 | return resultobj; | |
44133 | fail: | |
44134 | return NULL; | |
44135 | } | |
44136 | ||
44137 | ||
c32bde28 | 44138 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44139 | PyObject *resultobj; |
44140 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44141 | wxIndividualLayoutConstraint *result; | |
44142 | PyObject * obj0 = 0 ; | |
44143 | char *kwnames[] = { | |
44144 | (char *) "self", NULL | |
44145 | }; | |
44146 | ||
44147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44150 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
44151 | ||
44152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
44153 | return resultobj; | |
44154 | fail: | |
44155 | return NULL; | |
44156 | } | |
44157 | ||
44158 | ||
c32bde28 | 44159 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44160 | PyObject *resultobj; |
44161 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44162 | wxIndividualLayoutConstraint *result; | |
44163 | PyObject * obj0 = 0 ; | |
44164 | char *kwnames[] = { | |
44165 | (char *) "self", NULL | |
44166 | }; | |
44167 | ||
44168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44171 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
44172 | ||
44173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
44174 | return resultobj; | |
44175 | fail: | |
44176 | return NULL; | |
44177 | } | |
44178 | ||
44179 | ||
c32bde28 | 44180 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44181 | PyObject *resultobj; |
44182 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44183 | wxIndividualLayoutConstraint *result; | |
44184 | PyObject * obj0 = 0 ; | |
44185 | char *kwnames[] = { | |
44186 | (char *) "self", NULL | |
44187 | }; | |
44188 | ||
44189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44192 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
44193 | ||
44194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
44195 | return resultobj; | |
44196 | fail: | |
44197 | return NULL; | |
44198 | } | |
44199 | ||
44200 | ||
c32bde28 | 44201 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44202 | PyObject *resultobj; |
44203 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44204 | wxIndividualLayoutConstraint *result; | |
44205 | PyObject * obj0 = 0 ; | |
44206 | char *kwnames[] = { | |
44207 | (char *) "self", NULL | |
44208 | }; | |
44209 | ||
44210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44213 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
44214 | ||
44215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
44216 | return resultobj; | |
44217 | fail: | |
44218 | return NULL; | |
44219 | } | |
44220 | ||
44221 | ||
c32bde28 | 44222 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44223 | PyObject *resultobj; |
44224 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44225 | wxIndividualLayoutConstraint *result; | |
44226 | PyObject * obj0 = 0 ; | |
44227 | char *kwnames[] = { | |
44228 | (char *) "self", NULL | |
44229 | }; | |
44230 | ||
44231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44234 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
44235 | ||
44236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
44237 | return resultobj; | |
44238 | fail: | |
44239 | return NULL; | |
44240 | } | |
44241 | ||
44242 | ||
c32bde28 | 44243 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44244 | PyObject *resultobj; |
44245 | wxLayoutConstraints *result; | |
44246 | char *kwnames[] = { | |
44247 | NULL | |
44248 | }; | |
44249 | ||
44250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
44251 | { | |
44252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44253 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
44254 | ||
44255 | wxPyEndAllowThreads(__tstate); | |
44256 | if (PyErr_Occurred()) SWIG_fail; | |
44257 | } | |
44258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
44259 | return resultobj; | |
44260 | fail: | |
44261 | return NULL; | |
44262 | } | |
44263 | ||
44264 | ||
c32bde28 | 44265 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44266 | PyObject *resultobj; |
44267 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44268 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44269 | int *arg3 = (int *) 0 ; | |
44270 | bool result; | |
44271 | int temp3 ; | |
c32bde28 | 44272 | int res3 = 0 ; |
d55e5bfc RD |
44273 | PyObject * obj0 = 0 ; |
44274 | PyObject * obj1 = 0 ; | |
44275 | char *kwnames[] = { | |
44276 | (char *) "self",(char *) "win", NULL | |
44277 | }; | |
44278 | ||
c32bde28 | 44279 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc | 44280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
44281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44283 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44284 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
44285 | { |
44286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44287 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
44288 | ||
44289 | wxPyEndAllowThreads(__tstate); | |
44290 | if (PyErr_Occurred()) SWIG_fail; | |
44291 | } | |
44292 | { | |
44293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44294 | } | |
c32bde28 RD |
44295 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
44296 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
44297 | return resultobj; |
44298 | fail: | |
44299 | return NULL; | |
44300 | } | |
44301 | ||
44302 | ||
c32bde28 | 44303 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
44304 | PyObject *resultobj; |
44305 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44306 | bool result; | |
44307 | PyObject * obj0 = 0 ; | |
44308 | char *kwnames[] = { | |
44309 | (char *) "self", NULL | |
44310 | }; | |
44311 | ||
44312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
44315 | { |
44316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44317 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
44318 | ||
44319 | wxPyEndAllowThreads(__tstate); | |
44320 | if (PyErr_Occurred()) SWIG_fail; | |
44321 | } | |
44322 | { | |
44323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44324 | } | |
44325 | return resultobj; | |
44326 | fail: | |
44327 | return NULL; | |
44328 | } | |
44329 | ||
44330 | ||
c32bde28 | 44331 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
44332 | PyObject *obj; |
44333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
44334 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
44335 | Py_INCREF(obj); | |
44336 | return Py_BuildValue((char *)""); | |
44337 | } | |
44338 | static PyMethodDef SwigMethods[] = { | |
093d3ff1 RD |
44339 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL}, |
44340 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL}, | |
44341 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44342 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44343 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL}, | |
44344 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44345 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44346 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44347 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44348 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44349 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44350 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44351 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44352 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44353 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44354 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44355 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44356 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44357 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44358 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44359 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44360 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44361 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44362 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44363 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44364 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL}, | |
44365 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44366 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44367 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44368 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44369 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44370 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44371 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44372 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44373 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44374 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44375 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44376 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44377 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL}, | |
44378 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44379 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44380 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44381 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44382 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44383 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44384 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44385 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44386 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44387 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44388 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44389 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44390 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44391 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44392 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL}, | |
44393 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44394 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44395 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44396 | { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44397 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44398 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44399 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44400 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44401 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44402 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44403 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44404 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44405 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44406 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44407 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44408 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44409 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44410 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44411 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44412 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44413 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44414 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44415 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44416 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44417 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44418 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44419 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44420 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44421 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44422 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44423 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44424 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44425 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44426 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44427 | { (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44428 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44429 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44430 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44431 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44432 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44433 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44434 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44435 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44436 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44437 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44438 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44439 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44440 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44441 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44442 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44443 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44444 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44445 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL}, | |
44446 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44447 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44448 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44449 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44450 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44451 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44452 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44453 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44454 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44455 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44456 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44457 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44458 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44459 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44460 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44461 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44462 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44463 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44464 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44465 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44466 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44467 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44468 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44469 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44470 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44471 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44472 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44473 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL}, | |
44474 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44475 | { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44476 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44477 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44478 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44479 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44480 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44481 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44482 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44483 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44484 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44485 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44486 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44487 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44488 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44489 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44490 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44491 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44492 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL}, | |
44493 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44494 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL}, | |
44495 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44496 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44497 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44498 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44499 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44500 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44501 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44502 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL}, | |
44503 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL}, | |
44504 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44505 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44506 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44507 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44508 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44509 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44510 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44511 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44512 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44513 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44514 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44515 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL}, | |
44516 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44517 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44518 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44519 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44520 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44521 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44522 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44523 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44524 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44525 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44526 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44527 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL}, | |
44528 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44529 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44530 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44531 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL}, | |
44532 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44533 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44534 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44535 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44536 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44537 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL}, | |
44538 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44539 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44540 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44541 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44542 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44543 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44544 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44545 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44546 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44547 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL}, | |
44548 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44549 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44550 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44551 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44552 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44553 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44554 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44555 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44556 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44557 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL}, | |
44558 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44559 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44560 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44561 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL}, | |
44562 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44563 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44564 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44565 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44566 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44567 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44568 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44569 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44570 | { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44571 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44572 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44573 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44574 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44575 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44576 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44577 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44578 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44579 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44580 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44581 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44582 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44583 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44584 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44585 | { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44586 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44587 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44588 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44589 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44590 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44591 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44592 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44593 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44594 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44595 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44596 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44597 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44598 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44599 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44600 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44601 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44602 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44603 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44604 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44605 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44606 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44607 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44608 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44609 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44610 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44611 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44612 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44613 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44614 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44615 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44616 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44617 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44618 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44619 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44620 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44621 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44622 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44623 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44624 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44625 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44626 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44627 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44628 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44629 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44630 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44631 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44632 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44633 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44634 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44635 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL}, | |
44636 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44637 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL}, | |
44638 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44639 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL}, | |
44640 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44641 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL}, | |
44642 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44643 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL}, | |
44644 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44645 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL}, | |
44646 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44647 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL}, | |
44648 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44649 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL}, | |
44650 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44651 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL}, | |
44652 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44653 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL}, | |
44654 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44655 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL}, | |
44656 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44657 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL}, | |
44658 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44659 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL}, | |
44660 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44661 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44662 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44663 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44664 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44665 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44666 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44667 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44668 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44669 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44670 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44671 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44672 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44673 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL}, | |
44674 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44675 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44676 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44677 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44678 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44679 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44680 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44681 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44682 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44683 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44684 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44685 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44686 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44687 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44688 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44689 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44690 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44691 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL}, | |
44692 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44693 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44694 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL}, | |
44695 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44696 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44697 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL}, | |
44698 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44699 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44700 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44701 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44702 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44703 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44704 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44705 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44706 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44707 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44708 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44709 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL}, | |
44710 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44711 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44712 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44713 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44714 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL}, | |
44715 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44716 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44717 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44718 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44719 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44720 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL}, | |
44721 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44722 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44723 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44724 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44725 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44726 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL}, | |
44727 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44728 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44729 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44730 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44731 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44732 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44733 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44734 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44735 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44736 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44737 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44738 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44739 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44740 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44741 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44742 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44743 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44744 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44745 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44746 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44747 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44748 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44749 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44750 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44751 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44752 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44753 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44754 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44755 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44756 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44757 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44758 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44759 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44760 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44761 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44762 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44763 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44764 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44765 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44766 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44767 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44768 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44769 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44770 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44771 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44772 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44773 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44774 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44775 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44776 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44777 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44778 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44779 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44780 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44781 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44782 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44783 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44784 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44785 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44786 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44787 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44788 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44789 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL}, | |
44790 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44791 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44792 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44793 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44794 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44795 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44796 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL}, | |
44797 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44798 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44799 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44800 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44801 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44802 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44803 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44804 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44805 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44806 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44807 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44808 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44809 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44810 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44811 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44812 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44813 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44814 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44815 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44816 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44817 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44818 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44819 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44820 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44821 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44822 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44823 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44824 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44825 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44826 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44827 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44828 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44829 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44830 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44831 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44832 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL}, | |
44833 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44834 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44835 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44836 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44837 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44838 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44839 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44840 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44841 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44842 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL}, | |
44843 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44844 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44845 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44846 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44847 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
44848 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL}, |
44849 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44850 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL}, | |
44851 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44852 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL}, | |
44853 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44854 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44855 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL}, | |
44856 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44857 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44858 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44859 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL}, | |
44860 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44861 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44862 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL}, | |
44863 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44864 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44865 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL}, | |
44866 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44867 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL}, | |
44868 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44869 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44870 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44871 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44872 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL}, | |
44873 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44874 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44875 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44876 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44877 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44878 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44879 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44880 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL}, | |
44881 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44882 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44883 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44884 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL}, | |
44885 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44886 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44887 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL}, | |
44888 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44889 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL}, | |
44890 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44891 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44892 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44893 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL}, | |
44894 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44895 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44896 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44897 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44898 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44899 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44900 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44901 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44902 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44903 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44904 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44905 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44906 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44907 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44908 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44909 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44910 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL}, | |
44911 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44912 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL}, | |
44913 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44914 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44915 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL}, | |
44916 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44917 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL}, | |
44918 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44919 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44920 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44921 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL}, | |
44922 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44923 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44924 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44925 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL}, | |
44926 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44927 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44928 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44929 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44930 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44931 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44932 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44933 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44934 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL}, | |
44935 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44936 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44937 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL}, | |
44938 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44939 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44940 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL}, | |
44941 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44942 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44943 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44944 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL}, | |
44945 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44946 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44947 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44948 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44949 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44950 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44951 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL}, | |
44952 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44953 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44954 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44955 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44956 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL}, | |
44957 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44958 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44959 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44960 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44961 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL}, | |
44962 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44963 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44964 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44965 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44966 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44967 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44968 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44969 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44970 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44971 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44972 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44973 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44974 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44975 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44976 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44977 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44978 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44979 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44980 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44981 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44982 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44983 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44984 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44985 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44986 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44987 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44988 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44989 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44990 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44991 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44992 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44993 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44994 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44995 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44996 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44997 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44998 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
44999 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45000 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45001 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45002 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45003 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45004 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45005 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45006 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL}, | |
45007 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45008 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45009 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45010 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45011 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45012 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45013 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45014 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45015 | { (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45016 | { (char *)"GetDefaultPyEncoding", (PyCFunction) _wrap_GetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45017 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45018 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45019 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45020 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45021 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45022 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45023 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45024 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45025 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45026 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL}, | |
45027 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45028 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45029 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45030 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45031 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45032 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45033 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL}, | |
45034 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45035 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45036 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45037 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL}, | |
45038 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45039 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45040 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45041 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45042 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45043 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45044 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45045 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45046 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45047 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL}, | |
45048 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45049 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45050 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45051 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45052 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45053 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45054 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45055 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45056 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45057 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45058 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45059 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45060 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45061 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45062 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45063 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45064 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45065 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45066 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45067 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45068 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45069 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45070 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45071 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45072 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45073 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45074 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45075 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45076 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45077 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45078 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45079 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45080 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45081 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45082 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45083 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45084 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45085 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45086 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45087 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45088 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45089 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45090 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45091 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45092 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45093 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45094 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45095 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45096 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45097 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45098 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45099 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45100 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45101 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45102 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45103 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45104 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45105 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45106 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45107 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45108 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45109 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45110 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45111 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45112 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45113 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45114 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45115 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45116 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45117 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45118 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45119 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45120 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45121 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45122 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45123 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45124 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45125 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45126 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45127 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45128 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45129 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45130 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45131 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45132 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45133 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45134 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45135 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45136 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45137 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45138 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45139 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45140 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45141 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45142 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45143 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45144 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45145 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45146 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45147 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45148 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45149 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45150 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45151 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45152 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45153 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45154 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45155 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45156 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45157 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45158 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45159 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45160 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45161 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45162 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45163 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45164 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45165 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45166 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45167 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45168 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45169 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45170 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45171 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45172 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45173 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45174 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45175 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45176 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45177 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45178 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45179 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45180 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45181 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45182 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45183 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45184 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45185 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45186 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45187 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45188 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45189 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45190 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45191 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45192 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45193 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45194 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45195 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45196 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45197 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45198 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
51b83b37 | 45199 | { (char *)"Window_HasTransparentBackground", (PyCFunction) _wrap_Window_HasTransparentBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45200 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
45201 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45202 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45203 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45204 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45205 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45206 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45207 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45208 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45209 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45210 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45211 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45212 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45213 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45214 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45215 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45216 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45217 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL}, | |
45218 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45219 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45220 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45221 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45222 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45223 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45224 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45225 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45226 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45227 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45228 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45229 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45230 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45231 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45232 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45233 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45234 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45235 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45236 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45237 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45238 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45239 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45240 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45241 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45242 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45243 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45244 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45245 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45246 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45247 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45248 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45249 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45250 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45251 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45252 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45253 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45254 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45255 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45256 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45257 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45258 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45259 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL}, | |
45260 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45261 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45262 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45263 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45264 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45265 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45266 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45267 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45268 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45269 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45270 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45271 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45272 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45273 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL}, | |
45274 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45275 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45276 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL}, | |
45277 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45278 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45279 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45280 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45281 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45282 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45283 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45284 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45285 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45286 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45287 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45288 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45289 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45290 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45291 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45292 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45293 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45294 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45295 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45296 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45297 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45298 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45299 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45300 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45301 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45302 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45303 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45304 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45305 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45306 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45307 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45308 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45309 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45310 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45311 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45312 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45313 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45314 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45315 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45316 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45317 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45318 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45319 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45320 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45321 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45322 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45323 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45324 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45325 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45326 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45327 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45328 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45329 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45330 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45331 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL}, | |
45332 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45333 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45334 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45335 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45336 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45337 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45338 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45339 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45340 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45341 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45342 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45343 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45344 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45345 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45346 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45347 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45348 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45349 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45350 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45351 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45352 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45353 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45354 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45355 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45356 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45357 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45358 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL}, | |
45359 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45360 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45361 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45362 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45363 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45364 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45365 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45366 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45367 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45368 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45369 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45370 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45371 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45372 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45373 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45374 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45375 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45376 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45377 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45378 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45379 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45380 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45381 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45382 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45383 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45384 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45385 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45386 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45387 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45388 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45389 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45390 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45391 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45392 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45393 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45394 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45395 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45396 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45397 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45398 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45399 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45400 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45401 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45402 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL}, | |
45403 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45404 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45405 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45406 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45407 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45408 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45409 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45410 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL}, | |
45411 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45412 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45413 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45414 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45415 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45416 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45417 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45418 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45419 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45420 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45421 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45422 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45423 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45424 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45425 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45426 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45427 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL}, | |
45428 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL}, | |
45429 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45430 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45431 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45432 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45433 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45434 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45435 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45436 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45437 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45438 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45439 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45440 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45441 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45442 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45443 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45444 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45445 | { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45446 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45447 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45448 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45449 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45450 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45451 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45452 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45453 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45454 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45455 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45456 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45457 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45458 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45459 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45460 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45461 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45462 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45463 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45464 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45465 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL}, | |
45466 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45467 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45468 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45469 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45470 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45471 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45472 | { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45473 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45474 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45475 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45476 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45477 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45478 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45479 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45480 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45481 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45482 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45483 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45484 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45485 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45486 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45487 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45488 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45489 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45490 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45491 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45492 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45493 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45494 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45495 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL}, | |
45496 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45497 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45498 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL}, | |
45499 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45500 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45501 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45502 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL}, | |
45503 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45504 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45505 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL}, | |
45506 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45507 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45508 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45509 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45510 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45511 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45512 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45513 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45514 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45515 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL}, | |
45516 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45517 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45518 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45519 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45520 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45521 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45522 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45523 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45524 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45525 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45526 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45527 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL}, | |
62d32a5f RD |
45528 | { (char *)"new_StdDialogButtonSizer", (PyCFunction) _wrap_new_StdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
45529 | { (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45530 | { (char *)"StdDialogButtonSizer_Finalise", (PyCFunction) _wrap_StdDialogButtonSizer_Finalise, METH_VARARGS | METH_KEYWORDS, NULL}, | |
51b83b37 RD |
45531 | { (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
45532 | { (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45533 | { (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
62d32a5f RD |
45534 | { (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
45535 | { (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetApplyButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45536 | { (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45537 | { (char *)"StdDialogButtonSizer_GetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45538 | { (char *)"StdDialogButtonSizer_GetHelpButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45539 | { (char *)"StdDialogButtonSizer_swigregister", StdDialogButtonSizer_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
45540 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
45541 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45542 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45543 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45544 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45545 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45546 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45547 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45548 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45549 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL}, | |
45550 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45551 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45552 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45553 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45554 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45555 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45556 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45557 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45558 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45559 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL}, | |
45560 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45561 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45562 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45563 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45564 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45565 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45566 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45567 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45568 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45569 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45570 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45571 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45572 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45573 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL}, | |
45574 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45575 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45576 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45577 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45578 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45579 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45580 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL}, | |
45581 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL}, | |
45582 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL}, | |
45583 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL}, | |
45584 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL}, | |
45585 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45586 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45587 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45588 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45589 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL}, | |
45590 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45591 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45592 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45593 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45594 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45595 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45596 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45597 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45598 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45599 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45600 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45601 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45602 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45603 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45604 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45605 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45606 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45607 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45608 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45609 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45610 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45611 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45612 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45613 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45614 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45615 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45616 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL}, | |
45617 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45618 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45619 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45620 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45621 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45622 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45623 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45624 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45625 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45626 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45627 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45628 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 45629 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
45630 | }; |
45631 | ||
45632 | ||
45633 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
45634 | ||
45635 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
45636 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
45637 | } | |
45638 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
45639 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
45640 | } | |
45641 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
45642 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
45643 | } | |
62d32a5f RD |
45644 | static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) { |
45645 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
45646 | } | |
d55e5bfc RD |
45647 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { |
45648 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
45649 | } | |
45650 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
45651 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
45652 | } | |
45653 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
45654 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
45655 | } | |
45656 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
45657 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
45658 | } | |
45659 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
45660 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
45661 | } | |
62d32a5f RD |
45662 | static void *_p_wxStdDialogButtonSizerTo_p_wxBoxSizer(void *x) { |
45663 | return (void *)((wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
45664 | } | |
d55e5bfc RD |
45665 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
45666 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
45667 | } | |
45668 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
45669 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
45670 | } | |
45671 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
45672 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
45673 | } | |
45674 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
45675 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
45676 | } | |
45677 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
45678 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
45679 | } | |
45680 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
45681 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
45682 | } | |
45683 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
45684 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
45685 | } | |
45686 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
45687 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
45688 | } | |
45689 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
45690 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
45691 | } | |
45692 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
45693 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
45694 | } | |
45695 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
45696 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
45697 | } | |
45698 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
45699 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
45700 | } | |
45701 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
45702 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
45703 | } | |
45704 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
45705 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
45706 | } | |
45707 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
45708 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
45709 | } | |
45710 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
45711 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
45712 | } | |
45713 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
45714 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
45715 | } | |
45716 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
45717 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
45718 | } | |
45719 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
45720 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
45721 | } | |
45722 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
45723 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
45724 | } | |
45725 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
45726 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
45727 | } | |
45728 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
45729 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
45730 | } | |
45731 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
45732 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
45733 | } | |
45734 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
45735 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
45736 | } | |
45737 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
45738 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
45739 | } | |
45740 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
45741 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
45742 | } | |
45743 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
45744 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
45745 | } | |
45746 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
45747 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
45748 | } | |
45749 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
45750 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
45751 | } | |
45752 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
45753 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
45754 | } | |
45755 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
45756 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
45757 | } | |
45758 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
45759 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
45760 | } | |
45761 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
45762 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
45763 | } | |
45764 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
45765 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
45766 | } | |
45767 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
45768 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
45769 | } | |
45770 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
45771 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
45772 | } | |
45773 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
45774 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
45775 | } | |
45776 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
45777 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
45778 | } | |
45779 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
45780 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
45781 | } | |
45782 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
45783 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
45784 | } | |
45785 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
45786 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
45787 | } | |
45788 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
45789 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
45790 | } | |
45791 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
45792 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
45793 | } | |
45794 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
45795 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
45796 | } | |
45797 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
45798 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
45799 | } | |
45800 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
45801 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
45802 | } | |
45803 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
45804 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
45805 | } | |
45806 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
45807 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
45808 | } | |
45809 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
45810 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
45811 | } | |
45812 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
45813 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
45814 | } | |
45815 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
45816 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
45817 | } | |
45818 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
45819 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
45820 | } | |
45821 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
45822 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
45823 | } | |
45824 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
45825 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
45826 | } | |
45827 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
45828 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
45829 | } | |
45830 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
45831 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
45832 | } | |
45833 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
45834 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
45835 | } | |
45836 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
45837 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
45838 | } | |
45839 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
45840 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
45841 | } | |
45842 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
45843 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
45844 | } | |
45845 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
45846 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
45847 | } | |
45848 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
45849 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
45850 | } | |
45851 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
45852 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
45853 | } | |
45854 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
45855 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
45856 | } | |
45857 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
45858 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
45859 | } | |
45860 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
45861 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
45862 | } | |
45863 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
45864 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
45865 | } | |
45866 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
45867 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
45868 | } | |
45869 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
45870 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
45871 | } | |
62d32a5f RD |
45872 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
45873 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
d55e5bfc | 45874 | } |
62d32a5f RD |
45875 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
45876 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
d55e5bfc | 45877 | } |
62d32a5f RD |
45878 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
45879 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
d55e5bfc | 45880 | } |
62d32a5f RD |
45881 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
45882 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
d55e5bfc | 45883 | } |
62d32a5f RD |
45884 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { |
45885 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
d55e5bfc | 45886 | } |
62d32a5f RD |
45887 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
45888 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
d55e5bfc | 45889 | } |
62d32a5f RD |
45890 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { |
45891 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
d55e5bfc RD |
45892 | } |
45893 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
45894 | return (void *)((wxObject *) ((wxSizer *) x)); | |
45895 | } | |
62d32a5f RD |
45896 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { |
45897 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
d55e5bfc | 45898 | } |
62d32a5f RD |
45899 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { |
45900 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
d55e5bfc | 45901 | } |
62d32a5f RD |
45902 | static void *_p_wxEventTo_p_wxObject(void *x) { |
45903 | return (void *)((wxObject *) ((wxEvent *) x)); | |
45904 | } | |
45905 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
45906 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
45907 | } | |
45908 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
45909 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
d55e5bfc RD |
45910 | } |
45911 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
45912 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
45913 | } | |
62d32a5f RD |
45914 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
45915 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
d55e5bfc | 45916 | } |
62d32a5f RD |
45917 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { |
45918 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
d55e5bfc | 45919 | } |
62d32a5f RD |
45920 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { |
45921 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
d55e5bfc | 45922 | } |
62d32a5f RD |
45923 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { |
45924 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
d55e5bfc | 45925 | } |
62d32a5f RD |
45926 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { |
45927 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
45928 | } | |
45929 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
45930 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
d55e5bfc RD |
45931 | } |
45932 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
45933 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
45934 | } | |
62d32a5f RD |
45935 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
45936 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
d55e5bfc | 45937 | } |
62d32a5f RD |
45938 | static void *_p_wxFSFileTo_p_wxObject(void *x) { |
45939 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
d55e5bfc | 45940 | } |
62d32a5f RD |
45941 | static void *_p_wxPySizerTo_p_wxObject(void *x) { |
45942 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
d55e5bfc | 45943 | } |
62d32a5f RD |
45944 | static void *_p_wxPyEventTo_p_wxObject(void *x) { |
45945 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
d55e5bfc | 45946 | } |
62d32a5f RD |
45947 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { |
45948 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
d55e5bfc | 45949 | } |
62d32a5f RD |
45950 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
45951 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
d55e5bfc | 45952 | } |
62d32a5f RD |
45953 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { |
45954 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
d55e5bfc | 45955 | } |
62d32a5f RD |
45956 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
45957 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
d55e5bfc | 45958 | } |
62d32a5f RD |
45959 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { |
45960 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
45961 | } | |
45962 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
45963 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
d55e5bfc RD |
45964 | } |
45965 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
45966 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
45967 | } | |
62d32a5f RD |
45968 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { |
45969 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
d55e5bfc | 45970 | } |
62d32a5f RD |
45971 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { |
45972 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
d55e5bfc | 45973 | } |
62d32a5f RD |
45974 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { |
45975 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
d55e5bfc | 45976 | } |
62d32a5f RD |
45977 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { |
45978 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
d55e5bfc | 45979 | } |
62d32a5f RD |
45980 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
45981 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
d55e5bfc | 45982 | } |
62d32a5f RD |
45983 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
45984 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
d55e5bfc | 45985 | } |
62d32a5f RD |
45986 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { |
45987 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
d55e5bfc | 45988 | } |
62d32a5f RD |
45989 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { |
45990 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
d55e5bfc | 45991 | } |
62d32a5f RD |
45992 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { |
45993 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
d55e5bfc | 45994 | } |
62d32a5f RD |
45995 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { |
45996 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
d55e5bfc RD |
45997 | } |
45998 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
45999 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
46000 | } | |
62d32a5f RD |
46001 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { |
46002 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
d55e5bfc | 46003 | } |
62d32a5f RD |
46004 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { |
46005 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
d55e5bfc | 46006 | } |
62d32a5f RD |
46007 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { |
46008 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
d55e5bfc | 46009 | } |
62d32a5f RD |
46010 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
46011 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
d55e5bfc | 46012 | } |
62d32a5f RD |
46013 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
46014 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
d55e5bfc | 46015 | } |
62d32a5f RD |
46016 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
46017 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
d55e5bfc | 46018 | } |
62d32a5f RD |
46019 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
46020 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
d55e5bfc | 46021 | } |
62d32a5f RD |
46022 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
46023 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
d55e5bfc | 46024 | } |
62d32a5f RD |
46025 | static void *_p_wxImageTo_p_wxObject(void *x) { |
46026 | return (void *)((wxObject *) ((wxImage *) x)); | |
d55e5bfc | 46027 | } |
62d32a5f RD |
46028 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
46029 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
d55e5bfc | 46030 | } |
62d32a5f RD |
46031 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
46032 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
d55e5bfc | 46033 | } |
62d32a5f RD |
46034 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { |
46035 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
d55e5bfc | 46036 | } |
62d32a5f RD |
46037 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { |
46038 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
d55e5bfc | 46039 | } |
62d32a5f RD |
46040 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
46041 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
d55e5bfc | 46042 | } |
62d32a5f RD |
46043 | static void *_p_wxMenuTo_p_wxObject(void *x) { |
46044 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
d55e5bfc | 46045 | } |
62d32a5f RD |
46046 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { |
46047 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
d55e5bfc | 46048 | } |
62d32a5f RD |
46049 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
46050 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
d55e5bfc | 46051 | } |
62d32a5f RD |
46052 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
46053 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
d55e5bfc | 46054 | } |
62d32a5f RD |
46055 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { |
46056 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
d55e5bfc | 46057 | } |
62d32a5f RD |
46058 | static void *_p_wxPyAppTo_p_wxObject(void *x) { |
46059 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
d55e5bfc | 46060 | } |
62d32a5f RD |
46061 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { |
46062 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
d55e5bfc | 46063 | } |
62d32a5f RD |
46064 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { |
46065 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
d55e5bfc | 46066 | } |
62d32a5f RD |
46067 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { |
46068 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
d55e5bfc RD |
46069 | } |
46070 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
46071 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
46072 | } | |
62d32a5f RD |
46073 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { |
46074 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
d55e5bfc | 46075 | } |
62d32a5f RD |
46076 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { |
46077 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
d55e5bfc | 46078 | } |
62d32a5f RD |
46079 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { |
46080 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
d55e5bfc | 46081 | } |
62d32a5f RD |
46082 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { |
46083 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
d55e5bfc | 46084 | } |
62d32a5f RD |
46085 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
46086 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
d55e5bfc | 46087 | } |
62d32a5f RD |
46088 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
46089 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
d55e5bfc | 46090 | } |
62d32a5f RD |
46091 | static void *_p_wxValidatorTo_p_wxObject(void *x) { |
46092 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
d55e5bfc RD |
46093 | } |
46094 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
46095 | return (void *)((wxWindow *) ((wxControl *) x)); | |
46096 | } | |
46097 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
46098 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
46099 | } | |
46100 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
46101 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
46102 | } | |
46103 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
46104 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
46105 | } | |
46106 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
46107 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
46108 | } | |
46109 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
46110 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
46111 | } | |
46112 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
46113 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
46114 | } | |
46115 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
46116 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
46117 | } | |
46118 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
46119 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
46120 | } | |
46121 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
46122 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
46123 | } | |
46124 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
46125 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
46126 | } | |
46127 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
46128 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
46129 | } | |
46130 | 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}}; | |
46131 | 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}}; | |
46132 | 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}}; | |
46133 | 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}}; | |
46134 | 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 | 46135 | 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 | 46136 | 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 |
46137 | 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}}; |
46138 | 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 |
46139 | 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}}; |
46140 | 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}}; | |
46141 | 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}}; | |
46142 | 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}}; | |
d55e5bfc | 46143 | 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_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_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_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 | 46144 | 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 |
46145 | 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}}; |
46146 | 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}}; | |
46147 | 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}}; | |
46148 | 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}}; | |
46149 | 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}}; | |
46150 | 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}}; | |
46151 | 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}}; | |
46152 | 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}}; | |
46153 | 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}}; | |
46154 | 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}}; | |
46155 | 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}}; | |
46156 | 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}}; | |
46157 | 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}}; | |
46158 | 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}}; | |
46159 | 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}}; | |
46160 | 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 |
46161 | 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}}; |
46162 | 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 |
46163 | 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}}; |
46164 | 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}}; | |
46165 | 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}}; | |
46166 | 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}}; | |
46167 | 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}}; | |
46168 | 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}}; | |
46169 | 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}}; | |
46170 | 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}}; | |
46171 | 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}}; | |
46172 | 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 | 46173 | 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 |
46174 | 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}}; |
46175 | 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}}; | |
46176 | 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}}; | |
46177 | 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 |
46178 | 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}}; |
46179 | 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 |
46180 | 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}}; |
46181 | 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 | 46182 | 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 |
46183 | 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}}; |
46184 | 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}}; | |
46185 | 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}}; | |
46186 | 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}}; | |
46187 | 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}}; | |
46188 | 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 | 46189 | 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 |
46190 | 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}}; |
46191 | 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}}; | |
46192 | 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}}; | |
46193 | 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}}; | |
46194 | 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}}; | |
46195 | 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}}; | |
46196 | 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}}; | |
46197 | 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}}; | |
46198 | 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 |
46199 | 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}}; |
46200 | 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}}; | |
46201 | 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 |
46202 | 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}}; |
46203 | 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}}; | |
46204 | 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}}; | |
46205 | 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}}; | |
46206 | 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}}; | |
46207 | 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 | 46208 | 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 | 46209 | 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 |
46210 | 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}}; |
46211 | 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}}; | |
46212 | 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 | 46213 | 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 |
46214 | 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}}; |
46215 | 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}}; | |
46216 | 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}}; | |
46217 | 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}}; | |
46218 | 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 | 46219 | 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 | 46220 | 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 |
46221 | 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}}; |
46222 | 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}}; | |
62d32a5f | 46223 | 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_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_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_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 | 46224 | 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 |
46225 | 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}}; |
46226 | 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 |
46227 | 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}}; |
46228 | 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}}; | |
46229 | 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}}; | |
46230 | 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 | 46231 | 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 |
46232 | 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}}; |
46233 | 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}}; | |
46234 | 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}}; | |
46235 | 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 |
46236 | 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}}; |
46237 | 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 |
46238 | 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}}; |
46239 | 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}}; | |
093d3ff1 | 46240 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
46241 | 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}}; |
46242 | 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 | 46243 | 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 RD |
46244 | 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}}; |
46245 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_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}}; | |
46246 | 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}}; | |
46247 | 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 | 46248 | 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 RD |
46249 | 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}}; |
46250 | 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}}; | |
46251 | 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}}; | |
46252 | 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}}; | |
46253 | 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}}; | |
46254 | 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}}; | |
46255 | 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}}; | |
46256 | ||
46257 | static swig_type_info *swig_types_initial[] = { | |
46258 | _swigt__p_wxLayoutConstraints, | |
46259 | _swigt__p_wxRealPoint, | |
46260 | _swigt__p_wxSizerItem, | |
46261 | _swigt__p_wxGBSizerItem, | |
46262 | _swigt__p_wxScrollEvent, | |
ae8162c8 | 46263 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
46264 | _swigt__p_wxIndividualLayoutConstraint, |
46265 | _swigt__p_wxSizer, | |
46266 | _swigt__p_wxBoxSizer, | |
46267 | _swigt__p_wxStaticBoxSizer, | |
46268 | _swigt__p_wxGridBagSizer, | |
46269 | _swigt__p_wxAcceleratorEntry, | |
46270 | _swigt__p_wxUpdateUIEvent, | |
d55e5bfc | 46271 | _swigt__p_wxEvent, |
093d3ff1 | 46272 | _swigt__p_wxMenu, |
d55e5bfc RD |
46273 | _swigt__p_wxGridSizer, |
46274 | _swigt__p_wxFlexGridSizer, | |
46275 | _swigt__p_wxInitDialogEvent, | |
46276 | _swigt__p_wxItemContainer, | |
46277 | _swigt__p_wxNcPaintEvent, | |
46278 | _swigt__p_wxPaintEvent, | |
46279 | _swigt__p_wxSysColourChangedEvent, | |
46280 | _swigt__p_wxMouseCaptureChangedEvent, | |
46281 | _swigt__p_wxDisplayChangedEvent, | |
46282 | _swigt__p_wxPaletteChangedEvent, | |
46283 | _swigt__p_wxControl, | |
46284 | _swigt__p_wxFont, | |
46285 | _swigt__p_wxMenuBarBase, | |
46286 | _swigt__p_wxSetCursorEvent, | |
46287 | _swigt__p_wxFSFile, | |
46288 | _swigt__p_wxCaret, | |
093d3ff1 RD |
46289 | _swigt__ptrdiff_t, |
46290 | _swigt__std__ptrdiff_t, | |
d55e5bfc RD |
46291 | _swigt__p_wxRegion, |
46292 | _swigt__p_wxPoint2D, | |
46293 | _swigt__p_int, | |
46294 | _swigt__p_wxSize, | |
46295 | _swigt__p_wxDC, | |
46296 | _swigt__p_wxPySizer, | |
46297 | _swigt__p_wxVisualAttributes, | |
46298 | _swigt__p_wxNotifyEvent, | |
46299 | _swigt__p_wxPyEvent, | |
46300 | _swigt__p_wxPropagationDisabler, | |
093d3ff1 | 46301 | _swigt__p_form_ops_t, |
d55e5bfc RD |
46302 | _swigt__p_wxAppTraits, |
46303 | _swigt__p_wxArrayString, | |
46304 | _swigt__p_wxShowEvent, | |
46305 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
46306 | _swigt__p_wxMoveEvent, |
46307 | _swigt__p_wxSizeEvent, | |
093d3ff1 RD |
46308 | _swigt__p_wxActivateEvent, |
46309 | _swigt__p_wxIconizeEvent, | |
c0de73ae | 46310 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
46311 | _swigt__p_wxQueryNewPaletteEvent, |
46312 | _swigt__p_wxWindowCreateEvent, | |
46313 | _swigt__p_wxIdleEvent, | |
46314 | _swigt__p_wxMenuItem, | |
46315 | _swigt__p_wxStaticBox, | |
46316 | _swigt__p_long, | |
093d3ff1 | 46317 | _swigt__p_wxDuplexMode, |
d55e5bfc RD |
46318 | _swigt__p_wxTIFFHandler, |
46319 | _swigt__p_wxXPMHandler, | |
46320 | _swigt__p_wxPNMHandler, | |
46321 | _swigt__p_wxJPEGHandler, | |
46322 | _swigt__p_wxPCXHandler, | |
46323 | _swigt__p_wxGIFHandler, | |
46324 | _swigt__p_wxPNGHandler, | |
46325 | _swigt__p_wxANIHandler, | |
46326 | _swigt__p_wxMemoryFSHandler, | |
093d3ff1 RD |
46327 | _swigt__p_wxZipFSHandler, |
46328 | _swigt__p_wxInternetFSHandler, | |
46329 | _swigt__p_wxPyFileSystemHandler, | |
d55e5bfc RD |
46330 | _swigt__p_wxEvtHandler, |
46331 | _swigt__p_wxCURHandler, | |
46332 | _swigt__p_wxICOHandler, | |
46333 | _swigt__p_wxBMPHandler, | |
46334 | _swigt__p_wxImageHandler, | |
46335 | _swigt__p_wxFileSystemHandler, | |
d55e5bfc | 46336 | _swigt__p_wxRect, |
62d32a5f | 46337 | _swigt__p_wxButton, |
d55e5bfc RD |
46338 | _swigt__p_wxGBSpan, |
46339 | _swigt__p_wxPropagateOnce, | |
46340 | _swigt__p_wxAcceleratorTable, | |
62d32a5f | 46341 | _swigt__p_wxStdDialogButtonSizer, |
d55e5bfc RD |
46342 | _swigt__p_char, |
46343 | _swigt__p_wxGBPosition, | |
46344 | _swigt__p_wxImage, | |
46345 | _swigt__p_wxFrame, | |
46346 | _swigt__p_wxScrollWinEvent, | |
093d3ff1 | 46347 | _swigt__p_wxPaperSize, |
d55e5bfc | 46348 | _swigt__p_wxImageHistogram, |
d55e5bfc RD |
46349 | _swigt__p_wxPoint, |
46350 | _swigt__p_wxCursor, | |
46351 | _swigt__p_wxObject, | |
d55e5bfc | 46352 | _swigt__p_wxInputStream, |
093d3ff1 RD |
46353 | _swigt__p_wxOutputStream, |
46354 | _swigt__p_wxPyInputStream, | |
d55e5bfc RD |
46355 | _swigt__p_wxDateTime, |
46356 | _swigt__p_wxKeyEvent, | |
46357 | _swigt__p_wxNavigationKeyEvent, | |
46358 | _swigt__p_wxWindowDestroyEvent, | |
093d3ff1 | 46359 | _swigt__p_unsigned_long, |
d55e5bfc RD |
46360 | _swigt__p_wxWindow, |
46361 | _swigt__p_wxMenuBar, | |
46362 | _swigt__p_wxFileSystem, | |
46363 | _swigt__p_wxBitmap, | |
093d3ff1 RD |
46364 | _swigt__unsigned_int, |
46365 | _swigt__p_unsigned_int, | |
d55e5bfc RD |
46366 | _swigt__p_wxMenuEvent, |
46367 | _swigt__p_wxContextMenuEvent, | |
46368 | _swigt__p_unsigned_char, | |
d55e5bfc RD |
46369 | _swigt__p_wxEraseEvent, |
46370 | _swigt__p_wxMouseEvent, | |
093d3ff1 | 46371 | _swigt__p_wxCloseEvent, |
d55e5bfc RD |
46372 | _swigt__p_wxPyApp, |
46373 | _swigt__p_wxCommandEvent, | |
46374 | _swigt__p_wxPyCommandEvent, | |
46375 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 46376 | _swigt__p_wxQuantize, |
d55e5bfc RD |
46377 | _swigt__p_wxChildFocusEvent, |
46378 | _swigt__p_wxFocusEvent, | |
46379 | _swigt__p_wxDropFilesEvent, | |
46380 | _swigt__p_wxControlWithItems, | |
46381 | _swigt__p_wxColour, | |
46382 | _swigt__p_wxValidator, | |
46383 | _swigt__p_wxPyValidator, | |
46384 | 0 | |
46385 | }; | |
46386 | ||
46387 | ||
46388 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
46389 | ||
46390 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 46391 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
46392 | |
46393 | #ifdef __cplusplus | |
46394 | } | |
46395 | #endif | |
46396 | ||
093d3ff1 RD |
46397 | |
46398 | #ifdef __cplusplus | |
46399 | extern "C" { | |
46400 | #endif | |
46401 | ||
46402 | /* Python-specific SWIG API */ | |
46403 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
46404 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
46405 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
46406 | ||
46407 | /* ----------------------------------------------------------------------------- | |
46408 | * global variable support code. | |
46409 | * ----------------------------------------------------------------------------- */ | |
46410 | ||
46411 | typedef struct swig_globalvar { | |
46412 | char *name; /* Name of global variable */ | |
46413 | PyObject *(*get_attr)(); /* Return the current value */ | |
46414 | int (*set_attr)(PyObject *); /* Set the value */ | |
46415 | struct swig_globalvar *next; | |
46416 | } swig_globalvar; | |
46417 | ||
46418 | typedef struct swig_varlinkobject { | |
46419 | PyObject_HEAD | |
46420 | swig_globalvar *vars; | |
46421 | } swig_varlinkobject; | |
46422 | ||
46423 | static PyObject * | |
46424 | swig_varlink_repr(swig_varlinkobject *v) { | |
46425 | v = v; | |
46426 | return PyString_FromString("<Swig global variables>"); | |
46427 | } | |
46428 | ||
46429 | static int | |
46430 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
46431 | swig_globalvar *var; | |
46432 | flags = flags; | |
46433 | fprintf(fp,"Swig global variables { "); | |
46434 | for (var = v->vars; var; var=var->next) { | |
46435 | fprintf(fp,"%s", var->name); | |
46436 | if (var->next) fprintf(fp,", "); | |
46437 | } | |
46438 | fprintf(fp," }\n"); | |
46439 | return 0; | |
46440 | } | |
46441 | ||
46442 | static PyObject * | |
46443 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
46444 | swig_globalvar *var = v->vars; | |
46445 | while (var) { | |
46446 | if (strcmp(var->name,n) == 0) { | |
46447 | return (*var->get_attr)(); | |
46448 | } | |
46449 | var = var->next; | |
46450 | } | |
46451 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
46452 | return NULL; | |
46453 | } | |
46454 | ||
46455 | static int | |
46456 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
46457 | swig_globalvar *var = v->vars; | |
46458 | while (var) { | |
46459 | if (strcmp(var->name,n) == 0) { | |
46460 | return (*var->set_attr)(p); | |
46461 | } | |
46462 | var = var->next; | |
46463 | } | |
46464 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
46465 | return 1; | |
46466 | } | |
46467 | ||
46468 | static PyTypeObject varlinktype = { | |
46469 | PyObject_HEAD_INIT(0) | |
46470 | 0, /* Number of items in variable part (ob_size) */ | |
46471 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
46472 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
46473 | 0, /* Itemsize (tp_itemsize) */ | |
46474 | 0, /* Deallocator (tp_dealloc) */ | |
46475 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
46476 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
46477 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
46478 | 0, /* tp_compare */ | |
46479 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
46480 | 0, /* tp_as_number */ | |
46481 | 0, /* tp_as_sequence */ | |
46482 | 0, /* tp_as_mapping */ | |
46483 | 0, /* tp_hash */ | |
46484 | 0, /* tp_call */ | |
46485 | 0, /* tp_str */ | |
46486 | 0, /* tp_getattro */ | |
46487 | 0, /* tp_setattro */ | |
46488 | 0, /* tp_as_buffer */ | |
46489 | 0, /* tp_flags */ | |
46490 | 0, /* tp_doc */ | |
46491 | #if PY_VERSION_HEX >= 0x02000000 | |
46492 | 0, /* tp_traverse */ | |
46493 | 0, /* tp_clear */ | |
46494 | #endif | |
46495 | #if PY_VERSION_HEX >= 0x02010000 | |
46496 | 0, /* tp_richcompare */ | |
46497 | 0, /* tp_weaklistoffset */ | |
46498 | #endif | |
46499 | #if PY_VERSION_HEX >= 0x02020000 | |
46500 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
46501 | #endif | |
46502 | #if PY_VERSION_HEX >= 0x02030000 | |
46503 | 0, /* tp_del */ | |
46504 | #endif | |
46505 | #ifdef COUNT_ALLOCS | |
46506 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
46507 | #endif | |
46508 | }; | |
46509 | ||
46510 | /* Create a variable linking object for use later */ | |
46511 | static PyObject * | |
46512 | SWIG_Python_newvarlink(void) { | |
46513 | swig_varlinkobject *result = 0; | |
46514 | result = PyMem_NEW(swig_varlinkobject,1); | |
46515 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
46516 | result->ob_type = &varlinktype; | |
46517 | result->vars = 0; | |
46518 | result->ob_refcnt = 0; | |
46519 | Py_XINCREF((PyObject *) result); | |
46520 | return ((PyObject*) result); | |
46521 | } | |
46522 | ||
46523 | static void | |
46524 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
46525 | swig_varlinkobject *v; | |
46526 | swig_globalvar *gv; | |
46527 | v= (swig_varlinkobject *) p; | |
46528 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
46529 | gv->name = (char *) malloc(strlen(name)+1); | |
46530 | strcpy(gv->name,name); | |
46531 | gv->get_attr = get_attr; | |
46532 | gv->set_attr = set_attr; | |
46533 | gv->next = v->vars; | |
46534 | v->vars = gv; | |
46535 | } | |
46536 | ||
46537 | /* ----------------------------------------------------------------------------- | |
46538 | * constants/methods manipulation | |
46539 | * ----------------------------------------------------------------------------- */ | |
46540 | ||
46541 | /* Install Constants */ | |
46542 | static void | |
46543 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
46544 | PyObject *obj = 0; | |
46545 | size_t i; | |
46546 | for (i = 0; constants[i].type; i++) { | |
46547 | switch(constants[i].type) { | |
46548 | case SWIG_PY_INT: | |
46549 | obj = PyInt_FromLong(constants[i].lvalue); | |
46550 | break; | |
46551 | case SWIG_PY_FLOAT: | |
46552 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
46553 | break; | |
46554 | case SWIG_PY_STRING: | |
46555 | if (constants[i].pvalue) { | |
46556 | obj = PyString_FromString((char *) constants[i].pvalue); | |
46557 | } else { | |
46558 | Py_INCREF(Py_None); | |
46559 | obj = Py_None; | |
46560 | } | |
46561 | break; | |
46562 | case SWIG_PY_POINTER: | |
46563 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
46564 | break; | |
46565 | case SWIG_PY_BINARY: | |
46566 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
46567 | break; | |
46568 | default: | |
46569 | obj = 0; | |
46570 | break; | |
46571 | } | |
46572 | if (obj) { | |
46573 | PyDict_SetItemString(d,constants[i].name,obj); | |
46574 | Py_DECREF(obj); | |
46575 | } | |
46576 | } | |
46577 | } | |
46578 | ||
46579 | /* -----------------------------------------------------------------------------*/ | |
46580 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
46581 | /* -----------------------------------------------------------------------------*/ | |
46582 | ||
46583 | static void | |
46584 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
46585 | swig_const_info *const_table, | |
46586 | swig_type_info **types, | |
46587 | swig_type_info **types_initial) { | |
46588 | size_t i; | |
46589 | for (i = 0; methods[i].ml_name; ++i) { | |
46590 | char *c = methods[i].ml_doc; | |
46591 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
46592 | int j; | |
46593 | swig_const_info *ci = 0; | |
46594 | char *name = c + 10; | |
46595 | for (j = 0; const_table[j].type; j++) { | |
46596 | if (strncmp(const_table[j].name, name, | |
46597 | strlen(const_table[j].name)) == 0) { | |
46598 | ci = &(const_table[j]); | |
46599 | break; | |
46600 | } | |
46601 | } | |
46602 | if (ci) { | |
46603 | size_t shift = (ci->ptype) - types; | |
46604 | swig_type_info *ty = types_initial[shift]; | |
46605 | size_t ldoc = (c - methods[i].ml_doc); | |
46606 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
46607 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
46608 | char *buff = ndoc; | |
46609 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
46610 | strncpy(buff, methods[i].ml_doc, ldoc); | |
46611 | buff += ldoc; | |
46612 | strncpy(buff, "swig_ptr: ", 10); | |
46613 | buff += 10; | |
46614 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
46615 | methods[i].ml_doc = ndoc; | |
46616 | } | |
46617 | } | |
46618 | } | |
46619 | } | |
46620 | ||
46621 | /* -----------------------------------------------------------------------------* | |
46622 | * Initialize type list | |
46623 | * -----------------------------------------------------------------------------*/ | |
46624 | ||
46625 | #if PY_MAJOR_VERSION < 2 | |
46626 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
46627 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
46628 | static int | |
46629 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
46630 | { | |
46631 | PyObject *dict; | |
46632 | if (!PyModule_Check(m)) { | |
46633 | PyErr_SetString(PyExc_TypeError, | |
46634 | "PyModule_AddObject() needs module as first arg"); | |
46635 | return -1; | |
46636 | } | |
46637 | if (!o) { | |
46638 | PyErr_SetString(PyExc_TypeError, | |
46639 | "PyModule_AddObject() needs non-NULL value"); | |
46640 | return -1; | |
46641 | } | |
46642 | ||
46643 | dict = PyModule_GetDict(m); | |
46644 | if (dict == NULL) { | |
46645 | /* Internal error -- modules must have a dict! */ | |
46646 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
46647 | PyModule_GetName(m)); | |
46648 | return -1; | |
46649 | } | |
46650 | if (PyDict_SetItemString(dict, name, o)) | |
46651 | return -1; | |
46652 | Py_DECREF(o); | |
46653 | return 0; | |
46654 | } | |
46655 | #endif | |
46656 | ||
46657 | static swig_type_info ** | |
46658 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
46659 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
46660 | { | |
46661 | NULL, NULL, 0, NULL | |
46662 | } | |
46663 | };/* Sentinel */ | |
46664 | ||
46665 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
46666 | swig_empty_runtime_method_table); | |
46667 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
46668 | if (pointer && module) { | |
46669 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
46670 | } | |
46671 | return type_list_handle; | |
46672 | } | |
46673 | ||
46674 | static swig_type_info ** | |
46675 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
46676 | swig_type_info **type_pointer; | |
46677 | ||
46678 | /* first check if module already created */ | |
46679 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
46680 | if (type_pointer) { | |
46681 | return type_pointer; | |
46682 | } else { | |
46683 | /* create a new module and variable */ | |
46684 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
46685 | } | |
46686 | } | |
46687 | ||
46688 | #ifdef __cplusplus | |
46689 | } | |
46690 | #endif | |
46691 | ||
46692 | /* -----------------------------------------------------------------------------* | |
46693 | * Partial Init method | |
46694 | * -----------------------------------------------------------------------------*/ | |
46695 | ||
46696 | #ifdef SWIG_LINK_RUNTIME | |
46697 | #ifdef __cplusplus | |
46698 | extern "C" | |
46699 | #endif | |
46700 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
46701 | #endif | |
46702 | ||
d55e5bfc RD |
46703 | #ifdef __cplusplus |
46704 | extern "C" | |
46705 | #endif | |
46706 | SWIGEXPORT(void) SWIG_init(void) { | |
46707 | static PyObject *SWIG_globals = 0; | |
46708 | static int typeinit = 0; | |
46709 | PyObject *m, *d; | |
46710 | int i; | |
46711 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
46712 | |
46713 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
46714 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
46715 | ||
d55e5bfc RD |
46716 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
46717 | d = PyModule_GetDict(m); | |
46718 | ||
46719 | if (!typeinit) { | |
093d3ff1 RD |
46720 | #ifdef SWIG_LINK_RUNTIME |
46721 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
46722 | #else | |
46723 | # ifndef SWIG_STATIC_RUNTIME | |
46724 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
46725 | # endif | |
46726 | #endif | |
d55e5bfc RD |
46727 | for (i = 0; swig_types_initial[i]; i++) { |
46728 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
46729 | } | |
46730 | typeinit = 1; | |
46731 | } | |
46732 | SWIG_InstallConstants(d,swig_const_table); | |
46733 | ||
46734 | ||
46735 | #ifndef wxPyUSE_EXPORT | |
46736 | // Make our API structure a CObject so other modules can import it | |
46737 | // from this module. | |
46738 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
46739 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
46740 | Py_XDECREF(cobj); | |
46741 | #endif | |
46742 | ||
093d3ff1 RD |
46743 | { |
46744 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)(wxNOT_FOUND))); | |
46745 | } | |
46746 | { | |
46747 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)(wxVSCROLL))); | |
46748 | } | |
46749 | { | |
46750 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)(wxHSCROLL))); | |
46751 | } | |
46752 | { | |
46753 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)(wxCAPTION))); | |
46754 | } | |
46755 | { | |
46756 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)(wxDOUBLE_BORDER))); | |
46757 | } | |
46758 | { | |
46759 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)(wxSUNKEN_BORDER))); | |
46760 | } | |
46761 | { | |
46762 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)(wxRAISED_BORDER))); | |
46763 | } | |
46764 | { | |
46765 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)(wxBORDER))); | |
46766 | } | |
46767 | { | |
46768 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)(wxSIMPLE_BORDER))); | |
46769 | } | |
46770 | { | |
46771 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)(wxSTATIC_BORDER))); | |
46772 | } | |
46773 | { | |
46774 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)(wxTRANSPARENT_WINDOW))); | |
46775 | } | |
46776 | { | |
46777 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)(wxNO_BORDER))); | |
46778 | } | |
46779 | { | |
46780 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)(wxTAB_TRAVERSAL))); | |
46781 | } | |
46782 | { | |
46783 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)(wxWANTS_CHARS))); | |
46784 | } | |
46785 | { | |
46786 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)(wxPOPUP_WINDOW))); | |
46787 | } | |
46788 | { | |
46789 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)(wxCENTER_FRAME))); | |
46790 | } | |
46791 | { | |
46792 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)(wxCENTRE_ON_SCREEN))); | |
46793 | } | |
46794 | { | |
46795 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)(wxCENTER_ON_SCREEN))); | |
46796 | } | |
46797 | { | |
46798 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)(wxED_CLIENT_MARGIN))); | |
46799 | } | |
46800 | { | |
46801 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)(wxED_BUTTONS_BOTTOM))); | |
46802 | } | |
46803 | { | |
46804 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)(wxED_BUTTONS_RIGHT))); | |
46805 | } | |
46806 | { | |
46807 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)(wxED_STATIC_LINE))); | |
46808 | } | |
46809 | { | |
46810 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)(wxEXT_DIALOG_STYLE))); | |
46811 | } | |
46812 | { | |
46813 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)(wxCLIP_CHILDREN))); | |
46814 | } | |
46815 | { | |
46816 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)(wxCLIP_SIBLINGS))); | |
46817 | } | |
46818 | { | |
46819 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)(wxALWAYS_SHOW_SB))); | |
46820 | } | |
46821 | { | |
46822 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)(wxRETAINED))); | |
46823 | } | |
46824 | { | |
46825 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)(wxBACKINGSTORE))); | |
46826 | } | |
46827 | { | |
46828 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)(wxCOLOURED))); | |
46829 | } | |
46830 | { | |
46831 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)(wxFIXED_LENGTH))); | |
46832 | } | |
46833 | { | |
46834 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)(wxLB_NEEDED_SB))); | |
46835 | } | |
46836 | { | |
46837 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)(wxLB_ALWAYS_SB))); | |
46838 | } | |
46839 | { | |
46840 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)(wxLB_SORT))); | |
46841 | } | |
46842 | { | |
46843 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)(wxLB_SINGLE))); | |
46844 | } | |
46845 | { | |
46846 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)(wxLB_MULTIPLE))); | |
46847 | } | |
46848 | { | |
46849 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)(wxLB_EXTENDED))); | |
46850 | } | |
46851 | { | |
46852 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)(wxLB_OWNERDRAW))); | |
46853 | } | |
46854 | { | |
46855 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)(wxLB_HSCROLL))); | |
46856 | } | |
46857 | { | |
46858 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)(wxPROCESS_ENTER))); | |
46859 | } | |
46860 | { | |
46861 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)(wxPASSWORD))); | |
46862 | } | |
46863 | { | |
46864 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)(wxCB_SIMPLE))); | |
46865 | } | |
46866 | { | |
46867 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)(wxCB_DROPDOWN))); | |
46868 | } | |
46869 | { | |
46870 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)(wxCB_SORT))); | |
46871 | } | |
46872 | { | |
46873 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)(wxCB_READONLY))); | |
46874 | } | |
46875 | { | |
46876 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)(wxRA_HORIZONTAL))); | |
46877 | } | |
46878 | { | |
46879 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)(wxRA_VERTICAL))); | |
46880 | } | |
46881 | { | |
46882 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)(wxRA_SPECIFY_ROWS))); | |
46883 | } | |
46884 | { | |
46885 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)(wxRA_SPECIFY_COLS))); | |
46886 | } | |
46887 | { | |
fef4c27a | 46888 | PyDict_SetItemString(d,"RA_USE_CHECKBOX", SWIG_From_int((int)(wxRA_USE_CHECKBOX))); |
093d3ff1 RD |
46889 | } |
46890 | { | |
fef4c27a | 46891 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)(wxRB_GROUP))); |
093d3ff1 RD |
46892 | } |
46893 | { | |
fef4c27a | 46894 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)(wxRB_SINGLE))); |
093d3ff1 RD |
46895 | } |
46896 | { | |
46897 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)(wxSB_HORIZONTAL))); | |
46898 | } | |
46899 | { | |
46900 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)(wxSB_VERTICAL))); | |
46901 | } | |
fef4c27a RD |
46902 | { |
46903 | PyDict_SetItemString(d,"RB_USE_CHECKBOX", SWIG_From_int((int)(wxRB_USE_CHECKBOX))); | |
46904 | } | |
093d3ff1 RD |
46905 | { |
46906 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)(wxST_SIZEGRIP))); | |
46907 | } | |
46908 | { | |
46909 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)(wxST_NO_AUTORESIZE))); | |
46910 | } | |
46911 | { | |
46912 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)(wxFLOOD_SURFACE))); | |
46913 | } | |
46914 | { | |
46915 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)(wxFLOOD_BORDER))); | |
46916 | } | |
46917 | { | |
46918 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)(wxODDEVEN_RULE))); | |
46919 | } | |
46920 | { | |
46921 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)(wxWINDING_RULE))); | |
46922 | } | |
46923 | { | |
46924 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)(wxTOOL_TOP))); | |
46925 | } | |
46926 | { | |
46927 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)(wxTOOL_BOTTOM))); | |
46928 | } | |
46929 | { | |
46930 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)(wxTOOL_LEFT))); | |
46931 | } | |
46932 | { | |
46933 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)(wxTOOL_RIGHT))); | |
46934 | } | |
46935 | { | |
46936 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)(wxOK))); | |
46937 | } | |
46938 | { | |
46939 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)(wxYES_NO))); | |
46940 | } | |
46941 | { | |
46942 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)(wxCANCEL))); | |
46943 | } | |
46944 | { | |
46945 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)(wxYES))); | |
46946 | } | |
46947 | { | |
46948 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)(wxNO))); | |
46949 | } | |
46950 | { | |
46951 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)(wxNO_DEFAULT))); | |
46952 | } | |
46953 | { | |
46954 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)(wxYES_DEFAULT))); | |
46955 | } | |
46956 | { | |
46957 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)(wxICON_EXCLAMATION))); | |
46958 | } | |
46959 | { | |
46960 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)(wxICON_HAND))); | |
46961 | } | |
46962 | { | |
46963 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)(wxICON_QUESTION))); | |
46964 | } | |
46965 | { | |
46966 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)(wxICON_INFORMATION))); | |
46967 | } | |
46968 | { | |
46969 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)(wxICON_STOP))); | |
46970 | } | |
46971 | { | |
46972 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)(wxICON_ASTERISK))); | |
46973 | } | |
46974 | { | |
46975 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)(wxICON_MASK))); | |
46976 | } | |
46977 | { | |
46978 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)(wxICON_WARNING))); | |
46979 | } | |
46980 | { | |
46981 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)(wxICON_ERROR))); | |
46982 | } | |
46983 | { | |
46984 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)(wxFORWARD))); | |
46985 | } | |
46986 | { | |
46987 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)(wxBACKWARD))); | |
46988 | } | |
46989 | { | |
46990 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)(wxRESET))); | |
46991 | } | |
46992 | { | |
46993 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)(wxHELP))); | |
46994 | } | |
46995 | { | |
46996 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)(wxMORE))); | |
46997 | } | |
46998 | { | |
46999 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)(wxSETUP))); | |
47000 | } | |
47001 | { | |
47002 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)(wxSIZE_AUTO_WIDTH))); | |
47003 | } | |
47004 | { | |
47005 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)(wxSIZE_AUTO_HEIGHT))); | |
47006 | } | |
47007 | { | |
47008 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)(wxSIZE_AUTO))); | |
47009 | } | |
47010 | { | |
47011 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)(wxSIZE_USE_EXISTING))); | |
47012 | } | |
47013 | { | |
47014 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)(wxSIZE_ALLOW_MINUS_ONE))); | |
47015 | } | |
47016 | { | |
47017 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)(wxPORTRAIT))); | |
47018 | } | |
47019 | { | |
47020 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)(wxLANDSCAPE))); | |
47021 | } | |
47022 | { | |
47023 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)(wxPRINT_QUALITY_HIGH))); | |
47024 | } | |
47025 | { | |
47026 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)(wxPRINT_QUALITY_MEDIUM))); | |
47027 | } | |
47028 | { | |
47029 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)(wxPRINT_QUALITY_LOW))); | |
47030 | } | |
47031 | { | |
47032 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)(wxPRINT_QUALITY_DRAFT))); | |
47033 | } | |
47034 | { | |
47035 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)(wxID_ANY))); | |
47036 | } | |
47037 | { | |
47038 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)(wxID_SEPARATOR))); | |
47039 | } | |
47040 | { | |
47041 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)(wxID_LOWEST))); | |
47042 | } | |
47043 | { | |
47044 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)(wxID_OPEN))); | |
47045 | } | |
47046 | { | |
47047 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)(wxID_CLOSE))); | |
47048 | } | |
47049 | { | |
47050 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)(wxID_NEW))); | |
47051 | } | |
47052 | { | |
47053 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)(wxID_SAVE))); | |
47054 | } | |
47055 | { | |
47056 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)(wxID_SAVEAS))); | |
47057 | } | |
47058 | { | |
47059 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)(wxID_REVERT))); | |
47060 | } | |
47061 | { | |
47062 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)(wxID_EXIT))); | |
47063 | } | |
47064 | { | |
47065 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)(wxID_UNDO))); | |
47066 | } | |
47067 | { | |
47068 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)(wxID_REDO))); | |
47069 | } | |
47070 | { | |
47071 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)(wxID_HELP))); | |
47072 | } | |
47073 | { | |
47074 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)(wxID_PRINT))); | |
47075 | } | |
47076 | { | |
47077 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)(wxID_PRINT_SETUP))); | |
47078 | } | |
47079 | { | |
47080 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)(wxID_PREVIEW))); | |
47081 | } | |
47082 | { | |
47083 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)(wxID_ABOUT))); | |
47084 | } | |
47085 | { | |
47086 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)(wxID_HELP_CONTENTS))); | |
47087 | } | |
47088 | { | |
47089 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)(wxID_HELP_COMMANDS))); | |
47090 | } | |
47091 | { | |
47092 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)(wxID_HELP_PROCEDURES))); | |
47093 | } | |
47094 | { | |
47095 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)(wxID_HELP_CONTEXT))); | |
47096 | } | |
47097 | { | |
47098 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)(wxID_CLOSE_ALL))); | |
47099 | } | |
47100 | { | |
47101 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)(wxID_PREFERENCES))); | |
47102 | } | |
47103 | { | |
47104 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)(wxID_CUT))); | |
47105 | } | |
47106 | { | |
47107 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)(wxID_COPY))); | |
47108 | } | |
47109 | { | |
47110 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)(wxID_PASTE))); | |
47111 | } | |
47112 | { | |
47113 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)(wxID_CLEAR))); | |
47114 | } | |
47115 | { | |
47116 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)(wxID_FIND))); | |
47117 | } | |
47118 | { | |
47119 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)(wxID_DUPLICATE))); | |
47120 | } | |
47121 | { | |
47122 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)(wxID_SELECTALL))); | |
47123 | } | |
47124 | { | |
47125 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)(wxID_DELETE))); | |
47126 | } | |
47127 | { | |
47128 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)(wxID_REPLACE))); | |
47129 | } | |
47130 | { | |
47131 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)(wxID_REPLACE_ALL))); | |
47132 | } | |
47133 | { | |
47134 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)(wxID_PROPERTIES))); | |
47135 | } | |
47136 | { | |
47137 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)(wxID_VIEW_DETAILS))); | |
47138 | } | |
47139 | { | |
47140 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)(wxID_VIEW_LARGEICONS))); | |
47141 | } | |
47142 | { | |
47143 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)(wxID_VIEW_SMALLICONS))); | |
47144 | } | |
47145 | { | |
47146 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)(wxID_VIEW_LIST))); | |
47147 | } | |
47148 | { | |
47149 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)(wxID_VIEW_SORTDATE))); | |
47150 | } | |
47151 | { | |
47152 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)(wxID_VIEW_SORTNAME))); | |
47153 | } | |
47154 | { | |
47155 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)(wxID_VIEW_SORTSIZE))); | |
47156 | } | |
47157 | { | |
47158 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)(wxID_VIEW_SORTTYPE))); | |
47159 | } | |
47160 | { | |
47161 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)(wxID_FILE1))); | |
47162 | } | |
47163 | { | |
47164 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)(wxID_FILE2))); | |
47165 | } | |
47166 | { | |
47167 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)(wxID_FILE3))); | |
47168 | } | |
47169 | { | |
47170 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)(wxID_FILE4))); | |
47171 | } | |
47172 | { | |
47173 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)(wxID_FILE5))); | |
47174 | } | |
47175 | { | |
47176 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)(wxID_FILE6))); | |
47177 | } | |
47178 | { | |
47179 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)(wxID_FILE7))); | |
47180 | } | |
47181 | { | |
47182 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)(wxID_FILE8))); | |
47183 | } | |
47184 | { | |
47185 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)(wxID_FILE9))); | |
47186 | } | |
47187 | { | |
47188 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)(wxID_OK))); | |
47189 | } | |
47190 | { | |
47191 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)(wxID_CANCEL))); | |
47192 | } | |
47193 | { | |
47194 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)(wxID_APPLY))); | |
47195 | } | |
47196 | { | |
47197 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)(wxID_YES))); | |
47198 | } | |
47199 | { | |
47200 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)(wxID_NO))); | |
47201 | } | |
47202 | { | |
47203 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)(wxID_STATIC))); | |
47204 | } | |
47205 | { | |
47206 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)(wxID_FORWARD))); | |
47207 | } | |
47208 | { | |
47209 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)(wxID_BACKWARD))); | |
47210 | } | |
47211 | { | |
47212 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)(wxID_DEFAULT))); | |
47213 | } | |
47214 | { | |
47215 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)(wxID_MORE))); | |
47216 | } | |
47217 | { | |
47218 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)(wxID_SETUP))); | |
47219 | } | |
47220 | { | |
47221 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)(wxID_RESET))); | |
47222 | } | |
47223 | { | |
47224 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)(wxID_CONTEXT_HELP))); | |
47225 | } | |
47226 | { | |
47227 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)(wxID_YESTOALL))); | |
47228 | } | |
47229 | { | |
47230 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)(wxID_NOTOALL))); | |
47231 | } | |
47232 | { | |
47233 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)(wxID_ABORT))); | |
47234 | } | |
47235 | { | |
47236 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)(wxID_RETRY))); | |
47237 | } | |
47238 | { | |
47239 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)(wxID_IGNORE))); | |
47240 | } | |
47241 | { | |
47242 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)(wxID_ADD))); | |
47243 | } | |
47244 | { | |
47245 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)(wxID_REMOVE))); | |
47246 | } | |
47247 | { | |
47248 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)(wxID_UP))); | |
47249 | } | |
47250 | { | |
47251 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)(wxID_DOWN))); | |
47252 | } | |
47253 | { | |
47254 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)(wxID_HOME))); | |
47255 | } | |
47256 | { | |
47257 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)(wxID_REFRESH))); | |
47258 | } | |
47259 | { | |
47260 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)(wxID_STOP))); | |
47261 | } | |
47262 | { | |
47263 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)(wxID_INDEX))); | |
47264 | } | |
47265 | { | |
47266 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)(wxID_BOLD))); | |
47267 | } | |
47268 | { | |
47269 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)(wxID_ITALIC))); | |
47270 | } | |
47271 | { | |
47272 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)(wxID_JUSTIFY_CENTER))); | |
47273 | } | |
47274 | { | |
47275 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)(wxID_JUSTIFY_FILL))); | |
47276 | } | |
47277 | { | |
47278 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)(wxID_JUSTIFY_RIGHT))); | |
47279 | } | |
47280 | { | |
47281 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)(wxID_JUSTIFY_LEFT))); | |
47282 | } | |
47283 | { | |
47284 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)(wxID_UNDERLINE))); | |
47285 | } | |
47286 | { | |
47287 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)(wxID_INDENT))); | |
47288 | } | |
47289 | { | |
47290 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)(wxID_UNINDENT))); | |
47291 | } | |
47292 | { | |
47293 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)(wxID_ZOOM_100))); | |
47294 | } | |
47295 | { | |
47296 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)(wxID_ZOOM_FIT))); | |
47297 | } | |
47298 | { | |
47299 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)(wxID_ZOOM_IN))); | |
47300 | } | |
47301 | { | |
47302 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)(wxID_ZOOM_OUT))); | |
47303 | } | |
47304 | { | |
47305 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)(wxID_UNDELETE))); | |
47306 | } | |
47307 | { | |
47308 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)(wxID_REVERT_TO_SAVED))); | |
47309 | } | |
47310 | { | |
47311 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)(wxID_HIGHEST))); | |
47312 | } | |
47313 | { | |
47314 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)(wxOPEN))); | |
47315 | } | |
47316 | { | |
47317 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)(wxSAVE))); | |
47318 | } | |
47319 | { | |
47320 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)(wxHIDE_READONLY))); | |
47321 | } | |
47322 | { | |
47323 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)(wxOVERWRITE_PROMPT))); | |
47324 | } | |
47325 | { | |
47326 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)(wxFILE_MUST_EXIST))); | |
47327 | } | |
47328 | { | |
47329 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)(wxMULTIPLE))); | |
47330 | } | |
47331 | { | |
47332 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)(wxCHANGE_DIR))); | |
47333 | } | |
47334 | { | |
47335 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)(wxACCEL_ALT))); | |
47336 | } | |
47337 | { | |
47338 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)(wxACCEL_CTRL))); | |
47339 | } | |
47340 | { | |
47341 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)(wxACCEL_SHIFT))); | |
47342 | } | |
47343 | { | |
47344 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)(wxACCEL_NORMAL))); | |
47345 | } | |
47346 | { | |
47347 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)(wxPD_AUTO_HIDE))); | |
47348 | } | |
47349 | { | |
47350 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)(wxPD_APP_MODAL))); | |
47351 | } | |
47352 | { | |
47353 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)(wxPD_CAN_ABORT))); | |
47354 | } | |
47355 | { | |
47356 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)(wxPD_ELAPSED_TIME))); | |
47357 | } | |
47358 | { | |
47359 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)(wxPD_ESTIMATED_TIME))); | |
47360 | } | |
47361 | { | |
47362 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)(wxPD_REMAINING_TIME))); | |
47363 | } | |
62d32a5f RD |
47364 | { |
47365 | PyDict_SetItemString(d,"PD_SMOOTH", SWIG_From_int((int)(wxPD_SMOOTH))); | |
47366 | } | |
47367 | { | |
47368 | PyDict_SetItemString(d,"PD_CAN_SKIP", SWIG_From_int((int)(wxPD_CAN_SKIP))); | |
47369 | } | |
093d3ff1 RD |
47370 | { |
47371 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)(wxDD_NEW_DIR_BUTTON))); | |
47372 | } | |
47373 | { | |
47374 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)(wxDD_DEFAULT_STYLE))); | |
47375 | } | |
47376 | { | |
47377 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)(wxMENU_TEAROFF))); | |
47378 | } | |
47379 | { | |
47380 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)(wxMB_DOCKABLE))); | |
47381 | } | |
47382 | { | |
47383 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)(wxNO_FULL_REPAINT_ON_RESIZE))); | |
47384 | } | |
47385 | { | |
47386 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)(wxFULL_REPAINT_ON_RESIZE))); | |
47387 | } | |
47388 | { | |
47389 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)(wxLI_HORIZONTAL))); | |
47390 | } | |
47391 | { | |
47392 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)(wxLI_VERTICAL))); | |
47393 | } | |
47394 | { | |
47395 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)(wxWS_EX_VALIDATE_RECURSIVELY))); | |
47396 | } | |
47397 | { | |
47398 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)(wxWS_EX_BLOCK_EVENTS))); | |
47399 | } | |
47400 | { | |
47401 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)(wxWS_EX_TRANSIENT))); | |
47402 | } | |
47403 | { | |
47404 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)(wxWS_EX_THEMED_BACKGROUND))); | |
47405 | } | |
47406 | { | |
47407 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)(wxWS_EX_PROCESS_IDLE))); | |
47408 | } | |
47409 | { | |
47410 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)(wxWS_EX_PROCESS_UI_UPDATES))); | |
47411 | } | |
47412 | { | |
47413 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)(wxMM_TEXT))); | |
47414 | } | |
47415 | { | |
47416 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)(wxMM_LOMETRIC))); | |
47417 | } | |
47418 | { | |
47419 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)(wxMM_HIMETRIC))); | |
47420 | } | |
47421 | { | |
47422 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)(wxMM_LOENGLISH))); | |
47423 | } | |
47424 | { | |
47425 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)(wxMM_HIENGLISH))); | |
47426 | } | |
47427 | { | |
47428 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)(wxMM_TWIPS))); | |
47429 | } | |
47430 | { | |
47431 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)(wxMM_ISOTROPIC))); | |
47432 | } | |
47433 | { | |
47434 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)(wxMM_ANISOTROPIC))); | |
47435 | } | |
47436 | { | |
47437 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)(wxMM_POINTS))); | |
47438 | } | |
47439 | { | |
47440 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)(wxMM_METRIC))); | |
47441 | } | |
47442 | { | |
47443 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)(wxCENTRE))); | |
47444 | } | |
47445 | { | |
47446 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)(wxCENTER))); | |
47447 | } | |
47448 | { | |
47449 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)(wxHORIZONTAL))); | |
47450 | } | |
47451 | { | |
47452 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)(wxVERTICAL))); | |
47453 | } | |
47454 | { | |
47455 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)(wxBOTH))); | |
47456 | } | |
47457 | { | |
47458 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)(wxLEFT))); | |
47459 | } | |
47460 | { | |
47461 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)(wxRIGHT))); | |
47462 | } | |
47463 | { | |
47464 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)(wxUP))); | |
47465 | } | |
47466 | { | |
47467 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)(wxDOWN))); | |
47468 | } | |
47469 | { | |
47470 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)(wxTOP))); | |
47471 | } | |
47472 | { | |
47473 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)(wxBOTTOM))); | |
47474 | } | |
47475 | { | |
47476 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)(wxNORTH))); | |
47477 | } | |
47478 | { | |
47479 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)(wxSOUTH))); | |
47480 | } | |
47481 | { | |
47482 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)(wxWEST))); | |
47483 | } | |
47484 | { | |
47485 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)(wxEAST))); | |
47486 | } | |
47487 | { | |
47488 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)(wxALL))); | |
47489 | } | |
47490 | { | |
47491 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)(wxALIGN_NOT))); | |
47492 | } | |
47493 | { | |
47494 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)(wxALIGN_CENTER_HORIZONTAL))); | |
47495 | } | |
47496 | { | |
47497 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)(wxALIGN_CENTRE_HORIZONTAL))); | |
47498 | } | |
47499 | { | |
47500 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)(wxALIGN_LEFT))); | |
47501 | } | |
47502 | { | |
47503 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)(wxALIGN_TOP))); | |
47504 | } | |
47505 | { | |
47506 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)(wxALIGN_RIGHT))); | |
47507 | } | |
47508 | { | |
47509 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)(wxALIGN_BOTTOM))); | |
47510 | } | |
47511 | { | |
47512 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)(wxALIGN_CENTER_VERTICAL))); | |
47513 | } | |
47514 | { | |
47515 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)(wxALIGN_CENTRE_VERTICAL))); | |
47516 | } | |
47517 | { | |
47518 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)(wxALIGN_CENTER))); | |
47519 | } | |
47520 | { | |
47521 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)(wxALIGN_CENTRE))); | |
47522 | } | |
47523 | { | |
47524 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)(wxALIGN_MASK))); | |
47525 | } | |
47526 | { | |
47527 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)(wxSTRETCH_NOT))); | |
47528 | } | |
47529 | { | |
47530 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)(wxSHRINK))); | |
47531 | } | |
47532 | { | |
47533 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)(wxGROW))); | |
47534 | } | |
47535 | { | |
47536 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)(wxEXPAND))); | |
47537 | } | |
47538 | { | |
47539 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)(wxSHAPED))); | |
47540 | } | |
47541 | { | |
47542 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)(wxFIXED_MINSIZE))); | |
47543 | } | |
47544 | { | |
47545 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)(wxTILE))); | |
47546 | } | |
47547 | { | |
47548 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)(wxADJUST_MINSIZE))); | |
47549 | } | |
47550 | { | |
47551 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)(wxBORDER_DEFAULT))); | |
47552 | } | |
47553 | { | |
47554 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)(wxBORDER_NONE))); | |
47555 | } | |
47556 | { | |
47557 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)(wxBORDER_STATIC))); | |
47558 | } | |
47559 | { | |
47560 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)(wxBORDER_SIMPLE))); | |
47561 | } | |
47562 | { | |
47563 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)(wxBORDER_RAISED))); | |
47564 | } | |
47565 | { | |
47566 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)(wxBORDER_SUNKEN))); | |
47567 | } | |
47568 | { | |
47569 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)(wxBORDER_DOUBLE))); | |
47570 | } | |
47571 | { | |
47572 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)(wxBORDER_MASK))); | |
47573 | } | |
47574 | { | |
47575 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)(wxBG_STYLE_SYSTEM))); | |
47576 | } | |
47577 | { | |
47578 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)(wxBG_STYLE_COLOUR))); | |
47579 | } | |
47580 | { | |
47581 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)(wxBG_STYLE_CUSTOM))); | |
47582 | } | |
47583 | { | |
47584 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)(wxDEFAULT))); | |
47585 | } | |
47586 | { | |
47587 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)(wxDECORATIVE))); | |
47588 | } | |
47589 | { | |
47590 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)(wxROMAN))); | |
47591 | } | |
47592 | { | |
47593 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)(wxSCRIPT))); | |
47594 | } | |
47595 | { | |
47596 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)(wxSWISS))); | |
47597 | } | |
47598 | { | |
47599 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)(wxMODERN))); | |
47600 | } | |
47601 | { | |
47602 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)(wxTELETYPE))); | |
47603 | } | |
47604 | { | |
47605 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)(wxVARIABLE))); | |
47606 | } | |
47607 | { | |
47608 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)(wxFIXED))); | |
47609 | } | |
47610 | { | |
47611 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)(wxNORMAL))); | |
47612 | } | |
47613 | { | |
47614 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)(wxLIGHT))); | |
47615 | } | |
47616 | { | |
47617 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)(wxBOLD))); | |
47618 | } | |
47619 | { | |
47620 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)(wxITALIC))); | |
47621 | } | |
47622 | { | |
47623 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)(wxSLANT))); | |
47624 | } | |
47625 | { | |
47626 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)(wxSOLID))); | |
47627 | } | |
47628 | { | |
47629 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)(wxDOT))); | |
47630 | } | |
47631 | { | |
47632 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)(wxLONG_DASH))); | |
47633 | } | |
47634 | { | |
47635 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)(wxSHORT_DASH))); | |
47636 | } | |
47637 | { | |
47638 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)(wxDOT_DASH))); | |
47639 | } | |
47640 | { | |
47641 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)(wxUSER_DASH))); | |
47642 | } | |
47643 | { | |
47644 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)(wxTRANSPARENT))); | |
47645 | } | |
47646 | { | |
47647 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)(wxSTIPPLE))); | |
47648 | } | |
47649 | { | |
47650 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)(wxBDIAGONAL_HATCH))); | |
47651 | } | |
47652 | { | |
47653 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)(wxCROSSDIAG_HATCH))); | |
47654 | } | |
47655 | { | |
47656 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)(wxFDIAGONAL_HATCH))); | |
47657 | } | |
47658 | { | |
47659 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)(wxCROSS_HATCH))); | |
47660 | } | |
47661 | { | |
47662 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)(wxHORIZONTAL_HATCH))); | |
47663 | } | |
47664 | { | |
47665 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)(wxVERTICAL_HATCH))); | |
47666 | } | |
47667 | { | |
47668 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)(wxJOIN_BEVEL))); | |
47669 | } | |
47670 | { | |
47671 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)(wxJOIN_MITER))); | |
47672 | } | |
47673 | { | |
47674 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)(wxJOIN_ROUND))); | |
47675 | } | |
47676 | { | |
47677 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)(wxCAP_ROUND))); | |
47678 | } | |
47679 | { | |
47680 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)(wxCAP_PROJECTING))); | |
47681 | } | |
47682 | { | |
47683 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)(wxCAP_BUTT))); | |
47684 | } | |
47685 | { | |
47686 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)(wxCLEAR))); | |
47687 | } | |
47688 | { | |
47689 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)(wxXOR))); | |
47690 | } | |
47691 | { | |
47692 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)(wxINVERT))); | |
47693 | } | |
47694 | { | |
47695 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)(wxOR_REVERSE))); | |
47696 | } | |
47697 | { | |
47698 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)(wxAND_REVERSE))); | |
47699 | } | |
47700 | { | |
47701 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)(wxCOPY))); | |
47702 | } | |
47703 | { | |
47704 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)(wxAND))); | |
47705 | } | |
47706 | { | |
47707 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)(wxAND_INVERT))); | |
47708 | } | |
47709 | { | |
47710 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)(wxNO_OP))); | |
47711 | } | |
47712 | { | |
47713 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)(wxNOR))); | |
47714 | } | |
47715 | { | |
47716 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)(wxEQUIV))); | |
47717 | } | |
47718 | { | |
47719 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)(wxSRC_INVERT))); | |
47720 | } | |
47721 | { | |
47722 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)(wxOR_INVERT))); | |
47723 | } | |
47724 | { | |
47725 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)(wxNAND))); | |
47726 | } | |
47727 | { | |
47728 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)(wxOR))); | |
47729 | } | |
47730 | { | |
47731 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)(wxSET))); | |
47732 | } | |
47733 | { | |
47734 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)(WXK_BACK))); | |
47735 | } | |
47736 | { | |
47737 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)(WXK_TAB))); | |
47738 | } | |
47739 | { | |
47740 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)(WXK_RETURN))); | |
47741 | } | |
47742 | { | |
47743 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)(WXK_ESCAPE))); | |
47744 | } | |
47745 | { | |
47746 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)(WXK_SPACE))); | |
47747 | } | |
47748 | { | |
47749 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)(WXK_DELETE))); | |
47750 | } | |
47751 | { | |
47752 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)(WXK_START))); | |
47753 | } | |
47754 | { | |
47755 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)(WXK_LBUTTON))); | |
47756 | } | |
47757 | { | |
47758 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)(WXK_RBUTTON))); | |
47759 | } | |
47760 | { | |
47761 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)(WXK_CANCEL))); | |
47762 | } | |
47763 | { | |
47764 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)(WXK_MBUTTON))); | |
47765 | } | |
47766 | { | |
47767 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)(WXK_CLEAR))); | |
47768 | } | |
47769 | { | |
47770 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)(WXK_SHIFT))); | |
47771 | } | |
47772 | { | |
47773 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)(WXK_ALT))); | |
47774 | } | |
47775 | { | |
47776 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)(WXK_CONTROL))); | |
47777 | } | |
47778 | { | |
47779 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)(WXK_MENU))); | |
47780 | } | |
47781 | { | |
47782 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)(WXK_PAUSE))); | |
47783 | } | |
47784 | { | |
47785 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)(WXK_CAPITAL))); | |
47786 | } | |
47787 | { | |
47788 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)(WXK_PRIOR))); | |
47789 | } | |
47790 | { | |
47791 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)(WXK_NEXT))); | |
47792 | } | |
47793 | { | |
47794 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)(WXK_END))); | |
47795 | } | |
47796 | { | |
47797 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)(WXK_HOME))); | |
47798 | } | |
47799 | { | |
47800 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)(WXK_LEFT))); | |
47801 | } | |
47802 | { | |
47803 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)(WXK_UP))); | |
47804 | } | |
47805 | { | |
47806 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)(WXK_RIGHT))); | |
47807 | } | |
47808 | { | |
47809 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)(WXK_DOWN))); | |
47810 | } | |
47811 | { | |
47812 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)(WXK_SELECT))); | |
47813 | } | |
47814 | { | |
47815 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)(WXK_PRINT))); | |
47816 | } | |
47817 | { | |
47818 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)(WXK_EXECUTE))); | |
47819 | } | |
47820 | { | |
47821 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)(WXK_SNAPSHOT))); | |
47822 | } | |
47823 | { | |
47824 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)(WXK_INSERT))); | |
47825 | } | |
47826 | { | |
47827 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)(WXK_HELP))); | |
47828 | } | |
47829 | { | |
47830 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)(WXK_NUMPAD0))); | |
47831 | } | |
47832 | { | |
47833 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)(WXK_NUMPAD1))); | |
47834 | } | |
47835 | { | |
47836 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)(WXK_NUMPAD2))); | |
47837 | } | |
47838 | { | |
47839 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)(WXK_NUMPAD3))); | |
47840 | } | |
47841 | { | |
47842 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)(WXK_NUMPAD4))); | |
47843 | } | |
47844 | { | |
47845 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)(WXK_NUMPAD5))); | |
47846 | } | |
47847 | { | |
47848 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)(WXK_NUMPAD6))); | |
47849 | } | |
47850 | { | |
47851 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)(WXK_NUMPAD7))); | |
47852 | } | |
47853 | { | |
47854 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)(WXK_NUMPAD8))); | |
47855 | } | |
47856 | { | |
47857 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)(WXK_NUMPAD9))); | |
47858 | } | |
47859 | { | |
47860 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)(WXK_MULTIPLY))); | |
47861 | } | |
47862 | { | |
47863 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)(WXK_ADD))); | |
47864 | } | |
47865 | { | |
47866 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)(WXK_SEPARATOR))); | |
47867 | } | |
47868 | { | |
47869 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)(WXK_SUBTRACT))); | |
47870 | } | |
47871 | { | |
47872 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)(WXK_DECIMAL))); | |
47873 | } | |
47874 | { | |
47875 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)(WXK_DIVIDE))); | |
47876 | } | |
47877 | { | |
47878 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)(WXK_F1))); | |
47879 | } | |
47880 | { | |
47881 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)(WXK_F2))); | |
47882 | } | |
47883 | { | |
47884 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)(WXK_F3))); | |
47885 | } | |
47886 | { | |
47887 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)(WXK_F4))); | |
47888 | } | |
47889 | { | |
47890 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)(WXK_F5))); | |
47891 | } | |
47892 | { | |
47893 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)(WXK_F6))); | |
47894 | } | |
47895 | { | |
47896 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)(WXK_F7))); | |
47897 | } | |
47898 | { | |
47899 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)(WXK_F8))); | |
47900 | } | |
47901 | { | |
47902 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)(WXK_F9))); | |
47903 | } | |
47904 | { | |
47905 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)(WXK_F10))); | |
47906 | } | |
47907 | { | |
47908 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)(WXK_F11))); | |
47909 | } | |
47910 | { | |
47911 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)(WXK_F12))); | |
47912 | } | |
47913 | { | |
47914 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)(WXK_F13))); | |
47915 | } | |
47916 | { | |
47917 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)(WXK_F14))); | |
47918 | } | |
47919 | { | |
47920 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)(WXK_F15))); | |
47921 | } | |
47922 | { | |
47923 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)(WXK_F16))); | |
47924 | } | |
47925 | { | |
47926 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)(WXK_F17))); | |
47927 | } | |
47928 | { | |
47929 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)(WXK_F18))); | |
47930 | } | |
47931 | { | |
47932 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)(WXK_F19))); | |
47933 | } | |
47934 | { | |
47935 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)(WXK_F20))); | |
47936 | } | |
47937 | { | |
47938 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)(WXK_F21))); | |
47939 | } | |
47940 | { | |
47941 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)(WXK_F22))); | |
47942 | } | |
47943 | { | |
47944 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)(WXK_F23))); | |
47945 | } | |
47946 | { | |
47947 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)(WXK_F24))); | |
47948 | } | |
47949 | { | |
47950 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)(WXK_NUMLOCK))); | |
47951 | } | |
47952 | { | |
47953 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)(WXK_SCROLL))); | |
47954 | } | |
47955 | { | |
47956 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)(WXK_PAGEUP))); | |
47957 | } | |
47958 | { | |
47959 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)(WXK_PAGEDOWN))); | |
47960 | } | |
47961 | { | |
47962 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)(WXK_NUMPAD_SPACE))); | |
47963 | } | |
47964 | { | |
47965 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)(WXK_NUMPAD_TAB))); | |
47966 | } | |
47967 | { | |
47968 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)(WXK_NUMPAD_ENTER))); | |
47969 | } | |
47970 | { | |
47971 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)(WXK_NUMPAD_F1))); | |
47972 | } | |
47973 | { | |
47974 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)(WXK_NUMPAD_F2))); | |
47975 | } | |
47976 | { | |
47977 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)(WXK_NUMPAD_F3))); | |
47978 | } | |
47979 | { | |
47980 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)(WXK_NUMPAD_F4))); | |
47981 | } | |
47982 | { | |
47983 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)(WXK_NUMPAD_HOME))); | |
47984 | } | |
47985 | { | |
47986 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)(WXK_NUMPAD_LEFT))); | |
47987 | } | |
47988 | { | |
47989 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)(WXK_NUMPAD_UP))); | |
47990 | } | |
47991 | { | |
47992 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)(WXK_NUMPAD_RIGHT))); | |
47993 | } | |
47994 | { | |
47995 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)(WXK_NUMPAD_DOWN))); | |
47996 | } | |
47997 | { | |
47998 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)(WXK_NUMPAD_PRIOR))); | |
47999 | } | |
48000 | { | |
48001 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)(WXK_NUMPAD_PAGEUP))); | |
48002 | } | |
48003 | { | |
48004 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)(WXK_NUMPAD_NEXT))); | |
48005 | } | |
48006 | { | |
48007 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)(WXK_NUMPAD_PAGEDOWN))); | |
48008 | } | |
48009 | { | |
48010 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)(WXK_NUMPAD_END))); | |
48011 | } | |
48012 | { | |
48013 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)(WXK_NUMPAD_BEGIN))); | |
48014 | } | |
48015 | { | |
48016 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)(WXK_NUMPAD_INSERT))); | |
48017 | } | |
48018 | { | |
48019 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)(WXK_NUMPAD_DELETE))); | |
48020 | } | |
48021 | { | |
48022 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)(WXK_NUMPAD_EQUAL))); | |
48023 | } | |
48024 | { | |
48025 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)(WXK_NUMPAD_MULTIPLY))); | |
48026 | } | |
48027 | { | |
48028 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)(WXK_NUMPAD_ADD))); | |
48029 | } | |
48030 | { | |
48031 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)(WXK_NUMPAD_SEPARATOR))); | |
48032 | } | |
48033 | { | |
48034 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)(WXK_NUMPAD_SUBTRACT))); | |
48035 | } | |
48036 | { | |
48037 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)(WXK_NUMPAD_DECIMAL))); | |
48038 | } | |
48039 | { | |
48040 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)(WXK_NUMPAD_DIVIDE))); | |
48041 | } | |
48042 | { | |
48043 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)(WXK_WINDOWS_LEFT))); | |
48044 | } | |
48045 | { | |
48046 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)(WXK_WINDOWS_RIGHT))); | |
48047 | } | |
48048 | { | |
48049 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)(WXK_WINDOWS_MENU))); | |
48050 | } | |
48051 | { | |
48052 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)(wxPAPER_NONE))); | |
48053 | } | |
48054 | { | |
48055 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)(wxPAPER_LETTER))); | |
48056 | } | |
48057 | { | |
48058 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)(wxPAPER_LEGAL))); | |
48059 | } | |
48060 | { | |
48061 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)(wxPAPER_A4))); | |
48062 | } | |
48063 | { | |
48064 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)(wxPAPER_CSHEET))); | |
48065 | } | |
48066 | { | |
48067 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)(wxPAPER_DSHEET))); | |
48068 | } | |
48069 | { | |
48070 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)(wxPAPER_ESHEET))); | |
48071 | } | |
48072 | { | |
48073 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)(wxPAPER_LETTERSMALL))); | |
48074 | } | |
48075 | { | |
48076 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)(wxPAPER_TABLOID))); | |
48077 | } | |
48078 | { | |
48079 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)(wxPAPER_LEDGER))); | |
48080 | } | |
48081 | { | |
48082 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)(wxPAPER_STATEMENT))); | |
48083 | } | |
48084 | { | |
48085 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)(wxPAPER_EXECUTIVE))); | |
48086 | } | |
48087 | { | |
48088 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)(wxPAPER_A3))); | |
48089 | } | |
48090 | { | |
48091 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)(wxPAPER_A4SMALL))); | |
48092 | } | |
48093 | { | |
48094 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)(wxPAPER_A5))); | |
48095 | } | |
48096 | { | |
48097 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)(wxPAPER_B4))); | |
48098 | } | |
48099 | { | |
48100 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)(wxPAPER_B5))); | |
48101 | } | |
48102 | { | |
48103 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)(wxPAPER_FOLIO))); | |
48104 | } | |
48105 | { | |
48106 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)(wxPAPER_QUARTO))); | |
48107 | } | |
48108 | { | |
48109 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)(wxPAPER_10X14))); | |
48110 | } | |
48111 | { | |
48112 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)(wxPAPER_11X17))); | |
48113 | } | |
48114 | { | |
48115 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)(wxPAPER_NOTE))); | |
48116 | } | |
48117 | { | |
48118 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)(wxPAPER_ENV_9))); | |
48119 | } | |
48120 | { | |
48121 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)(wxPAPER_ENV_10))); | |
48122 | } | |
48123 | { | |
48124 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)(wxPAPER_ENV_11))); | |
48125 | } | |
48126 | { | |
48127 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)(wxPAPER_ENV_12))); | |
48128 | } | |
48129 | { | |
48130 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)(wxPAPER_ENV_14))); | |
48131 | } | |
48132 | { | |
48133 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)(wxPAPER_ENV_DL))); | |
48134 | } | |
48135 | { | |
48136 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)(wxPAPER_ENV_C5))); | |
48137 | } | |
48138 | { | |
48139 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)(wxPAPER_ENV_C3))); | |
48140 | } | |
48141 | { | |
48142 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)(wxPAPER_ENV_C4))); | |
48143 | } | |
48144 | { | |
48145 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)(wxPAPER_ENV_C6))); | |
48146 | } | |
48147 | { | |
48148 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)(wxPAPER_ENV_C65))); | |
48149 | } | |
48150 | { | |
48151 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)(wxPAPER_ENV_B4))); | |
48152 | } | |
48153 | { | |
48154 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)(wxPAPER_ENV_B5))); | |
48155 | } | |
48156 | { | |
48157 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)(wxPAPER_ENV_B6))); | |
48158 | } | |
48159 | { | |
48160 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)(wxPAPER_ENV_ITALY))); | |
48161 | } | |
48162 | { | |
48163 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)(wxPAPER_ENV_MONARCH))); | |
48164 | } | |
48165 | { | |
48166 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)(wxPAPER_ENV_PERSONAL))); | |
48167 | } | |
48168 | { | |
48169 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)(wxPAPER_FANFOLD_US))); | |
48170 | } | |
48171 | { | |
48172 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)(wxPAPER_FANFOLD_STD_GERMAN))); | |
48173 | } | |
48174 | { | |
48175 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)(wxPAPER_FANFOLD_LGL_GERMAN))); | |
48176 | } | |
48177 | { | |
48178 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)(wxPAPER_ISO_B4))); | |
48179 | } | |
48180 | { | |
48181 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)(wxPAPER_JAPANESE_POSTCARD))); | |
48182 | } | |
48183 | { | |
48184 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)(wxPAPER_9X11))); | |
48185 | } | |
48186 | { | |
48187 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)(wxPAPER_10X11))); | |
48188 | } | |
48189 | { | |
48190 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)(wxPAPER_15X11))); | |
48191 | } | |
48192 | { | |
48193 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)(wxPAPER_ENV_INVITE))); | |
48194 | } | |
48195 | { | |
48196 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)(wxPAPER_LETTER_EXTRA))); | |
48197 | } | |
48198 | { | |
48199 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)(wxPAPER_LEGAL_EXTRA))); | |
48200 | } | |
48201 | { | |
48202 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)(wxPAPER_TABLOID_EXTRA))); | |
48203 | } | |
48204 | { | |
48205 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)(wxPAPER_A4_EXTRA))); | |
48206 | } | |
48207 | { | |
48208 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)(wxPAPER_LETTER_TRANSVERSE))); | |
48209 | } | |
48210 | { | |
48211 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A4_TRANSVERSE))); | |
48212 | } | |
48213 | { | |
48214 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)(wxPAPER_LETTER_EXTRA_TRANSVERSE))); | |
48215 | } | |
48216 | { | |
48217 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)(wxPAPER_A_PLUS))); | |
48218 | } | |
48219 | { | |
48220 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)(wxPAPER_B_PLUS))); | |
48221 | } | |
48222 | { | |
48223 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)(wxPAPER_LETTER_PLUS))); | |
48224 | } | |
48225 | { | |
48226 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)(wxPAPER_A4_PLUS))); | |
48227 | } | |
48228 | { | |
48229 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A5_TRANSVERSE))); | |
48230 | } | |
48231 | { | |
48232 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)(wxPAPER_B5_TRANSVERSE))); | |
48233 | } | |
48234 | { | |
48235 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)(wxPAPER_A3_EXTRA))); | |
48236 | } | |
48237 | { | |
48238 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)(wxPAPER_A5_EXTRA))); | |
48239 | } | |
48240 | { | |
48241 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)(wxPAPER_B5_EXTRA))); | |
48242 | } | |
48243 | { | |
48244 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)(wxPAPER_A2))); | |
48245 | } | |
48246 | { | |
48247 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A3_TRANSVERSE))); | |
48248 | } | |
48249 | { | |
48250 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A3_EXTRA_TRANSVERSE))); | |
48251 | } | |
48252 | { | |
48253 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)(wxDUPLEX_SIMPLEX))); | |
48254 | } | |
48255 | { | |
48256 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)(wxDUPLEX_HORIZONTAL))); | |
48257 | } | |
48258 | { | |
48259 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)(wxDUPLEX_VERTICAL))); | |
48260 | } | |
48261 | { | |
48262 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)(wxITEM_SEPARATOR))); | |
48263 | } | |
48264 | { | |
48265 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)(wxITEM_NORMAL))); | |
48266 | } | |
48267 | { | |
48268 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)(wxITEM_CHECK))); | |
48269 | } | |
48270 | { | |
48271 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)(wxITEM_RADIO))); | |
48272 | } | |
48273 | { | |
48274 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)(wxITEM_MAX))); | |
48275 | } | |
48276 | { | |
48277 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)(wxHT_NOWHERE))); | |
48278 | } | |
48279 | { | |
48280 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)(wxHT_SCROLLBAR_FIRST))); | |
48281 | } | |
48282 | { | |
48283 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_LINE_1))); | |
48284 | } | |
48285 | { | |
48286 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_LINE_2))); | |
48287 | } | |
48288 | { | |
48289 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_PAGE_1))); | |
48290 | } | |
48291 | { | |
48292 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_PAGE_2))); | |
48293 | } | |
48294 | { | |
48295 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)(wxHT_SCROLLBAR_THUMB))); | |
48296 | } | |
48297 | { | |
48298 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)(wxHT_SCROLLBAR_BAR_1))); | |
48299 | } | |
48300 | { | |
48301 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)(wxHT_SCROLLBAR_BAR_2))); | |
48302 | } | |
48303 | { | |
48304 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)(wxHT_SCROLLBAR_LAST))); | |
48305 | } | |
48306 | { | |
48307 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)(wxHT_WINDOW_OUTSIDE))); | |
48308 | } | |
48309 | { | |
48310 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)(wxHT_WINDOW_INSIDE))); | |
48311 | } | |
48312 | { | |
48313 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)(wxHT_WINDOW_VERT_SCROLLBAR))); | |
48314 | } | |
48315 | { | |
48316 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)(wxHT_WINDOW_HORZ_SCROLLBAR))); | |
48317 | } | |
48318 | { | |
48319 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)(wxHT_WINDOW_CORNER))); | |
48320 | } | |
48321 | { | |
48322 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)(wxHT_MAX))); | |
48323 | } | |
48324 | { | |
48325 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)(wxMOD_NONE))); | |
48326 | } | |
48327 | { | |
48328 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)(wxMOD_ALT))); | |
48329 | } | |
48330 | { | |
48331 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)(wxMOD_CONTROL))); | |
48332 | } | |
48333 | { | |
48334 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)(wxMOD_SHIFT))); | |
48335 | } | |
48336 | { | |
48337 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)(wxMOD_WIN))); | |
48338 | } | |
48339 | { | |
48340 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)(wxUPDATE_UI_NONE))); | |
48341 | } | |
48342 | { | |
48343 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)(wxUPDATE_UI_RECURSE))); | |
48344 | } | |
48345 | { | |
48346 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)(wxUPDATE_UI_FROMIDLE))); | |
48347 | } | |
48348 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
48349 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
48350 | { | |
48351 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)(wxBITMAP_TYPE_INVALID))); | |
48352 | } | |
48353 | { | |
48354 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)(wxBITMAP_TYPE_BMP))); | |
48355 | } | |
48356 | { | |
48357 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)(wxBITMAP_TYPE_ICO))); | |
48358 | } | |
48359 | { | |
48360 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)(wxBITMAP_TYPE_CUR))); | |
48361 | } | |
48362 | { | |
48363 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)(wxBITMAP_TYPE_XBM))); | |
48364 | } | |
48365 | { | |
48366 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)(wxBITMAP_TYPE_XBM_DATA))); | |
48367 | } | |
48368 | { | |
48369 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)(wxBITMAP_TYPE_XPM))); | |
48370 | } | |
48371 | { | |
48372 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)(wxBITMAP_TYPE_XPM_DATA))); | |
48373 | } | |
48374 | { | |
48375 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)(wxBITMAP_TYPE_TIF))); | |
48376 | } | |
48377 | { | |
48378 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)(wxBITMAP_TYPE_GIF))); | |
48379 | } | |
48380 | { | |
48381 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)(wxBITMAP_TYPE_PNG))); | |
48382 | } | |
48383 | { | |
48384 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)(wxBITMAP_TYPE_JPEG))); | |
48385 | } | |
48386 | { | |
48387 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)(wxBITMAP_TYPE_PNM))); | |
48388 | } | |
48389 | { | |
48390 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)(wxBITMAP_TYPE_PCX))); | |
48391 | } | |
48392 | { | |
48393 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)(wxBITMAP_TYPE_PICT))); | |
48394 | } | |
48395 | { | |
48396 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)(wxBITMAP_TYPE_ICON))); | |
48397 | } | |
48398 | { | |
48399 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)(wxBITMAP_TYPE_ANI))); | |
48400 | } | |
48401 | { | |
48402 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)(wxBITMAP_TYPE_IFF))); | |
48403 | } | |
48404 | { | |
48405 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)(wxBITMAP_TYPE_MACCURSOR))); | |
48406 | } | |
48407 | { | |
48408 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)(wxBITMAP_TYPE_ANY))); | |
48409 | } | |
48410 | { | |
48411 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)(wxCURSOR_NONE))); | |
48412 | } | |
48413 | { | |
48414 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)(wxCURSOR_ARROW))); | |
48415 | } | |
48416 | { | |
48417 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)(wxCURSOR_RIGHT_ARROW))); | |
48418 | } | |
48419 | { | |
48420 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)(wxCURSOR_BULLSEYE))); | |
48421 | } | |
48422 | { | |
48423 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)(wxCURSOR_CHAR))); | |
48424 | } | |
48425 | { | |
48426 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)(wxCURSOR_CROSS))); | |
48427 | } | |
48428 | { | |
48429 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)(wxCURSOR_HAND))); | |
48430 | } | |
48431 | { | |
48432 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)(wxCURSOR_IBEAM))); | |
48433 | } | |
48434 | { | |
48435 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)(wxCURSOR_LEFT_BUTTON))); | |
48436 | } | |
48437 | { | |
48438 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)(wxCURSOR_MAGNIFIER))); | |
48439 | } | |
48440 | { | |
48441 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)(wxCURSOR_MIDDLE_BUTTON))); | |
48442 | } | |
48443 | { | |
48444 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)(wxCURSOR_NO_ENTRY))); | |
48445 | } | |
48446 | { | |
48447 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)(wxCURSOR_PAINT_BRUSH))); | |
48448 | } | |
48449 | { | |
48450 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)(wxCURSOR_PENCIL))); | |
48451 | } | |
48452 | { | |
48453 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)(wxCURSOR_POINT_LEFT))); | |
48454 | } | |
48455 | { | |
48456 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)(wxCURSOR_POINT_RIGHT))); | |
48457 | } | |
48458 | { | |
48459 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)(wxCURSOR_QUESTION_ARROW))); | |
48460 | } | |
48461 | { | |
48462 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)(wxCURSOR_RIGHT_BUTTON))); | |
48463 | } | |
48464 | { | |
48465 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)(wxCURSOR_SIZENESW))); | |
48466 | } | |
48467 | { | |
48468 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)(wxCURSOR_SIZENS))); | |
48469 | } | |
48470 | { | |
48471 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)(wxCURSOR_SIZENWSE))); | |
48472 | } | |
48473 | { | |
48474 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)(wxCURSOR_SIZEWE))); | |
48475 | } | |
48476 | { | |
48477 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)(wxCURSOR_SIZING))); | |
48478 | } | |
48479 | { | |
48480 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)(wxCURSOR_SPRAYCAN))); | |
48481 | } | |
48482 | { | |
48483 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)(wxCURSOR_WAIT))); | |
48484 | } | |
48485 | { | |
48486 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)(wxCURSOR_WATCH))); | |
48487 | } | |
48488 | { | |
48489 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)(wxCURSOR_BLANK))); | |
48490 | } | |
48491 | { | |
48492 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)(wxCURSOR_DEFAULT))); | |
48493 | } | |
48494 | { | |
48495 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)(wxCURSOR_COPY_ARROW))); | |
48496 | } | |
48497 | { | |
48498 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)(wxCURSOR_ARROWWAIT))); | |
48499 | } | |
48500 | { | |
48501 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)(wxCURSOR_MAX))); | |
48502 | } | |
48503 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
48504 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
48505 | { | |
48506 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)(wxFromStart))); | |
48507 | } | |
48508 | { | |
48509 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)(wxFromCurrent))); | |
48510 | } | |
48511 | { | |
48512 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)(wxFromEnd))); | |
48513 | } | |
48514 | ||
48515 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
48516 | ||
48517 | ||
48518 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
48519 | ||
48520 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
48521 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
48522 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
48523 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
48524 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
48525 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
48526 | { | |
48527 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)(wxIMAGE_RESOLUTION_INCHES))); | |
48528 | } | |
48529 | { | |
48530 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)(wxIMAGE_RESOLUTION_CM))); | |
48531 | } | |
48532 | { | |
48533 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)(wxBMP_24BPP))); | |
48534 | } | |
48535 | { | |
48536 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)(wxBMP_8BPP))); | |
48537 | } | |
48538 | { | |
48539 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)(wxBMP_8BPP_GREY))); | |
48540 | } | |
48541 | { | |
48542 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)(wxBMP_8BPP_GRAY))); | |
48543 | } | |
48544 | { | |
48545 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)(wxBMP_8BPP_RED))); | |
48546 | } | |
48547 | { | |
48548 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)(wxBMP_8BPP_PALETTE))); | |
48549 | } | |
48550 | { | |
48551 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)(wxBMP_4BPP))); | |
48552 | } | |
48553 | { | |
48554 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)(wxBMP_1BPP))); | |
48555 | } | |
48556 | { | |
48557 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)(wxBMP_1BPP_BW))); | |
48558 | } | |
48559 | { | |
48560 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)(wxQUANTIZE_INCLUDE_WINDOWS_COLOURS))); | |
48561 | } | |
48562 | { | |
48563 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)(wxQUANTIZE_FILL_DESTINATION_IMAGE))); | |
48564 | } | |
48565 | { | |
48566 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)(wxEVENT_PROPAGATE_NONE))); | |
48567 | } | |
48568 | { | |
48569 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)(wxEVENT_PROPAGATE_MAX))); | |
48570 | } | |
48571 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
48572 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
48573 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
48574 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
48575 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
48576 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
48577 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
48578 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
48579 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
48580 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
48581 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
48582 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
48583 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
48584 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
48585 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
48586 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
48587 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
48588 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
48589 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
48590 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
48591 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
48592 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
48593 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
48594 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
48595 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
48596 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
48597 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
48598 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
48599 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
48600 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
48601 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
48602 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
48603 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
48604 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
48605 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
48606 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
48607 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
48608 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
48609 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
48610 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
48611 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
48612 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
48613 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
48614 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
48615 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
48616 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
48617 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
48618 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
48619 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
48620 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
48621 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
48622 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
48623 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
48624 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
48625 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
48626 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
48627 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
48628 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
48629 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
48630 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
48631 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
48632 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
48633 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
48634 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
48635 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
48636 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
48637 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
48638 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
48639 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
48640 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
48641 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
48642 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
48643 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
48644 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
48645 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
48646 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
48647 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
48648 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
48649 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
48650 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
48651 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
48652 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
48653 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
48654 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
48655 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
48656 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
48657 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
48658 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
48659 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
48660 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
48661 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
48662 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
48663 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
48664 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
48665 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
48666 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
48667 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
48668 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
48669 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
48670 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
48671 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
48672 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
48673 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
48674 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
48675 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
48676 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
48677 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
48678 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
48679 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
48680 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
48681 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
48682 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
48683 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
48684 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
48685 | { | |
48686 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)(wxMOUSE_BTN_ANY))); | |
48687 | } | |
48688 | { | |
48689 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)(wxMOUSE_BTN_NONE))); | |
48690 | } | |
48691 | { | |
48692 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)(wxMOUSE_BTN_LEFT))); | |
48693 | } | |
48694 | { | |
48695 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)(wxMOUSE_BTN_MIDDLE))); | |
48696 | } | |
48697 | { | |
48698 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)(wxMOUSE_BTN_RIGHT))); | |
48699 | } | |
48700 | { | |
48701 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)(wxUPDATE_UI_PROCESS_ALL))); | |
48702 | } | |
48703 | { | |
48704 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)(wxUPDATE_UI_PROCESS_SPECIFIED))); | |
48705 | } | |
48706 | { | |
48707 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)(wxNavigationKeyEvent::IsBackward))); | |
48708 | } | |
48709 | { | |
48710 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)(wxNavigationKeyEvent::IsForward))); | |
48711 | } | |
48712 | { | |
48713 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)(wxNavigationKeyEvent::WinChange))); | |
48714 | } | |
48715 | { | |
48716 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)(wxIDLE_PROCESS_ALL))); | |
48717 | } | |
48718 | { | |
48719 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)(wxIDLE_PROCESS_SPECIFIED))); | |
48720 | } | |
48721 | { | |
48722 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)(wxPYAPP_ASSERT_SUPPRESS))); | |
48723 | } | |
48724 | { | |
48725 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)(wxPYAPP_ASSERT_EXCEPTION))); | |
48726 | } | |
48727 | { | |
48728 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)(wxPYAPP_ASSERT_DIALOG))); | |
48729 | } | |
48730 | { | |
48731 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)(wxPYAPP_ASSERT_LOG))); | |
48732 | } | |
48733 | { | |
48734 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)(wxPRINT_WINDOWS))); | |
48735 | } | |
48736 | { | |
48737 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)(wxPRINT_POSTSCRIPT))); | |
48738 | } | |
48739 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); | |
48740 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
48741 | { | |
48742 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)(wxWINDOW_VARIANT_NORMAL))); | |
48743 | } | |
48744 | { | |
48745 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)(wxWINDOW_VARIANT_SMALL))); | |
48746 | } | |
48747 | { | |
48748 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)(wxWINDOW_VARIANT_MINI))); | |
48749 | } | |
48750 | { | |
48751 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)(wxWINDOW_VARIANT_LARGE))); | |
48752 | } | |
48753 | { | |
48754 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)(wxWINDOW_VARIANT_MAX))); | |
48755 | } | |
48756 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); | |
48757 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
48758 | { | |
48759 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)(wxFLEX_GROWMODE_NONE))); | |
48760 | } | |
48761 | { | |
48762 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)(wxFLEX_GROWMODE_SPECIFIED))); | |
48763 | } | |
48764 | { | |
48765 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)(wxFLEX_GROWMODE_ALL))); | |
48766 | } | |
48767 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
48768 | { | |
48769 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)(wxLeft))); | |
48770 | } | |
48771 | { | |
48772 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)(wxTop))); | |
48773 | } | |
48774 | { | |
48775 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)(wxRight))); | |
48776 | } | |
48777 | { | |
48778 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)(wxBottom))); | |
48779 | } | |
48780 | { | |
48781 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)(wxWidth))); | |
48782 | } | |
48783 | { | |
48784 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)(wxHeight))); | |
48785 | } | |
48786 | { | |
48787 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)(wxCentre))); | |
48788 | } | |
48789 | { | |
48790 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)(wxCenter))); | |
48791 | } | |
48792 | { | |
48793 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)(wxCentreX))); | |
48794 | } | |
48795 | { | |
48796 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)(wxCentreY))); | |
48797 | } | |
48798 | { | |
48799 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)(wxUnconstrained))); | |
48800 | } | |
48801 | { | |
48802 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)(wxAsIs))); | |
48803 | } | |
48804 | { | |
48805 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)(wxPercentOf))); | |
48806 | } | |
48807 | { | |
48808 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)(wxAbove))); | |
48809 | } | |
48810 | { | |
48811 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)(wxBelow))); | |
48812 | } | |
48813 | { | |
48814 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)(wxLeftOf))); | |
48815 | } | |
48816 | { | |
48817 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)(wxRightOf))); | |
48818 | } | |
48819 | { | |
48820 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)(wxSameAs))); | |
48821 | } | |
48822 | { | |
48823 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)(wxAbsolute))); | |
48824 | } | |
d55e5bfc RD |
48825 | |
48826 | // Initialize threading, some globals and such | |
48827 | __wxPyPreStart(d); | |
48828 | ||
48829 | ||
48830 | // Although these are defined in __version__ they need to be here too so | |
48831 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
48832 | // versions match. | |
48833 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
48834 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
48835 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
48836 | ||
48837 | } | |
48838 |