]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
093d3ff1 | 3 | * Version 1.3.24 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
d14a1e28 RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 26 | }; |
d14a1e28 RD |
27 | #endif |
28 | ||
29 | ||
093d3ff1 RD |
30 | #ifndef SWIG_TEMPLATE_DISAMBIGUATOR |
31 | # if defined(__SUNPRO_CC) | |
32 | # define SWIG_TEMPLATE_DISAMBIGUATOR template | |
33 | # else | |
34 | # define SWIG_TEMPLATE_DISAMBIGUATOR | |
35 | # endif | |
36 | #endif | |
d14a1e28 | 37 | |
c9c7117a | 38 | |
093d3ff1 | 39 | #include <Python.h> |
d14a1e28 RD |
40 | |
41 | /*********************************************************************** | |
093d3ff1 | 42 | * swigrun.swg |
d14a1e28 | 43 | * |
093d3ff1 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d14a1e28 RD |
46 | * |
47 | ************************************************************************/ | |
48 | ||
093d3ff1 RD |
49 | /* This should only be incremented when either the layout of swig_type_info changes, |
50 | or for whatever reason, the runtime changes incompatibly */ | |
51 | #define SWIG_RUNTIME_VERSION "1" | |
d14a1e28 | 52 | |
093d3ff1 RD |
53 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
54 | #ifdef SWIG_TYPE_TABLE | |
55 | #define SWIG_QUOTE_STRING(x) #x | |
56 | #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
57 | #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 58 | #else |
093d3ff1 | 59 | #define SWIG_TYPE_TABLE_NAME |
d14a1e28 RD |
60 | #endif |
61 | ||
093d3ff1 RD |
62 | #include <string.h> |
63 | ||
64 | #ifndef SWIGINLINE | |
65 | #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
66 | # define SWIGINLINE inline | |
d14a1e28 | 67 | #else |
093d3ff1 RD |
68 | # define SWIGINLINE |
69 | #endif | |
70 | #endif | |
71 | ||
72 | /* | |
73 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
74 | creating a static or dynamic library from the swig runtime code. | |
75 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
76 | ||
77 | But only do this if is strictly necessary, ie, if you have problems | |
78 | with your compiler or so. | |
79 | */ | |
80 | #ifndef SWIGRUNTIME | |
81 | #define SWIGRUNTIME static | |
82 | #endif | |
83 | #ifndef SWIGRUNTIMEINLINE | |
84 | #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
d14a1e28 RD |
85 | #endif |
86 | ||
d14a1e28 RD |
87 | #ifdef __cplusplus |
88 | extern "C" { | |
89 | #endif | |
90 | ||
91 | typedef void *(*swig_converter_func)(void *); | |
92 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
93 | ||
94 | typedef struct swig_type_info { | |
cc6dd355 | 95 | const char *name; |
d14a1e28 RD |
96 | swig_converter_func converter; |
97 | const char *str; | |
cc6dd355 | 98 | void *clientdata; |
d14a1e28 RD |
99 | swig_dycast_func dcast; |
100 | struct swig_type_info *next; | |
101 | struct swig_type_info *prev; | |
102 | } swig_type_info; | |
103 | ||
093d3ff1 RD |
104 | /* |
105 | Compare two type names skipping the space characters, therefore | |
106 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
107 | ||
108 | Return 0 when the two name types are equivalent, as in | |
109 | strncmp, but skipping ' '. | |
110 | */ | |
111 | SWIGRUNTIME int | |
112 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
113 | const char *f2, const char *l2) { | |
114 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
115 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
116 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
117 | if (*f1 != *f2) return *f1 - *f2; | |
118 | } | |
119 | return (l1 - f1) - (l2 - f2); | |
120 | } | |
121 | ||
122 | /* | |
123 | Check type equivalence in a name list like <name1>|<name2>|... | |
124 | */ | |
125 | SWIGRUNTIME int | |
126 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
127 | int equiv = 0; | |
128 | const char* te = tb + strlen(tb); | |
129 | const char* ne = nb; | |
130 | while (!equiv && *ne) { | |
131 | for (nb = ne; *ne; ++ne) { | |
132 | if (*ne == '|') break; | |
133 | } | |
134 | equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0; | |
135 | if (*ne) ++ne; | |
136 | } | |
137 | return equiv; | |
138 | } | |
139 | ||
140 | /* | |
141 | Register a type mapping with the type-checking | |
142 | */ | |
143 | SWIGRUNTIME swig_type_info * | |
144 | SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) { | |
145 | swig_type_info *tc, *head, *ret, *next; | |
146 | /* Check to see if this type has already been registered */ | |
147 | tc = *tl; | |
148 | while (tc) { | |
149 | /* check simple type equivalence */ | |
150 | int typeequiv = (strcmp(tc->name, ti->name) == 0); | |
151 | /* check full type equivalence, resolving typedefs */ | |
152 | if (!typeequiv) { | |
153 | /* only if tc is not a typedef (no '|' on it) */ | |
154 | if (tc->str && ti->str && !strstr(tc->str,"|")) { | |
155 | typeequiv = SWIG_TypeEquiv(ti->str,tc->str); | |
156 | } | |
157 | } | |
158 | if (typeequiv) { | |
159 | /* Already exists in the table. Just add additional types to the list */ | |
160 | if (ti->clientdata) tc->clientdata = ti->clientdata; | |
161 | head = tc; | |
162 | next = tc->next; | |
163 | goto l1; | |
164 | } | |
165 | tc = tc->prev; | |
166 | } | |
167 | head = ti; | |
168 | next = 0; | |
169 | ||
170 | /* Place in list */ | |
171 | ti->prev = *tl; | |
172 | *tl = ti; | |
173 | ||
174 | /* Build linked lists */ | |
175 | l1: | |
176 | ret = head; | |
177 | tc = ti + 1; | |
178 | /* Patch up the rest of the links */ | |
179 | while (tc->name) { | |
180 | head->next = tc; | |
181 | tc->prev = head; | |
182 | head = tc; | |
183 | tc++; | |
184 | } | |
185 | if (next) next->prev = head; | |
186 | head->next = next; | |
187 | ||
188 | return ret; | |
189 | } | |
190 | ||
191 | /* | |
192 | Check the typename | |
193 | */ | |
194 | SWIGRUNTIME swig_type_info * | |
195 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
196 | swig_type_info *s; | |
197 | if (!ty) return 0; /* Void pointer */ | |
198 | s = ty->next; /* First element always just a name */ | |
199 | do { | |
200 | if (strcmp(s->name,c) == 0) { | |
201 | if (s == ty->next) return s; | |
202 | /* Move s to the top of the linked list */ | |
203 | s->prev->next = s->next; | |
204 | if (s->next) { | |
205 | s->next->prev = s->prev; | |
206 | } | |
207 | /* Insert s as second element in the list */ | |
208 | s->next = ty->next; | |
209 | if (ty->next) ty->next->prev = s; | |
210 | ty->next = s; | |
211 | s->prev = ty; | |
212 | return s; | |
213 | } | |
214 | s = s->next; | |
215 | } while (s && (s != ty->next)); | |
216 | return 0; | |
217 | } | |
d14a1e28 | 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 | } | |
d14a1e28 | 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 | } | |
d14a1e28 RD |
430 | |
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
093d3ff1 | 436 | * common.swg |
d14a1e28 | 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. | |
d14a1e28 | 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. | |
d14a1e28 RD |
448 | ************************************************************************/ |
449 | ||
093d3ff1 RD |
450 | |
451 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
452 | # if !defined(STATIC_LINKED) | |
453 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
454 | # else | |
455 | # define SWIGEXPORT(a) a | |
456 | # endif | |
457 | #else | |
458 | # define SWIGEXPORT(a) a | |
459 | #endif | |
460 | ||
461 | #ifdef __cplusplus | |
462 | extern "C" { | |
463 | #endif | |
464 | ||
465 | ||
466 | /*************************************************************************/ | |
467 | ||
468 | ||
469 | /* The static type info list */ | |
470 | ||
471 | static swig_type_info *swig_type_list = 0; | |
472 | static swig_type_info **swig_type_list_handle = &swig_type_list; | |
473 | ||
474 | ||
475 | /* Register a type mapping with the type-checking */ | |
476 | static swig_type_info * | |
477 | SWIG_TypeRegister(swig_type_info *ti) { | |
478 | return SWIG_TypeRegisterTL(swig_type_list_handle, ti); | |
479 | } | |
480 | ||
481 | /* Search for a swig_type_info structure */ | |
482 | static swig_type_info * | |
483 | SWIG_TypeQuery(const char *name) { | |
484 | return SWIG_TypeQueryTL(*swig_type_list_handle, name); | |
485 | } | |
486 | ||
487 | /* Set the clientdata field for a type */ | |
488 | static void | |
489 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
490 | SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata); | |
491 | } | |
492 | ||
493 | /* This function will propagate the clientdata field of type to | |
494 | * any new swig_type_info structures that have been added into the list | |
495 | * of equivalent types. It is like calling | |
496 | * SWIG_TypeClientData(type, clientdata) a second time. | |
497 | */ | |
498 | static void | |
499 | SWIG_PropagateClientData(swig_type_info *type) { | |
500 | SWIG_PropagateClientDataTL(*swig_type_list_handle, type); | |
501 | } | |
502 | ||
503 | #ifdef __cplusplus | |
504 | } | |
505 | #endif | |
506 | ||
507 | /* ----------------------------------------------------------------------------- | |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
510 | ||
d14a1e28 RD |
511 | #ifdef __cplusplus |
512 | extern "C" { | |
513 | #endif | |
514 | ||
093d3ff1 RD |
515 | /* ----------------------------------------------------------------------------- |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
518 | ||
519 | #ifndef SWIGINTERN | |
520 | #define SWIGINTERN static | |
521 | #endif | |
522 | ||
523 | #ifndef SWIGINTERNSHORT | |
524 | #ifdef __cplusplus | |
525 | #define SWIGINTERNSHORT static inline | |
526 | #else /* C case */ | |
527 | #define SWIGINTERNSHORT static | |
528 | #endif /* __cplusplus */ | |
529 | #endif | |
530 | ||
531 | ||
532 | /* | |
533 | Exception handling in wrappers | |
534 | */ | |
535 | #define SWIG_fail goto fail | |
536 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
537 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
538 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
539 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
540 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
541 | ||
542 | /* | |
543 | Contract support | |
544 | */ | |
545 | #define SWIG_contract_assert(expr, msg) \ | |
546 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
547 | ||
548 | /* ----------------------------------------------------------------------------- | |
549 | * Constant declarations | |
550 | * ----------------------------------------------------------------------------- */ | |
551 | ||
552 | /* Constant Types */ | |
d14a1e28 RD |
553 | #define SWIG_PY_INT 1 |
554 | #define SWIG_PY_FLOAT 2 | |
555 | #define SWIG_PY_STRING 3 | |
556 | #define SWIG_PY_POINTER 4 | |
557 | #define SWIG_PY_BINARY 5 | |
558 | ||
d14a1e28 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 | ||
d14a1e28 | 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) | |
a41e16b6 | 596 | |
d14a1e28 | 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) | |
d14a1e28 | 601 | |
d14a1e28 | 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 | |
d14a1e28 | 614 | |
093d3ff1 RD |
615 | /* Flags for pointer conversion */ |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
d14a1e28 | 618 | |
d14a1e28 | 619 | |
d14a1e28 | 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 | } | |
d14a1e28 | 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 */ | |
d14a1e28 | 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 | }; | |
d14a1e28 | 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 | |
d14a1e28 | 1337 | |
c32bde28 | 1338 | |
d14a1e28 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] | |
2ef75293 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] | |
2ef75293 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] | |
53aa7709 RD |
1397 | #define SWIGTYPE_p_wxDateEvent swig_types[56] |
1398 | #define SWIGTYPE_p_wxMenuItem swig_types[57] | |
1399 | #define SWIGTYPE_p_wxStaticBox swig_types[58] | |
1400 | #define SWIGTYPE_p_long swig_types[59] | |
1401 | #define SWIGTYPE_p_wxDuplexMode swig_types[60] | |
1402 | #define SWIGTYPE_p_wxTIFFHandler swig_types[61] | |
1403 | #define SWIGTYPE_p_wxXPMHandler swig_types[62] | |
1404 | #define SWIGTYPE_p_wxPNMHandler swig_types[63] | |
1405 | #define SWIGTYPE_p_wxJPEGHandler swig_types[64] | |
1406 | #define SWIGTYPE_p_wxPCXHandler swig_types[65] | |
1407 | #define SWIGTYPE_p_wxGIFHandler swig_types[66] | |
1408 | #define SWIGTYPE_p_wxPNGHandler swig_types[67] | |
1409 | #define SWIGTYPE_p_wxANIHandler swig_types[68] | |
1410 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[69] | |
1411 | #define SWIGTYPE_p_wxZipFSHandler swig_types[70] | |
1412 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[71] | |
1413 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[72] | |
1414 | #define SWIGTYPE_p_wxEvtHandler swig_types[73] | |
1415 | #define SWIGTYPE_p_wxCURHandler swig_types[74] | |
1416 | #define SWIGTYPE_p_wxICOHandler swig_types[75] | |
1417 | #define SWIGTYPE_p_wxBMPHandler swig_types[76] | |
1418 | #define SWIGTYPE_p_wxImageHandler swig_types[77] | |
1419 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[78] | |
1420 | #define SWIGTYPE_p_wxRect swig_types[79] | |
1421 | #define SWIGTYPE_p_wxButton swig_types[80] | |
1422 | #define SWIGTYPE_p_wxGBSpan swig_types[81] | |
1423 | #define SWIGTYPE_p_wxPropagateOnce swig_types[82] | |
1424 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[83] | |
1425 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[84] | |
1426 | #define SWIGTYPE_p_char swig_types[85] | |
1427 | #define SWIGTYPE_p_wxGBPosition swig_types[86] | |
1428 | #define SWIGTYPE_p_wxImage swig_types[87] | |
1429 | #define SWIGTYPE_p_wxFrame swig_types[88] | |
1430 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[89] | |
1431 | #define SWIGTYPE_p_wxPaperSize swig_types[90] | |
1432 | #define SWIGTYPE_p_wxImageHistogram swig_types[91] | |
1433 | #define SWIGTYPE_p_wxPoint swig_types[92] | |
1434 | #define SWIGTYPE_p_wxCursor swig_types[93] | |
1435 | #define SWIGTYPE_p_wxObject swig_types[94] | |
1436 | #define SWIGTYPE_p_wxInputStream swig_types[95] | |
1437 | #define SWIGTYPE_p_wxOutputStream swig_types[96] | |
1438 | #define SWIGTYPE_p_wxPyInputStream swig_types[97] | |
1439 | #define SWIGTYPE_p_wxDateTime swig_types[98] | |
1440 | #define SWIGTYPE_p_wxKeyEvent swig_types[99] | |
1441 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[100] | |
1442 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[101] | |
1443 | #define SWIGTYPE_p_unsigned_long swig_types[102] | |
1444 | #define SWIGTYPE_p_wxWindow swig_types[103] | |
1445 | #define SWIGTYPE_p_wxMenuBar swig_types[104] | |
1446 | #define SWIGTYPE_p_wxFileSystem swig_types[105] | |
1447 | #define SWIGTYPE_p_wxBitmap swig_types[106] | |
1448 | #define SWIGTYPE_unsigned_int swig_types[107] | |
1449 | #define SWIGTYPE_p_unsigned_int swig_types[108] | |
1450 | #define SWIGTYPE_p_wxMenuEvent swig_types[109] | |
1451 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[110] | |
1452 | #define SWIGTYPE_p_unsigned_char swig_types[111] | |
1453 | #define SWIGTYPE_p_wxEraseEvent swig_types[112] | |
1454 | #define SWIGTYPE_p_wxMouseEvent swig_types[113] | |
1455 | #define SWIGTYPE_p_wxCloseEvent swig_types[114] | |
1456 | #define SWIGTYPE_p_wxPyApp swig_types[115] | |
1457 | #define SWIGTYPE_p_wxCommandEvent swig_types[116] | |
1458 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[117] | |
1459 | #define SWIGTYPE_p_wxPyDropTarget swig_types[118] | |
1460 | #define SWIGTYPE_p_wxQuantize swig_types[119] | |
1461 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[120] | |
1462 | #define SWIGTYPE_p_wxFocusEvent swig_types[121] | |
1463 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[122] | |
1464 | #define SWIGTYPE_p_wxControlWithItems swig_types[123] | |
1465 | #define SWIGTYPE_p_wxColour swig_types[124] | |
1466 | #define SWIGTYPE_p_wxValidator swig_types[125] | |
1467 | #define SWIGTYPE_p_wxPyValidator swig_types[126] | |
1468 | static swig_type_info *swig_types[128]; | |
d14a1e28 RD |
1469 | |
1470 | /* -------- TYPES TABLE (END) -------- */ | |
1471 | ||
1472 | ||
1473 | /*----------------------------------------------- | |
54f9ee45 | 1474 | @(target):= _core_.so |
d14a1e28 | 1475 | ------------------------------------------------*/ |
54f9ee45 | 1476 | #define SWIG_init init_core_ |
d14a1e28 | 1477 | |
54f9ee45 | 1478 | #define SWIG_name "_core_" |
d14a1e28 RD |
1479 | |
1480 | #include "wx/wxPython/wxPython_int.h" | |
1481 | #include "wx/wxPython/pyclasses.h" | |
1482 | ||
1483 | ||
1484 | #ifndef wxPyUSE_EXPORT | |
1485 | // Helper functions for dealing with SWIG objects and such. These are | |
1486 | // located here so they know about the SWIG types and functions declared | |
1487 | // in the wrapper code. | |
1488 | ||
1489 | #include <wx/hashmap.h> | |
1490 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
1491 | ||
1492 | ||
1493 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
1494 | // name of a class either looks up the type info in the cache, or scans the | |
1495 | // SWIG tables for it. | |
1496 | extern PyObject* wxPyPtrTypeMap; | |
1497 | static | |
1498 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
1499 | ||
1500 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
1501 | ||
1502 | if (typeInfoCache == NULL) | |
1503 | typeInfoCache = new wxPyTypeInfoHashMap; | |
1504 | ||
1505 | wxString name(className); | |
1506 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
1507 | ||
1508 | if (! swigType) { | |
1509 | // it wasn't in the cache, so look it up from SWIG | |
1510 | name.Append(wxT(" *")); | |
093d3ff1 | 1511 | swigType = SWIG_TypeQuery(name.mb_str()); |
d14a1e28 RD |
1512 | |
1513 | // if it still wasn't found, try looking for a mapped name | |
1514 | if (!swigType) { | |
1515 | PyObject* item; | |
1516 | name = className; | |
1517 | ||
1518 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
1519 | (char*)(const char*)name.mbc_str())) != NULL) { | |
1520 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
1521 | name.Append(wxT(" *")); | |
093d3ff1 | 1522 | swigType = SWIG_TypeQuery(name.mb_str()); |
d14a1e28 RD |
1523 | } |
1524 | } | |
1525 | if (swigType) { | |
1526 | // and add it to the map if found | |
1527 | (*typeInfoCache)[className] = swigType; | |
1528 | } | |
1529 | } | |
1530 | return swigType; | |
1531 | } | |
1532 | ||
1533 | ||
1534 | // Check if a class name is a type known to SWIG | |
1535 | bool wxPyCheckSwigType(const wxChar* className) { | |
1536 | ||
1537 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1538 | return swigType != NULL; | |
1539 | } | |
1540 | ||
1541 | ||
1542 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
1543 | // object for it. | |
1544 | PyObject* wxPyConstructObject(void* ptr, | |
1545 | const wxChar* className, | |
1546 | int setThisOwn) { | |
1547 | ||
1548 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1549 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
1550 | ||
1551 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
1552 | } | |
1553 | ||
1554 | ||
1555 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
1556 | // Ensures that the proxy object is of the specified (or derived) type. If | |
1557 | // not able to perform the conversion then a Python exception is set and the | |
e811c8ce | 1558 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
1559 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, |
1560 | const wxChar* className) { | |
1561 | ||
1562 | swig_type_info* swigType = wxPyFindSwigType(className); | |
ae8162c8 | 1563 | wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr")); |
d14a1e28 RD |
1564 | |
1565 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
1566 | } | |
1567 | ||
1568 | ||
1569 | // Make a SWIGified pointer object suitable for a .this attribute | |
1570 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
1571 | ||
1572 | PyObject* robj = NULL; | |
1573 | ||
1574 | swig_type_info* swigType = wxPyFindSwigType(className); | |
1575 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
1576 | ||
1577 | #ifdef SWIG_COBJECT_TYPES | |
093d3ff1 | 1578 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)swigType->name); |
d14a1e28 RD |
1579 | #else |
1580 | { | |
1581 | char result[1024]; | |
093d3ff1 RD |
1582 | robj = SWIG_PackVoidPtr(result, ptr, swigType->name, sizeof(result)) ? |
1583 | PyString_FromString(result) : 0; | |
1584 | } | |
d14a1e28 RD |
1585 | #endif |
1586 | ||
1587 | return robj; | |
1588 | } | |
1589 | ||
1590 | ||
1591 | ||
1592 | ||
1593 | // Export a C API in a struct. Other modules will be able to load this from | |
121b9a67 RD |
1594 | // the wx._core_ module and will then have safe access to these functions, |
1595 | // even if they are located in another shared library. | |
d14a1e28 RD |
1596 | static wxPyCoreAPI API = { |
1597 | ||
d14a1e28 RD |
1598 | wxPyCheckSwigType, |
1599 | wxPyConstructObject, | |
1600 | wxPyConvertSwigPtr, | |
1601 | wxPyMakeSwigPtr, | |
1602 | ||
1603 | wxPyBeginAllowThreads, | |
1604 | wxPyEndAllowThreads, | |
1605 | wxPyBeginBlockThreads, | |
1606 | wxPyEndBlockThreads, | |
1607 | ||
1608 | wxPy_ConvertList, | |
1609 | ||
1610 | wxString_in_helper, | |
1611 | Py2wxString, | |
1612 | wx2PyString, | |
1613 | ||
1614 | byte_LIST_helper, | |
1615 | int_LIST_helper, | |
1616 | long_LIST_helper, | |
1617 | string_LIST_helper, | |
1618 | wxPoint_LIST_helper, | |
1619 | wxBitmap_LIST_helper, | |
1620 | wxString_LIST_helper, | |
1621 | wxAcceleratorEntry_LIST_helper, | |
1622 | ||
1623 | wxSize_helper, | |
1624 | wxPoint_helper, | |
1625 | wxRealPoint_helper, | |
1626 | wxRect_helper, | |
1627 | wxColour_helper, | |
1628 | wxPoint2D_helper, | |
1629 | ||
1630 | wxPySimple_typecheck, | |
1631 | wxColour_typecheck, | |
1632 | ||
1633 | wxPyCBH_setCallbackInfo, | |
1634 | wxPyCBH_findCallback, | |
1635 | wxPyCBH_callCallback, | |
1636 | wxPyCBH_callCallbackObj, | |
1637 | wxPyCBH_delete, | |
1638 | ||
1639 | wxPyMake_wxObject, | |
1640 | wxPyMake_wxSizer, | |
1641 | wxPyPtrTypeMap_Add, | |
1642 | wxPy2int_seq_helper, | |
1643 | wxPy4int_seq_helper, | |
1644 | wxArrayString2PyList_helper, | |
1645 | wxArrayInt2PyList_helper, | |
1646 | ||
1647 | wxPyClientData_dtor, | |
1648 | wxPyUserData_dtor, | |
1649 | wxPyOORClientData_dtor, | |
1650 | ||
1651 | wxPyCBInputStream_create, | |
e2950dbb RD |
1652 | wxPyCBInputStream_copy, |
1653 | ||
d14a1e28 | 1654 | wxPyInstance_Check, |
e3b71cb8 RD |
1655 | wxPySwigInstance_Check, |
1656 | ||
1657 | wxPyCheckForApp | |
d14a1e28 RD |
1658 | |
1659 | }; | |
1660 | ||
1661 | #endif | |
1662 | ||
1663 | ||
7557b9b5 RD |
1664 | #if !WXWIN_COMPATIBILITY_2_4 |
1665 | #define wxHIDE_READONLY 0 | |
1666 | #endif | |
1667 | ||
1668 | ||
093d3ff1 RD |
1669 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
1670 | #define SWIG_From_int PyInt_FromLong | |
1671 | /*@@*/ | |
1672 | ||
1673 | ||
d14a1e28 RD |
1674 | #if ! wxUSE_HOTKEY |
1675 | enum wxHotkeyModifier | |
1676 | { | |
1677 | wxMOD_NONE = 0, | |
1678 | wxMOD_ALT = 1, | |
1679 | wxMOD_CONTROL = 2, | |
1680 | wxMOD_SHIFT = 4, | |
1681 | wxMOD_WIN = 8 | |
1682 | }; | |
1683 | #define wxEVT_HOTKEY 9999 | |
1684 | #endif | |
1685 | ||
196addbf | 1686 | static const wxString wxPyEmptyString(wxEmptyString); |
093d3ff1 | 1687 | static wxString wxObject_GetClassName(wxObject *self){ |
d14a1e28 RD |
1688 | return self->GetClassInfo()->GetClassName(); |
1689 | } | |
093d3ff1 | 1690 | static void wxObject_Destroy(wxObject *self){ |
d14a1e28 RD |
1691 | delete self; |
1692 | } | |
1693 | ||
1694 | #ifndef __WXMAC__ | |
1695 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
1696 | #endif | |
1697 | ||
994141e6 | 1698 | |
15afbcd0 RD |
1699 | #include <limits.h> |
1700 | ||
1701 | ||
093d3ff1 | 1702 | SWIGINTERN int |
c32bde28 RD |
1703 | SWIG_CheckLongInRange(long value, long min_value, long max_value, |
1704 | const char *errmsg) | |
15afbcd0 | 1705 | { |
c32bde28 RD |
1706 | if (value < min_value) { |
1707 | if (errmsg) { | |
1708 | PyErr_Format(PyExc_OverflowError, | |
1709 | "value %ld is less than '%s' minimum %ld", | |
1710 | value, errmsg, min_value); | |
1711 | } | |
1712 | return 0; | |
1713 | } else if (value > max_value) { | |
1714 | if (errmsg) { | |
1715 | PyErr_Format(PyExc_OverflowError, | |
1716 | "value %ld is greater than '%s' maximum %ld", | |
1717 | value, errmsg, max_value); | |
15afbcd0 | 1718 | } |
c32bde28 | 1719 | return 0; |
15afbcd0 | 1720 | } |
c32bde28 | 1721 | return 1; |
15afbcd0 RD |
1722 | } |
1723 | ||
1724 | ||
093d3ff1 | 1725 | SWIGINTERN int |
c32bde28 | 1726 | SWIG_AsVal_long(PyObject* obj, long* val) |
15afbcd0 | 1727 | { |
c32bde28 RD |
1728 | if (PyNumber_Check(obj)) { |
1729 | if (val) *val = PyInt_AsLong(obj); | |
1730 | return 1; | |
1731 | } | |
69223c70 | 1732 | else { |
093d3ff1 | 1733 | SWIG_type_error("number", obj); |
69223c70 | 1734 | } |
c32bde28 | 1735 | return 0; |
15afbcd0 RD |
1736 | } |
1737 | ||
1738 | ||
1739 | #if INT_MAX != LONG_MAX | |
093d3ff1 | 1740 | SWIGINTERN int |
c32bde28 | 1741 | SWIG_AsVal_int(PyObject *obj, int *val) |
994141e6 | 1742 | { |
093d3ff1 | 1743 | const char* errmsg = val ? "int" : (char*)0; |
c32bde28 RD |
1744 | long v; |
1745 | if (SWIG_AsVal_long(obj, &v)) { | |
1746 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
093d3ff1 | 1747 | if (val) *val = (int)(v); |
c32bde28 RD |
1748 | return 1; |
1749 | } else { | |
1750 | return 0; | |
1751 | } | |
1752 | } else { | |
1753 | PyErr_Clear(); | |
1754 | } | |
1755 | if (val) { | |
093d3ff1 | 1756 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
1757 | } |
1758 | return 0; | |
15afbcd0 RD |
1759 | } |
1760 | #else | |
093d3ff1 | 1761 | SWIGINTERNSHORT int |
c32bde28 RD |
1762 | SWIG_AsVal_int(PyObject *obj, int *val) |
1763 | { | |
1764 | return SWIG_AsVal_long(obj,(long*)val); | |
1765 | } | |
15afbcd0 RD |
1766 | #endif |
1767 | ||
1768 | ||
093d3ff1 | 1769 | SWIGINTERNSHORT int |
c32bde28 | 1770 | SWIG_As_int(PyObject* obj) |
15afbcd0 | 1771 | { |
c32bde28 RD |
1772 | int v; |
1773 | if (!SWIG_AsVal_int(obj, &v)) { | |
1774 | /* | |
093d3ff1 | 1775 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1776 | */ |
1777 | memset((void*)&v, 0, sizeof(int)); | |
15afbcd0 | 1778 | } |
c32bde28 RD |
1779 | return v; |
1780 | } | |
1781 | ||
1782 | ||
093d3ff1 | 1783 | SWIGINTERNSHORT int |
c32bde28 RD |
1784 | SWIG_Check_int(PyObject* obj) |
1785 | { | |
1786 | return SWIG_AsVal_int(obj, (int*)0); | |
994141e6 RD |
1787 | } |
1788 | ||
093d3ff1 | 1789 | static PyObject *wxSize_Get(wxSize *self){ |
5a446332 | 1790 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1791 | PyObject* tup = PyTuple_New(2); |
1792 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1793 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 1794 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1795 | return tup; |
1796 | } | |
994141e6 | 1797 | |
093d3ff1 | 1798 | SWIGINTERN int |
c32bde28 | 1799 | SWIG_AsVal_double(PyObject *obj, double* val) |
994141e6 | 1800 | { |
c32bde28 RD |
1801 | if (PyNumber_Check(obj)) { |
1802 | if (val) *val = PyFloat_AsDouble(obj); | |
1803 | return 1; | |
1804 | } | |
69223c70 | 1805 | else { |
093d3ff1 | 1806 | SWIG_type_error("number", obj); |
69223c70 | 1807 | } |
c32bde28 | 1808 | return 0; |
15afbcd0 RD |
1809 | } |
1810 | ||
1811 | ||
093d3ff1 | 1812 | SWIGINTERNSHORT double |
c32bde28 | 1813 | SWIG_As_double(PyObject* obj) |
15afbcd0 | 1814 | { |
c32bde28 RD |
1815 | double v; |
1816 | if (!SWIG_AsVal_double(obj, &v)) { | |
1817 | /* | |
093d3ff1 | 1818 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1819 | */ |
1820 | memset((void*)&v, 0, sizeof(double)); | |
15afbcd0 | 1821 | } |
c32bde28 RD |
1822 | return v; |
1823 | } | |
1824 | ||
1825 | ||
093d3ff1 | 1826 | SWIGINTERNSHORT int |
c32bde28 RD |
1827 | SWIG_Check_double(PyObject* obj) |
1828 | { | |
1829 | return SWIG_AsVal_double(obj, (double*)0); | |
994141e6 RD |
1830 | } |
1831 | ||
093d3ff1 RD |
1832 | |
1833 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1834 | #define SWIG_From_double PyFloat_FromDouble | |
1835 | /*@@*/ | |
1836 | ||
1837 | static void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
d14a1e28 RD |
1838 | self->x = x; |
1839 | self->y = y; | |
1840 | } | |
093d3ff1 | 1841 | static PyObject *wxRealPoint_Get(wxRealPoint *self){ |
5a446332 | 1842 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1843 | PyObject* tup = PyTuple_New(2); |
1844 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
1845 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
4f89f6a3 | 1846 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1847 | return tup; |
1848 | } | |
994141e6 | 1849 | |
093d3ff1 | 1850 | SWIGINTERNSHORT long |
c32bde28 | 1851 | SWIG_As_long(PyObject* obj) |
994141e6 | 1852 | { |
c32bde28 RD |
1853 | long v; |
1854 | if (!SWIG_AsVal_long(obj, &v)) { | |
1855 | /* | |
093d3ff1 | 1856 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1857 | */ |
1858 | memset((void*)&v, 0, sizeof(long)); | |
15afbcd0 | 1859 | } |
c32bde28 RD |
1860 | return v; |
1861 | } | |
1862 | ||
1863 | ||
093d3ff1 | 1864 | SWIGINTERNSHORT int |
c32bde28 RD |
1865 | SWIG_Check_long(PyObject* obj) |
1866 | { | |
1867 | return SWIG_AsVal_long(obj, (long*)0); | |
994141e6 RD |
1868 | } |
1869 | ||
093d3ff1 | 1870 | static void wxPoint_Set(wxPoint *self,long x,long y){ |
d14a1e28 RD |
1871 | self->x = x; |
1872 | self->y = y; | |
1873 | } | |
093d3ff1 | 1874 | static PyObject *wxPoint_Get(wxPoint *self){ |
5a446332 | 1875 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1876 | PyObject* tup = PyTuple_New(2); |
1877 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1878 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 1879 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1880 | return tup; |
1881 | } | |
093d3ff1 | 1882 | static void wxRect_Set(wxRect *self,int x=0,int y=0,int width=0,int height=0){ |
d14a1e28 RD |
1883 | self->x = x; |
1884 | self->y = y; | |
1885 | self->width = width; | |
1886 | self->height = height; | |
1887 | } | |
093d3ff1 | 1888 | static PyObject *wxRect_Get(wxRect *self){ |
5a446332 | 1889 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1890 | PyObject* tup = PyTuple_New(4); |
1891 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1892 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1893 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
1894 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
4f89f6a3 | 1895 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1896 | return tup; |
1897 | } | |
1898 | ||
1899 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
1900 | wxRegion reg1(*r1); | |
1901 | wxRegion reg2(*r2); | |
1902 | wxRect dest(0,0,0,0); | |
1903 | PyObject* obj; | |
1904 | ||
1905 | reg1.Intersect(reg2); | |
1906 | dest = reg1.GetBox(); | |
1907 | ||
1908 | if (dest != wxRect(0,0,0,0)) { | |
5a446332 | 1909 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1910 | wxRect* newRect = new wxRect(dest); |
ae8162c8 | 1911 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true); |
4f89f6a3 | 1912 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1913 | return obj; |
1914 | } | |
1915 | Py_INCREF(Py_None); | |
1916 | return Py_None; | |
1917 | } | |
1918 | ||
1919 | ||
c32bde28 | 1920 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d14a1e28 RD |
1921 | PyObject* o2; |
1922 | PyObject* o3; | |
c32bde28 | 1923 | |
d14a1e28 RD |
1924 | if (!target) { |
1925 | target = o; | |
1926 | } else if (target == Py_None) { | |
1927 | Py_DECREF(Py_None); | |
1928 | target = o; | |
7e63a440 RD |
1929 | } else { |
1930 | if (!PyTuple_Check(target)) { | |
1931 | o2 = target; | |
1932 | target = PyTuple_New(1); | |
1933 | PyTuple_SetItem(target, 0, o2); | |
1934 | } | |
d14a1e28 RD |
1935 | o3 = PyTuple_New(1); |
1936 | PyTuple_SetItem(o3, 0, o); | |
1937 | ||
1938 | o2 = target; | |
1939 | target = PySequence_Concat(o2, o3); | |
1940 | Py_DECREF(o2); | |
1941 | Py_DECREF(o3); | |
1942 | } | |
1943 | return target; | |
7e63a440 | 1944 | } |
d14a1e28 | 1945 | |
c32bde28 | 1946 | |
093d3ff1 | 1947 | static void wxPoint2D_Set(wxPoint2D *self,double x=0,double y=0){ |
d14a1e28 RD |
1948 | self->m_x = x; |
1949 | self->m_y = y; | |
1950 | } | |
093d3ff1 | 1951 | static PyObject *wxPoint2D_Get(wxPoint2D *self){ |
5a446332 | 1952 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1953 | PyObject* tup = PyTuple_New(2); |
1954 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
1955 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
4f89f6a3 | 1956 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1957 | return tup; |
1958 | } | |
1959 | ||
1960 | #include "wx/wxPython/pyistream.h" | |
1961 | ||
093d3ff1 | 1962 | static wxPyInputStream *new_wxPyInputStream(PyObject *p){ |
d14a1e28 RD |
1963 | wxInputStream* wxis = wxPyCBInputStream::create(p); |
1964 | if (wxis) | |
1965 | return new wxPyInputStream(wxis); | |
1966 | else | |
1967 | return NULL; | |
1968 | } | |
994141e6 | 1969 | |
093d3ff1 | 1970 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1971 | SWIG_From_char(char c) |
994141e6 RD |
1972 | { |
1973 | return PyString_FromStringAndSize(&c,1); | |
1974 | } | |
1975 | ||
1976 | ||
093d3ff1 | 1977 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1978 | SWIG_From_unsigned_SS_long(unsigned long value) |
15afbcd0 RD |
1979 | { |
1980 | return (value > LONG_MAX) ? | |
1981 | PyLong_FromUnsignedLong(value) | |
093d3ff1 | 1982 | : PyInt_FromLong((long)(value)); |
15afbcd0 RD |
1983 | } |
1984 | ||
1985 | ||
c32bde28 | 1986 | /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */ |
093d3ff1 | 1987 | SWIGINTERN int |
c32bde28 | 1988 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize) |
994141e6 | 1989 | { |
15afbcd0 | 1990 | static swig_type_info* pchar_info = 0; |
c32bde28 | 1991 | char* vptr = 0; |
15afbcd0 | 1992 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); |
c32bde28 RD |
1993 | if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) { |
1994 | if (cptr) *cptr = vptr; | |
1995 | if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; | |
1996 | return SWIG_OLDOBJ; | |
15afbcd0 | 1997 | } else { |
093d3ff1 | 1998 | PyErr_Clear(); |
c32bde28 RD |
1999 | if (PyString_Check(obj)) { |
2000 | if (cptr) { | |
2001 | *cptr = PyString_AS_STRING(obj); | |
2002 | if (psize) { | |
2003 | *psize = PyString_GET_SIZE(obj) + 1; | |
2004 | } | |
2005 | } | |
2006 | return SWIG_PYSTR; | |
2007 | } | |
15afbcd0 | 2008 | } |
c32bde28 | 2009 | if (cptr) { |
093d3ff1 | 2010 | SWIG_type_error("char *", obj); |
c32bde28 RD |
2011 | } |
2012 | return 0; | |
994141e6 RD |
2013 | } |
2014 | ||
2015 | ||
093d3ff1 | 2016 | SWIGINTERN int |
c32bde28 | 2017 | SWIG_AsCharArray(PyObject *obj, char *val, size_t size) |
15afbcd0 RD |
2018 | { |
2019 | char* cptr; size_t csize; | |
c32bde28 RD |
2020 | if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) { |
2021 | /* in C you can do: | |
2022 | ||
15afbcd0 RD |
2023 | char x[5] = "hello"; |
2024 | ||
2025 | ie, assing the array using an extra '0' char. | |
2026 | */ | |
15afbcd0 | 2027 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; |
c32bde28 RD |
2028 | if (csize <= size) { |
2029 | if (val) { | |
2030 | if (csize) memcpy(val, cptr, csize); | |
2031 | if (csize < size) memset(val + csize, 0, size - csize); | |
2032 | } | |
2033 | return 1; | |
15afbcd0 RD |
2034 | } |
2035 | } | |
c32bde28 | 2036 | if (val) { |
093d3ff1 RD |
2037 | PyErr_Format(PyExc_TypeError, |
2038 | "a char array of maximum size %lu is expected", | |
2039 | (unsigned long) size); | |
c32bde28 RD |
2040 | } |
2041 | return 0; | |
15afbcd0 RD |
2042 | } |
2043 | ||
2044 | ||
093d3ff1 | 2045 | SWIGINTERN int |
c32bde28 RD |
2046 | SWIG_AsVal_char(PyObject *obj, char *val) |
2047 | { | |
093d3ff1 | 2048 | const char* errmsg = val ? "char" : (char*)0; |
c32bde28 RD |
2049 | long v; |
2050 | if (SWIG_AsVal_long(obj, &v)) { | |
2051 | if (SWIG_CheckLongInRange(v, CHAR_MIN,CHAR_MAX, errmsg)) { | |
093d3ff1 | 2052 | if (val) *val = (char)(v); |
c32bde28 RD |
2053 | return 1; |
2054 | } else { | |
2055 | return 0; | |
2056 | } | |
2057 | } else { | |
2058 | PyErr_Clear(); | |
2059 | return SWIG_AsCharArray(obj, val, 1); | |
2060 | } | |
2061 | } | |
2062 | ||
2063 | ||
093d3ff1 | 2064 | SWIGINTERNSHORT char |
c32bde28 RD |
2065 | SWIG_As_char(PyObject* obj) |
2066 | { | |
2067 | char v; | |
2068 | if (!SWIG_AsVal_char(obj, &v)) { | |
2069 | /* | |
093d3ff1 | 2070 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2071 | */ |
2072 | memset((void*)&v, 0, sizeof(char)); | |
994141e6 | 2073 | } |
c32bde28 | 2074 | return v; |
994141e6 RD |
2075 | } |
2076 | ||
c32bde28 | 2077 | |
093d3ff1 | 2078 | SWIGINTERNSHORT int |
c32bde28 | 2079 | SWIG_Check_char(PyObject* obj) |
15afbcd0 | 2080 | { |
c32bde28 | 2081 | return SWIG_AsVal_char(obj, (char*)0); |
15afbcd0 RD |
2082 | } |
2083 | ||
093d3ff1 RD |
2084 | |
2085 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
2086 | #define SWIG_From_long PyInt_FromLong | |
2087 | /*@@*/ | |
2088 | ||
2089 | static void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
d14a1e28 RD |
2090 | // We use only strings for the streams, not unicode |
2091 | PyObject* str = PyObject_Str(obj); | |
2092 | if (! str) { | |
2093 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
2094 | return; | |
2095 | } | |
2096 | self->Write(PyString_AS_STRING(str), | |
2097 | PyString_GET_SIZE(str)); | |
2098 | Py_DECREF(str); | |
2099 | } | |
2100 | ||
2101 | #include "wx/wxPython/pyistream.h" | |
2102 | ||
2103 | ||
2104 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
2105 | { | |
2106 | public: | |
2107 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
2108 | ||
2109 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
2110 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
2111 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
2112 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
2113 | ||
2114 | wxString GetProtocol(const wxString& location) { | |
2115 | return wxFileSystemHandler::GetProtocol(location); | |
2116 | } | |
2117 | ||
2118 | wxString GetLeftLocation(const wxString& location) { | |
2119 | return wxFileSystemHandler::GetLeftLocation(location); | |
2120 | } | |
2121 | ||
2122 | wxString GetAnchor(const wxString& location) { | |
2123 | return wxFileSystemHandler::GetAnchor(location); | |
2124 | } | |
2125 | ||
2126 | wxString GetRightLocation(const wxString& location) { | |
2127 | return wxFileSystemHandler::GetRightLocation(location); | |
2128 | } | |
2129 | ||
2130 | wxString GetMimeTypeFromExt(const wxString& location) { | |
2131 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
2132 | } | |
2133 | ||
2134 | PYPRIVATE; | |
2135 | }; | |
2136 | ||
2137 | ||
2138 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
2139 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
2140 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
2141 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
2142 | ||
2143 | ||
093d3ff1 | 2144 | SWIGINTERN int |
c32bde28 | 2145 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
994141e6 | 2146 | { |
c32bde28 RD |
2147 | if (obj == Py_True) { |
2148 | if (val) *val = true; | |
2149 | return 1; | |
2150 | } | |
2151 | if (obj == Py_False) { | |
2152 | if (val) *val = false; | |
2153 | return 1; | |
2154 | } | |
2155 | int res = 0; | |
2156 | if (SWIG_AsVal_int(obj, &res)) { | |
093d3ff1 | 2157 | if (val) *val = res ? true : false; |
c32bde28 | 2158 | return 1; |
093d3ff1 RD |
2159 | } else { |
2160 | PyErr_Clear(); | |
2161 | } | |
c32bde28 | 2162 | if (val) { |
093d3ff1 | 2163 | SWIG_type_error("bool", obj); |
c32bde28 RD |
2164 | } |
2165 | return 0; | |
994141e6 RD |
2166 | } |
2167 | ||
2168 | ||
093d3ff1 | 2169 | SWIGINTERNSHORT bool |
c32bde28 | 2170 | SWIG_As_bool(PyObject* obj) |
15afbcd0 | 2171 | { |
c32bde28 RD |
2172 | bool v; |
2173 | if (!SWIG_AsVal_bool(obj, &v)) { | |
2174 | /* | |
093d3ff1 | 2175 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2176 | */ |
2177 | memset((void*)&v, 0, sizeof(bool)); | |
15afbcd0 | 2178 | } |
c32bde28 RD |
2179 | return v; |
2180 | } | |
2181 | ||
2182 | ||
093d3ff1 | 2183 | SWIGINTERNSHORT int |
c32bde28 RD |
2184 | SWIG_Check_bool(PyObject* obj) |
2185 | { | |
2186 | return SWIG_AsVal_bool(obj, (bool*)0); | |
15afbcd0 RD |
2187 | } |
2188 | ||
093d3ff1 | 2189 | static wxString FileSystem_URLToFileName(wxString const &url){ |
2ef75293 RD |
2190 | wxFileName fname = wxFileSystem::URLToFileName(url); |
2191 | return fname.GetFullPath(); | |
2192 | } | |
d14a1e28 RD |
2193 | |
2194 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
2195 | wxImage& image, | |
2196 | long type) { | |
2197 | wxMemoryFSHandler::AddFile(filename, image, type); | |
2198 | } | |
2199 | ||
2200 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
2201 | const wxBitmap& bitmap, | |
2202 | long type) { | |
2203 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
2204 | } | |
2205 | ||
2206 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
2207 | PyObject* data) { | |
2ef75293 RD |
2208 | if (! PyString_Check(data)) { |
2209 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
2210 | "Expected string object")); | |
2211 | return; | |
2212 | } | |
2213 | ||
5a446332 | 2214 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
2ef75293 RD |
2215 | void* ptr = (void*)PyString_AsString(data); |
2216 | size_t size = PyString_Size(data); | |
2217 | wxPyEndBlockThreads(blocked); | |
2218 | ||
2219 | wxMemoryFSHandler::AddFile(filename, ptr, size); | |
d14a1e28 RD |
2220 | } |
2221 | ||
2222 | ||
2223 | #include "wx/wxPython/pyistream.h" | |
2224 | ||
994141e6 | 2225 | |
093d3ff1 | 2226 | SWIGINTERN int |
c32bde28 | 2227 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
15afbcd0 | 2228 | { |
c32bde28 RD |
2229 | long v = 0; |
2230 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
093d3ff1 | 2231 | SWIG_type_error("unsigned number", obj); |
15afbcd0 | 2232 | } |
c32bde28 RD |
2233 | else if (val) |
2234 | *val = (unsigned long)v; | |
2235 | return 1; | |
15afbcd0 RD |
2236 | } |
2237 | ||
2238 | ||
093d3ff1 | 2239 | SWIGINTERNSHORT int |
c32bde28 RD |
2240 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
2241 | unsigned long max_value, | |
2242 | const char *errmsg) | |
15afbcd0 | 2243 | { |
c32bde28 RD |
2244 | if (value > max_value) { |
2245 | if (errmsg) { | |
2246 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 2247 | "value %lu is greater than '%s' minimum %lu", |
c32bde28 | 2248 | value, errmsg, max_value); |
15afbcd0 | 2249 | } |
c32bde28 | 2250 | return 0; |
15afbcd0 | 2251 | } |
c32bde28 RD |
2252 | return 1; |
2253 | } | |
15afbcd0 RD |
2254 | |
2255 | ||
093d3ff1 | 2256 | SWIGINTERN int |
c32bde28 | 2257 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) |
994141e6 | 2258 | { |
093d3ff1 | 2259 | const char* errmsg = val ? "unsigned char" : (char*)0; |
c32bde28 RD |
2260 | unsigned long v; |
2261 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2262 | if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) { | |
093d3ff1 | 2263 | if (val) *val = (unsigned char)(v); |
c32bde28 RD |
2264 | return 1; |
2265 | } else { | |
2266 | return 0; | |
2267 | } | |
2268 | } else { | |
2269 | PyErr_Clear(); | |
2270 | } | |
2271 | if (val) { | |
093d3ff1 | 2272 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2273 | } |
2274 | return 0; | |
15afbcd0 RD |
2275 | } |
2276 | ||
2277 | ||
093d3ff1 | 2278 | SWIGINTERNSHORT unsigned char |
c32bde28 | 2279 | SWIG_As_unsigned_SS_char(PyObject* obj) |
15afbcd0 | 2280 | { |
c32bde28 RD |
2281 | unsigned char v; |
2282 | if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) { | |
2283 | /* | |
093d3ff1 | 2284 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2285 | */ |
2286 | memset((void*)&v, 0, sizeof(unsigned char)); | |
15afbcd0 | 2287 | } |
c32bde28 | 2288 | return v; |
994141e6 RD |
2289 | } |
2290 | ||
c32bde28 | 2291 | |
093d3ff1 | 2292 | SWIGINTERNSHORT int |
c32bde28 RD |
2293 | SWIG_Check_unsigned_SS_char(PyObject* obj) |
2294 | { | |
2295 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); | |
2296 | } | |
2297 | ||
2298 | ||
093d3ff1 RD |
2299 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
2300 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
2301 | /*@@*/ | |
2302 | ||
2303 | ||
f1cbd8fa RD |
2304 | |
2305 | SWIGINTERNSHORT unsigned long | |
2306 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
2307 | { | |
2308 | unsigned long v; | |
2309 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2310 | /* | |
2311 | this is needed to make valgrind/purify happier. | |
2312 | */ | |
2313 | memset((void*)&v, 0, sizeof(unsigned long)); | |
2314 | } | |
2315 | return v; | |
2316 | } | |
2317 | ||
2318 | ||
2319 | SWIGINTERNSHORT int | |
2320 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
2321 | { | |
2322 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
2323 | } | |
2324 | ||
2325 | static unsigned long wxImageHistogram_GetCount(wxImageHistogram *self,unsigned long key){ | |
2326 | wxImageHistogramEntry e = (*self)[key]; | |
2327 | return e.value; | |
2328 | } | |
2329 | static unsigned long wxImageHistogram_GetCountRGB(wxImageHistogram *self,unsigned char r,unsigned char g,unsigned char b){ | |
2330 | unsigned long key = wxImageHistogram::MakeKey(r, g, b); | |
2331 | wxImageHistogramEntry e = (*self)[key]; | |
2332 | return e.value; | |
2333 | } | |
2334 | static unsigned long wxImageHistogram_GetCountColour(wxImageHistogram *self,wxColour const &colour){ | |
2335 | unsigned long key = wxImageHistogram::MakeKey(colour.Red(), | |
2336 | colour.Green(), | |
2337 | colour.Blue()); | |
2338 | wxImageHistogramEntry e = (*self)[key]; | |
2339 | return e.value; | |
2340 | } | |
093d3ff1 | 2341 | static wxImage *new_wxImage(int width=0,int height=0,bool clear=true){ |
d14a1e28 RD |
2342 | if (width > 0 && height > 0) |
2343 | return new wxImage(width, height, clear); | |
2344 | else | |
2345 | return new wxImage; | |
2346 | } | |
093d3ff1 | 2347 | static wxImage *new_wxImage(wxBitmap const &bitmap){ |
d14a1e28 RD |
2348 | return new wxImage(bitmap.ConvertToImage()); |
2349 | } | |
093d3ff1 | 2350 | static wxImage *new_wxImage(int width,int height,unsigned char *data){ |
d14a1e28 RD |
2351 | // Copy the source data so the wxImage can clean it up later |
2352 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
2353 | if (copy == NULL) { | |
2354 | PyErr_NoMemory(); | |
2355 | return NULL; | |
2356 | } | |
2357 | memcpy(copy, data, width*height*3); | |
ae8162c8 | 2358 | return new wxImage(width, height, copy, false); |
d14a1e28 | 2359 | } |
093d3ff1 | 2360 | static wxImage *new_wxImage(int width,int height,unsigned char *data,unsigned char *alpha){ |
1823fbb4 RD |
2361 | // Copy the source data so the wxImage can clean it up later |
2362 | unsigned char* dcopy = (unsigned char*)malloc(width*height*3); | |
2363 | if (dcopy == NULL) { | |
2364 | PyErr_NoMemory(); | |
2365 | return NULL; | |
2366 | } | |
2367 | memcpy(dcopy, data, width*height*3); | |
2368 | unsigned char* acopy = (unsigned char*)malloc(width*height); | |
2369 | if (acopy == NULL) { | |
2370 | PyErr_NoMemory(); | |
2371 | return NULL; | |
2372 | } | |
2373 | memcpy(acopy, alpha, width*height); | |
2374 | ||
2375 | return new wxImage(width, height, dcopy, acopy, false); | |
2376 | } | |
093d3ff1 | 2377 | static wxSize wxImage_GetSize(wxImage *self){ |
b2df227b RD |
2378 | wxSize size(self->GetWidth(), self->GetHeight()); |
2379 | return size; | |
2380 | } | |
093d3ff1 | 2381 | static PyObject *wxImage_GetData(wxImage *self){ |
d14a1e28 RD |
2382 | unsigned char* data = self->GetData(); |
2383 | int len = self->GetWidth() * self->GetHeight() * 3; | |
2384 | PyObject* rv; | |
2385 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
2386 | return rv; | |
2387 | } | |
093d3ff1 | 2388 | static void wxImage_SetData(wxImage *self,PyObject *data){ |
d14a1e28 RD |
2389 | unsigned char* dataPtr; |
2390 | ||
2391 | if (! PyString_Check(data)) { | |
2ef75293 RD |
2392 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, |
2393 | "Expected string object")); | |
d14a1e28 RD |
2394 | return /* NULL */ ; |
2395 | } | |
2396 | ||
2397 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
2398 | dataPtr = (unsigned char*) malloc(len); | |
2399 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
2400 | self->SetData(dataPtr); | |
2401 | // wxImage takes ownership of dataPtr... | |
2402 | } | |
093d3ff1 | 2403 | static PyObject *wxImage_GetDataBuffer(wxImage *self){ |
d14a1e28 RD |
2404 | unsigned char* data = self->GetData(); |
2405 | int len = self->GetWidth() * self->GetHeight() * 3; | |
2406 | PyObject* rv; | |
2407 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
2408 | return rv; | |
2409 | } | |
093d3ff1 | 2410 | static void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ |
d14a1e28 RD |
2411 | unsigned char* buffer; |
2412 | int size; | |
2413 | ||
5a446332 | 2414 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2415 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
2416 | goto done; | |
2417 | ||
2418 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
2419 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
2420 | goto done; | |
2421 | } | |
2422 | self->SetData(buffer); | |
2423 | done: | |
4f89f6a3 | 2424 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 2425 | } |
093d3ff1 | 2426 | static PyObject *wxImage_GetAlphaData(wxImage *self){ |
d14a1e28 RD |
2427 | unsigned char* data = self->GetAlpha(); |
2428 | if (! data) { | |
2429 | RETURN_NONE(); | |
2430 | } else { | |
2431 | int len = self->GetWidth() * self->GetHeight(); | |
2432 | PyObject* rv; | |
2433 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
2434 | return rv; | |
2435 | } | |
2436 | } | |
093d3ff1 | 2437 | static void wxImage_SetAlphaData(wxImage *self,PyObject *data){ |
d14a1e28 RD |
2438 | unsigned char* dataPtr; |
2439 | ||
2440 | if (! PyString_Check(data)) { | |
2441 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
2442 | return /* NULL */ ; | |
2443 | } | |
2444 | ||
2445 | size_t len = self->GetWidth() * self->GetHeight(); | |
2446 | dataPtr = (unsigned char*) malloc(len); | |
2447 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
2448 | self->SetAlpha(dataPtr); | |
2449 | // wxImage takes ownership of dataPtr... | |
2450 | } | |
093d3ff1 | 2451 | static PyObject *wxImage_GetAlphaBuffer(wxImage *self){ |
d14a1e28 RD |
2452 | unsigned char* data = self->GetAlpha(); |
2453 | int len = self->GetWidth() * self->GetHeight(); | |
2454 | PyObject* rv; | |
2455 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
2456 | return rv; | |
2457 | } | |
093d3ff1 | 2458 | static void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ |
d14a1e28 RD |
2459 | unsigned char* buffer; |
2460 | int size; | |
2461 | ||
5a446332 | 2462 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2463 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
2464 | goto done; | |
2465 | ||
2466 | if (size != self->GetWidth() * self->GetHeight()) { | |
2467 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
2468 | goto done; | |
2469 | } | |
2470 | self->SetAlpha(buffer); | |
2471 | done: | |
4f89f6a3 | 2472 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 2473 | } |
093d3ff1 | 2474 | static wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth=-1){ |
1fbf26be | 2475 | wxBitmap bitmap(*self, depth); |
d14a1e28 RD |
2476 | return bitmap; |
2477 | } | |
093d3ff1 | 2478 | static wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ |
d14a1e28 RD |
2479 | wxImage mono = self->ConvertToMono( red, green, blue ); |
2480 | wxBitmap bitmap( mono, 1 ); | |
2481 | return bitmap; | |
2482 | } | |
0c243d93 | 2483 | static const wxString wxPyIMAGE_OPTION_FILENAME(wxIMAGE_OPTION_FILENAME); |
d14a1e28 RD |
2484 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); |
2485 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
2486 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
2487 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
0c243d93 RD |
2488 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONX(wxIMAGE_OPTION_RESOLUTIONX); |
2489 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONY(wxIMAGE_OPTION_RESOLUTIONY); | |
d14a1e28 | 2490 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); |
24d7cbea | 2491 | static const wxString wxPyIMAGE_OPTION_QUALITY(wxIMAGE_OPTION_QUALITY); |
0c243d93 RD |
2492 | static const wxString wxPyIMAGE_OPTION_BITSPERSAMPLE(wxIMAGE_OPTION_BITSPERSAMPLE); |
2493 | static const wxString wxPyIMAGE_OPTION_SAMPLESPERPIXEL(wxIMAGE_OPTION_SAMPLESPERPIXEL); | |
2494 | static const wxString wxPyIMAGE_OPTION_COMPRESSION(wxIMAGE_OPTION_COMPRESSION); | |
2495 | static const wxString wxPyIMAGE_OPTION_IMAGEDESCRIPTOR(wxIMAGE_OPTION_IMAGEDESCRIPTOR); | |
b9d6a5f3 RD |
2496 | static const wxString wxPyIMAGE_OPTION_PNG_FORMAT(wxIMAGE_OPTION_PNG_FORMAT); |
2497 | static const wxString wxPyIMAGE_OPTION_PNG_BITDEPTH(wxIMAGE_OPTION_PNG_BITDEPTH); | |
c0de73ae RD |
2498 | |
2499 | #include <wx/quantize.h> | |
2500 | ||
093d3ff1 | 2501 | static bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours=236,int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE){ |
c0de73ae RD |
2502 | return wxQuantize::Quantize(src, dest, |
2503 | //NULL, // palette | |
2504 | desiredNoColours, | |
2505 | NULL, // eightBitData | |
2506 | flags); | |
2507 | } | |
093d3ff1 | 2508 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
d14a1e28 RD |
2509 | if (PyCallable_Check(func)) { |
2510 | self->Connect(id, lastId, eventType, | |
2511 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
2512 | new wxPyCallback(func)); | |
2513 | } | |
2514 | else if (func == Py_None) { | |
2515 | self->Disconnect(id, lastId, eventType, | |
2516 | (wxObjectEventFunction) | |
2517 | &wxPyCallback::EventThunker); | |
2518 | } | |
2519 | else { | |
a95a7133 RD |
2520 | wxPyBLOCK_THREADS( |
2521 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
d14a1e28 RD |
2522 | } |
2523 | } | |
093d3ff1 | 2524 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId=-1,wxEventType eventType=wxEVT_NULL){ |
d14a1e28 RD |
2525 | return self->Disconnect(id, lastId, eventType, |
2526 | (wxObjectEventFunction) | |
2527 | &wxPyCallback::EventThunker); | |
2528 | } | |
093d3ff1 | 2529 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self,bool incref=true){ |
d14a1e28 | 2530 | if (_self && _self != Py_None) { |
689b42ee | 2531 | self->SetClientObject(new wxPyOORClientData(_self, incref)); |
d14a1e28 RD |
2532 | } |
2533 | else { | |
2534 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
2535 | if (data) { | |
2536 | self->SetClientObject(NULL); // This will delete it too | |
2537 | } | |
2538 | } | |
2539 | } | |
c32bde28 | 2540 | |
093d3ff1 | 2541 | static int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
3b7224dc | 2542 | #if wxUSE_UNICODE |
19272049 | 2543 | return self->GetUnicodeKey(); |
3b7224dc | 2544 | #else |
d14a1e28 | 2545 | return 0; |
3b7224dc | 2546 | #endif |
d14a1e28 | 2547 | } |
994141e6 | 2548 | |
15afbcd0 | 2549 | #if UINT_MAX < LONG_MAX |
093d3ff1 | 2550 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
2551 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
2552 | /*@@*/ | |
15afbcd0 | 2553 | #else |
093d3ff1 | 2554 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
2555 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
2556 | /*@@*/ | |
15afbcd0 | 2557 | #endif |
994141e6 RD |
2558 | |
2559 | ||
15afbcd0 | 2560 | #if UINT_MAX != ULONG_MAX |
093d3ff1 | 2561 | SWIGINTERN int |
c32bde28 | 2562 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
994141e6 | 2563 | { |
093d3ff1 | 2564 | const char* errmsg = val ? "unsigned int" : (char*)0; |
c32bde28 RD |
2565 | unsigned long v; |
2566 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2567 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
093d3ff1 | 2568 | if (val) *val = (unsigned int)(v); |
c32bde28 RD |
2569 | return 1; |
2570 | } | |
2571 | } else { | |
2572 | PyErr_Clear(); | |
2573 | } | |
2574 | if (val) { | |
093d3ff1 | 2575 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2576 | } |
2577 | return 0; | |
15afbcd0 RD |
2578 | } |
2579 | #else | |
093d3ff1 | 2580 | SWIGINTERNSHORT unsigned int |
c32bde28 RD |
2581 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2582 | { | |
2583 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2584 | } | |
15afbcd0 RD |
2585 | #endif |
2586 | ||
2587 | ||
093d3ff1 | 2588 | SWIGINTERNSHORT unsigned int |
c32bde28 | 2589 | SWIG_As_unsigned_SS_int(PyObject* obj) |
15afbcd0 | 2590 | { |
c32bde28 RD |
2591 | unsigned int v; |
2592 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2593 | /* | |
093d3ff1 | 2594 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2595 | */ |
2596 | memset((void*)&v, 0, sizeof(unsigned int)); | |
15afbcd0 | 2597 | } |
c32bde28 RD |
2598 | return v; |
2599 | } | |
2600 | ||
2601 | ||
093d3ff1 | 2602 | SWIGINTERNSHORT int |
c32bde28 RD |
2603 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
2604 | { | |
2605 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
994141e6 RD |
2606 | } |
2607 | ||
093d3ff1 | 2608 | static void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
d14a1e28 RD |
2609 | self->m_size = size; |
2610 | } | |
093d3ff1 | 2611 | static PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ |
d14a1e28 RD |
2612 | int count = self->GetNumberOfFiles(); |
2613 | wxString* files = self->GetFiles(); | |
2614 | PyObject* list = PyList_New(count); | |
2615 | ||
2616 | if (!list) { | |
2617 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
2618 | return NULL; | |
2619 | } | |
2620 | ||
2621 | for (int i=0; i<count; i++) { | |
1fc9204a | 2622 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
2623 | } |
2624 | return list; | |
2625 | } | |
2626 | ||
2627 | ||
093d3ff1 | 2628 | static wxPyApp *new_wxPyApp(){ |
d14a1e28 RD |
2629 | wxPythonApp = new wxPyApp(); |
2630 | return wxPythonApp; | |
2631 | } | |
093d3ff1 | 2632 | static int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
2633 | |
2634 | void wxApp_CleanUp() { | |
2635 | __wxPyCleanup(); | |
2636 | } | |
2637 | ||
2638 | ||
db3e571a | 2639 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d14a1e28 RD |
2640 | |
2641 | ||
093d3ff1 | 2642 | SWIGINTERNSHORT int |
5cbf236d RD |
2643 | SWIG_AsCharPtr(PyObject *obj, char **val) |
2644 | { | |
093d3ff1 | 2645 | if (SWIG_AsCharPtrAndSize(obj, val, (size_t*)(0))) { |
5cbf236d RD |
2646 | return 1; |
2647 | } | |
2648 | if (val) { | |
093d3ff1 RD |
2649 | PyErr_Clear(); |
2650 | SWIG_type_error("char *", obj); | |
5cbf236d RD |
2651 | } |
2652 | return 0; | |
2653 | } | |
2654 | ||
2655 | ||
093d3ff1 | 2656 | SWIGINTERN PyObject * |
5cbf236d RD |
2657 | SWIG_FromCharPtr(const char* cptr) |
2658 | { | |
2659 | if (cptr) { | |
2660 | size_t size = strlen(cptr); | |
2661 | if (size > INT_MAX) { | |
093d3ff1 | 2662 | return SWIG_NewPointerObj((char*)(cptr), |
5cbf236d RD |
2663 | SWIG_TypeQuery("char *"), 0); |
2664 | } else { | |
2665 | if (size != 0) { | |
2666 | return PyString_FromStringAndSize(cptr, size); | |
2667 | } else { | |
2668 | return PyString_FromString(cptr); | |
2669 | } | |
2670 | } | |
2671 | } | |
2672 | Py_INCREF(Py_None); | |
2673 | return Py_None; | |
2674 | } | |
2675 | ||
2676 | ||
ae8162c8 RD |
2677 | #ifdef __WXMAC__ |
2678 | ||
2679 | // A dummy class that raises an exception if used... | |
2680 | class wxEventLoop | |
2681 | { | |
2682 | public: | |
2683 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
2684 | int Run() { return 0; } | |
2685 | void Exit(int rc = 0) {} | |
2686 | bool Pending() const { return false; } | |
2687 | bool Dispatch() { return false; } | |
2688 | bool IsRunning() const { return false; } | |
2689 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
2690 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
2691 | }; | |
2692 | ||
2693 | #else | |
2694 | ||
2ef75293 RD |
2695 | #include <wx/evtloop.h> |
2696 | ||
ae8162c8 RD |
2697 | #endif |
2698 | ||
2ef75293 | 2699 | |
d14a1e28 | 2700 | |
e811c8ce | 2701 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
093d3ff1 RD |
2702 | static wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } |
2703 | static void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } | |
2704 | static PyObject *wxWindow_GetChildren(wxWindow *self){ | |
d14a1e28 RD |
2705 | wxWindowList& list = self->GetChildren(); |
2706 | return wxPy_ConvertList(&list); | |
2707 | } | |
093d3ff1 | 2708 | static bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ |
74a57fcd RD |
2709 | #if wxUSE_HOTKEY |
2710 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
2711 | #else | |
ae8162c8 | 2712 | return false; |
74a57fcd | 2713 | #endif |
d14a1e28 | 2714 | } |
093d3ff1 | 2715 | static bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ |
d14a1e28 RD |
2716 | |
2717 | ||
2718 | ||
ae8162c8 | 2719 | return false; |
d14a1e28 RD |
2720 | |
2721 | } | |
093d3ff1 | 2722 | static long wxWindow_GetHandle(wxWindow *self){ |
d14a1e28 RD |
2723 | return wxPyGetWinHandle(self); |
2724 | } | |
093d3ff1 | 2725 | static void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
7e63a440 RD |
2726 | self->AssociateHandle((WXWidget)handle); |
2727 | } | |
d14a1e28 RD |
2728 | |
2729 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
2730 | return wxWindow::FindWindowById(id, parent); | |
2731 | } | |
2732 | ||
2733 | wxWindow* wxFindWindowByName( const wxString& name, | |
2734 | const wxWindow *parent = NULL ) { | |
2735 | return wxWindow::FindWindowByName(name, parent); | |
2736 | } | |
2737 | ||
2738 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
2739 | const wxWindow *parent = NULL ) { | |
2740 | return wxWindow::FindWindowByLabel(label, parent); | |
2741 | } | |
2742 | ||
2743 | ||
d14a1e28 | 2744 | #ifdef __WXMSW__ |
4276dc52 RD |
2745 | #include <wx/msw/private.h> // to get wxGetWindowId |
2746 | #endif | |
2747 | ||
2748 | ||
2749 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
2750 | #ifdef __WXMSW__ | |
2751 | WXHWND hWnd = (WXHWND)_hWnd; | |
2752 | long id = wxGetWindowId(hWnd); | |
d14a1e28 | 2753 | wxWindow* win = new wxWindow; |
4276dc52 RD |
2754 | parent->AddChild(win); |
2755 | win->SetEventHandler(win); | |
2756 | win->SetHWND(hWnd); | |
2757 | win->SetId(id); | |
2758 | win->SubclassWin(hWnd); | |
2759 | win->AdoptAttributesFromHWND(); | |
2760 | win->SetupColours(); | |
d14a1e28 RD |
2761 | return win; |
2762 | #else | |
39f61e25 | 2763 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
2764 | return NULL; |
2765 | #endif | |
2766 | } | |
2767 | ||
2768 | ||
2769 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
2770 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
2771 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
2772 | ||
2773 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
2774 | ||
093d3ff1 RD |
2775 | static void wxMenu_Destroy(wxMenu *self){ delete self; } |
2776 | static PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
d14a1e28 RD |
2777 | wxMenuItemList& list = self->GetMenuItems(); |
2778 | return wxPy_ConvertList(&list); | |
2779 | } | |
c1280d1e RD |
2780 | static void wxMenuItem_SetFont(wxMenuItem *self,wxFont const &font){} |
2781 | static wxFont wxMenuItem_GetFont(wxMenuItem *self){ return wxNullFont; } | |
2782 | static void wxMenuItem_SetTextColour(wxMenuItem *self,wxColour const &colText){} | |
2783 | static wxColour wxMenuItem_GetTextColour(wxMenuItem *self){ return wxNullColour; } | |
2784 | static void wxMenuItem_SetBackgroundColour(wxMenuItem *self,wxColour const &colBack){} | |
2785 | static wxColour wxMenuItem_GetBackgroundColour(wxMenuItem *self){ return wxNullColour; } | |
2786 | static void wxMenuItem_SetBitmaps(wxMenuItem *self,wxBitmap const &bmpChecked,wxBitmap const &bmpUnchecked=wxNullBitmap){} | |
2787 | static void wxMenuItem_SetDisabledBitmap(wxMenuItem *self,wxBitmap const &bmpDisabled){} | |
2788 | static wxBitmap const &wxMenuItem_GetDisabledBitmap(wxMenuItem const *self){ return wxNullBitmap; } | |
2789 | static void wxMenuItem_SetMarginWidth(wxMenuItem *self,int nWidth){} | |
2790 | static int wxMenuItem_GetMarginWidth(wxMenuItem *self){ return 0; } | |
093d3ff1 | 2791 | static int MenuItem_GetDefaultMarginWidth(){ return 0; } |
c1280d1e RD |
2792 | static bool wxMenuItem_IsOwnerDrawn(wxMenuItem *self){ return false; } |
2793 | static void wxMenuItem_SetOwnerDrawn(wxMenuItem *self,bool ownerDrawn=true){} | |
2794 | static void wxMenuItem_ResetOwnerDrawn(wxMenuItem *self){} | |
b2dc1044 | 2795 | static const wxString wxPyControlNameStr(wxControlNameStr); |
093d3ff1 | 2796 | static int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData=NULL){ |
d14a1e28 RD |
2797 | if (clientData) { |
2798 | wxPyClientData* data = new wxPyClientData(clientData); | |
2799 | return self->Append(item, data); | |
2800 | } else | |
2801 | return self->Append(item); | |
2802 | } | |
093d3ff1 | 2803 | static int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d14a1e28 RD |
2804 | if (clientData) { |
2805 | wxPyClientData* data = new wxPyClientData(clientData); | |
2806 | return self->Insert(item, pos, data); | |
2807 | } else | |
2808 | return self->Insert(item, pos); | |
2809 | } | |
093d3ff1 | 2810 | static PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ |
d14a1e28 RD |
2811 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); |
2812 | if (data) { | |
2813 | Py_INCREF(data->m_obj); | |
2814 | return data->m_obj; | |
2815 | } else { | |
2816 | Py_INCREF(Py_None); | |
2817 | return Py_None; | |
2818 | } | |
2819 | } | |
093d3ff1 | 2820 | static void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ |
d14a1e28 RD |
2821 | wxPyClientData* data = new wxPyClientData(clientData); |
2822 | self->SetClientObject(n, data); | |
2823 | } | |
2824 | ||
2825 | ||
093d3ff1 | 2826 | static wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2827 | wxPyUserData* data = NULL; |
2828 | if ( userData ) { | |
5a446332 | 2829 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
2830 | data = new wxPyUserData(userData); |
2831 | wxPyEndBlockThreads(blocked); | |
2832 | } | |
2833 | return new wxSizerItem(window, proportion, flag, border, data); | |
2834 | } | |
093d3ff1 | 2835 | static wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2836 | wxPyUserData* data = NULL; |
2837 | if ( userData ) { | |
5a446332 | 2838 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
2839 | data = new wxPyUserData(userData); |
2840 | wxPyEndBlockThreads(blocked); | |
2841 | } | |
2842 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
2843 | } | |
093d3ff1 | 2844 | static wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
2845 | wxPyUserData* data = NULL; |
2846 | if ( userData ) { | |
5a446332 | 2847 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
2848 | data = new wxPyUserData(userData); |
2849 | wxPyEndBlockThreads(blocked); | |
2850 | } | |
2851 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
2852 | } | |
994141e6 | 2853 | |
15afbcd0 | 2854 | #include <float.h> |
093d3ff1 | 2855 | SWIGINTERN int |
c32bde28 RD |
2856 | SWIG_CheckDoubleInRange(double value, double min_value, |
2857 | double max_value, const char* errmsg) | |
2858 | { | |
2859 | if (value < min_value) { | |
2860 | if (errmsg) { | |
2861 | PyErr_Format(PyExc_OverflowError, | |
2862 | "value %g is less than %s minimum %g", | |
2863 | value, errmsg, min_value); | |
2864 | } | |
2865 | return 0; | |
2866 | } else if (value > max_value) { | |
2867 | if (errmsg) { | |
2868 | PyErr_Format(PyExc_OverflowError, | |
2869 | "value %g is greater than %s maximum %g", | |
2870 | value, errmsg, max_value); | |
2871 | } | |
2872 | return 0; | |
2873 | } | |
2874 | return 1; | |
2875 | } | |
2876 | ||
15afbcd0 | 2877 | |
093d3ff1 | 2878 | SWIGINTERN int |
c32bde28 | 2879 | SWIG_AsVal_float(PyObject *obj, float *val) |
15afbcd0 | 2880 | { |
093d3ff1 | 2881 | const char* errmsg = val ? "float" : (char*)0; |
c32bde28 RD |
2882 | double v; |
2883 | if (SWIG_AsVal_double(obj, &v)) { | |
2884 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
093d3ff1 | 2885 | if (val) *val = (float)(v); |
c32bde28 | 2886 | return 1; |
15afbcd0 | 2887 | } else { |
c32bde28 | 2888 | return 0; |
15afbcd0 | 2889 | } |
c32bde28 RD |
2890 | } else { |
2891 | PyErr_Clear(); | |
15afbcd0 | 2892 | } |
c32bde28 | 2893 | if (val) { |
093d3ff1 | 2894 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2895 | } |
2896 | return 0; | |
15afbcd0 RD |
2897 | } |
2898 | ||
2899 | ||
093d3ff1 | 2900 | SWIGINTERNSHORT float |
c32bde28 | 2901 | SWIG_As_float(PyObject* obj) |
994141e6 | 2902 | { |
c32bde28 RD |
2903 | float v; |
2904 | if (!SWIG_AsVal_float(obj, &v)) { | |
2905 | /* | |
093d3ff1 | 2906 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2907 | */ |
2908 | memset((void*)&v, 0, sizeof(float)); | |
2909 | } | |
2910 | return v; | |
15afbcd0 RD |
2911 | } |
2912 | ||
c32bde28 | 2913 | |
093d3ff1 | 2914 | SWIGINTERNSHORT int |
c32bde28 | 2915 | SWIG_Check_float(PyObject* obj) |
15afbcd0 | 2916 | { |
c32bde28 | 2917 | return SWIG_AsVal_float(obj, (float*)0); |
994141e6 RD |
2918 | } |
2919 | ||
093d3ff1 RD |
2920 | |
2921 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
2922 | #define SWIG_From_float PyFloat_FromDouble | |
2923 | /*@@*/ | |
2924 | ||
2925 | static PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
d14a1e28 RD |
2926 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); |
2927 | if (data) { | |
2928 | Py_INCREF(data->m_obj); | |
2929 | return data->m_obj; | |
2930 | } else { | |
2931 | Py_INCREF(Py_None); | |
2932 | return Py_None; | |
2933 | } | |
2934 | } | |
2935 | ||
2936 | // Figure out the type of the sizer item | |
2937 | ||
2938 | struct wxPySizerItemInfo { | |
2939 | wxPySizerItemInfo() | |
ae8162c8 RD |
2940 | : window(NULL), sizer(NULL), gotSize(false), |
2941 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d14a1e28 | 2942 | {} |
b9d6a5f3 | 2943 | |
d14a1e28 RD |
2944 | wxWindow* window; |
2945 | wxSizer* sizer; | |
2946 | bool gotSize; | |
2947 | wxSize size; | |
2948 | bool gotPos; | |
2949 | int pos; | |
2950 | }; | |
b9d6a5f3 | 2951 | |
d14a1e28 RD |
2952 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { |
2953 | ||
2954 | wxPySizerItemInfo info; | |
2955 | wxSize size; | |
2956 | wxSize* sizePtr = &size; | |
2957 | ||
2958 | // Find out what the type of the item is | |
2959 | // try wxWindow | |
2960 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
2961 | PyErr_Clear(); | |
2962 | info.window = NULL; | |
b9d6a5f3 | 2963 | |
d14a1e28 RD |
2964 | // try wxSizer |
2965 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
2966 | PyErr_Clear(); | |
2967 | info.sizer = NULL; | |
b9d6a5f3 | 2968 | |
d14a1e28 RD |
2969 | // try wxSize or (w,h) |
2970 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
2971 | info.size = *sizePtr; | |
ae8162c8 | 2972 | info.gotSize = true; |
d14a1e28 RD |
2973 | } |
2974 | ||
2975 | // or a single int | |
2976 | if (checkIdx && PyInt_Check(item)) { | |
2977 | info.pos = PyInt_AsLong(item); | |
ae8162c8 | 2978 | info.gotPos = true; |
d14a1e28 RD |
2979 | } |
2980 | } | |
2981 | } | |
2982 | ||
2983 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
2984 | // no expected type, figure out what kind of error message to generate | |
2985 | if ( !checkSize && !checkIdx ) | |
2986 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
2987 | else if ( checkSize && !checkIdx ) | |
2988 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
2989 | else if ( !checkSize && checkIdx) | |
2990 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
2991 | else | |
2992 | // can this one happen? | |
2993 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
2994 | } | |
2995 | ||
2996 | return info; | |
2997 | } | |
2998 | ||
093d3ff1 | 2999 | static void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ |
b0f7404b RD |
3000 | if (!self->GetClientObject()) |
3001 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d14a1e28 | 3002 | } |
093d3ff1 | 3003 | static wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
b9d6a5f3 | 3004 | |
d14a1e28 | 3005 | wxPyUserData* data = NULL; |
5a446332 | 3006 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3007 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d14a1e28 RD |
3008 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3009 | data = new wxPyUserData(userData); | |
4f89f6a3 | 3010 | wxPyEndBlockThreads(blocked); |
b9d6a5f3 | 3011 | |
d14a1e28 RD |
3012 | // Now call the real Add method if a valid item type was found |
3013 | if ( info.window ) | |
d3b6e4ff | 3014 | return self->Add(info.window, proportion, flag, border, data); |
d14a1e28 | 3015 | else if ( info.sizer ) |
d3b6e4ff | 3016 | return self->Add(info.sizer, proportion, flag, border, data); |
d14a1e28 | 3017 | else if (info.gotSize) |
d3b6e4ff RD |
3018 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), |
3019 | proportion, flag, border, data); | |
3020 | else | |
3021 | return NULL; | |
d14a1e28 | 3022 | } |
093d3ff1 | 3023 | static wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
d14a1e28 RD |
3024 | |
3025 | wxPyUserData* data = NULL; | |
5a446332 | 3026 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3027 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d14a1e28 RD |
3028 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3029 | data = new wxPyUserData(userData); | |
4f89f6a3 | 3030 | wxPyEndBlockThreads(blocked); |
b9d6a5f3 | 3031 | |
d14a1e28 RD |
3032 | // Now call the real Insert method if a valid item type was found |
3033 | if ( info.window ) | |
d3b6e4ff | 3034 | return self->Insert(before, info.window, proportion, flag, border, data); |
d14a1e28 | 3035 | else if ( info.sizer ) |
d3b6e4ff | 3036 | return self->Insert(before, info.sizer, proportion, flag, border, data); |
d14a1e28 | 3037 | else if (info.gotSize) |
d3b6e4ff RD |
3038 | return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), |
3039 | proportion, flag, border, data); | |
3040 | else | |
3041 | return NULL; | |
d14a1e28 | 3042 | } |
093d3ff1 | 3043 | static wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){ |
d14a1e28 RD |
3044 | |
3045 | wxPyUserData* data = NULL; | |
5a446332 | 3046 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3047 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d14a1e28 RD |
3048 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3049 | data = new wxPyUserData(userData); | |
4f89f6a3 | 3050 | wxPyEndBlockThreads(blocked); |
b9d6a5f3 | 3051 | |
d14a1e28 RD |
3052 | // Now call the real Prepend method if a valid item type was found |
3053 | if ( info.window ) | |
d3b6e4ff | 3054 | return self->Prepend(info.window, proportion, flag, border, data); |
d14a1e28 | 3055 | else if ( info.sizer ) |
d3b6e4ff | 3056 | return self->Prepend(info.sizer, proportion, flag, border, data); |
d14a1e28 | 3057 | else if (info.gotSize) |
d3b6e4ff RD |
3058 | return self->Prepend(info.size.GetWidth(), info.size.GetHeight(), |
3059 | proportion, flag, border, data); | |
3060 | else | |
3061 | return NULL; | |
d14a1e28 | 3062 | } |
093d3ff1 | 3063 | static bool wxSizer_Remove(wxSizer *self,PyObject *item){ |
5a446332 | 3064 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3065 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
4f89f6a3 | 3066 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3067 | if ( info.window ) |
3068 | return self->Remove(info.window); | |
3069 | else if ( info.sizer ) | |
3070 | return self->Remove(info.sizer); | |
3071 | else if ( info.gotPos ) | |
3072 | return self->Remove(info.pos); | |
b9d6a5f3 | 3073 | else |
ae8162c8 | 3074 | return false; |
d14a1e28 | 3075 | } |
093d3ff1 | 3076 | static bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
5a446332 | 3077 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3078 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1c0f361b RD |
3079 | wxPyEndBlockThreads(blocked); |
3080 | if ( info.window ) | |
3081 | return self->Detach(info.window); | |
3082 | else if ( info.sizer ) | |
3083 | return self->Detach(info.sizer); | |
3084 | else if ( info.gotPos ) | |
3085 | return self->Detach(info.pos); | |
b9d6a5f3 | 3086 | else |
ae8162c8 | 3087 | return false; |
1c0f361b | 3088 | } |
093d3ff1 | 3089 | static wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){ |
5a446332 | 3090 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d3b6e4ff RD |
3091 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
3092 | wxPyEndBlockThreads(blocked); | |
3093 | if ( info.window ) | |
3094 | return self->GetItem(info.window); | |
3095 | else if ( info.sizer ) | |
3096 | return self->GetItem(info.sizer); | |
3097 | else if ( info.gotPos ) | |
3098 | return self->GetItem(info.pos); | |
3099 | else | |
3100 | return NULL; | |
3101 | } | |
093d3ff1 | 3102 | static void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
5a446332 | 3103 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3104 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
4f89f6a3 | 3105 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3106 | if ( info.window ) |
3107 | self->SetItemMinSize(info.window, size); | |
3108 | else if ( info.sizer ) | |
3109 | self->SetItemMinSize(info.sizer, size); | |
3110 | else if ( info.gotPos ) | |
3111 | self->SetItemMinSize(info.pos, size); | |
3112 | } | |
093d3ff1 | 3113 | static PyObject *wxSizer_GetChildren(wxSizer *self){ |
d14a1e28 RD |
3114 | wxSizerItemList& list = self->GetChildren(); |
3115 | return wxPy_ConvertList(&list); | |
3116 | } | |
093d3ff1 | 3117 | static bool wxSizer_Show(wxSizer *self,PyObject *item,bool show=true,bool recursive=false){ |
5a446332 | 3118 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3119 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
03e37cd5 | 3120 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 3121 | if ( info.window ) |
7e63a440 | 3122 | return self->Show(info.window, show, recursive); |
d14a1e28 | 3123 | else if ( info.sizer ) |
7e63a440 | 3124 | return self->Show(info.sizer, show, recursive); |
248ed943 | 3125 | else if ( info.gotPos ) |
7e63a440 | 3126 | return self->Show(info.pos, show); |
ae8162c8 RD |
3127 | else |
3128 | return false; | |
d14a1e28 | 3129 | } |
093d3ff1 | 3130 | static bool wxSizer_IsShown(wxSizer *self,PyObject *item){ |
5a446332 | 3131 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3132 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
03e37cd5 | 3133 | wxPyEndBlockThreads(blocked); |
b9d6a5f3 | 3134 | if ( info.window ) |
d14a1e28 | 3135 | return self->IsShown(info.window); |
b9d6a5f3 | 3136 | else if ( info.sizer ) |
d14a1e28 | 3137 | return self->IsShown(info.sizer); |
248ed943 RD |
3138 | else if ( info.gotPos ) |
3139 | return self->IsShown(info.pos); | |
d14a1e28 | 3140 | else |
ae8162c8 | 3141 | return false; |
d14a1e28 RD |
3142 | } |
3143 | ||
b9d6a5f3 | 3144 | // See pyclasses.h |
d14a1e28 RD |
3145 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); |
3146 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
3147 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
3148 | ||
3149 | ||
3150 | ||
3151 | ||
3152 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
3153 | { | |
4f89f6a3 RD |
3154 | if (source == Py_None) { |
3155 | **obj = wxGBPosition(-1,-1); | |
ae8162c8 | 3156 | return true; |
4f89f6a3 | 3157 | } |
d14a1e28 RD |
3158 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); |
3159 | } | |
3160 | ||
3161 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
3162 | { | |
4f89f6a3 RD |
3163 | if (source == Py_None) { |
3164 | **obj = wxGBSpan(-1,-1); | |
ae8162c8 | 3165 | return true; |
4f89f6a3 | 3166 | } |
d14a1e28 RD |
3167 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); |
3168 | } | |
3169 | ||
3170 | ||
093d3ff1 | 3171 | static void wxGBPosition_Set(wxGBPosition *self,int row=0,int col=0){ |
e811c8ce RD |
3172 | self->SetRow(row); |
3173 | self->SetCol(col); | |
3174 | } | |
093d3ff1 | 3175 | static PyObject *wxGBPosition_Get(wxGBPosition *self){ |
5a446332 | 3176 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3177 | PyObject* tup = PyTuple_New(2); |
3178 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
3179 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
4f89f6a3 | 3180 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3181 | return tup; |
3182 | } | |
093d3ff1 | 3183 | static void wxGBSpan_Set(wxGBSpan *self,int rowspan=1,int colspan=1){ |
e811c8ce RD |
3184 | self->SetRowspan(rowspan); |
3185 | self->SetColspan(colspan); | |
3186 | } | |
093d3ff1 | 3187 | static PyObject *wxGBSpan_Get(wxGBSpan *self){ |
5a446332 | 3188 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3189 | PyObject* tup = PyTuple_New(2); |
3190 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
3191 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
4f89f6a3 | 3192 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3193 | return tup; |
3194 | } | |
093d3ff1 | 3195 | static wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3196 | wxPyUserData* data = NULL; |
3197 | if ( userData ) { | |
5a446332 | 3198 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
3199 | data = new wxPyUserData(userData); |
3200 | wxPyEndBlockThreads(blocked); | |
3201 | } | |
3202 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
3203 | } | |
093d3ff1 | 3204 | static wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3205 | wxPyUserData* data = NULL; |
3206 | if ( userData ) { | |
5a446332 | 3207 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
3208 | data = new wxPyUserData(userData); |
3209 | wxPyEndBlockThreads(blocked); | |
3210 | } | |
3211 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
3212 | } | |
093d3ff1 | 3213 | static wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){ |
248ed943 RD |
3214 | wxPyUserData* data = NULL; |
3215 | if ( userData ) { | |
5a446332 | 3216 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
248ed943 RD |
3217 | data = new wxPyUserData(userData); |
3218 | wxPyEndBlockThreads(blocked); | |
3219 | } | |
3220 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
3221 | } | |
093d3ff1 | 3222 | static wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ |
248ed943 RD |
3223 | int row, col; |
3224 | self->GetEndPos(row, col); | |
3225 | return wxGBPosition(row, col); | |
3226 | } | |
093d3ff1 | 3227 | static wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span=wxDefaultSpan,int flag=0,int border=0,PyObject *userData=NULL){ |
d14a1e28 RD |
3228 | |
3229 | wxPyUserData* data = NULL; | |
5a446332 | 3230 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 3231 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d14a1e28 RD |
3232 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
3233 | data = new wxPyUserData(userData); | |
4f89f6a3 | 3234 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3235 | |
3236 | // Now call the real Add method if a valid item type was found | |
3237 | if ( info.window ) | |
d3b6e4ff | 3238 | return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data); |
d14a1e28 | 3239 | else if ( info.sizer ) |
d3b6e4ff | 3240 | return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data); |
d14a1e28 | 3241 | else if (info.gotSize) |
d3b6e4ff RD |
3242 | return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(), |
3243 | pos, span, flag, border, data); | |
3244 | return NULL; | |
d14a1e28 RD |
3245 | } |
3246 | ||
3247 | ||
3248 | #ifdef __cplusplus | |
3249 | extern "C" { | |
3250 | #endif | |
c32bde28 | 3251 | static int _wrap_EmptyString_set(PyObject *) { |
196addbf RD |
3252 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
3253 | return 1; | |
3254 | } | |
3255 | ||
3256 | ||
093d3ff1 | 3257 | static PyObject *_wrap_EmptyString_get(void) { |
196addbf RD |
3258 | PyObject *pyobj; |
3259 | ||
3260 | { | |
3261 | #if wxUSE_UNICODE | |
3262 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
3263 | #else | |
3264 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
3265 | #endif | |
3266 | } | |
3267 | return pyobj; | |
3268 | } | |
3269 | ||
3270 | ||
c32bde28 | 3271 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3272 | PyObject *resultobj; |
3273 | wxObject *arg1 = (wxObject *) 0 ; | |
3274 | wxString result; | |
3275 | PyObject * obj0 = 0 ; | |
3276 | char *kwnames[] = { | |
3277 | (char *) "self", NULL | |
3278 | }; | |
3279 | ||
3280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); |
3282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3283 | { |
3284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3285 | result = wxObject_GetClassName(arg1); | |
3286 | ||
3287 | wxPyEndAllowThreads(__tstate); | |
3288 | if (PyErr_Occurred()) SWIG_fail; | |
3289 | } | |
3290 | { | |
3291 | #if wxUSE_UNICODE | |
3292 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3293 | #else | |
3294 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3295 | #endif | |
3296 | } | |
3297 | return resultobj; | |
3298 | fail: | |
3299 | return NULL; | |
3300 | } | |
3301 | ||
3302 | ||
c32bde28 | 3303 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3304 | PyObject *resultobj; |
3305 | wxObject *arg1 = (wxObject *) 0 ; | |
3306 | PyObject * obj0 = 0 ; | |
3307 | char *kwnames[] = { | |
3308 | (char *) "self", NULL | |
3309 | }; | |
3310 | ||
3311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); |
3313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3314 | { |
3315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3316 | wxObject_Destroy(arg1); | |
3317 | ||
3318 | wxPyEndAllowThreads(__tstate); | |
3319 | if (PyErr_Occurred()) SWIG_fail; | |
3320 | } | |
3321 | Py_INCREF(Py_None); resultobj = Py_None; | |
3322 | return resultobj; | |
3323 | fail: | |
3324 | return NULL; | |
3325 | } | |
3326 | ||
3327 | ||
c32bde28 | 3328 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3329 | PyObject *obj; |
3330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3331 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
3332 | Py_INCREF(obj); | |
3333 | return Py_BuildValue((char *)""); | |
3334 | } | |
c32bde28 | 3335 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3336 | PyObject *resultobj; |
3337 | wxSize *arg1 = (wxSize *) 0 ; | |
3338 | int arg2 ; | |
3339 | PyObject * obj0 = 0 ; | |
994141e6 | 3340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3341 | char *kwnames[] = { |
3342 | (char *) "self",(char *) "x", NULL | |
3343 | }; | |
3344 | ||
994141e6 | 3345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3348 | { | |
3349 | arg2 = (int)(SWIG_As_int(obj1)); | |
3350 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3351 | } | |
d14a1e28 RD |
3352 | if (arg1) (arg1)->x = arg2; |
3353 | ||
3354 | Py_INCREF(Py_None); resultobj = Py_None; | |
3355 | return resultobj; | |
3356 | fail: | |
3357 | return NULL; | |
3358 | } | |
3359 | ||
3360 | ||
c32bde28 | 3361 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3362 | PyObject *resultobj; |
3363 | wxSize *arg1 = (wxSize *) 0 ; | |
3364 | int result; | |
3365 | PyObject * obj0 = 0 ; | |
3366 | char *kwnames[] = { | |
3367 | (char *) "self", NULL | |
3368 | }; | |
3369 | ||
3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3373 | result = (int) ((arg1)->x); |
3374 | ||
093d3ff1 RD |
3375 | { |
3376 | resultobj = SWIG_From_int((int)(result)); | |
3377 | } | |
d14a1e28 RD |
3378 | return resultobj; |
3379 | fail: | |
3380 | return NULL; | |
3381 | } | |
3382 | ||
3383 | ||
c32bde28 | 3384 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3385 | PyObject *resultobj; |
3386 | wxSize *arg1 = (wxSize *) 0 ; | |
3387 | int arg2 ; | |
3388 | PyObject * obj0 = 0 ; | |
994141e6 | 3389 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3390 | char *kwnames[] = { |
3391 | (char *) "self",(char *) "y", NULL | |
3392 | }; | |
3393 | ||
994141e6 | 3394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3397 | { | |
3398 | arg2 = (int)(SWIG_As_int(obj1)); | |
3399 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3400 | } | |
d14a1e28 RD |
3401 | if (arg1) (arg1)->y = arg2; |
3402 | ||
3403 | Py_INCREF(Py_None); resultobj = Py_None; | |
3404 | return resultobj; | |
3405 | fail: | |
3406 | return NULL; | |
3407 | } | |
3408 | ||
3409 | ||
c32bde28 | 3410 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3411 | PyObject *resultobj; |
3412 | wxSize *arg1 = (wxSize *) 0 ; | |
3413 | int result; | |
3414 | PyObject * obj0 = 0 ; | |
3415 | char *kwnames[] = { | |
3416 | (char *) "self", NULL | |
3417 | }; | |
3418 | ||
3419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3422 | result = (int) ((arg1)->y); |
3423 | ||
093d3ff1 RD |
3424 | { |
3425 | resultobj = SWIG_From_int((int)(result)); | |
3426 | } | |
d14a1e28 RD |
3427 | return resultobj; |
3428 | fail: | |
3429 | return NULL; | |
3430 | } | |
3431 | ||
3432 | ||
c32bde28 | 3433 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3434 | PyObject *resultobj; |
3435 | int arg1 = (int) 0 ; | |
3436 | int arg2 = (int) 0 ; | |
3437 | wxSize *result; | |
994141e6 RD |
3438 | PyObject * obj0 = 0 ; |
3439 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
3440 | char *kwnames[] = { |
3441 | (char *) "w",(char *) "h", NULL | |
3442 | }; | |
3443 | ||
994141e6 RD |
3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
3445 | if (obj0) { | |
093d3ff1 RD |
3446 | { |
3447 | arg1 = (int)(SWIG_As_int(obj0)); | |
3448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3449 | } | |
994141e6 RD |
3450 | } |
3451 | if (obj1) { | |
093d3ff1 RD |
3452 | { |
3453 | arg2 = (int)(SWIG_As_int(obj1)); | |
3454 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3455 | } | |
994141e6 | 3456 | } |
d14a1e28 RD |
3457 | { |
3458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3459 | result = (wxSize *)new wxSize(arg1,arg2); | |
3460 | ||
3461 | wxPyEndAllowThreads(__tstate); | |
3462 | if (PyErr_Occurred()) SWIG_fail; | |
3463 | } | |
15afbcd0 | 3464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3465 | return resultobj; |
3466 | fail: | |
3467 | return NULL; | |
3468 | } | |
3469 | ||
3470 | ||
c32bde28 | 3471 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3472 | PyObject *resultobj; |
3473 | wxSize *arg1 = (wxSize *) 0 ; | |
3474 | PyObject * obj0 = 0 ; | |
3475 | char *kwnames[] = { | |
3476 | (char *) "self", NULL | |
3477 | }; | |
3478 | ||
3479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3482 | { |
3483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3484 | delete arg1; | |
3485 | ||
3486 | wxPyEndAllowThreads(__tstate); | |
3487 | if (PyErr_Occurred()) SWIG_fail; | |
3488 | } | |
3489 | Py_INCREF(Py_None); resultobj = Py_None; | |
3490 | return resultobj; | |
3491 | fail: | |
3492 | return NULL; | |
3493 | } | |
3494 | ||
3495 | ||
c32bde28 | 3496 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3497 | PyObject *resultobj; |
3498 | wxSize *arg1 = (wxSize *) 0 ; | |
3499 | wxSize *arg2 = 0 ; | |
3500 | bool result; | |
3501 | wxSize temp2 ; | |
3502 | PyObject * obj0 = 0 ; | |
3503 | PyObject * obj1 = 0 ; | |
3504 | char *kwnames[] = { | |
3505 | (char *) "self",(char *) "sz", NULL | |
3506 | }; | |
3507 | ||
3508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3511 | { |
3512 | arg2 = &temp2; | |
3513 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3514 | } | |
3515 | { | |
3516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3517 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
3518 | |
3519 | wxPyEndAllowThreads(__tstate); | |
3520 | if (PyErr_Occurred()) SWIG_fail; | |
3521 | } | |
4f89f6a3 RD |
3522 | { |
3523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3524 | } | |
d14a1e28 RD |
3525 | return resultobj; |
3526 | fail: | |
3527 | return NULL; | |
3528 | } | |
3529 | ||
3530 | ||
c32bde28 | 3531 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3532 | PyObject *resultobj; |
3533 | wxSize *arg1 = (wxSize *) 0 ; | |
3534 | wxSize *arg2 = 0 ; | |
3535 | bool result; | |
3536 | wxSize temp2 ; | |
3537 | PyObject * obj0 = 0 ; | |
3538 | PyObject * obj1 = 0 ; | |
3539 | char *kwnames[] = { | |
3540 | (char *) "self",(char *) "sz", NULL | |
3541 | }; | |
3542 | ||
3543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3546 | { |
3547 | arg2 = &temp2; | |
3548 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3549 | } | |
3550 | { | |
3551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3552 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
3553 | |
3554 | wxPyEndAllowThreads(__tstate); | |
3555 | if (PyErr_Occurred()) SWIG_fail; | |
3556 | } | |
4f89f6a3 RD |
3557 | { |
3558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3559 | } | |
d14a1e28 RD |
3560 | return resultobj; |
3561 | fail: | |
3562 | return NULL; | |
3563 | } | |
3564 | ||
3565 | ||
c32bde28 | 3566 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3567 | PyObject *resultobj; |
3568 | wxSize *arg1 = (wxSize *) 0 ; | |
3569 | wxSize *arg2 = 0 ; | |
3570 | wxSize result; | |
3571 | wxSize temp2 ; | |
3572 | PyObject * obj0 = 0 ; | |
3573 | PyObject * obj1 = 0 ; | |
3574 | char *kwnames[] = { | |
3575 | (char *) "self",(char *) "sz", NULL | |
3576 | }; | |
3577 | ||
3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3581 | { |
3582 | arg2 = &temp2; | |
3583 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3584 | } | |
3585 | { | |
3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3587 | result = (arg1)->operator +((wxSize const &)*arg2); | |
3588 | ||
3589 | wxPyEndAllowThreads(__tstate); | |
3590 | if (PyErr_Occurred()) SWIG_fail; | |
3591 | } | |
3592 | { | |
3593 | wxSize * resultptr; | |
093d3ff1 | 3594 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 3595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3596 | } |
3597 | return resultobj; | |
3598 | fail: | |
3599 | return NULL; | |
3600 | } | |
3601 | ||
3602 | ||
c32bde28 | 3603 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3604 | PyObject *resultobj; |
3605 | wxSize *arg1 = (wxSize *) 0 ; | |
3606 | wxSize *arg2 = 0 ; | |
3607 | wxSize result; | |
3608 | wxSize temp2 ; | |
3609 | PyObject * obj0 = 0 ; | |
3610 | PyObject * obj1 = 0 ; | |
3611 | char *kwnames[] = { | |
3612 | (char *) "self",(char *) "sz", NULL | |
3613 | }; | |
3614 | ||
3615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3618 | { |
3619 | arg2 = &temp2; | |
3620 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3621 | } | |
3622 | { | |
3623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3624 | result = (arg1)->operator -((wxSize const &)*arg2); | |
3625 | ||
3626 | wxPyEndAllowThreads(__tstate); | |
3627 | if (PyErr_Occurred()) SWIG_fail; | |
3628 | } | |
3629 | { | |
3630 | wxSize * resultptr; | |
093d3ff1 | 3631 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 3632 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3633 | } |
3634 | return resultobj; | |
3635 | fail: | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
c32bde28 | 3640 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3641 | PyObject *resultobj; |
3642 | wxSize *arg1 = (wxSize *) 0 ; | |
3643 | wxSize *arg2 = 0 ; | |
3644 | wxSize temp2 ; | |
3645 | PyObject * obj0 = 0 ; | |
3646 | PyObject * obj1 = 0 ; | |
3647 | char *kwnames[] = { | |
3648 | (char *) "self",(char *) "sz", NULL | |
3649 | }; | |
3650 | ||
3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3654 | { |
3655 | arg2 = &temp2; | |
3656 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3657 | } | |
3658 | { | |
3659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3660 | (arg1)->IncTo((wxSize const &)*arg2); | |
3661 | ||
3662 | wxPyEndAllowThreads(__tstate); | |
3663 | if (PyErr_Occurred()) SWIG_fail; | |
3664 | } | |
3665 | Py_INCREF(Py_None); resultobj = Py_None; | |
3666 | return resultobj; | |
3667 | fail: | |
3668 | return NULL; | |
3669 | } | |
3670 | ||
3671 | ||
c32bde28 | 3672 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3673 | PyObject *resultobj; |
3674 | wxSize *arg1 = (wxSize *) 0 ; | |
3675 | wxSize *arg2 = 0 ; | |
3676 | wxSize temp2 ; | |
3677 | PyObject * obj0 = 0 ; | |
3678 | PyObject * obj1 = 0 ; | |
3679 | char *kwnames[] = { | |
3680 | (char *) "self",(char *) "sz", NULL | |
3681 | }; | |
3682 | ||
3683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3684 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3685 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3686 | { |
3687 | arg2 = &temp2; | |
3688 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3689 | } | |
3690 | { | |
3691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3692 | (arg1)->DecTo((wxSize const &)*arg2); | |
3693 | ||
3694 | wxPyEndAllowThreads(__tstate); | |
3695 | if (PyErr_Occurred()) SWIG_fail; | |
3696 | } | |
3697 | Py_INCREF(Py_None); resultobj = Py_None; | |
3698 | return resultobj; | |
3699 | fail: | |
3700 | return NULL; | |
3701 | } | |
3702 | ||
3703 | ||
c32bde28 | 3704 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3705 | PyObject *resultobj; |
3706 | wxSize *arg1 = (wxSize *) 0 ; | |
3707 | int arg2 ; | |
3708 | int arg3 ; | |
3709 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3710 | PyObject * obj1 = 0 ; |
3711 | PyObject * obj2 = 0 ; | |
d14a1e28 | 3712 | char *kwnames[] = { |
e811c8ce | 3713 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
3714 | }; |
3715 | ||
994141e6 | 3716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
3717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3719 | { | |
3720 | arg2 = (int)(SWIG_As_int(obj1)); | |
3721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3722 | } | |
3723 | { | |
3724 | arg3 = (int)(SWIG_As_int(obj2)); | |
3725 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3726 | } | |
d14a1e28 RD |
3727 | { |
3728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3729 | (arg1)->Set(arg2,arg3); | |
3730 | ||
3731 | wxPyEndAllowThreads(__tstate); | |
3732 | if (PyErr_Occurred()) SWIG_fail; | |
3733 | } | |
3734 | Py_INCREF(Py_None); resultobj = Py_None; | |
3735 | return resultobj; | |
3736 | fail: | |
3737 | return NULL; | |
3738 | } | |
3739 | ||
3740 | ||
c32bde28 | 3741 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3742 | PyObject *resultobj; |
3743 | wxSize *arg1 = (wxSize *) 0 ; | |
3744 | int arg2 ; | |
3745 | PyObject * obj0 = 0 ; | |
994141e6 | 3746 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3747 | char *kwnames[] = { |
3748 | (char *) "self",(char *) "w", NULL | |
3749 | }; | |
3750 | ||
994141e6 | 3751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3752 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3754 | { | |
3755 | arg2 = (int)(SWIG_As_int(obj1)); | |
3756 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3757 | } | |
d14a1e28 RD |
3758 | { |
3759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3760 | (arg1)->SetWidth(arg2); | |
3761 | ||
3762 | wxPyEndAllowThreads(__tstate); | |
3763 | if (PyErr_Occurred()) SWIG_fail; | |
3764 | } | |
3765 | Py_INCREF(Py_None); resultobj = Py_None; | |
3766 | return resultobj; | |
3767 | fail: | |
3768 | return NULL; | |
3769 | } | |
3770 | ||
3771 | ||
c32bde28 | 3772 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3773 | PyObject *resultobj; |
3774 | wxSize *arg1 = (wxSize *) 0 ; | |
3775 | int arg2 ; | |
3776 | PyObject * obj0 = 0 ; | |
994141e6 | 3777 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3778 | char *kwnames[] = { |
3779 | (char *) "self",(char *) "h", NULL | |
3780 | }; | |
3781 | ||
994141e6 | 3782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3785 | { | |
3786 | arg2 = (int)(SWIG_As_int(obj1)); | |
3787 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3788 | } | |
d14a1e28 RD |
3789 | { |
3790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3791 | (arg1)->SetHeight(arg2); | |
3792 | ||
3793 | wxPyEndAllowThreads(__tstate); | |
3794 | if (PyErr_Occurred()) SWIG_fail; | |
3795 | } | |
3796 | Py_INCREF(Py_None); resultobj = Py_None; | |
3797 | return resultobj; | |
3798 | fail: | |
3799 | return NULL; | |
3800 | } | |
3801 | ||
3802 | ||
c32bde28 | 3803 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3804 | PyObject *resultobj; |
3805 | wxSize *arg1 = (wxSize *) 0 ; | |
3806 | int result; | |
3807 | PyObject * obj0 = 0 ; | |
3808 | char *kwnames[] = { | |
3809 | (char *) "self", NULL | |
3810 | }; | |
3811 | ||
3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3815 | { |
3816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3817 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
3818 | ||
3819 | wxPyEndAllowThreads(__tstate); | |
3820 | if (PyErr_Occurred()) SWIG_fail; | |
3821 | } | |
093d3ff1 RD |
3822 | { |
3823 | resultobj = SWIG_From_int((int)(result)); | |
3824 | } | |
d14a1e28 RD |
3825 | return resultobj; |
3826 | fail: | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
c32bde28 | 3831 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3832 | PyObject *resultobj; |
3833 | wxSize *arg1 = (wxSize *) 0 ; | |
3834 | int result; | |
3835 | PyObject * obj0 = 0 ; | |
3836 | char *kwnames[] = { | |
3837 | (char *) "self", NULL | |
3838 | }; | |
3839 | ||
3840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3843 | { |
3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3845 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
3846 | ||
3847 | wxPyEndAllowThreads(__tstate); | |
3848 | if (PyErr_Occurred()) SWIG_fail; | |
3849 | } | |
093d3ff1 RD |
3850 | { |
3851 | resultobj = SWIG_From_int((int)(result)); | |
3852 | } | |
d14a1e28 RD |
3853 | return resultobj; |
3854 | fail: | |
3855 | return NULL; | |
3856 | } | |
3857 | ||
3858 | ||
c32bde28 | 3859 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
3860 | PyObject *resultobj; |
3861 | wxSize *arg1 = (wxSize *) 0 ; | |
3862 | bool result; | |
3863 | PyObject * obj0 = 0 ; | |
3864 | char *kwnames[] = { | |
3865 | (char *) "self", NULL | |
3866 | }; | |
3867 | ||
3868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3869 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3870 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
3871 | { |
3872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3873 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
3874 | ||
3875 | wxPyEndAllowThreads(__tstate); | |
3876 | if (PyErr_Occurred()) SWIG_fail; | |
3877 | } | |
3878 | { | |
3879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3880 | } | |
3881 | return resultobj; | |
3882 | fail: | |
3883 | return NULL; | |
3884 | } | |
3885 | ||
3886 | ||
c32bde28 | 3887 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
3888 | PyObject *resultobj; |
3889 | wxSize *arg1 = (wxSize *) 0 ; | |
3890 | wxSize *arg2 = 0 ; | |
3891 | wxSize temp2 ; | |
3892 | PyObject * obj0 = 0 ; | |
3893 | PyObject * obj1 = 0 ; | |
3894 | char *kwnames[] = { | |
3895 | (char *) "self",(char *) "size", NULL | |
3896 | }; | |
3897 | ||
3898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
3901 | { |
3902 | arg2 = &temp2; | |
3903 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3904 | } | |
3905 | { | |
3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3907 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
3908 | ||
3909 | wxPyEndAllowThreads(__tstate); | |
3910 | if (PyErr_Occurred()) SWIG_fail; | |
3911 | } | |
3912 | Py_INCREF(Py_None); resultobj = Py_None; | |
3913 | return resultobj; | |
3914 | fail: | |
3915 | return NULL; | |
3916 | } | |
3917 | ||
3918 | ||
c32bde28 | 3919 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3920 | PyObject *resultobj; |
3921 | wxSize *arg1 = (wxSize *) 0 ; | |
3922 | PyObject *result; | |
3923 | PyObject * obj0 = 0 ; | |
3924 | char *kwnames[] = { | |
3925 | (char *) "self", NULL | |
3926 | }; | |
3927 | ||
e811c8ce | 3928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
3929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); |
3930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3931 | { |
3932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3933 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
3934 | |
3935 | wxPyEndAllowThreads(__tstate); | |
3936 | if (PyErr_Occurred()) SWIG_fail; | |
3937 | } | |
3938 | resultobj = result; | |
3939 | return resultobj; | |
3940 | fail: | |
3941 | return NULL; | |
3942 | } | |
3943 | ||
3944 | ||
c32bde28 | 3945 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3946 | PyObject *obj; |
3947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3948 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
3949 | Py_INCREF(obj); | |
3950 | return Py_BuildValue((char *)""); | |
3951 | } | |
c32bde28 | 3952 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3953 | PyObject *resultobj; |
3954 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3955 | double arg2 ; | |
3956 | PyObject * obj0 = 0 ; | |
994141e6 | 3957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3958 | char *kwnames[] = { |
3959 | (char *) "self",(char *) "x", NULL | |
3960 | }; | |
3961 | ||
994141e6 | 3962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3965 | { | |
3966 | arg2 = (double)(SWIG_As_double(obj1)); | |
3967 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3968 | } | |
d14a1e28 RD |
3969 | if (arg1) (arg1)->x = arg2; |
3970 | ||
3971 | Py_INCREF(Py_None); resultobj = Py_None; | |
3972 | return resultobj; | |
3973 | fail: | |
3974 | return NULL; | |
3975 | } | |
3976 | ||
3977 | ||
c32bde28 | 3978 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3979 | PyObject *resultobj; |
3980 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3981 | double result; | |
3982 | PyObject * obj0 = 0 ; | |
3983 | char *kwnames[] = { | |
3984 | (char *) "self", NULL | |
3985 | }; | |
3986 | ||
3987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
3989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3990 | result = (double) ((arg1)->x); |
3991 | ||
093d3ff1 RD |
3992 | { |
3993 | resultobj = SWIG_From_double((double)(result)); | |
3994 | } | |
d14a1e28 RD |
3995 | return resultobj; |
3996 | fail: | |
3997 | return NULL; | |
3998 | } | |
3999 | ||
4000 | ||
c32bde28 | 4001 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4002 | PyObject *resultobj; |
4003 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4004 | double arg2 ; | |
4005 | PyObject * obj0 = 0 ; | |
994141e6 | 4006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4007 | char *kwnames[] = { |
4008 | (char *) "self",(char *) "y", NULL | |
4009 | }; | |
4010 | ||
994141e6 | 4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4014 | { | |
4015 | arg2 = (double)(SWIG_As_double(obj1)); | |
4016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4017 | } | |
d14a1e28 RD |
4018 | if (arg1) (arg1)->y = arg2; |
4019 | ||
4020 | Py_INCREF(Py_None); resultobj = Py_None; | |
4021 | return resultobj; | |
4022 | fail: | |
4023 | return NULL; | |
4024 | } | |
4025 | ||
4026 | ||
c32bde28 | 4027 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4028 | PyObject *resultobj; |
4029 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4030 | double result; | |
4031 | PyObject * obj0 = 0 ; | |
4032 | char *kwnames[] = { | |
4033 | (char *) "self", NULL | |
4034 | }; | |
4035 | ||
4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4037 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4038 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4039 | result = (double) ((arg1)->y); |
4040 | ||
093d3ff1 RD |
4041 | { |
4042 | resultobj = SWIG_From_double((double)(result)); | |
4043 | } | |
d14a1e28 RD |
4044 | return resultobj; |
4045 | fail: | |
4046 | return NULL; | |
4047 | } | |
4048 | ||
4049 | ||
c32bde28 | 4050 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4051 | PyObject *resultobj; |
4052 | double arg1 = (double) 0.0 ; | |
4053 | double arg2 = (double) 0.0 ; | |
4054 | wxRealPoint *result; | |
994141e6 RD |
4055 | PyObject * obj0 = 0 ; |
4056 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4057 | char *kwnames[] = { |
4058 | (char *) "x",(char *) "y", NULL | |
4059 | }; | |
4060 | ||
994141e6 RD |
4061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
4062 | if (obj0) { | |
093d3ff1 RD |
4063 | { |
4064 | arg1 = (double)(SWIG_As_double(obj0)); | |
4065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4066 | } | |
994141e6 RD |
4067 | } |
4068 | if (obj1) { | |
093d3ff1 RD |
4069 | { |
4070 | arg2 = (double)(SWIG_As_double(obj1)); | |
4071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4072 | } | |
994141e6 | 4073 | } |
d14a1e28 RD |
4074 | { |
4075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4076 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
4077 | ||
4078 | wxPyEndAllowThreads(__tstate); | |
4079 | if (PyErr_Occurred()) SWIG_fail; | |
4080 | } | |
15afbcd0 | 4081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
4082 | return resultobj; |
4083 | fail: | |
4084 | return NULL; | |
4085 | } | |
4086 | ||
4087 | ||
c32bde28 | 4088 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4089 | PyObject *resultobj; |
4090 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4091 | PyObject * obj0 = 0 ; | |
4092 | char *kwnames[] = { | |
4093 | (char *) "self", NULL | |
4094 | }; | |
4095 | ||
4096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4099 | { |
4100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4101 | delete arg1; | |
4102 | ||
4103 | wxPyEndAllowThreads(__tstate); | |
4104 | if (PyErr_Occurred()) SWIG_fail; | |
4105 | } | |
4106 | Py_INCREF(Py_None); resultobj = Py_None; | |
4107 | return resultobj; | |
4108 | fail: | |
4109 | return NULL; | |
4110 | } | |
4111 | ||
4112 | ||
c32bde28 | 4113 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4114 | PyObject *resultobj; |
4115 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4116 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 4117 | bool result; |
d14a1e28 RD |
4118 | wxRealPoint temp2 ; |
4119 | PyObject * obj0 = 0 ; | |
4120 | PyObject * obj1 = 0 ; | |
4121 | char *kwnames[] = { | |
4122 | (char *) "self",(char *) "pt", NULL | |
4123 | }; | |
4124 | ||
e811c8ce | 4125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4128 | { |
4129 | arg2 = &temp2; | |
4130 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4131 | } | |
4132 | { | |
4133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4134 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
4135 | |
4136 | wxPyEndAllowThreads(__tstate); | |
4137 | if (PyErr_Occurred()) SWIG_fail; | |
4138 | } | |
4f89f6a3 RD |
4139 | { |
4140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4141 | } | |
d14a1e28 RD |
4142 | return resultobj; |
4143 | fail: | |
4144 | return NULL; | |
4145 | } | |
4146 | ||
4147 | ||
c32bde28 | 4148 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4149 | PyObject *resultobj; |
4150 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4151 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 4152 | bool result; |
d14a1e28 RD |
4153 | wxRealPoint temp2 ; |
4154 | PyObject * obj0 = 0 ; | |
4155 | PyObject * obj1 = 0 ; | |
4156 | char *kwnames[] = { | |
4157 | (char *) "self",(char *) "pt", NULL | |
4158 | }; | |
4159 | ||
e811c8ce | 4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4163 | { |
4164 | arg2 = &temp2; | |
4165 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4166 | } | |
4167 | { | |
4168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4169 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
4170 | |
4171 | wxPyEndAllowThreads(__tstate); | |
4172 | if (PyErr_Occurred()) SWIG_fail; | |
4173 | } | |
4f89f6a3 RD |
4174 | { |
4175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4176 | } | |
d14a1e28 RD |
4177 | return resultobj; |
4178 | fail: | |
4179 | return NULL; | |
4180 | } | |
4181 | ||
4182 | ||
c32bde28 | 4183 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4184 | PyObject *resultobj; |
4185 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4186 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 4187 | wxRealPoint result; |
d14a1e28 RD |
4188 | wxRealPoint temp2 ; |
4189 | PyObject * obj0 = 0 ; | |
4190 | PyObject * obj1 = 0 ; | |
4191 | char *kwnames[] = { | |
4192 | (char *) "self",(char *) "pt", NULL | |
4193 | }; | |
4194 | ||
e811c8ce | 4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4198 | { |
4199 | arg2 = &temp2; | |
4200 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4201 | } | |
4202 | { | |
4203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4204 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
4205 | |
4206 | wxPyEndAllowThreads(__tstate); | |
4207 | if (PyErr_Occurred()) SWIG_fail; | |
4208 | } | |
e811c8ce RD |
4209 | { |
4210 | wxRealPoint * resultptr; | |
093d3ff1 | 4211 | resultptr = new wxRealPoint((wxRealPoint &)(result)); |
15afbcd0 | 4212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 4213 | } |
d14a1e28 RD |
4214 | return resultobj; |
4215 | fail: | |
4216 | return NULL; | |
4217 | } | |
4218 | ||
4219 | ||
c32bde28 | 4220 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4221 | PyObject *resultobj; |
4222 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4223 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 4224 | wxRealPoint result; |
d14a1e28 RD |
4225 | wxRealPoint temp2 ; |
4226 | PyObject * obj0 = 0 ; | |
4227 | PyObject * obj1 = 0 ; | |
4228 | char *kwnames[] = { | |
4229 | (char *) "self",(char *) "pt", NULL | |
4230 | }; | |
4231 | ||
e811c8ce | 4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4235 | { |
4236 | arg2 = &temp2; | |
4237 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
4238 | } | |
4239 | { | |
4240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4241 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
4242 | |
4243 | wxPyEndAllowThreads(__tstate); | |
4244 | if (PyErr_Occurred()) SWIG_fail; | |
4245 | } | |
e811c8ce RD |
4246 | { |
4247 | wxRealPoint * resultptr; | |
093d3ff1 | 4248 | resultptr = new wxRealPoint((wxRealPoint &)(result)); |
15afbcd0 | 4249 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 4250 | } |
d14a1e28 RD |
4251 | return resultobj; |
4252 | fail: | |
4253 | return NULL; | |
4254 | } | |
4255 | ||
4256 | ||
c32bde28 | 4257 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4258 | PyObject *resultobj; |
4259 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4260 | double arg2 ; | |
4261 | double arg3 ; | |
4262 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4263 | PyObject * obj1 = 0 ; |
4264 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4265 | char *kwnames[] = { |
4266 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4267 | }; | |
4268 | ||
994141e6 | 4269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
4270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4272 | { | |
4273 | arg2 = (double)(SWIG_As_double(obj1)); | |
4274 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4275 | } | |
4276 | { | |
4277 | arg3 = (double)(SWIG_As_double(obj2)); | |
4278 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4279 | } | |
d14a1e28 RD |
4280 | { |
4281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4282 | wxRealPoint_Set(arg1,arg2,arg3); | |
4283 | ||
4284 | wxPyEndAllowThreads(__tstate); | |
4285 | if (PyErr_Occurred()) SWIG_fail; | |
4286 | } | |
4287 | Py_INCREF(Py_None); resultobj = Py_None; | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | return NULL; | |
4291 | } | |
4292 | ||
4293 | ||
c32bde28 | 4294 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4295 | PyObject *resultobj; |
4296 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
4297 | PyObject *result; | |
4298 | PyObject * obj0 = 0 ; | |
4299 | char *kwnames[] = { | |
4300 | (char *) "self", NULL | |
4301 | }; | |
4302 | ||
e811c8ce | 4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
4304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0); |
4305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4306 | { |
4307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4308 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
4309 | |
4310 | wxPyEndAllowThreads(__tstate); | |
4311 | if (PyErr_Occurred()) SWIG_fail; | |
4312 | } | |
4313 | resultobj = result; | |
4314 | return resultobj; | |
4315 | fail: | |
4316 | return NULL; | |
4317 | } | |
4318 | ||
4319 | ||
c32bde28 | 4320 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4321 | PyObject *obj; |
4322 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4323 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
4324 | Py_INCREF(obj); | |
4325 | return Py_BuildValue((char *)""); | |
4326 | } | |
c32bde28 | 4327 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4328 | PyObject *resultobj; |
4329 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4330 | int arg2 ; | |
4331 | PyObject * obj0 = 0 ; | |
994141e6 | 4332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4333 | char *kwnames[] = { |
4334 | (char *) "self",(char *) "x", NULL | |
4335 | }; | |
4336 | ||
994141e6 | 4337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4340 | { | |
4341 | arg2 = (int)(SWIG_As_int(obj1)); | |
4342 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4343 | } | |
d14a1e28 RD |
4344 | if (arg1) (arg1)->x = arg2; |
4345 | ||
4346 | Py_INCREF(Py_None); resultobj = Py_None; | |
4347 | return resultobj; | |
4348 | fail: | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
c32bde28 | 4353 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4354 | PyObject *resultobj; |
4355 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4356 | int result; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | char *kwnames[] = { | |
4359 | (char *) "self", NULL | |
4360 | }; | |
4361 | ||
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4365 | result = (int) ((arg1)->x); |
4366 | ||
093d3ff1 RD |
4367 | { |
4368 | resultobj = SWIG_From_int((int)(result)); | |
4369 | } | |
d14a1e28 RD |
4370 | return resultobj; |
4371 | fail: | |
4372 | return NULL; | |
4373 | } | |
4374 | ||
4375 | ||
c32bde28 | 4376 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4377 | PyObject *resultobj; |
4378 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4379 | int arg2 ; | |
4380 | PyObject * obj0 = 0 ; | |
994141e6 | 4381 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4382 | char *kwnames[] = { |
4383 | (char *) "self",(char *) "y", NULL | |
4384 | }; | |
4385 | ||
994141e6 | 4386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4389 | { | |
4390 | arg2 = (int)(SWIG_As_int(obj1)); | |
4391 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4392 | } | |
d14a1e28 RD |
4393 | if (arg1) (arg1)->y = arg2; |
4394 | ||
4395 | Py_INCREF(Py_None); resultobj = Py_None; | |
4396 | return resultobj; | |
4397 | fail: | |
4398 | return NULL; | |
4399 | } | |
4400 | ||
4401 | ||
c32bde28 | 4402 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4403 | PyObject *resultobj; |
4404 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4405 | int result; | |
4406 | PyObject * obj0 = 0 ; | |
4407 | char *kwnames[] = { | |
4408 | (char *) "self", NULL | |
4409 | }; | |
4410 | ||
4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4414 | result = (int) ((arg1)->y); |
4415 | ||
093d3ff1 RD |
4416 | { |
4417 | resultobj = SWIG_From_int((int)(result)); | |
4418 | } | |
d14a1e28 RD |
4419 | return resultobj; |
4420 | fail: | |
4421 | return NULL; | |
4422 | } | |
4423 | ||
4424 | ||
c32bde28 | 4425 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4426 | PyObject *resultobj; |
4427 | int arg1 = (int) 0 ; | |
4428 | int arg2 = (int) 0 ; | |
4429 | wxPoint *result; | |
994141e6 RD |
4430 | PyObject * obj0 = 0 ; |
4431 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4432 | char *kwnames[] = { |
4433 | (char *) "x",(char *) "y", NULL | |
4434 | }; | |
4435 | ||
994141e6 RD |
4436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
4437 | if (obj0) { | |
093d3ff1 RD |
4438 | { |
4439 | arg1 = (int)(SWIG_As_int(obj0)); | |
4440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4441 | } | |
994141e6 RD |
4442 | } |
4443 | if (obj1) { | |
093d3ff1 RD |
4444 | { |
4445 | arg2 = (int)(SWIG_As_int(obj1)); | |
4446 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4447 | } | |
994141e6 | 4448 | } |
d14a1e28 RD |
4449 | { |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4451 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
4452 | ||
4453 | wxPyEndAllowThreads(__tstate); | |
4454 | if (PyErr_Occurred()) SWIG_fail; | |
4455 | } | |
15afbcd0 | 4456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
4457 | return resultobj; |
4458 | fail: | |
4459 | return NULL; | |
4460 | } | |
4461 | ||
4462 | ||
c32bde28 | 4463 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4464 | PyObject *resultobj; |
4465 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4466 | PyObject * obj0 = 0 ; | |
4467 | char *kwnames[] = { | |
4468 | (char *) "self", NULL | |
4469 | }; | |
4470 | ||
4471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4474 | { |
4475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4476 | delete arg1; | |
4477 | ||
4478 | wxPyEndAllowThreads(__tstate); | |
4479 | if (PyErr_Occurred()) SWIG_fail; | |
4480 | } | |
4481 | Py_INCREF(Py_None); resultobj = Py_None; | |
4482 | return resultobj; | |
4483 | fail: | |
4484 | return NULL; | |
4485 | } | |
4486 | ||
4487 | ||
c32bde28 | 4488 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4489 | PyObject *resultobj; |
4490 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4491 | wxPoint *arg2 = 0 ; | |
4492 | bool result; | |
4493 | wxPoint temp2 ; | |
4494 | PyObject * obj0 = 0 ; | |
4495 | PyObject * obj1 = 0 ; | |
4496 | char *kwnames[] = { | |
e811c8ce | 4497 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
4498 | }; |
4499 | ||
4500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4503 | { |
4504 | arg2 = &temp2; | |
4505 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4506 | } | |
4507 | { | |
4508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4509 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
4510 | |
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
4f89f6a3 RD |
4514 | { |
4515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4516 | } | |
d14a1e28 RD |
4517 | return resultobj; |
4518 | fail: | |
4519 | return NULL; | |
4520 | } | |
4521 | ||
4522 | ||
c32bde28 | 4523 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4524 | PyObject *resultobj; |
4525 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4526 | wxPoint *arg2 = 0 ; | |
4527 | bool result; | |
4528 | wxPoint temp2 ; | |
4529 | PyObject * obj0 = 0 ; | |
4530 | PyObject * obj1 = 0 ; | |
4531 | char *kwnames[] = { | |
e811c8ce | 4532 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
4533 | }; |
4534 | ||
4535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4538 | { |
4539 | arg2 = &temp2; | |
4540 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4541 | } | |
4542 | { | |
4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4544 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
4545 | |
4546 | wxPyEndAllowThreads(__tstate); | |
4547 | if (PyErr_Occurred()) SWIG_fail; | |
4548 | } | |
4f89f6a3 RD |
4549 | { |
4550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4551 | } | |
d14a1e28 RD |
4552 | return resultobj; |
4553 | fail: | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
c32bde28 | 4558 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4559 | PyObject *resultobj; |
4560 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4561 | wxPoint *arg2 = 0 ; | |
4562 | wxPoint result; | |
4563 | wxPoint temp2 ; | |
4564 | PyObject * obj0 = 0 ; | |
4565 | PyObject * obj1 = 0 ; | |
4566 | char *kwnames[] = { | |
e811c8ce | 4567 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
4568 | }; |
4569 | ||
4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4573 | { |
4574 | arg2 = &temp2; | |
4575 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4576 | } | |
4577 | { | |
4578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4579 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
4580 | |
4581 | wxPyEndAllowThreads(__tstate); | |
4582 | if (PyErr_Occurred()) SWIG_fail; | |
4583 | } | |
4584 | { | |
4585 | wxPoint * resultptr; | |
093d3ff1 | 4586 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 4587 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
4588 | } |
4589 | return resultobj; | |
4590 | fail: | |
4591 | return NULL; | |
4592 | } | |
4593 | ||
4594 | ||
c32bde28 | 4595 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4596 | PyObject *resultobj; |
4597 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4598 | wxPoint *arg2 = 0 ; | |
4599 | wxPoint result; | |
4600 | wxPoint temp2 ; | |
4601 | PyObject * obj0 = 0 ; | |
4602 | PyObject * obj1 = 0 ; | |
4603 | char *kwnames[] = { | |
e811c8ce | 4604 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
4605 | }; |
4606 | ||
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4610 | { |
4611 | arg2 = &temp2; | |
4612 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4613 | } | |
4614 | { | |
4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4616 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
4617 | |
4618 | wxPyEndAllowThreads(__tstate); | |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
4620 | } | |
4621 | { | |
4622 | wxPoint * resultptr; | |
093d3ff1 | 4623 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 4624 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
4625 | } |
4626 | return resultobj; | |
4627 | fail: | |
4628 | return NULL; | |
4629 | } | |
4630 | ||
4631 | ||
c32bde28 | 4632 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4633 | PyObject *resultobj; |
4634 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4635 | wxPoint *arg2 = 0 ; | |
4636 | wxPoint *result; | |
4637 | wxPoint temp2 ; | |
4638 | PyObject * obj0 = 0 ; | |
4639 | PyObject * obj1 = 0 ; | |
4640 | char *kwnames[] = { | |
e811c8ce | 4641 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
4642 | }; |
4643 | ||
4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
4646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4647 | { |
4648 | arg2 = &temp2; | |
4649 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4650 | } | |
4651 | { | |
4652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4653 | { | |
4654 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
4655 | result = (wxPoint *) &_result_ref; | |
4656 | } | |
4657 | ||
4658 | wxPyEndAllowThreads(__tstate); | |
4659 | if (PyErr_Occurred()) SWIG_fail; | |
4660 | } | |
c32bde28 | 4661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
4662 | return resultobj; |
4663 | fail: | |
4664 | return NULL; | |
4665 | } | |
4666 | ||
4667 | ||
c32bde28 | 4668 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4669 | PyObject *resultobj; |
4670 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4671 | wxPoint *arg2 = 0 ; | |
4672 | wxPoint *result; | |
4673 | wxPoint temp2 ; | |
4674 | PyObject * obj0 = 0 ; | |
4675 | PyObject * obj1 = 0 ; | |
4676 | char *kwnames[] = { | |
e811c8ce | 4677 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
4678 | }; |
4679 | ||
4680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
4682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4683 | { |
4684 | arg2 = &temp2; | |
4685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4686 | } | |
4687 | { | |
4688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4689 | { | |
4690 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
4691 | result = (wxPoint *) &_result_ref; | |
4692 | } | |
4693 | ||
4694 | wxPyEndAllowThreads(__tstate); | |
4695 | if (PyErr_Occurred()) SWIG_fail; | |
4696 | } | |
c32bde28 | 4697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
4698 | return resultobj; |
4699 | fail: | |
4700 | return NULL; | |
4701 | } | |
4702 | ||
4703 | ||
c32bde28 | 4704 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4705 | PyObject *resultobj; |
4706 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4707 | long arg2 ; | |
4708 | long arg3 ; | |
4709 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4710 | PyObject * obj1 = 0 ; |
4711 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4712 | char *kwnames[] = { |
4713 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4714 | }; | |
4715 | ||
994141e6 | 4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
4717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4719 | { | |
4720 | arg2 = (long)(SWIG_As_long(obj1)); | |
4721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4722 | } | |
4723 | { | |
4724 | arg3 = (long)(SWIG_As_long(obj2)); | |
4725 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4726 | } | |
d14a1e28 RD |
4727 | { |
4728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4729 | wxPoint_Set(arg1,arg2,arg3); | |
4730 | ||
4731 | wxPyEndAllowThreads(__tstate); | |
4732 | if (PyErr_Occurred()) SWIG_fail; | |
4733 | } | |
4734 | Py_INCREF(Py_None); resultobj = Py_None; | |
4735 | return resultobj; | |
4736 | fail: | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
c32bde28 | 4741 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4742 | PyObject *resultobj; |
4743 | wxPoint *arg1 = (wxPoint *) 0 ; | |
4744 | PyObject *result; | |
4745 | PyObject * obj0 = 0 ; | |
4746 | char *kwnames[] = { | |
4747 | (char *) "self", NULL | |
4748 | }; | |
4749 | ||
e811c8ce | 4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
4751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
4752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4753 | { |
4754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4755 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
4756 | |
4757 | wxPyEndAllowThreads(__tstate); | |
4758 | if (PyErr_Occurred()) SWIG_fail; | |
4759 | } | |
4760 | resultobj = result; | |
4761 | return resultobj; | |
4762 | fail: | |
4763 | return NULL; | |
4764 | } | |
4765 | ||
4766 | ||
c32bde28 | 4767 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4768 | PyObject *obj; |
4769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4770 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
4771 | Py_INCREF(obj); | |
4772 | return Py_BuildValue((char *)""); | |
4773 | } | |
c32bde28 | 4774 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4775 | PyObject *resultobj; |
4776 | int arg1 = (int) 0 ; | |
4777 | int arg2 = (int) 0 ; | |
4778 | int arg3 = (int) 0 ; | |
4779 | int arg4 = (int) 0 ; | |
4780 | wxRect *result; | |
994141e6 RD |
4781 | PyObject * obj0 = 0 ; |
4782 | PyObject * obj1 = 0 ; | |
4783 | PyObject * obj2 = 0 ; | |
4784 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4785 | char *kwnames[] = { |
4786 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4787 | }; | |
4788 | ||
994141e6 RD |
4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4790 | if (obj0) { | |
093d3ff1 RD |
4791 | { |
4792 | arg1 = (int)(SWIG_As_int(obj0)); | |
4793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4794 | } | |
994141e6 RD |
4795 | } |
4796 | if (obj1) { | |
093d3ff1 RD |
4797 | { |
4798 | arg2 = (int)(SWIG_As_int(obj1)); | |
4799 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4800 | } | |
994141e6 RD |
4801 | } |
4802 | if (obj2) { | |
093d3ff1 RD |
4803 | { |
4804 | arg3 = (int)(SWIG_As_int(obj2)); | |
4805 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4806 | } | |
994141e6 RD |
4807 | } |
4808 | if (obj3) { | |
093d3ff1 RD |
4809 | { |
4810 | arg4 = (int)(SWIG_As_int(obj3)); | |
4811 | if (SWIG_arg_fail(4)) SWIG_fail; | |
4812 | } | |
994141e6 | 4813 | } |
d14a1e28 RD |
4814 | { |
4815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4816 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
4817 | ||
4818 | wxPyEndAllowThreads(__tstate); | |
4819 | if (PyErr_Occurred()) SWIG_fail; | |
4820 | } | |
15afbcd0 | 4821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4822 | return resultobj; |
4823 | fail: | |
4824 | return NULL; | |
4825 | } | |
4826 | ||
4827 | ||
c32bde28 | 4828 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4829 | PyObject *resultobj; |
4830 | wxPoint *arg1 = 0 ; | |
4831 | wxPoint *arg2 = 0 ; | |
4832 | wxRect *result; | |
4833 | wxPoint temp1 ; | |
4834 | wxPoint temp2 ; | |
4835 | PyObject * obj0 = 0 ; | |
4836 | PyObject * obj1 = 0 ; | |
4837 | char *kwnames[] = { | |
4838 | (char *) "topLeft",(char *) "bottomRight", NULL | |
4839 | }; | |
4840 | ||
4841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
4842 | { | |
4843 | arg1 = &temp1; | |
4844 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4845 | } | |
4846 | { | |
4847 | arg2 = &temp2; | |
4848 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4849 | } | |
4850 | { | |
4851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4852 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
4853 | ||
4854 | wxPyEndAllowThreads(__tstate); | |
4855 | if (PyErr_Occurred()) SWIG_fail; | |
4856 | } | |
15afbcd0 | 4857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4858 | return resultobj; |
4859 | fail: | |
4860 | return NULL; | |
4861 | } | |
4862 | ||
4863 | ||
c32bde28 | 4864 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4865 | PyObject *resultobj; |
4866 | wxPoint *arg1 = 0 ; | |
4867 | wxSize *arg2 = 0 ; | |
4868 | wxRect *result; | |
4869 | wxPoint temp1 ; | |
4870 | wxSize temp2 ; | |
4871 | PyObject * obj0 = 0 ; | |
4872 | PyObject * obj1 = 0 ; | |
4873 | char *kwnames[] = { | |
4874 | (char *) "pos",(char *) "size", NULL | |
4875 | }; | |
4876 | ||
4877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
4878 | { | |
4879 | arg1 = &temp1; | |
4880 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4881 | } | |
4882 | { | |
4883 | arg2 = &temp2; | |
4884 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4885 | } | |
4886 | { | |
4887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4888 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
4889 | ||
4890 | wxPyEndAllowThreads(__tstate); | |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
4892 | } | |
15afbcd0 | 4893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4894 | return resultobj; |
4895 | fail: | |
4896 | return NULL; | |
4897 | } | |
4898 | ||
4899 | ||
d3b6e4ff RD |
4900 | static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) { |
4901 | PyObject *resultobj; | |
4902 | wxSize *arg1 = 0 ; | |
4903 | wxRect *result; | |
4904 | wxSize temp1 ; | |
4905 | PyObject * obj0 = 0 ; | |
4906 | char *kwnames[] = { | |
4907 | (char *) "size", NULL | |
4908 | }; | |
4909 | ||
4910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail; | |
4911 | { | |
4912 | arg1 = &temp1; | |
4913 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
4914 | } | |
4915 | { | |
4916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4917 | result = (wxRect *)new wxRect((wxSize const &)*arg1); | |
4918 | ||
4919 | wxPyEndAllowThreads(__tstate); | |
4920 | if (PyErr_Occurred()) SWIG_fail; | |
4921 | } | |
4922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
4923 | return resultobj; | |
4924 | fail: | |
4925 | return NULL; | |
4926 | } | |
4927 | ||
4928 | ||
c32bde28 | 4929 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4930 | PyObject *resultobj; |
4931 | wxRect *arg1 = (wxRect *) 0 ; | |
4932 | PyObject * obj0 = 0 ; | |
4933 | char *kwnames[] = { | |
4934 | (char *) "self", NULL | |
4935 | }; | |
4936 | ||
4937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4940 | { |
4941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4942 | delete arg1; | |
4943 | ||
4944 | wxPyEndAllowThreads(__tstate); | |
4945 | if (PyErr_Occurred()) SWIG_fail; | |
4946 | } | |
4947 | Py_INCREF(Py_None); resultobj = Py_None; | |
4948 | return resultobj; | |
4949 | fail: | |
4950 | return NULL; | |
4951 | } | |
4952 | ||
4953 | ||
c32bde28 | 4954 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4955 | PyObject *resultobj; |
4956 | wxRect *arg1 = (wxRect *) 0 ; | |
4957 | int result; | |
4958 | PyObject * obj0 = 0 ; | |
4959 | char *kwnames[] = { | |
4960 | (char *) "self", NULL | |
4961 | }; | |
4962 | ||
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4966 | { |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | result = (int)((wxRect const *)arg1)->GetX(); | |
4969 | ||
4970 | wxPyEndAllowThreads(__tstate); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
093d3ff1 RD |
4973 | { |
4974 | resultobj = SWIG_From_int((int)(result)); | |
4975 | } | |
d14a1e28 RD |
4976 | return resultobj; |
4977 | fail: | |
4978 | return NULL; | |
4979 | } | |
4980 | ||
4981 | ||
c32bde28 | 4982 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4983 | PyObject *resultobj; |
4984 | wxRect *arg1 = (wxRect *) 0 ; | |
4985 | int arg2 ; | |
4986 | PyObject * obj0 = 0 ; | |
994141e6 | 4987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4988 | char *kwnames[] = { |
4989 | (char *) "self",(char *) "x", NULL | |
4990 | }; | |
4991 | ||
994141e6 | 4992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
4994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4995 | { | |
4996 | arg2 = (int)(SWIG_As_int(obj1)); | |
4997 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4998 | } | |
d14a1e28 RD |
4999 | { |
5000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5001 | (arg1)->SetX(arg2); | |
5002 | ||
5003 | wxPyEndAllowThreads(__tstate); | |
5004 | if (PyErr_Occurred()) SWIG_fail; | |
5005 | } | |
5006 | Py_INCREF(Py_None); resultobj = Py_None; | |
5007 | return resultobj; | |
5008 | fail: | |
5009 | return NULL; | |
5010 | } | |
5011 | ||
5012 | ||
c32bde28 | 5013 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5014 | PyObject *resultobj; |
5015 | wxRect *arg1 = (wxRect *) 0 ; | |
5016 | int result; | |
5017 | PyObject * obj0 = 0 ; | |
5018 | char *kwnames[] = { | |
5019 | (char *) "self", NULL | |
5020 | }; | |
5021 | ||
5022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5025 | { |
5026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5027 | result = (int)(arg1)->GetY(); | |
5028 | ||
5029 | wxPyEndAllowThreads(__tstate); | |
5030 | if (PyErr_Occurred()) SWIG_fail; | |
5031 | } | |
093d3ff1 RD |
5032 | { |
5033 | resultobj = SWIG_From_int((int)(result)); | |
5034 | } | |
d14a1e28 RD |
5035 | return resultobj; |
5036 | fail: | |
5037 | return NULL; | |
5038 | } | |
5039 | ||
5040 | ||
c32bde28 | 5041 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5042 | PyObject *resultobj; |
5043 | wxRect *arg1 = (wxRect *) 0 ; | |
5044 | int arg2 ; | |
5045 | PyObject * obj0 = 0 ; | |
994141e6 | 5046 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5047 | char *kwnames[] = { |
5048 | (char *) "self",(char *) "y", NULL | |
5049 | }; | |
5050 | ||
994141e6 | 5051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5054 | { | |
5055 | arg2 = (int)(SWIG_As_int(obj1)); | |
5056 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5057 | } | |
d14a1e28 RD |
5058 | { |
5059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5060 | (arg1)->SetY(arg2); | |
5061 | ||
5062 | wxPyEndAllowThreads(__tstate); | |
5063 | if (PyErr_Occurred()) SWIG_fail; | |
5064 | } | |
5065 | Py_INCREF(Py_None); resultobj = Py_None; | |
5066 | return resultobj; | |
5067 | fail: | |
5068 | return NULL; | |
5069 | } | |
5070 | ||
5071 | ||
c32bde28 | 5072 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5073 | PyObject *resultobj; |
5074 | wxRect *arg1 = (wxRect *) 0 ; | |
5075 | int result; | |
5076 | PyObject * obj0 = 0 ; | |
5077 | char *kwnames[] = { | |
5078 | (char *) "self", NULL | |
5079 | }; | |
5080 | ||
5081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5084 | { |
5085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5086 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
5087 | ||
5088 | wxPyEndAllowThreads(__tstate); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
5090 | } | |
093d3ff1 RD |
5091 | { |
5092 | resultobj = SWIG_From_int((int)(result)); | |
5093 | } | |
d14a1e28 RD |
5094 | return resultobj; |
5095 | fail: | |
5096 | return NULL; | |
5097 | } | |
5098 | ||
5099 | ||
c32bde28 | 5100 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5101 | PyObject *resultobj; |
5102 | wxRect *arg1 = (wxRect *) 0 ; | |
5103 | int arg2 ; | |
5104 | PyObject * obj0 = 0 ; | |
994141e6 | 5105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5106 | char *kwnames[] = { |
5107 | (char *) "self",(char *) "w", NULL | |
5108 | }; | |
5109 | ||
994141e6 | 5110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5113 | { | |
5114 | arg2 = (int)(SWIG_As_int(obj1)); | |
5115 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5116 | } | |
d14a1e28 RD |
5117 | { |
5118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5119 | (arg1)->SetWidth(arg2); | |
5120 | ||
5121 | wxPyEndAllowThreads(__tstate); | |
5122 | if (PyErr_Occurred()) SWIG_fail; | |
5123 | } | |
5124 | Py_INCREF(Py_None); resultobj = Py_None; | |
5125 | return resultobj; | |
5126 | fail: | |
5127 | return NULL; | |
5128 | } | |
5129 | ||
5130 | ||
c32bde28 | 5131 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5132 | PyObject *resultobj; |
5133 | wxRect *arg1 = (wxRect *) 0 ; | |
5134 | int result; | |
5135 | PyObject * obj0 = 0 ; | |
5136 | char *kwnames[] = { | |
5137 | (char *) "self", NULL | |
5138 | }; | |
5139 | ||
5140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5143 | { |
5144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5145 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
5146 | ||
5147 | wxPyEndAllowThreads(__tstate); | |
5148 | if (PyErr_Occurred()) SWIG_fail; | |
5149 | } | |
093d3ff1 RD |
5150 | { |
5151 | resultobj = SWIG_From_int((int)(result)); | |
5152 | } | |
d14a1e28 RD |
5153 | return resultobj; |
5154 | fail: | |
5155 | return NULL; | |
5156 | } | |
5157 | ||
5158 | ||
c32bde28 | 5159 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5160 | PyObject *resultobj; |
5161 | wxRect *arg1 = (wxRect *) 0 ; | |
5162 | int arg2 ; | |
5163 | PyObject * obj0 = 0 ; | |
994141e6 | 5164 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5165 | char *kwnames[] = { |
5166 | (char *) "self",(char *) "h", NULL | |
5167 | }; | |
5168 | ||
994141e6 | 5169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5172 | { | |
5173 | arg2 = (int)(SWIG_As_int(obj1)); | |
5174 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5175 | } | |
d14a1e28 RD |
5176 | { |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | (arg1)->SetHeight(arg2); | |
5179 | ||
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
5183 | Py_INCREF(Py_None); resultobj = Py_None; | |
5184 | return resultobj; | |
5185 | fail: | |
5186 | return NULL; | |
5187 | } | |
5188 | ||
5189 | ||
c32bde28 | 5190 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5191 | PyObject *resultobj; |
5192 | wxRect *arg1 = (wxRect *) 0 ; | |
5193 | wxPoint result; | |
5194 | PyObject * obj0 = 0 ; | |
5195 | char *kwnames[] = { | |
5196 | (char *) "self", NULL | |
5197 | }; | |
5198 | ||
5199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5202 | { |
5203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5204 | result = ((wxRect const *)arg1)->GetPosition(); | |
5205 | ||
5206 | wxPyEndAllowThreads(__tstate); | |
5207 | if (PyErr_Occurred()) SWIG_fail; | |
5208 | } | |
5209 | { | |
5210 | wxPoint * resultptr; | |
093d3ff1 | 5211 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 5212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
5213 | } |
5214 | return resultobj; | |
5215 | fail: | |
5216 | return NULL; | |
5217 | } | |
5218 | ||
5219 | ||
c32bde28 | 5220 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5221 | PyObject *resultobj; |
5222 | wxRect *arg1 = (wxRect *) 0 ; | |
5223 | wxPoint *arg2 = 0 ; | |
5224 | wxPoint temp2 ; | |
5225 | PyObject * obj0 = 0 ; | |
5226 | PyObject * obj1 = 0 ; | |
5227 | char *kwnames[] = { | |
5228 | (char *) "self",(char *) "p", NULL | |
5229 | }; | |
5230 | ||
5231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5234 | { |
5235 | arg2 = &temp2; | |
5236 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5237 | } | |
5238 | { | |
5239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5240 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
5241 | ||
5242 | wxPyEndAllowThreads(__tstate); | |
5243 | if (PyErr_Occurred()) SWIG_fail; | |
5244 | } | |
5245 | Py_INCREF(Py_None); resultobj = Py_None; | |
5246 | return resultobj; | |
5247 | fail: | |
5248 | return NULL; | |
5249 | } | |
5250 | ||
5251 | ||
c32bde28 | 5252 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5253 | PyObject *resultobj; |
5254 | wxRect *arg1 = (wxRect *) 0 ; | |
5255 | wxSize result; | |
5256 | PyObject * obj0 = 0 ; | |
5257 | char *kwnames[] = { | |
5258 | (char *) "self", NULL | |
5259 | }; | |
5260 | ||
5261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5264 | { |
5265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5266 | result = ((wxRect const *)arg1)->GetSize(); | |
5267 | ||
5268 | wxPyEndAllowThreads(__tstate); | |
5269 | if (PyErr_Occurred()) SWIG_fail; | |
5270 | } | |
5271 | { | |
5272 | wxSize * resultptr; | |
093d3ff1 | 5273 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 5274 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
5275 | } |
5276 | return resultobj; | |
5277 | fail: | |
5278 | return NULL; | |
5279 | } | |
5280 | ||
5281 | ||
c32bde28 | 5282 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5283 | PyObject *resultobj; |
5284 | wxRect *arg1 = (wxRect *) 0 ; | |
5285 | wxSize *arg2 = 0 ; | |
5286 | wxSize temp2 ; | |
5287 | PyObject * obj0 = 0 ; | |
5288 | PyObject * obj1 = 0 ; | |
5289 | char *kwnames[] = { | |
5290 | (char *) "self",(char *) "s", NULL | |
5291 | }; | |
5292 | ||
5293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5296 | { |
5297 | arg2 = &temp2; | |
5298 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5299 | } | |
5300 | { | |
5301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5302 | (arg1)->SetSize((wxSize const &)*arg2); | |
5303 | ||
5304 | wxPyEndAllowThreads(__tstate); | |
5305 | if (PyErr_Occurred()) SWIG_fail; | |
5306 | } | |
5307 | Py_INCREF(Py_None); resultobj = Py_None; | |
5308 | return resultobj; | |
5309 | fail: | |
5310 | return NULL; | |
5311 | } | |
5312 | ||
5313 | ||
aff4cc5c RD |
5314 | static PyObject *_wrap_Rect_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
5315 | PyObject *resultobj; | |
5316 | wxRect *arg1 = (wxRect *) 0 ; | |
5317 | bool result; | |
5318 | PyObject * obj0 = 0 ; | |
5319 | char *kwnames[] = { | |
5320 | (char *) "self", NULL | |
5321 | }; | |
5322 | ||
5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_IsEmpty",kwnames,&obj0)) goto fail; | |
5324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
5325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5326 | { | |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | result = (bool)((wxRect const *)arg1)->IsEmpty(); | |
5329 | ||
5330 | wxPyEndAllowThreads(__tstate); | |
5331 | if (PyErr_Occurred()) SWIG_fail; | |
5332 | } | |
5333 | { | |
5334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5335 | } | |
5336 | return resultobj; | |
5337 | fail: | |
5338 | return NULL; | |
5339 | } | |
5340 | ||
5341 | ||
c32bde28 | 5342 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
5343 | PyObject *resultobj; |
5344 | wxRect *arg1 = (wxRect *) 0 ; | |
5345 | wxPoint result; | |
5346 | PyObject * obj0 = 0 ; | |
5347 | char *kwnames[] = { | |
5348 | (char *) "self", NULL | |
5349 | }; | |
5350 | ||
5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5352 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5353 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
5354 | { |
5355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5356 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
5357 | ||
5358 | wxPyEndAllowThreads(__tstate); | |
5359 | if (PyErr_Occurred()) SWIG_fail; | |
5360 | } | |
5361 | { | |
5362 | wxPoint * resultptr; | |
093d3ff1 | 5363 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 5364 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
5365 | } |
5366 | return resultobj; | |
5367 | fail: | |
5368 | return NULL; | |
5369 | } | |
5370 | ||
5371 | ||
c32bde28 | 5372 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
5373 | PyObject *resultobj; |
5374 | wxRect *arg1 = (wxRect *) 0 ; | |
5375 | wxPoint *arg2 = 0 ; | |
5376 | wxPoint temp2 ; | |
5377 | PyObject * obj0 = 0 ; | |
5378 | PyObject * obj1 = 0 ; | |
5379 | char *kwnames[] = { | |
5380 | (char *) "self",(char *) "p", NULL | |
5381 | }; | |
5382 | ||
5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
5386 | { |
5387 | arg2 = &temp2; | |
5388 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5389 | } | |
5390 | { | |
5391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5392 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
5393 | ||
5394 | wxPyEndAllowThreads(__tstate); | |
5395 | if (PyErr_Occurred()) SWIG_fail; | |
5396 | } | |
5397 | Py_INCREF(Py_None); resultobj = Py_None; | |
5398 | return resultobj; | |
5399 | fail: | |
5400 | return NULL; | |
5401 | } | |
5402 | ||
5403 | ||
c32bde28 | 5404 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
5405 | PyObject *resultobj; |
5406 | wxRect *arg1 = (wxRect *) 0 ; | |
5407 | wxPoint result; | |
5408 | PyObject * obj0 = 0 ; | |
5409 | char *kwnames[] = { | |
5410 | (char *) "self", NULL | |
5411 | }; | |
5412 | ||
5413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
5416 | { |
5417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5418 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
5419 | ||
5420 | wxPyEndAllowThreads(__tstate); | |
5421 | if (PyErr_Occurred()) SWIG_fail; | |
5422 | } | |
5423 | { | |
5424 | wxPoint * resultptr; | |
093d3ff1 | 5425 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 5426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
5427 | } |
5428 | return resultobj; | |
5429 | fail: | |
5430 | return NULL; | |
5431 | } | |
5432 | ||
5433 | ||
c32bde28 | 5434 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
5435 | PyObject *resultobj; |
5436 | wxRect *arg1 = (wxRect *) 0 ; | |
5437 | wxPoint *arg2 = 0 ; | |
5438 | wxPoint temp2 ; | |
5439 | PyObject * obj0 = 0 ; | |
5440 | PyObject * obj1 = 0 ; | |
5441 | char *kwnames[] = { | |
5442 | (char *) "self",(char *) "p", NULL | |
5443 | }; | |
5444 | ||
5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
5448 | { |
5449 | arg2 = &temp2; | |
5450 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5451 | } | |
5452 | { | |
5453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5454 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
5455 | ||
5456 | wxPyEndAllowThreads(__tstate); | |
5457 | if (PyErr_Occurred()) SWIG_fail; | |
5458 | } | |
5459 | Py_INCREF(Py_None); resultobj = Py_None; | |
5460 | return resultobj; | |
5461 | fail: | |
5462 | return NULL; | |
5463 | } | |
5464 | ||
5465 | ||
c32bde28 | 5466 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5467 | PyObject *resultobj; |
5468 | wxRect *arg1 = (wxRect *) 0 ; | |
5469 | int result; | |
5470 | PyObject * obj0 = 0 ; | |
5471 | char *kwnames[] = { | |
5472 | (char *) "self", NULL | |
5473 | }; | |
5474 | ||
5475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5478 | { |
5479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5480 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
5481 | ||
5482 | wxPyEndAllowThreads(__tstate); | |
5483 | if (PyErr_Occurred()) SWIG_fail; | |
5484 | } | |
093d3ff1 RD |
5485 | { |
5486 | resultobj = SWIG_From_int((int)(result)); | |
5487 | } | |
d14a1e28 RD |
5488 | return resultobj; |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
c32bde28 | 5494 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5495 | PyObject *resultobj; |
5496 | wxRect *arg1 = (wxRect *) 0 ; | |
5497 | int result; | |
5498 | PyObject * obj0 = 0 ; | |
5499 | char *kwnames[] = { | |
5500 | (char *) "self", NULL | |
5501 | }; | |
5502 | ||
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5504 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5505 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5506 | { |
5507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5508 | result = (int)((wxRect const *)arg1)->GetTop(); | |
5509 | ||
5510 | wxPyEndAllowThreads(__tstate); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
093d3ff1 RD |
5513 | { |
5514 | resultobj = SWIG_From_int((int)(result)); | |
5515 | } | |
d14a1e28 RD |
5516 | return resultobj; |
5517 | fail: | |
5518 | return NULL; | |
5519 | } | |
5520 | ||
5521 | ||
c32bde28 | 5522 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5523 | PyObject *resultobj; |
5524 | wxRect *arg1 = (wxRect *) 0 ; | |
5525 | int result; | |
5526 | PyObject * obj0 = 0 ; | |
5527 | char *kwnames[] = { | |
5528 | (char *) "self", NULL | |
5529 | }; | |
5530 | ||
5531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5532 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5533 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5534 | { |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5536 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
5537 | ||
5538 | wxPyEndAllowThreads(__tstate); | |
5539 | if (PyErr_Occurred()) SWIG_fail; | |
5540 | } | |
093d3ff1 RD |
5541 | { |
5542 | resultobj = SWIG_From_int((int)(result)); | |
5543 | } | |
d14a1e28 RD |
5544 | return resultobj; |
5545 | fail: | |
5546 | return NULL; | |
5547 | } | |
5548 | ||
5549 | ||
c32bde28 | 5550 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5551 | PyObject *resultobj; |
5552 | wxRect *arg1 = (wxRect *) 0 ; | |
5553 | int result; | |
5554 | PyObject * obj0 = 0 ; | |
5555 | char *kwnames[] = { | |
5556 | (char *) "self", NULL | |
5557 | }; | |
5558 | ||
5559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5562 | { |
5563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5564 | result = (int)((wxRect const *)arg1)->GetRight(); | |
5565 | ||
5566 | wxPyEndAllowThreads(__tstate); | |
5567 | if (PyErr_Occurred()) SWIG_fail; | |
5568 | } | |
093d3ff1 RD |
5569 | { |
5570 | resultobj = SWIG_From_int((int)(result)); | |
5571 | } | |
d14a1e28 RD |
5572 | return resultobj; |
5573 | fail: | |
5574 | return NULL; | |
5575 | } | |
5576 | ||
5577 | ||
c32bde28 | 5578 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5579 | PyObject *resultobj; |
5580 | wxRect *arg1 = (wxRect *) 0 ; | |
5581 | int arg2 ; | |
5582 | PyObject * obj0 = 0 ; | |
994141e6 | 5583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5584 | char *kwnames[] = { |
5585 | (char *) "self",(char *) "left", NULL | |
5586 | }; | |
5587 | ||
994141e6 | 5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5591 | { | |
5592 | arg2 = (int)(SWIG_As_int(obj1)); | |
5593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5594 | } | |
d14a1e28 RD |
5595 | { |
5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5597 | (arg1)->SetLeft(arg2); | |
5598 | ||
5599 | wxPyEndAllowThreads(__tstate); | |
5600 | if (PyErr_Occurred()) SWIG_fail; | |
5601 | } | |
5602 | Py_INCREF(Py_None); resultobj = Py_None; | |
5603 | return resultobj; | |
5604 | fail: | |
5605 | return NULL; | |
5606 | } | |
5607 | ||
5608 | ||
c32bde28 | 5609 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5610 | PyObject *resultobj; |
5611 | wxRect *arg1 = (wxRect *) 0 ; | |
5612 | int arg2 ; | |
5613 | PyObject * obj0 = 0 ; | |
994141e6 | 5614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5615 | char *kwnames[] = { |
5616 | (char *) "self",(char *) "right", NULL | |
5617 | }; | |
5618 | ||
994141e6 | 5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5622 | { | |
5623 | arg2 = (int)(SWIG_As_int(obj1)); | |
5624 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5625 | } | |
d14a1e28 RD |
5626 | { |
5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5628 | (arg1)->SetRight(arg2); | |
5629 | ||
5630 | wxPyEndAllowThreads(__tstate); | |
5631 | if (PyErr_Occurred()) SWIG_fail; | |
5632 | } | |
5633 | Py_INCREF(Py_None); resultobj = Py_None; | |
5634 | return resultobj; | |
5635 | fail: | |
5636 | return NULL; | |
5637 | } | |
5638 | ||
5639 | ||
c32bde28 | 5640 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5641 | PyObject *resultobj; |
5642 | wxRect *arg1 = (wxRect *) 0 ; | |
5643 | int arg2 ; | |
5644 | PyObject * obj0 = 0 ; | |
994141e6 | 5645 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5646 | char *kwnames[] = { |
5647 | (char *) "self",(char *) "top", NULL | |
5648 | }; | |
5649 | ||
994141e6 | 5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5653 | { | |
5654 | arg2 = (int)(SWIG_As_int(obj1)); | |
5655 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5656 | } | |
d14a1e28 RD |
5657 | { |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | (arg1)->SetTop(arg2); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | Py_INCREF(Py_None); resultobj = Py_None; | |
5665 | return resultobj; | |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
c32bde28 | 5671 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5672 | PyObject *resultobj; |
5673 | wxRect *arg1 = (wxRect *) 0 ; | |
5674 | int arg2 ; | |
5675 | PyObject * obj0 = 0 ; | |
994141e6 | 5676 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5677 | char *kwnames[] = { |
5678 | (char *) "self",(char *) "bottom", NULL | |
5679 | }; | |
5680 | ||
994141e6 | 5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5684 | { | |
5685 | arg2 = (int)(SWIG_As_int(obj1)); | |
5686 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5687 | } | |
d14a1e28 RD |
5688 | { |
5689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5690 | (arg1)->SetBottom(arg2); | |
5691 | ||
5692 | wxPyEndAllowThreads(__tstate); | |
5693 | if (PyErr_Occurred()) SWIG_fail; | |
5694 | } | |
5695 | Py_INCREF(Py_None); resultobj = Py_None; | |
5696 | return resultobj; | |
5697 | fail: | |
5698 | return NULL; | |
5699 | } | |
5700 | ||
5701 | ||
c32bde28 | 5702 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5703 | PyObject *resultobj; |
5704 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
5705 | int arg2 ; |
5706 | int arg3 ; | |
d14a1e28 RD |
5707 | wxRect *result; |
5708 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5709 | PyObject * obj1 = 0 ; |
5710 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5711 | char *kwnames[] = { |
5712 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5713 | }; | |
5714 | ||
994141e6 | 5715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
5716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5718 | { | |
5719 | arg2 = (int)(SWIG_As_int(obj1)); | |
5720 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5721 | } | |
5722 | { | |
5723 | arg3 = (int)(SWIG_As_int(obj2)); | |
5724 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5725 | } | |
d14a1e28 RD |
5726 | { |
5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5728 | { | |
5729 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
5730 | result = (wxRect *) &_result_ref; | |
5731 | } | |
5732 | ||
5733 | wxPyEndAllowThreads(__tstate); | |
5734 | if (PyErr_Occurred()) SWIG_fail; | |
5735 | } | |
15afbcd0 | 5736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
5737 | return resultobj; |
5738 | fail: | |
5739 | return NULL; | |
5740 | } | |
5741 | ||
5742 | ||
c32bde28 | 5743 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5744 | PyObject *resultobj; |
5745 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
5746 | int arg2 ; |
5747 | int arg3 ; | |
d14a1e28 RD |
5748 | wxRect *result; |
5749 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5750 | PyObject * obj1 = 0 ; |
5751 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5752 | char *kwnames[] = { |
5753 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5754 | }; | |
5755 | ||
994141e6 | 5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
5757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5759 | { | |
5760 | arg2 = (int)(SWIG_As_int(obj1)); | |
5761 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5762 | } | |
5763 | { | |
5764 | arg3 = (int)(SWIG_As_int(obj2)); | |
5765 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5766 | } | |
d14a1e28 RD |
5767 | { |
5768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5769 | { | |
5770 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
5771 | result = (wxRect *) &_result_ref; | |
5772 | } | |
5773 | ||
5774 | wxPyEndAllowThreads(__tstate); | |
5775 | if (PyErr_Occurred()) SWIG_fail; | |
5776 | } | |
15afbcd0 | 5777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
5778 | return resultobj; |
5779 | fail: | |
5780 | return NULL; | |
5781 | } | |
5782 | ||
5783 | ||
c32bde28 | 5784 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5785 | PyObject *resultobj; |
5786 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
5787 | int arg2 ; |
5788 | int arg3 ; | |
d14a1e28 | 5789 | PyObject * obj0 = 0 ; |
994141e6 RD |
5790 | PyObject * obj1 = 0 ; |
5791 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5792 | char *kwnames[] = { |
5793 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
5794 | }; | |
5795 | ||
994141e6 | 5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
5797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5799 | { | |
5800 | arg2 = (int)(SWIG_As_int(obj1)); | |
5801 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5802 | } | |
5803 | { | |
5804 | arg3 = (int)(SWIG_As_int(obj2)); | |
5805 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5806 | } | |
d14a1e28 RD |
5807 | { |
5808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5809 | (arg1)->Offset(arg2,arg3); | |
5810 | ||
5811 | wxPyEndAllowThreads(__tstate); | |
5812 | if (PyErr_Occurred()) SWIG_fail; | |
5813 | } | |
5814 | Py_INCREF(Py_None); resultobj = Py_None; | |
5815 | return resultobj; | |
5816 | fail: | |
5817 | return NULL; | |
5818 | } | |
5819 | ||
5820 | ||
c32bde28 | 5821 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5822 | PyObject *resultobj; |
5823 | wxRect *arg1 = (wxRect *) 0 ; | |
5824 | wxPoint *arg2 = 0 ; | |
5825 | wxPoint temp2 ; | |
5826 | PyObject * obj0 = 0 ; | |
5827 | PyObject * obj1 = 0 ; | |
5828 | char *kwnames[] = { | |
5829 | (char *) "self",(char *) "pt", NULL | |
5830 | }; | |
5831 | ||
5832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5835 | { |
5836 | arg2 = &temp2; | |
5837 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5838 | } | |
5839 | { | |
5840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5841 | (arg1)->Offset((wxPoint const &)*arg2); | |
5842 | ||
5843 | wxPyEndAllowThreads(__tstate); | |
5844 | if (PyErr_Occurred()) SWIG_fail; | |
5845 | } | |
5846 | Py_INCREF(Py_None); resultobj = Py_None; | |
5847 | return resultobj; | |
5848 | fail: | |
5849 | return NULL; | |
5850 | } | |
5851 | ||
5852 | ||
c32bde28 | 5853 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5854 | PyObject *resultobj; |
5855 | wxRect *arg1 = (wxRect *) 0 ; | |
5856 | wxRect *arg2 = 0 ; | |
5cbf236d | 5857 | wxRect result; |
d14a1e28 RD |
5858 | wxRect temp2 ; |
5859 | PyObject * obj0 = 0 ; | |
5860 | PyObject * obj1 = 0 ; | |
5861 | char *kwnames[] = { | |
5862 | (char *) "self",(char *) "rect", NULL | |
5863 | }; | |
5864 | ||
5865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5868 | { |
5869 | arg2 = &temp2; | |
5870 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5871 | } | |
5872 | { | |
5873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5cbf236d | 5874 | result = (arg1)->Intersect((wxRect const &)*arg2); |
d14a1e28 RD |
5875 | |
5876 | wxPyEndAllowThreads(__tstate); | |
5877 | if (PyErr_Occurred()) SWIG_fail; | |
5878 | } | |
5cbf236d RD |
5879 | { |
5880 | wxRect * resultptr; | |
093d3ff1 | 5881 | resultptr = new wxRect((wxRect &)(result)); |
5cbf236d RD |
5882 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5883 | } | |
5884 | return resultobj; | |
5885 | fail: | |
5886 | return NULL; | |
5887 | } | |
5888 | ||
5889 | ||
5890 | static PyObject *_wrap_Rect_Union(PyObject *, PyObject *args, PyObject *kwargs) { | |
5891 | PyObject *resultobj; | |
5892 | wxRect *arg1 = (wxRect *) 0 ; | |
5893 | wxRect *arg2 = 0 ; | |
5894 | wxRect result; | |
5895 | wxRect temp2 ; | |
5896 | PyObject * obj0 = 0 ; | |
5897 | PyObject * obj1 = 0 ; | |
5898 | char *kwnames[] = { | |
5899 | (char *) "self",(char *) "rect", NULL | |
5900 | }; | |
5901 | ||
5902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5905 | { |
5906 | arg2 = &temp2; | |
5907 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5908 | } | |
5909 | { | |
5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5911 | result = (arg1)->Union((wxRect const &)*arg2); | |
5912 | ||
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
5915 | } | |
5916 | { | |
5917 | wxRect * resultptr; | |
093d3ff1 | 5918 | resultptr = new wxRect((wxRect &)(result)); |
5cbf236d RD |
5919 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
5920 | } | |
d14a1e28 RD |
5921 | return resultobj; |
5922 | fail: | |
5923 | return NULL; | |
5924 | } | |
5925 | ||
5926 | ||
c32bde28 | 5927 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5928 | PyObject *resultobj; |
5929 | wxRect *arg1 = (wxRect *) 0 ; | |
5930 | wxRect *arg2 = 0 ; | |
5931 | wxRect result; | |
5932 | wxRect temp2 ; | |
5933 | PyObject * obj0 = 0 ; | |
5934 | PyObject * obj1 = 0 ; | |
5935 | char *kwnames[] = { | |
5936 | (char *) "self",(char *) "rect", NULL | |
5937 | }; | |
5938 | ||
5939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
5941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5942 | { |
5943 | arg2 = &temp2; | |
5944 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5945 | } | |
5946 | { | |
5947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5948 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
5949 | ||
5950 | wxPyEndAllowThreads(__tstate); | |
5951 | if (PyErr_Occurred()) SWIG_fail; | |
5952 | } | |
5953 | { | |
5954 | wxRect * resultptr; | |
093d3ff1 | 5955 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 5956 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5957 | } |
5958 | return resultobj; | |
5959 | fail: | |
5960 | return NULL; | |
5961 | } | |
5962 | ||
5963 | ||
c32bde28 | 5964 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5965 | PyObject *resultobj; |
5966 | wxRect *arg1 = (wxRect *) 0 ; | |
5967 | wxRect *arg2 = 0 ; | |
5968 | wxRect *result; | |
5969 | wxRect temp2 ; | |
5970 | PyObject * obj0 = 0 ; | |
5971 | PyObject * obj1 = 0 ; | |
5972 | char *kwnames[] = { | |
5973 | (char *) "self",(char *) "rect", NULL | |
5974 | }; | |
5975 | ||
5976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
5978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5979 | { |
5980 | arg2 = &temp2; | |
5981 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5982 | } | |
5983 | { | |
5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5985 | { | |
5986 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
5987 | result = (wxRect *) &_result_ref; | |
5988 | } | |
5989 | ||
5990 | wxPyEndAllowThreads(__tstate); | |
5991 | if (PyErr_Occurred()) SWIG_fail; | |
5992 | } | |
c32bde28 | 5993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5994 | return resultobj; |
5995 | fail: | |
5996 | return NULL; | |
5997 | } | |
5998 | ||
5999 | ||
c32bde28 | 6000 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6001 | PyObject *resultobj; |
6002 | wxRect *arg1 = (wxRect *) 0 ; | |
6003 | wxRect *arg2 = 0 ; | |
6004 | bool result; | |
6005 | wxRect temp2 ; | |
6006 | PyObject * obj0 = 0 ; | |
6007 | PyObject * obj1 = 0 ; | |
6008 | char *kwnames[] = { | |
6009 | (char *) "self",(char *) "rect", NULL | |
6010 | }; | |
6011 | ||
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6015 | { |
6016 | arg2 = &temp2; | |
6017 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6018 | } | |
6019 | { | |
6020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6021 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
6022 | ||
6023 | wxPyEndAllowThreads(__tstate); | |
6024 | if (PyErr_Occurred()) SWIG_fail; | |
6025 | } | |
4f89f6a3 RD |
6026 | { |
6027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6028 | } | |
d14a1e28 RD |
6029 | return resultobj; |
6030 | fail: | |
6031 | return NULL; | |
6032 | } | |
6033 | ||
6034 | ||
c32bde28 | 6035 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6036 | PyObject *resultobj; |
6037 | wxRect *arg1 = (wxRect *) 0 ; | |
6038 | wxRect *arg2 = 0 ; | |
6039 | bool result; | |
6040 | wxRect temp2 ; | |
6041 | PyObject * obj0 = 0 ; | |
6042 | PyObject * obj1 = 0 ; | |
6043 | char *kwnames[] = { | |
6044 | (char *) "self",(char *) "rect", NULL | |
6045 | }; | |
6046 | ||
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6050 | { |
6051 | arg2 = &temp2; | |
6052 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6053 | } | |
6054 | { | |
6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6056 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
6057 | ||
6058 | wxPyEndAllowThreads(__tstate); | |
6059 | if (PyErr_Occurred()) SWIG_fail; | |
6060 | } | |
4f89f6a3 RD |
6061 | { |
6062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6063 | } | |
d14a1e28 RD |
6064 | return resultobj; |
6065 | fail: | |
6066 | return NULL; | |
6067 | } | |
6068 | ||
6069 | ||
c32bde28 | 6070 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6071 | PyObject *resultobj; |
6072 | wxRect *arg1 = (wxRect *) 0 ; | |
6073 | int arg2 ; | |
6074 | int arg3 ; | |
6075 | bool result; | |
6076 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6077 | PyObject * obj1 = 0 ; |
6078 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6079 | char *kwnames[] = { |
6080 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6081 | }; | |
6082 | ||
994141e6 | 6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
6084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6086 | { | |
6087 | arg2 = (int)(SWIG_As_int(obj1)); | |
6088 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6089 | } | |
6090 | { | |
6091 | arg3 = (int)(SWIG_As_int(obj2)); | |
6092 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6093 | } | |
d14a1e28 RD |
6094 | { |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
4f89f6a3 RD |
6101 | { |
6102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6103 | } | |
d14a1e28 RD |
6104 | return resultobj; |
6105 | fail: | |
6106 | return NULL; | |
6107 | } | |
6108 | ||
6109 | ||
c32bde28 | 6110 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6111 | PyObject *resultobj; |
6112 | wxRect *arg1 = (wxRect *) 0 ; | |
6113 | wxPoint *arg2 = 0 ; | |
6114 | bool result; | |
6115 | wxPoint temp2 ; | |
6116 | PyObject * obj0 = 0 ; | |
6117 | PyObject * obj1 = 0 ; | |
6118 | char *kwnames[] = { | |
6119 | (char *) "self",(char *) "pt", NULL | |
6120 | }; | |
6121 | ||
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6125 | { |
6126 | arg2 = &temp2; | |
6127 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6128 | } | |
6129 | { | |
6130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6131 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
6132 | ||
6133 | wxPyEndAllowThreads(__tstate); | |
6134 | if (PyErr_Occurred()) SWIG_fail; | |
6135 | } | |
4f89f6a3 RD |
6136 | { |
6137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6138 | } | |
d14a1e28 RD |
6139 | return resultobj; |
6140 | fail: | |
6141 | return NULL; | |
6142 | } | |
6143 | ||
6144 | ||
c32bde28 | 6145 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6146 | PyObject *resultobj; |
6147 | wxRect *arg1 = (wxRect *) 0 ; | |
6148 | wxRect *arg2 = 0 ; | |
6149 | bool result; | |
6150 | wxRect temp2 ; | |
6151 | PyObject * obj0 = 0 ; | |
6152 | PyObject * obj1 = 0 ; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "self",(char *) "rect", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6160 | { |
6161 | arg2 = &temp2; | |
6162 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6163 | } | |
6164 | { | |
6165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6166 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
6167 | ||
6168 | wxPyEndAllowThreads(__tstate); | |
6169 | if (PyErr_Occurred()) SWIG_fail; | |
6170 | } | |
4f89f6a3 RD |
6171 | { |
6172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6173 | } | |
d14a1e28 RD |
6174 | return resultobj; |
6175 | fail: | |
6176 | return NULL; | |
6177 | } | |
6178 | ||
6179 | ||
c32bde28 | 6180 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6181 | PyObject *resultobj; |
6182 | wxRect *arg1 = (wxRect *) 0 ; | |
6183 | int arg2 ; | |
6184 | PyObject * obj0 = 0 ; | |
994141e6 | 6185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6186 | char *kwnames[] = { |
6187 | (char *) "self",(char *) "x", NULL | |
6188 | }; | |
6189 | ||
994141e6 | 6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
6191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6193 | { | |
6194 | arg2 = (int)(SWIG_As_int(obj1)); | |
6195 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6196 | } | |
d14a1e28 RD |
6197 | if (arg1) (arg1)->x = arg2; |
6198 | ||
6199 | Py_INCREF(Py_None); resultobj = Py_None; | |
6200 | return resultobj; | |
6201 | fail: | |
6202 | return NULL; | |
6203 | } | |
6204 | ||
6205 | ||
c32bde28 | 6206 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6207 | PyObject *resultobj; |
6208 | wxRect *arg1 = (wxRect *) 0 ; | |
6209 | int result; | |
6210 | PyObject * obj0 = 0 ; | |
6211 | char *kwnames[] = { | |
6212 | (char *) "self", NULL | |
6213 | }; | |
6214 | ||
6215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6218 | result = (int) ((arg1)->x); |
6219 | ||
093d3ff1 RD |
6220 | { |
6221 | resultobj = SWIG_From_int((int)(result)); | |
6222 | } | |
d14a1e28 RD |
6223 | return resultobj; |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
c32bde28 | 6229 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6230 | PyObject *resultobj; |
6231 | wxRect *arg1 = (wxRect *) 0 ; | |
6232 | int arg2 ; | |
6233 | PyObject * obj0 = 0 ; | |
994141e6 | 6234 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6235 | char *kwnames[] = { |
6236 | (char *) "self",(char *) "y", NULL | |
6237 | }; | |
6238 | ||
994141e6 | 6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
6240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6242 | { | |
6243 | arg2 = (int)(SWIG_As_int(obj1)); | |
6244 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6245 | } | |
d14a1e28 RD |
6246 | if (arg1) (arg1)->y = arg2; |
6247 | ||
6248 | Py_INCREF(Py_None); resultobj = Py_None; | |
6249 | return resultobj; | |
6250 | fail: | |
6251 | return NULL; | |
6252 | } | |
6253 | ||
6254 | ||
c32bde28 | 6255 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6256 | PyObject *resultobj; |
6257 | wxRect *arg1 = (wxRect *) 0 ; | |
6258 | int result; | |
6259 | PyObject * obj0 = 0 ; | |
6260 | char *kwnames[] = { | |
6261 | (char *) "self", NULL | |
6262 | }; | |
6263 | ||
6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6265 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6267 | result = (int) ((arg1)->y); |
6268 | ||
093d3ff1 RD |
6269 | { |
6270 | resultobj = SWIG_From_int((int)(result)); | |
6271 | } | |
d14a1e28 RD |
6272 | return resultobj; |
6273 | fail: | |
6274 | return NULL; | |
6275 | } | |
6276 | ||
6277 | ||
c32bde28 | 6278 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6279 | PyObject *resultobj; |
6280 | wxRect *arg1 = (wxRect *) 0 ; | |
6281 | int arg2 ; | |
6282 | PyObject * obj0 = 0 ; | |
994141e6 | 6283 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6284 | char *kwnames[] = { |
6285 | (char *) "self",(char *) "width", NULL | |
6286 | }; | |
6287 | ||
994141e6 | 6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
6289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6291 | { | |
6292 | arg2 = (int)(SWIG_As_int(obj1)); | |
6293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6294 | } | |
d14a1e28 RD |
6295 | if (arg1) (arg1)->width = arg2; |
6296 | ||
6297 | Py_INCREF(Py_None); resultobj = Py_None; | |
6298 | return resultobj; | |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
c32bde28 | 6304 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6305 | PyObject *resultobj; |
6306 | wxRect *arg1 = (wxRect *) 0 ; | |
6307 | int result; | |
6308 | PyObject * obj0 = 0 ; | |
6309 | char *kwnames[] = { | |
6310 | (char *) "self", NULL | |
6311 | }; | |
6312 | ||
6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6316 | result = (int) ((arg1)->width); |
6317 | ||
093d3ff1 RD |
6318 | { |
6319 | resultobj = SWIG_From_int((int)(result)); | |
6320 | } | |
d14a1e28 RD |
6321 | return resultobj; |
6322 | fail: | |
6323 | return NULL; | |
6324 | } | |
6325 | ||
6326 | ||
c32bde28 | 6327 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6328 | PyObject *resultobj; |
6329 | wxRect *arg1 = (wxRect *) 0 ; | |
6330 | int arg2 ; | |
6331 | PyObject * obj0 = 0 ; | |
994141e6 | 6332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6333 | char *kwnames[] = { |
6334 | (char *) "self",(char *) "height", NULL | |
6335 | }; | |
6336 | ||
994141e6 | 6337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
6338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6340 | { | |
6341 | arg2 = (int)(SWIG_As_int(obj1)); | |
6342 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6343 | } | |
d14a1e28 RD |
6344 | if (arg1) (arg1)->height = arg2; |
6345 | ||
6346 | Py_INCREF(Py_None); resultobj = Py_None; | |
6347 | return resultobj; | |
6348 | fail: | |
6349 | return NULL; | |
6350 | } | |
6351 | ||
6352 | ||
c32bde28 | 6353 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6354 | PyObject *resultobj; |
6355 | wxRect *arg1 = (wxRect *) 0 ; | |
6356 | int result; | |
6357 | PyObject * obj0 = 0 ; | |
6358 | char *kwnames[] = { | |
6359 | (char *) "self", NULL | |
6360 | }; | |
6361 | ||
6362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6365 | result = (int) ((arg1)->height); |
6366 | ||
093d3ff1 RD |
6367 | { |
6368 | resultobj = SWIG_From_int((int)(result)); | |
6369 | } | |
d14a1e28 RD |
6370 | return resultobj; |
6371 | fail: | |
6372 | return NULL; | |
6373 | } | |
6374 | ||
6375 | ||
c32bde28 | 6376 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6377 | PyObject *resultobj; |
6378 | wxRect *arg1 = (wxRect *) 0 ; | |
6379 | int arg2 = (int) 0 ; | |
6380 | int arg3 = (int) 0 ; | |
6381 | int arg4 = (int) 0 ; | |
6382 | int arg5 = (int) 0 ; | |
6383 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6384 | PyObject * obj1 = 0 ; |
6385 | PyObject * obj2 = 0 ; | |
6386 | PyObject * obj3 = 0 ; | |
6387 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
6388 | char *kwnames[] = { |
6389 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
6390 | }; | |
6391 | ||
994141e6 | 6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
6393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 6395 | if (obj1) { |
093d3ff1 RD |
6396 | { |
6397 | arg2 = (int)(SWIG_As_int(obj1)); | |
6398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6399 | } | |
994141e6 RD |
6400 | } |
6401 | if (obj2) { | |
093d3ff1 RD |
6402 | { |
6403 | arg3 = (int)(SWIG_As_int(obj2)); | |
6404 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6405 | } | |
994141e6 RD |
6406 | } |
6407 | if (obj3) { | |
093d3ff1 RD |
6408 | { |
6409 | arg4 = (int)(SWIG_As_int(obj3)); | |
6410 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6411 | } | |
994141e6 RD |
6412 | } |
6413 | if (obj4) { | |
093d3ff1 RD |
6414 | { |
6415 | arg5 = (int)(SWIG_As_int(obj4)); | |
6416 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6417 | } | |
994141e6 | 6418 | } |
d14a1e28 RD |
6419 | { |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6421 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
6426 | Py_INCREF(Py_None); resultobj = Py_None; | |
6427 | return resultobj; | |
6428 | fail: | |
6429 | return NULL; | |
6430 | } | |
6431 | ||
6432 | ||
c32bde28 | 6433 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6434 | PyObject *resultobj; |
6435 | wxRect *arg1 = (wxRect *) 0 ; | |
6436 | PyObject *result; | |
6437 | PyObject * obj0 = 0 ; | |
6438 | char *kwnames[] = { | |
6439 | (char *) "self", NULL | |
6440 | }; | |
6441 | ||
e811c8ce | 6442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6443 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6445 | { |
6446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 6447 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
6448 | |
6449 | wxPyEndAllowThreads(__tstate); | |
6450 | if (PyErr_Occurred()) SWIG_fail; | |
6451 | } | |
6452 | resultobj = result; | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | return NULL; | |
6456 | } | |
6457 | ||
6458 | ||
c32bde28 | 6459 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6460 | PyObject *obj; |
6461 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6462 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
6463 | Py_INCREF(obj); | |
6464 | return Py_BuildValue((char *)""); | |
6465 | } | |
c32bde28 | 6466 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6467 | PyObject *resultobj; |
6468 | wxRect *arg1 = (wxRect *) 0 ; | |
6469 | wxRect *arg2 = (wxRect *) 0 ; | |
6470 | PyObject *result; | |
6471 | PyObject * obj0 = 0 ; | |
6472 | PyObject * obj1 = 0 ; | |
6473 | char *kwnames[] = { | |
6474 | (char *) "r1",(char *) "r2", NULL | |
6475 | }; | |
6476 | ||
6477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
6479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6480 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
6481 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 6482 | { |
e3b71cb8 | 6483 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6485 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
6486 | ||
6487 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6488 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6489 | } |
6490 | resultobj = result; | |
6491 | return resultobj; | |
6492 | fail: | |
6493 | return NULL; | |
6494 | } | |
6495 | ||
6496 | ||
c32bde28 | 6497 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6498 | PyObject *resultobj; |
6499 | double arg1 = (double) 0.0 ; | |
6500 | double arg2 = (double) 0.0 ; | |
6501 | wxPoint2D *result; | |
994141e6 RD |
6502 | PyObject * obj0 = 0 ; |
6503 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6504 | char *kwnames[] = { |
6505 | (char *) "x",(char *) "y", NULL | |
6506 | }; | |
6507 | ||
994141e6 RD |
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
6509 | if (obj0) { | |
093d3ff1 RD |
6510 | { |
6511 | arg1 = (double)(SWIG_As_double(obj0)); | |
6512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6513 | } | |
994141e6 RD |
6514 | } |
6515 | if (obj1) { | |
093d3ff1 RD |
6516 | { |
6517 | arg2 = (double)(SWIG_As_double(obj1)); | |
6518 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6519 | } | |
994141e6 | 6520 | } |
d14a1e28 RD |
6521 | { |
6522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6523 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
6524 | ||
6525 | wxPyEndAllowThreads(__tstate); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
15afbcd0 | 6528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
6529 | return resultobj; |
6530 | fail: | |
6531 | return NULL; | |
6532 | } | |
6533 | ||
6534 | ||
c32bde28 | 6535 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6536 | PyObject *resultobj; |
6537 | wxPoint2D *arg1 = 0 ; | |
6538 | wxPoint2D *result; | |
6539 | wxPoint2D temp1 ; | |
6540 | PyObject * obj0 = 0 ; | |
6541 | char *kwnames[] = { | |
6542 | (char *) "pt", NULL | |
6543 | }; | |
6544 | ||
6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
6546 | { | |
6547 | arg1 = &temp1; | |
6548 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
6549 | } | |
6550 | { | |
6551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6552 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
6553 | ||
6554 | wxPyEndAllowThreads(__tstate); | |
6555 | if (PyErr_Occurred()) SWIG_fail; | |
6556 | } | |
15afbcd0 | 6557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
6558 | return resultobj; |
6559 | fail: | |
6560 | return NULL; | |
6561 | } | |
6562 | ||
6563 | ||
c32bde28 | 6564 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6565 | PyObject *resultobj; |
6566 | wxPoint *arg1 = 0 ; | |
6567 | wxPoint2D *result; | |
6568 | wxPoint temp1 ; | |
6569 | PyObject * obj0 = 0 ; | |
6570 | char *kwnames[] = { | |
6571 | (char *) "pt", NULL | |
6572 | }; | |
6573 | ||
6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
6575 | { | |
6576 | arg1 = &temp1; | |
6577 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
6578 | } | |
6579 | { | |
6580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6581 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
6582 | ||
6583 | wxPyEndAllowThreads(__tstate); | |
6584 | if (PyErr_Occurred()) SWIG_fail; | |
6585 | } | |
15afbcd0 | 6586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
6587 | return resultobj; |
6588 | fail: | |
6589 | return NULL; | |
6590 | } | |
6591 | ||
6592 | ||
c32bde28 | 6593 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6594 | PyObject *resultobj; |
6595 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6596 | int *arg2 = (int *) 0 ; | |
6597 | int *arg3 = (int *) 0 ; | |
6598 | int temp2 ; | |
c32bde28 | 6599 | int res2 = 0 ; |
d14a1e28 | 6600 | int temp3 ; |
c32bde28 | 6601 | int res3 = 0 ; |
d14a1e28 RD |
6602 | PyObject * obj0 = 0 ; |
6603 | char *kwnames[] = { | |
6604 | (char *) "self", NULL | |
6605 | }; | |
6606 | ||
c32bde28 RD |
6607 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6608 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 6609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6610 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6612 | { |
6613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6614 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
6615 | ||
6616 | wxPyEndAllowThreads(__tstate); | |
6617 | if (PyErr_Occurred()) SWIG_fail; | |
6618 | } | |
6619 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
6620 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6621 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6622 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6623 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
6624 | return resultobj; |
6625 | fail: | |
6626 | return NULL; | |
6627 | } | |
6628 | ||
6629 | ||
c32bde28 | 6630 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6631 | PyObject *resultobj; |
6632 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6633 | int *arg2 = (int *) 0 ; | |
6634 | int *arg3 = (int *) 0 ; | |
6635 | int temp2 ; | |
c32bde28 | 6636 | int res2 = 0 ; |
d14a1e28 | 6637 | int temp3 ; |
c32bde28 | 6638 | int res3 = 0 ; |
d14a1e28 RD |
6639 | PyObject * obj0 = 0 ; |
6640 | char *kwnames[] = { | |
6641 | (char *) "self", NULL | |
6642 | }; | |
6643 | ||
c32bde28 RD |
6644 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
6645 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 6646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
6647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6649 | { |
6650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6651 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
6652 | ||
6653 | wxPyEndAllowThreads(__tstate); | |
6654 | if (PyErr_Occurred()) SWIG_fail; | |
6655 | } | |
6656 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
6657 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
6658 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
6659 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
6660 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
6661 | return resultobj; |
6662 | fail: | |
6663 | return NULL; | |
6664 | } | |
6665 | ||
6666 | ||
c32bde28 | 6667 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6668 | PyObject *resultobj; |
6669 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6670 | double result; | |
6671 | PyObject * obj0 = 0 ; | |
6672 | char *kwnames[] = { | |
6673 | (char *) "self", NULL | |
6674 | }; | |
6675 | ||
6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6679 | { |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
6685 | } | |
093d3ff1 RD |
6686 | { |
6687 | resultobj = SWIG_From_double((double)(result)); | |
6688 | } | |
d14a1e28 RD |
6689 | return resultobj; |
6690 | fail: | |
6691 | return NULL; | |
6692 | } | |
6693 | ||
6694 | ||
c32bde28 | 6695 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6696 | PyObject *resultobj; |
6697 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6698 | double result; | |
6699 | PyObject * obj0 = 0 ; | |
6700 | char *kwnames[] = { | |
6701 | (char *) "self", NULL | |
6702 | }; | |
6703 | ||
6704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6707 | { |
6708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6709 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
6710 | ||
6711 | wxPyEndAllowThreads(__tstate); | |
6712 | if (PyErr_Occurred()) SWIG_fail; | |
6713 | } | |
093d3ff1 RD |
6714 | { |
6715 | resultobj = SWIG_From_double((double)(result)); | |
6716 | } | |
d14a1e28 RD |
6717 | return resultobj; |
6718 | fail: | |
6719 | return NULL; | |
6720 | } | |
6721 | ||
6722 | ||
c32bde28 | 6723 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6724 | PyObject *resultobj; |
6725 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6726 | double arg2 ; | |
6727 | PyObject * obj0 = 0 ; | |
994141e6 | 6728 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6729 | char *kwnames[] = { |
6730 | (char *) "self",(char *) "length", NULL | |
6731 | }; | |
6732 | ||
994141e6 | 6733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
6734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6736 | { | |
6737 | arg2 = (double)(SWIG_As_double(obj1)); | |
6738 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6739 | } | |
d14a1e28 RD |
6740 | { |
6741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6742 | (arg1)->SetVectorLength(arg2); | |
6743 | ||
6744 | wxPyEndAllowThreads(__tstate); | |
6745 | if (PyErr_Occurred()) SWIG_fail; | |
6746 | } | |
6747 | Py_INCREF(Py_None); resultobj = Py_None; | |
6748 | return resultobj; | |
6749 | fail: | |
6750 | return NULL; | |
6751 | } | |
6752 | ||
6753 | ||
c32bde28 | 6754 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6755 | PyObject *resultobj; |
6756 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6757 | double arg2 ; | |
6758 | PyObject * obj0 = 0 ; | |
994141e6 | 6759 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6760 | char *kwnames[] = { |
6761 | (char *) "self",(char *) "degrees", NULL | |
6762 | }; | |
6763 | ||
994141e6 | 6764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
6765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6767 | { | |
6768 | arg2 = (double)(SWIG_As_double(obj1)); | |
6769 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6770 | } | |
d14a1e28 RD |
6771 | { |
6772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6773 | (arg1)->SetVectorAngle(arg2); | |
6774 | ||
6775 | wxPyEndAllowThreads(__tstate); | |
6776 | if (PyErr_Occurred()) SWIG_fail; | |
6777 | } | |
6778 | Py_INCREF(Py_None); resultobj = Py_None; | |
6779 | return resultobj; | |
6780 | fail: | |
6781 | return NULL; | |
6782 | } | |
6783 | ||
6784 | ||
c32bde28 | 6785 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6786 | PyObject *resultobj; |
6787 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6788 | wxPoint2D *arg2 = 0 ; | |
6789 | double result; | |
6790 | wxPoint2D temp2 ; | |
6791 | PyObject * obj0 = 0 ; | |
6792 | PyObject * obj1 = 0 ; | |
6793 | char *kwnames[] = { | |
6794 | (char *) "self",(char *) "pt", NULL | |
6795 | }; | |
6796 | ||
6797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6800 | { |
6801 | arg2 = &temp2; | |
6802 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6803 | } | |
6804 | { | |
6805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6806 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
6807 | ||
6808 | wxPyEndAllowThreads(__tstate); | |
6809 | if (PyErr_Occurred()) SWIG_fail; | |
6810 | } | |
093d3ff1 RD |
6811 | { |
6812 | resultobj = SWIG_From_double((double)(result)); | |
6813 | } | |
d14a1e28 RD |
6814 | return resultobj; |
6815 | fail: | |
6816 | return NULL; | |
6817 | } | |
6818 | ||
6819 | ||
c32bde28 | 6820 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6821 | PyObject *resultobj; |
6822 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6823 | wxPoint2D *arg2 = 0 ; | |
6824 | double result; | |
6825 | wxPoint2D temp2 ; | |
6826 | PyObject * obj0 = 0 ; | |
6827 | PyObject * obj1 = 0 ; | |
6828 | char *kwnames[] = { | |
6829 | (char *) "self",(char *) "pt", NULL | |
6830 | }; | |
6831 | ||
6832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6835 | { |
6836 | arg2 = &temp2; | |
6837 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6838 | } | |
6839 | { | |
6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6841 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
6842 | ||
6843 | wxPyEndAllowThreads(__tstate); | |
6844 | if (PyErr_Occurred()) SWIG_fail; | |
6845 | } | |
093d3ff1 RD |
6846 | { |
6847 | resultobj = SWIG_From_double((double)(result)); | |
6848 | } | |
d14a1e28 RD |
6849 | return resultobj; |
6850 | fail: | |
6851 | return NULL; | |
6852 | } | |
6853 | ||
6854 | ||
c32bde28 | 6855 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6856 | PyObject *resultobj; |
6857 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6858 | wxPoint2D *arg2 = 0 ; | |
6859 | double result; | |
6860 | wxPoint2D temp2 ; | |
6861 | PyObject * obj0 = 0 ; | |
6862 | PyObject * obj1 = 0 ; | |
6863 | char *kwnames[] = { | |
6864 | (char *) "self",(char *) "vec", NULL | |
6865 | }; | |
6866 | ||
6867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6870 | { |
6871 | arg2 = &temp2; | |
6872 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6873 | } | |
6874 | { | |
6875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6876 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
6877 | ||
6878 | wxPyEndAllowThreads(__tstate); | |
6879 | if (PyErr_Occurred()) SWIG_fail; | |
6880 | } | |
093d3ff1 RD |
6881 | { |
6882 | resultobj = SWIG_From_double((double)(result)); | |
6883 | } | |
d14a1e28 RD |
6884 | return resultobj; |
6885 | fail: | |
6886 | return NULL; | |
6887 | } | |
6888 | ||
6889 | ||
c32bde28 | 6890 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6891 | PyObject *resultobj; |
6892 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6893 | wxPoint2D *arg2 = 0 ; | |
6894 | double result; | |
6895 | wxPoint2D temp2 ; | |
6896 | PyObject * obj0 = 0 ; | |
6897 | PyObject * obj1 = 0 ; | |
6898 | char *kwnames[] = { | |
6899 | (char *) "self",(char *) "vec", NULL | |
6900 | }; | |
6901 | ||
6902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
6903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6905 | { |
6906 | arg2 = &temp2; | |
6907 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
6908 | } | |
6909 | { | |
6910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6911 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
6912 | ||
6913 | wxPyEndAllowThreads(__tstate); | |
6914 | if (PyErr_Occurred()) SWIG_fail; | |
6915 | } | |
093d3ff1 RD |
6916 | { |
6917 | resultobj = SWIG_From_double((double)(result)); | |
6918 | } | |
d14a1e28 RD |
6919 | return resultobj; |
6920 | fail: | |
6921 | return NULL; | |
6922 | } | |
6923 | ||
6924 | ||
c32bde28 | 6925 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6926 | PyObject *resultobj; |
6927 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6928 | wxPoint2D result; | |
6929 | PyObject * obj0 = 0 ; | |
6930 | char *kwnames[] = { | |
6931 | (char *) "self", NULL | |
6932 | }; | |
6933 | ||
6934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
6936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6937 | { |
6938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6939 | result = (arg1)->operator -(); | |
6940 | ||
6941 | wxPyEndAllowThreads(__tstate); | |
6942 | if (PyErr_Occurred()) SWIG_fail; | |
6943 | } | |
6944 | { | |
6945 | wxPoint2D * resultptr; | |
093d3ff1 | 6946 | resultptr = new wxPoint2D((wxPoint2D &)(result)); |
15afbcd0 | 6947 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
6948 | } |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
c32bde28 | 6955 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 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___iadd__",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; | |
d14a1e28 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); |
d14a1e28 RD |
6985 | return resultobj; |
6986 | fail: | |
6987 | return NULL; | |
6988 | } | |
6989 | ||
6990 | ||
c32bde28 | 6991 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 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___isub__",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; | |
d14a1e28 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); |
d14a1e28 RD |
7021 | return resultobj; |
7022 | fail: | |
7023 | return NULL; | |
7024 | } | |
7025 | ||
7026 | ||
c32bde28 | 7027 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7028 | PyObject *resultobj; |
7029 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7030 | wxPoint2D *arg2 = 0 ; | |
7031 | wxPoint2D *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___imul__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
7041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7042 | { |
7043 | arg2 = &temp2; | |
7044 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7045 | } | |
7046 | { | |
7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7048 | { | |
7049 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
7050 | result = (wxPoint2D *) &_result_ref; | |
7051 | } | |
7052 | ||
7053 | wxPyEndAllowThreads(__tstate); | |
7054 | if (PyErr_Occurred()) SWIG_fail; | |
7055 | } | |
c32bde28 | 7056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
7057 | return resultobj; |
7058 | fail: | |
7059 | return NULL; | |
7060 | } | |
7061 | ||
7062 | ||
c32bde28 | 7063 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7064 | PyObject *resultobj; |
7065 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7066 | wxPoint2D *arg2 = 0 ; | |
7067 | wxPoint2D *result; | |
7068 | wxPoint2D temp2 ; | |
7069 | PyObject * obj0 = 0 ; | |
7070 | PyObject * obj1 = 0 ; | |
7071 | char *kwnames[] = { | |
7072 | (char *) "self",(char *) "pt", NULL | |
7073 | }; | |
7074 | ||
7075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
7077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7078 | { |
7079 | arg2 = &temp2; | |
7080 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7081 | } | |
7082 | { | |
7083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7084 | { | |
7085 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
7086 | result = (wxPoint2D *) &_result_ref; | |
7087 | } | |
7088 | ||
7089 | wxPyEndAllowThreads(__tstate); | |
7090 | if (PyErr_Occurred()) SWIG_fail; | |
7091 | } | |
c32bde28 | 7092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
7093 | return resultobj; |
7094 | fail: | |
7095 | return NULL; | |
7096 | } | |
7097 | ||
7098 | ||
c32bde28 | 7099 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7100 | PyObject *resultobj; |
7101 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7102 | wxPoint2D *arg2 = 0 ; | |
7103 | bool result; | |
7104 | wxPoint2D temp2 ; | |
7105 | PyObject * obj0 = 0 ; | |
7106 | PyObject * obj1 = 0 ; | |
7107 | char *kwnames[] = { | |
7108 | (char *) "self",(char *) "pt", NULL | |
7109 | }; | |
7110 | ||
7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7114 | { |
7115 | arg2 = &temp2; | |
7116 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7117 | } | |
7118 | { | |
7119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7120 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
7121 | ||
7122 | wxPyEndAllowThreads(__tstate); | |
7123 | if (PyErr_Occurred()) SWIG_fail; | |
7124 | } | |
4f89f6a3 RD |
7125 | { |
7126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7127 | } | |
d14a1e28 RD |
7128 | return resultobj; |
7129 | fail: | |
7130 | return NULL; | |
7131 | } | |
7132 | ||
7133 | ||
c32bde28 | 7134 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7135 | PyObject *resultobj; |
7136 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7137 | wxPoint2D *arg2 = 0 ; | |
7138 | bool result; | |
7139 | wxPoint2D temp2 ; | |
7140 | PyObject * obj0 = 0 ; | |
7141 | PyObject * obj1 = 0 ; | |
7142 | char *kwnames[] = { | |
7143 | (char *) "self",(char *) "pt", NULL | |
7144 | }; | |
7145 | ||
7146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7149 | { |
7150 | arg2 = &temp2; | |
7151 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
7152 | } | |
7153 | { | |
7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7155 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
7156 | ||
7157 | wxPyEndAllowThreads(__tstate); | |
7158 | if (PyErr_Occurred()) SWIG_fail; | |
7159 | } | |
4f89f6a3 RD |
7160 | { |
7161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7162 | } | |
d14a1e28 RD |
7163 | return resultobj; |
7164 | fail: | |
7165 | return NULL; | |
7166 | } | |
7167 | ||
7168 | ||
c32bde28 | 7169 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7170 | PyObject *resultobj; |
7171 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7172 | double arg2 ; | |
7173 | PyObject * obj0 = 0 ; | |
994141e6 | 7174 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7175 | char *kwnames[] = { |
7176 | (char *) "self",(char *) "m_x", NULL | |
7177 | }; | |
7178 | ||
994141e6 | 7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7182 | { | |
7183 | arg2 = (double)(SWIG_As_double(obj1)); | |
7184 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7185 | } | |
d14a1e28 RD |
7186 | if (arg1) (arg1)->m_x = arg2; |
7187 | ||
7188 | Py_INCREF(Py_None); resultobj = Py_None; | |
7189 | return resultobj; | |
7190 | fail: | |
7191 | return NULL; | |
7192 | } | |
7193 | ||
7194 | ||
c32bde28 | 7195 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7196 | PyObject *resultobj; |
7197 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7198 | double result; | |
7199 | PyObject * obj0 = 0 ; | |
7200 | char *kwnames[] = { | |
7201 | (char *) "self", NULL | |
7202 | }; | |
7203 | ||
7204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7205 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7207 | result = (double) ((arg1)->m_x); |
7208 | ||
093d3ff1 RD |
7209 | { |
7210 | resultobj = SWIG_From_double((double)(result)); | |
7211 | } | |
d14a1e28 RD |
7212 | return resultobj; |
7213 | fail: | |
7214 | return NULL; | |
7215 | } | |
7216 | ||
7217 | ||
c32bde28 | 7218 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7219 | PyObject *resultobj; |
7220 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7221 | double arg2 ; | |
7222 | PyObject * obj0 = 0 ; | |
994141e6 | 7223 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7224 | char *kwnames[] = { |
7225 | (char *) "self",(char *) "m_y", NULL | |
7226 | }; | |
7227 | ||
994141e6 | 7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7231 | { | |
7232 | arg2 = (double)(SWIG_As_double(obj1)); | |
7233 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7234 | } | |
d14a1e28 RD |
7235 | if (arg1) (arg1)->m_y = arg2; |
7236 | ||
7237 | Py_INCREF(Py_None); resultobj = Py_None; | |
7238 | return resultobj; | |
7239 | fail: | |
7240 | return NULL; | |
7241 | } | |
7242 | ||
7243 | ||
c32bde28 | 7244 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7245 | PyObject *resultobj; |
7246 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7247 | double result; | |
7248 | PyObject * obj0 = 0 ; | |
7249 | char *kwnames[] = { | |
7250 | (char *) "self", NULL | |
7251 | }; | |
7252 | ||
7253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7256 | result = (double) ((arg1)->m_y); |
7257 | ||
093d3ff1 RD |
7258 | { |
7259 | resultobj = SWIG_From_double((double)(result)); | |
7260 | } | |
d14a1e28 RD |
7261 | return resultobj; |
7262 | fail: | |
7263 | return NULL; | |
7264 | } | |
7265 | ||
7266 | ||
c32bde28 | 7267 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7268 | PyObject *resultobj; |
7269 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7270 | double arg2 = (double) 0 ; | |
7271 | double arg3 = (double) 0 ; | |
7272 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7273 | PyObject * obj1 = 0 ; |
7274 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7275 | char *kwnames[] = { |
7276 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7277 | }; | |
7278 | ||
994141e6 | 7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7282 | if (obj1) { |
093d3ff1 RD |
7283 | { |
7284 | arg2 = (double)(SWIG_As_double(obj1)); | |
7285 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7286 | } | |
994141e6 RD |
7287 | } |
7288 | if (obj2) { | |
093d3ff1 RD |
7289 | { |
7290 | arg3 = (double)(SWIG_As_double(obj2)); | |
7291 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7292 | } | |
994141e6 | 7293 | } |
d14a1e28 RD |
7294 | { |
7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7296 | wxPoint2D_Set(arg1,arg2,arg3); | |
7297 | ||
7298 | wxPyEndAllowThreads(__tstate); | |
7299 | if (PyErr_Occurred()) SWIG_fail; | |
7300 | } | |
7301 | Py_INCREF(Py_None); resultobj = Py_None; | |
7302 | return resultobj; | |
7303 | fail: | |
7304 | return NULL; | |
7305 | } | |
7306 | ||
7307 | ||
c32bde28 | 7308 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7309 | PyObject *resultobj; |
7310 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
7311 | PyObject *result; | |
7312 | PyObject * obj0 = 0 ; | |
7313 | char *kwnames[] = { | |
7314 | (char *) "self", NULL | |
7315 | }; | |
7316 | ||
e811c8ce | 7317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
7318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0); |
7319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7320 | { |
7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 7322 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
7323 | |
7324 | wxPyEndAllowThreads(__tstate); | |
7325 | if (PyErr_Occurred()) SWIG_fail; | |
7326 | } | |
7327 | resultobj = result; | |
7328 | return resultobj; | |
7329 | fail: | |
7330 | return NULL; | |
7331 | } | |
7332 | ||
7333 | ||
c32bde28 | 7334 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7335 | PyObject *obj; |
7336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7337 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
7338 | Py_INCREF(obj); | |
7339 | return Py_BuildValue((char *)""); | |
7340 | } | |
c32bde28 | 7341 | static int _wrap_DefaultPosition_set(PyObject *) { |
d14a1e28 RD |
7342 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
7343 | return 1; | |
7344 | } | |
7345 | ||
7346 | ||
093d3ff1 | 7347 | static PyObject *_wrap_DefaultPosition_get(void) { |
d14a1e28 RD |
7348 | PyObject *pyobj; |
7349 | ||
15afbcd0 | 7350 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
7351 | return pyobj; |
7352 | } | |
7353 | ||
7354 | ||
c32bde28 | 7355 | static int _wrap_DefaultSize_set(PyObject *) { |
d14a1e28 RD |
7356 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
7357 | return 1; | |
7358 | } | |
7359 | ||
7360 | ||
093d3ff1 | 7361 | static PyObject *_wrap_DefaultSize_get(void) { |
d14a1e28 RD |
7362 | PyObject *pyobj; |
7363 | ||
15afbcd0 | 7364 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
7365 | return pyobj; |
7366 | } | |
7367 | ||
7368 | ||
c32bde28 | 7369 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7370 | PyObject *resultobj; |
7371 | PyObject *arg1 = (PyObject *) 0 ; | |
7372 | wxPyInputStream *result; | |
7373 | PyObject * obj0 = 0 ; | |
7374 | char *kwnames[] = { | |
7375 | (char *) "p", NULL | |
7376 | }; | |
7377 | ||
7378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
7379 | arg1 = obj0; | |
7380 | { | |
7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7382 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
7383 | ||
7384 | wxPyEndAllowThreads(__tstate); | |
7385 | if (PyErr_Occurred()) SWIG_fail; | |
7386 | } | |
15afbcd0 | 7387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
7388 | return resultobj; |
7389 | fail: | |
7390 | return NULL; | |
7391 | } | |
7392 | ||
7393 | ||
8fb0e70a RD |
7394 | static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
7395 | PyObject *resultobj; | |
7396 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7397 | PyObject * obj0 = 0 ; | |
7398 | char *kwnames[] = { | |
7399 | (char *) "self", NULL | |
7400 | }; | |
7401 | ||
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
7405 | { |
7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7407 | delete arg1; | |
7408 | ||
7409 | wxPyEndAllowThreads(__tstate); | |
7410 | if (PyErr_Occurred()) SWIG_fail; | |
7411 | } | |
7412 | Py_INCREF(Py_None); resultobj = Py_None; | |
7413 | return resultobj; | |
7414 | fail: | |
7415 | return NULL; | |
7416 | } | |
7417 | ||
7418 | ||
c32bde28 | 7419 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7420 | PyObject *resultobj; |
7421 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7422 | PyObject * obj0 = 0 ; | |
7423 | char *kwnames[] = { | |
7424 | (char *) "self", NULL | |
7425 | }; | |
7426 | ||
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7430 | { |
7431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7432 | (arg1)->close(); | |
7433 | ||
7434 | wxPyEndAllowThreads(__tstate); | |
7435 | if (PyErr_Occurred()) SWIG_fail; | |
7436 | } | |
7437 | Py_INCREF(Py_None); resultobj = Py_None; | |
7438 | return resultobj; | |
7439 | fail: | |
7440 | return NULL; | |
7441 | } | |
7442 | ||
7443 | ||
c32bde28 | 7444 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7445 | PyObject *resultobj; |
7446 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7447 | PyObject * obj0 = 0 ; | |
7448 | char *kwnames[] = { | |
7449 | (char *) "self", NULL | |
7450 | }; | |
7451 | ||
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7455 | { |
7456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7457 | (arg1)->flush(); | |
7458 | ||
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | Py_INCREF(Py_None); resultobj = Py_None; | |
7463 | return resultobj; | |
7464 | fail: | |
7465 | return NULL; | |
7466 | } | |
7467 | ||
7468 | ||
c32bde28 | 7469 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7470 | PyObject *resultobj; |
7471 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7472 | bool result; | |
7473 | PyObject * obj0 = 0 ; | |
7474 | char *kwnames[] = { | |
7475 | (char *) "self", NULL | |
7476 | }; | |
7477 | ||
7478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7481 | { |
7482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7483 | result = (bool)(arg1)->eof(); | |
7484 | ||
7485 | wxPyEndAllowThreads(__tstate); | |
7486 | if (PyErr_Occurred()) SWIG_fail; | |
7487 | } | |
4f89f6a3 RD |
7488 | { |
7489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7490 | } | |
d14a1e28 RD |
7491 | return resultobj; |
7492 | fail: | |
7493 | return NULL; | |
7494 | } | |
7495 | ||
7496 | ||
c32bde28 | 7497 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7498 | PyObject *resultobj; |
7499 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7500 | int arg2 = (int) -1 ; | |
7501 | PyObject *result; | |
7502 | PyObject * obj0 = 0 ; | |
994141e6 | 7503 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7504 | char *kwnames[] = { |
7505 | (char *) "self",(char *) "size", NULL | |
7506 | }; | |
7507 | ||
994141e6 | 7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7511 | if (obj1) { |
093d3ff1 RD |
7512 | { |
7513 | arg2 = (int)(SWIG_As_int(obj1)); | |
7514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7515 | } | |
994141e6 | 7516 | } |
d14a1e28 RD |
7517 | { |
7518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7519 | result = (PyObject *)(arg1)->read(arg2); | |
7520 | ||
7521 | wxPyEndAllowThreads(__tstate); | |
7522 | if (PyErr_Occurred()) SWIG_fail; | |
7523 | } | |
7524 | resultobj = result; | |
7525 | return resultobj; | |
7526 | fail: | |
7527 | return NULL; | |
7528 | } | |
7529 | ||
7530 | ||
c32bde28 | 7531 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7532 | PyObject *resultobj; |
7533 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7534 | int arg2 = (int) -1 ; | |
7535 | PyObject *result; | |
7536 | PyObject * obj0 = 0 ; | |
994141e6 | 7537 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7538 | char *kwnames[] = { |
7539 | (char *) "self",(char *) "size", NULL | |
7540 | }; | |
7541 | ||
994141e6 | 7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7545 | if (obj1) { |
093d3ff1 RD |
7546 | { |
7547 | arg2 = (int)(SWIG_As_int(obj1)); | |
7548 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7549 | } | |
994141e6 | 7550 | } |
d14a1e28 RD |
7551 | { |
7552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7553 | result = (PyObject *)(arg1)->readline(arg2); | |
7554 | ||
7555 | wxPyEndAllowThreads(__tstate); | |
7556 | if (PyErr_Occurred()) SWIG_fail; | |
7557 | } | |
7558 | resultobj = result; | |
7559 | return resultobj; | |
7560 | fail: | |
7561 | return NULL; | |
7562 | } | |
7563 | ||
7564 | ||
c32bde28 | 7565 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7566 | PyObject *resultobj; |
7567 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7568 | int arg2 = (int) -1 ; | |
7569 | PyObject *result; | |
7570 | PyObject * obj0 = 0 ; | |
994141e6 | 7571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7572 | char *kwnames[] = { |
7573 | (char *) "self",(char *) "sizehint", NULL | |
7574 | }; | |
7575 | ||
994141e6 | 7576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7579 | if (obj1) { |
093d3ff1 RD |
7580 | { |
7581 | arg2 = (int)(SWIG_As_int(obj1)); | |
7582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7583 | } | |
994141e6 | 7584 | } |
d14a1e28 RD |
7585 | { |
7586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7587 | result = (PyObject *)(arg1)->readlines(arg2); | |
7588 | ||
7589 | wxPyEndAllowThreads(__tstate); | |
7590 | if (PyErr_Occurred()) SWIG_fail; | |
7591 | } | |
7592 | resultobj = result; | |
7593 | return resultobj; | |
7594 | fail: | |
7595 | return NULL; | |
7596 | } | |
7597 | ||
7598 | ||
c32bde28 | 7599 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7600 | PyObject *resultobj; |
7601 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7602 | int arg2 ; | |
7603 | int arg3 = (int) 0 ; | |
7604 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7605 | PyObject * obj1 = 0 ; |
7606 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7607 | char *kwnames[] = { |
7608 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
7609 | }; | |
7610 | ||
994141e6 | 7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7614 | { | |
7615 | arg2 = (int)(SWIG_As_int(obj1)); | |
7616 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7617 | } | |
994141e6 | 7618 | if (obj2) { |
093d3ff1 RD |
7619 | { |
7620 | arg3 = (int)(SWIG_As_int(obj2)); | |
7621 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7622 | } | |
994141e6 | 7623 | } |
d14a1e28 RD |
7624 | { |
7625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7626 | (arg1)->seek(arg2,arg3); | |
7627 | ||
7628 | wxPyEndAllowThreads(__tstate); | |
7629 | if (PyErr_Occurred()) SWIG_fail; | |
7630 | } | |
7631 | Py_INCREF(Py_None); resultobj = Py_None; | |
7632 | return resultobj; | |
7633 | fail: | |
7634 | return NULL; | |
7635 | } | |
7636 | ||
7637 | ||
c32bde28 | 7638 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7639 | PyObject *resultobj; |
7640 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7641 | int result; | |
7642 | PyObject * obj0 = 0 ; | |
7643 | char *kwnames[] = { | |
7644 | (char *) "self", NULL | |
7645 | }; | |
7646 | ||
7647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7650 | { |
7651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7652 | result = (int)(arg1)->tell(); | |
7653 | ||
7654 | wxPyEndAllowThreads(__tstate); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
093d3ff1 RD |
7657 | { |
7658 | resultobj = SWIG_From_int((int)(result)); | |
7659 | } | |
d14a1e28 RD |
7660 | return resultobj; |
7661 | fail: | |
7662 | return NULL; | |
7663 | } | |
7664 | ||
7665 | ||
c32bde28 | 7666 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7667 | PyObject *resultobj; |
7668 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7669 | char result; | |
7670 | PyObject * obj0 = 0 ; | |
7671 | char *kwnames[] = { | |
7672 | (char *) "self", NULL | |
7673 | }; | |
7674 | ||
7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7678 | { |
7679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7680 | result = (char)(arg1)->Peek(); | |
7681 | ||
7682 | wxPyEndAllowThreads(__tstate); | |
7683 | if (PyErr_Occurred()) SWIG_fail; | |
7684 | } | |
093d3ff1 RD |
7685 | { |
7686 | resultobj = SWIG_From_char((char)(result)); | |
7687 | } | |
d14a1e28 RD |
7688 | return resultobj; |
7689 | fail: | |
7690 | return NULL; | |
7691 | } | |
7692 | ||
7693 | ||
c32bde28 | 7694 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7695 | PyObject *resultobj; |
7696 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7697 | char result; | |
7698 | PyObject * obj0 = 0 ; | |
7699 | char *kwnames[] = { | |
7700 | (char *) "self", NULL | |
7701 | }; | |
7702 | ||
7703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7706 | { |
7707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7708 | result = (char)(arg1)->GetC(); | |
7709 | ||
7710 | wxPyEndAllowThreads(__tstate); | |
7711 | if (PyErr_Occurred()) SWIG_fail; | |
7712 | } | |
093d3ff1 RD |
7713 | { |
7714 | resultobj = SWIG_From_char((char)(result)); | |
7715 | } | |
d14a1e28 RD |
7716 | return resultobj; |
7717 | fail: | |
7718 | return NULL; | |
7719 | } | |
7720 | ||
7721 | ||
c32bde28 | 7722 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7723 | PyObject *resultobj; |
7724 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7725 | size_t result; | |
7726 | PyObject * obj0 = 0 ; | |
7727 | char *kwnames[] = { | |
7728 | (char *) "self", NULL | |
7729 | }; | |
7730 | ||
7731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7734 | { |
7735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7736 | result = (size_t)(arg1)->LastRead(); | |
7737 | ||
7738 | wxPyEndAllowThreads(__tstate); | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | } | |
093d3ff1 RD |
7741 | { |
7742 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
7743 | } | |
d14a1e28 RD |
7744 | return resultobj; |
7745 | fail: | |
7746 | return NULL; | |
7747 | } | |
7748 | ||
7749 | ||
c32bde28 | 7750 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7751 | PyObject *resultobj; |
7752 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7753 | bool result; | |
7754 | PyObject * obj0 = 0 ; | |
7755 | char *kwnames[] = { | |
7756 | (char *) "self", NULL | |
7757 | }; | |
7758 | ||
7759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7762 | { |
7763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7764 | result = (bool)(arg1)->CanRead(); | |
7765 | ||
7766 | wxPyEndAllowThreads(__tstate); | |
7767 | if (PyErr_Occurred()) SWIG_fail; | |
7768 | } | |
4f89f6a3 RD |
7769 | { |
7770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7771 | } | |
d14a1e28 RD |
7772 | return resultobj; |
7773 | fail: | |
7774 | return NULL; | |
7775 | } | |
7776 | ||
7777 | ||
c32bde28 | 7778 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7779 | PyObject *resultobj; |
7780 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7781 | bool result; | |
7782 | PyObject * obj0 = 0 ; | |
7783 | char *kwnames[] = { | |
7784 | (char *) "self", NULL | |
7785 | }; | |
7786 | ||
7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7790 | { |
7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7792 | result = (bool)(arg1)->Eof(); | |
7793 | ||
7794 | wxPyEndAllowThreads(__tstate); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | } | |
4f89f6a3 RD |
7797 | { |
7798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7799 | } | |
d14a1e28 RD |
7800 | return resultobj; |
7801 | fail: | |
7802 | return NULL; | |
7803 | } | |
7804 | ||
7805 | ||
c32bde28 | 7806 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7807 | PyObject *resultobj; |
7808 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7809 | char arg2 ; | |
7810 | bool result; | |
7811 | PyObject * obj0 = 0 ; | |
994141e6 | 7812 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7813 | char *kwnames[] = { |
7814 | (char *) "self",(char *) "c", NULL | |
7815 | }; | |
7816 | ||
994141e6 | 7817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7820 | { | |
7821 | arg2 = (char)(SWIG_As_char(obj1)); | |
7822 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7823 | } | |
d14a1e28 RD |
7824 | { |
7825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7826 | result = (bool)(arg1)->Ungetch(arg2); | |
7827 | ||
7828 | wxPyEndAllowThreads(__tstate); | |
7829 | if (PyErr_Occurred()) SWIG_fail; | |
7830 | } | |
4f89f6a3 RD |
7831 | { |
7832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7833 | } | |
d14a1e28 RD |
7834 | return resultobj; |
7835 | fail: | |
7836 | return NULL; | |
7837 | } | |
7838 | ||
7839 | ||
c32bde28 | 7840 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7841 | PyObject *resultobj; |
7842 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7843 | long arg2 ; | |
093d3ff1 | 7844 | wxSeekMode arg3 = (wxSeekMode) wxFromStart ; |
d14a1e28 RD |
7845 | long result; |
7846 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7847 | PyObject * obj1 = 0 ; |
7848 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7849 | char *kwnames[] = { |
7850 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
7851 | }; | |
7852 | ||
994141e6 | 7853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7856 | { | |
7857 | arg2 = (long)(SWIG_As_long(obj1)); | |
7858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7859 | } | |
994141e6 | 7860 | if (obj2) { |
093d3ff1 RD |
7861 | { |
7862 | arg3 = (wxSeekMode)(SWIG_As_int(obj2)); | |
7863 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7864 | } | |
994141e6 | 7865 | } |
d14a1e28 RD |
7866 | { |
7867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7868 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
7869 | ||
7870 | wxPyEndAllowThreads(__tstate); | |
7871 | if (PyErr_Occurred()) SWIG_fail; | |
7872 | } | |
093d3ff1 RD |
7873 | { |
7874 | resultobj = SWIG_From_long((long)(result)); | |
7875 | } | |
d14a1e28 RD |
7876 | return resultobj; |
7877 | fail: | |
7878 | return NULL; | |
7879 | } | |
7880 | ||
7881 | ||
c32bde28 | 7882 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7883 | PyObject *resultobj; |
7884 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
7885 | long result; | |
7886 | PyObject * obj0 = 0 ; | |
7887 | char *kwnames[] = { | |
7888 | (char *) "self", NULL | |
7889 | }; | |
7890 | ||
7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0); |
7893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7894 | { |
7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7896 | result = (long)(arg1)->TellI(); | |
7897 | ||
7898 | wxPyEndAllowThreads(__tstate); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
093d3ff1 RD |
7901 | { |
7902 | resultobj = SWIG_From_long((long)(result)); | |
7903 | } | |
d14a1e28 RD |
7904 | return resultobj; |
7905 | fail: | |
7906 | return NULL; | |
7907 | } | |
7908 | ||
7909 | ||
c32bde28 | 7910 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7911 | PyObject *obj; |
7912 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7913 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
7914 | Py_INCREF(obj); | |
7915 | return Py_BuildValue((char *)""); | |
7916 | } | |
c32bde28 | 7917 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7918 | PyObject *resultobj; |
7919 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
7920 | PyObject *arg2 = (PyObject *) 0 ; | |
7921 | PyObject * obj0 = 0 ; | |
7922 | PyObject * obj1 = 0 ; | |
7923 | char *kwnames[] = { | |
7924 | (char *) "self",(char *) "obj", NULL | |
7925 | }; | |
7926 | ||
7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxOutputStream, SWIG_POINTER_EXCEPTION | 0); |
7929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7930 | arg2 = obj1; |
7931 | { | |
7932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7933 | wxOutputStream_write(arg1,arg2); | |
7934 | ||
7935 | wxPyEndAllowThreads(__tstate); | |
7936 | if (PyErr_Occurred()) SWIG_fail; | |
7937 | } | |
7938 | Py_INCREF(Py_None); resultobj = Py_None; | |
7939 | return resultobj; | |
7940 | fail: | |
7941 | return NULL; | |
7942 | } | |
7943 | ||
7944 | ||
c32bde28 | 7945 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7946 | PyObject *obj; |
7947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7948 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
7949 | Py_INCREF(obj); | |
7950 | return Py_BuildValue((char *)""); | |
7951 | } | |
c32bde28 | 7952 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7953 | PyObject *resultobj; |
7954 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
7955 | wxString *arg2 = 0 ; | |
7956 | wxString *arg3 = 0 ; | |
7957 | wxString *arg4 = 0 ; | |
7958 | wxDateTime arg5 ; | |
7959 | wxFSFile *result; | |
7960 | wxPyInputStream *temp1 ; | |
ae8162c8 RD |
7961 | bool temp2 = false ; |
7962 | bool temp3 = false ; | |
7963 | bool temp4 = false ; | |
d14a1e28 RD |
7964 | PyObject * obj0 = 0 ; |
7965 | PyObject * obj1 = 0 ; | |
7966 | PyObject * obj2 = 0 ; | |
7967 | PyObject * obj3 = 0 ; | |
7968 | PyObject * obj4 = 0 ; | |
7969 | char *kwnames[] = { | |
7970 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
7971 | }; | |
7972 | ||
7973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
7974 | { | |
7975 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
e2950dbb | 7976 | arg1 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp1->m_wxis); |
d14a1e28 RD |
7977 | } else { |
7978 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e2950dbb | 7979 | arg1 = wxPyCBInputStream_create(obj0, true); |
d14a1e28 | 7980 | if (arg1 == NULL) { |
e2950dbb | 7981 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d14a1e28 RD |
7982 | SWIG_fail; |
7983 | } | |
d14a1e28 RD |
7984 | } |
7985 | } | |
7986 | { | |
7987 | arg2 = wxString_in_helper(obj1); | |
7988 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7989 | temp2 = true; |
d14a1e28 RD |
7990 | } |
7991 | { | |
7992 | arg3 = wxString_in_helper(obj2); | |
7993 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7994 | temp3 = true; |
d14a1e28 RD |
7995 | } |
7996 | { | |
7997 | arg4 = wxString_in_helper(obj3); | |
7998 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 7999 | temp4 = true; |
d14a1e28 | 8000 | } |
093d3ff1 RD |
8001 | { |
8002 | wxDateTime * argp; | |
8003 | SWIG_Python_ConvertPtr(obj4, (void **)&argp, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION); | |
8004 | if (SWIG_arg_fail(5)) SWIG_fail; | |
8005 | if (argp == NULL) { | |
8006 | SWIG_null_ref("wxDateTime"); | |
8007 | } | |
8008 | if (SWIG_arg_fail(5)) SWIG_fail; | |
8009 | arg5 = *argp; | |
8010 | } | |
d14a1e28 RD |
8011 | { |
8012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8013 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
8014 | ||
8015 | wxPyEndAllowThreads(__tstate); | |
8016 | if (PyErr_Occurred()) SWIG_fail; | |
8017 | } | |
8018 | { | |
412d302d | 8019 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 | 8020 | } |
d14a1e28 RD |
8021 | { |
8022 | if (temp2) | |
8023 | delete arg2; | |
8024 | } | |
8025 | { | |
8026 | if (temp3) | |
8027 | delete arg3; | |
8028 | } | |
8029 | { | |
8030 | if (temp4) | |
8031 | delete arg4; | |
8032 | } | |
8033 | return resultobj; | |
8034 | fail: | |
d14a1e28 RD |
8035 | { |
8036 | if (temp2) | |
8037 | delete arg2; | |
8038 | } | |
8039 | { | |
8040 | if (temp3) | |
8041 | delete arg3; | |
8042 | } | |
8043 | { | |
8044 | if (temp4) | |
8045 | delete arg4; | |
8046 | } | |
8047 | return NULL; | |
8048 | } | |
8049 | ||
8050 | ||
c32bde28 | 8051 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8052 | PyObject *resultobj; |
8053 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8054 | PyObject * obj0 = 0 ; | |
8055 | char *kwnames[] = { | |
8056 | (char *) "self", NULL | |
8057 | }; | |
8058 | ||
8059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8062 | { |
8063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8064 | delete arg1; | |
8065 | ||
8066 | wxPyEndAllowThreads(__tstate); | |
8067 | if (PyErr_Occurred()) SWIG_fail; | |
8068 | } | |
8069 | Py_INCREF(Py_None); resultobj = Py_None; | |
8070 | return resultobj; | |
8071 | fail: | |
8072 | return NULL; | |
8073 | } | |
8074 | ||
8075 | ||
c32bde28 | 8076 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8077 | PyObject *resultobj; |
8078 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8079 | wxInputStream *result; | |
8080 | PyObject * obj0 = 0 ; | |
8081 | char *kwnames[] = { | |
8082 | (char *) "self", NULL | |
8083 | }; | |
8084 | ||
8085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8088 | { |
8089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8090 | result = (wxInputStream *)(arg1)->GetStream(); | |
8091 | ||
8092 | wxPyEndAllowThreads(__tstate); | |
8093 | if (PyErr_Occurred()) SWIG_fail; | |
8094 | } | |
8095 | { | |
8096 | wxPyInputStream * _ptr = NULL; | |
8097 | ||
8098 | if (result) { | |
8099 | _ptr = new wxPyInputStream(result); | |
8100 | } | |
fc71d09b | 8101 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d14a1e28 RD |
8102 | } |
8103 | return resultobj; | |
8104 | fail: | |
8105 | return NULL; | |
8106 | } | |
8107 | ||
8108 | ||
c32bde28 | 8109 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8110 | PyObject *resultobj; |
8111 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8112 | wxString *result; | |
8113 | PyObject * obj0 = 0 ; | |
8114 | char *kwnames[] = { | |
8115 | (char *) "self", NULL | |
8116 | }; | |
8117 | ||
8118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8121 | { |
8122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8123 | { | |
8124 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
8125 | result = (wxString *) &_result_ref; | |
8126 | } | |
8127 | ||
8128 | wxPyEndAllowThreads(__tstate); | |
8129 | if (PyErr_Occurred()) SWIG_fail; | |
8130 | } | |
cc6dd355 RD |
8131 | { |
8132 | #if wxUSE_UNICODE | |
8133 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8134 | #else | |
8135 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8136 | #endif | |
8137 | } | |
d14a1e28 RD |
8138 | return resultobj; |
8139 | fail: | |
8140 | return NULL; | |
8141 | } | |
8142 | ||
8143 | ||
c32bde28 | 8144 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8145 | PyObject *resultobj; |
8146 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8147 | wxString *result; | |
8148 | PyObject * obj0 = 0 ; | |
8149 | char *kwnames[] = { | |
8150 | (char *) "self", NULL | |
8151 | }; | |
8152 | ||
8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8156 | { |
8157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8158 | { | |
8159 | wxString const &_result_ref = (arg1)->GetLocation(); | |
8160 | result = (wxString *) &_result_ref; | |
8161 | } | |
8162 | ||
8163 | wxPyEndAllowThreads(__tstate); | |
8164 | if (PyErr_Occurred()) SWIG_fail; | |
8165 | } | |
cc6dd355 RD |
8166 | { |
8167 | #if wxUSE_UNICODE | |
8168 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8169 | #else | |
8170 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8171 | #endif | |
8172 | } | |
d14a1e28 RD |
8173 | return resultobj; |
8174 | fail: | |
8175 | return NULL; | |
8176 | } | |
8177 | ||
8178 | ||
c32bde28 | 8179 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8180 | PyObject *resultobj; |
8181 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8182 | wxString *result; | |
8183 | PyObject * obj0 = 0 ; | |
8184 | char *kwnames[] = { | |
8185 | (char *) "self", NULL | |
8186 | }; | |
8187 | ||
8188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8191 | { |
8192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8193 | { | |
8194 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
8195 | result = (wxString *) &_result_ref; | |
8196 | } | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) SWIG_fail; | |
8200 | } | |
cc6dd355 RD |
8201 | { |
8202 | #if wxUSE_UNICODE | |
8203 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8204 | #else | |
8205 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8206 | #endif | |
8207 | } | |
d14a1e28 RD |
8208 | return resultobj; |
8209 | fail: | |
8210 | return NULL; | |
8211 | } | |
8212 | ||
8213 | ||
c32bde28 | 8214 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8215 | PyObject *resultobj; |
8216 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
8217 | wxDateTime result; | |
8218 | PyObject * obj0 = 0 ; | |
8219 | char *kwnames[] = { | |
8220 | (char *) "self", NULL | |
8221 | }; | |
8222 | ||
8223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0); |
8225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8226 | { |
8227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8228 | result = (arg1)->GetModificationTime(); | |
8229 | ||
8230 | wxPyEndAllowThreads(__tstate); | |
8231 | if (PyErr_Occurred()) SWIG_fail; | |
8232 | } | |
8233 | { | |
8234 | wxDateTime * resultptr; | |
093d3ff1 | 8235 | resultptr = new wxDateTime((wxDateTime &)(result)); |
15afbcd0 | 8236 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
8237 | } |
8238 | return resultobj; | |
8239 | fail: | |
8240 | return NULL; | |
8241 | } | |
8242 | ||
8243 | ||
c32bde28 | 8244 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8245 | PyObject *obj; |
8246 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8247 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
8248 | Py_INCREF(obj); | |
8249 | return Py_BuildValue((char *)""); | |
8250 | } | |
c32bde28 | 8251 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8252 | PyObject *obj; |
8253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8254 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
8255 | Py_INCREF(obj); | |
8256 | return Py_BuildValue((char *)""); | |
8257 | } | |
c32bde28 | 8258 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8259 | PyObject *resultobj; |
8260 | wxPyFileSystemHandler *result; | |
8261 | char *kwnames[] = { | |
8262 | NULL | |
8263 | }; | |
8264 | ||
8265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
8266 | { | |
8267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8268 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
8269 | ||
8270 | wxPyEndAllowThreads(__tstate); | |
8271 | if (PyErr_Occurred()) SWIG_fail; | |
8272 | } | |
15afbcd0 | 8273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
8274 | return resultobj; |
8275 | fail: | |
8276 | return NULL; | |
8277 | } | |
8278 | ||
8279 | ||
c32bde28 | 8280 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8281 | PyObject *resultobj; |
8282 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8283 | PyObject *arg2 = (PyObject *) 0 ; | |
8284 | PyObject *arg3 = (PyObject *) 0 ; | |
8285 | PyObject * obj0 = 0 ; | |
8286 | PyObject * obj1 = 0 ; | |
8287 | PyObject * obj2 = 0 ; | |
8288 | char *kwnames[] = { | |
8289 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8290 | }; | |
8291 | ||
8292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8295 | arg2 = obj1; |
8296 | arg3 = obj2; | |
8297 | { | |
8298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8299 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8300 | ||
8301 | wxPyEndAllowThreads(__tstate); | |
8302 | if (PyErr_Occurred()) SWIG_fail; | |
8303 | } | |
8304 | Py_INCREF(Py_None); resultobj = Py_None; | |
8305 | return resultobj; | |
8306 | fail: | |
8307 | return NULL; | |
8308 | } | |
8309 | ||
8310 | ||
c32bde28 | 8311 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8312 | PyObject *resultobj; |
8313 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8314 | wxString *arg2 = 0 ; | |
8315 | bool result; | |
ae8162c8 | 8316 | bool temp2 = false ; |
d14a1e28 RD |
8317 | PyObject * obj0 = 0 ; |
8318 | PyObject * obj1 = 0 ; | |
8319 | char *kwnames[] = { | |
8320 | (char *) "self",(char *) "location", NULL | |
8321 | }; | |
8322 | ||
8323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8326 | { |
8327 | arg2 = wxString_in_helper(obj1); | |
8328 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8329 | temp2 = true; |
d14a1e28 RD |
8330 | } |
8331 | { | |
8332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8333 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8334 | ||
8335 | wxPyEndAllowThreads(__tstate); | |
8336 | if (PyErr_Occurred()) SWIG_fail; | |
8337 | } | |
4f89f6a3 RD |
8338 | { |
8339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8340 | } | |
d14a1e28 RD |
8341 | { |
8342 | if (temp2) | |
8343 | delete arg2; | |
8344 | } | |
8345 | return resultobj; | |
8346 | fail: | |
8347 | { | |
8348 | if (temp2) | |
8349 | delete arg2; | |
8350 | } | |
8351 | return NULL; | |
8352 | } | |
8353 | ||
8354 | ||
c32bde28 | 8355 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8356 | PyObject *resultobj; |
8357 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8358 | wxFileSystem *arg2 = 0 ; | |
8359 | wxString *arg3 = 0 ; | |
8360 | wxFSFile *result; | |
ae8162c8 | 8361 | bool temp3 = false ; |
d14a1e28 RD |
8362 | PyObject * obj0 = 0 ; |
8363 | PyObject * obj1 = 0 ; | |
8364 | PyObject * obj2 = 0 ; | |
8365 | char *kwnames[] = { | |
8366 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8367 | }; | |
8368 | ||
8369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8372 | { | |
8373 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
8374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8375 | if (arg2 == NULL) { | |
8376 | SWIG_null_ref("wxFileSystem"); | |
8377 | } | |
8378 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
8379 | } |
8380 | { | |
8381 | arg3 = wxString_in_helper(obj2); | |
8382 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8383 | temp3 = true; |
d14a1e28 RD |
8384 | } |
8385 | { | |
8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8387 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8388 | ||
8389 | wxPyEndAllowThreads(__tstate); | |
8390 | if (PyErr_Occurred()) SWIG_fail; | |
8391 | } | |
8392 | { | |
4cf4100f | 8393 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
8394 | } |
8395 | { | |
8396 | if (temp3) | |
8397 | delete arg3; | |
8398 | } | |
8399 | return resultobj; | |
8400 | fail: | |
8401 | { | |
8402 | if (temp3) | |
8403 | delete arg3; | |
8404 | } | |
8405 | return NULL; | |
8406 | } | |
8407 | ||
8408 | ||
c32bde28 | 8409 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8410 | PyObject *resultobj; |
8411 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8412 | wxString *arg2 = 0 ; | |
8413 | int arg3 = (int) 0 ; | |
8414 | wxString result; | |
ae8162c8 | 8415 | bool temp2 = false ; |
d14a1e28 RD |
8416 | PyObject * obj0 = 0 ; |
8417 | PyObject * obj1 = 0 ; | |
994141e6 | 8418 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8419 | char *kwnames[] = { |
8420 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8421 | }; | |
8422 | ||
994141e6 | 8423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8426 | { |
8427 | arg2 = wxString_in_helper(obj1); | |
8428 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8429 | temp2 = true; |
d14a1e28 | 8430 | } |
994141e6 | 8431 | if (obj2) { |
093d3ff1 RD |
8432 | { |
8433 | arg3 = (int)(SWIG_As_int(obj2)); | |
8434 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8435 | } | |
994141e6 | 8436 | } |
d14a1e28 RD |
8437 | { |
8438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8439 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8440 | ||
8441 | wxPyEndAllowThreads(__tstate); | |
8442 | if (PyErr_Occurred()) SWIG_fail; | |
8443 | } | |
8444 | { | |
8445 | #if wxUSE_UNICODE | |
8446 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8447 | #else | |
8448 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8449 | #endif | |
8450 | } | |
8451 | { | |
8452 | if (temp2) | |
8453 | delete arg2; | |
8454 | } | |
8455 | return resultobj; | |
8456 | fail: | |
8457 | { | |
8458 | if (temp2) | |
8459 | delete arg2; | |
8460 | } | |
8461 | return NULL; | |
8462 | } | |
8463 | ||
8464 | ||
c32bde28 | 8465 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8466 | PyObject *resultobj; |
8467 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8468 | wxString result; | |
8469 | PyObject * obj0 = 0 ; | |
8470 | char *kwnames[] = { | |
8471 | (char *) "self", NULL | |
8472 | }; | |
8473 | ||
8474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8477 | { |
8478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8479 | result = (arg1)->FindNext(); | |
8480 | ||
8481 | wxPyEndAllowThreads(__tstate); | |
8482 | if (PyErr_Occurred()) SWIG_fail; | |
8483 | } | |
8484 | { | |
8485 | #if wxUSE_UNICODE | |
8486 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8487 | #else | |
8488 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8489 | #endif | |
8490 | } | |
8491 | return resultobj; | |
8492 | fail: | |
8493 | return NULL; | |
8494 | } | |
8495 | ||
8496 | ||
c32bde28 | 8497 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8498 | PyObject *resultobj; |
8499 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8500 | wxString *arg2 = 0 ; | |
8501 | wxString result; | |
ae8162c8 | 8502 | bool temp2 = false ; |
d14a1e28 RD |
8503 | PyObject * obj0 = 0 ; |
8504 | PyObject * obj1 = 0 ; | |
8505 | char *kwnames[] = { | |
8506 | (char *) "self",(char *) "location", NULL | |
8507 | }; | |
8508 | ||
8509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8512 | { |
8513 | arg2 = wxString_in_helper(obj1); | |
8514 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8515 | temp2 = true; |
d14a1e28 RD |
8516 | } |
8517 | { | |
8518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8519 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
8520 | ||
8521 | wxPyEndAllowThreads(__tstate); | |
8522 | if (PyErr_Occurred()) SWIG_fail; | |
8523 | } | |
8524 | { | |
8525 | #if wxUSE_UNICODE | |
8526 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8527 | #else | |
8528 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8529 | #endif | |
8530 | } | |
8531 | { | |
8532 | if (temp2) | |
8533 | delete arg2; | |
8534 | } | |
8535 | return resultobj; | |
8536 | fail: | |
8537 | { | |
8538 | if (temp2) | |
8539 | delete arg2; | |
8540 | } | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
c32bde28 | 8545 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8546 | PyObject *resultobj; |
8547 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8548 | wxString *arg2 = 0 ; | |
8549 | wxString result; | |
ae8162c8 | 8550 | bool temp2 = false ; |
d14a1e28 RD |
8551 | PyObject * obj0 = 0 ; |
8552 | PyObject * obj1 = 0 ; | |
8553 | char *kwnames[] = { | |
8554 | (char *) "self",(char *) "location", NULL | |
8555 | }; | |
8556 | ||
8557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8560 | { |
8561 | arg2 = wxString_in_helper(obj1); | |
8562 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8563 | temp2 = true; |
d14a1e28 RD |
8564 | } |
8565 | { | |
8566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8567 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
8568 | ||
8569 | wxPyEndAllowThreads(__tstate); | |
8570 | if (PyErr_Occurred()) SWIG_fail; | |
8571 | } | |
8572 | { | |
8573 | #if wxUSE_UNICODE | |
8574 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8575 | #else | |
8576 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8577 | #endif | |
8578 | } | |
8579 | { | |
8580 | if (temp2) | |
8581 | delete arg2; | |
8582 | } | |
8583 | return resultobj; | |
8584 | fail: | |
8585 | { | |
8586 | if (temp2) | |
8587 | delete arg2; | |
8588 | } | |
8589 | return NULL; | |
8590 | } | |
8591 | ||
8592 | ||
c32bde28 | 8593 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8594 | PyObject *resultobj; |
8595 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8596 | wxString *arg2 = 0 ; | |
8597 | wxString result; | |
ae8162c8 | 8598 | bool temp2 = false ; |
d14a1e28 RD |
8599 | PyObject * obj0 = 0 ; |
8600 | PyObject * obj1 = 0 ; | |
8601 | char *kwnames[] = { | |
8602 | (char *) "self",(char *) "location", NULL | |
8603 | }; | |
8604 | ||
8605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8608 | { |
8609 | arg2 = wxString_in_helper(obj1); | |
8610 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8611 | temp2 = true; |
d14a1e28 RD |
8612 | } |
8613 | { | |
8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8615 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
8616 | ||
8617 | wxPyEndAllowThreads(__tstate); | |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8619 | } | |
8620 | { | |
8621 | #if wxUSE_UNICODE | |
8622 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8623 | #else | |
8624 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8625 | #endif | |
8626 | } | |
8627 | { | |
8628 | if (temp2) | |
8629 | delete arg2; | |
8630 | } | |
8631 | return resultobj; | |
8632 | fail: | |
8633 | { | |
8634 | if (temp2) | |
8635 | delete arg2; | |
8636 | } | |
8637 | return NULL; | |
8638 | } | |
8639 | ||
8640 | ||
c32bde28 | 8641 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8642 | PyObject *resultobj; |
8643 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8644 | wxString *arg2 = 0 ; | |
8645 | wxString result; | |
ae8162c8 | 8646 | bool temp2 = false ; |
d14a1e28 RD |
8647 | PyObject * obj0 = 0 ; |
8648 | PyObject * obj1 = 0 ; | |
8649 | char *kwnames[] = { | |
8650 | (char *) "self",(char *) "location", NULL | |
8651 | }; | |
8652 | ||
8653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8656 | { |
8657 | arg2 = wxString_in_helper(obj1); | |
8658 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8659 | temp2 = true; |
d14a1e28 RD |
8660 | } |
8661 | { | |
8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8663 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
8664 | ||
8665 | wxPyEndAllowThreads(__tstate); | |
8666 | if (PyErr_Occurred()) SWIG_fail; | |
8667 | } | |
8668 | { | |
8669 | #if wxUSE_UNICODE | |
8670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8671 | #else | |
8672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8673 | #endif | |
8674 | } | |
8675 | { | |
8676 | if (temp2) | |
8677 | delete arg2; | |
8678 | } | |
8679 | return resultobj; | |
8680 | fail: | |
8681 | { | |
8682 | if (temp2) | |
8683 | delete arg2; | |
8684 | } | |
8685 | return NULL; | |
8686 | } | |
8687 | ||
8688 | ||
c32bde28 | 8689 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8690 | PyObject *resultobj; |
8691 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
8692 | wxString *arg2 = 0 ; | |
8693 | wxString result; | |
ae8162c8 | 8694 | bool temp2 = false ; |
d14a1e28 RD |
8695 | PyObject * obj0 = 0 ; |
8696 | PyObject * obj1 = 0 ; | |
8697 | char *kwnames[] = { | |
8698 | (char *) "self",(char *) "location", NULL | |
8699 | }; | |
8700 | ||
8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
8703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8704 | { |
8705 | arg2 = wxString_in_helper(obj1); | |
8706 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8707 | temp2 = true; |
d14a1e28 RD |
8708 | } |
8709 | { | |
8710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8711 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
8712 | ||
8713 | wxPyEndAllowThreads(__tstate); | |
8714 | if (PyErr_Occurred()) SWIG_fail; | |
8715 | } | |
8716 | { | |
8717 | #if wxUSE_UNICODE | |
8718 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8719 | #else | |
8720 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8721 | #endif | |
8722 | } | |
8723 | { | |
8724 | if (temp2) | |
8725 | delete arg2; | |
8726 | } | |
8727 | return resultobj; | |
8728 | fail: | |
8729 | { | |
8730 | if (temp2) | |
8731 | delete arg2; | |
8732 | } | |
8733 | return NULL; | |
8734 | } | |
8735 | ||
8736 | ||
c32bde28 | 8737 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8738 | PyObject *obj; |
8739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8740 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
8741 | Py_INCREF(obj); | |
8742 | return Py_BuildValue((char *)""); | |
8743 | } | |
c32bde28 | 8744 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8745 | PyObject *resultobj; |
8746 | wxFileSystem *result; | |
8747 | char *kwnames[] = { | |
8748 | NULL | |
8749 | }; | |
8750 | ||
8751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
8752 | { | |
8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8754 | result = (wxFileSystem *)new wxFileSystem(); | |
8755 | ||
8756 | wxPyEndAllowThreads(__tstate); | |
8757 | if (PyErr_Occurred()) SWIG_fail; | |
8758 | } | |
8759 | { | |
412d302d | 8760 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
8761 | } |
8762 | return resultobj; | |
8763 | fail: | |
8764 | return NULL; | |
8765 | } | |
8766 | ||
8767 | ||
c32bde28 | 8768 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8769 | PyObject *resultobj; |
8770 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8771 | PyObject * obj0 = 0 ; | |
8772 | char *kwnames[] = { | |
8773 | (char *) "self", NULL | |
8774 | }; | |
8775 | ||
8776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8777 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8778 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8779 | { |
8780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8781 | delete arg1; | |
8782 | ||
8783 | wxPyEndAllowThreads(__tstate); | |
8784 | if (PyErr_Occurred()) SWIG_fail; | |
8785 | } | |
8786 | Py_INCREF(Py_None); resultobj = Py_None; | |
8787 | return resultobj; | |
8788 | fail: | |
8789 | return NULL; | |
8790 | } | |
8791 | ||
8792 | ||
c32bde28 | 8793 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8794 | PyObject *resultobj; |
8795 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8796 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
8797 | bool arg3 = (bool) false ; |
8798 | bool temp2 = false ; | |
d14a1e28 RD |
8799 | PyObject * obj0 = 0 ; |
8800 | PyObject * obj1 = 0 ; | |
8801 | PyObject * obj2 = 0 ; | |
8802 | char *kwnames[] = { | |
8803 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
8804 | }; | |
8805 | ||
8806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8809 | { |
8810 | arg2 = wxString_in_helper(obj1); | |
8811 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8812 | temp2 = true; |
d14a1e28 RD |
8813 | } |
8814 | if (obj2) { | |
093d3ff1 RD |
8815 | { |
8816 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
8817 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8818 | } | |
d14a1e28 RD |
8819 | } |
8820 | { | |
8821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8822 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
8823 | ||
8824 | wxPyEndAllowThreads(__tstate); | |
8825 | if (PyErr_Occurred()) SWIG_fail; | |
8826 | } | |
8827 | Py_INCREF(Py_None); resultobj = Py_None; | |
8828 | { | |
8829 | if (temp2) | |
8830 | delete arg2; | |
8831 | } | |
8832 | return resultobj; | |
8833 | fail: | |
8834 | { | |
8835 | if (temp2) | |
8836 | delete arg2; | |
8837 | } | |
8838 | return NULL; | |
8839 | } | |
8840 | ||
8841 | ||
c32bde28 | 8842 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8843 | PyObject *resultobj; |
8844 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8845 | wxString result; | |
8846 | PyObject * obj0 = 0 ; | |
8847 | char *kwnames[] = { | |
8848 | (char *) "self", NULL | |
8849 | }; | |
8850 | ||
8851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8854 | { |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | result = (arg1)->GetPath(); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
8861 | { | |
8862 | #if wxUSE_UNICODE | |
8863 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8864 | #else | |
8865 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8866 | #endif | |
8867 | } | |
8868 | return resultobj; | |
8869 | fail: | |
8870 | return NULL; | |
8871 | } | |
8872 | ||
8873 | ||
c32bde28 | 8874 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8875 | PyObject *resultobj; |
8876 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8877 | wxString *arg2 = 0 ; | |
8878 | wxFSFile *result; | |
ae8162c8 | 8879 | bool temp2 = false ; |
d14a1e28 RD |
8880 | PyObject * obj0 = 0 ; |
8881 | PyObject * obj1 = 0 ; | |
8882 | char *kwnames[] = { | |
8883 | (char *) "self",(char *) "location", NULL | |
8884 | }; | |
8885 | ||
8886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8889 | { |
8890 | arg2 = wxString_in_helper(obj1); | |
8891 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8892 | temp2 = true; |
d14a1e28 RD |
8893 | } |
8894 | { | |
8895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8896 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
8897 | ||
8898 | wxPyEndAllowThreads(__tstate); | |
8899 | if (PyErr_Occurred()) SWIG_fail; | |
8900 | } | |
8901 | { | |
4cf4100f | 8902 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
8903 | } |
8904 | { | |
8905 | if (temp2) | |
8906 | delete arg2; | |
8907 | } | |
8908 | return resultobj; | |
8909 | fail: | |
8910 | { | |
8911 | if (temp2) | |
8912 | delete arg2; | |
8913 | } | |
8914 | return NULL; | |
8915 | } | |
8916 | ||
8917 | ||
c32bde28 | 8918 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8919 | PyObject *resultobj; |
8920 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8921 | wxString *arg2 = 0 ; | |
8922 | int arg3 = (int) 0 ; | |
8923 | wxString result; | |
ae8162c8 | 8924 | bool temp2 = false ; |
d14a1e28 RD |
8925 | PyObject * obj0 = 0 ; |
8926 | PyObject * obj1 = 0 ; | |
994141e6 | 8927 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8928 | char *kwnames[] = { |
8929 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8930 | }; | |
8931 | ||
994141e6 | 8932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8935 | { |
8936 | arg2 = wxString_in_helper(obj1); | |
8937 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8938 | temp2 = true; |
d14a1e28 | 8939 | } |
994141e6 | 8940 | if (obj2) { |
093d3ff1 RD |
8941 | { |
8942 | arg3 = (int)(SWIG_As_int(obj2)); | |
8943 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8944 | } | |
994141e6 | 8945 | } |
d14a1e28 RD |
8946 | { |
8947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8948 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8949 | ||
8950 | wxPyEndAllowThreads(__tstate); | |
8951 | if (PyErr_Occurred()) SWIG_fail; | |
8952 | } | |
8953 | { | |
8954 | #if wxUSE_UNICODE | |
8955 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8956 | #else | |
8957 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8958 | #endif | |
8959 | } | |
8960 | { | |
8961 | if (temp2) | |
8962 | delete arg2; | |
8963 | } | |
8964 | return resultobj; | |
8965 | fail: | |
8966 | { | |
8967 | if (temp2) | |
8968 | delete arg2; | |
8969 | } | |
8970 | return NULL; | |
8971 | } | |
8972 | ||
8973 | ||
c32bde28 | 8974 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8975 | PyObject *resultobj; |
8976 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
8977 | wxString result; | |
8978 | PyObject * obj0 = 0 ; | |
8979 | char *kwnames[] = { | |
8980 | (char *) "self", NULL | |
8981 | }; | |
8982 | ||
8983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); |
8985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8986 | { |
8987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8988 | result = (arg1)->FindNext(); | |
8989 | ||
8990 | wxPyEndAllowThreads(__tstate); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
8992 | } | |
8993 | { | |
8994 | #if wxUSE_UNICODE | |
8995 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8996 | #else | |
8997 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8998 | #endif | |
8999 | } | |
9000 | return resultobj; | |
9001 | fail: | |
9002 | return NULL; | |
9003 | } | |
9004 | ||
9005 | ||
c32bde28 | 9006 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9007 | PyObject *resultobj; |
9008 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
9009 | PyObject * obj0 = 0 ; | |
9010 | char *kwnames[] = { | |
9011 | (char *) "handler", NULL | |
9012 | }; | |
9013 | ||
9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_EXCEPTION | 0); |
9016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9017 | { |
9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9019 | wxFileSystem::AddHandler(arg1); | |
9020 | ||
9021 | wxPyEndAllowThreads(__tstate); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | } | |
9024 | Py_INCREF(Py_None); resultobj = Py_None; | |
9025 | return resultobj; | |
9026 | fail: | |
9027 | return NULL; | |
9028 | } | |
9029 | ||
9030 | ||
c32bde28 | 9031 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9032 | PyObject *resultobj; |
9033 | char *kwnames[] = { | |
9034 | NULL | |
9035 | }; | |
9036 | ||
9037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
9038 | { | |
9039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9040 | wxFileSystem::CleanUpHandlers(); | |
9041 | ||
9042 | wxPyEndAllowThreads(__tstate); | |
9043 | if (PyErr_Occurred()) SWIG_fail; | |
9044 | } | |
9045 | Py_INCREF(Py_None); resultobj = Py_None; | |
9046 | return resultobj; | |
9047 | fail: | |
9048 | return NULL; | |
9049 | } | |
9050 | ||
9051 | ||
c32bde28 | 9052 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9053 | PyObject *resultobj; |
9054 | wxString *arg1 = 0 ; | |
9055 | wxString result; | |
ae8162c8 | 9056 | bool temp1 = false ; |
d14a1e28 RD |
9057 | PyObject * obj0 = 0 ; |
9058 | char *kwnames[] = { | |
9059 | (char *) "filename", NULL | |
9060 | }; | |
9061 | ||
9062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
9063 | { | |
9064 | arg1 = wxString_in_helper(obj0); | |
9065 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9066 | temp1 = true; |
d14a1e28 RD |
9067 | } |
9068 | { | |
9069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9070 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
9071 | ||
9072 | wxPyEndAllowThreads(__tstate); | |
9073 | if (PyErr_Occurred()) SWIG_fail; | |
9074 | } | |
9075 | { | |
9076 | #if wxUSE_UNICODE | |
9077 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9078 | #else | |
9079 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9080 | #endif | |
9081 | } | |
9082 | { | |
9083 | if (temp1) | |
9084 | delete arg1; | |
9085 | } | |
9086 | return resultobj; | |
9087 | fail: | |
9088 | { | |
9089 | if (temp1) | |
9090 | delete arg1; | |
9091 | } | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
c32bde28 | 9096 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9097 | PyObject *resultobj; |
9098 | wxString *arg1 = 0 ; | |
9099 | wxString result; | |
ae8162c8 | 9100 | bool temp1 = false ; |
d14a1e28 RD |
9101 | PyObject * obj0 = 0 ; |
9102 | char *kwnames[] = { | |
9103 | (char *) "url", NULL | |
9104 | }; | |
9105 | ||
9106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
9107 | { | |
9108 | arg1 = wxString_in_helper(obj0); | |
9109 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9110 | temp1 = true; |
d14a1e28 RD |
9111 | } |
9112 | { | |
9113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2ef75293 | 9114 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d14a1e28 RD |
9115 | |
9116 | wxPyEndAllowThreads(__tstate); | |
9117 | if (PyErr_Occurred()) SWIG_fail; | |
9118 | } | |
9119 | { | |
9120 | #if wxUSE_UNICODE | |
9121 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9122 | #else | |
9123 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9124 | #endif | |
9125 | } | |
9126 | { | |
9127 | if (temp1) | |
9128 | delete arg1; | |
9129 | } | |
9130 | return resultobj; | |
9131 | fail: | |
9132 | { | |
9133 | if (temp1) | |
9134 | delete arg1; | |
9135 | } | |
9136 | return NULL; | |
9137 | } | |
9138 | ||
9139 | ||
2ef75293 RD |
9140 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
9141 | PyObject *obj; | |
9142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9143 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
9144 | Py_INCREF(obj); | |
9145 | return Py_BuildValue((char *)""); | |
9146 | } | |
c32bde28 | 9147 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9148 | PyObject *resultobj; |
9149 | wxInternetFSHandler *result; | |
9150 | char *kwnames[] = { | |
9151 | NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
9155 | { | |
9156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9157 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
9158 | ||
9159 | wxPyEndAllowThreads(__tstate); | |
9160 | if (PyErr_Occurred()) SWIG_fail; | |
9161 | } | |
15afbcd0 | 9162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
9163 | return resultobj; |
9164 | fail: | |
9165 | return NULL; | |
9166 | } | |
9167 | ||
9168 | ||
c32bde28 | 9169 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9170 | PyObject *resultobj; |
9171 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
9172 | wxString *arg2 = 0 ; | |
9173 | bool result; | |
ae8162c8 | 9174 | bool temp2 = false ; |
d14a1e28 RD |
9175 | PyObject * obj0 = 0 ; |
9176 | PyObject * obj1 = 0 ; | |
9177 | char *kwnames[] = { | |
9178 | (char *) "self",(char *) "location", NULL | |
9179 | }; | |
9180 | ||
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9184 | { |
9185 | arg2 = wxString_in_helper(obj1); | |
9186 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9187 | temp2 = true; |
d14a1e28 RD |
9188 | } |
9189 | { | |
9190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9191 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9192 | ||
9193 | wxPyEndAllowThreads(__tstate); | |
9194 | if (PyErr_Occurred()) SWIG_fail; | |
9195 | } | |
4f89f6a3 RD |
9196 | { |
9197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9198 | } | |
d14a1e28 RD |
9199 | { |
9200 | if (temp2) | |
9201 | delete arg2; | |
9202 | } | |
9203 | return resultobj; | |
9204 | fail: | |
9205 | { | |
9206 | if (temp2) | |
9207 | delete arg2; | |
9208 | } | |
9209 | return NULL; | |
9210 | } | |
9211 | ||
9212 | ||
c32bde28 | 9213 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9214 | PyObject *resultobj; |
9215 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
9216 | wxFileSystem *arg2 = 0 ; | |
9217 | wxString *arg3 = 0 ; | |
9218 | wxFSFile *result; | |
ae8162c8 | 9219 | bool temp3 = false ; |
d14a1e28 RD |
9220 | PyObject * obj0 = 0 ; |
9221 | PyObject * obj1 = 0 ; | |
9222 | PyObject * obj2 = 0 ; | |
9223 | char *kwnames[] = { | |
9224 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9225 | }; | |
9226 | ||
9227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9228 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9229 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9230 | { | |
9231 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9232 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9233 | if (arg2 == NULL) { | |
9234 | SWIG_null_ref("wxFileSystem"); | |
9235 | } | |
9236 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
9237 | } |
9238 | { | |
9239 | arg3 = wxString_in_helper(obj2); | |
9240 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9241 | temp3 = true; |
d14a1e28 RD |
9242 | } |
9243 | { | |
9244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9245 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9246 | ||
9247 | wxPyEndAllowThreads(__tstate); | |
9248 | if (PyErr_Occurred()) SWIG_fail; | |
9249 | } | |
9250 | { | |
4cf4100f | 9251 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
9252 | } |
9253 | { | |
9254 | if (temp3) | |
9255 | delete arg3; | |
9256 | } | |
9257 | return resultobj; | |
9258 | fail: | |
9259 | { | |
9260 | if (temp3) | |
9261 | delete arg3; | |
9262 | } | |
9263 | return NULL; | |
9264 | } | |
9265 | ||
9266 | ||
c32bde28 | 9267 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9268 | PyObject *obj; |
9269 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9270 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
9271 | Py_INCREF(obj); | |
9272 | return Py_BuildValue((char *)""); | |
9273 | } | |
c32bde28 | 9274 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9275 | PyObject *resultobj; |
9276 | wxZipFSHandler *result; | |
9277 | char *kwnames[] = { | |
9278 | NULL | |
9279 | }; | |
9280 | ||
9281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
9282 | { | |
9283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9284 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
9285 | ||
9286 | wxPyEndAllowThreads(__tstate); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
15afbcd0 | 9289 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
9290 | return resultobj; |
9291 | fail: | |
9292 | return NULL; | |
9293 | } | |
9294 | ||
9295 | ||
c32bde28 | 9296 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9297 | PyObject *resultobj; |
9298 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9299 | wxString *arg2 = 0 ; | |
9300 | bool result; | |
ae8162c8 | 9301 | bool temp2 = false ; |
d14a1e28 RD |
9302 | PyObject * obj0 = 0 ; |
9303 | PyObject * obj1 = 0 ; | |
9304 | char *kwnames[] = { | |
9305 | (char *) "self",(char *) "location", NULL | |
9306 | }; | |
9307 | ||
9308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9311 | { |
9312 | arg2 = wxString_in_helper(obj1); | |
9313 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9314 | temp2 = true; |
d14a1e28 RD |
9315 | } |
9316 | { | |
9317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9318 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9319 | ||
9320 | wxPyEndAllowThreads(__tstate); | |
9321 | if (PyErr_Occurred()) SWIG_fail; | |
9322 | } | |
4f89f6a3 RD |
9323 | { |
9324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9325 | } | |
d14a1e28 RD |
9326 | { |
9327 | if (temp2) | |
9328 | delete arg2; | |
9329 | } | |
9330 | return resultobj; | |
9331 | fail: | |
9332 | { | |
9333 | if (temp2) | |
9334 | delete arg2; | |
9335 | } | |
9336 | return NULL; | |
9337 | } | |
9338 | ||
9339 | ||
c32bde28 | 9340 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9341 | PyObject *resultobj; |
9342 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9343 | wxFileSystem *arg2 = 0 ; | |
9344 | wxString *arg3 = 0 ; | |
9345 | wxFSFile *result; | |
ae8162c8 | 9346 | bool temp3 = false ; |
d14a1e28 RD |
9347 | PyObject * obj0 = 0 ; |
9348 | PyObject * obj1 = 0 ; | |
9349 | PyObject * obj2 = 0 ; | |
9350 | char *kwnames[] = { | |
9351 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9352 | }; | |
9353 | ||
9354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9357 | { | |
9358 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9359 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9360 | if (arg2 == NULL) { | |
9361 | SWIG_null_ref("wxFileSystem"); | |
9362 | } | |
9363 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
9364 | } |
9365 | { | |
9366 | arg3 = wxString_in_helper(obj2); | |
9367 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9368 | temp3 = true; |
d14a1e28 RD |
9369 | } |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9373 | ||
9374 | wxPyEndAllowThreads(__tstate); | |
9375 | if (PyErr_Occurred()) SWIG_fail; | |
9376 | } | |
9377 | { | |
4cf4100f | 9378 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
9379 | } |
9380 | { | |
9381 | if (temp3) | |
9382 | delete arg3; | |
9383 | } | |
9384 | return resultobj; | |
9385 | fail: | |
9386 | { | |
9387 | if (temp3) | |
9388 | delete arg3; | |
9389 | } | |
9390 | return NULL; | |
9391 | } | |
9392 | ||
9393 | ||
c32bde28 | 9394 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9395 | PyObject *resultobj; |
9396 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9397 | wxString *arg2 = 0 ; | |
9398 | int arg3 = (int) 0 ; | |
9399 | wxString result; | |
ae8162c8 | 9400 | bool temp2 = false ; |
d14a1e28 RD |
9401 | PyObject * obj0 = 0 ; |
9402 | PyObject * obj1 = 0 ; | |
994141e6 | 9403 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9404 | char *kwnames[] = { |
9405 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
9406 | }; | |
9407 | ||
994141e6 | 9408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9411 | { |
9412 | arg2 = wxString_in_helper(obj1); | |
9413 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9414 | temp2 = true; |
d14a1e28 | 9415 | } |
994141e6 | 9416 | if (obj2) { |
093d3ff1 RD |
9417 | { |
9418 | arg3 = (int)(SWIG_As_int(obj2)); | |
9419 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9420 | } | |
994141e6 | 9421 | } |
d14a1e28 RD |
9422 | { |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | { | |
9430 | #if wxUSE_UNICODE | |
9431 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9432 | #else | |
9433 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9434 | #endif | |
9435 | } | |
9436 | { | |
9437 | if (temp2) | |
9438 | delete arg2; | |
9439 | } | |
9440 | return resultobj; | |
9441 | fail: | |
9442 | { | |
9443 | if (temp2) | |
9444 | delete arg2; | |
9445 | } | |
9446 | return NULL; | |
9447 | } | |
9448 | ||
9449 | ||
c32bde28 | 9450 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9451 | PyObject *resultobj; |
9452 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
9453 | wxString result; | |
9454 | PyObject * obj0 = 0 ; | |
9455 | char *kwnames[] = { | |
9456 | (char *) "self", NULL | |
9457 | }; | |
9458 | ||
9459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9462 | { |
9463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9464 | result = (arg1)->FindNext(); | |
9465 | ||
9466 | wxPyEndAllowThreads(__tstate); | |
9467 | if (PyErr_Occurred()) SWIG_fail; | |
9468 | } | |
9469 | { | |
9470 | #if wxUSE_UNICODE | |
9471 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9472 | #else | |
9473 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9474 | #endif | |
9475 | } | |
9476 | return resultobj; | |
9477 | fail: | |
9478 | return NULL; | |
9479 | } | |
9480 | ||
9481 | ||
c32bde28 | 9482 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9483 | PyObject *obj; |
9484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9485 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
9486 | Py_INCREF(obj); | |
9487 | return Py_BuildValue((char *)""); | |
9488 | } | |
c32bde28 | 9489 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9490 | PyObject *resultobj; |
9491 | wxString *arg1 = 0 ; | |
9492 | wxImage *arg2 = 0 ; | |
9493 | long arg3 ; | |
ae8162c8 | 9494 | bool temp1 = false ; |
d14a1e28 RD |
9495 | PyObject * obj0 = 0 ; |
9496 | PyObject * obj1 = 0 ; | |
994141e6 | 9497 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9498 | char *kwnames[] = { |
9499 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
9500 | }; | |
9501 | ||
994141e6 | 9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9503 | { |
9504 | arg1 = wxString_in_helper(obj0); | |
9505 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9506 | temp1 = true; |
d14a1e28 | 9507 | } |
093d3ff1 RD |
9508 | { |
9509 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
9510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9511 | if (arg2 == NULL) { | |
9512 | SWIG_null_ref("wxImage"); | |
9513 | } | |
9514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9515 | } | |
9516 | { | |
9517 | arg3 = (long)(SWIG_As_long(obj2)); | |
9518 | if (SWIG_arg_fail(3)) SWIG_fail; | |
994141e6 | 9519 | } |
d14a1e28 RD |
9520 | { |
9521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9522 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
9523 | ||
9524 | wxPyEndAllowThreads(__tstate); | |
9525 | if (PyErr_Occurred()) SWIG_fail; | |
9526 | } | |
9527 | Py_INCREF(Py_None); resultobj = Py_None; | |
9528 | { | |
9529 | if (temp1) | |
9530 | delete arg1; | |
9531 | } | |
9532 | return resultobj; | |
9533 | fail: | |
9534 | { | |
9535 | if (temp1) | |
9536 | delete arg1; | |
9537 | } | |
9538 | return NULL; | |
9539 | } | |
9540 | ||
9541 | ||
c32bde28 | 9542 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9543 | PyObject *resultobj; |
9544 | wxString *arg1 = 0 ; | |
9545 | wxBitmap *arg2 = 0 ; | |
9546 | long arg3 ; | |
ae8162c8 | 9547 | bool temp1 = false ; |
d14a1e28 RD |
9548 | PyObject * obj0 = 0 ; |
9549 | PyObject * obj1 = 0 ; | |
994141e6 | 9550 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9551 | char *kwnames[] = { |
9552 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
9553 | }; | |
9554 | ||
994141e6 | 9555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9556 | { |
9557 | arg1 = wxString_in_helper(obj0); | |
9558 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9559 | temp1 = true; |
d14a1e28 | 9560 | } |
093d3ff1 RD |
9561 | { |
9562 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
9563 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9564 | if (arg2 == NULL) { | |
9565 | SWIG_null_ref("wxBitmap"); | |
9566 | } | |
9567 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9568 | } | |
9569 | { | |
9570 | arg3 = (long)(SWIG_As_long(obj2)); | |
9571 | if (SWIG_arg_fail(3)) SWIG_fail; | |
994141e6 | 9572 | } |
d14a1e28 RD |
9573 | { |
9574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9575 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
9576 | ||
9577 | wxPyEndAllowThreads(__tstate); | |
9578 | if (PyErr_Occurred()) SWIG_fail; | |
9579 | } | |
9580 | Py_INCREF(Py_None); resultobj = Py_None; | |
9581 | { | |
9582 | if (temp1) | |
9583 | delete arg1; | |
9584 | } | |
9585 | return resultobj; | |
9586 | fail: | |
9587 | { | |
9588 | if (temp1) | |
9589 | delete arg1; | |
9590 | } | |
9591 | return NULL; | |
9592 | } | |
9593 | ||
9594 | ||
c32bde28 | 9595 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9596 | PyObject *resultobj; |
9597 | wxString *arg1 = 0 ; | |
9598 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 | 9599 | bool temp1 = false ; |
d14a1e28 RD |
9600 | PyObject * obj0 = 0 ; |
9601 | PyObject * obj1 = 0 ; | |
9602 | char *kwnames[] = { | |
9603 | (char *) "filename",(char *) "data", NULL | |
9604 | }; | |
9605 | ||
9606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
9607 | { | |
9608 | arg1 = wxString_in_helper(obj0); | |
9609 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9610 | temp1 = true; |
d14a1e28 RD |
9611 | } |
9612 | arg2 = obj1; | |
9613 | { | |
9614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9615 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
9616 | ||
9617 | wxPyEndAllowThreads(__tstate); | |
9618 | if (PyErr_Occurred()) SWIG_fail; | |
9619 | } | |
9620 | Py_INCREF(Py_None); resultobj = Py_None; | |
9621 | { | |
9622 | if (temp1) | |
9623 | delete arg1; | |
9624 | } | |
9625 | return resultobj; | |
9626 | fail: | |
9627 | { | |
9628 | if (temp1) | |
9629 | delete arg1; | |
9630 | } | |
9631 | return NULL; | |
9632 | } | |
9633 | ||
9634 | ||
c32bde28 | 9635 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9636 | PyObject *resultobj; |
9637 | wxMemoryFSHandler *result; | |
9638 | char *kwnames[] = { | |
9639 | NULL | |
9640 | }; | |
9641 | ||
9642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
9643 | { | |
9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9645 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
9646 | ||
9647 | wxPyEndAllowThreads(__tstate); | |
9648 | if (PyErr_Occurred()) SWIG_fail; | |
9649 | } | |
15afbcd0 | 9650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
9651 | return resultobj; |
9652 | fail: | |
9653 | return NULL; | |
9654 | } | |
9655 | ||
9656 | ||
c32bde28 | 9657 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9658 | PyObject *resultobj; |
9659 | wxString *arg1 = 0 ; | |
ae8162c8 | 9660 | bool temp1 = false ; |
d14a1e28 RD |
9661 | PyObject * obj0 = 0 ; |
9662 | char *kwnames[] = { | |
9663 | (char *) "filename", NULL | |
9664 | }; | |
9665 | ||
9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
9667 | { | |
9668 | arg1 = wxString_in_helper(obj0); | |
9669 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9670 | temp1 = true; |
d14a1e28 RD |
9671 | } |
9672 | { | |
9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9674 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
9675 | ||
9676 | wxPyEndAllowThreads(__tstate); | |
9677 | if (PyErr_Occurred()) SWIG_fail; | |
9678 | } | |
9679 | Py_INCREF(Py_None); resultobj = Py_None; | |
9680 | { | |
9681 | if (temp1) | |
9682 | delete arg1; | |
9683 | } | |
9684 | return resultobj; | |
9685 | fail: | |
9686 | { | |
9687 | if (temp1) | |
9688 | delete arg1; | |
9689 | } | |
9690 | return NULL; | |
9691 | } | |
9692 | ||
9693 | ||
c32bde28 | 9694 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9695 | PyObject *resultobj; |
9696 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9697 | wxString *arg2 = 0 ; | |
9698 | bool result; | |
ae8162c8 | 9699 | bool temp2 = false ; |
d14a1e28 RD |
9700 | PyObject * obj0 = 0 ; |
9701 | PyObject * obj1 = 0 ; | |
9702 | char *kwnames[] = { | |
9703 | (char *) "self",(char *) "location", NULL | |
9704 | }; | |
9705 | ||
9706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9709 | { |
9710 | arg2 = wxString_in_helper(obj1); | |
9711 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9712 | temp2 = true; |
d14a1e28 RD |
9713 | } |
9714 | { | |
9715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9716 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
9717 | ||
9718 | wxPyEndAllowThreads(__tstate); | |
9719 | if (PyErr_Occurred()) SWIG_fail; | |
9720 | } | |
4f89f6a3 RD |
9721 | { |
9722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9723 | } | |
d14a1e28 RD |
9724 | { |
9725 | if (temp2) | |
9726 | delete arg2; | |
9727 | } | |
9728 | return resultobj; | |
9729 | fail: | |
9730 | { | |
9731 | if (temp2) | |
9732 | delete arg2; | |
9733 | } | |
9734 | return NULL; | |
9735 | } | |
9736 | ||
9737 | ||
c32bde28 | 9738 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9739 | PyObject *resultobj; |
9740 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9741 | wxFileSystem *arg2 = 0 ; | |
9742 | wxString *arg3 = 0 ; | |
9743 | wxFSFile *result; | |
ae8162c8 | 9744 | bool temp3 = false ; |
d14a1e28 RD |
9745 | PyObject * obj0 = 0 ; |
9746 | PyObject * obj1 = 0 ; | |
9747 | PyObject * obj2 = 0 ; | |
9748 | char *kwnames[] = { | |
9749 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
9750 | }; | |
9751 | ||
9752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9755 | { | |
9756 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0); | |
9757 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9758 | if (arg2 == NULL) { | |
9759 | SWIG_null_ref("wxFileSystem"); | |
9760 | } | |
9761 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
9762 | } |
9763 | { | |
9764 | arg3 = wxString_in_helper(obj2); | |
9765 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9766 | temp3 = true; |
d14a1e28 RD |
9767 | } |
9768 | { | |
9769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9770 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
9771 | ||
9772 | wxPyEndAllowThreads(__tstate); | |
9773 | if (PyErr_Occurred()) SWIG_fail; | |
9774 | } | |
9775 | { | |
4cf4100f | 9776 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
9777 | } |
9778 | { | |
9779 | if (temp3) | |
9780 | delete arg3; | |
9781 | } | |
9782 | return resultobj; | |
9783 | fail: | |
9784 | { | |
9785 | if (temp3) | |
9786 | delete arg3; | |
9787 | } | |
9788 | return NULL; | |
9789 | } | |
9790 | ||
9791 | ||
c32bde28 | 9792 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9793 | PyObject *resultobj; |
9794 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9795 | wxString *arg2 = 0 ; | |
9796 | int arg3 = (int) 0 ; | |
9797 | wxString result; | |
ae8162c8 | 9798 | bool temp2 = false ; |
d14a1e28 RD |
9799 | PyObject * obj0 = 0 ; |
9800 | PyObject * obj1 = 0 ; | |
994141e6 | 9801 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9802 | char *kwnames[] = { |
9803 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
9804 | }; | |
9805 | ||
994141e6 | 9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9809 | { |
9810 | arg2 = wxString_in_helper(obj1); | |
9811 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9812 | temp2 = true; |
d14a1e28 | 9813 | } |
994141e6 | 9814 | if (obj2) { |
093d3ff1 RD |
9815 | { |
9816 | arg3 = (int)(SWIG_As_int(obj2)); | |
9817 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9818 | } | |
994141e6 | 9819 | } |
d14a1e28 RD |
9820 | { |
9821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9822 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
9823 | ||
9824 | wxPyEndAllowThreads(__tstate); | |
9825 | if (PyErr_Occurred()) SWIG_fail; | |
9826 | } | |
9827 | { | |
9828 | #if wxUSE_UNICODE | |
9829 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9830 | #else | |
9831 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9832 | #endif | |
9833 | } | |
9834 | { | |
9835 | if (temp2) | |
9836 | delete arg2; | |
9837 | } | |
9838 | return resultobj; | |
9839 | fail: | |
9840 | { | |
9841 | if (temp2) | |
9842 | delete arg2; | |
9843 | } | |
9844 | return NULL; | |
9845 | } | |
9846 | ||
9847 | ||
c32bde28 | 9848 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9849 | PyObject *resultobj; |
9850 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
9851 | wxString result; | |
9852 | PyObject * obj0 = 0 ; | |
9853 | char *kwnames[] = { | |
9854 | (char *) "self", NULL | |
9855 | }; | |
9856 | ||
9857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0); |
9859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9860 | { |
9861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9862 | result = (arg1)->FindNext(); | |
9863 | ||
9864 | wxPyEndAllowThreads(__tstate); | |
9865 | if (PyErr_Occurred()) SWIG_fail; | |
9866 | } | |
9867 | { | |
9868 | #if wxUSE_UNICODE | |
9869 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9870 | #else | |
9871 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9872 | #endif | |
9873 | } | |
9874 | return resultobj; | |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
c32bde28 | 9880 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9881 | PyObject *obj; |
9882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9883 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
9884 | Py_INCREF(obj); | |
9885 | return Py_BuildValue((char *)""); | |
9886 | } | |
c32bde28 | 9887 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9888 | PyObject *resultobj; |
9889 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9890 | wxString result; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9899 | { |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = (arg1)->GetName(); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
9906 | { | |
9907 | #if wxUSE_UNICODE | |
9908 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9909 | #else | |
9910 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9911 | #endif | |
9912 | } | |
9913 | return resultobj; | |
9914 | fail: | |
9915 | return NULL; | |
9916 | } | |
9917 | ||
9918 | ||
c32bde28 | 9919 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9920 | PyObject *resultobj; |
9921 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9922 | wxString result; | |
9923 | PyObject * obj0 = 0 ; | |
9924 | char *kwnames[] = { | |
9925 | (char *) "self", NULL | |
9926 | }; | |
9927 | ||
9928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9931 | { |
9932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9933 | result = (arg1)->GetExtension(); | |
9934 | ||
9935 | wxPyEndAllowThreads(__tstate); | |
9936 | if (PyErr_Occurred()) SWIG_fail; | |
9937 | } | |
9938 | { | |
9939 | #if wxUSE_UNICODE | |
9940 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9941 | #else | |
9942 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9943 | #endif | |
9944 | } | |
9945 | return resultobj; | |
9946 | fail: | |
9947 | return NULL; | |
9948 | } | |
9949 | ||
9950 | ||
c32bde28 | 9951 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9952 | PyObject *resultobj; |
9953 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9954 | long result; | |
9955 | PyObject * obj0 = 0 ; | |
9956 | char *kwnames[] = { | |
9957 | (char *) "self", NULL | |
9958 | }; | |
9959 | ||
9960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9963 | { |
9964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9965 | result = (long)(arg1)->GetType(); | |
9966 | ||
9967 | wxPyEndAllowThreads(__tstate); | |
9968 | if (PyErr_Occurred()) SWIG_fail; | |
9969 | } | |
093d3ff1 RD |
9970 | { |
9971 | resultobj = SWIG_From_long((long)(result)); | |
9972 | } | |
d14a1e28 RD |
9973 | return resultobj; |
9974 | fail: | |
9975 | return NULL; | |
9976 | } | |
9977 | ||
9978 | ||
c32bde28 | 9979 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9980 | PyObject *resultobj; |
9981 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9982 | wxString result; | |
9983 | PyObject * obj0 = 0 ; | |
9984 | char *kwnames[] = { | |
9985 | (char *) "self", NULL | |
9986 | }; | |
9987 | ||
9988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9989 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
9990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9991 | { |
9992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9993 | result = (arg1)->GetMimeType(); | |
9994 | ||
9995 | wxPyEndAllowThreads(__tstate); | |
9996 | if (PyErr_Occurred()) SWIG_fail; | |
9997 | } | |
9998 | { | |
9999 | #if wxUSE_UNICODE | |
10000 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10001 | #else | |
10002 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10003 | #endif | |
10004 | } | |
10005 | return resultobj; | |
10006 | fail: | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
c32bde28 | 10011 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10012 | PyObject *resultobj; |
10013 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10014 | wxString *arg2 = 0 ; | |
10015 | bool result; | |
ae8162c8 | 10016 | bool temp2 = false ; |
d14a1e28 RD |
10017 | PyObject * obj0 = 0 ; |
10018 | PyObject * obj1 = 0 ; | |
10019 | char *kwnames[] = { | |
10020 | (char *) "self",(char *) "name", NULL | |
10021 | }; | |
10022 | ||
10023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10026 | { |
10027 | arg2 = wxString_in_helper(obj1); | |
10028 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10029 | temp2 = true; |
d14a1e28 RD |
10030 | } |
10031 | { | |
10032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10033 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
10034 | ||
10035 | wxPyEndAllowThreads(__tstate); | |
10036 | if (PyErr_Occurred()) SWIG_fail; | |
10037 | } | |
4f89f6a3 RD |
10038 | { |
10039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10040 | } | |
d14a1e28 RD |
10041 | { |
10042 | if (temp2) | |
10043 | delete arg2; | |
10044 | } | |
10045 | return resultobj; | |
10046 | fail: | |
10047 | { | |
10048 | if (temp2) | |
10049 | delete arg2; | |
10050 | } | |
10051 | return NULL; | |
10052 | } | |
10053 | ||
10054 | ||
c32bde28 | 10055 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10056 | PyObject *resultobj; |
10057 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10058 | wxString *arg2 = 0 ; | |
ae8162c8 | 10059 | bool temp2 = false ; |
d14a1e28 RD |
10060 | PyObject * obj0 = 0 ; |
10061 | PyObject * obj1 = 0 ; | |
10062 | char *kwnames[] = { | |
10063 | (char *) "self",(char *) "name", NULL | |
10064 | }; | |
10065 | ||
10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10069 | { |
10070 | arg2 = wxString_in_helper(obj1); | |
10071 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10072 | temp2 = true; |
d14a1e28 RD |
10073 | } |
10074 | { | |
10075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10076 | (arg1)->SetName((wxString const &)*arg2); | |
10077 | ||
10078 | wxPyEndAllowThreads(__tstate); | |
10079 | if (PyErr_Occurred()) SWIG_fail; | |
10080 | } | |
10081 | Py_INCREF(Py_None); resultobj = Py_None; | |
10082 | { | |
10083 | if (temp2) | |
10084 | delete arg2; | |
10085 | } | |
10086 | return resultobj; | |
10087 | fail: | |
10088 | { | |
10089 | if (temp2) | |
10090 | delete arg2; | |
10091 | } | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
c32bde28 | 10096 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10097 | PyObject *resultobj; |
10098 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10099 | wxString *arg2 = 0 ; | |
ae8162c8 | 10100 | bool temp2 = false ; |
d14a1e28 RD |
10101 | PyObject * obj0 = 0 ; |
10102 | PyObject * obj1 = 0 ; | |
10103 | char *kwnames[] = { | |
10104 | (char *) "self",(char *) "extension", NULL | |
10105 | }; | |
10106 | ||
10107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10110 | { |
10111 | arg2 = wxString_in_helper(obj1); | |
10112 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10113 | temp2 = true; |
d14a1e28 RD |
10114 | } |
10115 | { | |
10116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10117 | (arg1)->SetExtension((wxString const &)*arg2); | |
10118 | ||
10119 | wxPyEndAllowThreads(__tstate); | |
10120 | if (PyErr_Occurred()) SWIG_fail; | |
10121 | } | |
10122 | Py_INCREF(Py_None); resultobj = Py_None; | |
10123 | { | |
10124 | if (temp2) | |
10125 | delete arg2; | |
10126 | } | |
10127 | return resultobj; | |
10128 | fail: | |
10129 | { | |
10130 | if (temp2) | |
10131 | delete arg2; | |
10132 | } | |
10133 | return NULL; | |
10134 | } | |
10135 | ||
10136 | ||
c32bde28 | 10137 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10138 | PyObject *resultobj; |
10139 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10140 | long arg2 ; | |
10141 | PyObject * obj0 = 0 ; | |
994141e6 | 10142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10143 | char *kwnames[] = { |
10144 | (char *) "self",(char *) "type", NULL | |
10145 | }; | |
10146 | ||
994141e6 | 10147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10150 | { | |
10151 | arg2 = (long)(SWIG_As_long(obj1)); | |
10152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10153 | } | |
d14a1e28 RD |
10154 | { |
10155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10156 | (arg1)->SetType(arg2); | |
10157 | ||
10158 | wxPyEndAllowThreads(__tstate); | |
10159 | if (PyErr_Occurred()) SWIG_fail; | |
10160 | } | |
10161 | Py_INCREF(Py_None); resultobj = Py_None; | |
10162 | return resultobj; | |
10163 | fail: | |
10164 | return NULL; | |
10165 | } | |
10166 | ||
10167 | ||
c32bde28 | 10168 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10169 | PyObject *resultobj; |
10170 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10171 | wxString *arg2 = 0 ; | |
ae8162c8 | 10172 | bool temp2 = false ; |
d14a1e28 RD |
10173 | PyObject * obj0 = 0 ; |
10174 | PyObject * obj1 = 0 ; | |
10175 | char *kwnames[] = { | |
10176 | (char *) "self",(char *) "mimetype", NULL | |
10177 | }; | |
10178 | ||
10179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
10181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10182 | { |
10183 | arg2 = wxString_in_helper(obj1); | |
10184 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10185 | temp2 = true; |
d14a1e28 RD |
10186 | } |
10187 | { | |
10188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10189 | (arg1)->SetMimeType((wxString const &)*arg2); | |
10190 | ||
10191 | wxPyEndAllowThreads(__tstate); | |
10192 | if (PyErr_Occurred()) SWIG_fail; | |
10193 | } | |
10194 | Py_INCREF(Py_None); resultobj = Py_None; | |
10195 | { | |
10196 | if (temp2) | |
10197 | delete arg2; | |
10198 | } | |
10199 | return resultobj; | |
10200 | fail: | |
10201 | { | |
10202 | if (temp2) | |
10203 | delete arg2; | |
10204 | } | |
10205 | return NULL; | |
10206 | } | |
10207 | ||
10208 | ||
c32bde28 | 10209 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10210 | PyObject *obj; |
10211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10212 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
10213 | Py_INCREF(obj); | |
10214 | return Py_BuildValue((char *)""); | |
10215 | } | |
c32bde28 | 10216 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10217 | PyObject *resultobj; |
10218 | wxImageHistogram *result; | |
10219 | char *kwnames[] = { | |
10220 | NULL | |
10221 | }; | |
10222 | ||
10223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
10224 | { | |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | result = (wxImageHistogram *)new wxImageHistogram(); | |
10227 | ||
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
15afbcd0 | 10231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
10232 | return resultobj; |
10233 | fail: | |
10234 | return NULL; | |
10235 | } | |
10236 | ||
10237 | ||
c32bde28 | 10238 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10239 | PyObject *resultobj; |
10240 | unsigned char arg1 ; | |
10241 | unsigned char arg2 ; | |
10242 | unsigned char arg3 ; | |
10243 | unsigned long result; | |
10244 | PyObject * obj0 = 0 ; | |
10245 | PyObject * obj1 = 0 ; | |
10246 | PyObject * obj2 = 0 ; | |
10247 | char *kwnames[] = { | |
10248 | (char *) "r",(char *) "g",(char *) "b", NULL | |
10249 | }; | |
10250 | ||
10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10252 | { |
10253 | arg1 = (unsigned char)(SWIG_As_unsigned_SS_char(obj0)); | |
10254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10255 | } | |
10256 | { | |
10257 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
10258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10259 | } | |
10260 | { | |
10261 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
10262 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10263 | } | |
d14a1e28 RD |
10264 | { |
10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10266 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
10267 | ||
10268 | wxPyEndAllowThreads(__tstate); | |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | } | |
093d3ff1 RD |
10271 | { |
10272 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10273 | } | |
d14a1e28 RD |
10274 | return resultobj; |
10275 | fail: | |
10276 | return NULL; | |
10277 | } | |
10278 | ||
10279 | ||
c32bde28 | 10280 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10281 | PyObject *resultobj; |
10282 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10283 | unsigned char *arg2 = (unsigned char *) 0 ; | |
10284 | unsigned char *arg3 = (unsigned char *) 0 ; | |
10285 | unsigned char *arg4 = (unsigned char *) 0 ; | |
10286 | unsigned char arg5 = (unsigned char) 1 ; | |
10287 | unsigned char arg6 = (unsigned char) 0 ; | |
10288 | unsigned char arg7 = (unsigned char) 0 ; | |
10289 | bool result; | |
10290 | unsigned char temp2 ; | |
c32bde28 | 10291 | int res2 = 0 ; |
d14a1e28 | 10292 | unsigned char temp3 ; |
c32bde28 | 10293 | int res3 = 0 ; |
d14a1e28 | 10294 | unsigned char temp4 ; |
c32bde28 | 10295 | int res4 = 0 ; |
d14a1e28 RD |
10296 | PyObject * obj0 = 0 ; |
10297 | PyObject * obj1 = 0 ; | |
10298 | PyObject * obj2 = 0 ; | |
10299 | PyObject * obj3 = 0 ; | |
10300 | char *kwnames[] = { | |
10301 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
10302 | }; | |
10303 | ||
c32bde28 RD |
10304 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10305 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
10306 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d14a1e28 | 10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); |
10309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 10310 | if (obj1) { |
093d3ff1 RD |
10311 | { |
10312 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
10313 | if (SWIG_arg_fail(5)) SWIG_fail; | |
10314 | } | |
d14a1e28 RD |
10315 | } |
10316 | if (obj2) { | |
093d3ff1 RD |
10317 | { |
10318 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
10319 | if (SWIG_arg_fail(6)) SWIG_fail; | |
10320 | } | |
d14a1e28 RD |
10321 | } |
10322 | if (obj3) { | |
093d3ff1 RD |
10323 | { |
10324 | arg7 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
10325 | if (SWIG_arg_fail(7)) SWIG_fail; | |
10326 | } | |
d14a1e28 RD |
10327 | } |
10328 | { | |
10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10330 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
10331 | ||
10332 | wxPyEndAllowThreads(__tstate); | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | } | |
4f89f6a3 RD |
10335 | { |
10336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10337 | } | |
c32bde28 RD |
10338 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10339 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
10340 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10341 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
10342 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10343 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d14a1e28 RD |
10344 | return resultobj; |
10345 | fail: | |
10346 | return NULL; | |
10347 | } | |
10348 | ||
10349 | ||
f1cbd8fa RD |
10350 | static PyObject *_wrap_ImageHistogram_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
10351 | PyObject *resultobj; | |
10352 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10353 | unsigned long arg2 ; | |
10354 | unsigned long result; | |
10355 | PyObject * obj0 = 0 ; | |
10356 | PyObject * obj1 = 0 ; | |
10357 | char *kwnames[] = { | |
10358 | (char *) "self",(char *) "key", NULL | |
10359 | }; | |
10360 | ||
10361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCount",kwnames,&obj0,&obj1)) goto fail; | |
10362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
10363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10364 | { | |
10365 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
10366 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10367 | } | |
10368 | { | |
10369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10370 | result = (unsigned long)wxImageHistogram_GetCount(arg1,arg2); | |
10371 | ||
10372 | wxPyEndAllowThreads(__tstate); | |
10373 | if (PyErr_Occurred()) SWIG_fail; | |
10374 | } | |
10375 | { | |
10376 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10377 | } | |
10378 | return resultobj; | |
10379 | fail: | |
10380 | return NULL; | |
10381 | } | |
10382 | ||
10383 | ||
10384 | static PyObject *_wrap_ImageHistogram_GetCountRGB(PyObject *, PyObject *args, PyObject *kwargs) { | |
10385 | PyObject *resultobj; | |
10386 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10387 | unsigned char arg2 ; | |
10388 | unsigned char arg3 ; | |
10389 | unsigned char arg4 ; | |
10390 | unsigned long result; | |
10391 | PyObject * obj0 = 0 ; | |
10392 | PyObject * obj1 = 0 ; | |
10393 | PyObject * obj2 = 0 ; | |
10394 | PyObject * obj3 = 0 ; | |
10395 | char *kwnames[] = { | |
10396 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10397 | }; | |
10398 | ||
10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ImageHistogram_GetCountRGB",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
10401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10402 | { | |
10403 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
10404 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10405 | } | |
10406 | { | |
10407 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
10408 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10409 | } | |
10410 | { | |
10411 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
10412 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10413 | } | |
10414 | { | |
10415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10416 | result = (unsigned long)wxImageHistogram_GetCountRGB(arg1,arg2,arg3,arg4); | |
10417 | ||
10418 | wxPyEndAllowThreads(__tstate); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | } | |
10421 | { | |
10422 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10423 | } | |
10424 | return resultobj; | |
10425 | fail: | |
10426 | return NULL; | |
10427 | } | |
10428 | ||
10429 | ||
10430 | static PyObject *_wrap_ImageHistogram_GetCountColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
10431 | PyObject *resultobj; | |
10432 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
10433 | wxColour *arg2 = 0 ; | |
10434 | unsigned long result; | |
10435 | wxColour temp2 ; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | PyObject * obj1 = 0 ; | |
10438 | char *kwnames[] = { | |
10439 | (char *) "self",(char *) "colour", NULL | |
10440 | }; | |
10441 | ||
10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCountColour",kwnames,&obj0,&obj1)) goto fail; | |
10443 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
10444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10445 | { | |
10446 | arg2 = &temp2; | |
10447 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10448 | } | |
10449 | { | |
10450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10451 | result = (unsigned long)wxImageHistogram_GetCountColour(arg1,(wxColour const &)*arg2); | |
10452 | ||
10453 | wxPyEndAllowThreads(__tstate); | |
10454 | if (PyErr_Occurred()) SWIG_fail; | |
10455 | } | |
10456 | { | |
10457 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
10458 | } | |
10459 | return resultobj; | |
10460 | fail: | |
10461 | return NULL; | |
10462 | } | |
10463 | ||
10464 | ||
c32bde28 | 10465 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10466 | PyObject *obj; |
10467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10468 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
10469 | Py_INCREF(obj); | |
10470 | return Py_BuildValue((char *)""); | |
10471 | } | |
c32bde28 | 10472 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10473 | PyObject *resultobj; |
10474 | wxString *arg1 = 0 ; | |
10475 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
10476 | int arg3 = (int) -1 ; | |
10477 | wxImage *result; | |
ae8162c8 | 10478 | bool temp1 = false ; |
d14a1e28 | 10479 | PyObject * obj0 = 0 ; |
994141e6 RD |
10480 | PyObject * obj1 = 0 ; |
10481 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10482 | char *kwnames[] = { |
10483 | (char *) "name",(char *) "type",(char *) "index", NULL | |
10484 | }; | |
10485 | ||
994141e6 | 10486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10487 | { |
10488 | arg1 = wxString_in_helper(obj0); | |
10489 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10490 | temp1 = true; |
d14a1e28 | 10491 | } |
994141e6 | 10492 | if (obj1) { |
093d3ff1 RD |
10493 | { |
10494 | arg2 = (long)(SWIG_As_long(obj1)); | |
10495 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10496 | } | |
994141e6 RD |
10497 | } |
10498 | if (obj2) { | |
093d3ff1 RD |
10499 | { |
10500 | arg3 = (int)(SWIG_As_int(obj2)); | |
10501 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10502 | } | |
994141e6 | 10503 | } |
d14a1e28 RD |
10504 | { |
10505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10506 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
10507 | ||
10508 | wxPyEndAllowThreads(__tstate); | |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
10510 | } | |
15afbcd0 | 10511 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10512 | { |
10513 | if (temp1) | |
10514 | delete arg1; | |
10515 | } | |
10516 | return resultobj; | |
10517 | fail: | |
10518 | { | |
10519 | if (temp1) | |
10520 | delete arg1; | |
10521 | } | |
10522 | return NULL; | |
10523 | } | |
10524 | ||
10525 | ||
c32bde28 | 10526 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10527 | PyObject *resultobj; |
10528 | wxImage *arg1 = (wxImage *) 0 ; | |
10529 | PyObject * obj0 = 0 ; | |
10530 | char *kwnames[] = { | |
10531 | (char *) "self", NULL | |
10532 | }; | |
10533 | ||
10534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10537 | { |
10538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10539 | delete arg1; | |
10540 | ||
10541 | wxPyEndAllowThreads(__tstate); | |
10542 | if (PyErr_Occurred()) SWIG_fail; | |
10543 | } | |
10544 | Py_INCREF(Py_None); resultobj = Py_None; | |
10545 | return resultobj; | |
10546 | fail: | |
10547 | return NULL; | |
10548 | } | |
10549 | ||
10550 | ||
c32bde28 | 10551 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10552 | PyObject *resultobj; |
10553 | wxString *arg1 = 0 ; | |
10554 | wxString *arg2 = 0 ; | |
10555 | int arg3 = (int) -1 ; | |
10556 | wxImage *result; | |
ae8162c8 RD |
10557 | bool temp1 = false ; |
10558 | bool temp2 = false ; | |
d14a1e28 RD |
10559 | PyObject * obj0 = 0 ; |
10560 | PyObject * obj1 = 0 ; | |
994141e6 | 10561 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10562 | char *kwnames[] = { |
10563 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
10564 | }; | |
10565 | ||
994141e6 | 10566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10567 | { |
10568 | arg1 = wxString_in_helper(obj0); | |
10569 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10570 | temp1 = true; |
d14a1e28 RD |
10571 | } |
10572 | { | |
10573 | arg2 = wxString_in_helper(obj1); | |
10574 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10575 | temp2 = true; |
d14a1e28 | 10576 | } |
994141e6 | 10577 | if (obj2) { |
093d3ff1 RD |
10578 | { |
10579 | arg3 = (int)(SWIG_As_int(obj2)); | |
10580 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10581 | } | |
994141e6 | 10582 | } |
d14a1e28 RD |
10583 | { |
10584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10585 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10586 | ||
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
15afbcd0 | 10590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10591 | { |
10592 | if (temp1) | |
10593 | delete arg1; | |
10594 | } | |
10595 | { | |
10596 | if (temp2) | |
10597 | delete arg2; | |
10598 | } | |
10599 | return resultobj; | |
10600 | fail: | |
10601 | { | |
10602 | if (temp1) | |
10603 | delete arg1; | |
10604 | } | |
10605 | { | |
10606 | if (temp2) | |
10607 | delete arg2; | |
10608 | } | |
10609 | return NULL; | |
10610 | } | |
10611 | ||
10612 | ||
c32bde28 | 10613 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10614 | PyObject *resultobj; |
10615 | wxInputStream *arg1 = 0 ; | |
10616 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
10617 | int arg3 = (int) -1 ; | |
10618 | wxImage *result; | |
10619 | wxPyInputStream *temp1 ; | |
10620 | bool created1 ; | |
10621 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10622 | PyObject * obj1 = 0 ; |
10623 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10624 | char *kwnames[] = { |
10625 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
10626 | }; | |
10627 | ||
994141e6 | 10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10629 | { |
10630 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10631 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10632 | created1 = false; |
d14a1e28 RD |
10633 | } else { |
10634 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10635 | arg1 = wxPyCBInputStream_create(obj0, false); |
d14a1e28 | 10636 | if (arg1 == NULL) { |
e2950dbb | 10637 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d14a1e28 RD |
10638 | SWIG_fail; |
10639 | } | |
ae8162c8 | 10640 | created1 = true; |
d14a1e28 RD |
10641 | } |
10642 | } | |
994141e6 | 10643 | if (obj1) { |
093d3ff1 RD |
10644 | { |
10645 | arg2 = (long)(SWIG_As_long(obj1)); | |
10646 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10647 | } | |
994141e6 RD |
10648 | } |
10649 | if (obj2) { | |
093d3ff1 RD |
10650 | { |
10651 | arg3 = (int)(SWIG_As_int(obj2)); | |
10652 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10653 | } | |
994141e6 | 10654 | } |
d14a1e28 RD |
10655 | { |
10656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10657 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
10658 | ||
10659 | wxPyEndAllowThreads(__tstate); | |
10660 | if (PyErr_Occurred()) SWIG_fail; | |
10661 | } | |
15afbcd0 | 10662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 | 10663 | { |
e2950dbb | 10664 | if (created1) delete arg1; |
d14a1e28 RD |
10665 | } |
10666 | return resultobj; | |
10667 | fail: | |
10668 | { | |
e2950dbb | 10669 | if (created1) delete arg1; |
d14a1e28 RD |
10670 | } |
10671 | return NULL; | |
10672 | } | |
10673 | ||
10674 | ||
c32bde28 | 10675 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10676 | PyObject *resultobj; |
10677 | wxInputStream *arg1 = 0 ; | |
10678 | wxString *arg2 = 0 ; | |
10679 | int arg3 = (int) -1 ; | |
10680 | wxImage *result; | |
10681 | wxPyInputStream *temp1 ; | |
10682 | bool created1 ; | |
ae8162c8 | 10683 | bool temp2 = false ; |
d14a1e28 RD |
10684 | PyObject * obj0 = 0 ; |
10685 | PyObject * obj1 = 0 ; | |
994141e6 | 10686 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10687 | char *kwnames[] = { |
10688 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10689 | }; | |
10690 | ||
994141e6 | 10691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10692 | { |
10693 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10694 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10695 | created1 = false; |
d14a1e28 RD |
10696 | } else { |
10697 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10698 | arg1 = wxPyCBInputStream_create(obj0, false); |
d14a1e28 | 10699 | if (arg1 == NULL) { |
e2950dbb | 10700 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d14a1e28 RD |
10701 | SWIG_fail; |
10702 | } | |
ae8162c8 | 10703 | created1 = true; |
d14a1e28 RD |
10704 | } |
10705 | } | |
10706 | { | |
10707 | arg2 = wxString_in_helper(obj1); | |
10708 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10709 | temp2 = true; |
d14a1e28 | 10710 | } |
994141e6 | 10711 | if (obj2) { |
093d3ff1 RD |
10712 | { |
10713 | arg3 = (int)(SWIG_As_int(obj2)); | |
10714 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10715 | } | |
994141e6 | 10716 | } |
d14a1e28 RD |
10717 | { |
10718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10719 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
10720 | ||
10721 | wxPyEndAllowThreads(__tstate); | |
10722 | if (PyErr_Occurred()) SWIG_fail; | |
10723 | } | |
15afbcd0 | 10724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 | 10725 | { |
e2950dbb | 10726 | if (created1) delete arg1; |
d14a1e28 RD |
10727 | } |
10728 | { | |
10729 | if (temp2) | |
10730 | delete arg2; | |
10731 | } | |
10732 | return resultobj; | |
10733 | fail: | |
10734 | { | |
e2950dbb | 10735 | if (created1) delete arg1; |
d14a1e28 RD |
10736 | } |
10737 | { | |
10738 | if (temp2) | |
10739 | delete arg2; | |
10740 | } | |
10741 | return NULL; | |
10742 | } | |
10743 | ||
10744 | ||
c32bde28 | 10745 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10746 | PyObject *resultobj; |
10747 | int arg1 = (int) 0 ; | |
10748 | int arg2 = (int) 0 ; | |
ae8162c8 | 10749 | bool arg3 = (bool) true ; |
d14a1e28 | 10750 | wxImage *result; |
994141e6 RD |
10751 | PyObject * obj0 = 0 ; |
10752 | PyObject * obj1 = 0 ; | |
d14a1e28 | 10753 | PyObject * obj2 = 0 ; |
66c033b4 RD |
10754 | char *kwnames[] = { |
10755 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
10756 | }; | |
d14a1e28 | 10757 | |
66c033b4 | 10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 10759 | if (obj0) { |
093d3ff1 RD |
10760 | { |
10761 | arg1 = (int)(SWIG_As_int(obj0)); | |
10762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10763 | } | |
994141e6 RD |
10764 | } |
10765 | if (obj1) { | |
093d3ff1 RD |
10766 | { |
10767 | arg2 = (int)(SWIG_As_int(obj1)); | |
10768 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10769 | } | |
994141e6 | 10770 | } |
d14a1e28 | 10771 | if (obj2) { |
093d3ff1 RD |
10772 | { |
10773 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
10774 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10775 | } | |
d14a1e28 RD |
10776 | } |
10777 | { | |
10778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 10779 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d14a1e28 RD |
10780 | |
10781 | wxPyEndAllowThreads(__tstate); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
10783 | } | |
15afbcd0 | 10784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10785 | return resultobj; |
10786 | fail: | |
10787 | return NULL; | |
10788 | } | |
10789 | ||
10790 | ||
c32bde28 | 10791 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10792 | PyObject *resultobj; |
10793 | wxBitmap *arg1 = 0 ; | |
10794 | wxImage *result; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | char *kwnames[] = { | |
10797 | (char *) "bitmap", NULL | |
10798 | }; | |
10799 | ||
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10801 | { |
10802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
10803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10804 | if (arg1 == NULL) { | |
10805 | SWIG_null_ref("wxBitmap"); | |
10806 | } | |
10807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10808 | } |
10809 | { | |
e3b71cb8 | 10810 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10812 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
10813 | ||
10814 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10815 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10816 | } |
15afbcd0 | 10817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10818 | return resultobj; |
10819 | fail: | |
10820 | return NULL; | |
10821 | } | |
10822 | ||
10823 | ||
c32bde28 | 10824 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10825 | PyObject *resultobj; |
10826 | int arg1 ; | |
10827 | int arg2 ; | |
10828 | unsigned char *arg3 = (unsigned char *) 0 ; | |
10829 | wxImage *result; | |
994141e6 RD |
10830 | PyObject * obj0 = 0 ; |
10831 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10832 | PyObject * obj2 = 0 ; |
10833 | char *kwnames[] = { | |
10834 | (char *) "width",(char *) "height",(char *) "data", NULL | |
10835 | }; | |
10836 | ||
994141e6 | 10837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10838 | { |
10839 | arg1 = (int)(SWIG_As_int(obj0)); | |
10840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10841 | } | |
10842 | { | |
10843 | arg2 = (int)(SWIG_As_int(obj1)); | |
10844 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10845 | } | |
10846 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
10847 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
10848 | { |
10849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10850 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
10851 | ||
10852 | wxPyEndAllowThreads(__tstate); | |
10853 | if (PyErr_Occurred()) SWIG_fail; | |
10854 | } | |
15afbcd0 | 10855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10856 | return resultobj; |
10857 | fail: | |
10858 | return NULL; | |
10859 | } | |
10860 | ||
10861 | ||
1823fbb4 RD |
10862 | static PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
10863 | PyObject *resultobj; | |
10864 | int arg1 ; | |
10865 | int arg2 ; | |
10866 | unsigned char *arg3 = (unsigned char *) 0 ; | |
10867 | unsigned char *arg4 = (unsigned char *) 0 ; | |
10868 | wxImage *result; | |
10869 | PyObject * obj0 = 0 ; | |
10870 | PyObject * obj1 = 0 ; | |
10871 | PyObject * obj2 = 0 ; | |
10872 | PyObject * obj3 = 0 ; | |
10873 | char *kwnames[] = { | |
10874 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
10875 | }; | |
10876 | ||
10877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
10878 | { |
10879 | arg1 = (int)(SWIG_As_int(obj0)); | |
10880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10881 | } | |
10882 | { | |
10883 | arg2 = (int)(SWIG_As_int(obj1)); | |
10884 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10885 | } | |
10886 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
10887 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10888 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0); | |
10889 | if (SWIG_arg_fail(4)) SWIG_fail; | |
1823fbb4 RD |
10890 | { |
10891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10892 | result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4); | |
10893 | ||
10894 | wxPyEndAllowThreads(__tstate); | |
10895 | if (PyErr_Occurred()) SWIG_fail; | |
10896 | } | |
10897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
10898 | return resultobj; | |
10899 | fail: | |
10900 | return NULL; | |
10901 | } | |
10902 | ||
10903 | ||
c32bde28 | 10904 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10905 | PyObject *resultobj; |
10906 | wxImage *arg1 = (wxImage *) 0 ; | |
10907 | int arg2 ; | |
10908 | int arg3 ; | |
10909 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10910 | PyObject * obj1 = 0 ; |
10911 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10912 | char *kwnames[] = { |
10913 | (char *) "self",(char *) "width",(char *) "height", NULL | |
10914 | }; | |
10915 | ||
994141e6 | 10916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10919 | { | |
10920 | arg2 = (int)(SWIG_As_int(obj1)); | |
10921 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10922 | } | |
10923 | { | |
10924 | arg3 = (int)(SWIG_As_int(obj2)); | |
10925 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10926 | } | |
d14a1e28 RD |
10927 | { |
10928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10929 | (arg1)->Create(arg2,arg3); | |
10930 | ||
10931 | wxPyEndAllowThreads(__tstate); | |
10932 | if (PyErr_Occurred()) SWIG_fail; | |
10933 | } | |
10934 | Py_INCREF(Py_None); resultobj = Py_None; | |
10935 | return resultobj; | |
10936 | fail: | |
10937 | return NULL; | |
10938 | } | |
10939 | ||
10940 | ||
c32bde28 | 10941 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10942 | PyObject *resultobj; |
10943 | wxImage *arg1 = (wxImage *) 0 ; | |
10944 | PyObject * obj0 = 0 ; | |
10945 | char *kwnames[] = { | |
10946 | (char *) "self", NULL | |
10947 | }; | |
10948 | ||
10949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10952 | { |
10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10954 | (arg1)->Destroy(); | |
10955 | ||
10956 | wxPyEndAllowThreads(__tstate); | |
10957 | if (PyErr_Occurred()) SWIG_fail; | |
10958 | } | |
10959 | Py_INCREF(Py_None); resultobj = Py_None; | |
10960 | return resultobj; | |
10961 | fail: | |
10962 | return NULL; | |
10963 | } | |
10964 | ||
10965 | ||
c32bde28 | 10966 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10967 | PyObject *resultobj; |
10968 | wxImage *arg1 = (wxImage *) 0 ; | |
10969 | int arg2 ; | |
10970 | int arg3 ; | |
093d3ff1 | 10971 | SwigValueWrapper<wxImage > result; |
d14a1e28 | 10972 | PyObject * obj0 = 0 ; |
994141e6 RD |
10973 | PyObject * obj1 = 0 ; |
10974 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10975 | char *kwnames[] = { |
10976 | (char *) "self",(char *) "width",(char *) "height", NULL | |
10977 | }; | |
10978 | ||
994141e6 | 10979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
10981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10982 | { | |
10983 | arg2 = (int)(SWIG_As_int(obj1)); | |
10984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10985 | } | |
10986 | { | |
10987 | arg3 = (int)(SWIG_As_int(obj2)); | |
10988 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10989 | } | |
d14a1e28 RD |
10990 | { |
10991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10992 | result = (arg1)->Scale(arg2,arg3); | |
10993 | ||
10994 | wxPyEndAllowThreads(__tstate); | |
10995 | if (PyErr_Occurred()) SWIG_fail; | |
10996 | } | |
10997 | { | |
10998 | wxImage * resultptr; | |
093d3ff1 | 10999 | resultptr = new wxImage((wxImage &)(result)); |
15afbcd0 | 11000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
11001 | } |
11002 | return resultobj; | |
11003 | fail: | |
11004 | return NULL; | |
11005 | } | |
11006 | ||
11007 | ||
c32bde28 | 11008 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11009 | PyObject *resultobj; |
11010 | wxImage *arg1 = (wxImage *) 0 ; | |
11011 | int arg2 ; | |
11012 | int arg3 ; | |
093d3ff1 | 11013 | SwigValueWrapper<wxImage > result; |
d14a1e28 | 11014 | PyObject * obj0 = 0 ; |
994141e6 RD |
11015 | PyObject * obj1 = 0 ; |
11016 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11017 | char *kwnames[] = { |
11018 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
11019 | }; | |
11020 | ||
994141e6 | 11021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11022 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11023 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11024 | { | |
11025 | arg2 = (int)(SWIG_As_int(obj1)); | |
11026 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11027 | } | |
11028 | { | |
11029 | arg3 = (int)(SWIG_As_int(obj2)); | |
11030 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11031 | } | |
d14a1e28 RD |
11032 | { |
11033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11034 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
11035 | ||
11036 | wxPyEndAllowThreads(__tstate); | |
11037 | if (PyErr_Occurred()) SWIG_fail; | |
11038 | } | |
11039 | { | |
11040 | wxImage * resultptr; | |
093d3ff1 | 11041 | resultptr = new wxImage((wxImage &)(result)); |
15afbcd0 | 11042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
11043 | } |
11044 | return resultobj; | |
11045 | fail: | |
11046 | return NULL; | |
11047 | } | |
11048 | ||
11049 | ||
c32bde28 | 11050 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11051 | PyObject *resultobj; |
11052 | wxImage *arg1 = (wxImage *) 0 ; | |
11053 | int arg2 ; | |
11054 | int arg3 ; | |
11055 | wxImage *result; | |
11056 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11057 | PyObject * obj1 = 0 ; |
11058 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11059 | char *kwnames[] = { |
11060 | (char *) "self",(char *) "width",(char *) "height", NULL | |
11061 | }; | |
11062 | ||
994141e6 | 11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11066 | { | |
11067 | arg2 = (int)(SWIG_As_int(obj1)); | |
11068 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11069 | } | |
11070 | { | |
11071 | arg3 = (int)(SWIG_As_int(obj2)); | |
11072 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11073 | } | |
d14a1e28 RD |
11074 | { |
11075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11076 | { | |
11077 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
11078 | result = (wxImage *) &_result_ref; | |
11079 | } | |
11080 | ||
11081 | wxPyEndAllowThreads(__tstate); | |
11082 | if (PyErr_Occurred()) SWIG_fail; | |
11083 | } | |
15afbcd0 | 11084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11085 | return resultobj; |
11086 | fail: | |
11087 | return NULL; | |
11088 | } | |
11089 | ||
11090 | ||
aff4cc5c RD |
11091 | static PyObject *_wrap_Image_Resize(PyObject *, PyObject *args, PyObject *kwargs) { |
11092 | PyObject *resultobj; | |
11093 | wxImage *arg1 = (wxImage *) 0 ; | |
11094 | wxSize *arg2 = 0 ; | |
11095 | wxPoint *arg3 = 0 ; | |
11096 | int arg4 = (int) -1 ; | |
11097 | int arg5 = (int) -1 ; | |
11098 | int arg6 = (int) -1 ; | |
11099 | wxImage *result; | |
11100 | wxSize temp2 ; | |
11101 | wxPoint temp3 ; | |
11102 | PyObject * obj0 = 0 ; | |
11103 | PyObject * obj1 = 0 ; | |
11104 | PyObject * obj2 = 0 ; | |
11105 | PyObject * obj3 = 0 ; | |
11106 | PyObject * obj4 = 0 ; | |
11107 | PyObject * obj5 = 0 ; | |
11108 | char *kwnames[] = { | |
11109 | (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL | |
11110 | }; | |
11111 | ||
11112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Resize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11115 | { | |
11116 | arg2 = &temp2; | |
11117 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11118 | } | |
11119 | { | |
11120 | arg3 = &temp3; | |
11121 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11122 | } | |
11123 | if (obj3) { | |
11124 | { | |
11125 | arg4 = (int)(SWIG_As_int(obj3)); | |
11126 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11127 | } | |
11128 | } | |
11129 | if (obj4) { | |
11130 | { | |
11131 | arg5 = (int)(SWIG_As_int(obj4)); | |
11132 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11133 | } | |
11134 | } | |
11135 | if (obj5) { | |
11136 | { | |
11137 | arg6 = (int)(SWIG_As_int(obj5)); | |
11138 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11139 | } | |
11140 | } | |
11141 | { | |
11142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11143 | { | |
11144 | wxImage &_result_ref = (arg1)->Resize((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6); | |
11145 | result = (wxImage *) &_result_ref; | |
11146 | } | |
11147 | ||
11148 | wxPyEndAllowThreads(__tstate); | |
11149 | if (PyErr_Occurred()) SWIG_fail; | |
11150 | } | |
11151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
11152 | return resultobj; | |
11153 | fail: | |
11154 | return NULL; | |
11155 | } | |
11156 | ||
11157 | ||
c32bde28 | 11158 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11159 | PyObject *resultobj; |
11160 | wxImage *arg1 = (wxImage *) 0 ; | |
11161 | int arg2 ; | |
11162 | int arg3 ; | |
11163 | unsigned char arg4 ; | |
11164 | unsigned char arg5 ; | |
11165 | unsigned char arg6 ; | |
11166 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11167 | PyObject * obj1 = 0 ; |
11168 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11169 | PyObject * obj3 = 0 ; |
11170 | PyObject * obj4 = 0 ; | |
11171 | PyObject * obj5 = 0 ; | |
11172 | char *kwnames[] = { | |
11173 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
11174 | }; | |
11175 | ||
994141e6 | 11176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
11177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11179 | { | |
11180 | arg2 = (int)(SWIG_As_int(obj1)); | |
11181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11182 | } | |
11183 | { | |
11184 | arg3 = (int)(SWIG_As_int(obj2)); | |
11185 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11186 | } | |
11187 | { | |
11188 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11189 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11190 | } | |
11191 | { | |
11192 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4)); | |
11193 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11194 | } | |
11195 | { | |
11196 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj5)); | |
11197 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11198 | } | |
d14a1e28 RD |
11199 | { |
11200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11201 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
11202 | ||
11203 | wxPyEndAllowThreads(__tstate); | |
11204 | if (PyErr_Occurred()) SWIG_fail; | |
11205 | } | |
11206 | Py_INCREF(Py_None); resultobj = Py_None; | |
11207 | return resultobj; | |
11208 | fail: | |
11209 | return NULL; | |
11210 | } | |
11211 | ||
11212 | ||
aff4cc5c RD |
11213 | static PyObject *_wrap_Image_SetRGBRect(PyObject *, PyObject *args, PyObject *kwargs) { |
11214 | PyObject *resultobj; | |
11215 | wxImage *arg1 = (wxImage *) 0 ; | |
11216 | wxRect *arg2 = 0 ; | |
11217 | unsigned char arg3 ; | |
11218 | unsigned char arg4 ; | |
11219 | unsigned char arg5 ; | |
11220 | wxRect temp2 ; | |
11221 | PyObject * obj0 = 0 ; | |
11222 | PyObject * obj1 = 0 ; | |
11223 | PyObject * obj2 = 0 ; | |
11224 | PyObject * obj3 = 0 ; | |
11225 | PyObject * obj4 = 0 ; | |
11226 | char *kwnames[] = { | |
11227 | (char *) "self",(char *) "rect",(char *) "r",(char *) "g",(char *) "b", NULL | |
11228 | }; | |
11229 | ||
11230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetRGBRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11233 | { | |
11234 | arg2 = &temp2; | |
11235 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11236 | } | |
11237 | { | |
11238 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
11239 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11240 | } | |
11241 | { | |
11242 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11243 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11244 | } | |
11245 | { | |
11246 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4)); | |
11247 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11248 | } | |
11249 | { | |
11250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11251 | (arg1)->SetRGB((wxRect const &)*arg2,arg3,arg4,arg5); | |
11252 | ||
11253 | wxPyEndAllowThreads(__tstate); | |
11254 | if (PyErr_Occurred()) SWIG_fail; | |
11255 | } | |
11256 | Py_INCREF(Py_None); resultobj = Py_None; | |
11257 | return resultobj; | |
11258 | fail: | |
11259 | return NULL; | |
11260 | } | |
11261 | ||
11262 | ||
c32bde28 | 11263 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11264 | PyObject *resultobj; |
11265 | wxImage *arg1 = (wxImage *) 0 ; | |
11266 | int arg2 ; | |
11267 | int arg3 ; | |
11268 | unsigned char result; | |
11269 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11270 | PyObject * obj1 = 0 ; |
11271 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11272 | char *kwnames[] = { |
11273 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11274 | }; | |
11275 | ||
994141e6 | 11276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11279 | { | |
11280 | arg2 = (int)(SWIG_As_int(obj1)); | |
11281 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11282 | } | |
11283 | { | |
11284 | arg3 = (int)(SWIG_As_int(obj2)); | |
11285 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11286 | } | |
d14a1e28 RD |
11287 | { |
11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11289 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
11290 | ||
11291 | wxPyEndAllowThreads(__tstate); | |
11292 | if (PyErr_Occurred()) SWIG_fail; | |
11293 | } | |
093d3ff1 RD |
11294 | { |
11295 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11296 | } | |
d14a1e28 RD |
11297 | return resultobj; |
11298 | fail: | |
11299 | return NULL; | |
11300 | } | |
11301 | ||
11302 | ||
c32bde28 | 11303 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11304 | PyObject *resultobj; |
11305 | wxImage *arg1 = (wxImage *) 0 ; | |
11306 | int arg2 ; | |
11307 | int arg3 ; | |
11308 | unsigned char result; | |
11309 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11310 | PyObject * obj1 = 0 ; |
11311 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11312 | char *kwnames[] = { |
11313 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11314 | }; | |
11315 | ||
994141e6 | 11316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11319 | { | |
11320 | arg2 = (int)(SWIG_As_int(obj1)); | |
11321 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11322 | } | |
11323 | { | |
11324 | arg3 = (int)(SWIG_As_int(obj2)); | |
11325 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11326 | } | |
d14a1e28 RD |
11327 | { |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
11330 | ||
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
093d3ff1 RD |
11334 | { |
11335 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11336 | } | |
d14a1e28 RD |
11337 | return resultobj; |
11338 | fail: | |
11339 | return NULL; | |
11340 | } | |
11341 | ||
11342 | ||
c32bde28 | 11343 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11344 | PyObject *resultobj; |
11345 | wxImage *arg1 = (wxImage *) 0 ; | |
11346 | int arg2 ; | |
11347 | int arg3 ; | |
11348 | unsigned char result; | |
11349 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11350 | PyObject * obj1 = 0 ; |
11351 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11352 | char *kwnames[] = { |
11353 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11354 | }; | |
11355 | ||
994141e6 | 11356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11357 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11358 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11359 | { | |
11360 | arg2 = (int)(SWIG_As_int(obj1)); | |
11361 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11362 | } | |
11363 | { | |
11364 | arg3 = (int)(SWIG_As_int(obj2)); | |
11365 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11366 | } | |
d14a1e28 RD |
11367 | { |
11368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11369 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
11370 | ||
11371 | wxPyEndAllowThreads(__tstate); | |
11372 | if (PyErr_Occurred()) SWIG_fail; | |
11373 | } | |
093d3ff1 RD |
11374 | { |
11375 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11376 | } | |
d14a1e28 RD |
11377 | return resultobj; |
11378 | fail: | |
11379 | return NULL; | |
11380 | } | |
11381 | ||
11382 | ||
c32bde28 | 11383 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11384 | PyObject *resultobj; |
11385 | wxImage *arg1 = (wxImage *) 0 ; | |
11386 | int arg2 ; | |
11387 | int arg3 ; | |
11388 | unsigned char arg4 ; | |
11389 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11390 | PyObject * obj1 = 0 ; |
11391 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11392 | PyObject * obj3 = 0 ; |
11393 | char *kwnames[] = { | |
11394 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
11395 | }; | |
11396 | ||
994141e6 | 11397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
11398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11400 | { | |
11401 | arg2 = (int)(SWIG_As_int(obj1)); | |
11402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11403 | } | |
11404 | { | |
11405 | arg3 = (int)(SWIG_As_int(obj2)); | |
11406 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11407 | } | |
11408 | { | |
11409 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11410 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11411 | } | |
d14a1e28 RD |
11412 | { |
11413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11414 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
11415 | ||
11416 | wxPyEndAllowThreads(__tstate); | |
11417 | if (PyErr_Occurred()) SWIG_fail; | |
11418 | } | |
11419 | Py_INCREF(Py_None); resultobj = Py_None; | |
11420 | return resultobj; | |
11421 | fail: | |
11422 | return NULL; | |
11423 | } | |
11424 | ||
11425 | ||
c32bde28 | 11426 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11427 | PyObject *resultobj; |
11428 | wxImage *arg1 = (wxImage *) 0 ; | |
11429 | int arg2 ; | |
11430 | int arg3 ; | |
11431 | unsigned char result; | |
11432 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11433 | PyObject * obj1 = 0 ; |
11434 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11435 | char *kwnames[] = { |
11436 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11437 | }; | |
11438 | ||
994141e6 | 11439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11442 | { | |
11443 | arg2 = (int)(SWIG_As_int(obj1)); | |
11444 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11445 | } | |
11446 | { | |
11447 | arg3 = (int)(SWIG_As_int(obj2)); | |
11448 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11449 | } | |
d14a1e28 RD |
11450 | { |
11451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11452 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
11453 | ||
11454 | wxPyEndAllowThreads(__tstate); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | } | |
093d3ff1 RD |
11457 | { |
11458 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
11459 | } | |
d14a1e28 RD |
11460 | return resultobj; |
11461 | fail: | |
11462 | return NULL; | |
11463 | } | |
11464 | ||
11465 | ||
c32bde28 | 11466 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11467 | PyObject *resultobj; |
11468 | wxImage *arg1 = (wxImage *) 0 ; | |
11469 | bool result; | |
11470 | PyObject * obj0 = 0 ; | |
11471 | char *kwnames[] = { | |
11472 | (char *) "self", NULL | |
11473 | }; | |
11474 | ||
11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11478 | { |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11480 | result = (bool)(arg1)->HasAlpha(); | |
11481 | ||
11482 | wxPyEndAllowThreads(__tstate); | |
11483 | if (PyErr_Occurred()) SWIG_fail; | |
11484 | } | |
4f89f6a3 RD |
11485 | { |
11486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11487 | } | |
d14a1e28 RD |
11488 | return resultobj; |
11489 | fail: | |
11490 | return NULL; | |
11491 | } | |
11492 | ||
11493 | ||
68350608 RD |
11494 | static PyObject *_wrap_Image_InitAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
11495 | PyObject *resultobj; | |
11496 | wxImage *arg1 = (wxImage *) 0 ; | |
11497 | PyObject * obj0 = 0 ; | |
11498 | char *kwnames[] = { | |
11499 | (char *) "self", NULL | |
11500 | }; | |
11501 | ||
11502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InitAlpha",kwnames,&obj0)) goto fail; | |
11503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11505 | { | |
11506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11507 | (arg1)->InitAlpha(); | |
11508 | ||
11509 | wxPyEndAllowThreads(__tstate); | |
11510 | if (PyErr_Occurred()) SWIG_fail; | |
11511 | } | |
11512 | Py_INCREF(Py_None); resultobj = Py_None; | |
11513 | return resultobj; | |
11514 | fail: | |
11515 | return NULL; | |
11516 | } | |
11517 | ||
11518 | ||
c32bde28 | 11519 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11520 | PyObject *resultobj; |
11521 | wxImage *arg1 = (wxImage *) 0 ; | |
11522 | byte *arg2 = (byte *) 0 ; | |
11523 | byte *arg3 = (byte *) 0 ; | |
11524 | byte *arg4 = (byte *) 0 ; | |
11525 | byte arg5 = (byte) 0 ; | |
11526 | byte arg6 = (byte) 0 ; | |
11527 | byte arg7 = (byte) 0 ; | |
11528 | bool result; | |
11529 | byte temp2 ; | |
c32bde28 | 11530 | int res2 = 0 ; |
d14a1e28 | 11531 | byte temp3 ; |
c32bde28 | 11532 | int res3 = 0 ; |
d14a1e28 | 11533 | byte temp4 ; |
c32bde28 | 11534 | int res4 = 0 ; |
d14a1e28 RD |
11535 | PyObject * obj0 = 0 ; |
11536 | PyObject * obj1 = 0 ; | |
11537 | PyObject * obj2 = 0 ; | |
11538 | PyObject * obj3 = 0 ; | |
11539 | char *kwnames[] = { | |
11540 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
11541 | }; | |
11542 | ||
c32bde28 RD |
11543 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
11544 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
11545 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d14a1e28 | 11546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
11547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 11549 | if (obj1) { |
093d3ff1 RD |
11550 | { |
11551 | arg5 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
11552 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11553 | } | |
d14a1e28 RD |
11554 | } |
11555 | if (obj2) { | |
093d3ff1 RD |
11556 | { |
11557 | arg6 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
11558 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11559 | } | |
d14a1e28 RD |
11560 | } |
11561 | if (obj3) { | |
093d3ff1 RD |
11562 | { |
11563 | arg7 = (byte)(SWIG_As_unsigned_SS_char(obj3)); | |
11564 | if (SWIG_arg_fail(7)) SWIG_fail; | |
11565 | } | |
d14a1e28 RD |
11566 | } |
11567 | { | |
11568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11569 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
11570 | ||
11571 | wxPyEndAllowThreads(__tstate); | |
11572 | if (PyErr_Occurred()) SWIG_fail; | |
11573 | } | |
4f89f6a3 RD |
11574 | { |
11575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11576 | } | |
c32bde28 | 11577 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
093d3ff1 | 11578 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); |
c32bde28 | 11579 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
093d3ff1 | 11580 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); |
c32bde28 | 11581 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
093d3ff1 | 11582 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); |
d14a1e28 RD |
11583 | return resultobj; |
11584 | fail: | |
11585 | return NULL; | |
11586 | } | |
11587 | ||
11588 | ||
c32bde28 | 11589 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
11590 | PyObject *resultobj; |
11591 | wxImage *arg1 = (wxImage *) 0 ; | |
11592 | byte arg2 = (byte) 128 ; | |
11593 | bool result; | |
11594 | PyObject * obj0 = 0 ; | |
11595 | PyObject * obj1 = 0 ; | |
11596 | char *kwnames[] = { | |
11597 | (char *) "self",(char *) "threshold", NULL | |
11598 | }; | |
11599 | ||
11600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4cf4100f | 11603 | if (obj1) { |
093d3ff1 RD |
11604 | { |
11605 | arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1)); | |
11606 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11607 | } | |
4cf4100f RD |
11608 | } |
11609 | { | |
11610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11611 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
11612 | ||
11613 | wxPyEndAllowThreads(__tstate); | |
11614 | if (PyErr_Occurred()) SWIG_fail; | |
11615 | } | |
11616 | { | |
11617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11618 | } | |
11619 | return resultobj; | |
11620 | fail: | |
11621 | return NULL; | |
11622 | } | |
11623 | ||
11624 | ||
8fb0e70a RD |
11625 | static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
11626 | PyObject *resultobj; | |
11627 | wxImage *arg1 = (wxImage *) 0 ; | |
11628 | unsigned char arg2 ; | |
11629 | unsigned char arg3 ; | |
11630 | unsigned char arg4 ; | |
11631 | bool result; | |
11632 | PyObject * obj0 = 0 ; | |
11633 | PyObject * obj1 = 0 ; | |
11634 | PyObject * obj2 = 0 ; | |
11635 | PyObject * obj3 = 0 ; | |
11636 | char *kwnames[] = { | |
11637 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11638 | }; | |
11639 | ||
11640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11643 | { | |
11644 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
11645 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11646 | } | |
11647 | { | |
11648 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
11649 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11650 | } | |
11651 | { | |
11652 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
11653 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11654 | } | |
8fb0e70a RD |
11655 | { |
11656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11657 | result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4); | |
11658 | ||
11659 | wxPyEndAllowThreads(__tstate); | |
11660 | if (PyErr_Occurred()) SWIG_fail; | |
11661 | } | |
11662 | { | |
11663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11664 | } | |
11665 | return resultobj; | |
11666 | fail: | |
11667 | return NULL; | |
11668 | } | |
11669 | ||
11670 | ||
c32bde28 | 11671 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11672 | PyObject *resultobj; |
11673 | wxImage *arg1 = (wxImage *) 0 ; | |
11674 | wxImage *arg2 = 0 ; | |
11675 | byte arg3 ; | |
11676 | byte arg4 ; | |
11677 | byte arg5 ; | |
11678 | bool result; | |
11679 | PyObject * obj0 = 0 ; | |
11680 | PyObject * obj1 = 0 ; | |
11681 | PyObject * obj2 = 0 ; | |
11682 | PyObject * obj3 = 0 ; | |
11683 | PyObject * obj4 = 0 ; | |
11684 | char *kwnames[] = { | |
11685 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
11686 | }; | |
11687 | ||
11688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
11689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11691 | { | |
11692 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
11693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11694 | if (arg2 == NULL) { | |
11695 | SWIG_null_ref("wxImage"); | |
11696 | } | |
11697 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11698 | } | |
11699 | { | |
11700 | arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2)); | |
11701 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11702 | } | |
11703 | { | |
11704 | arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3)); | |
11705 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11706 | } | |
11707 | { | |
11708 | arg5 = (byte)(SWIG_As_unsigned_SS_char(obj4)); | |
11709 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11710 | } | |
d14a1e28 RD |
11711 | { |
11712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11713 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
11714 | ||
11715 | wxPyEndAllowThreads(__tstate); | |
11716 | if (PyErr_Occurred()) SWIG_fail; | |
11717 | } | |
4f89f6a3 RD |
11718 | { |
11719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11720 | } | |
d14a1e28 RD |
11721 | return resultobj; |
11722 | fail: | |
11723 | return NULL; | |
11724 | } | |
11725 | ||
11726 | ||
c32bde28 | 11727 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11728 | PyObject *resultobj; |
11729 | wxString *arg1 = 0 ; | |
11730 | bool result; | |
ae8162c8 | 11731 | bool temp1 = false ; |
d14a1e28 RD |
11732 | PyObject * obj0 = 0 ; |
11733 | char *kwnames[] = { | |
11734 | (char *) "name", NULL | |
11735 | }; | |
11736 | ||
11737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
11738 | { | |
11739 | arg1 = wxString_in_helper(obj0); | |
11740 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11741 | temp1 = true; |
d14a1e28 RD |
11742 | } |
11743 | { | |
11744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11745 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
11746 | ||
11747 | wxPyEndAllowThreads(__tstate); | |
11748 | if (PyErr_Occurred()) SWIG_fail; | |
11749 | } | |
4f89f6a3 RD |
11750 | { |
11751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11752 | } | |
d14a1e28 RD |
11753 | { |
11754 | if (temp1) | |
11755 | delete arg1; | |
11756 | } | |
11757 | return resultobj; | |
11758 | fail: | |
11759 | { | |
11760 | if (temp1) | |
11761 | delete arg1; | |
11762 | } | |
11763 | return NULL; | |
11764 | } | |
11765 | ||
11766 | ||
c32bde28 | 11767 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11768 | PyObject *resultobj; |
11769 | wxString *arg1 = 0 ; | |
11770 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
11771 | int result; | |
ae8162c8 | 11772 | bool temp1 = false ; |
d14a1e28 | 11773 | PyObject * obj0 = 0 ; |
994141e6 | 11774 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11775 | char *kwnames[] = { |
11776 | (char *) "name",(char *) "type", NULL | |
11777 | }; | |
11778 | ||
994141e6 | 11779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
11780 | { |
11781 | arg1 = wxString_in_helper(obj0); | |
11782 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11783 | temp1 = true; |
d14a1e28 | 11784 | } |
994141e6 | 11785 | if (obj1) { |
093d3ff1 RD |
11786 | { |
11787 | arg2 = (long)(SWIG_As_long(obj1)); | |
11788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11789 | } | |
994141e6 | 11790 | } |
d14a1e28 RD |
11791 | { |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
093d3ff1 RD |
11798 | { |
11799 | resultobj = SWIG_From_int((int)(result)); | |
11800 | } | |
d14a1e28 RD |
11801 | { |
11802 | if (temp1) | |
11803 | delete arg1; | |
11804 | } | |
11805 | return resultobj; | |
11806 | fail: | |
11807 | { | |
11808 | if (temp1) | |
11809 | delete arg1; | |
11810 | } | |
11811 | return NULL; | |
11812 | } | |
11813 | ||
11814 | ||
c32bde28 | 11815 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11816 | PyObject *resultobj; |
11817 | wxImage *arg1 = (wxImage *) 0 ; | |
11818 | wxString *arg2 = 0 ; | |
11819 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
11820 | int arg4 = (int) -1 ; | |
11821 | bool result; | |
ae8162c8 | 11822 | bool temp2 = false ; |
d14a1e28 RD |
11823 | PyObject * obj0 = 0 ; |
11824 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11825 | PyObject * obj2 = 0 ; |
11826 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11827 | char *kwnames[] = { |
11828 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
11829 | }; | |
11830 | ||
994141e6 | 11831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
11832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11834 | { |
11835 | arg2 = wxString_in_helper(obj1); | |
11836 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11837 | temp2 = true; |
d14a1e28 | 11838 | } |
994141e6 | 11839 | if (obj2) { |
093d3ff1 RD |
11840 | { |
11841 | arg3 = (long)(SWIG_As_long(obj2)); | |
11842 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11843 | } | |
994141e6 RD |
11844 | } |
11845 | if (obj3) { | |
093d3ff1 RD |
11846 | { |
11847 | arg4 = (int)(SWIG_As_int(obj3)); | |
11848 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11849 | } | |
994141e6 | 11850 | } |
d14a1e28 RD |
11851 | { |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
4f89f6a3 RD |
11858 | { |
11859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11860 | } | |
d14a1e28 RD |
11861 | { |
11862 | if (temp2) | |
11863 | delete arg2; | |
11864 | } | |
11865 | return resultobj; | |
11866 | fail: | |
11867 | { | |
11868 | if (temp2) | |
11869 | delete arg2; | |
11870 | } | |
11871 | return NULL; | |
11872 | } | |
11873 | ||
11874 | ||
c32bde28 | 11875 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11876 | PyObject *resultobj; |
11877 | wxImage *arg1 = (wxImage *) 0 ; | |
11878 | wxString *arg2 = 0 ; | |
11879 | wxString *arg3 = 0 ; | |
11880 | int arg4 = (int) -1 ; | |
11881 | bool result; | |
ae8162c8 RD |
11882 | bool temp2 = false ; |
11883 | bool temp3 = false ; | |
d14a1e28 RD |
11884 | PyObject * obj0 = 0 ; |
11885 | PyObject * obj1 = 0 ; | |
11886 | PyObject * obj2 = 0 ; | |
994141e6 | 11887 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11888 | char *kwnames[] = { |
11889 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
11890 | }; | |
11891 | ||
994141e6 | 11892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
11893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11895 | { |
11896 | arg2 = wxString_in_helper(obj1); | |
11897 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11898 | temp2 = true; |
d14a1e28 RD |
11899 | } |
11900 | { | |
11901 | arg3 = wxString_in_helper(obj2); | |
11902 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11903 | temp3 = true; |
d14a1e28 | 11904 | } |
994141e6 | 11905 | if (obj3) { |
093d3ff1 RD |
11906 | { |
11907 | arg4 = (int)(SWIG_As_int(obj3)); | |
11908 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11909 | } | |
994141e6 | 11910 | } |
d14a1e28 RD |
11911 | { |
11912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11913 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11914 | ||
11915 | wxPyEndAllowThreads(__tstate); | |
11916 | if (PyErr_Occurred()) SWIG_fail; | |
11917 | } | |
4f89f6a3 RD |
11918 | { |
11919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11920 | } | |
d14a1e28 RD |
11921 | { |
11922 | if (temp2) | |
11923 | delete arg2; | |
11924 | } | |
11925 | { | |
11926 | if (temp3) | |
11927 | delete arg3; | |
11928 | } | |
11929 | return resultobj; | |
11930 | fail: | |
11931 | { | |
11932 | if (temp2) | |
11933 | delete arg2; | |
11934 | } | |
11935 | { | |
11936 | if (temp3) | |
11937 | delete arg3; | |
11938 | } | |
11939 | return NULL; | |
11940 | } | |
11941 | ||
11942 | ||
c32bde28 | 11943 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11944 | PyObject *resultobj; |
11945 | wxImage *arg1 = (wxImage *) 0 ; | |
11946 | wxString *arg2 = 0 ; | |
11947 | int arg3 ; | |
11948 | bool result; | |
ae8162c8 | 11949 | bool temp2 = false ; |
d14a1e28 RD |
11950 | PyObject * obj0 = 0 ; |
11951 | PyObject * obj1 = 0 ; | |
994141e6 | 11952 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11953 | char *kwnames[] = { |
11954 | (char *) "self",(char *) "name",(char *) "type", NULL | |
11955 | }; | |
11956 | ||
994141e6 | 11957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
11959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11960 | { |
11961 | arg2 = wxString_in_helper(obj1); | |
11962 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11963 | temp2 = true; |
d14a1e28 | 11964 | } |
093d3ff1 RD |
11965 | { |
11966 | arg3 = (int)(SWIG_As_int(obj2)); | |
11967 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11968 | } | |
d14a1e28 RD |
11969 | { |
11970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11971 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
11972 | ||
11973 | wxPyEndAllowThreads(__tstate); | |
11974 | if (PyErr_Occurred()) SWIG_fail; | |
11975 | } | |
4f89f6a3 RD |
11976 | { |
11977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11978 | } | |
d14a1e28 RD |
11979 | { |
11980 | if (temp2) | |
11981 | delete arg2; | |
11982 | } | |
11983 | return resultobj; | |
11984 | fail: | |
11985 | { | |
11986 | if (temp2) | |
11987 | delete arg2; | |
11988 | } | |
11989 | return NULL; | |
11990 | } | |
11991 | ||
11992 | ||
c32bde28 | 11993 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11994 | PyObject *resultobj; |
11995 | wxImage *arg1 = (wxImage *) 0 ; | |
11996 | wxString *arg2 = 0 ; | |
11997 | wxString *arg3 = 0 ; | |
11998 | bool result; | |
ae8162c8 RD |
11999 | bool temp2 = false ; |
12000 | bool temp3 = false ; | |
d14a1e28 RD |
12001 | PyObject * obj0 = 0 ; |
12002 | PyObject * obj1 = 0 ; | |
12003 | PyObject * obj2 = 0 ; | |
12004 | char *kwnames[] = { | |
12005 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
12006 | }; | |
12007 | ||
12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
12009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12011 | { |
12012 | arg2 = wxString_in_helper(obj1); | |
12013 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12014 | temp2 = true; |
d14a1e28 RD |
12015 | } |
12016 | { | |
12017 | arg3 = wxString_in_helper(obj2); | |
12018 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12019 | temp3 = true; |
d14a1e28 RD |
12020 | } |
12021 | { | |
12022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12023 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
12024 | ||
12025 | wxPyEndAllowThreads(__tstate); | |
12026 | if (PyErr_Occurred()) SWIG_fail; | |
12027 | } | |
4f89f6a3 RD |
12028 | { |
12029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12030 | } | |
d14a1e28 RD |
12031 | { |
12032 | if (temp2) | |
12033 | delete arg2; | |
12034 | } | |
12035 | { | |
12036 | if (temp3) | |
12037 | delete arg3; | |
12038 | } | |
12039 | return resultobj; | |
12040 | fail: | |
12041 | { | |
12042 | if (temp2) | |
12043 | delete arg2; | |
12044 | } | |
12045 | { | |
12046 | if (temp3) | |
12047 | delete arg3; | |
12048 | } | |
12049 | return NULL; | |
12050 | } | |
12051 | ||
12052 | ||
c32bde28 | 12053 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12054 | PyObject *resultobj; |
12055 | wxInputStream *arg1 = 0 ; | |
12056 | bool result; | |
12057 | wxPyInputStream *temp1 ; | |
12058 | bool created1 ; | |
12059 | PyObject * obj0 = 0 ; | |
12060 | char *kwnames[] = { | |
12061 | (char *) "stream", NULL | |
12062 | }; | |
12063 | ||
12064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
12065 | { | |
12066 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
12067 | arg1 = temp1->m_wxis; | |
ae8162c8 | 12068 | created1 = false; |
d14a1e28 RD |
12069 | } else { |
12070 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 12071 | arg1 = wxPyCBInputStream_create(obj0, false); |
d14a1e28 | 12072 | if (arg1 == NULL) { |
e2950dbb | 12073 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d14a1e28 RD |
12074 | SWIG_fail; |
12075 | } | |
ae8162c8 | 12076 | created1 = true; |
d14a1e28 RD |
12077 | } |
12078 | } | |
12079 | { | |
12080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12081 | result = (bool)wxImage::CanRead(*arg1); | |
12082 | ||
12083 | wxPyEndAllowThreads(__tstate); | |
12084 | if (PyErr_Occurred()) SWIG_fail; | |
12085 | } | |
4f89f6a3 RD |
12086 | { |
12087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12088 | } | |
d14a1e28 | 12089 | { |
e2950dbb | 12090 | if (created1) delete arg1; |
d14a1e28 RD |
12091 | } |
12092 | return resultobj; | |
12093 | fail: | |
12094 | { | |
e2950dbb | 12095 | if (created1) delete arg1; |
d14a1e28 RD |
12096 | } |
12097 | return NULL; | |
12098 | } | |
12099 | ||
12100 | ||
c32bde28 | 12101 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12102 | PyObject *resultobj; |
12103 | wxImage *arg1 = (wxImage *) 0 ; | |
12104 | wxInputStream *arg2 = 0 ; | |
12105 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
12106 | int arg4 = (int) -1 ; | |
12107 | bool result; | |
12108 | wxPyInputStream *temp2 ; | |
12109 | bool created2 ; | |
12110 | PyObject * obj0 = 0 ; | |
12111 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12112 | PyObject * obj2 = 0 ; |
12113 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12114 | char *kwnames[] = { |
12115 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
12116 | }; | |
12117 | ||
994141e6 | 12118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
12119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12121 | { |
12122 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
12123 | arg2 = temp2->m_wxis; | |
ae8162c8 | 12124 | created2 = false; |
d14a1e28 RD |
12125 | } else { |
12126 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 12127 | arg2 = wxPyCBInputStream_create(obj1, false); |
d14a1e28 | 12128 | if (arg2 == NULL) { |
e2950dbb | 12129 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d14a1e28 RD |
12130 | SWIG_fail; |
12131 | } | |
ae8162c8 | 12132 | created2 = true; |
d14a1e28 RD |
12133 | } |
12134 | } | |
994141e6 | 12135 | if (obj2) { |
093d3ff1 RD |
12136 | { |
12137 | arg3 = (long)(SWIG_As_long(obj2)); | |
12138 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12139 | } | |
994141e6 RD |
12140 | } |
12141 | if (obj3) { | |
093d3ff1 RD |
12142 | { |
12143 | arg4 = (int)(SWIG_As_int(obj3)); | |
12144 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12145 | } | |
994141e6 | 12146 | } |
d14a1e28 RD |
12147 | { |
12148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12149 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
12150 | ||
12151 | wxPyEndAllowThreads(__tstate); | |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
12153 | } | |
4f89f6a3 RD |
12154 | { |
12155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12156 | } | |
d14a1e28 | 12157 | { |
e2950dbb | 12158 | if (created2) delete arg2; |
d14a1e28 RD |
12159 | } |
12160 | return resultobj; | |
12161 | fail: | |
12162 | { | |
e2950dbb | 12163 | if (created2) delete arg2; |
d14a1e28 RD |
12164 | } |
12165 | return NULL; | |
12166 | } | |
12167 | ||
12168 | ||
c32bde28 | 12169 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12170 | PyObject *resultobj; |
12171 | wxImage *arg1 = (wxImage *) 0 ; | |
12172 | wxInputStream *arg2 = 0 ; | |
12173 | wxString *arg3 = 0 ; | |
12174 | int arg4 = (int) -1 ; | |
12175 | bool result; | |
12176 | wxPyInputStream *temp2 ; | |
12177 | bool created2 ; | |
ae8162c8 | 12178 | bool temp3 = false ; |
d14a1e28 RD |
12179 | PyObject * obj0 = 0 ; |
12180 | PyObject * obj1 = 0 ; | |
12181 | PyObject * obj2 = 0 ; | |
994141e6 | 12182 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
12183 | char *kwnames[] = { |
12184 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
12185 | }; | |
12186 | ||
994141e6 | 12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
12188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12190 | { |
12191 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
12192 | arg2 = temp2->m_wxis; | |
ae8162c8 | 12193 | created2 = false; |
d14a1e28 RD |
12194 | } else { |
12195 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 12196 | arg2 = wxPyCBInputStream_create(obj1, false); |
d14a1e28 | 12197 | if (arg2 == NULL) { |
e2950dbb | 12198 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); |
d14a1e28 RD |
12199 | SWIG_fail; |
12200 | } | |
ae8162c8 | 12201 | created2 = true; |
d14a1e28 RD |
12202 | } |
12203 | } | |
12204 | { | |
12205 | arg3 = wxString_in_helper(obj2); | |
12206 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12207 | temp3 = true; |
d14a1e28 | 12208 | } |
994141e6 | 12209 | if (obj3) { |
093d3ff1 RD |
12210 | { |
12211 | arg4 = (int)(SWIG_As_int(obj3)); | |
12212 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12213 | } | |
994141e6 | 12214 | } |
d14a1e28 RD |
12215 | { |
12216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12217 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
12218 | ||
12219 | wxPyEndAllowThreads(__tstate); | |
12220 | if (PyErr_Occurred()) SWIG_fail; | |
12221 | } | |
4f89f6a3 RD |
12222 | { |
12223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12224 | } | |
d14a1e28 | 12225 | { |
e2950dbb | 12226 | if (created2) delete arg2; |
d14a1e28 RD |
12227 | } |
12228 | { | |
12229 | if (temp3) | |
12230 | delete arg3; | |
12231 | } | |
12232 | return resultobj; | |
12233 | fail: | |
12234 | { | |
e2950dbb | 12235 | if (created2) delete arg2; |
d14a1e28 RD |
12236 | } |
12237 | { | |
12238 | if (temp3) | |
12239 | delete arg3; | |
12240 | } | |
12241 | return NULL; | |
12242 | } | |
12243 | ||
12244 | ||
c32bde28 | 12245 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12246 | PyObject *resultobj; |
12247 | wxImage *arg1 = (wxImage *) 0 ; | |
12248 | bool result; | |
12249 | PyObject * obj0 = 0 ; | |
12250 | char *kwnames[] = { | |
12251 | (char *) "self", NULL | |
12252 | }; | |
12253 | ||
12254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12257 | { |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | result = (bool)(arg1)->Ok(); | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
4f89f6a3 RD |
12264 | { |
12265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12266 | } | |
d14a1e28 RD |
12267 | return resultobj; |
12268 | fail: | |
12269 | return NULL; | |
12270 | } | |
12271 | ||
12272 | ||
c32bde28 | 12273 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12274 | PyObject *resultobj; |
12275 | wxImage *arg1 = (wxImage *) 0 ; | |
12276 | int result; | |
12277 | PyObject * obj0 = 0 ; | |
12278 | char *kwnames[] = { | |
12279 | (char *) "self", NULL | |
12280 | }; | |
12281 | ||
12282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",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; | |
d14a1e28 RD |
12285 | { |
12286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12287 | result = (int)(arg1)->GetWidth(); | |
12288 | ||
12289 | wxPyEndAllowThreads(__tstate); | |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
12291 | } | |
093d3ff1 RD |
12292 | { |
12293 | resultobj = SWIG_From_int((int)(result)); | |
12294 | } | |
d14a1e28 RD |
12295 | return resultobj; |
12296 | fail: | |
12297 | return NULL; | |
12298 | } | |
12299 | ||
12300 | ||
c32bde28 | 12301 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12302 | PyObject *resultobj; |
12303 | wxImage *arg1 = (wxImage *) 0 ; | |
12304 | int result; | |
12305 | PyObject * obj0 = 0 ; | |
12306 | char *kwnames[] = { | |
12307 | (char *) "self", NULL | |
12308 | }; | |
12309 | ||
12310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12313 | { |
12314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12315 | result = (int)(arg1)->GetHeight(); | |
12316 | ||
12317 | wxPyEndAllowThreads(__tstate); | |
12318 | if (PyErr_Occurred()) SWIG_fail; | |
12319 | } | |
093d3ff1 RD |
12320 | { |
12321 | resultobj = SWIG_From_int((int)(result)); | |
12322 | } | |
d14a1e28 RD |
12323 | return resultobj; |
12324 | fail: | |
12325 | return NULL; | |
12326 | } | |
12327 | ||
12328 | ||
c32bde28 | 12329 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
12330 | PyObject *resultobj; |
12331 | wxImage *arg1 = (wxImage *) 0 ; | |
12332 | wxSize result; | |
12333 | PyObject * obj0 = 0 ; | |
12334 | char *kwnames[] = { | |
12335 | (char *) "self", NULL | |
12336 | }; | |
12337 | ||
12338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b2df227b RD |
12341 | { |
12342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12343 | result = wxImage_GetSize(arg1); | |
12344 | ||
12345 | wxPyEndAllowThreads(__tstate); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
12347 | } | |
12348 | { | |
12349 | wxSize * resultptr; | |
093d3ff1 | 12350 | resultptr = new wxSize((wxSize &)(result)); |
b2df227b RD |
12351 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
12352 | } | |
12353 | return resultobj; | |
12354 | fail: | |
12355 | return NULL; | |
12356 | } | |
12357 | ||
12358 | ||
c32bde28 | 12359 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12360 | PyObject *resultobj; |
12361 | wxImage *arg1 = (wxImage *) 0 ; | |
12362 | wxRect *arg2 = 0 ; | |
093d3ff1 | 12363 | SwigValueWrapper<wxImage > result; |
d14a1e28 RD |
12364 | wxRect temp2 ; |
12365 | PyObject * obj0 = 0 ; | |
12366 | PyObject * obj1 = 0 ; | |
12367 | char *kwnames[] = { | |
12368 | (char *) "self",(char *) "rect", NULL | |
12369 | }; | |
12370 | ||
12371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12374 | { |
12375 | arg2 = &temp2; | |
12376 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12377 | } | |
12378 | { | |
12379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12380 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
12381 | ||
12382 | wxPyEndAllowThreads(__tstate); | |
12383 | if (PyErr_Occurred()) SWIG_fail; | |
12384 | } | |
12385 | { | |
12386 | wxImage * resultptr; | |
093d3ff1 | 12387 | resultptr = new wxImage((wxImage &)(result)); |
15afbcd0 | 12388 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
12389 | } |
12390 | return resultobj; | |
12391 | fail: | |
12392 | return NULL; | |
12393 | } | |
12394 | ||
12395 | ||
aff4cc5c RD |
12396 | static PyObject *_wrap_Image_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
12397 | PyObject *resultobj; | |
12398 | wxImage *arg1 = (wxImage *) 0 ; | |
12399 | wxSize *arg2 = 0 ; | |
12400 | wxPoint *arg3 = 0 ; | |
12401 | int arg4 = (int) -1 ; | |
12402 | int arg5 = (int) -1 ; | |
12403 | int arg6 = (int) -1 ; | |
12404 | SwigValueWrapper<wxImage > result; | |
12405 | wxSize temp2 ; | |
12406 | wxPoint temp3 ; | |
12407 | PyObject * obj0 = 0 ; | |
12408 | PyObject * obj1 = 0 ; | |
12409 | PyObject * obj2 = 0 ; | |
12410 | PyObject * obj3 = 0 ; | |
12411 | PyObject * obj4 = 0 ; | |
12412 | PyObject * obj5 = 0 ; | |
12413 | char *kwnames[] = { | |
12414 | (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL | |
12415 | }; | |
12416 | ||
12417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Size",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12418 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
12419 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12420 | { | |
12421 | arg2 = &temp2; | |
12422 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12423 | } | |
12424 | { | |
12425 | arg3 = &temp3; | |
12426 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12427 | } | |
12428 | if (obj3) { | |
12429 | { | |
12430 | arg4 = (int)(SWIG_As_int(obj3)); | |
12431 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12432 | } | |
12433 | } | |
12434 | if (obj4) { | |
12435 | { | |
12436 | arg5 = (int)(SWIG_As_int(obj4)); | |
12437 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12438 | } | |
12439 | } | |
12440 | if (obj5) { | |
12441 | { | |
12442 | arg6 = (int)(SWIG_As_int(obj5)); | |
12443 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12444 | } | |
12445 | } | |
12446 | { | |
12447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12448 | result = ((wxImage const *)arg1)->Size((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6); | |
12449 | ||
12450 | wxPyEndAllowThreads(__tstate); | |
12451 | if (PyErr_Occurred()) SWIG_fail; | |
12452 | } | |
12453 | { | |
12454 | wxImage * resultptr; | |
12455 | resultptr = new wxImage((wxImage &)(result)); | |
12456 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
12457 | } | |
12458 | return resultobj; | |
12459 | fail: | |
12460 | return NULL; | |
12461 | } | |
12462 | ||
12463 | ||
c32bde28 | 12464 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12465 | PyObject *resultobj; |
12466 | wxImage *arg1 = (wxImage *) 0 ; | |
093d3ff1 | 12467 | SwigValueWrapper<wxImage > result; |
d14a1e28 RD |
12468 | PyObject * obj0 = 0 ; |
12469 | char *kwnames[] = { | |
12470 | (char *) "self", NULL | |
12471 | }; | |
12472 | ||
12473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12476 | { |
12477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12478 | result = (arg1)->Copy(); | |
12479 | ||
12480 | wxPyEndAllowThreads(__tstate); | |
12481 | if (PyErr_Occurred()) SWIG_fail; | |
12482 | } | |
12483 | { | |
12484 | wxImage * resultptr; | |
093d3ff1 | 12485 | resultptr = new wxImage((wxImage &)(result)); |
15afbcd0 | 12486 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
12487 | } |
12488 | return resultobj; | |
12489 | fail: | |
12490 | return NULL; | |
12491 | } | |
12492 | ||
12493 | ||
c32bde28 | 12494 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12495 | PyObject *resultobj; |
12496 | wxImage *arg1 = (wxImage *) 0 ; | |
12497 | wxImage *arg2 = 0 ; | |
12498 | int arg3 ; | |
12499 | int arg4 ; | |
12500 | PyObject * obj0 = 0 ; | |
12501 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12502 | PyObject * obj2 = 0 ; |
12503 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12504 | char *kwnames[] = { |
12505 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
12506 | }; | |
12507 | ||
994141e6 | 12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
12509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12511 | { | |
12512 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
12513 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12514 | if (arg2 == NULL) { | |
12515 | SWIG_null_ref("wxImage"); | |
12516 | } | |
12517 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12518 | } | |
12519 | { | |
12520 | arg3 = (int)(SWIG_As_int(obj2)); | |
12521 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12522 | } | |
12523 | { | |
12524 | arg4 = (int)(SWIG_As_int(obj3)); | |
12525 | if (SWIG_arg_fail(4)) SWIG_fail; | |
994141e6 | 12526 | } |
d14a1e28 RD |
12527 | { |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12529 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
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_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12542 | PyObject *resultobj; |
12543 | wxImage *arg1 = (wxImage *) 0 ; | |
12544 | PyObject *result; | |
12545 | PyObject * obj0 = 0 ; | |
12546 | char *kwnames[] = { | |
12547 | (char *) "self", NULL | |
12548 | }; | |
12549 | ||
12550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",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; | |
d14a1e28 RD |
12553 | { |
12554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12555 | result = (PyObject *)wxImage_GetData(arg1); | |
12556 | ||
12557 | wxPyEndAllowThreads(__tstate); | |
12558 | if (PyErr_Occurred()) SWIG_fail; | |
12559 | } | |
12560 | resultobj = result; | |
12561 | return resultobj; | |
12562 | fail: | |
12563 | return NULL; | |
12564 | } | |
12565 | ||
12566 | ||
c32bde28 | 12567 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12568 | PyObject *resultobj; |
12569 | wxImage *arg1 = (wxImage *) 0 ; | |
12570 | PyObject *arg2 = (PyObject *) 0 ; | |
12571 | PyObject * obj0 = 0 ; | |
12572 | PyObject * obj1 = 0 ; | |
12573 | char *kwnames[] = { | |
12574 | (char *) "self",(char *) "data", NULL | |
12575 | }; | |
12576 | ||
12577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12580 | arg2 = obj1; |
12581 | { | |
12582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12583 | wxImage_SetData(arg1,arg2); | |
12584 | ||
12585 | wxPyEndAllowThreads(__tstate); | |
12586 | if (PyErr_Occurred()) SWIG_fail; | |
12587 | } | |
12588 | Py_INCREF(Py_None); resultobj = Py_None; | |
12589 | return resultobj; | |
12590 | fail: | |
12591 | return NULL; | |
12592 | } | |
12593 | ||
12594 | ||
c32bde28 | 12595 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12596 | PyObject *resultobj; |
12597 | wxImage *arg1 = (wxImage *) 0 ; | |
12598 | PyObject *result; | |
12599 | PyObject * obj0 = 0 ; | |
12600 | char *kwnames[] = { | |
12601 | (char *) "self", NULL | |
12602 | }; | |
12603 | ||
12604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12607 | { |
12608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12609 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
12610 | ||
12611 | wxPyEndAllowThreads(__tstate); | |
12612 | if (PyErr_Occurred()) SWIG_fail; | |
12613 | } | |
12614 | resultobj = result; | |
12615 | return resultobj; | |
12616 | fail: | |
12617 | return NULL; | |
12618 | } | |
12619 | ||
12620 | ||
c32bde28 | 12621 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12622 | PyObject *resultobj; |
12623 | wxImage *arg1 = (wxImage *) 0 ; | |
12624 | PyObject *arg2 = (PyObject *) 0 ; | |
12625 | PyObject * obj0 = 0 ; | |
12626 | PyObject * obj1 = 0 ; | |
12627 | char *kwnames[] = { | |
12628 | (char *) "self",(char *) "data", NULL | |
12629 | }; | |
12630 | ||
12631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12634 | arg2 = obj1; |
12635 | { | |
12636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12637 | wxImage_SetDataBuffer(arg1,arg2); | |
12638 | ||
12639 | wxPyEndAllowThreads(__tstate); | |
12640 | if (PyErr_Occurred()) SWIG_fail; | |
12641 | } | |
12642 | Py_INCREF(Py_None); resultobj = Py_None; | |
12643 | return resultobj; | |
12644 | fail: | |
12645 | return NULL; | |
12646 | } | |
12647 | ||
12648 | ||
c32bde28 | 12649 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12650 | PyObject *resultobj; |
12651 | wxImage *arg1 = (wxImage *) 0 ; | |
12652 | PyObject *result; | |
12653 | PyObject * obj0 = 0 ; | |
12654 | char *kwnames[] = { | |
12655 | (char *) "self", NULL | |
12656 | }; | |
12657 | ||
12658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12661 | { |
12662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12663 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
12664 | ||
12665 | wxPyEndAllowThreads(__tstate); | |
12666 | if (PyErr_Occurred()) SWIG_fail; | |
12667 | } | |
12668 | resultobj = result; | |
12669 | return resultobj; | |
12670 | fail: | |
12671 | return NULL; | |
12672 | } | |
12673 | ||
12674 | ||
c32bde28 | 12675 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12676 | PyObject *resultobj; |
12677 | wxImage *arg1 = (wxImage *) 0 ; | |
12678 | PyObject *arg2 = (PyObject *) 0 ; | |
12679 | PyObject * obj0 = 0 ; | |
12680 | PyObject * obj1 = 0 ; | |
12681 | char *kwnames[] = { | |
12682 | (char *) "self",(char *) "data", NULL | |
12683 | }; | |
12684 | ||
12685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12688 | arg2 = obj1; |
12689 | { | |
12690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12691 | wxImage_SetAlphaData(arg1,arg2); | |
12692 | ||
12693 | wxPyEndAllowThreads(__tstate); | |
12694 | if (PyErr_Occurred()) SWIG_fail; | |
12695 | } | |
12696 | Py_INCREF(Py_None); resultobj = Py_None; | |
12697 | return resultobj; | |
12698 | fail: | |
12699 | return NULL; | |
12700 | } | |
12701 | ||
12702 | ||
c32bde28 | 12703 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12704 | PyObject *resultobj; |
12705 | wxImage *arg1 = (wxImage *) 0 ; | |
12706 | PyObject *result; | |
12707 | PyObject * obj0 = 0 ; | |
12708 | char *kwnames[] = { | |
12709 | (char *) "self", NULL | |
12710 | }; | |
12711 | ||
12712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12715 | { |
12716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12717 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
12718 | ||
12719 | wxPyEndAllowThreads(__tstate); | |
12720 | if (PyErr_Occurred()) SWIG_fail; | |
12721 | } | |
12722 | resultobj = result; | |
12723 | return resultobj; | |
12724 | fail: | |
12725 | return NULL; | |
12726 | } | |
12727 | ||
12728 | ||
c32bde28 | 12729 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12730 | PyObject *resultobj; |
12731 | wxImage *arg1 = (wxImage *) 0 ; | |
12732 | PyObject *arg2 = (PyObject *) 0 ; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | PyObject * obj1 = 0 ; | |
12735 | char *kwnames[] = { | |
12736 | (char *) "self",(char *) "data", NULL | |
12737 | }; | |
12738 | ||
12739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12742 | arg2 = obj1; |
12743 | { | |
12744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12745 | wxImage_SetAlphaBuffer(arg1,arg2); | |
12746 | ||
12747 | wxPyEndAllowThreads(__tstate); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
12749 | } | |
12750 | Py_INCREF(Py_None); resultobj = Py_None; | |
12751 | return resultobj; | |
12752 | fail: | |
12753 | return NULL; | |
12754 | } | |
12755 | ||
12756 | ||
c32bde28 | 12757 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12758 | PyObject *resultobj; |
12759 | wxImage *arg1 = (wxImage *) 0 ; | |
12760 | unsigned char arg2 ; | |
12761 | unsigned char arg3 ; | |
12762 | unsigned char arg4 ; | |
12763 | PyObject * obj0 = 0 ; | |
12764 | PyObject * obj1 = 0 ; | |
12765 | PyObject * obj2 = 0 ; | |
12766 | PyObject * obj3 = 0 ; | |
12767 | char *kwnames[] = { | |
12768 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
12769 | }; | |
12770 | ||
12771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
12772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12774 | { | |
12775 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
12776 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12777 | } | |
12778 | { | |
12779 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
12780 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12781 | } | |
12782 | { | |
12783 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
12784 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12785 | } | |
d14a1e28 RD |
12786 | { |
12787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12788 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
12789 | ||
12790 | wxPyEndAllowThreads(__tstate); | |
12791 | if (PyErr_Occurred()) SWIG_fail; | |
12792 | } | |
12793 | Py_INCREF(Py_None); resultobj = Py_None; | |
12794 | return resultobj; | |
12795 | fail: | |
12796 | return NULL; | |
12797 | } | |
12798 | ||
12799 | ||
aff4cc5c RD |
12800 | static PyObject *_wrap_Image_GetOrFindMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
12801 | PyObject *resultobj; | |
12802 | wxImage *arg1 = (wxImage *) 0 ; | |
12803 | unsigned char *arg2 = (unsigned char *) 0 ; | |
12804 | unsigned char *arg3 = (unsigned char *) 0 ; | |
12805 | unsigned char *arg4 = (unsigned char *) 0 ; | |
12806 | unsigned char temp2 ; | |
12807 | int res2 = 0 ; | |
12808 | unsigned char temp3 ; | |
12809 | int res3 = 0 ; | |
12810 | unsigned char temp4 ; | |
12811 | int res4 = 0 ; | |
12812 | PyObject * obj0 = 0 ; | |
12813 | char *kwnames[] = { | |
12814 | (char *) "self", NULL | |
12815 | }; | |
12816 | ||
12817 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
12818 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
12819 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
12820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetOrFindMaskColour",kwnames,&obj0)) goto fail; | |
12821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
12822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12823 | { | |
12824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12825 | ((wxImage const *)arg1)->GetOrFindMaskColour(arg2,arg3,arg4); | |
12826 | ||
12827 | wxPyEndAllowThreads(__tstate); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
12829 | } | |
12830 | Py_INCREF(Py_None); resultobj = Py_None; | |
12831 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
12832 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
12833 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
12834 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
12835 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
12836 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
12837 | return resultobj; | |
12838 | fail: | |
12839 | return NULL; | |
12840 | } | |
12841 | ||
12842 | ||
c32bde28 | 12843 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12844 | PyObject *resultobj; |
12845 | wxImage *arg1 = (wxImage *) 0 ; | |
12846 | unsigned char result; | |
12847 | PyObject * obj0 = 0 ; | |
12848 | char *kwnames[] = { | |
12849 | (char *) "self", NULL | |
12850 | }; | |
12851 | ||
12852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12855 | { |
12856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12857 | result = (unsigned char)(arg1)->GetMaskRed(); | |
12858 | ||
12859 | wxPyEndAllowThreads(__tstate); | |
12860 | if (PyErr_Occurred()) SWIG_fail; | |
12861 | } | |
093d3ff1 RD |
12862 | { |
12863 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12864 | } | |
d14a1e28 RD |
12865 | return resultobj; |
12866 | fail: | |
12867 | return NULL; | |
12868 | } | |
12869 | ||
12870 | ||
c32bde28 | 12871 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12872 | PyObject *resultobj; |
12873 | wxImage *arg1 = (wxImage *) 0 ; | |
12874 | unsigned char result; | |
12875 | PyObject * obj0 = 0 ; | |
12876 | char *kwnames[] = { | |
12877 | (char *) "self", NULL | |
12878 | }; | |
12879 | ||
12880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12883 | { |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
093d3ff1 RD |
12890 | { |
12891 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12892 | } | |
d14a1e28 RD |
12893 | return resultobj; |
12894 | fail: | |
12895 | return NULL; | |
12896 | } | |
12897 | ||
12898 | ||
c32bde28 | 12899 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12900 | PyObject *resultobj; |
12901 | wxImage *arg1 = (wxImage *) 0 ; | |
12902 | unsigned char result; | |
12903 | PyObject * obj0 = 0 ; | |
12904 | char *kwnames[] = { | |
12905 | (char *) "self", NULL | |
12906 | }; | |
12907 | ||
12908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12911 | { |
12912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12913 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
12914 | ||
12915 | wxPyEndAllowThreads(__tstate); | |
12916 | if (PyErr_Occurred()) SWIG_fail; | |
12917 | } | |
093d3ff1 RD |
12918 | { |
12919 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); | |
12920 | } | |
d14a1e28 RD |
12921 | return resultobj; |
12922 | fail: | |
12923 | return NULL; | |
12924 | } | |
12925 | ||
12926 | ||
c32bde28 | 12927 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12928 | PyObject *resultobj; |
12929 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 12930 | bool arg2 = (bool) true ; |
d14a1e28 RD |
12931 | PyObject * obj0 = 0 ; |
12932 | PyObject * obj1 = 0 ; | |
12933 | char *kwnames[] = { | |
12934 | (char *) "self",(char *) "mask", NULL | |
12935 | }; | |
12936 | ||
12937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 12940 | if (obj1) { |
093d3ff1 RD |
12941 | { |
12942 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
12943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12944 | } | |
d14a1e28 RD |
12945 | } |
12946 | { | |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12948 | (arg1)->SetMask(arg2); | |
12949 | ||
12950 | wxPyEndAllowThreads(__tstate); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
12953 | Py_INCREF(Py_None); resultobj = Py_None; | |
12954 | return resultobj; | |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
c32bde28 | 12960 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12961 | PyObject *resultobj; |
12962 | wxImage *arg1 = (wxImage *) 0 ; | |
12963 | bool result; | |
12964 | PyObject * obj0 = 0 ; | |
12965 | char *kwnames[] = { | |
12966 | (char *) "self", NULL | |
12967 | }; | |
12968 | ||
12969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
12971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12972 | { |
12973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12974 | result = (bool)(arg1)->HasMask(); | |
12975 | ||
12976 | wxPyEndAllowThreads(__tstate); | |
12977 | if (PyErr_Occurred()) SWIG_fail; | |
12978 | } | |
4f89f6a3 RD |
12979 | { |
12980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12981 | } | |
d14a1e28 RD |
12982 | return resultobj; |
12983 | fail: | |
12984 | return NULL; | |
12985 | } | |
12986 | ||
12987 | ||
c32bde28 | 12988 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12989 | PyObject *resultobj; |
12990 | wxImage *arg1 = (wxImage *) 0 ; | |
12991 | double arg2 ; | |
12992 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 12993 | bool arg4 = (bool) true ; |
d14a1e28 | 12994 | wxPoint *arg5 = (wxPoint *) NULL ; |
093d3ff1 | 12995 | SwigValueWrapper<wxImage > result; |
d14a1e28 RD |
12996 | wxPoint temp3 ; |
12997 | PyObject * obj0 = 0 ; | |
994141e6 | 12998 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12999 | PyObject * obj2 = 0 ; |
13000 | PyObject * obj3 = 0 ; | |
13001 | PyObject * obj4 = 0 ; | |
13002 | char *kwnames[] = { | |
13003 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
13004 | }; | |
13005 | ||
994141e6 | 13006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
13007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13009 | { | |
13010 | arg2 = (double)(SWIG_As_double(obj1)); | |
13011 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13012 | } | |
d14a1e28 RD |
13013 | { |
13014 | arg3 = &temp3; | |
13015 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
13016 | } | |
13017 | if (obj3) { | |
093d3ff1 RD |
13018 | { |
13019 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
13020 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13021 | } | |
d14a1e28 RD |
13022 | } |
13023 | if (obj4) { | |
093d3ff1 RD |
13024 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); |
13025 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
13026 | } |
13027 | { | |
13028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13029 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
13030 | ||
13031 | wxPyEndAllowThreads(__tstate); | |
13032 | if (PyErr_Occurred()) SWIG_fail; | |
13033 | } | |
13034 | { | |
13035 | wxImage * resultptr; | |
093d3ff1 | 13036 | resultptr = new wxImage((wxImage &)(result)); |
15afbcd0 | 13037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
13038 | } |
13039 | return resultobj; | |
13040 | fail: | |
13041 | return NULL; | |
13042 | } | |
13043 | ||
13044 | ||
c32bde28 | 13045 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13046 | PyObject *resultobj; |
13047 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 13048 | bool arg2 = (bool) true ; |
093d3ff1 | 13049 | SwigValueWrapper<wxImage > result; |
d14a1e28 RD |
13050 | PyObject * obj0 = 0 ; |
13051 | PyObject * obj1 = 0 ; | |
13052 | char *kwnames[] = { | |
13053 | (char *) "self",(char *) "clockwise", NULL | |
13054 | }; | |
13055 | ||
13056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13057 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13059 | if (obj1) { |
093d3ff1 RD |
13060 | { |
13061 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
13062 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13063 | } | |
d14a1e28 RD |
13064 | } |
13065 | { | |
13066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13067 | result = (arg1)->Rotate90(arg2); | |
13068 | ||
13069 | wxPyEndAllowThreads(__tstate); | |
13070 | if (PyErr_Occurred()) SWIG_fail; | |
13071 | } | |
13072 | { | |
13073 | wxImage * resultptr; | |
093d3ff1 | 13074 | resultptr = new wxImage((wxImage &)(result)); |
15afbcd0 | 13075 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
13076 | } |
13077 | return resultobj; | |
13078 | fail: | |
13079 | return NULL; | |
13080 | } | |
13081 | ||
13082 | ||
c32bde28 | 13083 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13084 | PyObject *resultobj; |
13085 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 13086 | bool arg2 = (bool) true ; |
093d3ff1 | 13087 | SwigValueWrapper<wxImage > result; |
d14a1e28 RD |
13088 | PyObject * obj0 = 0 ; |
13089 | PyObject * obj1 = 0 ; | |
13090 | char *kwnames[] = { | |
13091 | (char *) "self",(char *) "horizontally", NULL | |
13092 | }; | |
13093 | ||
13094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13097 | if (obj1) { |
093d3ff1 RD |
13098 | { |
13099 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
13100 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13101 | } | |
d14a1e28 RD |
13102 | } |
13103 | { | |
13104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13105 | result = (arg1)->Mirror(arg2); | |
13106 | ||
13107 | wxPyEndAllowThreads(__tstate); | |
13108 | if (PyErr_Occurred()) SWIG_fail; | |
13109 | } | |
13110 | { | |
13111 | wxImage * resultptr; | |
093d3ff1 | 13112 | resultptr = new wxImage((wxImage &)(result)); |
15afbcd0 | 13113 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
13114 | } |
13115 | return resultobj; | |
13116 | fail: | |
13117 | return NULL; | |
13118 | } | |
13119 | ||
13120 | ||
c32bde28 | 13121 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13122 | PyObject *resultobj; |
13123 | wxImage *arg1 = (wxImage *) 0 ; | |
13124 | unsigned char arg2 ; | |
13125 | unsigned char arg3 ; | |
13126 | unsigned char arg4 ; | |
13127 | unsigned char arg5 ; | |
13128 | unsigned char arg6 ; | |
13129 | unsigned char arg7 ; | |
13130 | PyObject * obj0 = 0 ; | |
13131 | PyObject * obj1 = 0 ; | |
13132 | PyObject * obj2 = 0 ; | |
13133 | PyObject * obj3 = 0 ; | |
13134 | PyObject * obj4 = 0 ; | |
13135 | PyObject * obj5 = 0 ; | |
13136 | PyObject * obj6 = 0 ; | |
13137 | char *kwnames[] = { | |
13138 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
13139 | }; | |
13140 | ||
13141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
13142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13144 | { | |
13145 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
13146 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13147 | } | |
13148 | { | |
13149 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
13150 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13151 | } | |
13152 | { | |
13153 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
13154 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13155 | } | |
13156 | { | |
13157 | arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4)); | |
13158 | if (SWIG_arg_fail(5)) SWIG_fail; | |
13159 | } | |
13160 | { | |
13161 | arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj5)); | |
13162 | if (SWIG_arg_fail(6)) SWIG_fail; | |
13163 | } | |
13164 | { | |
13165 | arg7 = (unsigned char)(SWIG_As_unsigned_SS_char(obj6)); | |
13166 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13167 | } | |
d14a1e28 RD |
13168 | { |
13169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13170 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
13171 | ||
13172 | wxPyEndAllowThreads(__tstate); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
13175 | Py_INCREF(Py_None); resultobj = Py_None; | |
13176 | return resultobj; | |
13177 | fail: | |
13178 | return NULL; | |
13179 | } | |
13180 | ||
13181 | ||
c32bde28 | 13182 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13183 | PyObject *resultobj; |
13184 | wxImage *arg1 = (wxImage *) 0 ; | |
13185 | unsigned char arg2 ; | |
13186 | unsigned char arg3 ; | |
13187 | unsigned char arg4 ; | |
093d3ff1 | 13188 | SwigValueWrapper<wxImage > result; |
d14a1e28 RD |
13189 | PyObject * obj0 = 0 ; |
13190 | PyObject * obj1 = 0 ; | |
13191 | PyObject * obj2 = 0 ; | |
13192 | PyObject * obj3 = 0 ; | |
13193 | char *kwnames[] = { | |
13194 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
13195 | }; | |
13196 | ||
13197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
13198 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13199 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13200 | { | |
13201 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
13202 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13203 | } | |
13204 | { | |
13205 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
13206 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13207 | } | |
13208 | { | |
13209 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
13210 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13211 | } | |
d14a1e28 RD |
13212 | { |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
13215 | ||
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | { | |
13220 | wxImage * resultptr; | |
093d3ff1 | 13221 | resultptr = new wxImage((wxImage &)(result)); |
15afbcd0 | 13222 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
13223 | } |
13224 | return resultobj; | |
13225 | fail: | |
13226 | return NULL; | |
13227 | } | |
13228 | ||
13229 | ||
c32bde28 | 13230 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13231 | PyObject *resultobj; |
13232 | wxImage *arg1 = (wxImage *) 0 ; | |
13233 | wxString *arg2 = 0 ; | |
13234 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
13235 | bool temp2 = false ; |
13236 | bool temp3 = false ; | |
d14a1e28 RD |
13237 | PyObject * obj0 = 0 ; |
13238 | PyObject * obj1 = 0 ; | |
13239 | PyObject * obj2 = 0 ; | |
13240 | char *kwnames[] = { | |
13241 | (char *) "self",(char *) "name",(char *) "value", NULL | |
13242 | }; | |
13243 | ||
13244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
13245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13247 | { |
13248 | arg2 = wxString_in_helper(obj1); | |
13249 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13250 | temp2 = true; |
d14a1e28 RD |
13251 | } |
13252 | { | |
13253 | arg3 = wxString_in_helper(obj2); | |
13254 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13255 | temp3 = true; |
d14a1e28 RD |
13256 | } |
13257 | { | |
13258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13259 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
13260 | ||
13261 | wxPyEndAllowThreads(__tstate); | |
13262 | if (PyErr_Occurred()) SWIG_fail; | |
13263 | } | |
13264 | Py_INCREF(Py_None); resultobj = Py_None; | |
13265 | { | |
13266 | if (temp2) | |
13267 | delete arg2; | |
13268 | } | |
13269 | { | |
13270 | if (temp3) | |
13271 | delete arg3; | |
13272 | } | |
13273 | return resultobj; | |
13274 | fail: | |
13275 | { | |
13276 | if (temp2) | |
13277 | delete arg2; | |
13278 | } | |
13279 | { | |
13280 | if (temp3) | |
13281 | delete arg3; | |
13282 | } | |
13283 | return NULL; | |
13284 | } | |
13285 | ||
13286 | ||
c32bde28 | 13287 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13288 | PyObject *resultobj; |
13289 | wxImage *arg1 = (wxImage *) 0 ; | |
13290 | wxString *arg2 = 0 ; | |
13291 | int arg3 ; | |
ae8162c8 | 13292 | bool temp2 = false ; |
d14a1e28 RD |
13293 | PyObject * obj0 = 0 ; |
13294 | PyObject * obj1 = 0 ; | |
994141e6 | 13295 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13296 | char *kwnames[] = { |
13297 | (char *) "self",(char *) "name",(char *) "value", NULL | |
13298 | }; | |
13299 | ||
994141e6 | 13300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13303 | { |
13304 | arg2 = wxString_in_helper(obj1); | |
13305 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13306 | temp2 = true; |
d14a1e28 | 13307 | } |
093d3ff1 RD |
13308 | { |
13309 | arg3 = (int)(SWIG_As_int(obj2)); | |
13310 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13311 | } | |
d14a1e28 RD |
13312 | { |
13313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13314 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
13315 | ||
13316 | wxPyEndAllowThreads(__tstate); | |
13317 | if (PyErr_Occurred()) SWIG_fail; | |
13318 | } | |
13319 | Py_INCREF(Py_None); resultobj = Py_None; | |
13320 | { | |
13321 | if (temp2) | |
13322 | delete arg2; | |
13323 | } | |
13324 | return resultobj; | |
13325 | fail: | |
13326 | { | |
13327 | if (temp2) | |
13328 | delete arg2; | |
13329 | } | |
13330 | return NULL; | |
13331 | } | |
13332 | ||
13333 | ||
c32bde28 | 13334 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13335 | PyObject *resultobj; |
13336 | wxImage *arg1 = (wxImage *) 0 ; | |
13337 | wxString *arg2 = 0 ; | |
13338 | wxString result; | |
ae8162c8 | 13339 | bool temp2 = false ; |
d14a1e28 RD |
13340 | PyObject * obj0 = 0 ; |
13341 | PyObject * obj1 = 0 ; | |
13342 | char *kwnames[] = { | |
13343 | (char *) "self",(char *) "name", NULL | |
13344 | }; | |
13345 | ||
13346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13349 | { |
13350 | arg2 = wxString_in_helper(obj1); | |
13351 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13352 | temp2 = true; |
d14a1e28 RD |
13353 | } |
13354 | { | |
13355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13356 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
13357 | ||
13358 | wxPyEndAllowThreads(__tstate); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | } | |
13361 | { | |
13362 | #if wxUSE_UNICODE | |
13363 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13364 | #else | |
13365 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13366 | #endif | |
13367 | } | |
13368 | { | |
13369 | if (temp2) | |
13370 | delete arg2; | |
13371 | } | |
13372 | return resultobj; | |
13373 | fail: | |
13374 | { | |
13375 | if (temp2) | |
13376 | delete arg2; | |
13377 | } | |
13378 | return NULL; | |
13379 | } | |
13380 | ||
13381 | ||
c32bde28 | 13382 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13383 | PyObject *resultobj; |
13384 | wxImage *arg1 = (wxImage *) 0 ; | |
13385 | wxString *arg2 = 0 ; | |
13386 | int result; | |
ae8162c8 | 13387 | bool temp2 = false ; |
d14a1e28 RD |
13388 | PyObject * obj0 = 0 ; |
13389 | PyObject * obj1 = 0 ; | |
13390 | char *kwnames[] = { | |
13391 | (char *) "self",(char *) "name", NULL | |
13392 | }; | |
13393 | ||
13394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13397 | { |
13398 | arg2 = wxString_in_helper(obj1); | |
13399 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13400 | temp2 = true; |
d14a1e28 RD |
13401 | } |
13402 | { | |
13403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13404 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
13405 | ||
13406 | wxPyEndAllowThreads(__tstate); | |
13407 | if (PyErr_Occurred()) SWIG_fail; | |
13408 | } | |
093d3ff1 RD |
13409 | { |
13410 | resultobj = SWIG_From_int((int)(result)); | |
13411 | } | |
d14a1e28 RD |
13412 | { |
13413 | if (temp2) | |
13414 | delete arg2; | |
13415 | } | |
13416 | return resultobj; | |
13417 | fail: | |
13418 | { | |
13419 | if (temp2) | |
13420 | delete arg2; | |
13421 | } | |
13422 | return NULL; | |
13423 | } | |
13424 | ||
13425 | ||
c32bde28 | 13426 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13427 | PyObject *resultobj; |
13428 | wxImage *arg1 = (wxImage *) 0 ; | |
13429 | wxString *arg2 = 0 ; | |
13430 | bool result; | |
ae8162c8 | 13431 | bool temp2 = false ; |
d14a1e28 RD |
13432 | PyObject * obj0 = 0 ; |
13433 | PyObject * obj1 = 0 ; | |
13434 | char *kwnames[] = { | |
13435 | (char *) "self",(char *) "name", NULL | |
13436 | }; | |
13437 | ||
13438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13441 | { |
13442 | arg2 = wxString_in_helper(obj1); | |
13443 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13444 | temp2 = true; |
d14a1e28 RD |
13445 | } |
13446 | { | |
13447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13448 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
13449 | ||
13450 | wxPyEndAllowThreads(__tstate); | |
13451 | if (PyErr_Occurred()) SWIG_fail; | |
13452 | } | |
4f89f6a3 RD |
13453 | { |
13454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13455 | } | |
d14a1e28 RD |
13456 | { |
13457 | if (temp2) | |
13458 | delete arg2; | |
13459 | } | |
13460 | return resultobj; | |
13461 | fail: | |
13462 | { | |
13463 | if (temp2) | |
13464 | delete arg2; | |
13465 | } | |
13466 | return NULL; | |
13467 | } | |
13468 | ||
13469 | ||
c32bde28 | 13470 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13471 | PyObject *resultobj; |
13472 | wxImage *arg1 = (wxImage *) 0 ; | |
13473 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
13474 | unsigned long result; | |
13475 | PyObject * obj0 = 0 ; | |
13476 | PyObject * obj1 = 0 ; | |
13477 | char *kwnames[] = { | |
13478 | (char *) "self",(char *) "stopafter", NULL | |
13479 | }; | |
13480 | ||
13481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 13484 | if (obj1) { |
093d3ff1 RD |
13485 | { |
13486 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
13487 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13488 | } | |
d14a1e28 RD |
13489 | } |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | result = (unsigned long)(arg1)->CountColours(arg2); | |
13493 | ||
13494 | wxPyEndAllowThreads(__tstate); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
093d3ff1 RD |
13497 | { |
13498 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
13499 | } | |
d14a1e28 RD |
13500 | return resultobj; |
13501 | fail: | |
13502 | return NULL; | |
13503 | } | |
13504 | ||
13505 | ||
c32bde28 | 13506 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13507 | PyObject *resultobj; |
13508 | wxImage *arg1 = (wxImage *) 0 ; | |
13509 | wxImageHistogram *arg2 = 0 ; | |
13510 | unsigned long result; | |
13511 | PyObject * obj0 = 0 ; | |
13512 | PyObject * obj1 = 0 ; | |
13513 | char *kwnames[] = { | |
13514 | (char *) "self",(char *) "h", NULL | |
13515 | }; | |
13516 | ||
13517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13520 | { | |
13521 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0); | |
13522 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13523 | if (arg2 == NULL) { | |
13524 | SWIG_null_ref("wxImageHistogram"); | |
13525 | } | |
13526 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
13527 | } |
13528 | { | |
13529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13530 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
13531 | ||
13532 | wxPyEndAllowThreads(__tstate); | |
13533 | if (PyErr_Occurred()) SWIG_fail; | |
13534 | } | |
093d3ff1 RD |
13535 | { |
13536 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
13537 | } | |
d14a1e28 RD |
13538 | return resultobj; |
13539 | fail: | |
13540 | return NULL; | |
13541 | } | |
13542 | ||
13543 | ||
c32bde28 | 13544 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13545 | PyObject *resultobj; |
13546 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
13547 | PyObject * obj0 = 0 ; | |
13548 | char *kwnames[] = { | |
13549 | (char *) "handler", NULL | |
13550 | }; | |
13551 | ||
13552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13553 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
13554 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13555 | { |
13556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13557 | wxImage::AddHandler(arg1); | |
13558 | ||
13559 | wxPyEndAllowThreads(__tstate); | |
13560 | if (PyErr_Occurred()) SWIG_fail; | |
13561 | } | |
13562 | Py_INCREF(Py_None); resultobj = Py_None; | |
13563 | return resultobj; | |
13564 | fail: | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
c32bde28 | 13569 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13570 | PyObject *resultobj; |
13571 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
13572 | PyObject * obj0 = 0 ; | |
13573 | char *kwnames[] = { | |
13574 | (char *) "handler", NULL | |
13575 | }; | |
13576 | ||
13577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0); |
13579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13580 | { |
13581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13582 | wxImage::InsertHandler(arg1); | |
13583 | ||
13584 | wxPyEndAllowThreads(__tstate); | |
13585 | if (PyErr_Occurred()) SWIG_fail; | |
13586 | } | |
13587 | Py_INCREF(Py_None); resultobj = Py_None; | |
13588 | return resultobj; | |
13589 | fail: | |
13590 | return NULL; | |
13591 | } | |
13592 | ||
13593 | ||
c32bde28 | 13594 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13595 | PyObject *resultobj; |
13596 | wxString *arg1 = 0 ; | |
13597 | bool result; | |
ae8162c8 | 13598 | bool temp1 = false ; |
d14a1e28 RD |
13599 | PyObject * obj0 = 0 ; |
13600 | char *kwnames[] = { | |
13601 | (char *) "name", NULL | |
13602 | }; | |
13603 | ||
13604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
13605 | { | |
13606 | arg1 = wxString_in_helper(obj0); | |
13607 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13608 | temp1 = true; |
d14a1e28 RD |
13609 | } |
13610 | { | |
13611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13612 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
13613 | ||
13614 | wxPyEndAllowThreads(__tstate); | |
13615 | if (PyErr_Occurred()) SWIG_fail; | |
13616 | } | |
4f89f6a3 RD |
13617 | { |
13618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13619 | } | |
d14a1e28 RD |
13620 | { |
13621 | if (temp1) | |
13622 | delete arg1; | |
13623 | } | |
13624 | return resultobj; | |
13625 | fail: | |
13626 | { | |
13627 | if (temp1) | |
13628 | delete arg1; | |
13629 | } | |
13630 | return NULL; | |
13631 | } | |
13632 | ||
13633 | ||
c32bde28 | 13634 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13635 | PyObject *resultobj; |
13636 | wxString result; | |
13637 | char *kwnames[] = { | |
13638 | NULL | |
13639 | }; | |
13640 | ||
13641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
13642 | { | |
13643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13644 | result = wxImage::GetImageExtWildcard(); | |
13645 | ||
13646 | wxPyEndAllowThreads(__tstate); | |
13647 | if (PyErr_Occurred()) SWIG_fail; | |
13648 | } | |
13649 | { | |
13650 | #if wxUSE_UNICODE | |
13651 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13652 | #else | |
13653 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13654 | #endif | |
13655 | } | |
13656 | return resultobj; | |
13657 | fail: | |
13658 | return NULL; | |
13659 | } | |
13660 | ||
13661 | ||
c32bde28 | 13662 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13663 | PyObject *resultobj; |
13664 | wxImage *arg1 = (wxImage *) 0 ; | |
1fbf26be | 13665 | int arg2 = (int) -1 ; |
d14a1e28 RD |
13666 | wxBitmap result; |
13667 | PyObject * obj0 = 0 ; | |
1fbf26be | 13668 | PyObject * obj1 = 0 ; |
d14a1e28 | 13669 | char *kwnames[] = { |
1fbf26be | 13670 | (char *) "self",(char *) "depth", NULL |
d14a1e28 RD |
13671 | }; |
13672 | ||
1fbf26be | 13673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1fbf26be | 13676 | if (obj1) { |
093d3ff1 RD |
13677 | { |
13678 | arg2 = (int)(SWIG_As_int(obj1)); | |
13679 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13680 | } | |
1fbf26be | 13681 | } |
d14a1e28 | 13682 | { |
e3b71cb8 | 13683 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fbf26be | 13685 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d14a1e28 RD |
13686 | |
13687 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13688 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13689 | } |
13690 | { | |
13691 | wxBitmap * resultptr; | |
093d3ff1 | 13692 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 13693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
13694 | } |
13695 | return resultobj; | |
13696 | fail: | |
13697 | return NULL; | |
13698 | } | |
13699 | ||
13700 | ||
c32bde28 | 13701 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13702 | PyObject *resultobj; |
13703 | wxImage *arg1 = (wxImage *) 0 ; | |
13704 | unsigned char arg2 ; | |
13705 | unsigned char arg3 ; | |
13706 | unsigned char arg4 ; | |
13707 | wxBitmap result; | |
13708 | PyObject * obj0 = 0 ; | |
13709 | PyObject * obj1 = 0 ; | |
13710 | PyObject * obj2 = 0 ; | |
13711 | PyObject * obj3 = 0 ; | |
13712 | char *kwnames[] = { | |
13713 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
13714 | }; | |
13715 | ||
13716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
13717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); |
13718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13719 | { | |
13720 | arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1)); | |
13721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13722 | } | |
13723 | { | |
13724 | arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2)); | |
13725 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13726 | } | |
13727 | { | |
13728 | arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3)); | |
13729 | if (SWIG_arg_fail(4)) SWIG_fail; | |
13730 | } | |
d14a1e28 | 13731 | { |
e3b71cb8 | 13732 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13734 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
13735 | ||
13736 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13737 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13738 | } |
13739 | { | |
13740 | wxBitmap * resultptr; | |
093d3ff1 | 13741 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 13742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
13743 | } |
13744 | return resultobj; | |
13745 | fail: | |
13746 | return NULL; | |
13747 | } | |
13748 | ||
13749 | ||
c32bde28 | 13750 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13751 | PyObject *obj; |
13752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13753 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
13754 | Py_INCREF(obj); | |
13755 | return Py_BuildValue((char *)""); | |
13756 | } | |
c32bde28 | 13757 | static int _wrap_NullImage_set(PyObject *) { |
d14a1e28 RD |
13758 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
13759 | return 1; | |
13760 | } | |
13761 | ||
13762 | ||
093d3ff1 | 13763 | static PyObject *_wrap_NullImage_get(void) { |
d14a1e28 RD |
13764 | PyObject *pyobj; |
13765 | ||
15afbcd0 | 13766 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
13767 | return pyobj; |
13768 | } | |
13769 | ||
13770 | ||
0c243d93 RD |
13771 | static int _wrap_IMAGE_OPTION_FILENAME_set(PyObject *) { |
13772 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_FILENAME is read-only."); | |
13773 | return 1; | |
13774 | } | |
13775 | ||
13776 | ||
13777 | static PyObject *_wrap_IMAGE_OPTION_FILENAME_get(void) { | |
13778 | PyObject *pyobj; | |
13779 | ||
13780 | { | |
13781 | #if wxUSE_UNICODE | |
13782 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len()); | |
13783 | #else | |
13784 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len()); | |
13785 | #endif | |
13786 | } | |
13787 | return pyobj; | |
13788 | } | |
13789 | ||
13790 | ||
c32bde28 | 13791 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d14a1e28 RD |
13792 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
13793 | return 1; | |
13794 | } | |
13795 | ||
13796 | ||
093d3ff1 | 13797 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get(void) { |
d14a1e28 RD |
13798 | PyObject *pyobj; |
13799 | ||
13800 | { | |
13801 | #if wxUSE_UNICODE | |
13802 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
13803 | #else | |
13804 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
13805 | #endif | |
13806 | } | |
13807 | return pyobj; | |
13808 | } | |
13809 | ||
13810 | ||
c32bde28 | 13811 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d14a1e28 RD |
13812 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
13813 | return 1; | |
13814 | } | |
13815 | ||
13816 | ||
093d3ff1 | 13817 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get(void) { |
d14a1e28 RD |
13818 | PyObject *pyobj; |
13819 | ||
13820 | { | |
13821 | #if wxUSE_UNICODE | |
13822 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
13823 | #else | |
13824 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
13825 | #endif | |
13826 | } | |
13827 | return pyobj; | |
13828 | } | |
13829 | ||
13830 | ||
c32bde28 | 13831 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d14a1e28 RD |
13832 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
13833 | return 1; | |
13834 | } | |
13835 | ||
13836 | ||
093d3ff1 | 13837 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get(void) { |
d14a1e28 RD |
13838 | PyObject *pyobj; |
13839 | ||
13840 | { | |
13841 | #if wxUSE_UNICODE | |
13842 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
13843 | #else | |
13844 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
13845 | #endif | |
13846 | } | |
13847 | return pyobj; | |
13848 | } | |
13849 | ||
13850 | ||
c32bde28 | 13851 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d14a1e28 RD |
13852 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
13853 | return 1; | |
13854 | } | |
13855 | ||
13856 | ||
093d3ff1 | 13857 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get(void) { |
d14a1e28 RD |
13858 | PyObject *pyobj; |
13859 | ||
13860 | { | |
13861 | #if wxUSE_UNICODE | |
13862 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
13863 | #else | |
13864 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
13865 | #endif | |
13866 | } | |
13867 | return pyobj; | |
13868 | } | |
13869 | ||
13870 | ||
0c243d93 RD |
13871 | static int _wrap_IMAGE_OPTION_RESOLUTIONX_set(PyObject *) { |
13872 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONX is read-only."); | |
13873 | return 1; | |
13874 | } | |
13875 | ||
13876 | ||
13877 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONX_get(void) { | |
13878 | PyObject *pyobj; | |
13879 | ||
13880 | { | |
13881 | #if wxUSE_UNICODE | |
13882 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len()); | |
13883 | #else | |
13884 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len()); | |
13885 | #endif | |
13886 | } | |
13887 | return pyobj; | |
13888 | } | |
13889 | ||
13890 | ||
13891 | static int _wrap_IMAGE_OPTION_RESOLUTIONY_set(PyObject *) { | |
13892 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONY is read-only."); | |
13893 | return 1; | |
13894 | } | |
13895 | ||
13896 | ||
13897 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONY_get(void) { | |
13898 | PyObject *pyobj; | |
13899 | ||
13900 | { | |
13901 | #if wxUSE_UNICODE | |
13902 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len()); | |
13903 | #else | |
13904 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len()); | |
13905 | #endif | |
13906 | } | |
13907 | return pyobj; | |
13908 | } | |
13909 | ||
13910 | ||
c32bde28 | 13911 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d14a1e28 RD |
13912 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
13913 | return 1; | |
13914 | } | |
13915 | ||
13916 | ||
093d3ff1 | 13917 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get(void) { |
d14a1e28 RD |
13918 | PyObject *pyobj; |
13919 | ||
13920 | { | |
13921 | #if wxUSE_UNICODE | |
13922 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
13923 | #else | |
13924 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
13925 | #endif | |
13926 | } | |
13927 | return pyobj; | |
13928 | } | |
13929 | ||
13930 | ||
24d7cbea RD |
13931 | static int _wrap_IMAGE_OPTION_QUALITY_set(PyObject *) { |
13932 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_QUALITY is read-only."); | |
13933 | return 1; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static PyObject *_wrap_IMAGE_OPTION_QUALITY_get(void) { | |
13938 | PyObject *pyobj; | |
13939 | ||
13940 | { | |
13941 | #if wxUSE_UNICODE | |
13942 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len()); | |
13943 | #else | |
13944 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len()); | |
13945 | #endif | |
13946 | } | |
13947 | return pyobj; | |
13948 | } | |
13949 | ||
13950 | ||
0c243d93 RD |
13951 | static int _wrap_IMAGE_OPTION_BITSPERSAMPLE_set(PyObject *) { |
13952 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BITSPERSAMPLE is read-only."); | |
13953 | return 1; | |
13954 | } | |
13955 | ||
13956 | ||
13957 | static PyObject *_wrap_IMAGE_OPTION_BITSPERSAMPLE_get(void) { | |
13958 | PyObject *pyobj; | |
13959 | ||
13960 | { | |
13961 | #if wxUSE_UNICODE | |
13962 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len()); | |
13963 | #else | |
13964 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len()); | |
13965 | #endif | |
13966 | } | |
13967 | return pyobj; | |
13968 | } | |
13969 | ||
13970 | ||
13971 | static int _wrap_IMAGE_OPTION_SAMPLESPERPIXEL_set(PyObject *) { | |
13972 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_SAMPLESPERPIXEL is read-only."); | |
13973 | return 1; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static PyObject *_wrap_IMAGE_OPTION_SAMPLESPERPIXEL_get(void) { | |
13978 | PyObject *pyobj; | |
13979 | ||
13980 | { | |
13981 | #if wxUSE_UNICODE | |
13982 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len()); | |
13983 | #else | |
13984 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len()); | |
13985 | #endif | |
13986 | } | |
13987 | return pyobj; | |
13988 | } | |
13989 | ||
13990 | ||
13991 | static int _wrap_IMAGE_OPTION_COMPRESSION_set(PyObject *) { | |
13992 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_COMPRESSION is read-only."); | |
13993 | return 1; | |
13994 | } | |
13995 | ||
13996 | ||
13997 | static PyObject *_wrap_IMAGE_OPTION_COMPRESSION_get(void) { | |
13998 | PyObject *pyobj; | |
13999 | ||
14000 | { | |
14001 | #if wxUSE_UNICODE | |
14002 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len()); | |
14003 | #else | |
14004 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len()); | |
14005 | #endif | |
14006 | } | |
14007 | return pyobj; | |
14008 | } | |
14009 | ||
14010 | ||
14011 | static int _wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_set(PyObject *) { | |
14012 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_IMAGEDESCRIPTOR is read-only."); | |
14013 | return 1; | |
14014 | } | |
14015 | ||
14016 | ||
14017 | static PyObject *_wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_get(void) { | |
14018 | PyObject *pyobj; | |
14019 | ||
14020 | { | |
14021 | #if wxUSE_UNICODE | |
14022 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len()); | |
14023 | #else | |
14024 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len()); | |
14025 | #endif | |
14026 | } | |
14027 | return pyobj; | |
14028 | } | |
14029 | ||
14030 | ||
b9d6a5f3 RD |
14031 | static int _wrap_IMAGE_OPTION_PNG_FORMAT_set(PyObject *) { |
14032 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_PNG_FORMAT is read-only."); | |
14033 | return 1; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static PyObject *_wrap_IMAGE_OPTION_PNG_FORMAT_get(void) { | |
14038 | PyObject *pyobj; | |
14039 | ||
14040 | { | |
14041 | #if wxUSE_UNICODE | |
14042 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len()); | |
14043 | #else | |
14044 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len()); | |
14045 | #endif | |
14046 | } | |
14047 | return pyobj; | |
14048 | } | |
14049 | ||
14050 | ||
14051 | static int _wrap_IMAGE_OPTION_PNG_BITDEPTH_set(PyObject *) { | |
14052 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_PNG_BITDEPTH is read-only."); | |
14053 | return 1; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_IMAGE_OPTION_PNG_BITDEPTH_get(void) { | |
14058 | PyObject *pyobj; | |
14059 | ||
14060 | { | |
14061 | #if wxUSE_UNICODE | |
14062 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len()); | |
14063 | #else | |
14064 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len()); | |
14065 | #endif | |
14066 | } | |
14067 | return pyobj; | |
14068 | } | |
14069 | ||
14070 | ||
c32bde28 | 14071 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14072 | PyObject *resultobj; |
14073 | wxBMPHandler *result; | |
14074 | char *kwnames[] = { | |
14075 | NULL | |
14076 | }; | |
14077 | ||
14078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
14079 | { | |
14080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14081 | result = (wxBMPHandler *)new wxBMPHandler(); | |
14082 | ||
14083 | wxPyEndAllowThreads(__tstate); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | } | |
15afbcd0 | 14086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
14087 | return resultobj; |
14088 | fail: | |
14089 | return NULL; | |
14090 | } | |
14091 | ||
14092 | ||
c32bde28 | 14093 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14094 | PyObject *obj; |
14095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14096 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
14097 | Py_INCREF(obj); | |
14098 | return Py_BuildValue((char *)""); | |
14099 | } | |
c32bde28 | 14100 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14101 | PyObject *resultobj; |
14102 | wxICOHandler *result; | |
14103 | char *kwnames[] = { | |
14104 | NULL | |
14105 | }; | |
14106 | ||
14107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
14108 | { | |
14109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14110 | result = (wxICOHandler *)new wxICOHandler(); | |
14111 | ||
14112 | wxPyEndAllowThreads(__tstate); | |
14113 | if (PyErr_Occurred()) SWIG_fail; | |
14114 | } | |
15afbcd0 | 14115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
14116 | return resultobj; |
14117 | fail: | |
14118 | return NULL; | |
14119 | } | |
14120 | ||
14121 | ||
c32bde28 | 14122 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14123 | PyObject *obj; |
14124 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14125 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
14126 | Py_INCREF(obj); | |
14127 | return Py_BuildValue((char *)""); | |
14128 | } | |
c32bde28 | 14129 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14130 | PyObject *resultobj; |
14131 | wxCURHandler *result; | |
14132 | char *kwnames[] = { | |
14133 | NULL | |
14134 | }; | |
14135 | ||
14136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
14137 | { | |
14138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14139 | result = (wxCURHandler *)new wxCURHandler(); | |
14140 | ||
14141 | wxPyEndAllowThreads(__tstate); | |
14142 | if (PyErr_Occurred()) SWIG_fail; | |
14143 | } | |
15afbcd0 | 14144 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
14145 | return resultobj; |
14146 | fail: | |
14147 | return NULL; | |
14148 | } | |
14149 | ||
14150 | ||
c32bde28 | 14151 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14152 | PyObject *obj; |
14153 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14154 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
14155 | Py_INCREF(obj); | |
14156 | return Py_BuildValue((char *)""); | |
14157 | } | |
c32bde28 | 14158 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14159 | PyObject *resultobj; |
14160 | wxANIHandler *result; | |
14161 | char *kwnames[] = { | |
14162 | NULL | |
14163 | }; | |
14164 | ||
14165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
14166 | { | |
14167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14168 | result = (wxANIHandler *)new wxANIHandler(); | |
14169 | ||
14170 | wxPyEndAllowThreads(__tstate); | |
14171 | if (PyErr_Occurred()) SWIG_fail; | |
14172 | } | |
15afbcd0 | 14173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
14174 | return resultobj; |
14175 | fail: | |
14176 | return NULL; | |
14177 | } | |
14178 | ||
14179 | ||
c32bde28 | 14180 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14181 | PyObject *obj; |
14182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14183 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
14184 | Py_INCREF(obj); | |
14185 | return Py_BuildValue((char *)""); | |
14186 | } | |
c32bde28 | 14187 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14188 | PyObject *resultobj; |
14189 | wxPNGHandler *result; | |
14190 | char *kwnames[] = { | |
14191 | NULL | |
14192 | }; | |
14193 | ||
14194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
14195 | { | |
14196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14197 | result = (wxPNGHandler *)new wxPNGHandler(); | |
14198 | ||
14199 | wxPyEndAllowThreads(__tstate); | |
14200 | if (PyErr_Occurred()) SWIG_fail; | |
14201 | } | |
15afbcd0 | 14202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
14203 | return resultobj; |
14204 | fail: | |
14205 | return NULL; | |
14206 | } | |
14207 | ||
14208 | ||
c32bde28 | 14209 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14210 | PyObject *obj; |
14211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14212 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
14213 | Py_INCREF(obj); | |
14214 | return Py_BuildValue((char *)""); | |
14215 | } | |
c32bde28 | 14216 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14217 | PyObject *resultobj; |
14218 | wxGIFHandler *result; | |
14219 | char *kwnames[] = { | |
14220 | NULL | |
14221 | }; | |
14222 | ||
14223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
14224 | { | |
14225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14226 | result = (wxGIFHandler *)new wxGIFHandler(); | |
14227 | ||
14228 | wxPyEndAllowThreads(__tstate); | |
14229 | if (PyErr_Occurred()) SWIG_fail; | |
14230 | } | |
15afbcd0 | 14231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
14232 | return resultobj; |
14233 | fail: | |
14234 | return NULL; | |
14235 | } | |
14236 | ||
14237 | ||
c32bde28 | 14238 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14239 | PyObject *obj; |
14240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14241 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
14242 | Py_INCREF(obj); | |
14243 | return Py_BuildValue((char *)""); | |
14244 | } | |
c32bde28 | 14245 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14246 | PyObject *resultobj; |
14247 | wxPCXHandler *result; | |
14248 | char *kwnames[] = { | |
14249 | NULL | |
14250 | }; | |
14251 | ||
14252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
14253 | { | |
14254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14255 | result = (wxPCXHandler *)new wxPCXHandler(); | |
14256 | ||
14257 | wxPyEndAllowThreads(__tstate); | |
14258 | if (PyErr_Occurred()) SWIG_fail; | |
14259 | } | |
15afbcd0 | 14260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
14261 | return resultobj; |
14262 | fail: | |
14263 | return NULL; | |
14264 | } | |
14265 | ||
14266 | ||
c32bde28 | 14267 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14268 | PyObject *obj; |
14269 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14270 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
14271 | Py_INCREF(obj); | |
14272 | return Py_BuildValue((char *)""); | |
14273 | } | |
c32bde28 | 14274 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14275 | PyObject *resultobj; |
14276 | wxJPEGHandler *result; | |
14277 | char *kwnames[] = { | |
14278 | NULL | |
14279 | }; | |
14280 | ||
14281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
14282 | { | |
14283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14284 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
14285 | ||
14286 | wxPyEndAllowThreads(__tstate); | |
14287 | if (PyErr_Occurred()) SWIG_fail; | |
14288 | } | |
15afbcd0 | 14289 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
14290 | return resultobj; |
14291 | fail: | |
14292 | return NULL; | |
14293 | } | |
14294 | ||
14295 | ||
c32bde28 | 14296 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14297 | PyObject *obj; |
14298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14299 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
14300 | Py_INCREF(obj); | |
14301 | return Py_BuildValue((char *)""); | |
14302 | } | |
c32bde28 | 14303 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14304 | PyObject *resultobj; |
14305 | wxPNMHandler *result; | |
14306 | char *kwnames[] = { | |
14307 | NULL | |
14308 | }; | |
14309 | ||
14310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
14311 | { | |
14312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14313 | result = (wxPNMHandler *)new wxPNMHandler(); | |
14314 | ||
14315 | wxPyEndAllowThreads(__tstate); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
15afbcd0 | 14318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
14319 | return resultobj; |
14320 | fail: | |
14321 | return NULL; | |
14322 | } | |
14323 | ||
14324 | ||
c32bde28 | 14325 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14326 | PyObject *obj; |
14327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14328 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
14329 | Py_INCREF(obj); | |
14330 | return Py_BuildValue((char *)""); | |
14331 | } | |
c32bde28 | 14332 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14333 | PyObject *resultobj; |
14334 | wxXPMHandler *result; | |
14335 | char *kwnames[] = { | |
14336 | NULL | |
14337 | }; | |
14338 | ||
14339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
14340 | { | |
14341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14342 | result = (wxXPMHandler *)new wxXPMHandler(); | |
14343 | ||
14344 | wxPyEndAllowThreads(__tstate); | |
14345 | if (PyErr_Occurred()) SWIG_fail; | |
14346 | } | |
15afbcd0 | 14347 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
14348 | return resultobj; |
14349 | fail: | |
14350 | return NULL; | |
14351 | } | |
14352 | ||
14353 | ||
c32bde28 | 14354 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14355 | PyObject *obj; |
14356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14357 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
14358 | Py_INCREF(obj); | |
14359 | return Py_BuildValue((char *)""); | |
14360 | } | |
c32bde28 | 14361 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14362 | PyObject *resultobj; |
14363 | wxTIFFHandler *result; | |
14364 | char *kwnames[] = { | |
14365 | NULL | |
14366 | }; | |
14367 | ||
14368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
14369 | { | |
14370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14371 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
14372 | ||
14373 | wxPyEndAllowThreads(__tstate); | |
14374 | if (PyErr_Occurred()) SWIG_fail; | |
14375 | } | |
15afbcd0 | 14376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
14377 | return resultobj; |
14378 | fail: | |
14379 | return NULL; | |
14380 | } | |
14381 | ||
14382 | ||
c32bde28 | 14383 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14384 | PyObject *obj; |
14385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14386 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
14387 | Py_INCREF(obj); | |
14388 | return Py_BuildValue((char *)""); | |
14389 | } | |
c32bde28 | 14390 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
14391 | PyObject *resultobj; |
14392 | wxImage *arg1 = 0 ; | |
14393 | wxImage *arg2 = 0 ; | |
14394 | int arg3 = (int) 236 ; | |
14395 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
14396 | bool result; | |
14397 | PyObject * obj0 = 0 ; | |
14398 | PyObject * obj1 = 0 ; | |
14399 | PyObject * obj2 = 0 ; | |
14400 | PyObject * obj3 = 0 ; | |
14401 | char *kwnames[] = { | |
14402 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
14403 | }; | |
14404 | ||
14405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
14406 | { |
14407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
14408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14409 | if (arg1 == NULL) { | |
14410 | SWIG_null_ref("wxImage"); | |
14411 | } | |
14412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14413 | } | |
14414 | { | |
14415 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0); | |
14416 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14417 | if (arg2 == NULL) { | |
14418 | SWIG_null_ref("wxImage"); | |
14419 | } | |
14420 | if (SWIG_arg_fail(2)) SWIG_fail; | |
c0de73ae RD |
14421 | } |
14422 | if (obj2) { | |
093d3ff1 RD |
14423 | { |
14424 | arg3 = (int)(SWIG_As_int(obj2)); | |
14425 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14426 | } | |
c0de73ae RD |
14427 | } |
14428 | if (obj3) { | |
093d3ff1 RD |
14429 | { |
14430 | arg4 = (int)(SWIG_As_int(obj3)); | |
14431 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14432 | } | |
c0de73ae RD |
14433 | } |
14434 | { | |
14435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14436 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
14437 | ||
14438 | wxPyEndAllowThreads(__tstate); | |
14439 | if (PyErr_Occurred()) SWIG_fail; | |
14440 | } | |
14441 | { | |
14442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14443 | } | |
14444 | return resultobj; | |
14445 | fail: | |
14446 | return NULL; | |
14447 | } | |
14448 | ||
14449 | ||
c32bde28 | 14450 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
14451 | PyObject *obj; |
14452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14453 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
14454 | Py_INCREF(obj); | |
14455 | return Py_BuildValue((char *)""); | |
14456 | } | |
c32bde28 | 14457 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14458 | PyObject *resultobj; |
14459 | wxEvtHandler *result; | |
14460 | char *kwnames[] = { | |
14461 | NULL | |
14462 | }; | |
14463 | ||
14464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
14465 | { | |
14466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14467 | result = (wxEvtHandler *)new wxEvtHandler(); | |
14468 | ||
14469 | wxPyEndAllowThreads(__tstate); | |
14470 | if (PyErr_Occurred()) SWIG_fail; | |
14471 | } | |
b0f7404b | 14472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d14a1e28 RD |
14473 | return resultobj; |
14474 | fail: | |
14475 | return NULL; | |
14476 | } | |
14477 | ||
14478 | ||
c32bde28 | 14479 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14480 | PyObject *resultobj; |
14481 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14482 | wxEvtHandler *result; | |
14483 | PyObject * obj0 = 0 ; | |
14484 | char *kwnames[] = { | |
14485 | (char *) "self", NULL | |
14486 | }; | |
14487 | ||
14488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14491 | { |
14492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14493 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
14494 | ||
14495 | wxPyEndAllowThreads(__tstate); | |
14496 | if (PyErr_Occurred()) SWIG_fail; | |
14497 | } | |
14498 | { | |
412d302d | 14499 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14500 | } |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
c32bde28 | 14507 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14508 | PyObject *resultobj; |
14509 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14510 | wxEvtHandler *result; | |
14511 | PyObject * obj0 = 0 ; | |
14512 | char *kwnames[] = { | |
14513 | (char *) "self", NULL | |
14514 | }; | |
14515 | ||
14516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14519 | { |
14520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14521 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
14522 | ||
14523 | wxPyEndAllowThreads(__tstate); | |
14524 | if (PyErr_Occurred()) SWIG_fail; | |
14525 | } | |
14526 | { | |
412d302d | 14527 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14528 | } |
14529 | return resultobj; | |
14530 | fail: | |
14531 | return NULL; | |
14532 | } | |
14533 | ||
14534 | ||
c32bde28 | 14535 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14536 | PyObject *resultobj; |
14537 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14538 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
14539 | PyObject * obj0 = 0 ; | |
14540 | PyObject * obj1 = 0 ; | |
14541 | char *kwnames[] = { | |
14542 | (char *) "self",(char *) "handler", NULL | |
14543 | }; | |
14544 | ||
14545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14548 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
14549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
14550 | { |
14551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14552 | (arg1)->SetNextHandler(arg2); | |
14553 | ||
14554 | wxPyEndAllowThreads(__tstate); | |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
14556 | } | |
14557 | Py_INCREF(Py_None); resultobj = Py_None; | |
14558 | return resultobj; | |
14559 | fail: | |
14560 | return NULL; | |
14561 | } | |
14562 | ||
14563 | ||
c32bde28 | 14564 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14565 | PyObject *resultobj; |
14566 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14567 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
14568 | PyObject * obj0 = 0 ; | |
14569 | PyObject * obj1 = 0 ; | |
14570 | char *kwnames[] = { | |
14571 | (char *) "self",(char *) "handler", NULL | |
14572 | }; | |
14573 | ||
14574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14577 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
14578 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
14579 | { |
14580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14581 | (arg1)->SetPreviousHandler(arg2); | |
14582 | ||
14583 | wxPyEndAllowThreads(__tstate); | |
14584 | if (PyErr_Occurred()) SWIG_fail; | |
14585 | } | |
14586 | Py_INCREF(Py_None); resultobj = Py_None; | |
14587 | return resultobj; | |
14588 | fail: | |
14589 | return NULL; | |
14590 | } | |
14591 | ||
14592 | ||
c32bde28 | 14593 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14594 | PyObject *resultobj; |
14595 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14596 | bool result; | |
14597 | PyObject * obj0 = 0 ; | |
14598 | char *kwnames[] = { | |
14599 | (char *) "self", NULL | |
14600 | }; | |
14601 | ||
14602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14605 | { |
14606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14607 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
14608 | ||
14609 | wxPyEndAllowThreads(__tstate); | |
14610 | if (PyErr_Occurred()) SWIG_fail; | |
14611 | } | |
4f89f6a3 RD |
14612 | { |
14613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14614 | } | |
d14a1e28 RD |
14615 | return resultobj; |
14616 | fail: | |
14617 | return NULL; | |
14618 | } | |
14619 | ||
14620 | ||
c32bde28 | 14621 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14622 | PyObject *resultobj; |
14623 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14624 | bool arg2 ; | |
14625 | PyObject * obj0 = 0 ; | |
14626 | PyObject * obj1 = 0 ; | |
14627 | char *kwnames[] = { | |
14628 | (char *) "self",(char *) "enabled", NULL | |
14629 | }; | |
14630 | ||
14631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14634 | { | |
14635 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14636 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14637 | } | |
d14a1e28 RD |
14638 | { |
14639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14640 | (arg1)->SetEvtHandlerEnabled(arg2); | |
14641 | ||
14642 | wxPyEndAllowThreads(__tstate); | |
14643 | if (PyErr_Occurred()) SWIG_fail; | |
14644 | } | |
14645 | Py_INCREF(Py_None); resultobj = Py_None; | |
14646 | return resultobj; | |
14647 | fail: | |
14648 | return NULL; | |
14649 | } | |
14650 | ||
14651 | ||
c32bde28 | 14652 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14653 | PyObject *resultobj; |
14654 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14655 | wxEvent *arg2 = 0 ; | |
14656 | bool result; | |
14657 | PyObject * obj0 = 0 ; | |
14658 | PyObject * obj1 = 0 ; | |
14659 | char *kwnames[] = { | |
14660 | (char *) "self",(char *) "event", NULL | |
14661 | }; | |
14662 | ||
14663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14664 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14665 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14666 | { | |
14667 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
14668 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14669 | if (arg2 == NULL) { | |
14670 | SWIG_null_ref("wxEvent"); | |
14671 | } | |
14672 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
14673 | } |
14674 | { | |
14675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14676 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
14677 | ||
14678 | wxPyEndAllowThreads(__tstate); | |
14679 | if (PyErr_Occurred()) SWIG_fail; | |
14680 | } | |
4f89f6a3 RD |
14681 | { |
14682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14683 | } | |
d14a1e28 RD |
14684 | return resultobj; |
14685 | fail: | |
14686 | return NULL; | |
14687 | } | |
14688 | ||
14689 | ||
c32bde28 | 14690 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14691 | PyObject *resultobj; |
14692 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14693 | wxEvent *arg2 = 0 ; | |
14694 | PyObject * obj0 = 0 ; | |
14695 | PyObject * obj1 = 0 ; | |
14696 | char *kwnames[] = { | |
14697 | (char *) "self",(char *) "event", NULL | |
14698 | }; | |
14699 | ||
14700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14703 | { | |
14704 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
14705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14706 | if (arg2 == NULL) { | |
14707 | SWIG_null_ref("wxEvent"); | |
14708 | } | |
14709 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
14710 | } |
14711 | { | |
14712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14713 | (arg1)->AddPendingEvent(*arg2); | |
14714 | ||
14715 | wxPyEndAllowThreads(__tstate); | |
14716 | if (PyErr_Occurred()) SWIG_fail; | |
14717 | } | |
14718 | Py_INCREF(Py_None); resultobj = Py_None; | |
14719 | return resultobj; | |
14720 | fail: | |
14721 | return NULL; | |
14722 | } | |
14723 | ||
14724 | ||
c32bde28 | 14725 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14726 | PyObject *resultobj; |
14727 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14728 | PyObject * obj0 = 0 ; | |
14729 | char *kwnames[] = { | |
14730 | (char *) "self", NULL | |
14731 | }; | |
14732 | ||
14733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14736 | { |
14737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14738 | (arg1)->ProcessPendingEvents(); | |
14739 | ||
14740 | wxPyEndAllowThreads(__tstate); | |
14741 | if (PyErr_Occurred()) SWIG_fail; | |
14742 | } | |
14743 | Py_INCREF(Py_None); resultobj = Py_None; | |
14744 | return resultobj; | |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
c32bde28 | 14750 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14751 | PyObject *resultobj; |
14752 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14753 | int arg2 ; | |
14754 | int arg3 ; | |
14755 | int arg4 ; | |
14756 | PyObject *arg5 = (PyObject *) 0 ; | |
14757 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14758 | PyObject * obj1 = 0 ; |
14759 | PyObject * obj2 = 0 ; | |
14760 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14761 | PyObject * obj4 = 0 ; |
14762 | char *kwnames[] = { | |
14763 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
14764 | }; | |
14765 | ||
994141e6 | 14766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
14767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14769 | { | |
14770 | arg2 = (int)(SWIG_As_int(obj1)); | |
14771 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14772 | } | |
14773 | { | |
14774 | arg3 = (int)(SWIG_As_int(obj2)); | |
14775 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14776 | } | |
14777 | { | |
14778 | arg4 = (int)(SWIG_As_int(obj3)); | |
14779 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14780 | } | |
d14a1e28 RD |
14781 | arg5 = obj4; |
14782 | { | |
14783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14784 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
14785 | ||
14786 | wxPyEndAllowThreads(__tstate); | |
14787 | if (PyErr_Occurred()) SWIG_fail; | |
14788 | } | |
14789 | Py_INCREF(Py_None); resultobj = Py_None; | |
14790 | return resultobj; | |
14791 | fail: | |
14792 | return NULL; | |
14793 | } | |
14794 | ||
14795 | ||
c32bde28 | 14796 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14797 | PyObject *resultobj; |
14798 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14799 | int arg2 ; | |
14800 | int arg3 = (int) -1 ; | |
14801 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
14802 | bool result; | |
14803 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14804 | PyObject * obj1 = 0 ; |
14805 | PyObject * obj2 = 0 ; | |
14806 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14807 | char *kwnames[] = { |
14808 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
14809 | }; | |
14810 | ||
994141e6 | 14811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
14812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14814 | { | |
14815 | arg2 = (int)(SWIG_As_int(obj1)); | |
14816 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14817 | } | |
994141e6 | 14818 | if (obj2) { |
093d3ff1 RD |
14819 | { |
14820 | arg3 = (int)(SWIG_As_int(obj2)); | |
14821 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14822 | } | |
994141e6 RD |
14823 | } |
14824 | if (obj3) { | |
093d3ff1 RD |
14825 | { |
14826 | arg4 = (wxEventType)(SWIG_As_int(obj3)); | |
14827 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14828 | } | |
994141e6 | 14829 | } |
d14a1e28 RD |
14830 | { |
14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14832 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
14833 | ||
14834 | wxPyEndAllowThreads(__tstate); | |
14835 | if (PyErr_Occurred()) SWIG_fail; | |
14836 | } | |
4f89f6a3 RD |
14837 | { |
14838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14839 | } | |
d14a1e28 RD |
14840 | return resultobj; |
14841 | fail: | |
14842 | return NULL; | |
14843 | } | |
14844 | ||
14845 | ||
c32bde28 | 14846 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14847 | PyObject *resultobj; |
14848 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
14849 | PyObject *arg2 = (PyObject *) 0 ; | |
689b42ee | 14850 | bool arg3 = (bool) true ; |
d14a1e28 RD |
14851 | PyObject * obj0 = 0 ; |
14852 | PyObject * obj1 = 0 ; | |
689b42ee | 14853 | PyObject * obj2 = 0 ; |
d14a1e28 | 14854 | char *kwnames[] = { |
689b42ee | 14855 | (char *) "self",(char *) "_self",(char *) "incref", NULL |
d14a1e28 RD |
14856 | }; |
14857 | ||
689b42ee | 14858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:EvtHandler__setOORInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
14860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 14861 | arg2 = obj1; |
689b42ee | 14862 | if (obj2) { |
093d3ff1 RD |
14863 | { |
14864 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14865 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14866 | } | |
689b42ee | 14867 | } |
d14a1e28 RD |
14868 | { |
14869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
689b42ee | 14870 | wxEvtHandler__setOORInfo(arg1,arg2,arg3); |
d14a1e28 RD |
14871 | |
14872 | wxPyEndAllowThreads(__tstate); | |
14873 | if (PyErr_Occurred()) SWIG_fail; | |
14874 | } | |
14875 | Py_INCREF(Py_None); resultobj = Py_None; | |
14876 | return resultobj; | |
14877 | fail: | |
14878 | return NULL; | |
14879 | } | |
14880 | ||
14881 | ||
c32bde28 | 14882 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14883 | PyObject *obj; |
14884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14885 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
14886 | Py_INCREF(obj); | |
14887 | return Py_BuildValue((char *)""); | |
14888 | } | |
c32bde28 | 14889 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14890 | PyObject *resultobj; |
14891 | wxEventType result; | |
14892 | char *kwnames[] = { | |
14893 | NULL | |
14894 | }; | |
14895 | ||
14896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
14897 | { | |
14898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14899 | result = (wxEventType)wxNewEventType(); | |
14900 | ||
14901 | wxPyEndAllowThreads(__tstate); | |
14902 | if (PyErr_Occurred()) SWIG_fail; | |
14903 | } | |
093d3ff1 RD |
14904 | { |
14905 | resultobj = SWIG_From_int((int)(result)); | |
14906 | } | |
d14a1e28 RD |
14907 | return resultobj; |
14908 | fail: | |
14909 | return NULL; | |
14910 | } | |
14911 | ||
14912 | ||
c32bde28 | 14913 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14914 | PyObject *resultobj; |
14915 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14916 | PyObject * obj0 = 0 ; | |
14917 | char *kwnames[] = { | |
14918 | (char *) "self", NULL | |
14919 | }; | |
14920 | ||
14921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14924 | { |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | delete arg1; | |
14927 | ||
14928 | wxPyEndAllowThreads(__tstate); | |
14929 | if (PyErr_Occurred()) SWIG_fail; | |
14930 | } | |
14931 | Py_INCREF(Py_None); resultobj = Py_None; | |
14932 | return resultobj; | |
14933 | fail: | |
14934 | return NULL; | |
14935 | } | |
14936 | ||
14937 | ||
c32bde28 | 14938 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14939 | PyObject *resultobj; |
14940 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14941 | wxEventType arg2 ; | |
14942 | PyObject * obj0 = 0 ; | |
994141e6 | 14943 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14944 | char *kwnames[] = { |
14945 | (char *) "self",(char *) "typ", NULL | |
14946 | }; | |
14947 | ||
994141e6 | 14948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14951 | { | |
14952 | arg2 = (wxEventType)(SWIG_As_int(obj1)); | |
14953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14954 | } | |
d14a1e28 RD |
14955 | { |
14956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14957 | (arg1)->SetEventType(arg2); | |
14958 | ||
14959 | wxPyEndAllowThreads(__tstate); | |
14960 | if (PyErr_Occurred()) SWIG_fail; | |
14961 | } | |
14962 | Py_INCREF(Py_None); resultobj = Py_None; | |
14963 | return resultobj; | |
14964 | fail: | |
14965 | return NULL; | |
14966 | } | |
14967 | ||
14968 | ||
c32bde28 | 14969 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14970 | PyObject *resultobj; |
14971 | wxEvent *arg1 = (wxEvent *) 0 ; | |
14972 | wxEventType result; | |
14973 | PyObject * obj0 = 0 ; | |
14974 | char *kwnames[] = { | |
14975 | (char *) "self", NULL | |
14976 | }; | |
14977 | ||
14978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
14980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14981 | { |
14982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14983 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
14984 | ||
14985 | wxPyEndAllowThreads(__tstate); | |
14986 | if (PyErr_Occurred()) SWIG_fail; | |
14987 | } | |
093d3ff1 RD |
14988 | { |
14989 | resultobj = SWIG_From_int((int)(result)); | |
14990 | } | |
d14a1e28 RD |
14991 | return resultobj; |
14992 | fail: | |
14993 | return NULL; | |
14994 | } | |
14995 | ||
14996 | ||
c32bde28 | 14997 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14998 | PyObject *resultobj; |
14999 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15000 | wxObject *result; | |
15001 | PyObject * obj0 = 0 ; | |
15002 | char *kwnames[] = { | |
15003 | (char *) "self", NULL | |
15004 | }; | |
15005 | ||
15006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15009 | { |
15010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15011 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
15012 | ||
15013 | wxPyEndAllowThreads(__tstate); | |
15014 | if (PyErr_Occurred()) SWIG_fail; | |
15015 | } | |
15016 | { | |
412d302d | 15017 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
15018 | } |
15019 | return resultobj; | |
15020 | fail: | |
15021 | return NULL; | |
15022 | } | |
15023 | ||
15024 | ||
c32bde28 | 15025 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15026 | PyObject *resultobj; |
15027 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15028 | wxObject *arg2 = (wxObject *) 0 ; | |
15029 | PyObject * obj0 = 0 ; | |
15030 | PyObject * obj1 = 0 ; | |
15031 | char *kwnames[] = { | |
15032 | (char *) "self",(char *) "obj", NULL | |
15033 | }; | |
15034 | ||
15035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15038 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0); | |
15039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
15040 | { |
15041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15042 | (arg1)->SetEventObject(arg2); | |
15043 | ||
15044 | wxPyEndAllowThreads(__tstate); | |
15045 | if (PyErr_Occurred()) SWIG_fail; | |
15046 | } | |
15047 | Py_INCREF(Py_None); resultobj = Py_None; | |
15048 | return resultobj; | |
15049 | fail: | |
15050 | return NULL; | |
15051 | } | |
15052 | ||
15053 | ||
c32bde28 | 15054 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15055 | PyObject *resultobj; |
15056 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15057 | long result; | |
15058 | PyObject * obj0 = 0 ; | |
15059 | char *kwnames[] = { | |
15060 | (char *) "self", NULL | |
15061 | }; | |
15062 | ||
15063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15066 | { |
15067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15068 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
15069 | ||
15070 | wxPyEndAllowThreads(__tstate); | |
15071 | if (PyErr_Occurred()) SWIG_fail; | |
15072 | } | |
093d3ff1 RD |
15073 | { |
15074 | resultobj = SWIG_From_long((long)(result)); | |
15075 | } | |
d14a1e28 RD |
15076 | return resultobj; |
15077 | fail: | |
15078 | return NULL; | |
15079 | } | |
15080 | ||
15081 | ||
c32bde28 | 15082 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15083 | PyObject *resultobj; |
15084 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15085 | long arg2 = (long) 0 ; | |
15086 | PyObject * obj0 = 0 ; | |
994141e6 | 15087 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15088 | char *kwnames[] = { |
15089 | (char *) "self",(char *) "ts", NULL | |
15090 | }; | |
15091 | ||
994141e6 | 15092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 15095 | if (obj1) { |
093d3ff1 RD |
15096 | { |
15097 | arg2 = (long)(SWIG_As_long(obj1)); | |
15098 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15099 | } | |
994141e6 | 15100 | } |
d14a1e28 RD |
15101 | { |
15102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15103 | (arg1)->SetTimestamp(arg2); | |
15104 | ||
15105 | wxPyEndAllowThreads(__tstate); | |
15106 | if (PyErr_Occurred()) SWIG_fail; | |
15107 | } | |
15108 | Py_INCREF(Py_None); resultobj = Py_None; | |
15109 | return resultobj; | |
15110 | fail: | |
15111 | return NULL; | |
15112 | } | |
15113 | ||
15114 | ||
c32bde28 | 15115 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15116 | PyObject *resultobj; |
15117 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15118 | int result; | |
15119 | PyObject * obj0 = 0 ; | |
15120 | char *kwnames[] = { | |
15121 | (char *) "self", NULL | |
15122 | }; | |
15123 | ||
15124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15127 | { |
15128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15129 | result = (int)((wxEvent const *)arg1)->GetId(); | |
15130 | ||
15131 | wxPyEndAllowThreads(__tstate); | |
15132 | if (PyErr_Occurred()) SWIG_fail; | |
15133 | } | |
093d3ff1 RD |
15134 | { |
15135 | resultobj = SWIG_From_int((int)(result)); | |
15136 | } | |
d14a1e28 RD |
15137 | return resultobj; |
15138 | fail: | |
15139 | return NULL; | |
15140 | } | |
15141 | ||
15142 | ||
c32bde28 | 15143 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15144 | PyObject *resultobj; |
15145 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15146 | int arg2 ; | |
15147 | PyObject * obj0 = 0 ; | |
994141e6 | 15148 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15149 | char *kwnames[] = { |
15150 | (char *) "self",(char *) "Id", NULL | |
15151 | }; | |
15152 | ||
994141e6 | 15153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15156 | { | |
15157 | arg2 = (int)(SWIG_As_int(obj1)); | |
15158 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15159 | } | |
d14a1e28 RD |
15160 | { |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | (arg1)->SetId(arg2); | |
15163 | ||
15164 | wxPyEndAllowThreads(__tstate); | |
15165 | if (PyErr_Occurred()) SWIG_fail; | |
15166 | } | |
15167 | Py_INCREF(Py_None); resultobj = Py_None; | |
15168 | return resultobj; | |
15169 | fail: | |
15170 | return NULL; | |
15171 | } | |
15172 | ||
15173 | ||
c32bde28 | 15174 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15175 | PyObject *resultobj; |
15176 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15177 | bool result; | |
15178 | PyObject * obj0 = 0 ; | |
15179 | char *kwnames[] = { | |
15180 | (char *) "self", NULL | |
15181 | }; | |
15182 | ||
15183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15186 | { |
15187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15188 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
15189 | ||
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
4f89f6a3 RD |
15193 | { |
15194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15195 | } | |
d14a1e28 RD |
15196 | return resultobj; |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
c32bde28 | 15202 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15203 | PyObject *resultobj; |
15204 | wxEvent *arg1 = (wxEvent *) 0 ; | |
ae8162c8 | 15205 | bool arg2 = (bool) true ; |
d14a1e28 RD |
15206 | PyObject * obj0 = 0 ; |
15207 | PyObject * obj1 = 0 ; | |
15208 | char *kwnames[] = { | |
15209 | (char *) "self",(char *) "skip", NULL | |
15210 | }; | |
15211 | ||
15212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 15215 | if (obj1) { |
093d3ff1 RD |
15216 | { |
15217 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
15218 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15219 | } | |
d14a1e28 RD |
15220 | } |
15221 | { | |
15222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15223 | (arg1)->Skip(arg2); | |
15224 | ||
15225 | wxPyEndAllowThreads(__tstate); | |
15226 | if (PyErr_Occurred()) SWIG_fail; | |
15227 | } | |
15228 | Py_INCREF(Py_None); resultobj = Py_None; | |
15229 | return resultobj; | |
15230 | fail: | |
15231 | return NULL; | |
15232 | } | |
15233 | ||
15234 | ||
c32bde28 | 15235 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15236 | PyObject *resultobj; |
15237 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15238 | bool result; | |
15239 | PyObject * obj0 = 0 ; | |
15240 | char *kwnames[] = { | |
15241 | (char *) "self", NULL | |
15242 | }; | |
15243 | ||
15244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15247 | { |
15248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15249 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
15250 | ||
15251 | wxPyEndAllowThreads(__tstate); | |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
15253 | } | |
4f89f6a3 RD |
15254 | { |
15255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15256 | } | |
d14a1e28 RD |
15257 | return resultobj; |
15258 | fail: | |
15259 | return NULL; | |
15260 | } | |
15261 | ||
15262 | ||
c32bde28 | 15263 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15264 | PyObject *resultobj; |
15265 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15266 | bool result; | |
15267 | PyObject * obj0 = 0 ; | |
15268 | char *kwnames[] = { | |
15269 | (char *) "self", NULL | |
15270 | }; | |
15271 | ||
15272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15275 | { |
15276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15277 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
15278 | ||
15279 | wxPyEndAllowThreads(__tstate); | |
15280 | if (PyErr_Occurred()) SWIG_fail; | |
15281 | } | |
4f89f6a3 RD |
15282 | { |
15283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15284 | } | |
d14a1e28 RD |
15285 | return resultobj; |
15286 | fail: | |
15287 | return NULL; | |
15288 | } | |
15289 | ||
15290 | ||
c32bde28 | 15291 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15292 | PyObject *resultobj; |
15293 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15294 | int result; | |
15295 | PyObject * obj0 = 0 ; | |
15296 | char *kwnames[] = { | |
15297 | (char *) "self", NULL | |
15298 | }; | |
15299 | ||
15300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15303 | { |
15304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15305 | result = (int)(arg1)->StopPropagation(); | |
15306 | ||
15307 | wxPyEndAllowThreads(__tstate); | |
15308 | if (PyErr_Occurred()) SWIG_fail; | |
15309 | } | |
093d3ff1 RD |
15310 | { |
15311 | resultobj = SWIG_From_int((int)(result)); | |
15312 | } | |
d14a1e28 RD |
15313 | return resultobj; |
15314 | fail: | |
15315 | return NULL; | |
15316 | } | |
15317 | ||
15318 | ||
c32bde28 | 15319 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15320 | PyObject *resultobj; |
15321 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15322 | int arg2 ; | |
15323 | PyObject * obj0 = 0 ; | |
994141e6 | 15324 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15325 | char *kwnames[] = { |
15326 | (char *) "self",(char *) "propagationLevel", NULL | |
15327 | }; | |
15328 | ||
994141e6 | 15329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15332 | { | |
15333 | arg2 = (int)(SWIG_As_int(obj1)); | |
15334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15335 | } | |
d14a1e28 RD |
15336 | { |
15337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15338 | (arg1)->ResumePropagation(arg2); | |
15339 | ||
15340 | wxPyEndAllowThreads(__tstate); | |
15341 | if (PyErr_Occurred()) SWIG_fail; | |
15342 | } | |
15343 | Py_INCREF(Py_None); resultobj = Py_None; | |
15344 | return resultobj; | |
15345 | fail: | |
15346 | return NULL; | |
15347 | } | |
15348 | ||
15349 | ||
c32bde28 | 15350 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15351 | PyObject *resultobj; |
15352 | wxEvent *arg1 = (wxEvent *) 0 ; | |
15353 | wxEvent *result; | |
15354 | PyObject * obj0 = 0 ; | |
15355 | char *kwnames[] = { | |
15356 | (char *) "self", NULL | |
15357 | }; | |
15358 | ||
15359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); |
15361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15362 | { |
15363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15364 | result = (wxEvent *)(arg1)->Clone(); | |
15365 | ||
15366 | wxPyEndAllowThreads(__tstate); | |
15367 | if (PyErr_Occurred()) SWIG_fail; | |
15368 | } | |
15afbcd0 | 15369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
15370 | return resultobj; |
15371 | fail: | |
15372 | return NULL; | |
15373 | } | |
15374 | ||
15375 | ||
c32bde28 | 15376 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15377 | PyObject *obj; |
15378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15379 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
15380 | Py_INCREF(obj); | |
15381 | return Py_BuildValue((char *)""); | |
15382 | } | |
c32bde28 | 15383 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15384 | PyObject *resultobj; |
15385 | wxEvent *arg1 = 0 ; | |
15386 | wxPropagationDisabler *result; | |
15387 | PyObject * obj0 = 0 ; | |
15388 | char *kwnames[] = { | |
15389 | (char *) "event", NULL | |
15390 | }; | |
15391 | ||
15392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15393 | { |
15394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
15395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15396 | if (arg1 == NULL) { | |
15397 | SWIG_null_ref("wxEvent"); | |
15398 | } | |
15399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15400 | } |
15401 | { | |
15402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15403 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
15404 | ||
15405 | wxPyEndAllowThreads(__tstate); | |
15406 | if (PyErr_Occurred()) SWIG_fail; | |
15407 | } | |
15afbcd0 | 15408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
15409 | return resultobj; |
15410 | fail: | |
15411 | return NULL; | |
15412 | } | |
15413 | ||
15414 | ||
c32bde28 | 15415 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15416 | PyObject *resultobj; |
15417 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
15418 | PyObject * obj0 = 0 ; | |
15419 | char *kwnames[] = { | |
15420 | (char *) "self", NULL | |
15421 | }; | |
15422 | ||
15423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_EXCEPTION | 0); |
15425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15426 | { |
15427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15428 | delete arg1; | |
15429 | ||
15430 | wxPyEndAllowThreads(__tstate); | |
15431 | if (PyErr_Occurred()) SWIG_fail; | |
15432 | } | |
15433 | Py_INCREF(Py_None); resultobj = Py_None; | |
15434 | return resultobj; | |
15435 | fail: | |
15436 | return NULL; | |
15437 | } | |
15438 | ||
15439 | ||
c32bde28 | 15440 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15441 | PyObject *obj; |
15442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15443 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
15444 | Py_INCREF(obj); | |
15445 | return Py_BuildValue((char *)""); | |
15446 | } | |
c32bde28 | 15447 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15448 | PyObject *resultobj; |
15449 | wxEvent *arg1 = 0 ; | |
15450 | wxPropagateOnce *result; | |
15451 | PyObject * obj0 = 0 ; | |
15452 | char *kwnames[] = { | |
15453 | (char *) "event", NULL | |
15454 | }; | |
15455 | ||
15456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15457 | { |
15458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
15459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15460 | if (arg1 == NULL) { | |
15461 | SWIG_null_ref("wxEvent"); | |
15462 | } | |
15463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15464 | } |
15465 | { | |
15466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15467 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
15468 | ||
15469 | wxPyEndAllowThreads(__tstate); | |
15470 | if (PyErr_Occurred()) SWIG_fail; | |
15471 | } | |
15afbcd0 | 15472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
15473 | return resultobj; |
15474 | fail: | |
15475 | return NULL; | |
15476 | } | |
15477 | ||
15478 | ||
c32bde28 | 15479 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15480 | PyObject *resultobj; |
15481 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
15482 | PyObject * obj0 = 0 ; | |
15483 | char *kwnames[] = { | |
15484 | (char *) "self", NULL | |
15485 | }; | |
15486 | ||
15487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_EXCEPTION | 0); |
15489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15490 | { |
15491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15492 | delete arg1; | |
15493 | ||
15494 | wxPyEndAllowThreads(__tstate); | |
15495 | if (PyErr_Occurred()) SWIG_fail; | |
15496 | } | |
15497 | Py_INCREF(Py_None); resultobj = Py_None; | |
15498 | return resultobj; | |
15499 | fail: | |
15500 | return NULL; | |
15501 | } | |
15502 | ||
15503 | ||
c32bde28 | 15504 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15505 | PyObject *obj; |
15506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15507 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
15508 | Py_INCREF(obj); | |
15509 | return Py_BuildValue((char *)""); | |
15510 | } | |
c32bde28 | 15511 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15512 | PyObject *resultobj; |
15513 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15514 | int arg2 = (int) 0 ; | |
15515 | wxCommandEvent *result; | |
994141e6 RD |
15516 | PyObject * obj0 = 0 ; |
15517 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15518 | char *kwnames[] = { |
15519 | (char *) "commandType",(char *) "winid", NULL | |
15520 | }; | |
15521 | ||
994141e6 RD |
15522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
15523 | if (obj0) { | |
093d3ff1 RD |
15524 | { |
15525 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15526 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15527 | } | |
994141e6 RD |
15528 | } |
15529 | if (obj1) { | |
093d3ff1 RD |
15530 | { |
15531 | arg2 = (int)(SWIG_As_int(obj1)); | |
15532 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15533 | } | |
994141e6 | 15534 | } |
d14a1e28 RD |
15535 | { |
15536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15537 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
15538 | ||
15539 | wxPyEndAllowThreads(__tstate); | |
15540 | if (PyErr_Occurred()) SWIG_fail; | |
15541 | } | |
15afbcd0 | 15542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
15543 | return resultobj; |
15544 | fail: | |
15545 | return NULL; | |
15546 | } | |
15547 | ||
15548 | ||
c32bde28 | 15549 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15550 | PyObject *resultobj; |
15551 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15552 | int result; | |
15553 | PyObject * obj0 = 0 ; | |
15554 | char *kwnames[] = { | |
15555 | (char *) "self", NULL | |
15556 | }; | |
15557 | ||
15558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15561 | { |
15562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15563 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
15564 | ||
15565 | wxPyEndAllowThreads(__tstate); | |
15566 | if (PyErr_Occurred()) SWIG_fail; | |
15567 | } | |
093d3ff1 RD |
15568 | { |
15569 | resultobj = SWIG_From_int((int)(result)); | |
15570 | } | |
d14a1e28 RD |
15571 | return resultobj; |
15572 | fail: | |
15573 | return NULL; | |
15574 | } | |
15575 | ||
15576 | ||
c32bde28 | 15577 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15578 | PyObject *resultobj; |
15579 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15580 | wxString *arg2 = 0 ; | |
ae8162c8 | 15581 | bool temp2 = false ; |
d14a1e28 RD |
15582 | PyObject * obj0 = 0 ; |
15583 | PyObject * obj1 = 0 ; | |
15584 | char *kwnames[] = { | |
15585 | (char *) "self",(char *) "s", NULL | |
15586 | }; | |
15587 | ||
15588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15591 | { |
15592 | arg2 = wxString_in_helper(obj1); | |
15593 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15594 | temp2 = true; |
d14a1e28 RD |
15595 | } |
15596 | { | |
15597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15598 | (arg1)->SetString((wxString const &)*arg2); | |
15599 | ||
15600 | wxPyEndAllowThreads(__tstate); | |
15601 | if (PyErr_Occurred()) SWIG_fail; | |
15602 | } | |
15603 | Py_INCREF(Py_None); resultobj = Py_None; | |
15604 | { | |
15605 | if (temp2) | |
15606 | delete arg2; | |
15607 | } | |
15608 | return resultobj; | |
15609 | fail: | |
15610 | { | |
15611 | if (temp2) | |
15612 | delete arg2; | |
15613 | } | |
15614 | return NULL; | |
15615 | } | |
15616 | ||
15617 | ||
c32bde28 | 15618 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15619 | PyObject *resultobj; |
15620 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15621 | wxString result; | |
15622 | PyObject * obj0 = 0 ; | |
15623 | char *kwnames[] = { | |
15624 | (char *) "self", NULL | |
15625 | }; | |
15626 | ||
15627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15630 | { |
15631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15632 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
15633 | ||
15634 | wxPyEndAllowThreads(__tstate); | |
15635 | if (PyErr_Occurred()) SWIG_fail; | |
15636 | } | |
15637 | { | |
15638 | #if wxUSE_UNICODE | |
15639 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15640 | #else | |
15641 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15642 | #endif | |
15643 | } | |
15644 | return resultobj; | |
15645 | fail: | |
15646 | return NULL; | |
15647 | } | |
15648 | ||
15649 | ||
c32bde28 | 15650 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15651 | PyObject *resultobj; |
15652 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15653 | bool result; | |
15654 | PyObject * obj0 = 0 ; | |
15655 | char *kwnames[] = { | |
15656 | (char *) "self", NULL | |
15657 | }; | |
15658 | ||
15659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15662 | { |
15663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15664 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
15665 | ||
15666 | wxPyEndAllowThreads(__tstate); | |
15667 | if (PyErr_Occurred()) SWIG_fail; | |
15668 | } | |
4f89f6a3 RD |
15669 | { |
15670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15671 | } | |
d14a1e28 RD |
15672 | return resultobj; |
15673 | fail: | |
15674 | return NULL; | |
15675 | } | |
15676 | ||
15677 | ||
c32bde28 | 15678 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15679 | PyObject *resultobj; |
15680 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15681 | bool result; | |
15682 | PyObject * obj0 = 0 ; | |
15683 | char *kwnames[] = { | |
15684 | (char *) "self", NULL | |
15685 | }; | |
15686 | ||
15687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15690 | { |
15691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15692 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
15693 | ||
15694 | wxPyEndAllowThreads(__tstate); | |
15695 | if (PyErr_Occurred()) SWIG_fail; | |
15696 | } | |
4f89f6a3 RD |
15697 | { |
15698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15699 | } | |
d14a1e28 RD |
15700 | return resultobj; |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
c32bde28 | 15706 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15707 | PyObject *resultobj; |
15708 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15709 | long arg2 ; | |
15710 | PyObject * obj0 = 0 ; | |
994141e6 | 15711 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15712 | char *kwnames[] = { |
15713 | (char *) "self",(char *) "extraLong", NULL | |
15714 | }; | |
15715 | ||
994141e6 | 15716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15719 | { | |
15720 | arg2 = (long)(SWIG_As_long(obj1)); | |
15721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15722 | } | |
d14a1e28 RD |
15723 | { |
15724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15725 | (arg1)->SetExtraLong(arg2); | |
15726 | ||
15727 | wxPyEndAllowThreads(__tstate); | |
15728 | if (PyErr_Occurred()) SWIG_fail; | |
15729 | } | |
15730 | Py_INCREF(Py_None); resultobj = Py_None; | |
15731 | return resultobj; | |
15732 | fail: | |
15733 | return NULL; | |
15734 | } | |
15735 | ||
15736 | ||
c32bde28 | 15737 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15738 | PyObject *resultobj; |
15739 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15740 | long result; | |
15741 | PyObject * obj0 = 0 ; | |
15742 | char *kwnames[] = { | |
15743 | (char *) "self", NULL | |
15744 | }; | |
15745 | ||
15746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15749 | { |
15750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15751 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
15752 | ||
15753 | wxPyEndAllowThreads(__tstate); | |
15754 | if (PyErr_Occurred()) SWIG_fail; | |
15755 | } | |
093d3ff1 RD |
15756 | { |
15757 | resultobj = SWIG_From_long((long)(result)); | |
15758 | } | |
d14a1e28 RD |
15759 | return resultobj; |
15760 | fail: | |
15761 | return NULL; | |
15762 | } | |
15763 | ||
15764 | ||
c32bde28 | 15765 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15766 | PyObject *resultobj; |
15767 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15768 | int arg2 ; | |
15769 | PyObject * obj0 = 0 ; | |
994141e6 | 15770 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15771 | char *kwnames[] = { |
15772 | (char *) "self",(char *) "i", NULL | |
15773 | }; | |
15774 | ||
994141e6 | 15775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15778 | { | |
15779 | arg2 = (int)(SWIG_As_int(obj1)); | |
15780 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15781 | } | |
d14a1e28 RD |
15782 | { |
15783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15784 | (arg1)->SetInt(arg2); | |
15785 | ||
15786 | wxPyEndAllowThreads(__tstate); | |
15787 | if (PyErr_Occurred()) SWIG_fail; | |
15788 | } | |
15789 | Py_INCREF(Py_None); resultobj = Py_None; | |
15790 | return resultobj; | |
15791 | fail: | |
15792 | return NULL; | |
15793 | } | |
15794 | ||
15795 | ||
c32bde28 | 15796 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15797 | PyObject *resultobj; |
15798 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15799 | long result; | |
15800 | PyObject * obj0 = 0 ; | |
15801 | char *kwnames[] = { | |
15802 | (char *) "self", NULL | |
15803 | }; | |
15804 | ||
15805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15808 | { |
15809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15810 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
15811 | ||
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
093d3ff1 RD |
15815 | { |
15816 | resultobj = SWIG_From_long((long)(result)); | |
15817 | } | |
d14a1e28 RD |
15818 | return resultobj; |
15819 | fail: | |
15820 | return NULL; | |
15821 | } | |
15822 | ||
15823 | ||
c32bde28 | 15824 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15825 | PyObject *resultobj; |
15826 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
15827 | wxEvent *result; | |
15828 | PyObject * obj0 = 0 ; | |
15829 | char *kwnames[] = { | |
15830 | (char *) "self", NULL | |
15831 | }; | |
15832 | ||
15833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
15835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15836 | { |
15837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15838 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
15839 | ||
15840 | wxPyEndAllowThreads(__tstate); | |
15841 | if (PyErr_Occurred()) SWIG_fail; | |
15842 | } | |
15afbcd0 | 15843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
15844 | return resultobj; |
15845 | fail: | |
15846 | return NULL; | |
15847 | } | |
15848 | ||
15849 | ||
c32bde28 | 15850 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15851 | PyObject *obj; |
15852 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15853 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
15854 | Py_INCREF(obj); | |
15855 | return Py_BuildValue((char *)""); | |
15856 | } | |
c32bde28 | 15857 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15858 | PyObject *resultobj; |
15859 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15860 | int arg2 = (int) 0 ; | |
15861 | wxNotifyEvent *result; | |
994141e6 RD |
15862 | PyObject * obj0 = 0 ; |
15863 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15864 | char *kwnames[] = { |
15865 | (char *) "commandType",(char *) "winid", NULL | |
15866 | }; | |
15867 | ||
994141e6 RD |
15868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
15869 | if (obj0) { | |
093d3ff1 RD |
15870 | { |
15871 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15873 | } | |
994141e6 RD |
15874 | } |
15875 | if (obj1) { | |
093d3ff1 RD |
15876 | { |
15877 | arg2 = (int)(SWIG_As_int(obj1)); | |
15878 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15879 | } | |
994141e6 | 15880 | } |
d14a1e28 RD |
15881 | { |
15882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15883 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
15884 | ||
15885 | wxPyEndAllowThreads(__tstate); | |
15886 | if (PyErr_Occurred()) SWIG_fail; | |
15887 | } | |
15afbcd0 | 15888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
15889 | return resultobj; |
15890 | fail: | |
15891 | return NULL; | |
15892 | } | |
15893 | ||
15894 | ||
c32bde28 | 15895 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15896 | PyObject *resultobj; |
15897 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15898 | PyObject * obj0 = 0 ; | |
15899 | char *kwnames[] = { | |
15900 | (char *) "self", NULL | |
15901 | }; | |
15902 | ||
15903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15906 | { |
15907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15908 | (arg1)->Veto(); | |
15909 | ||
15910 | wxPyEndAllowThreads(__tstate); | |
15911 | if (PyErr_Occurred()) SWIG_fail; | |
15912 | } | |
15913 | Py_INCREF(Py_None); resultobj = Py_None; | |
15914 | return resultobj; | |
15915 | fail: | |
15916 | return NULL; | |
15917 | } | |
15918 | ||
15919 | ||
c32bde28 | 15920 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15921 | PyObject *resultobj; |
15922 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15923 | PyObject * obj0 = 0 ; | |
15924 | char *kwnames[] = { | |
15925 | (char *) "self", NULL | |
15926 | }; | |
15927 | ||
15928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15931 | { |
15932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15933 | (arg1)->Allow(); | |
15934 | ||
15935 | wxPyEndAllowThreads(__tstate); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15938 | Py_INCREF(Py_None); resultobj = Py_None; | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
c32bde28 | 15945 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15946 | PyObject *resultobj; |
15947 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
15948 | bool result; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "self", NULL | |
15952 | }; | |
15953 | ||
15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0); |
15956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15957 | { |
15958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15959 | result = (bool)(arg1)->IsAllowed(); | |
15960 | ||
15961 | wxPyEndAllowThreads(__tstate); | |
15962 | if (PyErr_Occurred()) SWIG_fail; | |
15963 | } | |
4f89f6a3 RD |
15964 | { |
15965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15966 | } | |
d14a1e28 RD |
15967 | return resultobj; |
15968 | fail: | |
15969 | return NULL; | |
15970 | } | |
15971 | ||
15972 | ||
c32bde28 | 15973 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15974 | PyObject *obj; |
15975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15976 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
15977 | Py_INCREF(obj); | |
15978 | return Py_BuildValue((char *)""); | |
15979 | } | |
c32bde28 | 15980 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15981 | PyObject *resultobj; |
15982 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15983 | int arg2 = (int) 0 ; | |
15984 | int arg3 = (int) 0 ; | |
15985 | int arg4 = (int) 0 ; | |
15986 | wxScrollEvent *result; | |
994141e6 RD |
15987 | PyObject * obj0 = 0 ; |
15988 | PyObject * obj1 = 0 ; | |
15989 | PyObject * obj2 = 0 ; | |
15990 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15991 | char *kwnames[] = { |
15992 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
15993 | }; | |
15994 | ||
994141e6 RD |
15995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15996 | if (obj0) { | |
093d3ff1 RD |
15997 | { |
15998 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
15999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16000 | } | |
994141e6 RD |
16001 | } |
16002 | if (obj1) { | |
093d3ff1 RD |
16003 | { |
16004 | arg2 = (int)(SWIG_As_int(obj1)); | |
16005 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16006 | } | |
994141e6 RD |
16007 | } |
16008 | if (obj2) { | |
093d3ff1 RD |
16009 | { |
16010 | arg3 = (int)(SWIG_As_int(obj2)); | |
16011 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16012 | } | |
994141e6 RD |
16013 | } |
16014 | if (obj3) { | |
093d3ff1 RD |
16015 | { |
16016 | arg4 = (int)(SWIG_As_int(obj3)); | |
16017 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16018 | } | |
994141e6 | 16019 | } |
d14a1e28 RD |
16020 | { |
16021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16022 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
16023 | ||
16024 | wxPyEndAllowThreads(__tstate); | |
16025 | if (PyErr_Occurred()) SWIG_fail; | |
16026 | } | |
15afbcd0 | 16027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
16028 | return resultobj; |
16029 | fail: | |
16030 | return NULL; | |
16031 | } | |
16032 | ||
16033 | ||
c32bde28 | 16034 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16035 | PyObject *resultobj; |
16036 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
16037 | int result; | |
16038 | PyObject * obj0 = 0 ; | |
16039 | char *kwnames[] = { | |
16040 | (char *) "self", NULL | |
16041 | }; | |
16042 | ||
16043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
16045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16046 | { |
16047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16048 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
16049 | ||
16050 | wxPyEndAllowThreads(__tstate); | |
16051 | if (PyErr_Occurred()) SWIG_fail; | |
16052 | } | |
093d3ff1 RD |
16053 | { |
16054 | resultobj = SWIG_From_int((int)(result)); | |
16055 | } | |
d14a1e28 RD |
16056 | return resultobj; |
16057 | fail: | |
16058 | return NULL; | |
16059 | } | |
16060 | ||
16061 | ||
c32bde28 | 16062 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16063 | PyObject *resultobj; |
16064 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
16065 | int result; | |
16066 | PyObject * obj0 = 0 ; | |
16067 | char *kwnames[] = { | |
16068 | (char *) "self", NULL | |
16069 | }; | |
16070 | ||
16071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
16073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16074 | { |
16075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16076 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
16077 | ||
16078 | wxPyEndAllowThreads(__tstate); | |
16079 | if (PyErr_Occurred()) SWIG_fail; | |
16080 | } | |
093d3ff1 RD |
16081 | { |
16082 | resultobj = SWIG_From_int((int)(result)); | |
16083 | } | |
d14a1e28 RD |
16084 | return resultobj; |
16085 | fail: | |
16086 | return NULL; | |
16087 | } | |
16088 | ||
16089 | ||
c32bde28 | 16090 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16091 | PyObject *resultobj; |
16092 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
16093 | int arg2 ; | |
16094 | PyObject * obj0 = 0 ; | |
994141e6 | 16095 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16096 | char *kwnames[] = { |
16097 | (char *) "self",(char *) "orient", NULL | |
16098 | }; | |
16099 | ||
994141e6 | 16100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
16102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16103 | { | |
16104 | arg2 = (int)(SWIG_As_int(obj1)); | |
16105 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16106 | } | |
d14a1e28 RD |
16107 | { |
16108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16109 | (arg1)->SetOrientation(arg2); | |
16110 | ||
16111 | wxPyEndAllowThreads(__tstate); | |
16112 | if (PyErr_Occurred()) SWIG_fail; | |
16113 | } | |
16114 | Py_INCREF(Py_None); resultobj = Py_None; | |
16115 | return resultobj; | |
16116 | fail: | |
16117 | return NULL; | |
16118 | } | |
16119 | ||
16120 | ||
c32bde28 | 16121 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16122 | PyObject *resultobj; |
16123 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
16124 | int arg2 ; | |
16125 | PyObject * obj0 = 0 ; | |
994141e6 | 16126 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16127 | char *kwnames[] = { |
16128 | (char *) "self",(char *) "pos", NULL | |
16129 | }; | |
16130 | ||
994141e6 | 16131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0); |
16133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16134 | { | |
16135 | arg2 = (int)(SWIG_As_int(obj1)); | |
16136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16137 | } | |
d14a1e28 RD |
16138 | { |
16139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16140 | (arg1)->SetPosition(arg2); | |
16141 | ||
16142 | wxPyEndAllowThreads(__tstate); | |
16143 | if (PyErr_Occurred()) SWIG_fail; | |
16144 | } | |
16145 | Py_INCREF(Py_None); resultobj = Py_None; | |
16146 | return resultobj; | |
16147 | fail: | |
16148 | return NULL; | |
16149 | } | |
16150 | ||
16151 | ||
c32bde28 | 16152 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16153 | PyObject *obj; |
16154 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16155 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
16156 | Py_INCREF(obj); | |
16157 | return Py_BuildValue((char *)""); | |
16158 | } | |
c32bde28 | 16159 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16160 | PyObject *resultobj; |
16161 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16162 | int arg2 = (int) 0 ; | |
16163 | int arg3 = (int) 0 ; | |
16164 | wxScrollWinEvent *result; | |
994141e6 RD |
16165 | PyObject * obj0 = 0 ; |
16166 | PyObject * obj1 = 0 ; | |
16167 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16168 | char *kwnames[] = { |
16169 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
16170 | }; | |
16171 | ||
994141e6 RD |
16172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16173 | if (obj0) { | |
093d3ff1 RD |
16174 | { |
16175 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16177 | } | |
994141e6 RD |
16178 | } |
16179 | if (obj1) { | |
093d3ff1 RD |
16180 | { |
16181 | arg2 = (int)(SWIG_As_int(obj1)); | |
16182 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16183 | } | |
994141e6 RD |
16184 | } |
16185 | if (obj2) { | |
093d3ff1 RD |
16186 | { |
16187 | arg3 = (int)(SWIG_As_int(obj2)); | |
16188 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16189 | } | |
994141e6 | 16190 | } |
d14a1e28 RD |
16191 | { |
16192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16193 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
16194 | ||
16195 | wxPyEndAllowThreads(__tstate); | |
16196 | if (PyErr_Occurred()) SWIG_fail; | |
16197 | } | |
15afbcd0 | 16198 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
16199 | return resultobj; |
16200 | fail: | |
16201 | return NULL; | |
16202 | } | |
16203 | ||
16204 | ||
c32bde28 | 16205 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16206 | PyObject *resultobj; |
16207 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
16208 | int result; | |
16209 | PyObject * obj0 = 0 ; | |
16210 | char *kwnames[] = { | |
16211 | (char *) "self", NULL | |
16212 | }; | |
16213 | ||
16214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
16216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16217 | { |
16218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16219 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
16220 | ||
16221 | wxPyEndAllowThreads(__tstate); | |
16222 | if (PyErr_Occurred()) SWIG_fail; | |
16223 | } | |
093d3ff1 RD |
16224 | { |
16225 | resultobj = SWIG_From_int((int)(result)); | |
16226 | } | |
d14a1e28 RD |
16227 | return resultobj; |
16228 | fail: | |
16229 | return NULL; | |
16230 | } | |
16231 | ||
16232 | ||
c32bde28 | 16233 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16234 | PyObject *resultobj; |
16235 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
16236 | int result; | |
16237 | PyObject * obj0 = 0 ; | |
16238 | char *kwnames[] = { | |
16239 | (char *) "self", NULL | |
16240 | }; | |
16241 | ||
16242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
16244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16245 | { |
16246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16247 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
16248 | ||
16249 | wxPyEndAllowThreads(__tstate); | |
16250 | if (PyErr_Occurred()) SWIG_fail; | |
16251 | } | |
093d3ff1 RD |
16252 | { |
16253 | resultobj = SWIG_From_int((int)(result)); | |
16254 | } | |
d14a1e28 RD |
16255 | return resultobj; |
16256 | fail: | |
16257 | return NULL; | |
16258 | } | |
16259 | ||
16260 | ||
c32bde28 | 16261 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16262 | PyObject *resultobj; |
16263 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
16264 | int arg2 ; | |
16265 | PyObject * obj0 = 0 ; | |
994141e6 | 16266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16267 | char *kwnames[] = { |
16268 | (char *) "self",(char *) "orient", NULL | |
16269 | }; | |
16270 | ||
994141e6 | 16271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
16273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16274 | { | |
16275 | arg2 = (int)(SWIG_As_int(obj1)); | |
16276 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16277 | } | |
d14a1e28 RD |
16278 | { |
16279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16280 | (arg1)->SetOrientation(arg2); | |
16281 | ||
16282 | wxPyEndAllowThreads(__tstate); | |
16283 | if (PyErr_Occurred()) SWIG_fail; | |
16284 | } | |
16285 | Py_INCREF(Py_None); resultobj = Py_None; | |
16286 | return resultobj; | |
16287 | fail: | |
16288 | return NULL; | |
16289 | } | |
16290 | ||
16291 | ||
c32bde28 | 16292 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16293 | PyObject *resultobj; |
16294 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
16295 | int arg2 ; | |
16296 | PyObject * obj0 = 0 ; | |
994141e6 | 16297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16298 | char *kwnames[] = { |
16299 | (char *) "self",(char *) "pos", NULL | |
16300 | }; | |
16301 | ||
994141e6 | 16302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0); |
16304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16305 | { | |
16306 | arg2 = (int)(SWIG_As_int(obj1)); | |
16307 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16308 | } | |
d14a1e28 RD |
16309 | { |
16310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16311 | (arg1)->SetPosition(arg2); | |
16312 | ||
16313 | wxPyEndAllowThreads(__tstate); | |
16314 | if (PyErr_Occurred()) SWIG_fail; | |
16315 | } | |
16316 | Py_INCREF(Py_None); resultobj = Py_None; | |
16317 | return resultobj; | |
16318 | fail: | |
16319 | return NULL; | |
16320 | } | |
16321 | ||
16322 | ||
c32bde28 | 16323 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16324 | PyObject *obj; |
16325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16326 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
16327 | Py_INCREF(obj); | |
16328 | return Py_BuildValue((char *)""); | |
16329 | } | |
c32bde28 | 16330 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16331 | PyObject *resultobj; |
16332 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16333 | wxMouseEvent *result; | |
994141e6 | 16334 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16335 | char *kwnames[] = { |
16336 | (char *) "mouseType", NULL | |
16337 | }; | |
16338 | ||
994141e6 RD |
16339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
16340 | if (obj0) { | |
093d3ff1 RD |
16341 | { |
16342 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16344 | } | |
994141e6 | 16345 | } |
d14a1e28 RD |
16346 | { |
16347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16348 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
16349 | ||
16350 | wxPyEndAllowThreads(__tstate); | |
16351 | if (PyErr_Occurred()) SWIG_fail; | |
16352 | } | |
16353 | { | |
412d302d | 16354 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
16355 | } |
16356 | return resultobj; | |
16357 | fail: | |
16358 | return NULL; | |
16359 | } | |
16360 | ||
16361 | ||
c32bde28 | 16362 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16363 | PyObject *resultobj; |
16364 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16365 | bool result; | |
16366 | PyObject * obj0 = 0 ; | |
16367 | char *kwnames[] = { | |
16368 | (char *) "self", NULL | |
16369 | }; | |
16370 | ||
16371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16374 | { |
16375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16376 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
16377 | ||
16378 | wxPyEndAllowThreads(__tstate); | |
16379 | if (PyErr_Occurred()) SWIG_fail; | |
16380 | } | |
4f89f6a3 RD |
16381 | { |
16382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16383 | } | |
d14a1e28 RD |
16384 | return resultobj; |
16385 | fail: | |
16386 | return NULL; | |
16387 | } | |
16388 | ||
16389 | ||
c32bde28 | 16390 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16391 | PyObject *resultobj; |
16392 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16393 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
16394 | bool result; | |
16395 | PyObject * obj0 = 0 ; | |
994141e6 | 16396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16397 | char *kwnames[] = { |
16398 | (char *) "self",(char *) "but", NULL | |
16399 | }; | |
16400 | ||
994141e6 | 16401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 16404 | if (obj1) { |
093d3ff1 RD |
16405 | { |
16406 | arg2 = (int)(SWIG_As_int(obj1)); | |
16407 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16408 | } | |
994141e6 | 16409 | } |
d14a1e28 RD |
16410 | { |
16411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16412 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
16413 | ||
16414 | wxPyEndAllowThreads(__tstate); | |
16415 | if (PyErr_Occurred()) SWIG_fail; | |
16416 | } | |
4f89f6a3 RD |
16417 | { |
16418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16419 | } | |
d14a1e28 RD |
16420 | return resultobj; |
16421 | fail: | |
16422 | return NULL; | |
16423 | } | |
16424 | ||
16425 | ||
c32bde28 | 16426 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16427 | PyObject *resultobj; |
16428 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16429 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
16430 | bool result; | |
16431 | PyObject * obj0 = 0 ; | |
994141e6 | 16432 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16433 | char *kwnames[] = { |
16434 | (char *) "self",(char *) "but", NULL | |
16435 | }; | |
16436 | ||
994141e6 | 16437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16438 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16439 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 16440 | if (obj1) { |
093d3ff1 RD |
16441 | { |
16442 | arg2 = (int)(SWIG_As_int(obj1)); | |
16443 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16444 | } | |
994141e6 | 16445 | } |
d14a1e28 RD |
16446 | { |
16447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16448 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
16449 | ||
16450 | wxPyEndAllowThreads(__tstate); | |
16451 | if (PyErr_Occurred()) SWIG_fail; | |
16452 | } | |
4f89f6a3 RD |
16453 | { |
16454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16455 | } | |
d14a1e28 RD |
16456 | return resultobj; |
16457 | fail: | |
16458 | return NULL; | |
16459 | } | |
16460 | ||
16461 | ||
c32bde28 | 16462 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16463 | PyObject *resultobj; |
16464 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16465 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
16466 | bool result; | |
16467 | PyObject * obj0 = 0 ; | |
994141e6 | 16468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16469 | char *kwnames[] = { |
16470 | (char *) "self",(char *) "but", NULL | |
16471 | }; | |
16472 | ||
994141e6 | 16473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 16476 | if (obj1) { |
093d3ff1 RD |
16477 | { |
16478 | arg2 = (int)(SWIG_As_int(obj1)); | |
16479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16480 | } | |
994141e6 | 16481 | } |
d14a1e28 RD |
16482 | { |
16483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16484 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
16485 | ||
16486 | wxPyEndAllowThreads(__tstate); | |
16487 | if (PyErr_Occurred()) SWIG_fail; | |
16488 | } | |
4f89f6a3 RD |
16489 | { |
16490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16491 | } | |
d14a1e28 RD |
16492 | return resultobj; |
16493 | fail: | |
16494 | return NULL; | |
16495 | } | |
16496 | ||
16497 | ||
c32bde28 | 16498 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16499 | PyObject *resultobj; |
16500 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16501 | int arg2 ; | |
16502 | bool result; | |
16503 | PyObject * obj0 = 0 ; | |
994141e6 | 16504 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16505 | char *kwnames[] = { |
16506 | (char *) "self",(char *) "but", NULL | |
16507 | }; | |
16508 | ||
994141e6 | 16509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16512 | { | |
16513 | arg2 = (int)(SWIG_As_int(obj1)); | |
16514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16515 | } | |
d14a1e28 RD |
16516 | { |
16517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16518 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
16519 | ||
16520 | wxPyEndAllowThreads(__tstate); | |
16521 | if (PyErr_Occurred()) SWIG_fail; | |
16522 | } | |
4f89f6a3 RD |
16523 | { |
16524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16525 | } | |
d14a1e28 RD |
16526 | return resultobj; |
16527 | fail: | |
16528 | return NULL; | |
16529 | } | |
16530 | ||
16531 | ||
c32bde28 | 16532 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16533 | PyObject *resultobj; |
16534 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16535 | int arg2 ; | |
16536 | bool result; | |
16537 | PyObject * obj0 = 0 ; | |
994141e6 | 16538 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16539 | char *kwnames[] = { |
16540 | (char *) "self",(char *) "but", NULL | |
16541 | }; | |
16542 | ||
994141e6 | 16543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16546 | { | |
16547 | arg2 = (int)(SWIG_As_int(obj1)); | |
16548 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16549 | } | |
d14a1e28 RD |
16550 | { |
16551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16552 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
16553 | ||
16554 | wxPyEndAllowThreads(__tstate); | |
16555 | if (PyErr_Occurred()) SWIG_fail; | |
16556 | } | |
4f89f6a3 RD |
16557 | { |
16558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16559 | } | |
d14a1e28 RD |
16560 | return resultobj; |
16561 | fail: | |
16562 | return NULL; | |
16563 | } | |
16564 | ||
16565 | ||
c32bde28 | 16566 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16567 | PyObject *resultobj; |
16568 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16569 | int result; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | char *kwnames[] = { | |
16572 | (char *) "self", NULL | |
16573 | }; | |
16574 | ||
16575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16578 | { |
16579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16580 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
16581 | ||
16582 | wxPyEndAllowThreads(__tstate); | |
16583 | if (PyErr_Occurred()) SWIG_fail; | |
16584 | } | |
093d3ff1 RD |
16585 | { |
16586 | resultobj = SWIG_From_int((int)(result)); | |
16587 | } | |
d14a1e28 RD |
16588 | return resultobj; |
16589 | fail: | |
16590 | return NULL; | |
16591 | } | |
16592 | ||
16593 | ||
c32bde28 | 16594 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16595 | PyObject *resultobj; |
16596 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16597 | bool result; | |
16598 | PyObject * obj0 = 0 ; | |
16599 | char *kwnames[] = { | |
16600 | (char *) "self", NULL | |
16601 | }; | |
16602 | ||
16603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16606 | { |
16607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16608 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
16609 | ||
16610 | wxPyEndAllowThreads(__tstate); | |
16611 | if (PyErr_Occurred()) SWIG_fail; | |
16612 | } | |
4f89f6a3 RD |
16613 | { |
16614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16615 | } | |
d14a1e28 RD |
16616 | return resultobj; |
16617 | fail: | |
16618 | return NULL; | |
16619 | } | |
16620 | ||
16621 | ||
c32bde28 | 16622 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16623 | PyObject *resultobj; |
16624 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16625 | bool result; | |
16626 | PyObject * obj0 = 0 ; | |
16627 | char *kwnames[] = { | |
16628 | (char *) "self", NULL | |
16629 | }; | |
16630 | ||
16631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16634 | { |
16635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16636 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
16637 | ||
16638 | wxPyEndAllowThreads(__tstate); | |
16639 | if (PyErr_Occurred()) SWIG_fail; | |
16640 | } | |
4f89f6a3 RD |
16641 | { |
16642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16643 | } | |
d14a1e28 RD |
16644 | return resultobj; |
16645 | fail: | |
16646 | return NULL; | |
16647 | } | |
16648 | ||
16649 | ||
c32bde28 | 16650 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16651 | PyObject *resultobj; |
16652 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16653 | bool result; | |
16654 | PyObject * obj0 = 0 ; | |
16655 | char *kwnames[] = { | |
16656 | (char *) "self", NULL | |
16657 | }; | |
16658 | ||
16659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16662 | { |
16663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16664 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
16665 | ||
16666 | wxPyEndAllowThreads(__tstate); | |
16667 | if (PyErr_Occurred()) SWIG_fail; | |
16668 | } | |
4f89f6a3 RD |
16669 | { |
16670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16671 | } | |
d14a1e28 RD |
16672 | return resultobj; |
16673 | fail: | |
16674 | return NULL; | |
16675 | } | |
16676 | ||
16677 | ||
c32bde28 | 16678 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16679 | PyObject *resultobj; |
16680 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16681 | bool result; | |
16682 | PyObject * obj0 = 0 ; | |
16683 | char *kwnames[] = { | |
16684 | (char *) "self", NULL | |
16685 | }; | |
16686 | ||
16687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16690 | { |
16691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16692 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
16693 | ||
16694 | wxPyEndAllowThreads(__tstate); | |
16695 | if (PyErr_Occurred()) SWIG_fail; | |
16696 | } | |
4f89f6a3 RD |
16697 | { |
16698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16699 | } | |
d14a1e28 RD |
16700 | return resultobj; |
16701 | fail: | |
16702 | return NULL; | |
16703 | } | |
16704 | ||
16705 | ||
c32bde28 | 16706 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
16707 | PyObject *resultobj; |
16708 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16709 | bool result; | |
16710 | PyObject * obj0 = 0 ; | |
16711 | char *kwnames[] = { | |
16712 | (char *) "self", NULL | |
16713 | }; | |
16714 | ||
16715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
412d302d RD |
16718 | { |
16719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16720 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
16721 | ||
16722 | wxPyEndAllowThreads(__tstate); | |
16723 | if (PyErr_Occurred()) SWIG_fail; | |
16724 | } | |
16725 | { | |
16726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16727 | } | |
16728 | return resultobj; | |
16729 | fail: | |
16730 | return NULL; | |
16731 | } | |
16732 | ||
16733 | ||
c32bde28 | 16734 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16735 | PyObject *resultobj; |
16736 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16737 | bool result; | |
16738 | PyObject * obj0 = 0 ; | |
16739 | char *kwnames[] = { | |
16740 | (char *) "self", NULL | |
16741 | }; | |
16742 | ||
16743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16746 | { |
16747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16748 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
16749 | ||
16750 | wxPyEndAllowThreads(__tstate); | |
16751 | if (PyErr_Occurred()) SWIG_fail; | |
16752 | } | |
4f89f6a3 RD |
16753 | { |
16754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16755 | } | |
d14a1e28 RD |
16756 | return resultobj; |
16757 | fail: | |
16758 | return NULL; | |
16759 | } | |
16760 | ||
16761 | ||
c32bde28 | 16762 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16763 | PyObject *resultobj; |
16764 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16765 | bool result; | |
16766 | PyObject * obj0 = 0 ; | |
16767 | char *kwnames[] = { | |
16768 | (char *) "self", NULL | |
16769 | }; | |
16770 | ||
16771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16774 | { |
16775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16776 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
16777 | ||
16778 | wxPyEndAllowThreads(__tstate); | |
16779 | if (PyErr_Occurred()) SWIG_fail; | |
16780 | } | |
4f89f6a3 RD |
16781 | { |
16782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16783 | } | |
d14a1e28 RD |
16784 | return resultobj; |
16785 | fail: | |
16786 | return NULL; | |
16787 | } | |
16788 | ||
16789 | ||
c32bde28 | 16790 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16791 | PyObject *resultobj; |
16792 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16793 | bool result; | |
16794 | PyObject * obj0 = 0 ; | |
16795 | char *kwnames[] = { | |
16796 | (char *) "self", NULL | |
16797 | }; | |
16798 | ||
16799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16800 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16801 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16802 | { |
16803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16804 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
16805 | ||
16806 | wxPyEndAllowThreads(__tstate); | |
16807 | if (PyErr_Occurred()) SWIG_fail; | |
16808 | } | |
4f89f6a3 RD |
16809 | { |
16810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16811 | } | |
d14a1e28 RD |
16812 | return resultobj; |
16813 | fail: | |
16814 | return NULL; | |
16815 | } | |
16816 | ||
16817 | ||
c32bde28 | 16818 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16819 | PyObject *resultobj; |
16820 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16821 | bool result; | |
16822 | PyObject * obj0 = 0 ; | |
16823 | char *kwnames[] = { | |
16824 | (char *) "self", NULL | |
16825 | }; | |
16826 | ||
16827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16830 | { |
16831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16832 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
16833 | ||
16834 | wxPyEndAllowThreads(__tstate); | |
16835 | if (PyErr_Occurred()) SWIG_fail; | |
16836 | } | |
4f89f6a3 RD |
16837 | { |
16838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16839 | } | |
d14a1e28 RD |
16840 | return resultobj; |
16841 | fail: | |
16842 | return NULL; | |
16843 | } | |
16844 | ||
16845 | ||
c32bde28 | 16846 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16847 | PyObject *resultobj; |
16848 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16849 | bool result; | |
16850 | PyObject * obj0 = 0 ; | |
16851 | char *kwnames[] = { | |
16852 | (char *) "self", NULL | |
16853 | }; | |
16854 | ||
16855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16858 | { |
16859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16860 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
16861 | ||
16862 | wxPyEndAllowThreads(__tstate); | |
16863 | if (PyErr_Occurred()) SWIG_fail; | |
16864 | } | |
4f89f6a3 RD |
16865 | { |
16866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16867 | } | |
d14a1e28 RD |
16868 | return resultobj; |
16869 | fail: | |
16870 | return NULL; | |
16871 | } | |
16872 | ||
16873 | ||
c32bde28 | 16874 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16875 | PyObject *resultobj; |
16876 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16877 | bool result; | |
16878 | PyObject * obj0 = 0 ; | |
16879 | char *kwnames[] = { | |
16880 | (char *) "self", NULL | |
16881 | }; | |
16882 | ||
16883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16886 | { |
16887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16888 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
16889 | ||
16890 | wxPyEndAllowThreads(__tstate); | |
16891 | if (PyErr_Occurred()) SWIG_fail; | |
16892 | } | |
4f89f6a3 RD |
16893 | { |
16894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16895 | } | |
d14a1e28 RD |
16896 | return resultobj; |
16897 | fail: | |
16898 | return NULL; | |
16899 | } | |
16900 | ||
16901 | ||
c32bde28 | 16902 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16903 | PyObject *resultobj; |
16904 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16905 | bool result; | |
16906 | PyObject * obj0 = 0 ; | |
16907 | char *kwnames[] = { | |
16908 | (char *) "self", NULL | |
16909 | }; | |
16910 | ||
16911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16914 | { |
16915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16916 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
16917 | ||
16918 | wxPyEndAllowThreads(__tstate); | |
16919 | if (PyErr_Occurred()) SWIG_fail; | |
16920 | } | |
4f89f6a3 RD |
16921 | { |
16922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16923 | } | |
d14a1e28 RD |
16924 | return resultobj; |
16925 | fail: | |
16926 | return NULL; | |
16927 | } | |
16928 | ||
16929 | ||
c32bde28 | 16930 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16931 | PyObject *resultobj; |
16932 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16933 | bool result; | |
16934 | PyObject * obj0 = 0 ; | |
16935 | char *kwnames[] = { | |
16936 | (char *) "self", NULL | |
16937 | }; | |
16938 | ||
16939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16942 | { |
16943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16944 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
16945 | ||
16946 | wxPyEndAllowThreads(__tstate); | |
16947 | if (PyErr_Occurred()) SWIG_fail; | |
16948 | } | |
4f89f6a3 RD |
16949 | { |
16950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16951 | } | |
d14a1e28 RD |
16952 | return resultobj; |
16953 | fail: | |
16954 | return NULL; | |
16955 | } | |
16956 | ||
16957 | ||
c32bde28 | 16958 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16959 | PyObject *resultobj; |
16960 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16961 | bool result; | |
16962 | PyObject * obj0 = 0 ; | |
16963 | char *kwnames[] = { | |
16964 | (char *) "self", NULL | |
16965 | }; | |
16966 | ||
16967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
16969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16970 | { |
16971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16972 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
16973 | ||
16974 | wxPyEndAllowThreads(__tstate); | |
16975 | if (PyErr_Occurred()) SWIG_fail; | |
16976 | } | |
4f89f6a3 RD |
16977 | { |
16978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16979 | } | |
d14a1e28 RD |
16980 | return resultobj; |
16981 | fail: | |
16982 | return NULL; | |
16983 | } | |
16984 | ||
16985 | ||
c32bde28 | 16986 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16987 | PyObject *resultobj; |
16988 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
16989 | bool result; | |
16990 | PyObject * obj0 = 0 ; | |
16991 | char *kwnames[] = { | |
16992 | (char *) "self", NULL | |
16993 | }; | |
16994 | ||
16995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) 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; | |
d14a1e28 RD |
16998 | { |
16999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17000 | result = (bool)(arg1)->LeftIsDown(); | |
17001 | ||
17002 | wxPyEndAllowThreads(__tstate); | |
17003 | if (PyErr_Occurred()) SWIG_fail; | |
17004 | } | |
4f89f6a3 RD |
17005 | { |
17006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17007 | } | |
d14a1e28 RD |
17008 | return resultobj; |
17009 | fail: | |
17010 | return NULL; | |
17011 | } | |
17012 | ||
17013 | ||
c32bde28 | 17014 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17015 | PyObject *resultobj; |
17016 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17017 | bool result; | |
17018 | PyObject * obj0 = 0 ; | |
17019 | char *kwnames[] = { | |
17020 | (char *) "self", NULL | |
17021 | }; | |
17022 | ||
17023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17026 | { |
17027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17028 | result = (bool)(arg1)->MiddleIsDown(); | |
17029 | ||
17030 | wxPyEndAllowThreads(__tstate); | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | } | |
4f89f6a3 RD |
17033 | { |
17034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17035 | } | |
d14a1e28 RD |
17036 | return resultobj; |
17037 | fail: | |
17038 | return NULL; | |
17039 | } | |
17040 | ||
17041 | ||
c32bde28 | 17042 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17043 | PyObject *resultobj; |
17044 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17045 | bool result; | |
17046 | PyObject * obj0 = 0 ; | |
17047 | char *kwnames[] = { | |
17048 | (char *) "self", NULL | |
17049 | }; | |
17050 | ||
17051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17054 | { |
17055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17056 | result = (bool)(arg1)->RightIsDown(); | |
17057 | ||
17058 | wxPyEndAllowThreads(__tstate); | |
17059 | if (PyErr_Occurred()) SWIG_fail; | |
17060 | } | |
4f89f6a3 RD |
17061 | { |
17062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17063 | } | |
d14a1e28 RD |
17064 | return resultobj; |
17065 | fail: | |
17066 | return NULL; | |
17067 | } | |
17068 | ||
17069 | ||
c32bde28 | 17070 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17071 | PyObject *resultobj; |
17072 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17073 | bool result; | |
17074 | PyObject * obj0 = 0 ; | |
17075 | char *kwnames[] = { | |
17076 | (char *) "self", NULL | |
17077 | }; | |
17078 | ||
17079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17082 | { |
17083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17084 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
17085 | ||
17086 | wxPyEndAllowThreads(__tstate); | |
17087 | if (PyErr_Occurred()) SWIG_fail; | |
17088 | } | |
4f89f6a3 RD |
17089 | { |
17090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17091 | } | |
d14a1e28 RD |
17092 | return resultobj; |
17093 | fail: | |
17094 | return NULL; | |
17095 | } | |
17096 | ||
17097 | ||
c32bde28 | 17098 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17099 | PyObject *resultobj; |
17100 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17101 | bool result; | |
17102 | PyObject * obj0 = 0 ; | |
17103 | char *kwnames[] = { | |
17104 | (char *) "self", NULL | |
17105 | }; | |
17106 | ||
17107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17110 | { |
17111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17112 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
17113 | ||
17114 | wxPyEndAllowThreads(__tstate); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
4f89f6a3 RD |
17117 | { |
17118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17119 | } | |
d14a1e28 RD |
17120 | return resultobj; |
17121 | fail: | |
17122 | return NULL; | |
17123 | } | |
17124 | ||
17125 | ||
c32bde28 | 17126 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17127 | PyObject *resultobj; |
17128 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17129 | bool result; | |
17130 | PyObject * obj0 = 0 ; | |
17131 | char *kwnames[] = { | |
17132 | (char *) "self", NULL | |
17133 | }; | |
17134 | ||
17135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17138 | { |
17139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17140 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
17141 | ||
17142 | wxPyEndAllowThreads(__tstate); | |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
17144 | } | |
4f89f6a3 RD |
17145 | { |
17146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17147 | } | |
d14a1e28 RD |
17148 | return resultobj; |
17149 | fail: | |
17150 | return NULL; | |
17151 | } | |
17152 | ||
17153 | ||
c32bde28 | 17154 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17155 | PyObject *resultobj; |
17156 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17157 | bool result; | |
17158 | PyObject * obj0 = 0 ; | |
17159 | char *kwnames[] = { | |
17160 | (char *) "self", NULL | |
17161 | }; | |
17162 | ||
17163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17166 | { |
17167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17168 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
17169 | ||
17170 | wxPyEndAllowThreads(__tstate); | |
17171 | if (PyErr_Occurred()) SWIG_fail; | |
17172 | } | |
4f89f6a3 RD |
17173 | { |
17174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17175 | } | |
d14a1e28 RD |
17176 | return resultobj; |
17177 | fail: | |
17178 | return NULL; | |
17179 | } | |
17180 | ||
17181 | ||
c32bde28 | 17182 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17183 | PyObject *resultobj; |
17184 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17185 | wxPoint result; | |
17186 | PyObject * obj0 = 0 ; | |
17187 | char *kwnames[] = { | |
17188 | (char *) "self", NULL | |
17189 | }; | |
17190 | ||
17191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) 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; | |
d14a1e28 RD |
17194 | { |
17195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17196 | result = (arg1)->GetPosition(); | |
17197 | ||
17198 | wxPyEndAllowThreads(__tstate); | |
17199 | if (PyErr_Occurred()) SWIG_fail; | |
17200 | } | |
17201 | { | |
17202 | wxPoint * resultptr; | |
093d3ff1 | 17203 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 17204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17205 | } |
17206 | return resultobj; | |
17207 | fail: | |
17208 | return NULL; | |
17209 | } | |
17210 | ||
17211 | ||
c32bde28 | 17212 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17213 | PyObject *resultobj; |
17214 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17215 | long *arg2 = (long *) 0 ; | |
17216 | long *arg3 = (long *) 0 ; | |
17217 | long temp2 ; | |
c32bde28 | 17218 | int res2 = 0 ; |
d14a1e28 | 17219 | long temp3 ; |
c32bde28 | 17220 | int res3 = 0 ; |
d14a1e28 RD |
17221 | PyObject * obj0 = 0 ; |
17222 | char *kwnames[] = { | |
17223 | (char *) "self", NULL | |
17224 | }; | |
17225 | ||
c32bde28 RD |
17226 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
17227 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 17228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17231 | { |
17232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17233 | (arg1)->GetPosition(arg2,arg3); | |
17234 | ||
17235 | wxPyEndAllowThreads(__tstate); | |
17236 | if (PyErr_Occurred()) SWIG_fail; | |
17237 | } | |
17238 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
17239 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
17240 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
17241 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
17242 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
17243 | return resultobj; |
17244 | fail: | |
17245 | return NULL; | |
17246 | } | |
17247 | ||
17248 | ||
c32bde28 | 17249 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17250 | PyObject *resultobj; |
17251 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17252 | wxDC *arg2 = 0 ; | |
17253 | wxPoint result; | |
17254 | PyObject * obj0 = 0 ; | |
17255 | PyObject * obj1 = 0 ; | |
17256 | char *kwnames[] = { | |
17257 | (char *) "self",(char *) "dc", NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17263 | { | |
17264 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
17265 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17266 | if (arg2 == NULL) { | |
17267 | SWIG_null_ref("wxDC"); | |
17268 | } | |
17269 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
17270 | } |
17271 | { | |
17272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17273 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
17274 | ||
17275 | wxPyEndAllowThreads(__tstate); | |
17276 | if (PyErr_Occurred()) SWIG_fail; | |
17277 | } | |
17278 | { | |
17279 | wxPoint * resultptr; | |
093d3ff1 | 17280 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 17281 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17282 | } |
17283 | return resultobj; | |
17284 | fail: | |
17285 | return NULL; | |
17286 | } | |
17287 | ||
17288 | ||
c32bde28 | 17289 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17290 | PyObject *resultobj; |
17291 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 17292 | int result; |
d14a1e28 RD |
17293 | PyObject * obj0 = 0 ; |
17294 | char *kwnames[] = { | |
17295 | (char *) "self", NULL | |
17296 | }; | |
17297 | ||
17298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17301 | { |
17302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17303 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
17304 | |
17305 | wxPyEndAllowThreads(__tstate); | |
17306 | if (PyErr_Occurred()) SWIG_fail; | |
17307 | } | |
093d3ff1 RD |
17308 | { |
17309 | resultobj = SWIG_From_int((int)(result)); | |
17310 | } | |
d14a1e28 RD |
17311 | return resultobj; |
17312 | fail: | |
17313 | return NULL; | |
17314 | } | |
17315 | ||
17316 | ||
c32bde28 | 17317 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17318 | PyObject *resultobj; |
17319 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 17320 | int result; |
d14a1e28 RD |
17321 | PyObject * obj0 = 0 ; |
17322 | char *kwnames[] = { | |
17323 | (char *) "self", NULL | |
17324 | }; | |
17325 | ||
17326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17329 | { |
17330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17331 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
17332 | |
17333 | wxPyEndAllowThreads(__tstate); | |
17334 | if (PyErr_Occurred()) SWIG_fail; | |
17335 | } | |
093d3ff1 RD |
17336 | { |
17337 | resultobj = SWIG_From_int((int)(result)); | |
17338 | } | |
d14a1e28 RD |
17339 | return resultobj; |
17340 | fail: | |
17341 | return NULL; | |
17342 | } | |
17343 | ||
17344 | ||
c32bde28 | 17345 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17346 | PyObject *resultobj; |
17347 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17348 | int result; | |
17349 | PyObject * obj0 = 0 ; | |
17350 | char *kwnames[] = { | |
17351 | (char *) "self", NULL | |
17352 | }; | |
17353 | ||
17354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17357 | { |
17358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17359 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
17360 | ||
17361 | wxPyEndAllowThreads(__tstate); | |
17362 | if (PyErr_Occurred()) SWIG_fail; | |
17363 | } | |
093d3ff1 RD |
17364 | { |
17365 | resultobj = SWIG_From_int((int)(result)); | |
17366 | } | |
d14a1e28 RD |
17367 | return resultobj; |
17368 | fail: | |
17369 | return NULL; | |
17370 | } | |
17371 | ||
17372 | ||
c32bde28 | 17373 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17374 | PyObject *resultobj; |
17375 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17376 | int result; | |
17377 | PyObject * obj0 = 0 ; | |
17378 | char *kwnames[] = { | |
17379 | (char *) "self", NULL | |
17380 | }; | |
17381 | ||
17382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17385 | { |
17386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17387 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
17388 | ||
17389 | wxPyEndAllowThreads(__tstate); | |
17390 | if (PyErr_Occurred()) SWIG_fail; | |
17391 | } | |
093d3ff1 RD |
17392 | { |
17393 | resultobj = SWIG_From_int((int)(result)); | |
17394 | } | |
d14a1e28 RD |
17395 | return resultobj; |
17396 | fail: | |
17397 | return NULL; | |
17398 | } | |
17399 | ||
17400 | ||
c32bde28 | 17401 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17402 | PyObject *resultobj; |
17403 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17404 | int result; | |
17405 | PyObject * obj0 = 0 ; | |
17406 | char *kwnames[] = { | |
17407 | (char *) "self", NULL | |
17408 | }; | |
17409 | ||
17410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17411 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17413 | { |
17414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17415 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
17416 | ||
17417 | wxPyEndAllowThreads(__tstate); | |
17418 | if (PyErr_Occurred()) SWIG_fail; | |
17419 | } | |
093d3ff1 RD |
17420 | { |
17421 | resultobj = SWIG_From_int((int)(result)); | |
17422 | } | |
d14a1e28 RD |
17423 | return resultobj; |
17424 | fail: | |
17425 | return NULL; | |
17426 | } | |
17427 | ||
17428 | ||
c32bde28 | 17429 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17430 | PyObject *resultobj; |
17431 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17432 | bool result; | |
17433 | PyObject * obj0 = 0 ; | |
17434 | char *kwnames[] = { | |
17435 | (char *) "self", NULL | |
17436 | }; | |
17437 | ||
17438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17441 | { |
17442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17443 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
17444 | ||
17445 | wxPyEndAllowThreads(__tstate); | |
17446 | if (PyErr_Occurred()) SWIG_fail; | |
17447 | } | |
4f89f6a3 RD |
17448 | { |
17449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17450 | } | |
d14a1e28 RD |
17451 | return resultobj; |
17452 | fail: | |
17453 | return NULL; | |
17454 | } | |
17455 | ||
17456 | ||
c32bde28 | 17457 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17458 | PyObject *resultobj; |
17459 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 17460 | int arg2 ; |
d14a1e28 | 17461 | PyObject * obj0 = 0 ; |
994141e6 | 17462 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17463 | char *kwnames[] = { |
17464 | (char *) "self",(char *) "m_x", NULL | |
17465 | }; | |
17466 | ||
994141e6 | 17467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17470 | { | |
17471 | arg2 = (int)(SWIG_As_int(obj1)); | |
17472 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17473 | } | |
d14a1e28 RD |
17474 | if (arg1) (arg1)->m_x = arg2; |
17475 | ||
17476 | Py_INCREF(Py_None); resultobj = Py_None; | |
17477 | return resultobj; | |
17478 | fail: | |
17479 | return NULL; | |
17480 | } | |
17481 | ||
17482 | ||
c32bde28 | 17483 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17484 | PyObject *resultobj; |
17485 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 17486 | int result; |
d14a1e28 RD |
17487 | PyObject * obj0 = 0 ; |
17488 | char *kwnames[] = { | |
17489 | (char *) "self", NULL | |
17490 | }; | |
17491 | ||
17492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 17495 | result = (int) ((arg1)->m_x); |
d14a1e28 | 17496 | |
093d3ff1 RD |
17497 | { |
17498 | resultobj = SWIG_From_int((int)(result)); | |
17499 | } | |
d14a1e28 RD |
17500 | return resultobj; |
17501 | fail: | |
17502 | return NULL; | |
17503 | } | |
17504 | ||
17505 | ||
c32bde28 | 17506 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17507 | PyObject *resultobj; |
17508 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 17509 | int arg2 ; |
d14a1e28 | 17510 | PyObject * obj0 = 0 ; |
994141e6 | 17511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17512 | char *kwnames[] = { |
17513 | (char *) "self",(char *) "m_y", NULL | |
17514 | }; | |
17515 | ||
994141e6 | 17516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17519 | { | |
17520 | arg2 = (int)(SWIG_As_int(obj1)); | |
17521 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17522 | } | |
d14a1e28 RD |
17523 | if (arg1) (arg1)->m_y = arg2; |
17524 | ||
17525 | Py_INCREF(Py_None); resultobj = Py_None; | |
17526 | return resultobj; | |
17527 | fail: | |
17528 | return NULL; | |
17529 | } | |
17530 | ||
17531 | ||
c32bde28 | 17532 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17533 | PyObject *resultobj; |
17534 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 17535 | int result; |
d14a1e28 RD |
17536 | PyObject * obj0 = 0 ; |
17537 | char *kwnames[] = { | |
17538 | (char *) "self", NULL | |
17539 | }; | |
17540 | ||
17541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 17544 | result = (int) ((arg1)->m_y); |
d14a1e28 | 17545 | |
093d3ff1 RD |
17546 | { |
17547 | resultobj = SWIG_From_int((int)(result)); | |
17548 | } | |
d14a1e28 RD |
17549 | return resultobj; |
17550 | fail: | |
17551 | return NULL; | |
17552 | } | |
17553 | ||
17554 | ||
c32bde28 | 17555 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17556 | PyObject *resultobj; |
17557 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17558 | bool arg2 ; | |
17559 | PyObject * obj0 = 0 ; | |
17560 | PyObject * obj1 = 0 ; | |
17561 | char *kwnames[] = { | |
17562 | (char *) "self",(char *) "m_leftDown", NULL | |
17563 | }; | |
17564 | ||
17565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17568 | { | |
17569 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17570 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17571 | } | |
d14a1e28 RD |
17572 | if (arg1) (arg1)->m_leftDown = arg2; |
17573 | ||
17574 | Py_INCREF(Py_None); resultobj = Py_None; | |
17575 | return resultobj; | |
17576 | fail: | |
17577 | return NULL; | |
17578 | } | |
17579 | ||
17580 | ||
c32bde28 | 17581 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17582 | PyObject *resultobj; |
17583 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17584 | bool result; | |
17585 | PyObject * obj0 = 0 ; | |
17586 | char *kwnames[] = { | |
17587 | (char *) "self", NULL | |
17588 | }; | |
17589 | ||
17590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17593 | result = (bool) ((arg1)->m_leftDown); |
17594 | ||
4f89f6a3 RD |
17595 | { |
17596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17597 | } | |
d14a1e28 RD |
17598 | return resultobj; |
17599 | fail: | |
17600 | return NULL; | |
17601 | } | |
17602 | ||
17603 | ||
c32bde28 | 17604 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17605 | PyObject *resultobj; |
17606 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17607 | bool arg2 ; | |
17608 | PyObject * obj0 = 0 ; | |
17609 | PyObject * obj1 = 0 ; | |
17610 | char *kwnames[] = { | |
17611 | (char *) "self",(char *) "m_middleDown", NULL | |
17612 | }; | |
17613 | ||
17614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17617 | { | |
17618 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17619 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17620 | } | |
d14a1e28 RD |
17621 | if (arg1) (arg1)->m_middleDown = arg2; |
17622 | ||
17623 | Py_INCREF(Py_None); resultobj = Py_None; | |
17624 | return resultobj; | |
17625 | fail: | |
17626 | return NULL; | |
17627 | } | |
17628 | ||
17629 | ||
c32bde28 | 17630 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17631 | PyObject *resultobj; |
17632 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17633 | bool result; | |
17634 | PyObject * obj0 = 0 ; | |
17635 | char *kwnames[] = { | |
17636 | (char *) "self", NULL | |
17637 | }; | |
17638 | ||
17639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17642 | result = (bool) ((arg1)->m_middleDown); |
17643 | ||
4f89f6a3 RD |
17644 | { |
17645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17646 | } | |
d14a1e28 RD |
17647 | return resultobj; |
17648 | fail: | |
17649 | return NULL; | |
17650 | } | |
17651 | ||
17652 | ||
c32bde28 | 17653 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17654 | PyObject *resultobj; |
17655 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17656 | bool arg2 ; | |
17657 | PyObject * obj0 = 0 ; | |
17658 | PyObject * obj1 = 0 ; | |
17659 | char *kwnames[] = { | |
17660 | (char *) "self",(char *) "m_rightDown", NULL | |
17661 | }; | |
17662 | ||
17663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17664 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17665 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17666 | { | |
17667 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17668 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17669 | } | |
d14a1e28 RD |
17670 | if (arg1) (arg1)->m_rightDown = arg2; |
17671 | ||
17672 | Py_INCREF(Py_None); resultobj = Py_None; | |
17673 | return resultobj; | |
17674 | fail: | |
17675 | return NULL; | |
17676 | } | |
17677 | ||
17678 | ||
c32bde28 | 17679 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17680 | PyObject *resultobj; |
17681 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17682 | bool result; | |
17683 | PyObject * obj0 = 0 ; | |
17684 | char *kwnames[] = { | |
17685 | (char *) "self", NULL | |
17686 | }; | |
17687 | ||
17688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17691 | result = (bool) ((arg1)->m_rightDown); |
17692 | ||
4f89f6a3 RD |
17693 | { |
17694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17695 | } | |
d14a1e28 RD |
17696 | return resultobj; |
17697 | fail: | |
17698 | return NULL; | |
17699 | } | |
17700 | ||
17701 | ||
c32bde28 | 17702 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17703 | PyObject *resultobj; |
17704 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17705 | bool arg2 ; | |
17706 | PyObject * obj0 = 0 ; | |
17707 | PyObject * obj1 = 0 ; | |
17708 | char *kwnames[] = { | |
17709 | (char *) "self",(char *) "m_controlDown", NULL | |
17710 | }; | |
17711 | ||
17712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17715 | { | |
17716 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17717 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17718 | } | |
d14a1e28 RD |
17719 | if (arg1) (arg1)->m_controlDown = arg2; |
17720 | ||
17721 | Py_INCREF(Py_None); resultobj = Py_None; | |
17722 | return resultobj; | |
17723 | fail: | |
17724 | return NULL; | |
17725 | } | |
17726 | ||
17727 | ||
c32bde28 | 17728 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17729 | PyObject *resultobj; |
17730 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17731 | bool result; | |
17732 | PyObject * obj0 = 0 ; | |
17733 | char *kwnames[] = { | |
17734 | (char *) "self", NULL | |
17735 | }; | |
17736 | ||
17737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17740 | result = (bool) ((arg1)->m_controlDown); |
17741 | ||
4f89f6a3 RD |
17742 | { |
17743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17744 | } | |
d14a1e28 RD |
17745 | return resultobj; |
17746 | fail: | |
17747 | return NULL; | |
17748 | } | |
17749 | ||
17750 | ||
c32bde28 | 17751 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17752 | PyObject *resultobj; |
17753 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17754 | bool arg2 ; | |
17755 | PyObject * obj0 = 0 ; | |
17756 | PyObject * obj1 = 0 ; | |
17757 | char *kwnames[] = { | |
17758 | (char *) "self",(char *) "m_shiftDown", NULL | |
17759 | }; | |
17760 | ||
17761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17764 | { | |
17765 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17766 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17767 | } | |
d14a1e28 RD |
17768 | if (arg1) (arg1)->m_shiftDown = arg2; |
17769 | ||
17770 | Py_INCREF(Py_None); resultobj = Py_None; | |
17771 | return resultobj; | |
17772 | fail: | |
17773 | return NULL; | |
17774 | } | |
17775 | ||
17776 | ||
c32bde28 | 17777 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17778 | PyObject *resultobj; |
17779 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17780 | bool result; | |
17781 | PyObject * obj0 = 0 ; | |
17782 | char *kwnames[] = { | |
17783 | (char *) "self", NULL | |
17784 | }; | |
17785 | ||
17786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17789 | result = (bool) ((arg1)->m_shiftDown); |
17790 | ||
4f89f6a3 RD |
17791 | { |
17792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17793 | } | |
d14a1e28 RD |
17794 | return resultobj; |
17795 | fail: | |
17796 | return NULL; | |
17797 | } | |
17798 | ||
17799 | ||
c32bde28 | 17800 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17801 | PyObject *resultobj; |
17802 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17803 | bool arg2 ; | |
17804 | PyObject * obj0 = 0 ; | |
17805 | PyObject * obj1 = 0 ; | |
17806 | char *kwnames[] = { | |
17807 | (char *) "self",(char *) "m_altDown", NULL | |
17808 | }; | |
17809 | ||
17810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17813 | { | |
17814 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17815 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17816 | } | |
d14a1e28 RD |
17817 | if (arg1) (arg1)->m_altDown = arg2; |
17818 | ||
17819 | Py_INCREF(Py_None); resultobj = Py_None; | |
17820 | return resultobj; | |
17821 | fail: | |
17822 | return NULL; | |
17823 | } | |
17824 | ||
17825 | ||
c32bde28 | 17826 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17827 | PyObject *resultobj; |
17828 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17829 | bool result; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17838 | result = (bool) ((arg1)->m_altDown); |
17839 | ||
4f89f6a3 RD |
17840 | { |
17841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17842 | } | |
d14a1e28 RD |
17843 | return resultobj; |
17844 | fail: | |
17845 | return NULL; | |
17846 | } | |
17847 | ||
17848 | ||
c32bde28 | 17849 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17850 | PyObject *resultobj; |
17851 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17852 | bool arg2 ; | |
17853 | PyObject * obj0 = 0 ; | |
17854 | PyObject * obj1 = 0 ; | |
17855 | char *kwnames[] = { | |
17856 | (char *) "self",(char *) "m_metaDown", NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17862 | { | |
17863 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
17864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17865 | } | |
d14a1e28 RD |
17866 | if (arg1) (arg1)->m_metaDown = arg2; |
17867 | ||
17868 | Py_INCREF(Py_None); resultobj = Py_None; | |
17869 | return resultobj; | |
17870 | fail: | |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
c32bde28 | 17875 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17876 | PyObject *resultobj; |
17877 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17878 | bool result; | |
17879 | PyObject * obj0 = 0 ; | |
17880 | char *kwnames[] = { | |
17881 | (char *) "self", NULL | |
17882 | }; | |
17883 | ||
17884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17887 | result = (bool) ((arg1)->m_metaDown); |
17888 | ||
4f89f6a3 RD |
17889 | { |
17890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17891 | } | |
d14a1e28 RD |
17892 | return resultobj; |
17893 | fail: | |
17894 | return NULL; | |
17895 | } | |
17896 | ||
17897 | ||
c32bde28 | 17898 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17899 | PyObject *resultobj; |
17900 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17901 | int arg2 ; | |
17902 | PyObject * obj0 = 0 ; | |
994141e6 | 17903 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17904 | char *kwnames[] = { |
17905 | (char *) "self",(char *) "m_wheelRotation", NULL | |
17906 | }; | |
17907 | ||
994141e6 | 17908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17911 | { | |
17912 | arg2 = (int)(SWIG_As_int(obj1)); | |
17913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17914 | } | |
d14a1e28 RD |
17915 | if (arg1) (arg1)->m_wheelRotation = arg2; |
17916 | ||
17917 | Py_INCREF(Py_None); resultobj = Py_None; | |
17918 | return resultobj; | |
17919 | fail: | |
17920 | return NULL; | |
17921 | } | |
17922 | ||
17923 | ||
c32bde28 | 17924 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17925 | PyObject *resultobj; |
17926 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17927 | int result; | |
17928 | PyObject * obj0 = 0 ; | |
17929 | char *kwnames[] = { | |
17930 | (char *) "self", NULL | |
17931 | }; | |
17932 | ||
17933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17936 | result = (int) ((arg1)->m_wheelRotation); |
17937 | ||
093d3ff1 RD |
17938 | { |
17939 | resultobj = SWIG_From_int((int)(result)); | |
17940 | } | |
d14a1e28 RD |
17941 | return resultobj; |
17942 | fail: | |
17943 | return NULL; | |
17944 | } | |
17945 | ||
17946 | ||
c32bde28 | 17947 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17948 | PyObject *resultobj; |
17949 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17950 | int arg2 ; | |
17951 | PyObject * obj0 = 0 ; | |
994141e6 | 17952 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17953 | char *kwnames[] = { |
17954 | (char *) "self",(char *) "m_wheelDelta", NULL | |
17955 | }; | |
17956 | ||
994141e6 | 17957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17960 | { | |
17961 | arg2 = (int)(SWIG_As_int(obj1)); | |
17962 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17963 | } | |
d14a1e28 RD |
17964 | if (arg1) (arg1)->m_wheelDelta = arg2; |
17965 | ||
17966 | Py_INCREF(Py_None); resultobj = Py_None; | |
17967 | return resultobj; | |
17968 | fail: | |
17969 | return NULL; | |
17970 | } | |
17971 | ||
17972 | ||
c32bde28 | 17973 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17974 | PyObject *resultobj; |
17975 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17976 | int result; | |
17977 | PyObject * obj0 = 0 ; | |
17978 | char *kwnames[] = { | |
17979 | (char *) "self", NULL | |
17980 | }; | |
17981 | ||
17982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
17984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17985 | result = (int) ((arg1)->m_wheelDelta); |
17986 | ||
093d3ff1 RD |
17987 | { |
17988 | resultobj = SWIG_From_int((int)(result)); | |
17989 | } | |
d14a1e28 RD |
17990 | return resultobj; |
17991 | fail: | |
17992 | return NULL; | |
17993 | } | |
17994 | ||
17995 | ||
c32bde28 | 17996 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17997 | PyObject *resultobj; |
17998 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
17999 | int arg2 ; | |
18000 | PyObject * obj0 = 0 ; | |
994141e6 | 18001 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18002 | char *kwnames[] = { |
18003 | (char *) "self",(char *) "m_linesPerAction", NULL | |
18004 | }; | |
18005 | ||
994141e6 | 18006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
18007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
18008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18009 | { | |
18010 | arg2 = (int)(SWIG_As_int(obj1)); | |
18011 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18012 | } | |
d14a1e28 RD |
18013 | if (arg1) (arg1)->m_linesPerAction = arg2; |
18014 | ||
18015 | Py_INCREF(Py_None); resultobj = Py_None; | |
18016 | return resultobj; | |
18017 | fail: | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
c32bde28 | 18022 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18023 | PyObject *resultobj; |
18024 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
18025 | int result; | |
18026 | PyObject * obj0 = 0 ; | |
18027 | char *kwnames[] = { | |
18028 | (char *) "self", NULL | |
18029 | }; | |
18030 | ||
18031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18032 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); |
18033 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18034 | result = (int) ((arg1)->m_linesPerAction); |
18035 | ||
093d3ff1 RD |
18036 | { |
18037 | resultobj = SWIG_From_int((int)(result)); | |
18038 | } | |
d14a1e28 RD |
18039 | return resultobj; |
18040 | fail: | |
18041 | return NULL; | |
18042 | } | |
18043 | ||
18044 | ||
c32bde28 | 18045 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18046 | PyObject *obj; |
18047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18048 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
18049 | Py_INCREF(obj); | |
18050 | return Py_BuildValue((char *)""); | |
18051 | } | |
c32bde28 | 18052 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18053 | PyObject *resultobj; |
e811c8ce RD |
18054 | int arg1 = (int) 0 ; |
18055 | int arg2 = (int) 0 ; | |
d14a1e28 | 18056 | wxSetCursorEvent *result; |
994141e6 RD |
18057 | PyObject * obj0 = 0 ; |
18058 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18059 | char *kwnames[] = { |
18060 | (char *) "x",(char *) "y", NULL | |
18061 | }; | |
18062 | ||
994141e6 RD |
18063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
18064 | if (obj0) { | |
093d3ff1 RD |
18065 | { |
18066 | arg1 = (int)(SWIG_As_int(obj0)); | |
18067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18068 | } | |
994141e6 RD |
18069 | } |
18070 | if (obj1) { | |
093d3ff1 RD |
18071 | { |
18072 | arg2 = (int)(SWIG_As_int(obj1)); | |
18073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18074 | } | |
994141e6 | 18075 | } |
d14a1e28 RD |
18076 | { |
18077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18078 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
18079 | ||
18080 | wxPyEndAllowThreads(__tstate); | |
18081 | if (PyErr_Occurred()) SWIG_fail; | |
18082 | } | |
15afbcd0 | 18083 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
18084 | return resultobj; |
18085 | fail: | |
18086 | return NULL; | |
18087 | } | |
18088 | ||
18089 | ||
c32bde28 | 18090 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18091 | PyObject *resultobj; |
18092 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 18093 | int result; |
d14a1e28 RD |
18094 | PyObject * obj0 = 0 ; |
18095 | char *kwnames[] = { | |
18096 | (char *) "self", NULL | |
18097 | }; | |
18098 | ||
18099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18102 | { |
18103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18104 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
18105 | |
18106 | wxPyEndAllowThreads(__tstate); | |
18107 | if (PyErr_Occurred()) SWIG_fail; | |
18108 | } | |
093d3ff1 RD |
18109 | { |
18110 | resultobj = SWIG_From_int((int)(result)); | |
18111 | } | |
d14a1e28 RD |
18112 | return resultobj; |
18113 | fail: | |
18114 | return NULL; | |
18115 | } | |
18116 | ||
18117 | ||
c32bde28 | 18118 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18119 | PyObject *resultobj; |
18120 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 18121 | int result; |
d14a1e28 RD |
18122 | PyObject * obj0 = 0 ; |
18123 | char *kwnames[] = { | |
18124 | (char *) "self", NULL | |
18125 | }; | |
18126 | ||
18127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18130 | { |
18131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18132 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
18133 | |
18134 | wxPyEndAllowThreads(__tstate); | |
18135 | if (PyErr_Occurred()) SWIG_fail; | |
18136 | } | |
093d3ff1 RD |
18137 | { |
18138 | resultobj = SWIG_From_int((int)(result)); | |
18139 | } | |
d14a1e28 RD |
18140 | return resultobj; |
18141 | fail: | |
18142 | return NULL; | |
18143 | } | |
18144 | ||
18145 | ||
c32bde28 | 18146 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18147 | PyObject *resultobj; |
18148 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
18149 | wxCursor *arg2 = 0 ; | |
18150 | PyObject * obj0 = 0 ; | |
18151 | PyObject * obj1 = 0 ; | |
18152 | char *kwnames[] = { | |
18153 | (char *) "self",(char *) "cursor", NULL | |
18154 | }; | |
18155 | ||
18156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18159 | { | |
18160 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
18161 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18162 | if (arg2 == NULL) { | |
18163 | SWIG_null_ref("wxCursor"); | |
18164 | } | |
18165 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
18166 | } |
18167 | { | |
18168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18169 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
18170 | ||
18171 | wxPyEndAllowThreads(__tstate); | |
18172 | if (PyErr_Occurred()) SWIG_fail; | |
18173 | } | |
18174 | Py_INCREF(Py_None); resultobj = Py_None; | |
18175 | return resultobj; | |
18176 | fail: | |
18177 | return NULL; | |
18178 | } | |
18179 | ||
18180 | ||
c32bde28 | 18181 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18182 | PyObject *resultobj; |
18183 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
18184 | wxCursor *result; | |
18185 | PyObject * obj0 = 0 ; | |
18186 | char *kwnames[] = { | |
18187 | (char *) "self", NULL | |
18188 | }; | |
18189 | ||
18190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18193 | { |
18194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18195 | { | |
18196 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
18197 | result = (wxCursor *) &_result_ref; | |
18198 | } | |
18199 | ||
18200 | wxPyEndAllowThreads(__tstate); | |
18201 | if (PyErr_Occurred()) SWIG_fail; | |
18202 | } | |
4276dc52 RD |
18203 | { |
18204 | wxCursor* resultptr = new wxCursor(*result); | |
18205 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
18206 | } | |
d14a1e28 RD |
18207 | return resultobj; |
18208 | fail: | |
18209 | return NULL; | |
18210 | } | |
18211 | ||
18212 | ||
c32bde28 | 18213 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18214 | PyObject *resultobj; |
18215 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
18216 | bool result; | |
18217 | PyObject * obj0 = 0 ; | |
18218 | char *kwnames[] = { | |
18219 | (char *) "self", NULL | |
18220 | }; | |
18221 | ||
18222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0); |
18224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18225 | { |
18226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18227 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
18228 | ||
18229 | wxPyEndAllowThreads(__tstate); | |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
18231 | } | |
4f89f6a3 RD |
18232 | { |
18233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18234 | } | |
d14a1e28 RD |
18235 | return resultobj; |
18236 | fail: | |
18237 | return NULL; | |
18238 | } | |
18239 | ||
18240 | ||
c32bde28 | 18241 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18242 | PyObject *obj; |
18243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18244 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
18245 | Py_INCREF(obj); | |
18246 | return Py_BuildValue((char *)""); | |
18247 | } | |
c32bde28 | 18248 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18249 | PyObject *resultobj; |
18250 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18251 | wxKeyEvent *result; | |
994141e6 | 18252 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18253 | char *kwnames[] = { |
18254 | (char *) "keyType", NULL | |
18255 | }; | |
18256 | ||
994141e6 RD |
18257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
18258 | if (obj0) { | |
093d3ff1 RD |
18259 | { |
18260 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
18261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18262 | } | |
994141e6 | 18263 | } |
d14a1e28 RD |
18264 | { |
18265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18266 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
18267 | ||
18268 | wxPyEndAllowThreads(__tstate); | |
18269 | if (PyErr_Occurred()) SWIG_fail; | |
18270 | } | |
15afbcd0 | 18271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
18272 | return resultobj; |
18273 | fail: | |
18274 | return NULL; | |
18275 | } | |
18276 | ||
18277 | ||
c32bde28 | 18278 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18279 | PyObject *resultobj; |
18280 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18281 | bool result; | |
18282 | PyObject * obj0 = 0 ; | |
18283 | char *kwnames[] = { | |
18284 | (char *) "self", NULL | |
18285 | }; | |
18286 | ||
18287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18290 | { |
18291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18292 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
18293 | ||
18294 | wxPyEndAllowThreads(__tstate); | |
18295 | if (PyErr_Occurred()) SWIG_fail; | |
18296 | } | |
4f89f6a3 RD |
18297 | { |
18298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18299 | } | |
d14a1e28 RD |
18300 | return resultobj; |
18301 | fail: | |
18302 | return NULL; | |
18303 | } | |
18304 | ||
18305 | ||
c32bde28 | 18306 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18307 | PyObject *resultobj; |
18308 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18309 | bool result; | |
18310 | PyObject * obj0 = 0 ; | |
18311 | char *kwnames[] = { | |
18312 | (char *) "self", NULL | |
18313 | }; | |
18314 | ||
18315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18318 | { |
18319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18320 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
18321 | ||
18322 | wxPyEndAllowThreads(__tstate); | |
18323 | if (PyErr_Occurred()) SWIG_fail; | |
18324 | } | |
4f89f6a3 RD |
18325 | { |
18326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18327 | } | |
d14a1e28 RD |
18328 | return resultobj; |
18329 | fail: | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
c32bde28 | 18334 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18335 | PyObject *resultobj; |
18336 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18337 | bool result; | |
18338 | PyObject * obj0 = 0 ; | |
18339 | char *kwnames[] = { | |
18340 | (char *) "self", NULL | |
18341 | }; | |
18342 | ||
18343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18346 | { |
18347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18348 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
18349 | ||
18350 | wxPyEndAllowThreads(__tstate); | |
18351 | if (PyErr_Occurred()) SWIG_fail; | |
18352 | } | |
4f89f6a3 RD |
18353 | { |
18354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18355 | } | |
d14a1e28 RD |
18356 | return resultobj; |
18357 | fail: | |
18358 | return NULL; | |
18359 | } | |
18360 | ||
18361 | ||
c32bde28 | 18362 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18363 | PyObject *resultobj; |
18364 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18365 | bool result; | |
18366 | PyObject * obj0 = 0 ; | |
18367 | char *kwnames[] = { | |
18368 | (char *) "self", NULL | |
18369 | }; | |
18370 | ||
18371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18374 | { |
18375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18376 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
18377 | ||
18378 | wxPyEndAllowThreads(__tstate); | |
18379 | if (PyErr_Occurred()) SWIG_fail; | |
18380 | } | |
4f89f6a3 RD |
18381 | { |
18382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18383 | } | |
d14a1e28 RD |
18384 | return resultobj; |
18385 | fail: | |
18386 | return NULL; | |
18387 | } | |
18388 | ||
18389 | ||
c32bde28 | 18390 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
18391 | PyObject *resultobj; |
18392 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18393 | bool result; | |
18394 | PyObject * obj0 = 0 ; | |
18395 | char *kwnames[] = { | |
18396 | (char *) "self", NULL | |
18397 | }; | |
18398 | ||
18399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
412d302d RD |
18402 | { |
18403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18404 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
18405 | ||
18406 | wxPyEndAllowThreads(__tstate); | |
18407 | if (PyErr_Occurred()) SWIG_fail; | |
18408 | } | |
18409 | { | |
18410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18411 | } | |
18412 | return resultobj; | |
18413 | fail: | |
18414 | return NULL; | |
18415 | } | |
18416 | ||
18417 | ||
c32bde28 | 18418 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18419 | PyObject *resultobj; |
18420 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18421 | bool result; | |
18422 | PyObject * obj0 = 0 ; | |
18423 | char *kwnames[] = { | |
18424 | (char *) "self", NULL | |
18425 | }; | |
18426 | ||
18427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18430 | { |
18431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18432 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
18433 | ||
18434 | wxPyEndAllowThreads(__tstate); | |
18435 | if (PyErr_Occurred()) SWIG_fail; | |
18436 | } | |
4f89f6a3 RD |
18437 | { |
18438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18439 | } | |
d14a1e28 RD |
18440 | return resultobj; |
18441 | fail: | |
18442 | return NULL; | |
18443 | } | |
18444 | ||
18445 | ||
c32bde28 | 18446 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18447 | PyObject *resultobj; |
18448 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18449 | int result; | |
18450 | PyObject * obj0 = 0 ; | |
18451 | char *kwnames[] = { | |
18452 | (char *) "self", NULL | |
18453 | }; | |
18454 | ||
18455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18458 | { |
18459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18460 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
18461 | ||
18462 | wxPyEndAllowThreads(__tstate); | |
18463 | if (PyErr_Occurred()) SWIG_fail; | |
18464 | } | |
093d3ff1 RD |
18465 | { |
18466 | resultobj = SWIG_From_int((int)(result)); | |
18467 | } | |
d14a1e28 RD |
18468 | return resultobj; |
18469 | fail: | |
18470 | return NULL; | |
18471 | } | |
18472 | ||
18473 | ||
c32bde28 | 18474 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18475 | PyObject *resultobj; |
18476 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18477 | int result; | |
18478 | PyObject * obj0 = 0 ; | |
18479 | char *kwnames[] = { | |
18480 | (char *) "self", NULL | |
18481 | }; | |
18482 | ||
19272049 | 18483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
18484 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18485 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18486 | { |
18487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 18488 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d14a1e28 RD |
18489 | |
18490 | wxPyEndAllowThreads(__tstate); | |
18491 | if (PyErr_Occurred()) SWIG_fail; | |
18492 | } | |
093d3ff1 RD |
18493 | { |
18494 | resultobj = SWIG_From_int((int)(result)); | |
18495 | } | |
d14a1e28 RD |
18496 | return resultobj; |
18497 | fail: | |
18498 | return NULL; | |
18499 | } | |
18500 | ||
18501 | ||
c32bde28 | 18502 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18503 | PyObject *resultobj; |
18504 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 18505 | unsigned int result; |
d14a1e28 RD |
18506 | PyObject * obj0 = 0 ; |
18507 | char *kwnames[] = { | |
18508 | (char *) "self", NULL | |
18509 | }; | |
18510 | ||
18511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18514 | { |
18515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18516 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
18517 | |
18518 | wxPyEndAllowThreads(__tstate); | |
18519 | if (PyErr_Occurred()) SWIG_fail; | |
18520 | } | |
093d3ff1 RD |
18521 | { |
18522 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
18523 | } | |
d14a1e28 RD |
18524 | return resultobj; |
18525 | fail: | |
18526 | return NULL; | |
18527 | } | |
18528 | ||
18529 | ||
c32bde28 | 18530 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18531 | PyObject *resultobj; |
18532 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 18533 | unsigned int result; |
d14a1e28 RD |
18534 | PyObject * obj0 = 0 ; |
18535 | char *kwnames[] = { | |
18536 | (char *) "self", NULL | |
18537 | }; | |
18538 | ||
18539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18542 | { |
18543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18544 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
18545 | |
18546 | wxPyEndAllowThreads(__tstate); | |
18547 | if (PyErr_Occurred()) SWIG_fail; | |
18548 | } | |
093d3ff1 RD |
18549 | { |
18550 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
18551 | } | |
d14a1e28 RD |
18552 | return resultobj; |
18553 | fail: | |
18554 | return NULL; | |
18555 | } | |
18556 | ||
18557 | ||
c32bde28 | 18558 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18559 | PyObject *resultobj; |
18560 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18561 | wxPoint result; | |
18562 | PyObject * obj0 = 0 ; | |
18563 | char *kwnames[] = { | |
18564 | (char *) "self", NULL | |
18565 | }; | |
18566 | ||
18567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18570 | { |
18571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18572 | result = (arg1)->GetPosition(); | |
18573 | ||
18574 | wxPyEndAllowThreads(__tstate); | |
18575 | if (PyErr_Occurred()) SWIG_fail; | |
18576 | } | |
18577 | { | |
18578 | wxPoint * resultptr; | |
093d3ff1 | 18579 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 18580 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
18581 | } |
18582 | return resultobj; | |
18583 | fail: | |
18584 | return NULL; | |
18585 | } | |
18586 | ||
18587 | ||
c32bde28 | 18588 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18589 | PyObject *resultobj; |
18590 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18591 | long *arg2 = (long *) 0 ; | |
18592 | long *arg3 = (long *) 0 ; | |
18593 | long temp2 ; | |
c32bde28 | 18594 | int res2 = 0 ; |
d14a1e28 | 18595 | long temp3 ; |
c32bde28 | 18596 | int res3 = 0 ; |
d14a1e28 RD |
18597 | PyObject * obj0 = 0 ; |
18598 | char *kwnames[] = { | |
18599 | (char *) "self", NULL | |
18600 | }; | |
18601 | ||
c32bde28 RD |
18602 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
18603 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 18604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
18605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18607 | { |
18608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18609 | (arg1)->GetPosition(arg2,arg3); | |
18610 | ||
18611 | wxPyEndAllowThreads(__tstate); | |
18612 | if (PyErr_Occurred()) SWIG_fail; | |
18613 | } | |
18614 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
18615 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
18616 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
18617 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
18618 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
18619 | return resultobj; |
18620 | fail: | |
18621 | return NULL; | |
18622 | } | |
18623 | ||
18624 | ||
c32bde28 | 18625 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18626 | PyObject *resultobj; |
18627 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 18628 | int result; |
d14a1e28 RD |
18629 | PyObject * obj0 = 0 ; |
18630 | char *kwnames[] = { | |
18631 | (char *) "self", NULL | |
18632 | }; | |
18633 | ||
18634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18635 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18636 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18637 | { |
18638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18639 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
18640 | |
18641 | wxPyEndAllowThreads(__tstate); | |
18642 | if (PyErr_Occurred()) SWIG_fail; | |
18643 | } | |
093d3ff1 RD |
18644 | { |
18645 | resultobj = SWIG_From_int((int)(result)); | |
18646 | } | |
d14a1e28 RD |
18647 | return resultobj; |
18648 | fail: | |
18649 | return NULL; | |
18650 | } | |
18651 | ||
18652 | ||
c32bde28 | 18653 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18654 | PyObject *resultobj; |
18655 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 18656 | int result; |
d14a1e28 RD |
18657 | PyObject * obj0 = 0 ; |
18658 | char *kwnames[] = { | |
18659 | (char *) "self", NULL | |
18660 | }; | |
18661 | ||
18662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18665 | { |
18666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 18667 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
18668 | |
18669 | wxPyEndAllowThreads(__tstate); | |
18670 | if (PyErr_Occurred()) SWIG_fail; | |
18671 | } | |
093d3ff1 RD |
18672 | { |
18673 | resultobj = SWIG_From_int((int)(result)); | |
18674 | } | |
d14a1e28 RD |
18675 | return resultobj; |
18676 | fail: | |
18677 | return NULL; | |
18678 | } | |
18679 | ||
18680 | ||
c32bde28 | 18681 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18682 | PyObject *resultobj; |
18683 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 18684 | int arg2 ; |
d14a1e28 | 18685 | PyObject * obj0 = 0 ; |
994141e6 | 18686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18687 | char *kwnames[] = { |
18688 | (char *) "self",(char *) "m_x", NULL | |
18689 | }; | |
18690 | ||
994141e6 | 18691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
18692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18694 | { | |
18695 | arg2 = (int)(SWIG_As_int(obj1)); | |
18696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18697 | } | |
d14a1e28 RD |
18698 | if (arg1) (arg1)->m_x = arg2; |
18699 | ||
18700 | Py_INCREF(Py_None); resultobj = Py_None; | |
18701 | return resultobj; | |
18702 | fail: | |
18703 | return NULL; | |
18704 | } | |
18705 | ||
18706 | ||
c32bde28 | 18707 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18708 | PyObject *resultobj; |
18709 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 18710 | int result; |
d14a1e28 RD |
18711 | PyObject * obj0 = 0 ; |
18712 | char *kwnames[] = { | |
18713 | (char *) "self", NULL | |
18714 | }; | |
18715 | ||
18716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 18719 | result = (int) ((arg1)->m_x); |
d14a1e28 | 18720 | |
093d3ff1 RD |
18721 | { |
18722 | resultobj = SWIG_From_int((int)(result)); | |
18723 | } | |
d14a1e28 RD |
18724 | return resultobj; |
18725 | fail: | |
18726 | return NULL; | |
18727 | } | |
18728 | ||
18729 | ||
c32bde28 | 18730 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18731 | PyObject *resultobj; |
18732 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 18733 | int arg2 ; |
d14a1e28 | 18734 | PyObject * obj0 = 0 ; |
994141e6 | 18735 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18736 | char *kwnames[] = { |
18737 | (char *) "self",(char *) "m_y", NULL | |
18738 | }; | |
18739 | ||
994141e6 | 18740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
18741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18743 | { | |
18744 | arg2 = (int)(SWIG_As_int(obj1)); | |
18745 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18746 | } | |
d14a1e28 RD |
18747 | if (arg1) (arg1)->m_y = arg2; |
18748 | ||
18749 | Py_INCREF(Py_None); resultobj = Py_None; | |
18750 | return resultobj; | |
18751 | fail: | |
18752 | return NULL; | |
18753 | } | |
18754 | ||
18755 | ||
c32bde28 | 18756 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18757 | PyObject *resultobj; |
18758 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 18759 | int result; |
d14a1e28 RD |
18760 | PyObject * obj0 = 0 ; |
18761 | char *kwnames[] = { | |
18762 | (char *) "self", NULL | |
18763 | }; | |
18764 | ||
18765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 18768 | result = (int) ((arg1)->m_y); |
d14a1e28 | 18769 | |
093d3ff1 RD |
18770 | { |
18771 | resultobj = SWIG_From_int((int)(result)); | |
18772 | } | |
d14a1e28 RD |
18773 | return resultobj; |
18774 | fail: | |
18775 | return NULL; | |
18776 | } | |
18777 | ||
18778 | ||
c32bde28 | 18779 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18780 | PyObject *resultobj; |
18781 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18782 | long arg2 ; | |
18783 | PyObject * obj0 = 0 ; | |
994141e6 | 18784 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18785 | char *kwnames[] = { |
18786 | (char *) "self",(char *) "m_keyCode", NULL | |
18787 | }; | |
18788 | ||
994141e6 | 18789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
18790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18792 | { | |
18793 | arg2 = (long)(SWIG_As_long(obj1)); | |
18794 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18795 | } | |
d14a1e28 RD |
18796 | if (arg1) (arg1)->m_keyCode = arg2; |
18797 | ||
18798 | Py_INCREF(Py_None); resultobj = Py_None; | |
18799 | return resultobj; | |
18800 | fail: | |
18801 | return NULL; | |
18802 | } | |
18803 | ||
18804 | ||
c32bde28 | 18805 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18806 | PyObject *resultobj; |
18807 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18808 | long result; | |
18809 | PyObject * obj0 = 0 ; | |
18810 | char *kwnames[] = { | |
18811 | (char *) "self", NULL | |
18812 | }; | |
18813 | ||
18814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18815 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18816 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18817 | result = (long) ((arg1)->m_keyCode); |
18818 | ||
093d3ff1 RD |
18819 | { |
18820 | resultobj = SWIG_From_long((long)(result)); | |
18821 | } | |
d14a1e28 RD |
18822 | return resultobj; |
18823 | fail: | |
18824 | return NULL; | |
18825 | } | |
18826 | ||
18827 | ||
c32bde28 | 18828 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18829 | PyObject *resultobj; |
18830 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18831 | bool arg2 ; | |
18832 | PyObject * obj0 = 0 ; | |
18833 | PyObject * obj1 = 0 ; | |
18834 | char *kwnames[] = { | |
18835 | (char *) "self",(char *) "m_controlDown", NULL | |
18836 | }; | |
18837 | ||
18838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18841 | { | |
18842 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18843 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18844 | } | |
d14a1e28 RD |
18845 | if (arg1) (arg1)->m_controlDown = arg2; |
18846 | ||
18847 | Py_INCREF(Py_None); resultobj = Py_None; | |
18848 | return resultobj; | |
18849 | fail: | |
18850 | return NULL; | |
18851 | } | |
18852 | ||
18853 | ||
c32bde28 | 18854 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18855 | PyObject *resultobj; |
18856 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18857 | bool result; | |
18858 | PyObject * obj0 = 0 ; | |
18859 | char *kwnames[] = { | |
18860 | (char *) "self", NULL | |
18861 | }; | |
18862 | ||
18863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18866 | result = (bool) ((arg1)->m_controlDown); |
18867 | ||
4f89f6a3 RD |
18868 | { |
18869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18870 | } | |
d14a1e28 RD |
18871 | return resultobj; |
18872 | fail: | |
18873 | return NULL; | |
18874 | } | |
18875 | ||
18876 | ||
c32bde28 | 18877 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18878 | PyObject *resultobj; |
18879 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18880 | bool arg2 ; | |
18881 | PyObject * obj0 = 0 ; | |
18882 | PyObject * obj1 = 0 ; | |
18883 | char *kwnames[] = { | |
18884 | (char *) "self",(char *) "m_shiftDown", NULL | |
18885 | }; | |
18886 | ||
18887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18890 | { | |
18891 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18893 | } | |
d14a1e28 RD |
18894 | if (arg1) (arg1)->m_shiftDown = arg2; |
18895 | ||
18896 | Py_INCREF(Py_None); resultobj = Py_None; | |
18897 | return resultobj; | |
18898 | fail: | |
18899 | return NULL; | |
18900 | } | |
18901 | ||
18902 | ||
c32bde28 | 18903 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18904 | PyObject *resultobj; |
18905 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18906 | bool result; | |
18907 | PyObject * obj0 = 0 ; | |
18908 | char *kwnames[] = { | |
18909 | (char *) "self", NULL | |
18910 | }; | |
18911 | ||
18912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18915 | result = (bool) ((arg1)->m_shiftDown); |
18916 | ||
4f89f6a3 RD |
18917 | { |
18918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18919 | } | |
d14a1e28 RD |
18920 | return resultobj; |
18921 | fail: | |
18922 | return NULL; | |
18923 | } | |
18924 | ||
18925 | ||
c32bde28 | 18926 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18927 | PyObject *resultobj; |
18928 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18929 | bool arg2 ; | |
18930 | PyObject * obj0 = 0 ; | |
18931 | PyObject * obj1 = 0 ; | |
18932 | char *kwnames[] = { | |
18933 | (char *) "self",(char *) "m_altDown", NULL | |
18934 | }; | |
18935 | ||
18936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18939 | { | |
18940 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18941 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18942 | } | |
d14a1e28 RD |
18943 | if (arg1) (arg1)->m_altDown = arg2; |
18944 | ||
18945 | Py_INCREF(Py_None); resultobj = Py_None; | |
18946 | return resultobj; | |
18947 | fail: | |
18948 | return NULL; | |
18949 | } | |
18950 | ||
18951 | ||
c32bde28 | 18952 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18953 | PyObject *resultobj; |
18954 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18955 | bool result; | |
18956 | PyObject * obj0 = 0 ; | |
18957 | char *kwnames[] = { | |
18958 | (char *) "self", NULL | |
18959 | }; | |
18960 | ||
18961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18964 | result = (bool) ((arg1)->m_altDown); |
18965 | ||
4f89f6a3 RD |
18966 | { |
18967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18968 | } | |
d14a1e28 RD |
18969 | return resultobj; |
18970 | fail: | |
18971 | return NULL; | |
18972 | } | |
18973 | ||
18974 | ||
c32bde28 | 18975 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18976 | PyObject *resultobj; |
18977 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
18978 | bool arg2 ; | |
18979 | PyObject * obj0 = 0 ; | |
18980 | PyObject * obj1 = 0 ; | |
18981 | char *kwnames[] = { | |
18982 | (char *) "self",(char *) "m_metaDown", NULL | |
18983 | }; | |
18984 | ||
18985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
18987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18988 | { | |
18989 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18990 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18991 | } | |
d14a1e28 RD |
18992 | if (arg1) (arg1)->m_metaDown = arg2; |
18993 | ||
18994 | Py_INCREF(Py_None); resultobj = Py_None; | |
18995 | return resultobj; | |
18996 | fail: | |
18997 | return NULL; | |
18998 | } | |
18999 | ||
19000 | ||
c32bde28 | 19001 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19002 | PyObject *resultobj; |
19003 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19004 | bool result; | |
19005 | PyObject * obj0 = 0 ; | |
19006 | char *kwnames[] = { | |
19007 | (char *) "self", NULL | |
19008 | }; | |
19009 | ||
19010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19013 | result = (bool) ((arg1)->m_metaDown); |
19014 | ||
4f89f6a3 RD |
19015 | { |
19016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19017 | } | |
d14a1e28 RD |
19018 | return resultobj; |
19019 | fail: | |
19020 | return NULL; | |
19021 | } | |
19022 | ||
19023 | ||
c32bde28 | 19024 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19025 | PyObject *resultobj; |
19026 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19027 | bool arg2 ; | |
19028 | PyObject * obj0 = 0 ; | |
19029 | PyObject * obj1 = 0 ; | |
19030 | char *kwnames[] = { | |
19031 | (char *) "self",(char *) "m_scanCode", NULL | |
19032 | }; | |
19033 | ||
19034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19037 | { | |
19038 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19040 | } | |
d14a1e28 RD |
19041 | if (arg1) (arg1)->m_scanCode = arg2; |
19042 | ||
19043 | Py_INCREF(Py_None); resultobj = Py_None; | |
19044 | return resultobj; | |
19045 | fail: | |
19046 | return NULL; | |
19047 | } | |
19048 | ||
19049 | ||
c32bde28 | 19050 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19051 | PyObject *resultobj; |
19052 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
19053 | bool result; | |
19054 | PyObject * obj0 = 0 ; | |
19055 | char *kwnames[] = { | |
19056 | (char *) "self", NULL | |
19057 | }; | |
19058 | ||
19059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19062 | result = (bool) ((arg1)->m_scanCode); |
19063 | ||
4f89f6a3 RD |
19064 | { |
19065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19066 | } | |
d14a1e28 RD |
19067 | return resultobj; |
19068 | fail: | |
19069 | return NULL; | |
19070 | } | |
19071 | ||
19072 | ||
c32bde28 | 19073 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19074 | PyObject *resultobj; |
19075 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 19076 | unsigned int arg2 ; |
d14a1e28 RD |
19077 | PyObject * obj0 = 0 ; |
19078 | PyObject * obj1 = 0 ; | |
19079 | char *kwnames[] = { | |
19080 | (char *) "self",(char *) "m_rawCode", NULL | |
19081 | }; | |
19082 | ||
19083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19086 | { | |
19087 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
19088 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19089 | } | |
d14a1e28 RD |
19090 | if (arg1) (arg1)->m_rawCode = arg2; |
19091 | ||
19092 | Py_INCREF(Py_None); resultobj = Py_None; | |
19093 | return resultobj; | |
19094 | fail: | |
19095 | return NULL; | |
19096 | } | |
19097 | ||
19098 | ||
c32bde28 | 19099 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19100 | PyObject *resultobj; |
19101 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 19102 | unsigned int result; |
d14a1e28 RD |
19103 | PyObject * obj0 = 0 ; |
19104 | char *kwnames[] = { | |
19105 | (char *) "self", NULL | |
19106 | }; | |
19107 | ||
19108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 19111 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 19112 | |
093d3ff1 RD |
19113 | { |
19114 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
19115 | } | |
d14a1e28 RD |
19116 | return resultobj; |
19117 | fail: | |
19118 | return NULL; | |
19119 | } | |
19120 | ||
19121 | ||
c32bde28 | 19122 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19123 | PyObject *resultobj; |
19124 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 19125 | unsigned int arg2 ; |
d14a1e28 RD |
19126 | PyObject * obj0 = 0 ; |
19127 | PyObject * obj1 = 0 ; | |
19128 | char *kwnames[] = { | |
19129 | (char *) "self",(char *) "m_rawFlags", NULL | |
19130 | }; | |
19131 | ||
19132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19135 | { | |
19136 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
19137 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19138 | } | |
d14a1e28 RD |
19139 | if (arg1) (arg1)->m_rawFlags = arg2; |
19140 | ||
19141 | Py_INCREF(Py_None); resultobj = Py_None; | |
19142 | return resultobj; | |
19143 | fail: | |
19144 | return NULL; | |
19145 | } | |
19146 | ||
19147 | ||
c32bde28 | 19148 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19149 | PyObject *resultobj; |
19150 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 19151 | unsigned int result; |
d14a1e28 RD |
19152 | PyObject * obj0 = 0 ; |
19153 | char *kwnames[] = { | |
19154 | (char *) "self", NULL | |
19155 | }; | |
19156 | ||
19157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
19159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 19160 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 19161 | |
093d3ff1 RD |
19162 | { |
19163 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
19164 | } | |
d14a1e28 RD |
19165 | return resultobj; |
19166 | fail: | |
19167 | return NULL; | |
19168 | } | |
19169 | ||
19170 | ||
c32bde28 | 19171 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19172 | PyObject *obj; |
19173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19174 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
19175 | Py_INCREF(obj); | |
19176 | return Py_BuildValue((char *)""); | |
19177 | } | |
c32bde28 | 19178 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19179 | PyObject *resultobj; |
19180 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
19181 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
19182 | int arg2 = (int) 0 ; | |
19183 | wxSizeEvent *result; | |
19184 | wxSize temp1 ; | |
19185 | PyObject * obj0 = 0 ; | |
994141e6 | 19186 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19187 | char *kwnames[] = { |
19188 | (char *) "sz",(char *) "winid", NULL | |
19189 | }; | |
19190 | ||
994141e6 | 19191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
19192 | if (obj0) { |
19193 | { | |
19194 | arg1 = &temp1; | |
19195 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
19196 | } | |
19197 | } | |
994141e6 | 19198 | if (obj1) { |
093d3ff1 RD |
19199 | { |
19200 | arg2 = (int)(SWIG_As_int(obj1)); | |
19201 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19202 | } | |
994141e6 | 19203 | } |
d14a1e28 RD |
19204 | { |
19205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19206 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
19207 | ||
19208 | wxPyEndAllowThreads(__tstate); | |
19209 | if (PyErr_Occurred()) SWIG_fail; | |
19210 | } | |
15afbcd0 | 19211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
19212 | return resultobj; |
19213 | fail: | |
19214 | return NULL; | |
19215 | } | |
19216 | ||
19217 | ||
c32bde28 | 19218 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19219 | PyObject *resultobj; |
19220 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19221 | wxSize result; | |
19222 | PyObject * obj0 = 0 ; | |
19223 | char *kwnames[] = { | |
19224 | (char *) "self", NULL | |
19225 | }; | |
19226 | ||
19227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19228 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19229 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19230 | { |
19231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19232 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
19233 | ||
19234 | wxPyEndAllowThreads(__tstate); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
19237 | { | |
19238 | wxSize * resultptr; | |
093d3ff1 | 19239 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 19240 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
19241 | } |
19242 | return resultobj; | |
19243 | fail: | |
19244 | return NULL; | |
19245 | } | |
19246 | ||
19247 | ||
c32bde28 | 19248 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19249 | PyObject *resultobj; |
19250 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19251 | wxRect result; | |
19252 | PyObject * obj0 = 0 ; | |
19253 | char *kwnames[] = { | |
19254 | (char *) "self", NULL | |
19255 | }; | |
19256 | ||
19257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19260 | { |
19261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19262 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
19263 | ||
19264 | wxPyEndAllowThreads(__tstate); | |
19265 | if (PyErr_Occurred()) SWIG_fail; | |
19266 | } | |
19267 | { | |
19268 | wxRect * resultptr; | |
093d3ff1 | 19269 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 19270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
19271 | } |
19272 | return resultobj; | |
19273 | fail: | |
19274 | return NULL; | |
19275 | } | |
19276 | ||
19277 | ||
c32bde28 | 19278 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19279 | PyObject *resultobj; |
19280 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19281 | wxRect arg2 ; | |
d14a1e28 RD |
19282 | PyObject * obj0 = 0 ; |
19283 | PyObject * obj1 = 0 ; | |
19284 | char *kwnames[] = { | |
19285 | (char *) "self",(char *) "rect", NULL | |
19286 | }; | |
19287 | ||
19288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19291 | { | |
19292 | wxRect * argp; | |
19293 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION); | |
19294 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19295 | if (argp == NULL) { | |
19296 | SWIG_null_ref("wxRect"); | |
19297 | } | |
19298 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19299 | arg2 = *argp; | |
19300 | } | |
d14a1e28 RD |
19301 | { |
19302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19303 | (arg1)->SetRect(arg2); | |
19304 | ||
19305 | wxPyEndAllowThreads(__tstate); | |
19306 | if (PyErr_Occurred()) SWIG_fail; | |
19307 | } | |
19308 | Py_INCREF(Py_None); resultobj = Py_None; | |
19309 | return resultobj; | |
19310 | fail: | |
19311 | return NULL; | |
19312 | } | |
19313 | ||
19314 | ||
c32bde28 | 19315 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19316 | PyObject *resultobj; |
19317 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19318 | wxSize arg2 ; | |
d14a1e28 RD |
19319 | PyObject * obj0 = 0 ; |
19320 | PyObject * obj1 = 0 ; | |
19321 | char *kwnames[] = { | |
19322 | (char *) "self",(char *) "size", NULL | |
19323 | }; | |
19324 | ||
19325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19328 | { | |
19329 | wxSize * argp; | |
19330 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION); | |
19331 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19332 | if (argp == NULL) { | |
19333 | SWIG_null_ref("wxSize"); | |
19334 | } | |
19335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19336 | arg2 = *argp; | |
19337 | } | |
d14a1e28 RD |
19338 | { |
19339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19340 | wxSizeEvent_SetSize(arg1,arg2); | |
19341 | ||
19342 | wxPyEndAllowThreads(__tstate); | |
19343 | if (PyErr_Occurred()) SWIG_fail; | |
19344 | } | |
19345 | Py_INCREF(Py_None); resultobj = Py_None; | |
19346 | return resultobj; | |
19347 | fail: | |
19348 | return NULL; | |
19349 | } | |
19350 | ||
19351 | ||
c32bde28 | 19352 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19353 | PyObject *resultobj; |
19354 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19355 | wxSize *arg2 = (wxSize *) 0 ; | |
19356 | PyObject * obj0 = 0 ; | |
19357 | PyObject * obj1 = 0 ; | |
19358 | char *kwnames[] = { | |
19359 | (char *) "self",(char *) "m_size", NULL | |
19360 | }; | |
19361 | ||
19362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19365 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0); | |
19366 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19367 | if (arg1) (arg1)->m_size = *arg2; |
19368 | ||
19369 | Py_INCREF(Py_None); resultobj = Py_None; | |
19370 | return resultobj; | |
19371 | fail: | |
19372 | return NULL; | |
19373 | } | |
19374 | ||
19375 | ||
c32bde28 | 19376 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19377 | PyObject *resultobj; |
19378 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19379 | wxSize *result; | |
19380 | PyObject * obj0 = 0 ; | |
19381 | char *kwnames[] = { | |
19382 | (char *) "self", NULL | |
19383 | }; | |
19384 | ||
19385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19388 | result = (wxSize *)& ((arg1)->m_size); |
19389 | ||
15afbcd0 | 19390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
19391 | return resultobj; |
19392 | fail: | |
19393 | return NULL; | |
19394 | } | |
19395 | ||
19396 | ||
c32bde28 | 19397 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19398 | PyObject *resultobj; |
19399 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19400 | wxRect *arg2 = (wxRect *) 0 ; | |
19401 | PyObject * obj0 = 0 ; | |
19402 | PyObject * obj1 = 0 ; | |
19403 | char *kwnames[] = { | |
19404 | (char *) "self",(char *) "m_rect", NULL | |
19405 | }; | |
19406 | ||
19407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19410 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
19411 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19412 | if (arg1) (arg1)->m_rect = *arg2; |
19413 | ||
19414 | Py_INCREF(Py_None); resultobj = Py_None; | |
19415 | return resultobj; | |
19416 | fail: | |
19417 | return NULL; | |
19418 | } | |
19419 | ||
19420 | ||
c32bde28 | 19421 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19422 | PyObject *resultobj; |
19423 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
19424 | wxRect *result; | |
19425 | PyObject * obj0 = 0 ; | |
19426 | char *kwnames[] = { | |
19427 | (char *) "self", NULL | |
19428 | }; | |
19429 | ||
19430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0); |
19432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19433 | result = (wxRect *)& ((arg1)->m_rect); |
19434 | ||
15afbcd0 | 19435 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
19436 | return resultobj; |
19437 | fail: | |
19438 | return NULL; | |
19439 | } | |
19440 | ||
19441 | ||
c32bde28 | 19442 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19443 | PyObject *obj; |
19444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19445 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
19446 | Py_INCREF(obj); | |
19447 | return Py_BuildValue((char *)""); | |
19448 | } | |
c32bde28 | 19449 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19450 | PyObject *resultobj; |
19451 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
19452 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
19453 | int arg2 = (int) 0 ; | |
19454 | wxMoveEvent *result; | |
19455 | wxPoint temp1 ; | |
19456 | PyObject * obj0 = 0 ; | |
994141e6 | 19457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19458 | char *kwnames[] = { |
19459 | (char *) "pos",(char *) "winid", NULL | |
19460 | }; | |
19461 | ||
994141e6 | 19462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
19463 | if (obj0) { |
19464 | { | |
19465 | arg1 = &temp1; | |
19466 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
19467 | } | |
19468 | } | |
994141e6 | 19469 | if (obj1) { |
093d3ff1 RD |
19470 | { |
19471 | arg2 = (int)(SWIG_As_int(obj1)); | |
19472 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19473 | } | |
994141e6 | 19474 | } |
d14a1e28 RD |
19475 | { |
19476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19477 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
19478 | ||
19479 | wxPyEndAllowThreads(__tstate); | |
19480 | if (PyErr_Occurred()) SWIG_fail; | |
19481 | } | |
15afbcd0 | 19482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
19483 | return resultobj; |
19484 | fail: | |
19485 | return NULL; | |
19486 | } | |
19487 | ||
19488 | ||
c32bde28 | 19489 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19490 | PyObject *resultobj; |
19491 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
19492 | wxPoint result; | |
19493 | PyObject * obj0 = 0 ; | |
19494 | char *kwnames[] = { | |
19495 | (char *) "self", NULL | |
19496 | }; | |
19497 | ||
19498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
19500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19501 | { |
19502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19503 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
19504 | ||
19505 | wxPyEndAllowThreads(__tstate); | |
19506 | if (PyErr_Occurred()) SWIG_fail; | |
19507 | } | |
19508 | { | |
19509 | wxPoint * resultptr; | |
093d3ff1 | 19510 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 19511 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
19512 | } |
19513 | return resultobj; | |
19514 | fail: | |
19515 | return NULL; | |
19516 | } | |
19517 | ||
19518 | ||
c32bde28 | 19519 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19520 | PyObject *resultobj; |
19521 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
19522 | wxRect result; | |
19523 | PyObject * obj0 = 0 ; | |
19524 | char *kwnames[] = { | |
19525 | (char *) "self", NULL | |
19526 | }; | |
19527 | ||
19528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
19530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19531 | { |
19532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19533 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
19534 | ||
19535 | wxPyEndAllowThreads(__tstate); | |
19536 | if (PyErr_Occurred()) SWIG_fail; | |
19537 | } | |
19538 | { | |
19539 | wxRect * resultptr; | |
093d3ff1 | 19540 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 19541 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
19542 | } |
19543 | return resultobj; | |
19544 | fail: | |
19545 | return NULL; | |
19546 | } | |
19547 | ||
19548 | ||
c32bde28 | 19549 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19550 | PyObject *resultobj; |
19551 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
7557b9b5 RD |
19552 | wxRect *arg2 = 0 ; |
19553 | wxRect temp2 ; | |
d14a1e28 RD |
19554 | PyObject * obj0 = 0 ; |
19555 | PyObject * obj1 = 0 ; | |
19556 | char *kwnames[] = { | |
19557 | (char *) "self",(char *) "rect", NULL | |
19558 | }; | |
19559 | ||
19560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
19562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19563 | { | |
7557b9b5 RD |
19564 | arg2 = &temp2; |
19565 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
093d3ff1 | 19566 | } |
d14a1e28 RD |
19567 | { |
19568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7557b9b5 | 19569 | (arg1)->SetRect((wxRect const &)*arg2); |
d14a1e28 RD |
19570 | |
19571 | wxPyEndAllowThreads(__tstate); | |
19572 | if (PyErr_Occurred()) SWIG_fail; | |
19573 | } | |
19574 | Py_INCREF(Py_None); resultobj = Py_None; | |
19575 | return resultobj; | |
19576 | fail: | |
19577 | return NULL; | |
19578 | } | |
19579 | ||
19580 | ||
c32bde28 | 19581 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19582 | PyObject *resultobj; |
19583 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
7557b9b5 RD |
19584 | wxPoint *arg2 = 0 ; |
19585 | wxPoint temp2 ; | |
d14a1e28 RD |
19586 | PyObject * obj0 = 0 ; |
19587 | PyObject * obj1 = 0 ; | |
19588 | char *kwnames[] = { | |
19589 | (char *) "self",(char *) "pos", NULL | |
19590 | }; | |
19591 | ||
19592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0); |
19594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19595 | { | |
7557b9b5 RD |
19596 | arg2 = &temp2; |
19597 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
093d3ff1 | 19598 | } |
d14a1e28 RD |
19599 | { |
19600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7557b9b5 | 19601 | (arg1)->SetPosition((wxPoint const &)*arg2); |
d14a1e28 RD |
19602 | |
19603 | wxPyEndAllowThreads(__tstate); | |
19604 | if (PyErr_Occurred()) SWIG_fail; | |
19605 | } | |
19606 | Py_INCREF(Py_None); resultobj = Py_None; | |
19607 | return resultobj; | |
19608 | fail: | |
19609 | return NULL; | |
19610 | } | |
19611 | ||
19612 | ||
c32bde28 | 19613 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19614 | PyObject *obj; |
19615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19616 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
19617 | Py_INCREF(obj); | |
19618 | return Py_BuildValue((char *)""); | |
19619 | } | |
c32bde28 | 19620 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19621 | PyObject *resultobj; |
19622 | int arg1 = (int) 0 ; | |
19623 | wxPaintEvent *result; | |
994141e6 | 19624 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19625 | char *kwnames[] = { |
19626 | (char *) "Id", NULL | |
19627 | }; | |
19628 | ||
994141e6 RD |
19629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
19630 | if (obj0) { | |
093d3ff1 RD |
19631 | { |
19632 | arg1 = (int)(SWIG_As_int(obj0)); | |
19633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19634 | } | |
994141e6 | 19635 | } |
d14a1e28 RD |
19636 | { |
19637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19638 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
19639 | ||
19640 | wxPyEndAllowThreads(__tstate); | |
19641 | if (PyErr_Occurred()) SWIG_fail; | |
19642 | } | |
15afbcd0 | 19643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
19644 | return resultobj; |
19645 | fail: | |
19646 | return NULL; | |
19647 | } | |
19648 | ||
19649 | ||
c32bde28 | 19650 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19651 | PyObject *obj; |
19652 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19653 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
19654 | Py_INCREF(obj); | |
19655 | return Py_BuildValue((char *)""); | |
19656 | } | |
c32bde28 | 19657 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19658 | PyObject *resultobj; |
19659 | int arg1 = (int) 0 ; | |
19660 | wxNcPaintEvent *result; | |
994141e6 | 19661 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19662 | char *kwnames[] = { |
19663 | (char *) "winid", NULL | |
19664 | }; | |
19665 | ||
994141e6 RD |
19666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
19667 | if (obj0) { | |
093d3ff1 RD |
19668 | { |
19669 | arg1 = (int)(SWIG_As_int(obj0)); | |
19670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19671 | } | |
994141e6 | 19672 | } |
d14a1e28 RD |
19673 | { |
19674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19675 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
19676 | ||
19677 | wxPyEndAllowThreads(__tstate); | |
19678 | if (PyErr_Occurred()) SWIG_fail; | |
19679 | } | |
15afbcd0 | 19680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
19681 | return resultobj; |
19682 | fail: | |
19683 | return NULL; | |
19684 | } | |
19685 | ||
19686 | ||
c32bde28 | 19687 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19688 | PyObject *obj; |
19689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19690 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
19691 | Py_INCREF(obj); | |
19692 | return Py_BuildValue((char *)""); | |
19693 | } | |
c32bde28 | 19694 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19695 | PyObject *resultobj; |
19696 | int arg1 = (int) 0 ; | |
19697 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
19698 | wxEraseEvent *result; | |
994141e6 | 19699 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19700 | PyObject * obj1 = 0 ; |
19701 | char *kwnames[] = { | |
19702 | (char *) "Id",(char *) "dc", NULL | |
19703 | }; | |
19704 | ||
994141e6 RD |
19705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
19706 | if (obj0) { | |
093d3ff1 RD |
19707 | { |
19708 | arg1 = (int)(SWIG_As_int(obj0)); | |
19709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19710 | } | |
994141e6 | 19711 | } |
d14a1e28 | 19712 | if (obj1) { |
093d3ff1 RD |
19713 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); |
19714 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19715 | } |
19716 | { | |
19717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19718 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
19719 | ||
19720 | wxPyEndAllowThreads(__tstate); | |
19721 | if (PyErr_Occurred()) SWIG_fail; | |
19722 | } | |
15afbcd0 | 19723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
19724 | return resultobj; |
19725 | fail: | |
19726 | return NULL; | |
19727 | } | |
19728 | ||
19729 | ||
c32bde28 | 19730 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19731 | PyObject *resultobj; |
19732 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
19733 | wxDC *result; | |
19734 | PyObject * obj0 = 0 ; | |
19735 | char *kwnames[] = { | |
19736 | (char *) "self", NULL | |
19737 | }; | |
19738 | ||
19739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEraseEvent, SWIG_POINTER_EXCEPTION | 0); |
19741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19742 | { |
19743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19744 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
19745 | ||
19746 | wxPyEndAllowThreads(__tstate); | |
19747 | if (PyErr_Occurred()) SWIG_fail; | |
19748 | } | |
19749 | { | |
412d302d | 19750 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19751 | } |
19752 | return resultobj; | |
19753 | fail: | |
19754 | return NULL; | |
19755 | } | |
19756 | ||
19757 | ||
c32bde28 | 19758 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19759 | PyObject *obj; |
19760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19761 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
19762 | Py_INCREF(obj); | |
19763 | return Py_BuildValue((char *)""); | |
19764 | } | |
c32bde28 | 19765 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19766 | PyObject *resultobj; |
19767 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19768 | int arg2 = (int) 0 ; | |
19769 | wxFocusEvent *result; | |
994141e6 RD |
19770 | PyObject * obj0 = 0 ; |
19771 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19772 | char *kwnames[] = { |
19773 | (char *) "type",(char *) "winid", NULL | |
19774 | }; | |
19775 | ||
994141e6 RD |
19776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
19777 | if (obj0) { | |
093d3ff1 RD |
19778 | { |
19779 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
19780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19781 | } | |
994141e6 RD |
19782 | } |
19783 | if (obj1) { | |
093d3ff1 RD |
19784 | { |
19785 | arg2 = (int)(SWIG_As_int(obj1)); | |
19786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19787 | } | |
994141e6 | 19788 | } |
d14a1e28 RD |
19789 | { |
19790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19791 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
19792 | ||
19793 | wxPyEndAllowThreads(__tstate); | |
19794 | if (PyErr_Occurred()) SWIG_fail; | |
19795 | } | |
15afbcd0 | 19796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
19797 | return resultobj; |
19798 | fail: | |
19799 | return NULL; | |
19800 | } | |
19801 | ||
19802 | ||
c32bde28 | 19803 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19804 | PyObject *resultobj; |
19805 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
19806 | wxWindow *result; | |
19807 | PyObject * obj0 = 0 ; | |
19808 | char *kwnames[] = { | |
19809 | (char *) "self", NULL | |
19810 | }; | |
19811 | ||
19812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19815 | { |
19816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19817 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
19818 | ||
19819 | wxPyEndAllowThreads(__tstate); | |
19820 | if (PyErr_Occurred()) SWIG_fail; | |
19821 | } | |
19822 | { | |
412d302d | 19823 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19824 | } |
19825 | return resultobj; | |
19826 | fail: | |
19827 | return NULL; | |
19828 | } | |
19829 | ||
19830 | ||
c32bde28 | 19831 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19832 | PyObject *resultobj; |
19833 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
19834 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19835 | PyObject * obj0 = 0 ; | |
19836 | PyObject * obj1 = 0 ; | |
19837 | char *kwnames[] = { | |
19838 | (char *) "self",(char *) "win", NULL | |
19839 | }; | |
19840 | ||
19841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19844 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
19845 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19846 | { |
19847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19848 | (arg1)->SetWindow(arg2); | |
19849 | ||
19850 | wxPyEndAllowThreads(__tstate); | |
19851 | if (PyErr_Occurred()) SWIG_fail; | |
19852 | } | |
19853 | Py_INCREF(Py_None); resultobj = Py_None; | |
19854 | return resultobj; | |
19855 | fail: | |
19856 | return NULL; | |
19857 | } | |
19858 | ||
19859 | ||
c32bde28 | 19860 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19861 | PyObject *obj; |
19862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19863 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
19864 | Py_INCREF(obj); | |
19865 | return Py_BuildValue((char *)""); | |
19866 | } | |
c32bde28 | 19867 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19868 | PyObject *resultobj; |
19869 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19870 | wxChildFocusEvent *result; | |
19871 | PyObject * obj0 = 0 ; | |
19872 | char *kwnames[] = { | |
19873 | (char *) "win", NULL | |
19874 | }; | |
19875 | ||
19876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
19877 | if (obj0) { | |
093d3ff1 RD |
19878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
19879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19880 | } |
19881 | { | |
19882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19883 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
19884 | ||
19885 | wxPyEndAllowThreads(__tstate); | |
19886 | if (PyErr_Occurred()) SWIG_fail; | |
19887 | } | |
15afbcd0 | 19888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
19889 | return resultobj; |
19890 | fail: | |
19891 | return NULL; | |
19892 | } | |
19893 | ||
19894 | ||
c32bde28 | 19895 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19896 | PyObject *resultobj; |
19897 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
19898 | wxWindow *result; | |
19899 | PyObject * obj0 = 0 ; | |
19900 | char *kwnames[] = { | |
19901 | (char *) "self", NULL | |
19902 | }; | |
19903 | ||
19904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChildFocusEvent, SWIG_POINTER_EXCEPTION | 0); |
19906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19907 | { |
19908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19909 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
19910 | ||
19911 | wxPyEndAllowThreads(__tstate); | |
19912 | if (PyErr_Occurred()) SWIG_fail; | |
19913 | } | |
19914 | { | |
412d302d | 19915 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19916 | } |
19917 | return resultobj; | |
19918 | fail: | |
19919 | return NULL; | |
19920 | } | |
19921 | ||
19922 | ||
c32bde28 | 19923 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19924 | PyObject *obj; |
19925 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19926 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
19927 | Py_INCREF(obj); | |
19928 | return Py_BuildValue((char *)""); | |
19929 | } | |
c32bde28 | 19930 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19931 | PyObject *resultobj; |
19932 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
ae8162c8 | 19933 | bool arg2 = (bool) true ; |
d14a1e28 RD |
19934 | int arg3 = (int) 0 ; |
19935 | wxActivateEvent *result; | |
994141e6 | 19936 | PyObject * obj0 = 0 ; |
d14a1e28 | 19937 | PyObject * obj1 = 0 ; |
994141e6 | 19938 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19939 | char *kwnames[] = { |
19940 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
19941 | }; | |
19942 | ||
994141e6 RD |
19943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
19944 | if (obj0) { | |
093d3ff1 RD |
19945 | { |
19946 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
19947 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19948 | } | |
994141e6 | 19949 | } |
d14a1e28 | 19950 | if (obj1) { |
093d3ff1 RD |
19951 | { |
19952 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19954 | } | |
994141e6 RD |
19955 | } |
19956 | if (obj2) { | |
093d3ff1 RD |
19957 | { |
19958 | arg3 = (int)(SWIG_As_int(obj2)); | |
19959 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19960 | } | |
d14a1e28 RD |
19961 | } |
19962 | { | |
19963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19964 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
19965 | ||
19966 | wxPyEndAllowThreads(__tstate); | |
19967 | if (PyErr_Occurred()) SWIG_fail; | |
19968 | } | |
15afbcd0 | 19969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
19970 | return resultobj; |
19971 | fail: | |
19972 | return NULL; | |
19973 | } | |
19974 | ||
19975 | ||
c32bde28 | 19976 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19977 | PyObject *resultobj; |
19978 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
19979 | bool result; | |
19980 | PyObject * obj0 = 0 ; | |
19981 | char *kwnames[] = { | |
19982 | (char *) "self", NULL | |
19983 | }; | |
19984 | ||
19985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActivateEvent, SWIG_POINTER_EXCEPTION | 0); |
19987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19988 | { |
19989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19990 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
19991 | ||
19992 | wxPyEndAllowThreads(__tstate); | |
19993 | if (PyErr_Occurred()) SWIG_fail; | |
19994 | } | |
4f89f6a3 RD |
19995 | { |
19996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19997 | } | |
d14a1e28 RD |
19998 | return resultobj; |
19999 | fail: | |
20000 | return NULL; | |
20001 | } | |
20002 | ||
20003 | ||
c32bde28 | 20004 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20005 | PyObject *obj; |
20006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20007 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
20008 | Py_INCREF(obj); | |
20009 | return Py_BuildValue((char *)""); | |
20010 | } | |
c32bde28 | 20011 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20012 | PyObject *resultobj; |
20013 | int arg1 = (int) 0 ; | |
20014 | wxInitDialogEvent *result; | |
994141e6 | 20015 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20016 | char *kwnames[] = { |
20017 | (char *) "Id", NULL | |
20018 | }; | |
20019 | ||
994141e6 RD |
20020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
20021 | if (obj0) { | |
093d3ff1 RD |
20022 | { |
20023 | arg1 = (int)(SWIG_As_int(obj0)); | |
20024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20025 | } | |
994141e6 | 20026 | } |
d14a1e28 RD |
20027 | { |
20028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20029 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
20030 | ||
20031 | wxPyEndAllowThreads(__tstate); | |
20032 | if (PyErr_Occurred()) SWIG_fail; | |
20033 | } | |
15afbcd0 | 20034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
20035 | return resultobj; |
20036 | fail: | |
20037 | return NULL; | |
20038 | } | |
20039 | ||
20040 | ||
c32bde28 | 20041 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20042 | PyObject *obj; |
20043 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20044 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
20045 | Py_INCREF(obj); | |
20046 | return Py_BuildValue((char *)""); | |
20047 | } | |
c32bde28 | 20048 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20049 | PyObject *resultobj; |
20050 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20051 | int arg2 = (int) 0 ; | |
20052 | wxMenu *arg3 = (wxMenu *) NULL ; | |
20053 | wxMenuEvent *result; | |
994141e6 RD |
20054 | PyObject * obj0 = 0 ; |
20055 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20056 | PyObject * obj2 = 0 ; |
20057 | char *kwnames[] = { | |
20058 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
20059 | }; | |
20060 | ||
994141e6 RD |
20061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
20062 | if (obj0) { | |
093d3ff1 RD |
20063 | { |
20064 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
20065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20066 | } | |
994141e6 RD |
20067 | } |
20068 | if (obj1) { | |
093d3ff1 RD |
20069 | { |
20070 | arg2 = (int)(SWIG_As_int(obj1)); | |
20071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20072 | } | |
994141e6 | 20073 | } |
d14a1e28 | 20074 | if (obj2) { |
093d3ff1 RD |
20075 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
20076 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
20077 | } |
20078 | { | |
20079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20080 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
20081 | ||
20082 | wxPyEndAllowThreads(__tstate); | |
20083 | if (PyErr_Occurred()) SWIG_fail; | |
20084 | } | |
15afbcd0 | 20085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
20086 | return resultobj; |
20087 | fail: | |
20088 | return NULL; | |
20089 | } | |
20090 | ||
20091 | ||
c32bde28 | 20092 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20093 | PyObject *resultobj; |
20094 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
20095 | int result; | |
20096 | PyObject * obj0 = 0 ; | |
20097 | char *kwnames[] = { | |
20098 | (char *) "self", NULL | |
20099 | }; | |
20100 | ||
20101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
20103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20104 | { |
20105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20106 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
20107 | ||
20108 | wxPyEndAllowThreads(__tstate); | |
20109 | if (PyErr_Occurred()) SWIG_fail; | |
20110 | } | |
093d3ff1 RD |
20111 | { |
20112 | resultobj = SWIG_From_int((int)(result)); | |
20113 | } | |
d14a1e28 RD |
20114 | return resultobj; |
20115 | fail: | |
20116 | return NULL; | |
20117 | } | |
20118 | ||
20119 | ||
c32bde28 | 20120 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20121 | PyObject *resultobj; |
20122 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
20123 | bool result; | |
20124 | PyObject * obj0 = 0 ; | |
20125 | char *kwnames[] = { | |
20126 | (char *) "self", NULL | |
20127 | }; | |
20128 | ||
20129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
20131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20132 | { |
20133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20134 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
20135 | ||
20136 | wxPyEndAllowThreads(__tstate); | |
20137 | if (PyErr_Occurred()) SWIG_fail; | |
20138 | } | |
4f89f6a3 RD |
20139 | { |
20140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20141 | } | |
d14a1e28 RD |
20142 | return resultobj; |
20143 | fail: | |
20144 | return NULL; | |
20145 | } | |
20146 | ||
20147 | ||
c32bde28 | 20148 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20149 | PyObject *resultobj; |
20150 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
20151 | wxMenu *result; | |
20152 | PyObject * obj0 = 0 ; | |
20153 | char *kwnames[] = { | |
20154 | (char *) "self", NULL | |
20155 | }; | |
20156 | ||
20157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
20159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20160 | { |
20161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20162 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
20163 | ||
20164 | wxPyEndAllowThreads(__tstate); | |
20165 | if (PyErr_Occurred()) SWIG_fail; | |
20166 | } | |
20167 | { | |
412d302d | 20168 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20169 | } |
20170 | return resultobj; | |
20171 | fail: | |
20172 | return NULL; | |
20173 | } | |
20174 | ||
20175 | ||
c32bde28 | 20176 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20177 | PyObject *obj; |
20178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20179 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
20180 | Py_INCREF(obj); | |
20181 | return Py_BuildValue((char *)""); | |
20182 | } | |
c32bde28 | 20183 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20184 | PyObject *resultobj; |
20185 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20186 | int arg2 = (int) 0 ; | |
20187 | wxCloseEvent *result; | |
994141e6 RD |
20188 | PyObject * obj0 = 0 ; |
20189 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20190 | char *kwnames[] = { |
20191 | (char *) "type",(char *) "winid", NULL | |
20192 | }; | |
20193 | ||
994141e6 RD |
20194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
20195 | if (obj0) { | |
093d3ff1 RD |
20196 | { |
20197 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
20198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20199 | } | |
994141e6 RD |
20200 | } |
20201 | if (obj1) { | |
093d3ff1 RD |
20202 | { |
20203 | arg2 = (int)(SWIG_As_int(obj1)); | |
20204 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20205 | } | |
994141e6 | 20206 | } |
d14a1e28 RD |
20207 | { |
20208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20209 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
20210 | ||
20211 | wxPyEndAllowThreads(__tstate); | |
20212 | if (PyErr_Occurred()) SWIG_fail; | |
20213 | } | |
15afbcd0 | 20214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
20215 | return resultobj; |
20216 | fail: | |
20217 | return NULL; | |
20218 | } | |
20219 | ||
20220 | ||
c32bde28 | 20221 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20222 | PyObject *resultobj; |
20223 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20224 | bool arg2 ; | |
20225 | PyObject * obj0 = 0 ; | |
20226 | PyObject * obj1 = 0 ; | |
20227 | char *kwnames[] = { | |
20228 | (char *) "self",(char *) "logOff", NULL | |
20229 | }; | |
20230 | ||
20231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20234 | { | |
20235 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20236 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20237 | } | |
d14a1e28 RD |
20238 | { |
20239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20240 | (arg1)->SetLoggingOff(arg2); | |
20241 | ||
20242 | wxPyEndAllowThreads(__tstate); | |
20243 | if (PyErr_Occurred()) SWIG_fail; | |
20244 | } | |
20245 | Py_INCREF(Py_None); resultobj = Py_None; | |
20246 | return resultobj; | |
20247 | fail: | |
20248 | return NULL; | |
20249 | } | |
20250 | ||
20251 | ||
c32bde28 | 20252 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20253 | PyObject *resultobj; |
20254 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20255 | bool result; | |
20256 | PyObject * obj0 = 0 ; | |
20257 | char *kwnames[] = { | |
20258 | (char *) "self", NULL | |
20259 | }; | |
20260 | ||
20261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20264 | { |
20265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20266 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
20267 | ||
20268 | wxPyEndAllowThreads(__tstate); | |
20269 | if (PyErr_Occurred()) SWIG_fail; | |
20270 | } | |
4f89f6a3 RD |
20271 | { |
20272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20273 | } | |
d14a1e28 RD |
20274 | return resultobj; |
20275 | fail: | |
20276 | return NULL; | |
20277 | } | |
20278 | ||
20279 | ||
c32bde28 | 20280 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20281 | PyObject *resultobj; |
20282 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
ae8162c8 | 20283 | bool arg2 = (bool) true ; |
d14a1e28 RD |
20284 | PyObject * obj0 = 0 ; |
20285 | PyObject * obj1 = 0 ; | |
20286 | char *kwnames[] = { | |
20287 | (char *) "self",(char *) "veto", NULL | |
20288 | }; | |
20289 | ||
20290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 20293 | if (obj1) { |
093d3ff1 RD |
20294 | { |
20295 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20296 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20297 | } | |
d14a1e28 RD |
20298 | } |
20299 | { | |
20300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20301 | (arg1)->Veto(arg2); | |
20302 | ||
20303 | wxPyEndAllowThreads(__tstate); | |
20304 | if (PyErr_Occurred()) SWIG_fail; | |
20305 | } | |
20306 | Py_INCREF(Py_None); resultobj = Py_None; | |
20307 | return resultobj; | |
20308 | fail: | |
20309 | return NULL; | |
20310 | } | |
20311 | ||
20312 | ||
c32bde28 | 20313 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20314 | PyObject *resultobj; |
20315 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20316 | bool arg2 ; | |
20317 | PyObject * obj0 = 0 ; | |
20318 | PyObject * obj1 = 0 ; | |
20319 | char *kwnames[] = { | |
20320 | (char *) "self",(char *) "canVeto", NULL | |
20321 | }; | |
20322 | ||
20323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20326 | { | |
20327 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20328 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20329 | } | |
d14a1e28 RD |
20330 | { |
20331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20332 | (arg1)->SetCanVeto(arg2); | |
20333 | ||
20334 | wxPyEndAllowThreads(__tstate); | |
20335 | if (PyErr_Occurred()) SWIG_fail; | |
20336 | } | |
20337 | Py_INCREF(Py_None); resultobj = Py_None; | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | return NULL; | |
20341 | } | |
20342 | ||
20343 | ||
c32bde28 | 20344 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20345 | PyObject *resultobj; |
20346 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20347 | bool result; | |
20348 | PyObject * obj0 = 0 ; | |
20349 | char *kwnames[] = { | |
20350 | (char *) "self", NULL | |
20351 | }; | |
20352 | ||
20353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20356 | { |
20357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20358 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
20359 | ||
20360 | wxPyEndAllowThreads(__tstate); | |
20361 | if (PyErr_Occurred()) SWIG_fail; | |
20362 | } | |
4f89f6a3 RD |
20363 | { |
20364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20365 | } | |
d14a1e28 RD |
20366 | return resultobj; |
20367 | fail: | |
20368 | return NULL; | |
20369 | } | |
20370 | ||
20371 | ||
c32bde28 | 20372 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20373 | PyObject *resultobj; |
20374 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
20375 | bool result; | |
20376 | PyObject * obj0 = 0 ; | |
20377 | char *kwnames[] = { | |
20378 | (char *) "self", NULL | |
20379 | }; | |
20380 | ||
20381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0); |
20383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20384 | { |
20385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20386 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
20387 | ||
20388 | wxPyEndAllowThreads(__tstate); | |
20389 | if (PyErr_Occurred()) SWIG_fail; | |
20390 | } | |
4f89f6a3 RD |
20391 | { |
20392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20393 | } | |
d14a1e28 RD |
20394 | return resultobj; |
20395 | fail: | |
20396 | return NULL; | |
20397 | } | |
20398 | ||
20399 | ||
c32bde28 | 20400 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20401 | PyObject *obj; |
20402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20403 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
20404 | Py_INCREF(obj); | |
20405 | return Py_BuildValue((char *)""); | |
20406 | } | |
c32bde28 | 20407 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20408 | PyObject *resultobj; |
20409 | int arg1 = (int) 0 ; | |
ae8162c8 | 20410 | bool arg2 = (bool) false ; |
d14a1e28 | 20411 | wxShowEvent *result; |
994141e6 | 20412 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20413 | PyObject * obj1 = 0 ; |
20414 | char *kwnames[] = { | |
20415 | (char *) "winid",(char *) "show", NULL | |
20416 | }; | |
20417 | ||
994141e6 RD |
20418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
20419 | if (obj0) { | |
093d3ff1 RD |
20420 | { |
20421 | arg1 = (int)(SWIG_As_int(obj0)); | |
20422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20423 | } | |
994141e6 | 20424 | } |
d14a1e28 | 20425 | if (obj1) { |
093d3ff1 RD |
20426 | { |
20427 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20428 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20429 | } | |
d14a1e28 RD |
20430 | } |
20431 | { | |
20432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20433 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
20434 | ||
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
15afbcd0 | 20438 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
20439 | return resultobj; |
20440 | fail: | |
20441 | return NULL; | |
20442 | } | |
20443 | ||
20444 | ||
c32bde28 | 20445 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20446 | PyObject *resultobj; |
20447 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
20448 | bool arg2 ; | |
20449 | PyObject * obj0 = 0 ; | |
20450 | PyObject * obj1 = 0 ; | |
20451 | char *kwnames[] = { | |
20452 | (char *) "self",(char *) "show", NULL | |
20453 | }; | |
20454 | ||
20455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxShowEvent, SWIG_POINTER_EXCEPTION | 0); |
20457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20458 | { | |
20459 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20460 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20461 | } | |
d14a1e28 RD |
20462 | { |
20463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20464 | (arg1)->SetShow(arg2); | |
20465 | ||
20466 | wxPyEndAllowThreads(__tstate); | |
20467 | if (PyErr_Occurred()) SWIG_fail; | |
20468 | } | |
20469 | Py_INCREF(Py_None); resultobj = Py_None; | |
20470 | return resultobj; | |
20471 | fail: | |
20472 | return NULL; | |
20473 | } | |
20474 | ||
20475 | ||
c32bde28 | 20476 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20477 | PyObject *resultobj; |
20478 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
20479 | bool result; | |
20480 | PyObject * obj0 = 0 ; | |
20481 | char *kwnames[] = { | |
20482 | (char *) "self", NULL | |
20483 | }; | |
20484 | ||
20485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxShowEvent, SWIG_POINTER_EXCEPTION | 0); |
20487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20488 | { |
20489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20490 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
20491 | ||
20492 | wxPyEndAllowThreads(__tstate); | |
20493 | if (PyErr_Occurred()) SWIG_fail; | |
20494 | } | |
4f89f6a3 RD |
20495 | { |
20496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20497 | } | |
d14a1e28 RD |
20498 | return resultobj; |
20499 | fail: | |
20500 | return NULL; | |
20501 | } | |
20502 | ||
20503 | ||
c32bde28 | 20504 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20505 | PyObject *obj; |
20506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20507 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
20508 | Py_INCREF(obj); | |
20509 | return Py_BuildValue((char *)""); | |
20510 | } | |
c32bde28 | 20511 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20512 | PyObject *resultobj; |
20513 | int arg1 = (int) 0 ; | |
ae8162c8 | 20514 | bool arg2 = (bool) true ; |
d14a1e28 | 20515 | wxIconizeEvent *result; |
994141e6 | 20516 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20517 | PyObject * obj1 = 0 ; |
20518 | char *kwnames[] = { | |
20519 | (char *) "id",(char *) "iconized", NULL | |
20520 | }; | |
20521 | ||
994141e6 RD |
20522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
20523 | if (obj0) { | |
093d3ff1 RD |
20524 | { |
20525 | arg1 = (int)(SWIG_As_int(obj0)); | |
20526 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20527 | } | |
994141e6 | 20528 | } |
d14a1e28 | 20529 | if (obj1) { |
093d3ff1 RD |
20530 | { |
20531 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20532 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20533 | } | |
d14a1e28 RD |
20534 | } |
20535 | { | |
20536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20537 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
20538 | ||
20539 | wxPyEndAllowThreads(__tstate); | |
20540 | if (PyErr_Occurred()) SWIG_fail; | |
20541 | } | |
15afbcd0 | 20542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
20543 | return resultobj; |
20544 | fail: | |
20545 | return NULL; | |
20546 | } | |
20547 | ||
20548 | ||
c32bde28 | 20549 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20550 | PyObject *resultobj; |
20551 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
20552 | bool result; | |
20553 | PyObject * obj0 = 0 ; | |
20554 | char *kwnames[] = { | |
20555 | (char *) "self", NULL | |
20556 | }; | |
20557 | ||
20558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconizeEvent, SWIG_POINTER_EXCEPTION | 0); |
20560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20561 | { |
20562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20563 | result = (bool)(arg1)->Iconized(); | |
20564 | ||
20565 | wxPyEndAllowThreads(__tstate); | |
20566 | if (PyErr_Occurred()) SWIG_fail; | |
20567 | } | |
4f89f6a3 RD |
20568 | { |
20569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20570 | } | |
d14a1e28 RD |
20571 | return resultobj; |
20572 | fail: | |
20573 | return NULL; | |
20574 | } | |
20575 | ||
20576 | ||
c32bde28 | 20577 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20578 | PyObject *obj; |
20579 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20580 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
20581 | Py_INCREF(obj); | |
20582 | return Py_BuildValue((char *)""); | |
20583 | } | |
c32bde28 | 20584 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20585 | PyObject *resultobj; |
20586 | int arg1 = (int) 0 ; | |
20587 | wxMaximizeEvent *result; | |
994141e6 | 20588 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20589 | char *kwnames[] = { |
20590 | (char *) "id", NULL | |
20591 | }; | |
20592 | ||
994141e6 RD |
20593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
20594 | if (obj0) { | |
093d3ff1 RD |
20595 | { |
20596 | arg1 = (int)(SWIG_As_int(obj0)); | |
20597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20598 | } | |
994141e6 | 20599 | } |
d14a1e28 RD |
20600 | { |
20601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20602 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
20603 | ||
20604 | wxPyEndAllowThreads(__tstate); | |
20605 | if (PyErr_Occurred()) SWIG_fail; | |
20606 | } | |
15afbcd0 | 20607 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
20608 | return resultobj; |
20609 | fail: | |
20610 | return NULL; | |
20611 | } | |
20612 | ||
20613 | ||
c32bde28 | 20614 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20615 | PyObject *obj; |
20616 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20617 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
20618 | Py_INCREF(obj); | |
20619 | return Py_BuildValue((char *)""); | |
20620 | } | |
c32bde28 | 20621 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20622 | PyObject *resultobj; |
20623 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20624 | wxPoint result; | |
20625 | PyObject * obj0 = 0 ; | |
20626 | char *kwnames[] = { | |
20627 | (char *) "self", NULL | |
20628 | }; | |
20629 | ||
20630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20633 | { |
20634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20635 | result = (arg1)->GetPosition(); | |
20636 | ||
20637 | wxPyEndAllowThreads(__tstate); | |
20638 | if (PyErr_Occurred()) SWIG_fail; | |
20639 | } | |
20640 | { | |
20641 | wxPoint * resultptr; | |
093d3ff1 | 20642 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 20643 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
20644 | } |
20645 | return resultobj; | |
20646 | fail: | |
20647 | return NULL; | |
20648 | } | |
20649 | ||
20650 | ||
c32bde28 | 20651 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20652 | PyObject *resultobj; |
20653 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20654 | int result; | |
20655 | PyObject * obj0 = 0 ; | |
20656 | char *kwnames[] = { | |
20657 | (char *) "self", NULL | |
20658 | }; | |
20659 | ||
20660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20663 | { |
20664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20665 | result = (int)(arg1)->GetNumberOfFiles(); | |
20666 | ||
20667 | wxPyEndAllowThreads(__tstate); | |
20668 | if (PyErr_Occurred()) SWIG_fail; | |
20669 | } | |
093d3ff1 RD |
20670 | { |
20671 | resultobj = SWIG_From_int((int)(result)); | |
20672 | } | |
d14a1e28 RD |
20673 | return resultobj; |
20674 | fail: | |
20675 | return NULL; | |
20676 | } | |
20677 | ||
20678 | ||
c32bde28 | 20679 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20680 | PyObject *resultobj; |
20681 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
20682 | PyObject *result; | |
20683 | PyObject * obj0 = 0 ; | |
20684 | char *kwnames[] = { | |
20685 | (char *) "self", NULL | |
20686 | }; | |
20687 | ||
20688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0); |
20690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20691 | { |
20692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20693 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
20694 | ||
20695 | wxPyEndAllowThreads(__tstate); | |
20696 | if (PyErr_Occurred()) SWIG_fail; | |
20697 | } | |
20698 | resultobj = result; | |
20699 | return resultobj; | |
20700 | fail: | |
20701 | return NULL; | |
20702 | } | |
20703 | ||
20704 | ||
c32bde28 | 20705 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20706 | PyObject *obj; |
20707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20708 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
20709 | Py_INCREF(obj); | |
20710 | return Py_BuildValue((char *)""); | |
20711 | } | |
c32bde28 | 20712 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 20713 | PyObject *resultobj; |
e811c8ce | 20714 | int arg1 = (int) 0 ; |
d14a1e28 | 20715 | wxUpdateUIEvent *result; |
994141e6 | 20716 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20717 | char *kwnames[] = { |
20718 | (char *) "commandId", NULL | |
20719 | }; | |
20720 | ||
994141e6 RD |
20721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
20722 | if (obj0) { | |
093d3ff1 RD |
20723 | { |
20724 | arg1 = (int)(SWIG_As_int(obj0)); | |
20725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20726 | } | |
994141e6 | 20727 | } |
d14a1e28 RD |
20728 | { |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
20731 | ||
20732 | wxPyEndAllowThreads(__tstate); | |
20733 | if (PyErr_Occurred()) SWIG_fail; | |
20734 | } | |
15afbcd0 | 20735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
20736 | return resultobj; |
20737 | fail: | |
20738 | return NULL; | |
20739 | } | |
20740 | ||
20741 | ||
c32bde28 | 20742 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20743 | PyObject *resultobj; |
20744 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20745 | bool result; | |
20746 | PyObject * obj0 = 0 ; | |
20747 | char *kwnames[] = { | |
20748 | (char *) "self", NULL | |
20749 | }; | |
20750 | ||
20751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20752 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20754 | { |
20755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20756 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
20757 | ||
20758 | wxPyEndAllowThreads(__tstate); | |
20759 | if (PyErr_Occurred()) SWIG_fail; | |
20760 | } | |
4f89f6a3 RD |
20761 | { |
20762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20763 | } | |
d14a1e28 RD |
20764 | return resultobj; |
20765 | fail: | |
20766 | return NULL; | |
20767 | } | |
20768 | ||
20769 | ||
c32bde28 | 20770 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20771 | PyObject *resultobj; |
20772 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20773 | bool result; | |
20774 | PyObject * obj0 = 0 ; | |
20775 | char *kwnames[] = { | |
20776 | (char *) "self", NULL | |
20777 | }; | |
20778 | ||
20779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20782 | { |
20783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20784 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
20785 | ||
20786 | wxPyEndAllowThreads(__tstate); | |
20787 | if (PyErr_Occurred()) SWIG_fail; | |
20788 | } | |
4f89f6a3 RD |
20789 | { |
20790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20791 | } | |
d14a1e28 RD |
20792 | return resultobj; |
20793 | fail: | |
20794 | return NULL; | |
20795 | } | |
20796 | ||
20797 | ||
c32bde28 | 20798 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20799 | PyObject *resultobj; |
20800 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20801 | wxString result; | |
20802 | PyObject * obj0 = 0 ; | |
20803 | char *kwnames[] = { | |
20804 | (char *) "self", NULL | |
20805 | }; | |
20806 | ||
20807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20810 | { |
20811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20812 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
20813 | ||
20814 | wxPyEndAllowThreads(__tstate); | |
20815 | if (PyErr_Occurred()) SWIG_fail; | |
20816 | } | |
20817 | { | |
20818 | #if wxUSE_UNICODE | |
20819 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20820 | #else | |
20821 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20822 | #endif | |
20823 | } | |
20824 | return resultobj; | |
20825 | fail: | |
20826 | return NULL; | |
20827 | } | |
20828 | ||
20829 | ||
c32bde28 | 20830 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20831 | PyObject *resultobj; |
20832 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20833 | bool result; | |
20834 | PyObject * obj0 = 0 ; | |
20835 | char *kwnames[] = { | |
20836 | (char *) "self", NULL | |
20837 | }; | |
20838 | ||
20839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20840 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20841 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20842 | { |
20843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20844 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
20845 | ||
20846 | wxPyEndAllowThreads(__tstate); | |
20847 | if (PyErr_Occurred()) SWIG_fail; | |
20848 | } | |
4f89f6a3 RD |
20849 | { |
20850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20851 | } | |
d14a1e28 RD |
20852 | return resultobj; |
20853 | fail: | |
20854 | return NULL; | |
20855 | } | |
20856 | ||
20857 | ||
c32bde28 | 20858 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20859 | PyObject *resultobj; |
20860 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20861 | bool result; | |
20862 | PyObject * obj0 = 0 ; | |
20863 | char *kwnames[] = { | |
20864 | (char *) "self", NULL | |
20865 | }; | |
20866 | ||
20867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20870 | { |
20871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20872 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
20873 | ||
20874 | wxPyEndAllowThreads(__tstate); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | } | |
4f89f6a3 RD |
20877 | { |
20878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20879 | } | |
d14a1e28 RD |
20880 | return resultobj; |
20881 | fail: | |
20882 | return NULL; | |
20883 | } | |
20884 | ||
20885 | ||
c32bde28 | 20886 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20887 | PyObject *resultobj; |
20888 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20889 | bool result; | |
20890 | PyObject * obj0 = 0 ; | |
20891 | char *kwnames[] = { | |
20892 | (char *) "self", NULL | |
20893 | }; | |
20894 | ||
20895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20898 | { |
20899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20900 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
20901 | ||
20902 | wxPyEndAllowThreads(__tstate); | |
20903 | if (PyErr_Occurred()) SWIG_fail; | |
20904 | } | |
4f89f6a3 RD |
20905 | { |
20906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20907 | } | |
d14a1e28 RD |
20908 | return resultobj; |
20909 | fail: | |
20910 | return NULL; | |
20911 | } | |
20912 | ||
20913 | ||
c32bde28 | 20914 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20915 | PyObject *resultobj; |
20916 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20917 | bool arg2 ; | |
20918 | PyObject * obj0 = 0 ; | |
20919 | PyObject * obj1 = 0 ; | |
20920 | char *kwnames[] = { | |
20921 | (char *) "self",(char *) "check", NULL | |
20922 | }; | |
20923 | ||
20924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20927 | { | |
20928 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20929 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20930 | } | |
d14a1e28 RD |
20931 | { |
20932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20933 | (arg1)->Check(arg2); | |
20934 | ||
20935 | wxPyEndAllowThreads(__tstate); | |
20936 | if (PyErr_Occurred()) SWIG_fail; | |
20937 | } | |
20938 | Py_INCREF(Py_None); resultobj = Py_None; | |
20939 | return resultobj; | |
20940 | fail: | |
20941 | return NULL; | |
20942 | } | |
20943 | ||
20944 | ||
c32bde28 | 20945 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20946 | PyObject *resultobj; |
20947 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20948 | bool arg2 ; | |
20949 | PyObject * obj0 = 0 ; | |
20950 | PyObject * obj1 = 0 ; | |
20951 | char *kwnames[] = { | |
20952 | (char *) "self",(char *) "enable", NULL | |
20953 | }; | |
20954 | ||
20955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20958 | { | |
20959 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
20960 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20961 | } | |
d14a1e28 RD |
20962 | { |
20963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20964 | (arg1)->Enable(arg2); | |
20965 | ||
20966 | wxPyEndAllowThreads(__tstate); | |
20967 | if (PyErr_Occurred()) SWIG_fail; | |
20968 | } | |
20969 | Py_INCREF(Py_None); resultobj = Py_None; | |
20970 | return resultobj; | |
20971 | fail: | |
20972 | return NULL; | |
20973 | } | |
20974 | ||
20975 | ||
c32bde28 | 20976 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20977 | PyObject *resultobj; |
20978 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
20979 | wxString *arg2 = 0 ; | |
ae8162c8 | 20980 | bool temp2 = false ; |
d14a1e28 RD |
20981 | PyObject * obj0 = 0 ; |
20982 | PyObject * obj1 = 0 ; | |
20983 | char *kwnames[] = { | |
20984 | (char *) "self",(char *) "text", NULL | |
20985 | }; | |
20986 | ||
20987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0); |
20989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20990 | { |
20991 | arg2 = wxString_in_helper(obj1); | |
20992 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20993 | temp2 = true; |
d14a1e28 RD |
20994 | } |
20995 | { | |
20996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20997 | (arg1)->SetText((wxString const &)*arg2); | |
20998 | ||
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | Py_INCREF(Py_None); resultobj = Py_None; | |
21003 | { | |
21004 | if (temp2) | |
21005 | delete arg2; | |
21006 | } | |
21007 | return resultobj; | |
21008 | fail: | |
21009 | { | |
21010 | if (temp2) | |
21011 | delete arg2; | |
21012 | } | |
21013 | return NULL; | |
21014 | } | |
21015 | ||
21016 | ||
c32bde28 | 21017 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21018 | PyObject *resultobj; |
21019 | long arg1 ; | |
994141e6 | 21020 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21021 | char *kwnames[] = { |
21022 | (char *) "updateInterval", NULL | |
21023 | }; | |
21024 | ||
994141e6 | 21025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
21026 | { |
21027 | arg1 = (long)(SWIG_As_long(obj0)); | |
21028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21029 | } | |
d14a1e28 RD |
21030 | { |
21031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21032 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
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_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21045 | PyObject *resultobj; |
21046 | long result; | |
21047 | char *kwnames[] = { | |
21048 | NULL | |
21049 | }; | |
21050 | ||
21051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
21052 | { | |
21053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21054 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
21055 | ||
21056 | wxPyEndAllowThreads(__tstate); | |
21057 | if (PyErr_Occurred()) SWIG_fail; | |
21058 | } | |
093d3ff1 RD |
21059 | { |
21060 | resultobj = SWIG_From_long((long)(result)); | |
21061 | } | |
d14a1e28 RD |
21062 | return resultobj; |
21063 | fail: | |
21064 | return NULL; | |
21065 | } | |
21066 | ||
21067 | ||
c32bde28 | 21068 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21069 | PyObject *resultobj; |
21070 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21071 | bool result; | |
21072 | PyObject * obj0 = 0 ; | |
21073 | char *kwnames[] = { | |
21074 | (char *) "win", NULL | |
21075 | }; | |
21076 | ||
21077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21080 | { |
21081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21082 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
21083 | ||
21084 | wxPyEndAllowThreads(__tstate); | |
21085 | if (PyErr_Occurred()) SWIG_fail; | |
21086 | } | |
4f89f6a3 RD |
21087 | { |
21088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21089 | } | |
d14a1e28 RD |
21090 | return resultobj; |
21091 | fail: | |
21092 | return NULL; | |
21093 | } | |
21094 | ||
21095 | ||
c32bde28 | 21096 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21097 | PyObject *resultobj; |
21098 | char *kwnames[] = { | |
21099 | NULL | |
21100 | }; | |
21101 | ||
21102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
21103 | { | |
21104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21105 | wxUpdateUIEvent::ResetUpdateTime(); | |
21106 | ||
21107 | wxPyEndAllowThreads(__tstate); | |
21108 | if (PyErr_Occurred()) SWIG_fail; | |
21109 | } | |
21110 | Py_INCREF(Py_None); resultobj = Py_None; | |
21111 | return resultobj; | |
21112 | fail: | |
21113 | return NULL; | |
21114 | } | |
21115 | ||
21116 | ||
c32bde28 | 21117 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 21118 | PyObject *resultobj; |
093d3ff1 | 21119 | wxUpdateUIMode arg1 ; |
994141e6 | 21120 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21121 | char *kwnames[] = { |
21122 | (char *) "mode", NULL | |
21123 | }; | |
21124 | ||
994141e6 | 21125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
21126 | { |
21127 | arg1 = (wxUpdateUIMode)(SWIG_As_int(obj0)); | |
21128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21129 | } | |
d14a1e28 RD |
21130 | { |
21131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21132 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
21133 | ||
21134 | wxPyEndAllowThreads(__tstate); | |
21135 | if (PyErr_Occurred()) SWIG_fail; | |
21136 | } | |
21137 | Py_INCREF(Py_None); resultobj = Py_None; | |
21138 | return resultobj; | |
21139 | fail: | |
21140 | return NULL; | |
21141 | } | |
21142 | ||
21143 | ||
c32bde28 | 21144 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 21145 | PyObject *resultobj; |
093d3ff1 | 21146 | wxUpdateUIMode result; |
d14a1e28 RD |
21147 | char *kwnames[] = { |
21148 | NULL | |
21149 | }; | |
21150 | ||
21151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
21152 | { | |
21153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21154 | result = (wxUpdateUIMode)wxUpdateUIEvent::GetMode(); |
d14a1e28 RD |
21155 | |
21156 | wxPyEndAllowThreads(__tstate); | |
21157 | if (PyErr_Occurred()) SWIG_fail; | |
21158 | } | |
093d3ff1 | 21159 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
21160 | return resultobj; |
21161 | fail: | |
21162 | return NULL; | |
21163 | } | |
21164 | ||
21165 | ||
c32bde28 | 21166 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21167 | PyObject *obj; |
21168 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21169 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
21170 | Py_INCREF(obj); | |
21171 | return Py_BuildValue((char *)""); | |
21172 | } | |
c32bde28 | 21173 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21174 | PyObject *resultobj; |
21175 | wxSysColourChangedEvent *result; | |
21176 | char *kwnames[] = { | |
21177 | NULL | |
21178 | }; | |
21179 | ||
21180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
21181 | { | |
21182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21183 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
21184 | ||
21185 | wxPyEndAllowThreads(__tstate); | |
21186 | if (PyErr_Occurred()) SWIG_fail; | |
21187 | } | |
15afbcd0 | 21188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
21189 | return resultobj; |
21190 | fail: | |
21191 | return NULL; | |
21192 | } | |
21193 | ||
21194 | ||
c32bde28 | 21195 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21196 | PyObject *obj; |
21197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21198 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
21199 | Py_INCREF(obj); | |
21200 | return Py_BuildValue((char *)""); | |
21201 | } | |
c32bde28 | 21202 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 21203 | PyObject *resultobj; |
e811c8ce | 21204 | int arg1 = (int) 0 ; |
d14a1e28 RD |
21205 | wxWindow *arg2 = (wxWindow *) NULL ; |
21206 | wxMouseCaptureChangedEvent *result; | |
994141e6 | 21207 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21208 | PyObject * obj1 = 0 ; |
21209 | char *kwnames[] = { | |
21210 | (char *) "winid",(char *) "gainedCapture", NULL | |
21211 | }; | |
21212 | ||
994141e6 RD |
21213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
21214 | if (obj0) { | |
093d3ff1 RD |
21215 | { |
21216 | arg1 = (int)(SWIG_As_int(obj0)); | |
21217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21218 | } | |
994141e6 | 21219 | } |
d14a1e28 | 21220 | if (obj1) { |
093d3ff1 RD |
21221 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21222 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
21223 | } |
21224 | { | |
21225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21226 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
21227 | ||
21228 | wxPyEndAllowThreads(__tstate); | |
21229 | if (PyErr_Occurred()) SWIG_fail; | |
21230 | } | |
15afbcd0 | 21231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
21232 | return resultobj; |
21233 | fail: | |
21234 | return NULL; | |
21235 | } | |
21236 | ||
21237 | ||
c32bde28 | 21238 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21239 | PyObject *resultobj; |
21240 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
21241 | wxWindow *result; | |
21242 | PyObject * obj0 = 0 ; | |
21243 | char *kwnames[] = { | |
21244 | (char *) "self", NULL | |
21245 | }; | |
21246 | ||
21247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
21249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21250 | { |
21251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21252 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
21253 | ||
21254 | wxPyEndAllowThreads(__tstate); | |
21255 | if (PyErr_Occurred()) SWIG_fail; | |
21256 | } | |
21257 | { | |
412d302d | 21258 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21259 | } |
21260 | return resultobj; | |
21261 | fail: | |
21262 | return NULL; | |
21263 | } | |
21264 | ||
21265 | ||
c32bde28 | 21266 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21267 | PyObject *obj; |
21268 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21269 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
21270 | Py_INCREF(obj); | |
21271 | return Py_BuildValue((char *)""); | |
21272 | } | |
c32bde28 | 21273 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21274 | PyObject *resultobj; |
21275 | wxDisplayChangedEvent *result; | |
21276 | char *kwnames[] = { | |
21277 | NULL | |
21278 | }; | |
21279 | ||
21280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
21281 | { | |
21282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21283 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
21284 | ||
21285 | wxPyEndAllowThreads(__tstate); | |
21286 | if (PyErr_Occurred()) SWIG_fail; | |
21287 | } | |
15afbcd0 | 21288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
21289 | return resultobj; |
21290 | fail: | |
21291 | return NULL; | |
21292 | } | |
21293 | ||
21294 | ||
c32bde28 | 21295 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21296 | PyObject *obj; |
21297 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21298 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
21299 | Py_INCREF(obj); | |
21300 | return Py_BuildValue((char *)""); | |
21301 | } | |
c32bde28 | 21302 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 21303 | PyObject *resultobj; |
e811c8ce | 21304 | int arg1 = (int) 0 ; |
d14a1e28 | 21305 | wxPaletteChangedEvent *result; |
994141e6 | 21306 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21307 | char *kwnames[] = { |
21308 | (char *) "id", NULL | |
21309 | }; | |
21310 | ||
994141e6 RD |
21311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
21312 | if (obj0) { | |
093d3ff1 RD |
21313 | { |
21314 | arg1 = (int)(SWIG_As_int(obj0)); | |
21315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21316 | } | |
994141e6 | 21317 | } |
d14a1e28 RD |
21318 | { |
21319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21320 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
21321 | ||
21322 | wxPyEndAllowThreads(__tstate); | |
21323 | if (PyErr_Occurred()) SWIG_fail; | |
21324 | } | |
15afbcd0 | 21325 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
21326 | return resultobj; |
21327 | fail: | |
21328 | return NULL; | |
21329 | } | |
21330 | ||
21331 | ||
c32bde28 | 21332 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21333 | PyObject *resultobj; |
21334 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
21335 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21336 | PyObject * obj0 = 0 ; | |
21337 | PyObject * obj1 = 0 ; | |
21338 | char *kwnames[] = { | |
21339 | (char *) "self",(char *) "win", NULL | |
21340 | }; | |
21341 | ||
21342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
21344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21345 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21346 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
21347 | { |
21348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21349 | (arg1)->SetChangedWindow(arg2); | |
21350 | ||
21351 | wxPyEndAllowThreads(__tstate); | |
21352 | if (PyErr_Occurred()) SWIG_fail; | |
21353 | } | |
21354 | Py_INCREF(Py_None); resultobj = Py_None; | |
21355 | return resultobj; | |
21356 | fail: | |
21357 | return NULL; | |
21358 | } | |
21359 | ||
21360 | ||
c32bde28 | 21361 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21362 | PyObject *resultobj; |
21363 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
21364 | wxWindow *result; | |
21365 | PyObject * obj0 = 0 ; | |
21366 | char *kwnames[] = { | |
21367 | (char *) "self", NULL | |
21368 | }; | |
21369 | ||
21370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_EXCEPTION | 0); |
21372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21373 | { |
21374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21375 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
21376 | ||
21377 | wxPyEndAllowThreads(__tstate); | |
21378 | if (PyErr_Occurred()) SWIG_fail; | |
21379 | } | |
21380 | { | |
412d302d | 21381 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21382 | } |
21383 | return resultobj; | |
21384 | fail: | |
21385 | return NULL; | |
21386 | } | |
21387 | ||
21388 | ||
c32bde28 | 21389 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21390 | PyObject *obj; |
21391 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21392 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
21393 | Py_INCREF(obj); | |
21394 | return Py_BuildValue((char *)""); | |
21395 | } | |
c32bde28 | 21396 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 21397 | PyObject *resultobj; |
e811c8ce | 21398 | int arg1 = (int) 0 ; |
d14a1e28 | 21399 | wxQueryNewPaletteEvent *result; |
994141e6 | 21400 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21401 | char *kwnames[] = { |
21402 | (char *) "winid", NULL | |
21403 | }; | |
21404 | ||
994141e6 RD |
21405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
21406 | if (obj0) { | |
093d3ff1 RD |
21407 | { |
21408 | arg1 = (int)(SWIG_As_int(obj0)); | |
21409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21410 | } | |
994141e6 | 21411 | } |
d14a1e28 RD |
21412 | { |
21413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21414 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
21415 | ||
21416 | wxPyEndAllowThreads(__tstate); | |
21417 | if (PyErr_Occurred()) SWIG_fail; | |
21418 | } | |
15afbcd0 | 21419 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
21420 | return resultobj; |
21421 | fail: | |
21422 | return NULL; | |
21423 | } | |
21424 | ||
21425 | ||
c32bde28 | 21426 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21427 | PyObject *resultobj; |
21428 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
21429 | bool arg2 ; | |
21430 | PyObject * obj0 = 0 ; | |
21431 | PyObject * obj1 = 0 ; | |
21432 | char *kwnames[] = { | |
21433 | (char *) "self",(char *) "realized", NULL | |
21434 | }; | |
21435 | ||
21436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_EXCEPTION | 0); |
21438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21439 | { | |
21440 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21441 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21442 | } | |
d14a1e28 RD |
21443 | { |
21444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21445 | (arg1)->SetPaletteRealized(arg2); | |
21446 | ||
21447 | wxPyEndAllowThreads(__tstate); | |
21448 | if (PyErr_Occurred()) SWIG_fail; | |
21449 | } | |
21450 | Py_INCREF(Py_None); resultobj = Py_None; | |
21451 | return resultobj; | |
21452 | fail: | |
21453 | return NULL; | |
21454 | } | |
21455 | ||
21456 | ||
c32bde28 | 21457 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21458 | PyObject *resultobj; |
21459 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
21460 | bool result; | |
21461 | PyObject * obj0 = 0 ; | |
21462 | char *kwnames[] = { | |
21463 | (char *) "self", NULL | |
21464 | }; | |
21465 | ||
21466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_EXCEPTION | 0); |
21468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21469 | { |
21470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21471 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
21472 | ||
21473 | wxPyEndAllowThreads(__tstate); | |
21474 | if (PyErr_Occurred()) SWIG_fail; | |
21475 | } | |
4f89f6a3 RD |
21476 | { |
21477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21478 | } | |
d14a1e28 RD |
21479 | return resultobj; |
21480 | fail: | |
21481 | return NULL; | |
21482 | } | |
21483 | ||
21484 | ||
c32bde28 | 21485 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21486 | PyObject *obj; |
21487 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21488 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
21489 | Py_INCREF(obj); | |
21490 | return Py_BuildValue((char *)""); | |
21491 | } | |
c32bde28 | 21492 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21493 | PyObject *resultobj; |
21494 | wxNavigationKeyEvent *result; | |
21495 | char *kwnames[] = { | |
21496 | NULL | |
21497 | }; | |
21498 | ||
21499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
21500 | { | |
21501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21502 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
21503 | ||
21504 | wxPyEndAllowThreads(__tstate); | |
21505 | if (PyErr_Occurred()) SWIG_fail; | |
21506 | } | |
15afbcd0 | 21507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
21508 | return resultobj; |
21509 | fail: | |
21510 | return NULL; | |
21511 | } | |
21512 | ||
21513 | ||
c32bde28 | 21514 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21515 | PyObject *resultobj; |
21516 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21517 | bool result; | |
21518 | PyObject * obj0 = 0 ; | |
21519 | char *kwnames[] = { | |
21520 | (char *) "self", NULL | |
21521 | }; | |
21522 | ||
21523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21526 | { |
21527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21528 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
21529 | ||
21530 | wxPyEndAllowThreads(__tstate); | |
21531 | if (PyErr_Occurred()) SWIG_fail; | |
21532 | } | |
4f89f6a3 RD |
21533 | { |
21534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21535 | } | |
d14a1e28 RD |
21536 | return resultobj; |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
c32bde28 | 21542 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21543 | PyObject *resultobj; |
21544 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21545 | bool arg2 ; | |
21546 | PyObject * obj0 = 0 ; | |
21547 | PyObject * obj1 = 0 ; | |
21548 | char *kwnames[] = { | |
908b74cd | 21549 | (char *) "self",(char *) "forward", NULL |
d14a1e28 RD |
21550 | }; |
21551 | ||
21552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21553 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21554 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21555 | { | |
21556 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21557 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21558 | } | |
d14a1e28 RD |
21559 | { |
21560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21561 | (arg1)->SetDirection(arg2); | |
21562 | ||
21563 | wxPyEndAllowThreads(__tstate); | |
21564 | if (PyErr_Occurred()) SWIG_fail; | |
21565 | } | |
21566 | Py_INCREF(Py_None); resultobj = Py_None; | |
21567 | return resultobj; | |
21568 | fail: | |
21569 | return NULL; | |
21570 | } | |
21571 | ||
21572 | ||
c32bde28 | 21573 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21574 | PyObject *resultobj; |
21575 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21576 | bool result; | |
21577 | PyObject * obj0 = 0 ; | |
21578 | char *kwnames[] = { | |
21579 | (char *) "self", NULL | |
21580 | }; | |
21581 | ||
21582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21583 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21584 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21585 | { |
21586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21587 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
21588 | ||
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
4f89f6a3 RD |
21592 | { |
21593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21594 | } | |
d14a1e28 RD |
21595 | return resultobj; |
21596 | fail: | |
21597 | return NULL; | |
21598 | } | |
21599 | ||
21600 | ||
c32bde28 | 21601 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21602 | PyObject *resultobj; |
21603 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21604 | bool arg2 ; | |
21605 | PyObject * obj0 = 0 ; | |
21606 | PyObject * obj1 = 0 ; | |
21607 | char *kwnames[] = { | |
908b74cd | 21608 | (char *) "self",(char *) "ischange", NULL |
d14a1e28 RD |
21609 | }; |
21610 | ||
21611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21614 | { | |
21615 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21616 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21617 | } | |
d14a1e28 RD |
21618 | { |
21619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21620 | (arg1)->SetWindowChange(arg2); | |
21621 | ||
21622 | wxPyEndAllowThreads(__tstate); | |
21623 | if (PyErr_Occurred()) SWIG_fail; | |
21624 | } | |
21625 | Py_INCREF(Py_None); resultobj = Py_None; | |
21626 | return resultobj; | |
21627 | fail: | |
21628 | return NULL; | |
21629 | } | |
21630 | ||
21631 | ||
68350608 RD |
21632 | static PyObject *_wrap_NavigationKeyEvent_IsFromTab(PyObject *, PyObject *args, PyObject *kwargs) { |
21633 | PyObject *resultobj; | |
21634 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21635 | bool result; | |
21636 | PyObject * obj0 = 0 ; | |
21637 | char *kwnames[] = { | |
21638 | (char *) "self", NULL | |
21639 | }; | |
21640 | ||
21641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsFromTab",kwnames,&obj0)) goto fail; | |
21642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
21643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21644 | { | |
21645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21646 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsFromTab(); | |
21647 | ||
21648 | wxPyEndAllowThreads(__tstate); | |
21649 | if (PyErr_Occurred()) SWIG_fail; | |
21650 | } | |
21651 | { | |
21652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21653 | } | |
21654 | return resultobj; | |
21655 | fail: | |
21656 | return NULL; | |
21657 | } | |
21658 | ||
21659 | ||
21660 | static PyObject *_wrap_NavigationKeyEvent_SetFromTab(PyObject *, PyObject *args, PyObject *kwargs) { | |
21661 | PyObject *resultobj; | |
21662 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21663 | bool arg2 ; | |
21664 | PyObject * obj0 = 0 ; | |
21665 | PyObject * obj1 = 0 ; | |
21666 | char *kwnames[] = { | |
21667 | (char *) "self",(char *) "bIs", NULL | |
21668 | }; | |
21669 | ||
21670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFromTab",kwnames,&obj0,&obj1)) goto fail; | |
21671 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
21672 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21673 | { | |
21674 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
21675 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21676 | } | |
21677 | { | |
21678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21679 | (arg1)->SetFromTab(arg2); | |
21680 | ||
21681 | wxPyEndAllowThreads(__tstate); | |
21682 | if (PyErr_Occurred()) SWIG_fail; | |
21683 | } | |
21684 | Py_INCREF(Py_None); resultobj = Py_None; | |
21685 | return resultobj; | |
21686 | fail: | |
21687 | return NULL; | |
21688 | } | |
21689 | ||
21690 | ||
c32bde28 | 21691 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
21692 | PyObject *resultobj; |
21693 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21694 | long arg2 ; | |
21695 | PyObject * obj0 = 0 ; | |
21696 | PyObject * obj1 = 0 ; | |
21697 | char *kwnames[] = { | |
21698 | (char *) "self",(char *) "flags", NULL | |
21699 | }; | |
21700 | ||
21701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21704 | { | |
21705 | arg2 = (long)(SWIG_As_long(obj1)); | |
21706 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21707 | } | |
908b74cd RD |
21708 | { |
21709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21710 | (arg1)->SetFlags(arg2); | |
21711 | ||
21712 | wxPyEndAllowThreads(__tstate); | |
21713 | if (PyErr_Occurred()) SWIG_fail; | |
21714 | } | |
21715 | Py_INCREF(Py_None); resultobj = Py_None; | |
21716 | return resultobj; | |
21717 | fail: | |
21718 | return NULL; | |
21719 | } | |
21720 | ||
21721 | ||
c32bde28 | 21722 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21723 | PyObject *resultobj; |
21724 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21725 | wxWindow *result; | |
21726 | PyObject * obj0 = 0 ; | |
21727 | char *kwnames[] = { | |
21728 | (char *) "self", NULL | |
21729 | }; | |
21730 | ||
21731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21734 | { |
21735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21736 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
21737 | ||
21738 | wxPyEndAllowThreads(__tstate); | |
21739 | if (PyErr_Occurred()) SWIG_fail; | |
21740 | } | |
21741 | { | |
412d302d | 21742 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21743 | } |
21744 | return resultobj; | |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
c32bde28 | 21750 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21751 | PyObject *resultobj; |
21752 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
21753 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21754 | PyObject * obj0 = 0 ; | |
21755 | PyObject * obj1 = 0 ; | |
21756 | char *kwnames[] = { | |
21757 | (char *) "self",(char *) "win", NULL | |
21758 | }; | |
21759 | ||
21760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0); |
21762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21763 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21764 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
21765 | { |
21766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21767 | (arg1)->SetCurrentFocus(arg2); | |
21768 | ||
21769 | wxPyEndAllowThreads(__tstate); | |
21770 | if (PyErr_Occurred()) SWIG_fail; | |
21771 | } | |
21772 | Py_INCREF(Py_None); resultobj = Py_None; | |
21773 | return resultobj; | |
21774 | fail: | |
21775 | return NULL; | |
21776 | } | |
21777 | ||
21778 | ||
c32bde28 | 21779 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21780 | PyObject *obj; |
21781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21782 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
21783 | Py_INCREF(obj); | |
21784 | return Py_BuildValue((char *)""); | |
21785 | } | |
c32bde28 | 21786 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21787 | PyObject *resultobj; |
21788 | wxWindow *arg1 = (wxWindow *) NULL ; | |
21789 | wxWindowCreateEvent *result; | |
21790 | PyObject * obj0 = 0 ; | |
21791 | char *kwnames[] = { | |
21792 | (char *) "win", NULL | |
21793 | }; | |
21794 | ||
21795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
21796 | if (obj0) { | |
093d3ff1 RD |
21797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21799 | } |
21800 | { | |
21801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21802 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
21803 | ||
21804 | wxPyEndAllowThreads(__tstate); | |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
21806 | } | |
15afbcd0 | 21807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
21808 | return resultobj; |
21809 | fail: | |
21810 | return NULL; | |
21811 | } | |
21812 | ||
21813 | ||
c32bde28 | 21814 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21815 | PyObject *resultobj; |
21816 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
21817 | wxWindow *result; | |
21818 | PyObject * obj0 = 0 ; | |
21819 | char *kwnames[] = { | |
21820 | (char *) "self", NULL | |
21821 | }; | |
21822 | ||
21823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21824 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowCreateEvent, SWIG_POINTER_EXCEPTION | 0); |
21825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21826 | { |
21827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21828 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
21829 | ||
21830 | wxPyEndAllowThreads(__tstate); | |
21831 | if (PyErr_Occurred()) SWIG_fail; | |
21832 | } | |
21833 | { | |
412d302d | 21834 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21835 | } |
21836 | return resultobj; | |
21837 | fail: | |
21838 | return NULL; | |
21839 | } | |
21840 | ||
21841 | ||
c32bde28 | 21842 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21843 | PyObject *obj; |
21844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21845 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
21846 | Py_INCREF(obj); | |
21847 | return Py_BuildValue((char *)""); | |
21848 | } | |
c32bde28 | 21849 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21850 | PyObject *resultobj; |
21851 | wxWindow *arg1 = (wxWindow *) NULL ; | |
21852 | wxWindowDestroyEvent *result; | |
21853 | PyObject * obj0 = 0 ; | |
21854 | char *kwnames[] = { | |
21855 | (char *) "win", NULL | |
21856 | }; | |
21857 | ||
21858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
21859 | if (obj0) { | |
093d3ff1 RD |
21860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21862 | } |
21863 | { | |
21864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21865 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
21866 | ||
21867 | wxPyEndAllowThreads(__tstate); | |
21868 | if (PyErr_Occurred()) SWIG_fail; | |
21869 | } | |
15afbcd0 | 21870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
21871 | return resultobj; |
21872 | fail: | |
21873 | return NULL; | |
21874 | } | |
21875 | ||
21876 | ||
c32bde28 | 21877 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21878 | PyObject *resultobj; |
21879 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
21880 | wxWindow *result; | |
21881 | PyObject * obj0 = 0 ; | |
21882 | char *kwnames[] = { | |
21883 | (char *) "self", NULL | |
21884 | }; | |
21885 | ||
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDestroyEvent, SWIG_POINTER_EXCEPTION | 0); |
21888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21889 | { |
21890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21891 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
21892 | ||
21893 | wxPyEndAllowThreads(__tstate); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | } | |
21896 | { | |
412d302d | 21897 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21898 | } |
21899 | return resultobj; | |
21900 | fail: | |
21901 | return NULL; | |
21902 | } | |
21903 | ||
21904 | ||
c32bde28 | 21905 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21906 | PyObject *obj; |
21907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21908 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
21909 | Py_INCREF(obj); | |
21910 | return Py_BuildValue((char *)""); | |
21911 | } | |
c32bde28 | 21912 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21913 | PyObject *resultobj; |
21914 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 21915 | int arg2 = (int) 0 ; |
d14a1e28 RD |
21916 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21917 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21918 | wxContextMenuEvent *result; | |
21919 | wxPoint temp3 ; | |
994141e6 RD |
21920 | PyObject * obj0 = 0 ; |
21921 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
21922 | PyObject * obj2 = 0 ; |
21923 | char *kwnames[] = { | |
21924 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
21925 | }; | |
21926 | ||
994141e6 RD |
21927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
21928 | if (obj0) { | |
093d3ff1 RD |
21929 | { |
21930 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
21931 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21932 | } | |
994141e6 RD |
21933 | } |
21934 | if (obj1) { | |
093d3ff1 RD |
21935 | { |
21936 | arg2 = (int)(SWIG_As_int(obj1)); | |
21937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21938 | } | |
994141e6 | 21939 | } |
d14a1e28 RD |
21940 | if (obj2) { |
21941 | { | |
21942 | arg3 = &temp3; | |
21943 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21944 | } | |
21945 | } | |
21946 | { | |
21947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21948 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
21949 | ||
21950 | wxPyEndAllowThreads(__tstate); | |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
15afbcd0 | 21953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
21954 | return resultobj; |
21955 | fail: | |
21956 | return NULL; | |
21957 | } | |
21958 | ||
21959 | ||
c32bde28 | 21960 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21961 | PyObject *resultobj; |
21962 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
21963 | wxPoint *result; | |
21964 | PyObject * obj0 = 0 ; | |
21965 | char *kwnames[] = { | |
21966 | (char *) "self", NULL | |
21967 | }; | |
21968 | ||
21969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
21971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21972 | { |
21973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21974 | { | |
21975 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
21976 | result = (wxPoint *) &_result_ref; | |
21977 | } | |
21978 | ||
21979 | wxPyEndAllowThreads(__tstate); | |
21980 | if (PyErr_Occurred()) SWIG_fail; | |
21981 | } | |
15afbcd0 | 21982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
21983 | return resultobj; |
21984 | fail: | |
21985 | return NULL; | |
21986 | } | |
21987 | ||
21988 | ||
c32bde28 | 21989 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21990 | PyObject *resultobj; |
21991 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
21992 | wxPoint *arg2 = 0 ; | |
21993 | wxPoint temp2 ; | |
21994 | PyObject * obj0 = 0 ; | |
21995 | PyObject * obj1 = 0 ; | |
21996 | char *kwnames[] = { | |
21997 | (char *) "self",(char *) "pos", NULL | |
21998 | }; | |
21999 | ||
22000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_EXCEPTION | 0); |
22002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22003 | { |
22004 | arg2 = &temp2; | |
22005 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22006 | } | |
22007 | { | |
22008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22009 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
22010 | ||
22011 | wxPyEndAllowThreads(__tstate); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
22013 | } | |
22014 | Py_INCREF(Py_None); resultobj = Py_None; | |
22015 | return resultobj; | |
22016 | fail: | |
22017 | return NULL; | |
22018 | } | |
22019 | ||
22020 | ||
c32bde28 | 22021 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
22022 | PyObject *obj; |
22023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22024 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
22025 | Py_INCREF(obj); | |
22026 | return Py_BuildValue((char *)""); | |
22027 | } | |
c32bde28 | 22028 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22029 | PyObject *resultobj; |
22030 | wxIdleEvent *result; | |
22031 | char *kwnames[] = { | |
22032 | NULL | |
22033 | }; | |
22034 | ||
22035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
22036 | { | |
22037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22038 | result = (wxIdleEvent *)new wxIdleEvent(); | |
22039 | ||
22040 | wxPyEndAllowThreads(__tstate); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
22042 | } | |
15afbcd0 | 22043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
22044 | return resultobj; |
22045 | fail: | |
22046 | return NULL; | |
22047 | } | |
22048 | ||
22049 | ||
c32bde28 | 22050 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22051 | PyObject *resultobj; |
22052 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
ae8162c8 | 22053 | bool arg2 = (bool) true ; |
d14a1e28 RD |
22054 | PyObject * obj0 = 0 ; |
22055 | PyObject * obj1 = 0 ; | |
22056 | char *kwnames[] = { | |
22057 | (char *) "self",(char *) "needMore", NULL | |
22058 | }; | |
22059 | ||
22060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); |
22062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 22063 | if (obj1) { |
093d3ff1 RD |
22064 | { |
22065 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
22066 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22067 | } | |
d14a1e28 RD |
22068 | } |
22069 | { | |
22070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22071 | (arg1)->RequestMore(arg2); | |
22072 | ||
22073 | wxPyEndAllowThreads(__tstate); | |
22074 | if (PyErr_Occurred()) SWIG_fail; | |
22075 | } | |
22076 | Py_INCREF(Py_None); resultobj = Py_None; | |
22077 | return resultobj; | |
22078 | fail: | |
22079 | return NULL; | |
22080 | } | |
22081 | ||
22082 | ||
c32bde28 | 22083 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22084 | PyObject *resultobj; |
22085 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
22086 | bool result; | |
22087 | PyObject * obj0 = 0 ; | |
22088 | char *kwnames[] = { | |
22089 | (char *) "self", NULL | |
22090 | }; | |
22091 | ||
22092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); |
22094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22095 | { |
22096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22097 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
22098 | ||
22099 | wxPyEndAllowThreads(__tstate); | |
22100 | if (PyErr_Occurred()) SWIG_fail; | |
22101 | } | |
4f89f6a3 RD |
22102 | { |
22103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22104 | } | |
d14a1e28 RD |
22105 | return resultobj; |
22106 | fail: | |
22107 | return NULL; | |
22108 | } | |
22109 | ||
22110 | ||
c32bde28 | 22111 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 22112 | PyObject *resultobj; |
093d3ff1 | 22113 | wxIdleMode arg1 ; |
994141e6 | 22114 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22115 | char *kwnames[] = { |
22116 | (char *) "mode", NULL | |
22117 | }; | |
22118 | ||
994141e6 | 22119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
22120 | { |
22121 | arg1 = (wxIdleMode)(SWIG_As_int(obj0)); | |
22122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22123 | } | |
d14a1e28 RD |
22124 | { |
22125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22126 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
22127 | ||
22128 | wxPyEndAllowThreads(__tstate); | |
22129 | if (PyErr_Occurred()) SWIG_fail; | |
22130 | } | |
22131 | Py_INCREF(Py_None); resultobj = Py_None; | |
22132 | return resultobj; | |
22133 | fail: | |
22134 | return NULL; | |
22135 | } | |
22136 | ||
22137 | ||
c32bde28 | 22138 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 22139 | PyObject *resultobj; |
093d3ff1 | 22140 | wxIdleMode result; |
d14a1e28 RD |
22141 | char *kwnames[] = { |
22142 | NULL | |
22143 | }; | |
22144 | ||
22145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
22146 | { | |
22147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22148 | result = (wxIdleMode)wxIdleEvent::GetMode(); |
d14a1e28 RD |
22149 | |
22150 | wxPyEndAllowThreads(__tstate); | |
22151 | if (PyErr_Occurred()) SWIG_fail; | |
22152 | } | |
093d3ff1 | 22153 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
22154 | return resultobj; |
22155 | fail: | |
22156 | return NULL; | |
22157 | } | |
22158 | ||
22159 | ||
c32bde28 | 22160 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22161 | PyObject *resultobj; |
22162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22163 | bool result; | |
22164 | PyObject * obj0 = 0 ; | |
22165 | char *kwnames[] = { | |
22166 | (char *) "win", NULL | |
22167 | }; | |
22168 | ||
22169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
22171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22172 | { |
22173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22174 | result = (bool)wxIdleEvent::CanSend(arg1); | |
22175 | ||
22176 | wxPyEndAllowThreads(__tstate); | |
22177 | if (PyErr_Occurred()) SWIG_fail; | |
22178 | } | |
4f89f6a3 RD |
22179 | { |
22180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22181 | } | |
d14a1e28 RD |
22182 | return resultobj; |
22183 | fail: | |
22184 | return NULL; | |
22185 | } | |
22186 | ||
22187 | ||
c32bde28 | 22188 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
22189 | PyObject *obj; |
22190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22191 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
22192 | Py_INCREF(obj); | |
22193 | return Py_BuildValue((char *)""); | |
22194 | } | |
c32bde28 | 22195 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22196 | PyObject *resultobj; |
22197 | int arg1 = (int) 0 ; | |
22198 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
22199 | wxPyEvent *result; | |
994141e6 RD |
22200 | PyObject * obj0 = 0 ; |
22201 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
22202 | char *kwnames[] = { |
22203 | (char *) "winid",(char *) "commandType", NULL | |
22204 | }; | |
22205 | ||
994141e6 RD |
22206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
22207 | if (obj0) { | |
093d3ff1 RD |
22208 | { |
22209 | arg1 = (int)(SWIG_As_int(obj0)); | |
22210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22211 | } | |
994141e6 RD |
22212 | } |
22213 | if (obj1) { | |
093d3ff1 RD |
22214 | { |
22215 | arg2 = (wxEventType)(SWIG_As_int(obj1)); | |
22216 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22217 | } | |
994141e6 | 22218 | } |
d14a1e28 RD |
22219 | { |
22220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22221 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
22222 | ||
22223 | wxPyEndAllowThreads(__tstate); | |
22224 | if (PyErr_Occurred()) SWIG_fail; | |
22225 | } | |
15afbcd0 | 22226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
22227 | return resultobj; |
22228 | fail: | |
22229 | return NULL; | |
22230 | } | |
22231 | ||
22232 | ||
c32bde28 | 22233 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22234 | PyObject *resultobj; |
22235 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
22236 | PyObject * obj0 = 0 ; | |
22237 | char *kwnames[] = { | |
22238 | (char *) "self", NULL | |
22239 | }; | |
22240 | ||
22241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
22243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22244 | { |
22245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22246 | delete arg1; | |
22247 | ||
22248 | wxPyEndAllowThreads(__tstate); | |
22249 | if (PyErr_Occurred()) SWIG_fail; | |
22250 | } | |
22251 | Py_INCREF(Py_None); resultobj = Py_None; | |
22252 | return resultobj; | |
22253 | fail: | |
22254 | return NULL; | |
22255 | } | |
22256 | ||
22257 | ||
c32bde28 | 22258 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22259 | PyObject *resultobj; |
22260 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
22261 | PyObject *arg2 = (PyObject *) 0 ; | |
22262 | PyObject * obj0 = 0 ; | |
22263 | PyObject * obj1 = 0 ; | |
22264 | char *kwnames[] = { | |
22265 | (char *) "self",(char *) "self", NULL | |
22266 | }; | |
22267 | ||
22268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
22270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22271 | arg2 = obj1; |
22272 | { | |
22273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22274 | (arg1)->SetSelf(arg2); | |
22275 | ||
22276 | wxPyEndAllowThreads(__tstate); | |
22277 | if (PyErr_Occurred()) SWIG_fail; | |
22278 | } | |
22279 | Py_INCREF(Py_None); resultobj = Py_None; | |
22280 | return resultobj; | |
22281 | fail: | |
22282 | return NULL; | |
22283 | } | |
22284 | ||
22285 | ||
c32bde28 | 22286 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22287 | PyObject *resultobj; |
22288 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
22289 | PyObject *result; | |
22290 | PyObject * obj0 = 0 ; | |
22291 | char *kwnames[] = { | |
22292 | (char *) "self", NULL | |
22293 | }; | |
22294 | ||
22295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0); |
22297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22298 | { |
22299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22300 | result = (PyObject *)(arg1)->GetSelf(); | |
22301 | ||
22302 | wxPyEndAllowThreads(__tstate); | |
22303 | if (PyErr_Occurred()) SWIG_fail; | |
22304 | } | |
22305 | resultobj = result; | |
22306 | return resultobj; | |
22307 | fail: | |
22308 | return NULL; | |
22309 | } | |
22310 | ||
22311 | ||
c32bde28 | 22312 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
22313 | PyObject *obj; |
22314 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22315 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
22316 | Py_INCREF(obj); | |
22317 | return Py_BuildValue((char *)""); | |
22318 | } | |
c32bde28 | 22319 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22320 | PyObject *resultobj; |
22321 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22322 | int arg2 = (int) 0 ; | |
22323 | wxPyCommandEvent *result; | |
994141e6 RD |
22324 | PyObject * obj0 = 0 ; |
22325 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
22326 | char *kwnames[] = { |
22327 | (char *) "commandType",(char *) "id", NULL | |
22328 | }; | |
22329 | ||
994141e6 RD |
22330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
22331 | if (obj0) { | |
093d3ff1 RD |
22332 | { |
22333 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
22334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22335 | } | |
994141e6 RD |
22336 | } |
22337 | if (obj1) { | |
093d3ff1 RD |
22338 | { |
22339 | arg2 = (int)(SWIG_As_int(obj1)); | |
22340 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22341 | } | |
994141e6 | 22342 | } |
d14a1e28 RD |
22343 | { |
22344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22345 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
22346 | ||
22347 | wxPyEndAllowThreads(__tstate); | |
22348 | if (PyErr_Occurred()) SWIG_fail; | |
22349 | } | |
15afbcd0 | 22350 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
22351 | return resultobj; |
22352 | fail: | |
22353 | return NULL; | |
22354 | } | |
22355 | ||
22356 | ||
c32bde28 | 22357 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22358 | PyObject *resultobj; |
22359 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
22360 | PyObject * obj0 = 0 ; | |
22361 | char *kwnames[] = { | |
22362 | (char *) "self", NULL | |
22363 | }; | |
22364 | ||
22365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
22367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22368 | { |
22369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22370 | delete arg1; | |
22371 | ||
22372 | wxPyEndAllowThreads(__tstate); | |
22373 | if (PyErr_Occurred()) SWIG_fail; | |
22374 | } | |
22375 | Py_INCREF(Py_None); resultobj = Py_None; | |
22376 | return resultobj; | |
22377 | fail: | |
22378 | return NULL; | |
22379 | } | |
22380 | ||
22381 | ||
c32bde28 | 22382 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22383 | PyObject *resultobj; |
22384 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
22385 | PyObject *arg2 = (PyObject *) 0 ; | |
22386 | PyObject * obj0 = 0 ; | |
22387 | PyObject * obj1 = 0 ; | |
22388 | char *kwnames[] = { | |
22389 | (char *) "self",(char *) "self", NULL | |
22390 | }; | |
22391 | ||
22392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
22394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22395 | arg2 = obj1; |
22396 | { | |
22397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22398 | (arg1)->SetSelf(arg2); | |
22399 | ||
22400 | wxPyEndAllowThreads(__tstate); | |
22401 | if (PyErr_Occurred()) SWIG_fail; | |
22402 | } | |
22403 | Py_INCREF(Py_None); resultobj = Py_None; | |
22404 | return resultobj; | |
22405 | fail: | |
22406 | return NULL; | |
22407 | } | |
22408 | ||
22409 | ||
c32bde28 | 22410 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22411 | PyObject *resultobj; |
22412 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
22413 | PyObject *result; | |
22414 | PyObject * obj0 = 0 ; | |
22415 | char *kwnames[] = { | |
22416 | (char *) "self", NULL | |
22417 | }; | |
22418 | ||
22419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0); |
22421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22422 | { |
22423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22424 | result = (PyObject *)(arg1)->GetSelf(); | |
22425 | ||
22426 | wxPyEndAllowThreads(__tstate); | |
22427 | if (PyErr_Occurred()) SWIG_fail; | |
22428 | } | |
22429 | resultobj = result; | |
22430 | return resultobj; | |
22431 | fail: | |
22432 | return NULL; | |
22433 | } | |
22434 | ||
22435 | ||
c32bde28 | 22436 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
22437 | PyObject *obj; |
22438 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22439 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
22440 | Py_INCREF(obj); | |
22441 | return Py_BuildValue((char *)""); | |
22442 | } | |
53aa7709 RD |
22443 | static PyObject *_wrap_new_DateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
22444 | PyObject *resultobj; | |
22445 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22446 | wxDateTime *arg2 = 0 ; | |
22447 | wxEventType arg3 ; | |
22448 | wxDateEvent *result; | |
22449 | PyObject * obj0 = 0 ; | |
22450 | PyObject * obj1 = 0 ; | |
22451 | PyObject * obj2 = 0 ; | |
22452 | char *kwnames[] = { | |
22453 | (char *) "win",(char *) "dt",(char *) "type", NULL | |
22454 | }; | |
22455 | ||
22456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_DateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
22458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22459 | { | |
22460 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22461 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22462 | if (arg2 == NULL) { | |
22463 | SWIG_null_ref("wxDateTime"); | |
22464 | } | |
22465 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22466 | } | |
22467 | { | |
22468 | arg3 = (wxEventType)(SWIG_As_int(obj2)); | |
22469 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22470 | } | |
22471 | { | |
22472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22473 | result = (wxDateEvent *)new wxDateEvent(arg1,(wxDateTime const &)*arg2,arg3); | |
22474 | ||
22475 | wxPyEndAllowThreads(__tstate); | |
22476 | if (PyErr_Occurred()) SWIG_fail; | |
22477 | } | |
22478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateEvent, 1); | |
22479 | return resultobj; | |
22480 | fail: | |
22481 | return NULL; | |
22482 | } | |
22483 | ||
22484 | ||
22485 | static PyObject *_wrap_DateEvent_GetDate(PyObject *, PyObject *args, PyObject *kwargs) { | |
22486 | PyObject *resultobj; | |
22487 | wxDateEvent *arg1 = (wxDateEvent *) 0 ; | |
22488 | wxDateTime *result; | |
22489 | PyObject * obj0 = 0 ; | |
22490 | char *kwnames[] = { | |
22491 | (char *) "self", NULL | |
22492 | }; | |
22493 | ||
22494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateEvent_GetDate",kwnames,&obj0)) goto fail; | |
22495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateEvent, SWIG_POINTER_EXCEPTION | 0); | |
22496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22497 | { | |
22498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22499 | { | |
22500 | wxDateTime const &_result_ref = ((wxDateEvent const *)arg1)->GetDate(); | |
22501 | result = (wxDateTime *) &_result_ref; | |
22502 | } | |
22503 | ||
22504 | wxPyEndAllowThreads(__tstate); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
22506 | } | |
22507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
22508 | return resultobj; | |
22509 | fail: | |
22510 | return NULL; | |
22511 | } | |
22512 | ||
22513 | ||
22514 | static PyObject *_wrap_DateEvent_SetDate(PyObject *, PyObject *args, PyObject *kwargs) { | |
22515 | PyObject *resultobj; | |
22516 | wxDateEvent *arg1 = (wxDateEvent *) 0 ; | |
22517 | wxDateTime *arg2 = 0 ; | |
22518 | PyObject * obj0 = 0 ; | |
22519 | PyObject * obj1 = 0 ; | |
22520 | char *kwnames[] = { | |
22521 | (char *) "self",(char *) "date", NULL | |
22522 | }; | |
22523 | ||
22524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateEvent_SetDate",kwnames,&obj0,&obj1)) goto fail; | |
22525 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateEvent, SWIG_POINTER_EXCEPTION | 0); | |
22526 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22527 | { | |
22528 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
22529 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22530 | if (arg2 == NULL) { | |
22531 | SWIG_null_ref("wxDateTime"); | |
22532 | } | |
22533 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22534 | } | |
22535 | { | |
22536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22537 | (arg1)->SetDate((wxDateTime const &)*arg2); | |
22538 | ||
22539 | wxPyEndAllowThreads(__tstate); | |
22540 | if (PyErr_Occurred()) SWIG_fail; | |
22541 | } | |
22542 | Py_INCREF(Py_None); resultobj = Py_None; | |
22543 | return resultobj; | |
22544 | fail: | |
22545 | return NULL; | |
22546 | } | |
22547 | ||
22548 | ||
22549 | static PyObject * DateEvent_swigregister(PyObject *, PyObject *args) { | |
22550 | PyObject *obj; | |
22551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22552 | SWIG_TypeClientData(SWIGTYPE_p_wxDateEvent, obj); | |
22553 | Py_INCREF(obj); | |
22554 | return Py_BuildValue((char *)""); | |
22555 | } | |
c32bde28 | 22556 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22557 | PyObject *resultobj; |
22558 | wxPyApp *result; | |
22559 | char *kwnames[] = { | |
22560 | NULL | |
22561 | }; | |
22562 | ||
22563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
22564 | { | |
22565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22566 | result = (wxPyApp *)new_wxPyApp(); | |
22567 | ||
22568 | wxPyEndAllowThreads(__tstate); | |
22569 | if (PyErr_Occurred()) SWIG_fail; | |
22570 | } | |
b0f7404b | 22571 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d14a1e28 RD |
22572 | return resultobj; |
22573 | fail: | |
22574 | return NULL; | |
22575 | } | |
22576 | ||
22577 | ||
c32bde28 | 22578 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22579 | PyObject *resultobj; |
22580 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22581 | PyObject * obj0 = 0 ; | |
22582 | char *kwnames[] = { | |
22583 | (char *) "self", NULL | |
22584 | }; | |
22585 | ||
22586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22589 | { |
22590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22591 | delete arg1; | |
22592 | ||
22593 | wxPyEndAllowThreads(__tstate); | |
22594 | if (PyErr_Occurred()) SWIG_fail; | |
22595 | } | |
22596 | Py_INCREF(Py_None); resultobj = Py_None; | |
22597 | return resultobj; | |
22598 | fail: | |
22599 | return NULL; | |
22600 | } | |
22601 | ||
22602 | ||
c32bde28 | 22603 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22604 | PyObject *resultobj; |
22605 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22606 | PyObject *arg2 = (PyObject *) 0 ; | |
22607 | PyObject *arg3 = (PyObject *) 0 ; | |
22608 | PyObject * obj0 = 0 ; | |
22609 | PyObject * obj1 = 0 ; | |
22610 | PyObject * obj2 = 0 ; | |
22611 | char *kwnames[] = { | |
22612 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22613 | }; | |
22614 | ||
22615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
22616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22618 | arg2 = obj1; |
22619 | arg3 = obj2; | |
22620 | { | |
22621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22622 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22623 | ||
22624 | wxPyEndAllowThreads(__tstate); | |
22625 | if (PyErr_Occurred()) SWIG_fail; | |
22626 | } | |
22627 | Py_INCREF(Py_None); resultobj = Py_None; | |
22628 | return resultobj; | |
22629 | fail: | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
c32bde28 | 22634 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22635 | PyObject *resultobj; |
22636 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22637 | wxString result; | |
22638 | PyObject * obj0 = 0 ; | |
22639 | char *kwnames[] = { | |
22640 | (char *) "self", NULL | |
22641 | }; | |
22642 | ||
22643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22646 | { |
22647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22648 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
22649 | ||
22650 | wxPyEndAllowThreads(__tstate); | |
22651 | if (PyErr_Occurred()) SWIG_fail; | |
22652 | } | |
22653 | { | |
22654 | #if wxUSE_UNICODE | |
22655 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22656 | #else | |
22657 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22658 | #endif | |
22659 | } | |
22660 | return resultobj; | |
22661 | fail: | |
22662 | return NULL; | |
22663 | } | |
22664 | ||
22665 | ||
c32bde28 | 22666 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22667 | PyObject *resultobj; |
22668 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22669 | wxString *arg2 = 0 ; | |
ae8162c8 | 22670 | bool temp2 = false ; |
d14a1e28 RD |
22671 | PyObject * obj0 = 0 ; |
22672 | PyObject * obj1 = 0 ; | |
22673 | char *kwnames[] = { | |
22674 | (char *) "self",(char *) "name", NULL | |
22675 | }; | |
22676 | ||
22677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",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; | |
d14a1e28 RD |
22680 | { |
22681 | arg2 = wxString_in_helper(obj1); | |
22682 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22683 | temp2 = true; |
d14a1e28 RD |
22684 | } |
22685 | { | |
22686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22687 | (arg1)->SetAppName((wxString const &)*arg2); | |
22688 | ||
22689 | wxPyEndAllowThreads(__tstate); | |
22690 | if (PyErr_Occurred()) SWIG_fail; | |
22691 | } | |
22692 | Py_INCREF(Py_None); resultobj = Py_None; | |
22693 | { | |
22694 | if (temp2) | |
22695 | delete arg2; | |
22696 | } | |
22697 | return resultobj; | |
22698 | fail: | |
22699 | { | |
22700 | if (temp2) | |
22701 | delete arg2; | |
22702 | } | |
22703 | return NULL; | |
22704 | } | |
22705 | ||
22706 | ||
c32bde28 | 22707 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22708 | PyObject *resultobj; |
22709 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22710 | wxString result; | |
22711 | PyObject * obj0 = 0 ; | |
22712 | char *kwnames[] = { | |
22713 | (char *) "self", NULL | |
22714 | }; | |
22715 | ||
22716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22719 | { |
22720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22721 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
22722 | ||
22723 | wxPyEndAllowThreads(__tstate); | |
22724 | if (PyErr_Occurred()) SWIG_fail; | |
22725 | } | |
22726 | { | |
22727 | #if wxUSE_UNICODE | |
22728 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22729 | #else | |
22730 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22731 | #endif | |
22732 | } | |
22733 | return resultobj; | |
22734 | fail: | |
22735 | return NULL; | |
22736 | } | |
22737 | ||
22738 | ||
c32bde28 | 22739 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22740 | PyObject *resultobj; |
22741 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22742 | wxString *arg2 = 0 ; | |
ae8162c8 | 22743 | bool temp2 = false ; |
d14a1e28 RD |
22744 | PyObject * obj0 = 0 ; |
22745 | PyObject * obj1 = 0 ; | |
22746 | char *kwnames[] = { | |
22747 | (char *) "self",(char *) "name", NULL | |
22748 | }; | |
22749 | ||
22750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22753 | { |
22754 | arg2 = wxString_in_helper(obj1); | |
22755 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22756 | temp2 = true; |
d14a1e28 RD |
22757 | } |
22758 | { | |
22759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22760 | (arg1)->SetClassName((wxString const &)*arg2); | |
22761 | ||
22762 | wxPyEndAllowThreads(__tstate); | |
22763 | if (PyErr_Occurred()) SWIG_fail; | |
22764 | } | |
22765 | Py_INCREF(Py_None); resultobj = Py_None; | |
22766 | { | |
22767 | if (temp2) | |
22768 | delete arg2; | |
22769 | } | |
22770 | return resultobj; | |
22771 | fail: | |
22772 | { | |
22773 | if (temp2) | |
22774 | delete arg2; | |
22775 | } | |
22776 | return NULL; | |
22777 | } | |
22778 | ||
22779 | ||
c32bde28 | 22780 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22781 | PyObject *resultobj; |
22782 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22783 | wxString *result; | |
22784 | PyObject * obj0 = 0 ; | |
22785 | char *kwnames[] = { | |
22786 | (char *) "self", NULL | |
22787 | }; | |
22788 | ||
22789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22792 | { |
22793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22794 | { | |
22795 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
22796 | result = (wxString *) &_result_ref; | |
22797 | } | |
22798 | ||
22799 | wxPyEndAllowThreads(__tstate); | |
22800 | if (PyErr_Occurred()) SWIG_fail; | |
22801 | } | |
cc6dd355 RD |
22802 | { |
22803 | #if wxUSE_UNICODE | |
22804 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22805 | #else | |
22806 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22807 | #endif | |
22808 | } | |
d14a1e28 RD |
22809 | return resultobj; |
22810 | fail: | |
22811 | return NULL; | |
22812 | } | |
22813 | ||
22814 | ||
c32bde28 | 22815 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22816 | PyObject *resultobj; |
22817 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22818 | wxString *arg2 = 0 ; | |
ae8162c8 | 22819 | bool temp2 = false ; |
d14a1e28 RD |
22820 | PyObject * obj0 = 0 ; |
22821 | PyObject * obj1 = 0 ; | |
22822 | char *kwnames[] = { | |
22823 | (char *) "self",(char *) "name", NULL | |
22824 | }; | |
22825 | ||
22826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22827 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22828 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22829 | { |
22830 | arg2 = wxString_in_helper(obj1); | |
22831 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22832 | temp2 = true; |
d14a1e28 RD |
22833 | } |
22834 | { | |
22835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22836 | (arg1)->SetVendorName((wxString const &)*arg2); | |
22837 | ||
22838 | wxPyEndAllowThreads(__tstate); | |
22839 | if (PyErr_Occurred()) SWIG_fail; | |
22840 | } | |
22841 | Py_INCREF(Py_None); resultobj = Py_None; | |
22842 | { | |
22843 | if (temp2) | |
22844 | delete arg2; | |
22845 | } | |
22846 | return resultobj; | |
22847 | fail: | |
22848 | { | |
22849 | if (temp2) | |
22850 | delete arg2; | |
22851 | } | |
22852 | return NULL; | |
22853 | } | |
22854 | ||
22855 | ||
c32bde28 | 22856 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22857 | PyObject *resultobj; |
22858 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22859 | wxAppTraits *result; | |
22860 | PyObject * obj0 = 0 ; | |
22861 | char *kwnames[] = { | |
22862 | (char *) "self", NULL | |
22863 | }; | |
22864 | ||
22865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22868 | { |
22869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22870 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
22871 | ||
22872 | wxPyEndAllowThreads(__tstate); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | } | |
15afbcd0 | 22875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
22876 | return resultobj; |
22877 | fail: | |
22878 | return NULL; | |
22879 | } | |
22880 | ||
22881 | ||
c32bde28 | 22882 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22883 | PyObject *resultobj; |
22884 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22885 | PyObject * obj0 = 0 ; | |
22886 | char *kwnames[] = { | |
22887 | (char *) "self", NULL | |
22888 | }; | |
22889 | ||
22890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22893 | { |
22894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22895 | (arg1)->ProcessPendingEvents(); | |
22896 | ||
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | Py_INCREF(Py_None); resultobj = Py_None; | |
22901 | return resultobj; | |
22902 | fail: | |
22903 | return NULL; | |
22904 | } | |
22905 | ||
22906 | ||
c32bde28 | 22907 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22908 | PyObject *resultobj; |
22909 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
ae8162c8 | 22910 | bool arg2 = (bool) false ; |
d14a1e28 RD |
22911 | bool result; |
22912 | PyObject * obj0 = 0 ; | |
22913 | PyObject * obj1 = 0 ; | |
22914 | char *kwnames[] = { | |
22915 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
22916 | }; | |
22917 | ||
22918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 22921 | if (obj1) { |
093d3ff1 RD |
22922 | { |
22923 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
22924 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22925 | } | |
d14a1e28 RD |
22926 | } |
22927 | { | |
22928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22929 | result = (bool)(arg1)->Yield(arg2); | |
22930 | ||
22931 | wxPyEndAllowThreads(__tstate); | |
22932 | if (PyErr_Occurred()) SWIG_fail; | |
22933 | } | |
4f89f6a3 RD |
22934 | { |
22935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22936 | } | |
d14a1e28 RD |
22937 | return resultobj; |
22938 | fail: | |
22939 | return NULL; | |
22940 | } | |
22941 | ||
22942 | ||
c32bde28 | 22943 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22944 | PyObject *resultobj; |
22945 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22946 | PyObject * obj0 = 0 ; | |
22947 | char *kwnames[] = { | |
22948 | (char *) "self", NULL | |
22949 | }; | |
22950 | ||
22951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
22953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22954 | { |
22955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22956 | (arg1)->WakeUpIdle(); | |
22957 | ||
22958 | wxPyEndAllowThreads(__tstate); | |
22959 | if (PyErr_Occurred()) SWIG_fail; | |
22960 | } | |
22961 | Py_INCREF(Py_None); resultobj = Py_None; | |
22962 | return resultobj; | |
22963 | fail: | |
22964 | return NULL; | |
22965 | } | |
22966 | ||
22967 | ||
1fc3b23a RD |
22968 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
22969 | PyObject *resultobj; | |
22970 | bool result; | |
22971 | char *kwnames[] = { | |
22972 | NULL | |
22973 | }; | |
22974 | ||
22975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
22976 | { | |
22977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22978 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
22979 | ||
22980 | wxPyEndAllowThreads(__tstate); | |
22981 | if (PyErr_Occurred()) SWIG_fail; | |
22982 | } | |
22983 | { | |
22984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22985 | } | |
22986 | return resultobj; | |
22987 | fail: | |
22988 | return NULL; | |
22989 | } | |
22990 | ||
22991 | ||
c32bde28 | 22992 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22993 | PyObject *resultobj; |
22994 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
22995 | int result; | |
22996 | PyObject * obj0 = 0 ; | |
22997 | char *kwnames[] = { | |
22998 | (char *) "self", NULL | |
22999 | }; | |
23000 | ||
23001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23002 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23004 | { |
23005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23006 | result = (int)(arg1)->MainLoop(); | |
23007 | ||
23008 | wxPyEndAllowThreads(__tstate); | |
23009 | if (PyErr_Occurred()) SWIG_fail; | |
23010 | } | |
093d3ff1 RD |
23011 | { |
23012 | resultobj = SWIG_From_int((int)(result)); | |
23013 | } | |
d14a1e28 RD |
23014 | return resultobj; |
23015 | fail: | |
23016 | return NULL; | |
23017 | } | |
23018 | ||
23019 | ||
c32bde28 | 23020 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23021 | PyObject *resultobj; |
23022 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23023 | PyObject * obj0 = 0 ; | |
23024 | char *kwnames[] = { | |
23025 | (char *) "self", NULL | |
23026 | }; | |
23027 | ||
23028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23031 | { |
23032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23033 | (arg1)->Exit(); | |
23034 | ||
23035 | wxPyEndAllowThreads(__tstate); | |
23036 | if (PyErr_Occurred()) SWIG_fail; | |
23037 | } | |
23038 | Py_INCREF(Py_None); resultobj = Py_None; | |
23039 | return resultobj; | |
23040 | fail: | |
23041 | return NULL; | |
23042 | } | |
23043 | ||
23044 | ||
c32bde28 | 23045 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23046 | PyObject *resultobj; |
23047 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23048 | PyObject * obj0 = 0 ; | |
23049 | char *kwnames[] = { | |
23050 | (char *) "self", NULL | |
23051 | }; | |
23052 | ||
23053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23056 | { |
23057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23058 | (arg1)->ExitMainLoop(); | |
23059 | ||
23060 | wxPyEndAllowThreads(__tstate); | |
23061 | if (PyErr_Occurred()) SWIG_fail; | |
23062 | } | |
23063 | Py_INCREF(Py_None); resultobj = Py_None; | |
23064 | return resultobj; | |
23065 | fail: | |
23066 | return NULL; | |
23067 | } | |
23068 | ||
23069 | ||
c32bde28 | 23070 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23071 | PyObject *resultobj; |
23072 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23073 | bool result; | |
23074 | PyObject * obj0 = 0 ; | |
23075 | char *kwnames[] = { | |
23076 | (char *) "self", NULL | |
23077 | }; | |
23078 | ||
23079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23082 | { |
23083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23084 | result = (bool)(arg1)->Pending(); | |
23085 | ||
23086 | wxPyEndAllowThreads(__tstate); | |
23087 | if (PyErr_Occurred()) SWIG_fail; | |
23088 | } | |
4f89f6a3 RD |
23089 | { |
23090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23091 | } | |
d14a1e28 RD |
23092 | return resultobj; |
23093 | fail: | |
23094 | return NULL; | |
23095 | } | |
23096 | ||
23097 | ||
c32bde28 | 23098 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23099 | PyObject *resultobj; |
23100 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23101 | bool result; | |
23102 | PyObject * obj0 = 0 ; | |
23103 | char *kwnames[] = { | |
23104 | (char *) "self", NULL | |
23105 | }; | |
23106 | ||
23107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23110 | { |
23111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23112 | result = (bool)(arg1)->Dispatch(); | |
23113 | ||
23114 | wxPyEndAllowThreads(__tstate); | |
23115 | if (PyErr_Occurred()) SWIG_fail; | |
23116 | } | |
4f89f6a3 RD |
23117 | { |
23118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23119 | } | |
d14a1e28 RD |
23120 | return resultobj; |
23121 | fail: | |
23122 | return NULL; | |
23123 | } | |
23124 | ||
23125 | ||
c32bde28 | 23126 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23127 | PyObject *resultobj; |
23128 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23129 | bool result; | |
23130 | PyObject * obj0 = 0 ; | |
23131 | char *kwnames[] = { | |
23132 | (char *) "self", NULL | |
23133 | }; | |
23134 | ||
23135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23138 | { |
23139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23140 | result = (bool)(arg1)->ProcessIdle(); | |
23141 | ||
23142 | wxPyEndAllowThreads(__tstate); | |
23143 | if (PyErr_Occurred()) SWIG_fail; | |
23144 | } | |
4f89f6a3 RD |
23145 | { |
23146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23147 | } | |
d14a1e28 RD |
23148 | return resultobj; |
23149 | fail: | |
23150 | return NULL; | |
23151 | } | |
23152 | ||
23153 | ||
c32bde28 | 23154 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23155 | PyObject *resultobj; |
23156 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23157 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23158 | wxIdleEvent *arg3 = 0 ; | |
23159 | bool result; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | PyObject * obj1 = 0 ; | |
23162 | PyObject * obj2 = 0 ; | |
23163 | char *kwnames[] = { | |
23164 | (char *) "self",(char *) "win",(char *) "event", NULL | |
23165 | }; | |
23166 | ||
23167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23170 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23171 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23172 | { | |
23173 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0); | |
23174 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23175 | if (arg3 == NULL) { | |
23176 | SWIG_null_ref("wxIdleEvent"); | |
23177 | } | |
23178 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
23179 | } |
23180 | { | |
23181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23182 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
23183 | ||
23184 | wxPyEndAllowThreads(__tstate); | |
23185 | if (PyErr_Occurred()) SWIG_fail; | |
23186 | } | |
4f89f6a3 RD |
23187 | { |
23188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23189 | } | |
d14a1e28 RD |
23190 | return resultobj; |
23191 | fail: | |
23192 | return NULL; | |
23193 | } | |
23194 | ||
23195 | ||
c32bde28 | 23196 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23197 | PyObject *resultobj; |
23198 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23199 | bool result; | |
23200 | PyObject * obj0 = 0 ; | |
23201 | char *kwnames[] = { | |
23202 | (char *) "self", NULL | |
23203 | }; | |
23204 | ||
23205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23208 | { |
23209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23210 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
23211 | ||
23212 | wxPyEndAllowThreads(__tstate); | |
23213 | if (PyErr_Occurred()) SWIG_fail; | |
23214 | } | |
4f89f6a3 RD |
23215 | { |
23216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23217 | } | |
d14a1e28 RD |
23218 | return resultobj; |
23219 | fail: | |
23220 | return NULL; | |
23221 | } | |
23222 | ||
23223 | ||
c32bde28 | 23224 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23225 | PyObject *resultobj; |
23226 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23227 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23228 | PyObject * obj0 = 0 ; | |
23229 | PyObject * obj1 = 0 ; | |
23230 | char *kwnames[] = { | |
23231 | (char *) "self",(char *) "win", NULL | |
23232 | }; | |
23233 | ||
23234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23237 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23238 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23239 | { |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | (arg1)->SetTopWindow(arg2); | |
23242 | ||
23243 | wxPyEndAllowThreads(__tstate); | |
23244 | if (PyErr_Occurred()) SWIG_fail; | |
23245 | } | |
23246 | Py_INCREF(Py_None); resultobj = Py_None; | |
23247 | return resultobj; | |
23248 | fail: | |
23249 | return NULL; | |
23250 | } | |
23251 | ||
23252 | ||
c32bde28 | 23253 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23254 | PyObject *resultobj; |
23255 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23256 | wxWindow *result; | |
23257 | PyObject * obj0 = 0 ; | |
23258 | char *kwnames[] = { | |
23259 | (char *) "self", NULL | |
23260 | }; | |
23261 | ||
23262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23265 | { |
23266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23267 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
23268 | ||
23269 | wxPyEndAllowThreads(__tstate); | |
23270 | if (PyErr_Occurred()) SWIG_fail; | |
23271 | } | |
23272 | { | |
412d302d | 23273 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
23274 | } |
23275 | return resultobj; | |
23276 | fail: | |
23277 | return NULL; | |
23278 | } | |
23279 | ||
23280 | ||
c32bde28 | 23281 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23282 | PyObject *resultobj; |
23283 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23284 | bool arg2 ; | |
23285 | PyObject * obj0 = 0 ; | |
23286 | PyObject * obj1 = 0 ; | |
23287 | char *kwnames[] = { | |
23288 | (char *) "self",(char *) "flag", NULL | |
23289 | }; | |
23290 | ||
23291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23294 | { | |
23295 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23296 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23297 | } | |
d14a1e28 RD |
23298 | { |
23299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23300 | (arg1)->SetExitOnFrameDelete(arg2); | |
23301 | ||
23302 | wxPyEndAllowThreads(__tstate); | |
23303 | if (PyErr_Occurred()) SWIG_fail; | |
23304 | } | |
23305 | Py_INCREF(Py_None); resultobj = Py_None; | |
23306 | return resultobj; | |
23307 | fail: | |
23308 | return NULL; | |
23309 | } | |
23310 | ||
23311 | ||
c32bde28 | 23312 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23313 | PyObject *resultobj; |
23314 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23315 | bool result; | |
23316 | PyObject * obj0 = 0 ; | |
23317 | char *kwnames[] = { | |
23318 | (char *) "self", NULL | |
23319 | }; | |
23320 | ||
23321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23322 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23323 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23324 | { |
23325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23326 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
23327 | ||
23328 | wxPyEndAllowThreads(__tstate); | |
23329 | if (PyErr_Occurred()) SWIG_fail; | |
23330 | } | |
4f89f6a3 RD |
23331 | { |
23332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23333 | } | |
d14a1e28 RD |
23334 | return resultobj; |
23335 | fail: | |
23336 | return NULL; | |
23337 | } | |
23338 | ||
23339 | ||
c32bde28 | 23340 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23341 | PyObject *resultobj; |
23342 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23343 | bool arg2 ; | |
23344 | PyObject * obj0 = 0 ; | |
23345 | PyObject * obj1 = 0 ; | |
23346 | char *kwnames[] = { | |
23347 | (char *) "self",(char *) "flag", NULL | |
23348 | }; | |
23349 | ||
23350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23353 | { | |
23354 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23356 | } | |
d14a1e28 RD |
23357 | { |
23358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23359 | (arg1)->SetUseBestVisual(arg2); | |
23360 | ||
23361 | wxPyEndAllowThreads(__tstate); | |
23362 | if (PyErr_Occurred()) SWIG_fail; | |
23363 | } | |
23364 | Py_INCREF(Py_None); resultobj = Py_None; | |
23365 | return resultobj; | |
23366 | fail: | |
23367 | return NULL; | |
23368 | } | |
23369 | ||
23370 | ||
c32bde28 | 23371 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23372 | PyObject *resultobj; |
23373 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23374 | bool result; | |
23375 | PyObject * obj0 = 0 ; | |
23376 | char *kwnames[] = { | |
23377 | (char *) "self", NULL | |
23378 | }; | |
23379 | ||
23380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23383 | { |
23384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23385 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
23386 | ||
23387 | wxPyEndAllowThreads(__tstate); | |
23388 | if (PyErr_Occurred()) SWIG_fail; | |
23389 | } | |
4f89f6a3 RD |
23390 | { |
23391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23392 | } | |
d14a1e28 RD |
23393 | return resultobj; |
23394 | fail: | |
23395 | return NULL; | |
23396 | } | |
23397 | ||
23398 | ||
c32bde28 | 23399 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23400 | PyObject *resultobj; |
23401 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23402 | int arg2 ; | |
23403 | PyObject * obj0 = 0 ; | |
994141e6 | 23404 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23405 | char *kwnames[] = { |
23406 | (char *) "self",(char *) "mode", NULL | |
23407 | }; | |
23408 | ||
994141e6 | 23409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23412 | { | |
23413 | arg2 = (int)(SWIG_As_int(obj1)); | |
23414 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23415 | } | |
d14a1e28 RD |
23416 | { |
23417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23418 | (arg1)->SetPrintMode(arg2); | |
23419 | ||
23420 | wxPyEndAllowThreads(__tstate); | |
23421 | if (PyErr_Occurred()) SWIG_fail; | |
23422 | } | |
23423 | Py_INCREF(Py_None); resultobj = Py_None; | |
23424 | return resultobj; | |
23425 | fail: | |
23426 | return NULL; | |
23427 | } | |
23428 | ||
23429 | ||
c32bde28 | 23430 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23431 | PyObject *resultobj; |
23432 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23433 | int result; | |
23434 | PyObject * obj0 = 0 ; | |
23435 | char *kwnames[] = { | |
23436 | (char *) "self", NULL | |
23437 | }; | |
23438 | ||
23439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23442 | { |
23443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23444 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
23445 | ||
23446 | wxPyEndAllowThreads(__tstate); | |
23447 | if (PyErr_Occurred()) SWIG_fail; | |
23448 | } | |
093d3ff1 RD |
23449 | { |
23450 | resultobj = SWIG_From_int((int)(result)); | |
23451 | } | |
d14a1e28 RD |
23452 | return resultobj; |
23453 | fail: | |
23454 | return NULL; | |
23455 | } | |
23456 | ||
23457 | ||
c32bde28 | 23458 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23459 | PyObject *resultobj; |
23460 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 23461 | int arg2 ; |
d14a1e28 | 23462 | PyObject * obj0 = 0 ; |
994141e6 | 23463 | PyObject * obj1 = 0 ; |
d14a1e28 | 23464 | char *kwnames[] = { |
6c3b4aae | 23465 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
23466 | }; |
23467 | ||
994141e6 | 23468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23469 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23470 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23471 | { | |
23472 | arg2 = (int)(SWIG_As_int(obj1)); | |
23473 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23474 | } | |
d14a1e28 RD |
23475 | { |
23476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 23477 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
23478 | |
23479 | wxPyEndAllowThreads(__tstate); | |
23480 | if (PyErr_Occurred()) SWIG_fail; | |
23481 | } | |
6c3b4aae | 23482 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
23483 | return resultobj; |
23484 | fail: | |
23485 | return NULL; | |
23486 | } | |
23487 | ||
23488 | ||
c32bde28 | 23489 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23490 | PyObject *resultobj; |
23491 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 23492 | int result; |
d14a1e28 RD |
23493 | PyObject * obj0 = 0 ; |
23494 | char *kwnames[] = { | |
6c3b4aae | 23495 | (char *) "self", NULL |
d14a1e28 RD |
23496 | }; |
23497 | ||
6c3b4aae | 23498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
23499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23501 | { |
23502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 23503 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
23504 | |
23505 | wxPyEndAllowThreads(__tstate); | |
23506 | if (PyErr_Occurred()) SWIG_fail; | |
23507 | } | |
093d3ff1 RD |
23508 | { |
23509 | resultobj = SWIG_From_int((int)(result)); | |
23510 | } | |
d14a1e28 RD |
23511 | return resultobj; |
23512 | fail: | |
23513 | return NULL; | |
23514 | } | |
23515 | ||
23516 | ||
c32bde28 | 23517 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23518 | PyObject *resultobj; |
23519 | bool result; | |
23520 | char *kwnames[] = { | |
23521 | NULL | |
23522 | }; | |
23523 | ||
23524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
23528 | ||
23529 | wxPyEndAllowThreads(__tstate); | |
23530 | if (PyErr_Occurred()) SWIG_fail; | |
23531 | } | |
4f89f6a3 RD |
23532 | { |
23533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23534 | } | |
d14a1e28 RD |
23535 | return resultobj; |
23536 | fail: | |
23537 | return NULL; | |
23538 | } | |
23539 | ||
23540 | ||
c32bde28 | 23541 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23542 | PyObject *resultobj; |
23543 | long result; | |
23544 | char *kwnames[] = { | |
23545 | NULL | |
23546 | }; | |
23547 | ||
23548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
23549 | { | |
23550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23551 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
23552 | ||
23553 | wxPyEndAllowThreads(__tstate); | |
23554 | if (PyErr_Occurred()) SWIG_fail; | |
23555 | } | |
093d3ff1 RD |
23556 | { |
23557 | resultobj = SWIG_From_long((long)(result)); | |
23558 | } | |
d14a1e28 RD |
23559 | return resultobj; |
23560 | fail: | |
23561 | return NULL; | |
23562 | } | |
23563 | ||
23564 | ||
c32bde28 | 23565 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23566 | PyObject *resultobj; |
23567 | long result; | |
23568 | char *kwnames[] = { | |
23569 | NULL | |
23570 | }; | |
23571 | ||
23572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
23573 | { | |
23574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23575 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
23576 | ||
23577 | wxPyEndAllowThreads(__tstate); | |
23578 | if (PyErr_Occurred()) SWIG_fail; | |
23579 | } | |
093d3ff1 RD |
23580 | { |
23581 | resultobj = SWIG_From_long((long)(result)); | |
23582 | } | |
d14a1e28 RD |
23583 | return resultobj; |
23584 | fail: | |
23585 | return NULL; | |
23586 | } | |
23587 | ||
23588 | ||
c32bde28 | 23589 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23590 | PyObject *resultobj; |
23591 | long result; | |
23592 | char *kwnames[] = { | |
23593 | NULL | |
23594 | }; | |
23595 | ||
23596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
23597 | { | |
23598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23599 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
23600 | ||
23601 | wxPyEndAllowThreads(__tstate); | |
23602 | if (PyErr_Occurred()) SWIG_fail; | |
23603 | } | |
093d3ff1 RD |
23604 | { |
23605 | resultobj = SWIG_From_long((long)(result)); | |
23606 | } | |
d14a1e28 RD |
23607 | return resultobj; |
23608 | fail: | |
23609 | return NULL; | |
23610 | } | |
23611 | ||
23612 | ||
c32bde28 | 23613 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23614 | PyObject *resultobj; |
23615 | wxString result; | |
23616 | char *kwnames[] = { | |
23617 | NULL | |
23618 | }; | |
23619 | ||
23620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
23621 | { | |
23622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23623 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
23624 | ||
23625 | wxPyEndAllowThreads(__tstate); | |
23626 | if (PyErr_Occurred()) SWIG_fail; | |
23627 | } | |
23628 | { | |
23629 | #if wxUSE_UNICODE | |
23630 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23631 | #else | |
23632 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23633 | #endif | |
23634 | } | |
23635 | return resultobj; | |
23636 | fail: | |
23637 | return NULL; | |
23638 | } | |
23639 | ||
23640 | ||
c32bde28 | 23641 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23642 | PyObject *resultobj; |
23643 | bool arg1 ; | |
23644 | PyObject * obj0 = 0 ; | |
23645 | char *kwnames[] = { | |
23646 | (char *) "val", NULL | |
23647 | }; | |
23648 | ||
23649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23650 | { |
23651 | arg1 = (bool)(SWIG_As_bool(obj0)); | |
23652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23653 | } | |
d14a1e28 RD |
23654 | { |
23655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23656 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
23657 | ||
23658 | wxPyEndAllowThreads(__tstate); | |
23659 | if (PyErr_Occurred()) SWIG_fail; | |
23660 | } | |
23661 | Py_INCREF(Py_None); resultobj = Py_None; | |
23662 | return resultobj; | |
23663 | fail: | |
23664 | return NULL; | |
23665 | } | |
23666 | ||
23667 | ||
c32bde28 | 23668 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23669 | PyObject *resultobj; |
23670 | long arg1 ; | |
994141e6 | 23671 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23672 | char *kwnames[] = { |
23673 | (char *) "val", NULL | |
23674 | }; | |
23675 | ||
994141e6 | 23676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
23677 | { |
23678 | arg1 = (long)(SWIG_As_long(obj0)); | |
23679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23680 | } | |
d14a1e28 RD |
23681 | { |
23682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23683 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
23684 | ||
23685 | wxPyEndAllowThreads(__tstate); | |
23686 | if (PyErr_Occurred()) SWIG_fail; | |
23687 | } | |
23688 | Py_INCREF(Py_None); resultobj = Py_None; | |
23689 | return resultobj; | |
23690 | fail: | |
23691 | return NULL; | |
23692 | } | |
23693 | ||
23694 | ||
c32bde28 | 23695 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23696 | PyObject *resultobj; |
23697 | long arg1 ; | |
994141e6 | 23698 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23699 | char *kwnames[] = { |
23700 | (char *) "val", NULL | |
23701 | }; | |
23702 | ||
994141e6 | 23703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
23704 | { |
23705 | arg1 = (long)(SWIG_As_long(obj0)); | |
23706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23707 | } | |
d14a1e28 RD |
23708 | { |
23709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23710 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
23711 | ||
23712 | wxPyEndAllowThreads(__tstate); | |
23713 | if (PyErr_Occurred()) SWIG_fail; | |
23714 | } | |
23715 | Py_INCREF(Py_None); resultobj = Py_None; | |
23716 | return resultobj; | |
23717 | fail: | |
23718 | return NULL; | |
23719 | } | |
23720 | ||
23721 | ||
c32bde28 | 23722 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23723 | PyObject *resultobj; |
23724 | long arg1 ; | |
994141e6 | 23725 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23726 | char *kwnames[] = { |
23727 | (char *) "val", NULL | |
23728 | }; | |
23729 | ||
994141e6 | 23730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
23731 | { |
23732 | arg1 = (long)(SWIG_As_long(obj0)); | |
23733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23734 | } | |
d14a1e28 RD |
23735 | { |
23736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23737 | wxPyApp::SetMacExitMenuItemId(arg1); | |
23738 | ||
23739 | wxPyEndAllowThreads(__tstate); | |
23740 | if (PyErr_Occurred()) SWIG_fail; | |
23741 | } | |
23742 | Py_INCREF(Py_None); resultobj = Py_None; | |
23743 | return resultobj; | |
23744 | fail: | |
23745 | return NULL; | |
23746 | } | |
23747 | ||
23748 | ||
c32bde28 | 23749 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23750 | PyObject *resultobj; |
23751 | wxString *arg1 = 0 ; | |
ae8162c8 | 23752 | bool temp1 = false ; |
d14a1e28 RD |
23753 | PyObject * obj0 = 0 ; |
23754 | char *kwnames[] = { | |
23755 | (char *) "val", NULL | |
23756 | }; | |
23757 | ||
23758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
23759 | { | |
23760 | arg1 = wxString_in_helper(obj0); | |
23761 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 23762 | temp1 = true; |
d14a1e28 RD |
23763 | } |
23764 | { | |
23765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23766 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
23767 | ||
23768 | wxPyEndAllowThreads(__tstate); | |
23769 | if (PyErr_Occurred()) SWIG_fail; | |
23770 | } | |
23771 | Py_INCREF(Py_None); resultobj = Py_None; | |
23772 | { | |
23773 | if (temp1) | |
23774 | delete arg1; | |
23775 | } | |
23776 | return resultobj; | |
23777 | fail: | |
23778 | { | |
23779 | if (temp1) | |
23780 | delete arg1; | |
23781 | } | |
23782 | return NULL; | |
23783 | } | |
23784 | ||
23785 | ||
c32bde28 | 23786 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23787 | PyObject *resultobj; |
23788 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
23789 | PyObject * obj0 = 0 ; | |
23790 | char *kwnames[] = { | |
23791 | (char *) "self", NULL | |
23792 | }; | |
23793 | ||
23794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0); |
23796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23797 | { |
23798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23799 | (arg1)->_BootstrapApp(); | |
23800 | ||
23801 | wxPyEndAllowThreads(__tstate); | |
23802 | if (PyErr_Occurred()) SWIG_fail; | |
23803 | } | |
23804 | Py_INCREF(Py_None); resultobj = Py_None; | |
23805 | return resultobj; | |
23806 | fail: | |
23807 | return NULL; | |
23808 | } | |
23809 | ||
23810 | ||
c32bde28 | 23811 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23812 | PyObject *resultobj; |
23813 | int result; | |
23814 | char *kwnames[] = { | |
23815 | NULL | |
23816 | }; | |
23817 | ||
23818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
23819 | { | |
23820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23821 | result = (int)PyApp_GetComCtl32Version(); | |
23822 | ||
23823 | wxPyEndAllowThreads(__tstate); | |
23824 | if (PyErr_Occurred()) SWIG_fail; | |
23825 | } | |
093d3ff1 RD |
23826 | { |
23827 | resultobj = SWIG_From_int((int)(result)); | |
23828 | } | |
d14a1e28 RD |
23829 | return resultobj; |
23830 | fail: | |
23831 | return NULL; | |
23832 | } | |
23833 | ||
23834 | ||
c32bde28 | 23835 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23836 | PyObject *obj; |
23837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23838 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
23839 | Py_INCREF(obj); | |
23840 | return Py_BuildValue((char *)""); | |
23841 | } | |
c32bde28 | 23842 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23843 | PyObject *resultobj; |
23844 | char *kwnames[] = { | |
23845 | NULL | |
23846 | }; | |
23847 | ||
23848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
23849 | { | |
23850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23851 | wxExit(); | |
23852 | ||
23853 | wxPyEndAllowThreads(__tstate); | |
23854 | if (PyErr_Occurred()) SWIG_fail; | |
23855 | } | |
23856 | Py_INCREF(Py_None); resultobj = Py_None; | |
23857 | return resultobj; | |
23858 | fail: | |
23859 | return NULL; | |
23860 | } | |
23861 | ||
23862 | ||
c32bde28 | 23863 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23864 | PyObject *resultobj; |
23865 | bool result; | |
23866 | char *kwnames[] = { | |
23867 | NULL | |
23868 | }; | |
23869 | ||
23870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
23871 | { | |
23872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23873 | result = (bool)wxYield(); | |
23874 | ||
23875 | wxPyEndAllowThreads(__tstate); | |
23876 | if (PyErr_Occurred()) SWIG_fail; | |
23877 | } | |
4f89f6a3 RD |
23878 | { |
23879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23880 | } | |
d14a1e28 RD |
23881 | return resultobj; |
23882 | fail: | |
23883 | return NULL; | |
23884 | } | |
23885 | ||
23886 | ||
c32bde28 | 23887 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23888 | PyObject *resultobj; |
23889 | bool result; | |
23890 | char *kwnames[] = { | |
23891 | NULL | |
23892 | }; | |
23893 | ||
23894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
23895 | { | |
23896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23897 | result = (bool)wxYieldIfNeeded(); | |
23898 | ||
23899 | wxPyEndAllowThreads(__tstate); | |
23900 | if (PyErr_Occurred()) SWIG_fail; | |
23901 | } | |
4f89f6a3 RD |
23902 | { |
23903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23904 | } | |
d14a1e28 RD |
23905 | return resultobj; |
23906 | fail: | |
23907 | return NULL; | |
23908 | } | |
23909 | ||
23910 | ||
c32bde28 | 23911 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23912 | PyObject *resultobj; |
23913 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 23914 | bool arg2 = (bool) false ; |
d14a1e28 RD |
23915 | bool result; |
23916 | PyObject * obj0 = 0 ; | |
23917 | PyObject * obj1 = 0 ; | |
23918 | char *kwnames[] = { | |
23919 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
23920 | }; | |
23921 | ||
23922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
23923 | if (obj0) { | |
093d3ff1 RD |
23924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
23925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23926 | } |
23927 | if (obj1) { | |
093d3ff1 RD |
23928 | { |
23929 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23930 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23931 | } | |
d14a1e28 RD |
23932 | } |
23933 | { | |
23934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23935 | result = (bool)wxSafeYield(arg1,arg2); | |
23936 | ||
23937 | wxPyEndAllowThreads(__tstate); | |
23938 | if (PyErr_Occurred()) SWIG_fail; | |
23939 | } | |
4f89f6a3 RD |
23940 | { |
23941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23942 | } | |
d14a1e28 RD |
23943 | return resultobj; |
23944 | fail: | |
23945 | return NULL; | |
23946 | } | |
23947 | ||
23948 | ||
c32bde28 | 23949 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23950 | PyObject *resultobj; |
23951 | char *kwnames[] = { | |
23952 | NULL | |
23953 | }; | |
23954 | ||
23955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
23956 | { | |
23957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23958 | wxWakeUpIdle(); | |
23959 | ||
23960 | wxPyEndAllowThreads(__tstate); | |
23961 | if (PyErr_Occurred()) SWIG_fail; | |
23962 | } | |
23963 | Py_INCREF(Py_None); resultobj = Py_None; | |
23964 | return resultobj; | |
23965 | fail: | |
23966 | return NULL; | |
23967 | } | |
23968 | ||
23969 | ||
c32bde28 | 23970 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23971 | PyObject *resultobj; |
23972 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
23973 | wxEvent *arg2 = 0 ; | |
23974 | PyObject * obj0 = 0 ; | |
23975 | PyObject * obj1 = 0 ; | |
23976 | char *kwnames[] = { | |
23977 | (char *) "dest",(char *) "event", NULL | |
23978 | }; | |
23979 | ||
23980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
23982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23983 | { | |
23984 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0); | |
23985 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23986 | if (arg2 == NULL) { | |
23987 | SWIG_null_ref("wxEvent"); | |
23988 | } | |
23989 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23990 | } |
23991 | { | |
23992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23993 | wxPostEvent(arg1,*arg2); | |
23994 | ||
23995 | wxPyEndAllowThreads(__tstate); | |
23996 | if (PyErr_Occurred()) SWIG_fail; | |
23997 | } | |
23998 | Py_INCREF(Py_None); resultobj = Py_None; | |
23999 | return resultobj; | |
24000 | fail: | |
24001 | return NULL; | |
24002 | } | |
24003 | ||
24004 | ||
c32bde28 | 24005 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24006 | PyObject *resultobj; |
24007 | char *kwnames[] = { | |
24008 | NULL | |
24009 | }; | |
24010 | ||
24011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
24012 | { | |
24013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24014 | wxApp_CleanUp(); | |
24015 | ||
24016 | wxPyEndAllowThreads(__tstate); | |
24017 | if (PyErr_Occurred()) SWIG_fail; | |
24018 | } | |
24019 | Py_INCREF(Py_None); resultobj = Py_None; | |
24020 | return resultobj; | |
24021 | fail: | |
24022 | return NULL; | |
24023 | } | |
24024 | ||
24025 | ||
c32bde28 | 24026 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24027 | PyObject *resultobj; |
24028 | wxPyApp *result; | |
24029 | char *kwnames[] = { | |
24030 | NULL | |
24031 | }; | |
24032 | ||
24033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
24034 | { | |
24035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 24036 | result = (wxPyApp *)wxPyGetApp(); |
d14a1e28 RD |
24037 | |
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | { | |
412d302d | 24042 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24043 | } |
24044 | return resultobj; | |
24045 | fail: | |
24046 | return NULL; | |
24047 | } | |
24048 | ||
24049 | ||
5cbf236d RD |
24050 | static PyObject *_wrap_SetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
24051 | PyObject *resultobj; | |
093d3ff1 | 24052 | char *arg1 = (char *) 0 ; |
5cbf236d RD |
24053 | PyObject * obj0 = 0 ; |
24054 | char *kwnames[] = { | |
24055 | (char *) "encoding", NULL | |
24056 | }; | |
24057 | ||
24058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24059 | if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) { |
24060 | SWIG_arg_fail(1);SWIG_fail; | |
24061 | } | |
5cbf236d RD |
24062 | { |
24063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24064 | wxSetDefaultPyEncoding((char const *)arg1); | |
24065 | ||
24066 | wxPyEndAllowThreads(__tstate); | |
24067 | if (PyErr_Occurred()) SWIG_fail; | |
24068 | } | |
24069 | Py_INCREF(Py_None); resultobj = Py_None; | |
24070 | return resultobj; | |
24071 | fail: | |
24072 | return NULL; | |
24073 | } | |
24074 | ||
24075 | ||
24076 | static PyObject *_wrap_GetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
24077 | PyObject *resultobj; | |
24078 | char *result; | |
24079 | char *kwnames[] = { | |
24080 | NULL | |
24081 | }; | |
24082 | ||
24083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDefaultPyEncoding",kwnames)) goto fail; | |
24084 | { | |
24085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24086 | result = (char *)wxGetDefaultPyEncoding(); | |
24087 | ||
24088 | wxPyEndAllowThreads(__tstate); | |
24089 | if (PyErr_Occurred()) SWIG_fail; | |
24090 | } | |
24091 | resultobj = SWIG_FromCharPtr(result); | |
24092 | return resultobj; | |
24093 | fail: | |
24094 | return NULL; | |
24095 | } | |
24096 | ||
24097 | ||
2ef75293 RD |
24098 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
24099 | PyObject *resultobj; | |
24100 | wxEventLoop *result; | |
24101 | char *kwnames[] = { | |
24102 | NULL | |
24103 | }; | |
24104 | ||
24105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
24106 | { | |
24107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24108 | result = (wxEventLoop *)new wxEventLoop(); | |
24109 | ||
24110 | wxPyEndAllowThreads(__tstate); | |
24111 | if (PyErr_Occurred()) SWIG_fail; | |
24112 | } | |
24113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
24114 | return resultobj; | |
24115 | fail: | |
24116 | return NULL; | |
24117 | } | |
24118 | ||
24119 | ||
24120 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
24121 | PyObject *resultobj; | |
24122 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24123 | PyObject * obj0 = 0 ; | |
24124 | char *kwnames[] = { | |
24125 | (char *) "self", NULL | |
24126 | }; | |
24127 | ||
24128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
24131 | { |
24132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24133 | delete arg1; | |
24134 | ||
24135 | wxPyEndAllowThreads(__tstate); | |
24136 | if (PyErr_Occurred()) SWIG_fail; | |
24137 | } | |
24138 | Py_INCREF(Py_None); resultobj = Py_None; | |
24139 | return resultobj; | |
24140 | fail: | |
24141 | return NULL; | |
24142 | } | |
24143 | ||
24144 | ||
24145 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
24146 | PyObject *resultobj; | |
24147 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24148 | int result; | |
24149 | PyObject * obj0 = 0 ; | |
24150 | char *kwnames[] = { | |
24151 | (char *) "self", NULL | |
24152 | }; | |
24153 | ||
24154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
24157 | { |
24158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24159 | result = (int)(arg1)->Run(); | |
24160 | ||
24161 | wxPyEndAllowThreads(__tstate); | |
24162 | if (PyErr_Occurred()) SWIG_fail; | |
24163 | } | |
093d3ff1 RD |
24164 | { |
24165 | resultobj = SWIG_From_int((int)(result)); | |
24166 | } | |
2ef75293 RD |
24167 | return resultobj; |
24168 | fail: | |
24169 | return NULL; | |
24170 | } | |
24171 | ||
24172 | ||
24173 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
24174 | PyObject *resultobj; | |
24175 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24176 | int arg2 = (int) 0 ; | |
24177 | PyObject * obj0 = 0 ; | |
24178 | PyObject * obj1 = 0 ; | |
24179 | char *kwnames[] = { | |
24180 | (char *) "self",(char *) "rc", NULL | |
24181 | }; | |
24182 | ||
24183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 | 24186 | if (obj1) { |
093d3ff1 RD |
24187 | { |
24188 | arg2 = (int)(SWIG_As_int(obj1)); | |
24189 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24190 | } | |
2ef75293 RD |
24191 | } |
24192 | { | |
24193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24194 | (arg1)->Exit(arg2); | |
24195 | ||
24196 | wxPyEndAllowThreads(__tstate); | |
24197 | if (PyErr_Occurred()) SWIG_fail; | |
24198 | } | |
24199 | Py_INCREF(Py_None); resultobj = Py_None; | |
24200 | return resultobj; | |
24201 | fail: | |
24202 | return NULL; | |
24203 | } | |
24204 | ||
24205 | ||
24206 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
24207 | PyObject *resultobj; | |
24208 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24209 | bool result; | |
24210 | PyObject * obj0 = 0 ; | |
24211 | char *kwnames[] = { | |
24212 | (char *) "self", NULL | |
24213 | }; | |
24214 | ||
24215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
24218 | { |
24219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24220 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
24221 | ||
24222 | wxPyEndAllowThreads(__tstate); | |
24223 | if (PyErr_Occurred()) SWIG_fail; | |
24224 | } | |
24225 | { | |
24226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24227 | } | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24237 | bool result; | |
24238 | PyObject * obj0 = 0 ; | |
24239 | char *kwnames[] = { | |
24240 | (char *) "self", NULL | |
24241 | }; | |
24242 | ||
24243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
24246 | { |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24248 | result = (bool)(arg1)->Dispatch(); | |
24249 | ||
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | { | |
24254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24255 | } | |
24256 | return resultobj; | |
24257 | fail: | |
24258 | return NULL; | |
24259 | } | |
24260 | ||
24261 | ||
24262 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
24263 | PyObject *resultobj; | |
24264 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24265 | bool result; | |
24266 | PyObject * obj0 = 0 ; | |
24267 | char *kwnames[] = { | |
24268 | (char *) "self", NULL | |
24269 | }; | |
24270 | ||
24271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
24274 | { |
24275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24276 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
24277 | ||
24278 | wxPyEndAllowThreads(__tstate); | |
24279 | if (PyErr_Occurred()) SWIG_fail; | |
24280 | } | |
24281 | { | |
24282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24283 | } | |
24284 | return resultobj; | |
24285 | fail: | |
24286 | return NULL; | |
24287 | } | |
24288 | ||
24289 | ||
24290 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
24291 | PyObject *resultobj; | |
24292 | wxEventLoop *result; | |
24293 | char *kwnames[] = { | |
24294 | NULL | |
24295 | }; | |
24296 | ||
24297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
24298 | { | |
24299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24300 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
24301 | ||
24302 | wxPyEndAllowThreads(__tstate); | |
24303 | if (PyErr_Occurred()) SWIG_fail; | |
24304 | } | |
24305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
24306 | return resultobj; | |
24307 | fail: | |
24308 | return NULL; | |
24309 | } | |
24310 | ||
24311 | ||
24312 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
24313 | PyObject *resultobj; | |
24314 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
24315 | PyObject * obj0 = 0 ; | |
24316 | char *kwnames[] = { | |
24317 | (char *) "loop", NULL | |
24318 | }; | |
24319 | ||
24320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0); |
24322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
24323 | { |
24324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24325 | wxEventLoop::SetActive(arg1); | |
24326 | ||
24327 | wxPyEndAllowThreads(__tstate); | |
24328 | if (PyErr_Occurred()) SWIG_fail; | |
24329 | } | |
24330 | Py_INCREF(Py_None); resultobj = Py_None; | |
24331 | return resultobj; | |
24332 | fail: | |
24333 | return NULL; | |
24334 | } | |
24335 | ||
24336 | ||
24337 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
24338 | PyObject *obj; | |
24339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24340 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
24341 | Py_INCREF(obj); | |
24342 | return Py_BuildValue((char *)""); | |
24343 | } | |
c32bde28 | 24344 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24345 | PyObject *resultobj; |
24346 | int arg1 = (int) 0 ; | |
24347 | int arg2 = (int) 0 ; | |
24348 | int arg3 = (int) 0 ; | |
1e0c8722 | 24349 | wxAcceleratorEntry *result; |
994141e6 RD |
24350 | PyObject * obj0 = 0 ; |
24351 | PyObject * obj1 = 0 ; | |
24352 | PyObject * obj2 = 0 ; | |
1e0c8722 | 24353 | char *kwnames[] = { |
66c033b4 | 24354 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
1e0c8722 RD |
24355 | }; |
24356 | ||
66c033b4 | 24357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 24358 | if (obj0) { |
093d3ff1 RD |
24359 | { |
24360 | arg1 = (int)(SWIG_As_int(obj0)); | |
24361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24362 | } | |
994141e6 RD |
24363 | } |
24364 | if (obj1) { | |
093d3ff1 RD |
24365 | { |
24366 | arg2 = (int)(SWIG_As_int(obj1)); | |
24367 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24368 | } | |
994141e6 RD |
24369 | } |
24370 | if (obj2) { | |
093d3ff1 RD |
24371 | { |
24372 | arg3 = (int)(SWIG_As_int(obj2)); | |
24373 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24374 | } | |
994141e6 | 24375 | } |
1e0c8722 RD |
24376 | { |
24377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 24378 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
1e0c8722 RD |
24379 | |
24380 | wxPyEndAllowThreads(__tstate); | |
24381 | if (PyErr_Occurred()) SWIG_fail; | |
24382 | } | |
15afbcd0 | 24383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
1e0c8722 RD |
24384 | return resultobj; |
24385 | fail: | |
24386 | return NULL; | |
24387 | } | |
24388 | ||
24389 | ||
c32bde28 | 24390 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24391 | PyObject *resultobj; |
24392 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24393 | PyObject * obj0 = 0 ; | |
24394 | char *kwnames[] = { | |
24395 | (char *) "self", NULL | |
24396 | }; | |
24397 | ||
24398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1e0c8722 RD |
24401 | { |
24402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24403 | delete arg1; | |
24404 | ||
24405 | wxPyEndAllowThreads(__tstate); | |
24406 | if (PyErr_Occurred()) SWIG_fail; | |
24407 | } | |
24408 | Py_INCREF(Py_None); resultobj = Py_None; | |
24409 | return resultobj; | |
24410 | fail: | |
24411 | return NULL; | |
24412 | } | |
24413 | ||
24414 | ||
c32bde28 | 24415 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24416 | PyObject *resultobj; |
24417 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24418 | int arg2 ; | |
24419 | int arg3 ; | |
24420 | int arg4 ; | |
1e0c8722 | 24421 | PyObject * obj0 = 0 ; |
994141e6 RD |
24422 | PyObject * obj1 = 0 ; |
24423 | PyObject * obj2 = 0 ; | |
24424 | PyObject * obj3 = 0 ; | |
1e0c8722 | 24425 | char *kwnames[] = { |
66c033b4 | 24426 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
1e0c8722 RD |
24427 | }; |
24428 | ||
66c033b4 | 24429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24432 | { | |
24433 | arg2 = (int)(SWIG_As_int(obj1)); | |
24434 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24435 | } | |
24436 | { | |
24437 | arg3 = (int)(SWIG_As_int(obj2)); | |
24438 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24439 | } | |
24440 | { | |
24441 | arg4 = (int)(SWIG_As_int(obj3)); | |
24442 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24443 | } | |
1e0c8722 RD |
24444 | { |
24445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 24446 | (arg1)->Set(arg2,arg3,arg4); |
1e0c8722 RD |
24447 | |
24448 | wxPyEndAllowThreads(__tstate); | |
24449 | if (PyErr_Occurred()) SWIG_fail; | |
24450 | } | |
24451 | Py_INCREF(Py_None); resultobj = Py_None; | |
24452 | return resultobj; | |
24453 | fail: | |
24454 | return NULL; | |
24455 | } | |
24456 | ||
24457 | ||
c32bde28 | 24458 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24459 | PyObject *resultobj; |
24460 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24461 | int result; | |
24462 | PyObject * obj0 = 0 ; | |
24463 | char *kwnames[] = { | |
24464 | (char *) "self", NULL | |
24465 | }; | |
24466 | ||
24467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1e0c8722 RD |
24470 | { |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | result = (int)(arg1)->GetFlags(); | |
24473 | ||
24474 | wxPyEndAllowThreads(__tstate); | |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
24476 | } | |
093d3ff1 RD |
24477 | { |
24478 | resultobj = SWIG_From_int((int)(result)); | |
24479 | } | |
1e0c8722 RD |
24480 | return resultobj; |
24481 | fail: | |
24482 | return NULL; | |
24483 | } | |
24484 | ||
24485 | ||
c32bde28 | 24486 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24487 | PyObject *resultobj; |
24488 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24489 | int result; | |
24490 | PyObject * obj0 = 0 ; | |
24491 | char *kwnames[] = { | |
24492 | (char *) "self", NULL | |
24493 | }; | |
24494 | ||
24495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1e0c8722 RD |
24498 | { |
24499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24500 | result = (int)(arg1)->GetKeyCode(); | |
24501 | ||
24502 | wxPyEndAllowThreads(__tstate); | |
24503 | if (PyErr_Occurred()) SWIG_fail; | |
24504 | } | |
093d3ff1 RD |
24505 | { |
24506 | resultobj = SWIG_From_int((int)(result)); | |
24507 | } | |
1e0c8722 RD |
24508 | return resultobj; |
24509 | fail: | |
24510 | return NULL; | |
24511 | } | |
24512 | ||
24513 | ||
c32bde28 | 24514 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24515 | PyObject *resultobj; |
24516 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
24517 | int result; | |
24518 | PyObject * obj0 = 0 ; | |
24519 | char *kwnames[] = { | |
24520 | (char *) "self", NULL | |
24521 | }; | |
24522 | ||
24523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); |
24525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1e0c8722 RD |
24526 | { |
24527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24528 | result = (int)(arg1)->GetCommand(); | |
24529 | ||
24530 | wxPyEndAllowThreads(__tstate); | |
24531 | if (PyErr_Occurred()) SWIG_fail; | |
24532 | } | |
093d3ff1 RD |
24533 | { |
24534 | resultobj = SWIG_From_int((int)(result)); | |
24535 | } | |
1e0c8722 RD |
24536 | return resultobj; |
24537 | fail: | |
24538 | return NULL; | |
24539 | } | |
24540 | ||
24541 | ||
c32bde28 | 24542 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
1e0c8722 RD |
24543 | PyObject *obj; |
24544 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24545 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
24546 | Py_INCREF(obj); | |
24547 | return Py_BuildValue((char *)""); | |
24548 | } | |
c32bde28 | 24549 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24550 | PyObject *resultobj; |
24551 | int arg1 ; | |
24552 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
24553 | wxAcceleratorTable *result; | |
24554 | PyObject * obj0 = 0 ; | |
24555 | char *kwnames[] = { | |
24556 | (char *) "n", NULL | |
24557 | }; | |
24558 | ||
24559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
24560 | { | |
24561 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
24562 | if (arg2) arg1 = PyList_Size(obj0); | |
24563 | else arg1 = 0; | |
24564 | } | |
24565 | { | |
24566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24567 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
24568 | ||
24569 | wxPyEndAllowThreads(__tstate); | |
24570 | if (PyErr_Occurred()) SWIG_fail; | |
24571 | } | |
15afbcd0 | 24572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
1e0c8722 RD |
24573 | { |
24574 | delete [] arg2; | |
24575 | } | |
24576 | return resultobj; | |
24577 | fail: | |
24578 | { | |
24579 | delete [] arg2; | |
24580 | } | |
24581 | return NULL; | |
24582 | } | |
24583 | ||
24584 | ||
c32bde28 | 24585 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24586 | PyObject *resultobj; |
24587 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
24588 | PyObject * obj0 = 0 ; | |
24589 | char *kwnames[] = { | |
24590 | (char *) "self", NULL | |
24591 | }; | |
24592 | ||
24593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); |
24595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1e0c8722 RD |
24596 | { |
24597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24598 | delete arg1; | |
24599 | ||
24600 | wxPyEndAllowThreads(__tstate); | |
24601 | if (PyErr_Occurred()) SWIG_fail; | |
24602 | } | |
24603 | Py_INCREF(Py_None); resultobj = Py_None; | |
24604 | return resultobj; | |
24605 | fail: | |
24606 | return NULL; | |
24607 | } | |
24608 | ||
24609 | ||
c32bde28 | 24610 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24611 | PyObject *resultobj; |
24612 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
24613 | bool result; | |
24614 | PyObject * obj0 = 0 ; | |
24615 | char *kwnames[] = { | |
24616 | (char *) "self", NULL | |
24617 | }; | |
24618 | ||
24619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); |
24621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1e0c8722 RD |
24622 | { |
24623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24624 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
24625 | ||
24626 | wxPyEndAllowThreads(__tstate); | |
24627 | if (PyErr_Occurred()) SWIG_fail; | |
24628 | } | |
4f89f6a3 RD |
24629 | { |
24630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24631 | } | |
1e0c8722 RD |
24632 | return resultobj; |
24633 | fail: | |
24634 | return NULL; | |
24635 | } | |
24636 | ||
24637 | ||
c32bde28 | 24638 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
1e0c8722 RD |
24639 | PyObject *obj; |
24640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24641 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
24642 | Py_INCREF(obj); | |
24643 | return Py_BuildValue((char *)""); | |
24644 | } | |
c32bde28 | 24645 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
1e0c8722 RD |
24646 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
24647 | return 1; | |
24648 | } | |
24649 | ||
24650 | ||
093d3ff1 | 24651 | static PyObject *_wrap_NullAcceleratorTable_get(void) { |
1e0c8722 RD |
24652 | PyObject *pyobj; |
24653 | ||
15afbcd0 | 24654 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
1e0c8722 RD |
24655 | return pyobj; |
24656 | } | |
24657 | ||
24658 | ||
c32bde28 | 24659 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
1e0c8722 RD |
24660 | PyObject *resultobj; |
24661 | wxString *arg1 = 0 ; | |
24662 | wxAcceleratorEntry *result; | |
ae8162c8 | 24663 | bool temp1 = false ; |
1e0c8722 RD |
24664 | PyObject * obj0 = 0 ; |
24665 | char *kwnames[] = { | |
24666 | (char *) "label", NULL | |
24667 | }; | |
24668 | ||
24669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
24670 | { | |
24671 | arg1 = wxString_in_helper(obj0); | |
24672 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 24673 | temp1 = true; |
1e0c8722 RD |
24674 | } |
24675 | { | |
24676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24677 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
24678 | ||
24679 | wxPyEndAllowThreads(__tstate); | |
24680 | if (PyErr_Occurred()) SWIG_fail; | |
24681 | } | |
15afbcd0 | 24682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
1e0c8722 RD |
24683 | { |
24684 | if (temp1) | |
24685 | delete arg1; | |
24686 | } | |
24687 | return resultobj; | |
24688 | fail: | |
24689 | { | |
24690 | if (temp1) | |
24691 | delete arg1; | |
24692 | } | |
24693 | return NULL; | |
24694 | } | |
24695 | ||
24696 | ||
c32bde28 | 24697 | static int _wrap_PanelNameStr_set(PyObject *) { |
e811c8ce RD |
24698 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
24699 | return 1; | |
24700 | } | |
24701 | ||
24702 | ||
093d3ff1 | 24703 | static PyObject *_wrap_PanelNameStr_get(void) { |
e811c8ce RD |
24704 | PyObject *pyobj; |
24705 | ||
24706 | { | |
24707 | #if wxUSE_UNICODE | |
24708 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
24709 | #else | |
24710 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
24711 | #endif | |
24712 | } | |
24713 | return pyobj; | |
24714 | } | |
24715 | ||
24716 | ||
c32bde28 | 24717 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24718 | PyObject *resultobj; |
24719 | wxVisualAttributes *result; | |
24720 | char *kwnames[] = { | |
24721 | NULL | |
24722 | }; | |
24723 | ||
24724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
24725 | { | |
24726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24727 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
24728 | ||
24729 | wxPyEndAllowThreads(__tstate); | |
24730 | if (PyErr_Occurred()) SWIG_fail; | |
24731 | } | |
24732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
24733 | return resultobj; | |
24734 | fail: | |
24735 | return NULL; | |
24736 | } | |
24737 | ||
24738 | ||
c32bde28 | 24739 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24740 | PyObject *resultobj; |
24741 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24742 | PyObject * obj0 = 0 ; | |
24743 | char *kwnames[] = { | |
24744 | (char *) "self", NULL | |
24745 | }; | |
24746 | ||
24747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
24750 | { |
24751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24752 | delete_wxVisualAttributes(arg1); | |
24753 | ||
24754 | wxPyEndAllowThreads(__tstate); | |
24755 | if (PyErr_Occurred()) SWIG_fail; | |
24756 | } | |
24757 | Py_INCREF(Py_None); resultobj = Py_None; | |
24758 | return resultobj; | |
24759 | fail: | |
24760 | return NULL; | |
24761 | } | |
24762 | ||
24763 | ||
c32bde28 | 24764 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24765 | PyObject *resultobj; |
24766 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24767 | wxFont *arg2 = (wxFont *) 0 ; | |
24768 | PyObject * obj0 = 0 ; | |
24769 | PyObject * obj1 = 0 ; | |
24770 | char *kwnames[] = { | |
24771 | (char *) "self",(char *) "font", NULL | |
24772 | }; | |
24773 | ||
24774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24777 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
24778 | if (SWIG_arg_fail(2)) SWIG_fail; | |
74a57fcd RD |
24779 | if (arg1) (arg1)->font = *arg2; |
24780 | ||
24781 | Py_INCREF(Py_None); resultobj = Py_None; | |
24782 | return resultobj; | |
24783 | fail: | |
24784 | return NULL; | |
24785 | } | |
24786 | ||
24787 | ||
c32bde28 | 24788 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24789 | PyObject *resultobj; |
24790 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24791 | wxFont *result; | |
24792 | PyObject * obj0 = 0 ; | |
24793 | char *kwnames[] = { | |
24794 | (char *) "self", NULL | |
24795 | }; | |
24796 | ||
24797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
24800 | result = (wxFont *)& ((arg1)->font); |
24801 | ||
24802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
24803 | return resultobj; | |
24804 | fail: | |
24805 | return NULL; | |
24806 | } | |
24807 | ||
24808 | ||
c32bde28 | 24809 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24810 | PyObject *resultobj; |
24811 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24812 | wxColour *arg2 = (wxColour *) 0 ; | |
24813 | PyObject * obj0 = 0 ; | |
24814 | PyObject * obj1 = 0 ; | |
24815 | char *kwnames[] = { | |
24816 | (char *) "self",(char *) "colFg", NULL | |
24817 | }; | |
24818 | ||
24819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24822 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
24823 | if (SWIG_arg_fail(2)) SWIG_fail; | |
74a57fcd RD |
24824 | if (arg1) (arg1)->colFg = *arg2; |
24825 | ||
24826 | Py_INCREF(Py_None); resultobj = Py_None; | |
24827 | return resultobj; | |
24828 | fail: | |
24829 | return NULL; | |
24830 | } | |
24831 | ||
24832 | ||
c32bde28 | 24833 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24834 | PyObject *resultobj; |
24835 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24836 | wxColour *result; | |
24837 | PyObject * obj0 = 0 ; | |
24838 | char *kwnames[] = { | |
24839 | (char *) "self", NULL | |
24840 | }; | |
24841 | ||
24842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
24845 | result = (wxColour *)& ((arg1)->colFg); |
24846 | ||
24847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
24848 | return resultobj; | |
24849 | fail: | |
24850 | return NULL; | |
24851 | } | |
24852 | ||
24853 | ||
c32bde28 | 24854 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24855 | PyObject *resultobj; |
24856 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24857 | wxColour *arg2 = (wxColour *) 0 ; | |
24858 | PyObject * obj0 = 0 ; | |
24859 | PyObject * obj1 = 0 ; | |
24860 | char *kwnames[] = { | |
24861 | (char *) "self",(char *) "colBg", NULL | |
24862 | }; | |
24863 | ||
24864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24865 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24866 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24867 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0); | |
24868 | if (SWIG_arg_fail(2)) SWIG_fail; | |
74a57fcd RD |
24869 | if (arg1) (arg1)->colBg = *arg2; |
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_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
24879 | PyObject *resultobj; |
24880 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
24881 | wxColour *result; | |
24882 | PyObject * obj0 = 0 ; | |
24883 | char *kwnames[] = { | |
24884 | (char *) "self", NULL | |
24885 | }; | |
24886 | ||
24887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0); |
24889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
24890 | result = (wxColour *)& ((arg1)->colBg); |
24891 | ||
24892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
24893 | return resultobj; | |
24894 | fail: | |
24895 | return NULL; | |
24896 | } | |
24897 | ||
24898 | ||
c32bde28 | 24899 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
74a57fcd RD |
24900 | PyObject *obj; |
24901 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24902 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
24903 | Py_INCREF(obj); | |
24904 | return Py_BuildValue((char *)""); | |
24905 | } | |
c32bde28 | 24906 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24907 | PyObject *resultobj; |
24908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
74a57fcd | 24909 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
24910 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24911 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24912 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24913 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24914 | long arg5 = (long) 0 ; | |
24915 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
24916 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
24917 | wxWindow *result; | |
24918 | wxPoint temp3 ; | |
24919 | wxSize temp4 ; | |
ae8162c8 | 24920 | bool temp6 = false ; |
d14a1e28 | 24921 | PyObject * obj0 = 0 ; |
994141e6 | 24922 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24923 | PyObject * obj2 = 0 ; |
24924 | PyObject * obj3 = 0 ; | |
994141e6 | 24925 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24926 | PyObject * obj5 = 0 ; |
24927 | char *kwnames[] = { | |
24928 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24929 | }; | |
24930 | ||
74a57fcd | 24931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
24932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
24933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd | 24934 | if (obj1) { |
093d3ff1 RD |
24935 | { |
24936 | arg2 = (int const)(SWIG_As_int(obj1)); | |
24937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24938 | } | |
74a57fcd | 24939 | } |
d14a1e28 RD |
24940 | if (obj2) { |
24941 | { | |
24942 | arg3 = &temp3; | |
24943 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24944 | } | |
24945 | } | |
24946 | if (obj3) { | |
24947 | { | |
24948 | arg4 = &temp4; | |
24949 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24950 | } | |
24951 | } | |
994141e6 | 24952 | if (obj4) { |
093d3ff1 RD |
24953 | { |
24954 | arg5 = (long)(SWIG_As_long(obj4)); | |
24955 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24956 | } | |
994141e6 | 24957 | } |
d14a1e28 RD |
24958 | if (obj5) { |
24959 | { | |
24960 | arg6 = wxString_in_helper(obj5); | |
24961 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 24962 | temp6 = true; |
d14a1e28 RD |
24963 | } |
24964 | } | |
24965 | { | |
e3b71cb8 | 24966 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
24967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24968 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
24969 | ||
24970 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24971 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 24972 | } |
b0f7404b | 24973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d14a1e28 RD |
24974 | { |
24975 | if (temp6) | |
24976 | delete arg6; | |
24977 | } | |
24978 | return resultobj; | |
24979 | fail: | |
24980 | { | |
24981 | if (temp6) | |
24982 | delete arg6; | |
24983 | } | |
24984 | return NULL; | |
24985 | } | |
24986 | ||
24987 | ||
c32bde28 | 24988 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24989 | PyObject *resultobj; |
24990 | wxWindow *result; | |
24991 | char *kwnames[] = { | |
24992 | NULL | |
24993 | }; | |
24994 | ||
24995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
24996 | { | |
e3b71cb8 | 24997 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
24998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24999 | result = (wxWindow *)new wxWindow(); | |
25000 | ||
25001 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25002 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25003 | } |
b0f7404b | 25004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d14a1e28 RD |
25005 | return resultobj; |
25006 | fail: | |
25007 | return NULL; | |
25008 | } | |
25009 | ||
25010 | ||
c32bde28 | 25011 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25012 | PyObject *resultobj; |
25013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25014 | wxWindow *arg2 = (wxWindow *) 0 ; | |
74a57fcd | 25015 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
25016 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
25017 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25018 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25019 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25020 | long arg6 = (long) 0 ; | |
25021 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
25022 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25023 | bool result; | |
25024 | wxPoint temp4 ; | |
25025 | wxSize temp5 ; | |
ae8162c8 | 25026 | bool temp7 = false ; |
d14a1e28 RD |
25027 | PyObject * obj0 = 0 ; |
25028 | PyObject * obj1 = 0 ; | |
994141e6 | 25029 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25030 | PyObject * obj3 = 0 ; |
25031 | PyObject * obj4 = 0 ; | |
994141e6 | 25032 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
25033 | PyObject * obj6 = 0 ; |
25034 | char *kwnames[] = { | |
25035 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
25036 | }; | |
25037 | ||
74a57fcd | 25038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
25039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25041 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
25042 | if (SWIG_arg_fail(2)) SWIG_fail; | |
74a57fcd | 25043 | if (obj2) { |
093d3ff1 RD |
25044 | { |
25045 | arg3 = (int const)(SWIG_As_int(obj2)); | |
25046 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25047 | } | |
74a57fcd | 25048 | } |
d14a1e28 RD |
25049 | if (obj3) { |
25050 | { | |
25051 | arg4 = &temp4; | |
25052 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25053 | } | |
25054 | } | |
25055 | if (obj4) { | |
25056 | { | |
25057 | arg5 = &temp5; | |
25058 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25059 | } | |
25060 | } | |
994141e6 | 25061 | if (obj5) { |
093d3ff1 RD |
25062 | { |
25063 | arg6 = (long)(SWIG_As_long(obj5)); | |
25064 | if (SWIG_arg_fail(6)) SWIG_fail; | |
25065 | } | |
994141e6 | 25066 | } |
d14a1e28 RD |
25067 | if (obj6) { |
25068 | { | |
25069 | arg7 = wxString_in_helper(obj6); | |
25070 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 25071 | temp7 = true; |
d14a1e28 RD |
25072 | } |
25073 | } | |
25074 | { | |
25075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25076 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
25077 | ||
25078 | wxPyEndAllowThreads(__tstate); | |
25079 | if (PyErr_Occurred()) SWIG_fail; | |
25080 | } | |
4f89f6a3 RD |
25081 | { |
25082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25083 | } | |
d14a1e28 RD |
25084 | { |
25085 | if (temp7) | |
25086 | delete arg7; | |
25087 | } | |
25088 | return resultobj; | |
25089 | fail: | |
25090 | { | |
25091 | if (temp7) | |
25092 | delete arg7; | |
25093 | } | |
25094 | return NULL; | |
25095 | } | |
25096 | ||
25097 | ||
c32bde28 | 25098 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25099 | PyObject *resultobj; |
25100 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 25101 | bool arg2 = (bool) false ; |
d14a1e28 RD |
25102 | bool result; |
25103 | PyObject * obj0 = 0 ; | |
25104 | PyObject * obj1 = 0 ; | |
25105 | char *kwnames[] = { | |
25106 | (char *) "self",(char *) "force", NULL | |
25107 | }; | |
25108 | ||
25109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",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; | |
d14a1e28 | 25112 | if (obj1) { |
093d3ff1 RD |
25113 | { |
25114 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
25115 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25116 | } | |
d14a1e28 RD |
25117 | } |
25118 | { | |
25119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25120 | result = (bool)(arg1)->Close(arg2); | |
25121 | ||
25122 | wxPyEndAllowThreads(__tstate); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
25124 | } | |
4f89f6a3 RD |
25125 | { |
25126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25127 | } | |
d14a1e28 RD |
25128 | return resultobj; |
25129 | fail: | |
25130 | return NULL; | |
25131 | } | |
25132 | ||
25133 | ||
c32bde28 | 25134 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25135 | PyObject *resultobj; |
25136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25137 | bool result; | |
25138 | PyObject * obj0 = 0 ; | |
25139 | char *kwnames[] = { | |
25140 | (char *) "self", NULL | |
25141 | }; | |
25142 | ||
25143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25146 | { |
25147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25148 | result = (bool)(arg1)->Destroy(); | |
25149 | ||
25150 | wxPyEndAllowThreads(__tstate); | |
25151 | if (PyErr_Occurred()) SWIG_fail; | |
25152 | } | |
4f89f6a3 RD |
25153 | { |
25154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25155 | } | |
d14a1e28 RD |
25156 | return resultobj; |
25157 | fail: | |
25158 | return NULL; | |
25159 | } | |
25160 | ||
25161 | ||
c32bde28 | 25162 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25163 | PyObject *resultobj; |
25164 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25165 | bool result; | |
25166 | PyObject * obj0 = 0 ; | |
25167 | char *kwnames[] = { | |
25168 | (char *) "self", NULL | |
25169 | }; | |
25170 | ||
25171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25174 | { |
25175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25176 | result = (bool)(arg1)->DestroyChildren(); | |
25177 | ||
25178 | wxPyEndAllowThreads(__tstate); | |
25179 | if (PyErr_Occurred()) SWIG_fail; | |
25180 | } | |
4f89f6a3 RD |
25181 | { |
25182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25183 | } | |
d14a1e28 RD |
25184 | return resultobj; |
25185 | fail: | |
25186 | return NULL; | |
25187 | } | |
25188 | ||
25189 | ||
c32bde28 | 25190 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25191 | PyObject *resultobj; |
25192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25193 | bool result; | |
25194 | PyObject * obj0 = 0 ; | |
25195 | char *kwnames[] = { | |
25196 | (char *) "self", NULL | |
25197 | }; | |
25198 | ||
25199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25202 | { |
25203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25204 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
25205 | ||
25206 | wxPyEndAllowThreads(__tstate); | |
25207 | if (PyErr_Occurred()) SWIG_fail; | |
25208 | } | |
4f89f6a3 RD |
25209 | { |
25210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25211 | } | |
d14a1e28 RD |
25212 | return resultobj; |
25213 | fail: | |
25214 | return NULL; | |
25215 | } | |
25216 | ||
25217 | ||
c32bde28 | 25218 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25219 | PyObject *resultobj; |
25220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25221 | wxString *arg2 = 0 ; | |
ae8162c8 | 25222 | bool temp2 = false ; |
d14a1e28 RD |
25223 | PyObject * obj0 = 0 ; |
25224 | PyObject * obj1 = 0 ; | |
25225 | char *kwnames[] = { | |
25226 | (char *) "self",(char *) "title", NULL | |
25227 | }; | |
25228 | ||
25229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25232 | { |
25233 | arg2 = wxString_in_helper(obj1); | |
25234 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25235 | temp2 = true; |
d14a1e28 RD |
25236 | } |
25237 | { | |
25238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25239 | (arg1)->SetTitle((wxString const &)*arg2); | |
25240 | ||
25241 | wxPyEndAllowThreads(__tstate); | |
25242 | if (PyErr_Occurred()) SWIG_fail; | |
25243 | } | |
25244 | Py_INCREF(Py_None); resultobj = Py_None; | |
25245 | { | |
25246 | if (temp2) | |
25247 | delete arg2; | |
25248 | } | |
25249 | return resultobj; | |
25250 | fail: | |
25251 | { | |
25252 | if (temp2) | |
25253 | delete arg2; | |
25254 | } | |
25255 | return NULL; | |
25256 | } | |
25257 | ||
25258 | ||
c32bde28 | 25259 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25260 | PyObject *resultobj; |
25261 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25262 | wxString result; | |
25263 | PyObject * obj0 = 0 ; | |
25264 | char *kwnames[] = { | |
25265 | (char *) "self", NULL | |
25266 | }; | |
25267 | ||
25268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25271 | { |
25272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25273 | result = ((wxWindow const *)arg1)->GetTitle(); | |
25274 | ||
25275 | wxPyEndAllowThreads(__tstate); | |
25276 | if (PyErr_Occurred()) SWIG_fail; | |
25277 | } | |
25278 | { | |
25279 | #if wxUSE_UNICODE | |
25280 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25281 | #else | |
25282 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25283 | #endif | |
25284 | } | |
25285 | return resultobj; | |
25286 | fail: | |
25287 | return NULL; | |
25288 | } | |
25289 | ||
25290 | ||
c32bde28 | 25291 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25292 | PyObject *resultobj; |
25293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25294 | wxString *arg2 = 0 ; | |
ae8162c8 | 25295 | bool temp2 = false ; |
d14a1e28 RD |
25296 | PyObject * obj0 = 0 ; |
25297 | PyObject * obj1 = 0 ; | |
25298 | char *kwnames[] = { | |
25299 | (char *) "self",(char *) "label", NULL | |
25300 | }; | |
25301 | ||
25302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25305 | { |
25306 | arg2 = wxString_in_helper(obj1); | |
25307 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25308 | temp2 = true; |
d14a1e28 RD |
25309 | } |
25310 | { | |
25311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25312 | (arg1)->SetLabel((wxString const &)*arg2); | |
25313 | ||
25314 | wxPyEndAllowThreads(__tstate); | |
25315 | if (PyErr_Occurred()) SWIG_fail; | |
25316 | } | |
25317 | Py_INCREF(Py_None); resultobj = Py_None; | |
25318 | { | |
25319 | if (temp2) | |
25320 | delete arg2; | |
25321 | } | |
25322 | return resultobj; | |
25323 | fail: | |
25324 | { | |
25325 | if (temp2) | |
25326 | delete arg2; | |
25327 | } | |
25328 | return NULL; | |
25329 | } | |
25330 | ||
25331 | ||
c32bde28 | 25332 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25333 | PyObject *resultobj; |
25334 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25335 | wxString result; | |
25336 | PyObject * obj0 = 0 ; | |
25337 | char *kwnames[] = { | |
25338 | (char *) "self", NULL | |
25339 | }; | |
25340 | ||
25341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25344 | { |
25345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25346 | result = ((wxWindow const *)arg1)->GetLabel(); | |
25347 | ||
25348 | wxPyEndAllowThreads(__tstate); | |
25349 | if (PyErr_Occurred()) SWIG_fail; | |
25350 | } | |
25351 | { | |
25352 | #if wxUSE_UNICODE | |
25353 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25354 | #else | |
25355 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25356 | #endif | |
25357 | } | |
25358 | return resultobj; | |
25359 | fail: | |
25360 | return NULL; | |
25361 | } | |
25362 | ||
25363 | ||
c32bde28 | 25364 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25365 | PyObject *resultobj; |
25366 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25367 | wxString *arg2 = 0 ; | |
ae8162c8 | 25368 | bool temp2 = false ; |
d14a1e28 RD |
25369 | PyObject * obj0 = 0 ; |
25370 | PyObject * obj1 = 0 ; | |
25371 | char *kwnames[] = { | |
25372 | (char *) "self",(char *) "name", NULL | |
25373 | }; | |
25374 | ||
25375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25378 | { |
25379 | arg2 = wxString_in_helper(obj1); | |
25380 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25381 | temp2 = true; |
d14a1e28 RD |
25382 | } |
25383 | { | |
25384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25385 | (arg1)->SetName((wxString const &)*arg2); | |
25386 | ||
25387 | wxPyEndAllowThreads(__tstate); | |
25388 | if (PyErr_Occurred()) SWIG_fail; | |
25389 | } | |
25390 | Py_INCREF(Py_None); resultobj = Py_None; | |
25391 | { | |
25392 | if (temp2) | |
25393 | delete arg2; | |
25394 | } | |
25395 | return resultobj; | |
25396 | fail: | |
25397 | { | |
25398 | if (temp2) | |
25399 | delete arg2; | |
25400 | } | |
25401 | return NULL; | |
25402 | } | |
25403 | ||
25404 | ||
c32bde28 | 25405 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25406 | PyObject *resultobj; |
25407 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25408 | wxString result; | |
25409 | PyObject * obj0 = 0 ; | |
25410 | char *kwnames[] = { | |
25411 | (char *) "self", NULL | |
25412 | }; | |
25413 | ||
25414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25417 | { |
25418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25419 | result = ((wxWindow const *)arg1)->GetName(); | |
25420 | ||
25421 | wxPyEndAllowThreads(__tstate); | |
25422 | if (PyErr_Occurred()) SWIG_fail; | |
25423 | } | |
25424 | { | |
25425 | #if wxUSE_UNICODE | |
25426 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25427 | #else | |
25428 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25429 | #endif | |
25430 | } | |
25431 | return resultobj; | |
25432 | fail: | |
25433 | return NULL; | |
25434 | } | |
25435 | ||
25436 | ||
c32bde28 | 25437 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
25438 | PyObject *resultobj; |
25439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 25440 | wxWindowVariant arg2 ; |
4276dc52 RD |
25441 | PyObject * obj0 = 0 ; |
25442 | PyObject * obj1 = 0 ; | |
25443 | char *kwnames[] = { | |
25444 | (char *) "self",(char *) "variant", NULL | |
25445 | }; | |
25446 | ||
25447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25448 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25449 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25450 | { | |
25451 | arg2 = (wxWindowVariant)(SWIG_As_int(obj1)); | |
25452 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25453 | } | |
4276dc52 RD |
25454 | { |
25455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25456 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
25457 | ||
25458 | wxPyEndAllowThreads(__tstate); | |
25459 | if (PyErr_Occurred()) SWIG_fail; | |
25460 | } | |
25461 | Py_INCREF(Py_None); resultobj = Py_None; | |
25462 | return resultobj; | |
25463 | fail: | |
25464 | return NULL; | |
25465 | } | |
25466 | ||
25467 | ||
c32bde28 | 25468 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
25469 | PyObject *resultobj; |
25470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 25471 | wxWindowVariant result; |
4276dc52 RD |
25472 | PyObject * obj0 = 0 ; |
25473 | char *kwnames[] = { | |
25474 | (char *) "self", NULL | |
25475 | }; | |
25476 | ||
25477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
25480 | { |
25481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25482 | result = (wxWindowVariant)((wxWindow const *)arg1)->GetWindowVariant(); |
4276dc52 RD |
25483 | |
25484 | wxPyEndAllowThreads(__tstate); | |
25485 | if (PyErr_Occurred()) SWIG_fail; | |
25486 | } | |
093d3ff1 | 25487 | resultobj = SWIG_From_int((result)); |
4276dc52 RD |
25488 | return resultobj; |
25489 | fail: | |
25490 | return NULL; | |
25491 | } | |
25492 | ||
25493 | ||
c32bde28 | 25494 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25495 | PyObject *resultobj; |
25496 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25497 | int arg2 ; |
d14a1e28 | 25498 | PyObject * obj0 = 0 ; |
994141e6 | 25499 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25500 | char *kwnames[] = { |
25501 | (char *) "self",(char *) "winid", NULL | |
25502 | }; | |
25503 | ||
994141e6 | 25504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25507 | { | |
25508 | arg2 = (int)(SWIG_As_int(obj1)); | |
25509 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25510 | } | |
d14a1e28 RD |
25511 | { |
25512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25513 | (arg1)->SetId(arg2); | |
25514 | ||
25515 | wxPyEndAllowThreads(__tstate); | |
25516 | if (PyErr_Occurred()) SWIG_fail; | |
25517 | } | |
25518 | Py_INCREF(Py_None); resultobj = Py_None; | |
25519 | return resultobj; | |
25520 | fail: | |
25521 | return NULL; | |
25522 | } | |
25523 | ||
25524 | ||
c32bde28 | 25525 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25526 | PyObject *resultobj; |
25527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25528 | int result; |
d14a1e28 RD |
25529 | PyObject * obj0 = 0 ; |
25530 | char *kwnames[] = { | |
25531 | (char *) "self", NULL | |
25532 | }; | |
25533 | ||
25534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25537 | { |
25538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 25539 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
25540 | |
25541 | wxPyEndAllowThreads(__tstate); | |
25542 | if (PyErr_Occurred()) SWIG_fail; | |
25543 | } | |
093d3ff1 RD |
25544 | { |
25545 | resultobj = SWIG_From_int((int)(result)); | |
25546 | } | |
d14a1e28 RD |
25547 | return resultobj; |
25548 | fail: | |
25549 | return NULL; | |
25550 | } | |
25551 | ||
25552 | ||
c32bde28 | 25553 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25554 | PyObject *resultobj; |
25555 | int result; | |
25556 | char *kwnames[] = { | |
25557 | NULL | |
25558 | }; | |
25559 | ||
25560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
25561 | { | |
25562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25563 | result = (int)wxWindow::NewControlId(); | |
25564 | ||
25565 | wxPyEndAllowThreads(__tstate); | |
25566 | if (PyErr_Occurred()) SWIG_fail; | |
25567 | } | |
093d3ff1 RD |
25568 | { |
25569 | resultobj = SWIG_From_int((int)(result)); | |
25570 | } | |
d14a1e28 RD |
25571 | return resultobj; |
25572 | fail: | |
25573 | return NULL; | |
25574 | } | |
25575 | ||
25576 | ||
c32bde28 | 25577 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25578 | PyObject *resultobj; |
25579 | int arg1 ; | |
25580 | int result; | |
994141e6 | 25581 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25582 | char *kwnames[] = { |
25583 | (char *) "winid", NULL | |
25584 | }; | |
25585 | ||
994141e6 | 25586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25587 | { |
25588 | arg1 = (int)(SWIG_As_int(obj0)); | |
25589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25590 | } | |
d14a1e28 RD |
25591 | { |
25592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25593 | result = (int)wxWindow::NextControlId(arg1); | |
25594 | ||
25595 | wxPyEndAllowThreads(__tstate); | |
25596 | if (PyErr_Occurred()) SWIG_fail; | |
25597 | } | |
093d3ff1 RD |
25598 | { |
25599 | resultobj = SWIG_From_int((int)(result)); | |
25600 | } | |
d14a1e28 RD |
25601 | return resultobj; |
25602 | fail: | |
25603 | return NULL; | |
25604 | } | |
25605 | ||
25606 | ||
c32bde28 | 25607 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25608 | PyObject *resultobj; |
25609 | int arg1 ; | |
25610 | int result; | |
994141e6 | 25611 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25612 | char *kwnames[] = { |
25613 | (char *) "winid", NULL | |
25614 | }; | |
25615 | ||
994141e6 | 25616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
25617 | { |
25618 | arg1 = (int)(SWIG_As_int(obj0)); | |
25619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25620 | } | |
d14a1e28 RD |
25621 | { |
25622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25623 | result = (int)wxWindow::PrevControlId(arg1); | |
25624 | ||
25625 | wxPyEndAllowThreads(__tstate); | |
25626 | if (PyErr_Occurred()) SWIG_fail; | |
25627 | } | |
093d3ff1 RD |
25628 | { |
25629 | resultobj = SWIG_From_int((int)(result)); | |
25630 | } | |
d14a1e28 RD |
25631 | return resultobj; |
25632 | fail: | |
25633 | return NULL; | |
25634 | } | |
25635 | ||
25636 | ||
c32bde28 | 25637 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25638 | PyObject *resultobj; |
25639 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25640 | wxSize *arg2 = 0 ; | |
25641 | wxSize temp2 ; | |
25642 | PyObject * obj0 = 0 ; | |
25643 | PyObject * obj1 = 0 ; | |
25644 | char *kwnames[] = { | |
25645 | (char *) "self",(char *) "size", NULL | |
25646 | }; | |
25647 | ||
25648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25651 | { |
25652 | arg2 = &temp2; | |
25653 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25654 | } | |
25655 | { | |
25656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25657 | (arg1)->SetSize((wxSize const &)*arg2); | |
25658 | ||
25659 | wxPyEndAllowThreads(__tstate); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | } | |
25662 | Py_INCREF(Py_None); resultobj = Py_None; | |
25663 | return resultobj; | |
25664 | fail: | |
25665 | return NULL; | |
25666 | } | |
25667 | ||
25668 | ||
c32bde28 | 25669 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25670 | PyObject *resultobj; |
25671 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25672 | int arg2 ; | |
25673 | int arg3 ; | |
25674 | int arg4 ; | |
25675 | int arg5 ; | |
25676 | int arg6 = (int) wxSIZE_AUTO ; | |
25677 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25678 | PyObject * obj1 = 0 ; |
25679 | PyObject * obj2 = 0 ; | |
25680 | PyObject * obj3 = 0 ; | |
25681 | PyObject * obj4 = 0 ; | |
25682 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
25683 | char *kwnames[] = { |
25684 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
25685 | }; | |
25686 | ||
994141e6 | 25687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
25688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25690 | { | |
25691 | arg2 = (int)(SWIG_As_int(obj1)); | |
25692 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25693 | } | |
25694 | { | |
25695 | arg3 = (int)(SWIG_As_int(obj2)); | |
25696 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25697 | } | |
25698 | { | |
25699 | arg4 = (int)(SWIG_As_int(obj3)); | |
25700 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25701 | } | |
25702 | { | |
25703 | arg5 = (int)(SWIG_As_int(obj4)); | |
25704 | if (SWIG_arg_fail(5)) SWIG_fail; | |
25705 | } | |
994141e6 | 25706 | if (obj5) { |
093d3ff1 RD |
25707 | { |
25708 | arg6 = (int)(SWIG_As_int(obj5)); | |
25709 | if (SWIG_arg_fail(6)) SWIG_fail; | |
25710 | } | |
994141e6 | 25711 | } |
d14a1e28 RD |
25712 | { |
25713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25714 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
25715 | ||
25716 | wxPyEndAllowThreads(__tstate); | |
25717 | if (PyErr_Occurred()) SWIG_fail; | |
25718 | } | |
25719 | Py_INCREF(Py_None); resultobj = Py_None; | |
25720 | return resultobj; | |
25721 | fail: | |
25722 | return NULL; | |
25723 | } | |
25724 | ||
25725 | ||
c32bde28 | 25726 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25727 | PyObject *resultobj; |
25728 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25729 | wxRect *arg2 = 0 ; | |
25730 | int arg3 = (int) wxSIZE_AUTO ; | |
25731 | wxRect temp2 ; | |
25732 | PyObject * obj0 = 0 ; | |
25733 | PyObject * obj1 = 0 ; | |
994141e6 | 25734 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25735 | char *kwnames[] = { |
25736 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
25737 | }; | |
25738 | ||
994141e6 | 25739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25742 | { |
25743 | arg2 = &temp2; | |
25744 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25745 | } | |
994141e6 | 25746 | if (obj2) { |
093d3ff1 RD |
25747 | { |
25748 | arg3 = (int)(SWIG_As_int(obj2)); | |
25749 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25750 | } | |
994141e6 | 25751 | } |
d14a1e28 RD |
25752 | { |
25753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25754 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
25755 | ||
25756 | wxPyEndAllowThreads(__tstate); | |
25757 | if (PyErr_Occurred()) SWIG_fail; | |
25758 | } | |
25759 | Py_INCREF(Py_None); resultobj = Py_None; | |
25760 | return resultobj; | |
25761 | fail: | |
25762 | return NULL; | |
25763 | } | |
25764 | ||
25765 | ||
c32bde28 | 25766 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25767 | PyObject *resultobj; |
25768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25769 | int arg2 ; | |
25770 | int arg3 ; | |
25771 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25772 | PyObject * obj1 = 0 ; |
25773 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25774 | char *kwnames[] = { |
25775 | (char *) "self",(char *) "width",(char *) "height", NULL | |
25776 | }; | |
25777 | ||
994141e6 | 25778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25781 | { | |
25782 | arg2 = (int)(SWIG_As_int(obj1)); | |
25783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25784 | } | |
25785 | { | |
25786 | arg3 = (int)(SWIG_As_int(obj2)); | |
25787 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25788 | } | |
d14a1e28 RD |
25789 | { |
25790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25791 | (arg1)->SetSize(arg2,arg3); | |
25792 | ||
25793 | wxPyEndAllowThreads(__tstate); | |
25794 | if (PyErr_Occurred()) SWIG_fail; | |
25795 | } | |
25796 | Py_INCREF(Py_None); resultobj = Py_None; | |
25797 | return resultobj; | |
25798 | fail: | |
25799 | return NULL; | |
25800 | } | |
25801 | ||
25802 | ||
c32bde28 | 25803 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25804 | PyObject *resultobj; |
25805 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25806 | wxPoint *arg2 = 0 ; | |
25807 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
25808 | wxPoint temp2 ; | |
25809 | PyObject * obj0 = 0 ; | |
25810 | PyObject * obj1 = 0 ; | |
994141e6 | 25811 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25812 | char *kwnames[] = { |
25813 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
25814 | }; | |
25815 | ||
994141e6 | 25816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25819 | { |
25820 | arg2 = &temp2; | |
25821 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25822 | } | |
994141e6 | 25823 | if (obj2) { |
093d3ff1 RD |
25824 | { |
25825 | arg3 = (int)(SWIG_As_int(obj2)); | |
25826 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25827 | } | |
994141e6 | 25828 | } |
d14a1e28 RD |
25829 | { |
25830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25831 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
25832 | ||
25833 | wxPyEndAllowThreads(__tstate); | |
25834 | if (PyErr_Occurred()) SWIG_fail; | |
25835 | } | |
25836 | Py_INCREF(Py_None); resultobj = Py_None; | |
25837 | return resultobj; | |
25838 | fail: | |
25839 | return NULL; | |
25840 | } | |
25841 | ||
25842 | ||
c32bde28 | 25843 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25844 | PyObject *resultobj; |
25845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25846 | int arg2 ; | |
25847 | int arg3 ; | |
25848 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
25849 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25850 | PyObject * obj1 = 0 ; |
25851 | PyObject * obj2 = 0 ; | |
25852 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25853 | char *kwnames[] = { |
25854 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
25855 | }; | |
25856 | ||
994141e6 | 25857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25860 | { | |
25861 | arg2 = (int)(SWIG_As_int(obj1)); | |
25862 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25863 | } | |
25864 | { | |
25865 | arg3 = (int)(SWIG_As_int(obj2)); | |
25866 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25867 | } | |
994141e6 | 25868 | if (obj3) { |
093d3ff1 RD |
25869 | { |
25870 | arg4 = (int)(SWIG_As_int(obj3)); | |
25871 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25872 | } | |
994141e6 | 25873 | } |
d14a1e28 RD |
25874 | { |
25875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25876 | (arg1)->Move(arg2,arg3,arg4); | |
25877 | ||
25878 | wxPyEndAllowThreads(__tstate); | |
25879 | if (PyErr_Occurred()) SWIG_fail; | |
25880 | } | |
25881 | Py_INCREF(Py_None); resultobj = Py_None; | |
25882 | return resultobj; | |
25883 | fail: | |
25884 | return NULL; | |
25885 | } | |
25886 | ||
25887 | ||
c32bde28 | 25888 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
25889 | PyObject *resultobj; |
25890 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25891 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
25892 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
25893 | wxSize temp2 ; | |
25894 | PyObject * obj0 = 0 ; | |
25895 | PyObject * obj1 = 0 ; | |
25896 | char *kwnames[] = { | |
25897 | (char *) "self",(char *) "size", NULL | |
25898 | }; | |
25899 | ||
25900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25901 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
f8167d6e RD |
25903 | if (obj1) { |
25904 | { | |
25905 | arg2 = &temp2; | |
25906 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25907 | } | |
25908 | } | |
25909 | { | |
25910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25911 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
25912 | ||
25913 | wxPyEndAllowThreads(__tstate); | |
25914 | if (PyErr_Occurred()) SWIG_fail; | |
25915 | } | |
25916 | Py_INCREF(Py_None); resultobj = Py_None; | |
25917 | return resultobj; | |
25918 | fail: | |
25919 | return NULL; | |
25920 | } | |
25921 | ||
25922 | ||
c32bde28 | 25923 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25924 | PyObject *resultobj; |
25925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25926 | PyObject * obj0 = 0 ; | |
25927 | char *kwnames[] = { | |
25928 | (char *) "self", NULL | |
25929 | }; | |
25930 | ||
25931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25934 | { |
25935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25936 | (arg1)->Raise(); | |
25937 | ||
25938 | wxPyEndAllowThreads(__tstate); | |
25939 | if (PyErr_Occurred()) SWIG_fail; | |
25940 | } | |
25941 | Py_INCREF(Py_None); resultobj = Py_None; | |
25942 | return resultobj; | |
25943 | fail: | |
25944 | return NULL; | |
25945 | } | |
25946 | ||
25947 | ||
c32bde28 | 25948 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25949 | PyObject *resultobj; |
25950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25951 | PyObject * obj0 = 0 ; | |
25952 | char *kwnames[] = { | |
25953 | (char *) "self", NULL | |
25954 | }; | |
25955 | ||
25956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25959 | { |
25960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25961 | (arg1)->Lower(); | |
25962 | ||
25963 | wxPyEndAllowThreads(__tstate); | |
25964 | if (PyErr_Occurred()) SWIG_fail; | |
25965 | } | |
25966 | Py_INCREF(Py_None); resultobj = Py_None; | |
25967 | return resultobj; | |
25968 | fail: | |
25969 | return NULL; | |
25970 | } | |
25971 | ||
25972 | ||
c32bde28 | 25973 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25974 | PyObject *resultobj; |
25975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25976 | wxSize *arg2 = 0 ; | |
25977 | wxSize temp2 ; | |
25978 | PyObject * obj0 = 0 ; | |
25979 | PyObject * obj1 = 0 ; | |
25980 | char *kwnames[] = { | |
25981 | (char *) "self",(char *) "size", NULL | |
25982 | }; | |
25983 | ||
25984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25987 | { |
25988 | arg2 = &temp2; | |
25989 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25990 | } | |
25991 | { | |
25992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25993 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
25994 | ||
25995 | wxPyEndAllowThreads(__tstate); | |
25996 | if (PyErr_Occurred()) SWIG_fail; | |
25997 | } | |
25998 | Py_INCREF(Py_None); resultobj = Py_None; | |
25999 | return resultobj; | |
26000 | fail: | |
26001 | return NULL; | |
26002 | } | |
26003 | ||
26004 | ||
c32bde28 | 26005 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26006 | PyObject *resultobj; |
26007 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26008 | int arg2 ; | |
26009 | int arg3 ; | |
26010 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26011 | PyObject * obj1 = 0 ; |
26012 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26013 | char *kwnames[] = { |
26014 | (char *) "self",(char *) "width",(char *) "height", NULL | |
26015 | }; | |
26016 | ||
994141e6 | 26017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26020 | { | |
26021 | arg2 = (int)(SWIG_As_int(obj1)); | |
26022 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26023 | } | |
26024 | { | |
26025 | arg3 = (int)(SWIG_As_int(obj2)); | |
26026 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26027 | } | |
d14a1e28 RD |
26028 | { |
26029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26030 | (arg1)->SetClientSize(arg2,arg3); | |
26031 | ||
26032 | wxPyEndAllowThreads(__tstate); | |
26033 | if (PyErr_Occurred()) SWIG_fail; | |
26034 | } | |
26035 | Py_INCREF(Py_None); resultobj = Py_None; | |
26036 | return resultobj; | |
26037 | fail: | |
26038 | return NULL; | |
26039 | } | |
26040 | ||
26041 | ||
c32bde28 | 26042 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26043 | PyObject *resultobj; |
26044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26045 | wxRect *arg2 = 0 ; | |
26046 | wxRect temp2 ; | |
26047 | PyObject * obj0 = 0 ; | |
26048 | PyObject * obj1 = 0 ; | |
26049 | char *kwnames[] = { | |
26050 | (char *) "self",(char *) "rect", NULL | |
26051 | }; | |
26052 | ||
26053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26056 | { |
26057 | arg2 = &temp2; | |
26058 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26059 | } | |
26060 | { | |
26061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26062 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
26063 | ||
26064 | wxPyEndAllowThreads(__tstate); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | } | |
26067 | Py_INCREF(Py_None); resultobj = Py_None; | |
26068 | return resultobj; | |
26069 | fail: | |
26070 | return NULL; | |
26071 | } | |
26072 | ||
26073 | ||
c32bde28 | 26074 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26075 | PyObject *resultobj; |
26076 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26077 | wxPoint result; | |
26078 | PyObject * obj0 = 0 ; | |
26079 | char *kwnames[] = { | |
26080 | (char *) "self", NULL | |
26081 | }; | |
26082 | ||
26083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26086 | { |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 26088 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
26089 | |
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
26093 | { | |
26094 | wxPoint * resultptr; | |
093d3ff1 | 26095 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 26096 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26097 | } |
26098 | return resultobj; | |
26099 | fail: | |
26100 | return NULL; | |
26101 | } | |
26102 | ||
26103 | ||
c32bde28 | 26104 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26105 | PyObject *resultobj; |
26106 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26107 | int *arg2 = (int *) 0 ; | |
26108 | int *arg3 = (int *) 0 ; | |
26109 | int temp2 ; | |
c32bde28 | 26110 | int res2 = 0 ; |
d14a1e28 | 26111 | int temp3 ; |
c32bde28 | 26112 | int res3 = 0 ; |
d14a1e28 RD |
26113 | PyObject * obj0 = 0 ; |
26114 | char *kwnames[] = { | |
26115 | (char *) "self", NULL | |
26116 | }; | |
26117 | ||
c32bde28 RD |
26118 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26119 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 26120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26123 | { |
26124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 26125 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
26126 | |
26127 | wxPyEndAllowThreads(__tstate); | |
26128 | if (PyErr_Occurred()) SWIG_fail; | |
26129 | } | |
26130 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26131 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26132 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26133 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26134 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
26135 | return resultobj; |
26136 | fail: | |
26137 | return NULL; | |
26138 | } | |
26139 | ||
26140 | ||
c32bde28 | 26141 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26142 | PyObject *resultobj; |
26143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26144 | wxSize result; | |
26145 | PyObject * obj0 = 0 ; | |
26146 | char *kwnames[] = { | |
26147 | (char *) "self", NULL | |
26148 | }; | |
26149 | ||
26150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26153 | { |
26154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26155 | result = ((wxWindow const *)arg1)->GetSize(); | |
26156 | ||
26157 | wxPyEndAllowThreads(__tstate); | |
26158 | if (PyErr_Occurred()) SWIG_fail; | |
26159 | } | |
26160 | { | |
26161 | wxSize * resultptr; | |
093d3ff1 | 26162 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 26163 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
26164 | } |
26165 | return resultobj; | |
26166 | fail: | |
26167 | return NULL; | |
26168 | } | |
26169 | ||
26170 | ||
c32bde28 | 26171 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26172 | PyObject *resultobj; |
26173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26174 | int *arg2 = (int *) 0 ; | |
26175 | int *arg3 = (int *) 0 ; | |
26176 | int temp2 ; | |
c32bde28 | 26177 | int res2 = 0 ; |
d14a1e28 | 26178 | int temp3 ; |
c32bde28 | 26179 | int res3 = 0 ; |
d14a1e28 RD |
26180 | PyObject * obj0 = 0 ; |
26181 | char *kwnames[] = { | |
26182 | (char *) "self", NULL | |
26183 | }; | |
26184 | ||
c32bde28 RD |
26185 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26186 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 26187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26190 | { |
26191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26192 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
26193 | ||
26194 | wxPyEndAllowThreads(__tstate); | |
26195 | if (PyErr_Occurred()) SWIG_fail; | |
26196 | } | |
26197 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26198 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26199 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26200 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26201 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
26202 | return resultobj; |
26203 | fail: | |
26204 | return NULL; | |
26205 | } | |
26206 | ||
26207 | ||
c32bde28 | 26208 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26209 | PyObject *resultobj; |
26210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26211 | wxRect result; | |
26212 | PyObject * obj0 = 0 ; | |
26213 | char *kwnames[] = { | |
26214 | (char *) "self", NULL | |
26215 | }; | |
26216 | ||
26217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26220 | { |
26221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26222 | result = ((wxWindow const *)arg1)->GetRect(); | |
26223 | ||
26224 | wxPyEndAllowThreads(__tstate); | |
26225 | if (PyErr_Occurred()) SWIG_fail; | |
26226 | } | |
26227 | { | |
26228 | wxRect * resultptr; | |
093d3ff1 | 26229 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 26230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
26231 | } |
26232 | return resultobj; | |
26233 | fail: | |
26234 | return NULL; | |
26235 | } | |
26236 | ||
26237 | ||
c32bde28 | 26238 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26239 | PyObject *resultobj; |
26240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26241 | wxSize result; | |
26242 | PyObject * obj0 = 0 ; | |
26243 | char *kwnames[] = { | |
26244 | (char *) "self", NULL | |
26245 | }; | |
26246 | ||
26247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26250 | { |
26251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26252 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
26253 | ||
26254 | wxPyEndAllowThreads(__tstate); | |
26255 | if (PyErr_Occurred()) SWIG_fail; | |
26256 | } | |
26257 | { | |
26258 | wxSize * resultptr; | |
093d3ff1 | 26259 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 26260 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
26261 | } |
26262 | return resultobj; | |
26263 | fail: | |
26264 | return NULL; | |
26265 | } | |
26266 | ||
26267 | ||
c32bde28 | 26268 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26269 | PyObject *resultobj; |
26270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26271 | int *arg2 = (int *) 0 ; | |
26272 | int *arg3 = (int *) 0 ; | |
26273 | int temp2 ; | |
c32bde28 | 26274 | int res2 = 0 ; |
d14a1e28 | 26275 | int temp3 ; |
c32bde28 | 26276 | int res3 = 0 ; |
d14a1e28 RD |
26277 | PyObject * obj0 = 0 ; |
26278 | char *kwnames[] = { | |
26279 | (char *) "self", NULL | |
26280 | }; | |
26281 | ||
c32bde28 RD |
26282 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26283 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 26284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26287 | { |
26288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26289 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
26290 | ||
26291 | wxPyEndAllowThreads(__tstate); | |
26292 | if (PyErr_Occurred()) SWIG_fail; | |
26293 | } | |
26294 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26295 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26296 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26297 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26298 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
26299 | return resultobj; |
26300 | fail: | |
26301 | return NULL; | |
26302 | } | |
26303 | ||
26304 | ||
c32bde28 | 26305 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26306 | PyObject *resultobj; |
26307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26308 | wxPoint result; | |
26309 | PyObject * obj0 = 0 ; | |
26310 | char *kwnames[] = { | |
26311 | (char *) "self", NULL | |
26312 | }; | |
26313 | ||
26314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26317 | { |
26318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26319 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
26320 | ||
26321 | wxPyEndAllowThreads(__tstate); | |
26322 | if (PyErr_Occurred()) SWIG_fail; | |
26323 | } | |
26324 | { | |
26325 | wxPoint * resultptr; | |
093d3ff1 | 26326 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 26327 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26328 | } |
26329 | return resultobj; | |
26330 | fail: | |
26331 | return NULL; | |
26332 | } | |
26333 | ||
26334 | ||
c32bde28 | 26335 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26336 | PyObject *resultobj; |
26337 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26338 | wxRect result; | |
26339 | PyObject * obj0 = 0 ; | |
26340 | char *kwnames[] = { | |
26341 | (char *) "self", NULL | |
26342 | }; | |
26343 | ||
26344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26347 | { |
26348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26349 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
26350 | ||
26351 | wxPyEndAllowThreads(__tstate); | |
26352 | if (PyErr_Occurred()) SWIG_fail; | |
26353 | } | |
26354 | { | |
26355 | wxRect * resultptr; | |
093d3ff1 | 26356 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 26357 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
26358 | } |
26359 | return resultobj; | |
26360 | fail: | |
26361 | return NULL; | |
26362 | } | |
26363 | ||
26364 | ||
c32bde28 | 26365 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26366 | PyObject *resultobj; |
26367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26368 | wxSize result; | |
26369 | PyObject * obj0 = 0 ; | |
26370 | char *kwnames[] = { | |
26371 | (char *) "self", NULL | |
26372 | }; | |
26373 | ||
26374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26375 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26376 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26377 | { |
26378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26379 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
26380 | ||
26381 | wxPyEndAllowThreads(__tstate); | |
26382 | if (PyErr_Occurred()) SWIG_fail; | |
26383 | } | |
26384 | { | |
26385 | wxSize * resultptr; | |
093d3ff1 | 26386 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 26387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
26388 | } |
26389 | return resultobj; | |
26390 | fail: | |
26391 | return NULL; | |
26392 | } | |
26393 | ||
26394 | ||
c32bde28 | 26395 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26396 | PyObject *resultobj; |
26397 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26398 | int *arg2 = (int *) 0 ; | |
26399 | int *arg3 = (int *) 0 ; | |
26400 | int temp2 ; | |
c32bde28 | 26401 | int res2 = 0 ; |
d14a1e28 | 26402 | int temp3 ; |
c32bde28 | 26403 | int res3 = 0 ; |
d14a1e28 RD |
26404 | PyObject * obj0 = 0 ; |
26405 | char *kwnames[] = { | |
26406 | (char *) "self", NULL | |
26407 | }; | |
26408 | ||
c32bde28 RD |
26409 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
26410 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 26411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26414 | { |
26415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26416 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
26417 | ||
26418 | wxPyEndAllowThreads(__tstate); | |
26419 | if (PyErr_Occurred()) SWIG_fail; | |
26420 | } | |
26421 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
26422 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
26423 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
26424 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
26425 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
26426 | return resultobj; |
26427 | fail: | |
26428 | return NULL; | |
26429 | } | |
26430 | ||
26431 | ||
c32bde28 | 26432 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
dfbb5885 RD |
26433 | PyObject *resultobj; |
26434 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26435 | PyObject * obj0 = 0 ; | |
26436 | char *kwnames[] = { | |
26437 | (char *) "self", NULL | |
26438 | }; | |
26439 | ||
26440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
dfbb5885 RD |
26443 | { |
26444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26445 | (arg1)->InvalidateBestSize(); | |
26446 | ||
26447 | wxPyEndAllowThreads(__tstate); | |
26448 | if (PyErr_Occurred()) SWIG_fail; | |
26449 | } | |
26450 | Py_INCREF(Py_None); resultobj = Py_None; | |
26451 | return resultobj; | |
26452 | fail: | |
26453 | return NULL; | |
26454 | } | |
26455 | ||
26456 | ||
c32bde28 | 26457 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
dfbb5885 RD |
26458 | PyObject *resultobj; |
26459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26460 | wxSize result; | |
26461 | PyObject * obj0 = 0 ; | |
26462 | char *kwnames[] = { | |
26463 | (char *) "self", NULL | |
26464 | }; | |
26465 | ||
26466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
dfbb5885 RD |
26469 | { |
26470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26471 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
26472 | ||
26473 | wxPyEndAllowThreads(__tstate); | |
26474 | if (PyErr_Occurred()) SWIG_fail; | |
26475 | } | |
26476 | { | |
26477 | wxSize * resultptr; | |
093d3ff1 | 26478 | resultptr = new wxSize((wxSize &)(result)); |
dfbb5885 RD |
26479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26480 | } | |
26481 | return resultobj; | |
26482 | fail: | |
26483 | return NULL; | |
26484 | } | |
26485 | ||
26486 | ||
c32bde28 | 26487 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26488 | PyObject *resultobj; |
26489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26490 | wxSize result; | |
26491 | PyObject * obj0 = 0 ; | |
26492 | char *kwnames[] = { | |
26493 | (char *) "self", NULL | |
26494 | }; | |
26495 | ||
26496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26499 | { |
26500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26501 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
26502 | ||
26503 | wxPyEndAllowThreads(__tstate); | |
26504 | if (PyErr_Occurred()) SWIG_fail; | |
26505 | } | |
26506 | { | |
26507 | wxSize * resultptr; | |
093d3ff1 | 26508 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 26509 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
26510 | } |
26511 | return resultobj; | |
26512 | fail: | |
26513 | return NULL; | |
26514 | } | |
26515 | ||
26516 | ||
c32bde28 | 26517 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26518 | PyObject *resultobj; |
26519 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26520 | int arg2 = (int) wxBOTH ; | |
26521 | PyObject * obj0 = 0 ; | |
994141e6 | 26522 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26523 | char *kwnames[] = { |
26524 | (char *) "self",(char *) "direction", NULL | |
26525 | }; | |
26526 | ||
994141e6 | 26527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 26530 | if (obj1) { |
093d3ff1 RD |
26531 | { |
26532 | arg2 = (int)(SWIG_As_int(obj1)); | |
26533 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26534 | } | |
994141e6 | 26535 | } |
d14a1e28 RD |
26536 | { |
26537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26538 | (arg1)->Center(arg2); | |
26539 | ||
26540 | wxPyEndAllowThreads(__tstate); | |
26541 | if (PyErr_Occurred()) SWIG_fail; | |
26542 | } | |
26543 | Py_INCREF(Py_None); resultobj = Py_None; | |
26544 | return resultobj; | |
26545 | fail: | |
26546 | return NULL; | |
26547 | } | |
26548 | ||
26549 | ||
c32bde28 | 26550 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26551 | PyObject *resultobj; |
26552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26553 | int arg2 = (int) wxBOTH ; | |
26554 | PyObject * obj0 = 0 ; | |
994141e6 | 26555 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26556 | char *kwnames[] = { |
26557 | (char *) "self",(char *) "dir", NULL | |
26558 | }; | |
26559 | ||
994141e6 | 26560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 26563 | if (obj1) { |
093d3ff1 RD |
26564 | { |
26565 | arg2 = (int)(SWIG_As_int(obj1)); | |
26566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26567 | } | |
994141e6 | 26568 | } |
d14a1e28 RD |
26569 | { |
26570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26571 | (arg1)->CenterOnScreen(arg2); | |
26572 | ||
26573 | wxPyEndAllowThreads(__tstate); | |
26574 | if (PyErr_Occurred()) SWIG_fail; | |
26575 | } | |
26576 | Py_INCREF(Py_None); resultobj = Py_None; | |
26577 | return resultobj; | |
26578 | fail: | |
26579 | return NULL; | |
26580 | } | |
26581 | ||
26582 | ||
c32bde28 | 26583 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26584 | PyObject *resultobj; |
26585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26586 | int arg2 = (int) wxBOTH ; | |
26587 | PyObject * obj0 = 0 ; | |
994141e6 | 26588 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26589 | char *kwnames[] = { |
26590 | (char *) "self",(char *) "dir", NULL | |
26591 | }; | |
26592 | ||
994141e6 | 26593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 26596 | if (obj1) { |
093d3ff1 RD |
26597 | { |
26598 | arg2 = (int)(SWIG_As_int(obj1)); | |
26599 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26600 | } | |
994141e6 | 26601 | } |
d14a1e28 RD |
26602 | { |
26603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26604 | (arg1)->CenterOnParent(arg2); | |
26605 | ||
26606 | wxPyEndAllowThreads(__tstate); | |
26607 | if (PyErr_Occurred()) SWIG_fail; | |
26608 | } | |
26609 | Py_INCREF(Py_None); resultobj = Py_None; | |
26610 | return resultobj; | |
26611 | fail: | |
26612 | return NULL; | |
26613 | } | |
26614 | ||
26615 | ||
c32bde28 | 26616 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26617 | PyObject *resultobj; |
26618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26619 | PyObject * obj0 = 0 ; | |
26620 | char *kwnames[] = { | |
26621 | (char *) "self", NULL | |
26622 | }; | |
26623 | ||
26624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26627 | { |
26628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26629 | (arg1)->Fit(); | |
26630 | ||
26631 | wxPyEndAllowThreads(__tstate); | |
26632 | if (PyErr_Occurred()) SWIG_fail; | |
26633 | } | |
26634 | Py_INCREF(Py_None); resultobj = Py_None; | |
26635 | return resultobj; | |
26636 | fail: | |
26637 | return NULL; | |
26638 | } | |
26639 | ||
26640 | ||
c32bde28 | 26641 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26642 | PyObject *resultobj; |
26643 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26644 | PyObject * obj0 = 0 ; | |
26645 | char *kwnames[] = { | |
26646 | (char *) "self", NULL | |
26647 | }; | |
26648 | ||
26649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26652 | { |
26653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26654 | (arg1)->FitInside(); | |
26655 | ||
26656 | wxPyEndAllowThreads(__tstate); | |
26657 | if (PyErr_Occurred()) SWIG_fail; | |
26658 | } | |
26659 | Py_INCREF(Py_None); resultobj = Py_None; | |
26660 | return resultobj; | |
26661 | fail: | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
c32bde28 | 26666 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26667 | PyObject *resultobj; |
26668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26669 | int arg2 ; | |
26670 | int arg3 ; | |
26671 | int arg4 = (int) -1 ; | |
26672 | int arg5 = (int) -1 ; | |
26673 | int arg6 = (int) -1 ; | |
26674 | int arg7 = (int) -1 ; | |
26675 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26676 | PyObject * obj1 = 0 ; |
26677 | PyObject * obj2 = 0 ; | |
26678 | PyObject * obj3 = 0 ; | |
26679 | PyObject * obj4 = 0 ; | |
26680 | PyObject * obj5 = 0 ; | |
26681 | PyObject * obj6 = 0 ; | |
f16ab95d RD |
26682 | char *kwnames[] = { |
26683 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
26684 | }; | |
d14a1e28 | 26685 | |
f16ab95d | 26686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
26687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26689 | { | |
26690 | arg2 = (int)(SWIG_As_int(obj1)); | |
26691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26692 | } | |
26693 | { | |
26694 | arg3 = (int)(SWIG_As_int(obj2)); | |
26695 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26696 | } | |
994141e6 | 26697 | if (obj3) { |
093d3ff1 RD |
26698 | { |
26699 | arg4 = (int)(SWIG_As_int(obj3)); | |
26700 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26701 | } | |
994141e6 RD |
26702 | } |
26703 | if (obj4) { | |
093d3ff1 RD |
26704 | { |
26705 | arg5 = (int)(SWIG_As_int(obj4)); | |
26706 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26707 | } | |
994141e6 RD |
26708 | } |
26709 | if (obj5) { | |
093d3ff1 RD |
26710 | { |
26711 | arg6 = (int)(SWIG_As_int(obj5)); | |
26712 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26713 | } | |
994141e6 RD |
26714 | } |
26715 | if (obj6) { | |
093d3ff1 RD |
26716 | { |
26717 | arg7 = (int)(SWIG_As_int(obj6)); | |
26718 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26719 | } | |
994141e6 | 26720 | } |
d14a1e28 RD |
26721 | { |
26722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26723 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
26724 | ||
26725 | wxPyEndAllowThreads(__tstate); | |
26726 | if (PyErr_Occurred()) SWIG_fail; | |
26727 | } | |
26728 | Py_INCREF(Py_None); resultobj = Py_None; | |
26729 | return resultobj; | |
26730 | fail: | |
26731 | return NULL; | |
26732 | } | |
26733 | ||
26734 | ||
c32bde28 | 26735 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26736 | PyObject *resultobj; |
26737 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
26738 | wxSize *arg2 = 0 ; |
26739 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
26740 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
f16ab95d RD |
26741 | wxSize const &arg4_defvalue = wxDefaultSize ; |
26742 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
26743 | wxSize temp2 ; |
26744 | wxSize temp3 ; | |
f16ab95d | 26745 | wxSize temp4 ; |
d14a1e28 | 26746 | PyObject * obj0 = 0 ; |
994141e6 RD |
26747 | PyObject * obj1 = 0 ; |
26748 | PyObject * obj2 = 0 ; | |
f16ab95d RD |
26749 | PyObject * obj3 = 0 ; |
26750 | char *kwnames[] = { | |
26751 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
26752 | }; | |
d14a1e28 | 26753 | |
f16ab95d | 26754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
26755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
26757 | { |
26758 | arg2 = &temp2; | |
26759 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 | 26760 | } |
908b74cd RD |
26761 | if (obj2) { |
26762 | { | |
26763 | arg3 = &temp3; | |
26764 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
26765 | } | |
994141e6 | 26766 | } |
f16ab95d RD |
26767 | if (obj3) { |
26768 | { | |
26769 | arg4 = &temp4; | |
26770 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26771 | } | |
26772 | } | |
d14a1e28 RD |
26773 | { |
26774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f16ab95d | 26775 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d14a1e28 RD |
26776 | |
26777 | wxPyEndAllowThreads(__tstate); | |
26778 | if (PyErr_Occurred()) SWIG_fail; | |
26779 | } | |
26780 | Py_INCREF(Py_None); resultobj = Py_None; | |
26781 | return resultobj; | |
26782 | fail: | |
26783 | return NULL; | |
26784 | } | |
26785 | ||
26786 | ||
c32bde28 | 26787 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
26788 | PyObject *resultobj; |
26789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
26790 | int arg2 ; |
26791 | int arg3 ; | |
26792 | int arg4 = (int) -1 ; | |
26793 | int arg5 = (int) -1 ; | |
74a57fcd RD |
26794 | PyObject * obj0 = 0 ; |
26795 | PyObject * obj1 = 0 ; | |
26796 | PyObject * obj2 = 0 ; | |
908b74cd RD |
26797 | PyObject * obj3 = 0 ; |
26798 | PyObject * obj4 = 0 ; | |
f16ab95d RD |
26799 | char *kwnames[] = { |
26800 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
26801 | }; | |
74a57fcd | 26802 | |
f16ab95d | 26803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
26804 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26805 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26806 | { | |
26807 | arg2 = (int)(SWIG_As_int(obj1)); | |
26808 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26809 | } | |
26810 | { | |
26811 | arg3 = (int)(SWIG_As_int(obj2)); | |
26812 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26813 | } | |
908b74cd | 26814 | if (obj3) { |
093d3ff1 RD |
26815 | { |
26816 | arg4 = (int)(SWIG_As_int(obj3)); | |
26817 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26818 | } | |
74a57fcd | 26819 | } |
908b74cd | 26820 | if (obj4) { |
093d3ff1 RD |
26821 | { |
26822 | arg5 = (int)(SWIG_As_int(obj4)); | |
26823 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26824 | } | |
74a57fcd RD |
26825 | } |
26826 | { | |
26827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26828 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
74a57fcd RD |
26829 | |
26830 | wxPyEndAllowThreads(__tstate); | |
26831 | if (PyErr_Occurred()) SWIG_fail; | |
26832 | } | |
26833 | Py_INCREF(Py_None); resultobj = Py_None; | |
26834 | return resultobj; | |
26835 | fail: | |
26836 | return NULL; | |
26837 | } | |
26838 | ||
26839 | ||
c32bde28 | 26840 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
f16ab95d RD |
26841 | PyObject *resultobj; |
26842 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26843 | wxSize *arg2 = 0 ; | |
26844 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
26845 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
26846 | wxSize temp2 ; | |
26847 | wxSize temp3 ; | |
26848 | PyObject * obj0 = 0 ; | |
26849 | PyObject * obj1 = 0 ; | |
26850 | PyObject * obj2 = 0 ; | |
26851 | char *kwnames[] = { | |
26852 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
26853 | }; | |
74a57fcd | 26854 | |
f16ab95d | 26855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
f16ab95d RD |
26858 | { |
26859 | arg2 = &temp2; | |
26860 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
74a57fcd | 26861 | } |
f16ab95d | 26862 | if (obj2) { |
74a57fcd | 26863 | { |
f16ab95d RD |
26864 | arg3 = &temp3; |
26865 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
74a57fcd RD |
26866 | } |
26867 | } | |
f16ab95d RD |
26868 | { |
26869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26870 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
26871 | ||
26872 | wxPyEndAllowThreads(__tstate); | |
26873 | if (PyErr_Occurred()) SWIG_fail; | |
74a57fcd | 26874 | } |
f16ab95d RD |
26875 | Py_INCREF(Py_None); resultobj = Py_None; |
26876 | return resultobj; | |
26877 | fail: | |
74a57fcd RD |
26878 | return NULL; |
26879 | } | |
26880 | ||
26881 | ||
c32bde28 | 26882 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26883 | PyObject *resultobj; |
26884 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 26885 | wxSize result; |
d14a1e28 RD |
26886 | PyObject * obj0 = 0 ; |
26887 | char *kwnames[] = { | |
26888 | (char *) "self", NULL | |
26889 | }; | |
26890 | ||
908b74cd | 26891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26894 | { |
26895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26896 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d14a1e28 RD |
26897 | |
26898 | wxPyEndAllowThreads(__tstate); | |
26899 | if (PyErr_Occurred()) SWIG_fail; | |
26900 | } | |
908b74cd RD |
26901 | { |
26902 | wxSize * resultptr; | |
093d3ff1 | 26903 | resultptr = new wxSize((wxSize &)(result)); |
908b74cd RD |
26904 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26905 | } | |
d14a1e28 RD |
26906 | return resultobj; |
26907 | fail: | |
26908 | return NULL; | |
26909 | } | |
26910 | ||
26911 | ||
c32bde28 | 26912 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26913 | PyObject *resultobj; |
26914 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 26915 | wxSize result; |
d14a1e28 RD |
26916 | PyObject * obj0 = 0 ; |
26917 | char *kwnames[] = { | |
26918 | (char *) "self", NULL | |
26919 | }; | |
26920 | ||
908b74cd | 26921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
26922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26924 | { |
26925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 26926 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d14a1e28 RD |
26927 | |
26928 | wxPyEndAllowThreads(__tstate); | |
26929 | if (PyErr_Occurred()) SWIG_fail; | |
26930 | } | |
908b74cd RD |
26931 | { |
26932 | wxSize * resultptr; | |
093d3ff1 | 26933 | resultptr = new wxSize((wxSize &)(result)); |
908b74cd RD |
26934 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
26935 | } | |
d14a1e28 RD |
26936 | return resultobj; |
26937 | fail: | |
26938 | return NULL; | |
26939 | } | |
26940 | ||
26941 | ||
c32bde28 | 26942 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
26943 | PyObject *resultobj; |
26944 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26945 | wxSize *arg2 = 0 ; | |
26946 | wxSize temp2 ; | |
26947 | PyObject * obj0 = 0 ; | |
26948 | PyObject * obj1 = 0 ; | |
26949 | char *kwnames[] = { | |
26950 | (char *) "self",(char *) "minSize", NULL | |
26951 | }; | |
26952 | ||
26953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26954 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26955 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
26956 | { |
26957 | arg2 = &temp2; | |
26958 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26959 | } | |
26960 | { | |
26961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26962 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
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_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
26975 | PyObject *resultobj; |
26976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26977 | wxSize *arg2 = 0 ; | |
26978 | wxSize temp2 ; | |
26979 | PyObject * obj0 = 0 ; | |
26980 | PyObject * obj1 = 0 ; | |
26981 | char *kwnames[] = { | |
26982 | (char *) "self",(char *) "maxSize", NULL | |
26983 | }; | |
26984 | ||
26985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd RD |
26988 | { |
26989 | arg2 = &temp2; | |
26990 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26991 | } | |
26992 | { | |
26993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26994 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
26995 | ||
26996 | wxPyEndAllowThreads(__tstate); | |
26997 | if (PyErr_Occurred()) SWIG_fail; | |
26998 | } | |
26999 | Py_INCREF(Py_None); resultobj = Py_None; | |
27000 | return resultobj; | |
27001 | fail: | |
27002 | return NULL; | |
27003 | } | |
27004 | ||
27005 | ||
c32bde28 | 27006 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27007 | PyObject *resultobj; |
27008 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27009 | int result; | |
27010 | PyObject * obj0 = 0 ; | |
27011 | char *kwnames[] = { | |
27012 | (char *) "self", NULL | |
27013 | }; | |
27014 | ||
908b74cd | 27015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27018 | { |
27019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 27020 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d14a1e28 RD |
27021 | |
27022 | wxPyEndAllowThreads(__tstate); | |
27023 | if (PyErr_Occurred()) SWIG_fail; | |
27024 | } | |
093d3ff1 RD |
27025 | { |
27026 | resultobj = SWIG_From_int((int)(result)); | |
27027 | } | |
d14a1e28 RD |
27028 | return resultobj; |
27029 | fail: | |
27030 | return NULL; | |
27031 | } | |
27032 | ||
27033 | ||
c32bde28 | 27034 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27035 | PyObject *resultobj; |
27036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27037 | int result; | |
27038 | PyObject * obj0 = 0 ; | |
27039 | char *kwnames[] = { | |
27040 | (char *) "self", NULL | |
27041 | }; | |
27042 | ||
908b74cd | 27043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27046 | { |
27047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 27048 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d14a1e28 RD |
27049 | |
27050 | wxPyEndAllowThreads(__tstate); | |
27051 | if (PyErr_Occurred()) SWIG_fail; | |
27052 | } | |
093d3ff1 RD |
27053 | { |
27054 | resultobj = SWIG_From_int((int)(result)); | |
27055 | } | |
d14a1e28 RD |
27056 | return resultobj; |
27057 | fail: | |
27058 | return NULL; | |
27059 | } | |
27060 | ||
27061 | ||
c32bde28 | 27062 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27063 | PyObject *resultobj; |
27064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 27065 | int result; |
d14a1e28 RD |
27066 | PyObject * obj0 = 0 ; |
27067 | char *kwnames[] = { | |
27068 | (char *) "self", NULL | |
27069 | }; | |
27070 | ||
908b74cd | 27071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27074 | { |
27075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 27076 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d14a1e28 RD |
27077 | |
27078 | wxPyEndAllowThreads(__tstate); | |
27079 | if (PyErr_Occurred()) SWIG_fail; | |
27080 | } | |
093d3ff1 RD |
27081 | { |
27082 | resultobj = SWIG_From_int((int)(result)); | |
27083 | } | |
d14a1e28 RD |
27084 | return resultobj; |
27085 | fail: | |
27086 | return NULL; | |
27087 | } | |
27088 | ||
27089 | ||
c32bde28 | 27090 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
27091 | PyObject *resultobj; |
27092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 27093 | int result; |
74a57fcd RD |
27094 | PyObject * obj0 = 0 ; |
27095 | char *kwnames[] = { | |
27096 | (char *) "self", NULL | |
27097 | }; | |
27098 | ||
908b74cd | 27099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
27102 | { |
27103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 27104 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
74a57fcd RD |
27105 | |
27106 | wxPyEndAllowThreads(__tstate); | |
27107 | if (PyErr_Occurred()) SWIG_fail; | |
27108 | } | |
093d3ff1 RD |
27109 | { |
27110 | resultobj = SWIG_From_int((int)(result)); | |
27111 | } | |
74a57fcd RD |
27112 | return resultobj; |
27113 | fail: | |
27114 | return NULL; | |
27115 | } | |
27116 | ||
27117 | ||
c32bde28 | 27118 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27119 | PyObject *resultobj; |
27120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27121 | wxSize *arg2 = 0 ; | |
27122 | wxSize temp2 ; | |
27123 | PyObject * obj0 = 0 ; | |
27124 | PyObject * obj1 = 0 ; | |
27125 | char *kwnames[] = { | |
27126 | (char *) "self",(char *) "size", NULL | |
27127 | }; | |
27128 | ||
27129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27132 | { |
27133 | arg2 = &temp2; | |
27134 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
27135 | } | |
27136 | { | |
27137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27138 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
27139 | ||
27140 | wxPyEndAllowThreads(__tstate); | |
27141 | if (PyErr_Occurred()) SWIG_fail; | |
27142 | } | |
27143 | Py_INCREF(Py_None); resultobj = Py_None; | |
27144 | return resultobj; | |
27145 | fail: | |
27146 | return NULL; | |
27147 | } | |
27148 | ||
27149 | ||
c32bde28 | 27150 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27151 | PyObject *resultobj; |
27152 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27153 | int arg2 ; | |
27154 | int arg3 ; | |
27155 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27156 | PyObject * obj1 = 0 ; |
27157 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27158 | char *kwnames[] = { |
27159 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27160 | }; | |
27161 | ||
994141e6 | 27162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27165 | { | |
27166 | arg2 = (int)(SWIG_As_int(obj1)); | |
27167 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27168 | } | |
27169 | { | |
27170 | arg3 = (int)(SWIG_As_int(obj2)); | |
27171 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27172 | } | |
d14a1e28 RD |
27173 | { |
27174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27175 | (arg1)->SetVirtualSize(arg2,arg3); | |
27176 | ||
27177 | wxPyEndAllowThreads(__tstate); | |
27178 | if (PyErr_Occurred()) SWIG_fail; | |
27179 | } | |
27180 | Py_INCREF(Py_None); resultobj = Py_None; | |
27181 | return resultobj; | |
27182 | fail: | |
27183 | return NULL; | |
27184 | } | |
27185 | ||
27186 | ||
c32bde28 | 27187 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27188 | PyObject *resultobj; |
27189 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27190 | wxSize result; | |
27191 | PyObject * obj0 = 0 ; | |
27192 | char *kwnames[] = { | |
27193 | (char *) "self", NULL | |
27194 | }; | |
27195 | ||
27196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27199 | { |
27200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27201 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
27202 | ||
27203 | wxPyEndAllowThreads(__tstate); | |
27204 | if (PyErr_Occurred()) SWIG_fail; | |
27205 | } | |
27206 | { | |
27207 | wxSize * resultptr; | |
093d3ff1 | 27208 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 27209 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
27210 | } |
27211 | return resultobj; | |
27212 | fail: | |
27213 | return NULL; | |
27214 | } | |
27215 | ||
27216 | ||
c32bde28 | 27217 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27218 | PyObject *resultobj; |
27219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27220 | int *arg2 = (int *) 0 ; | |
27221 | int *arg3 = (int *) 0 ; | |
27222 | int temp2 ; | |
c32bde28 | 27223 | int res2 = 0 ; |
d14a1e28 | 27224 | int temp3 ; |
c32bde28 | 27225 | int res3 = 0 ; |
d14a1e28 RD |
27226 | PyObject * obj0 = 0 ; |
27227 | char *kwnames[] = { | |
27228 | (char *) "self", NULL | |
27229 | }; | |
27230 | ||
c32bde28 RD |
27231 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
27232 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 27233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
27234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27236 | { |
27237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27238 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
27239 | ||
27240 | wxPyEndAllowThreads(__tstate); | |
27241 | if (PyErr_Occurred()) SWIG_fail; | |
27242 | } | |
27243 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27244 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27245 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27246 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27247 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
27248 | return resultobj; |
27249 | fail: | |
27250 | return NULL; | |
27251 | } | |
27252 | ||
27253 | ||
c32bde28 | 27254 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27255 | PyObject *resultobj; |
27256 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27257 | wxSize result; | |
27258 | PyObject * obj0 = 0 ; | |
27259 | char *kwnames[] = { | |
27260 | (char *) "self", NULL | |
27261 | }; | |
27262 | ||
27263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27266 | { |
27267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27268 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
27269 | ||
27270 | wxPyEndAllowThreads(__tstate); | |
27271 | if (PyErr_Occurred()) SWIG_fail; | |
27272 | } | |
27273 | { | |
27274 | wxSize * resultptr; | |
093d3ff1 | 27275 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 27276 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
27277 | } |
27278 | return resultobj; | |
27279 | fail: | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
c32bde28 | 27284 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27285 | PyObject *resultobj; |
27286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 27287 | bool arg2 = (bool) true ; |
d14a1e28 RD |
27288 | bool result; |
27289 | PyObject * obj0 = 0 ; | |
27290 | PyObject * obj1 = 0 ; | |
27291 | char *kwnames[] = { | |
27292 | (char *) "self",(char *) "show", NULL | |
27293 | }; | |
27294 | ||
27295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 27298 | if (obj1) { |
093d3ff1 RD |
27299 | { |
27300 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27302 | } | |
d14a1e28 RD |
27303 | } |
27304 | { | |
27305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27306 | result = (bool)(arg1)->Show(arg2); | |
27307 | ||
27308 | wxPyEndAllowThreads(__tstate); | |
27309 | if (PyErr_Occurred()) SWIG_fail; | |
27310 | } | |
4f89f6a3 RD |
27311 | { |
27312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27313 | } | |
d14a1e28 RD |
27314 | return resultobj; |
27315 | fail: | |
27316 | return NULL; | |
27317 | } | |
27318 | ||
27319 | ||
c32bde28 | 27320 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27321 | PyObject *resultobj; |
27322 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27323 | bool result; | |
27324 | PyObject * obj0 = 0 ; | |
27325 | char *kwnames[] = { | |
27326 | (char *) "self", NULL | |
27327 | }; | |
27328 | ||
27329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27332 | { |
27333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27334 | result = (bool)(arg1)->Hide(); | |
27335 | ||
27336 | wxPyEndAllowThreads(__tstate); | |
27337 | if (PyErr_Occurred()) SWIG_fail; | |
27338 | } | |
4f89f6a3 RD |
27339 | { |
27340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27341 | } | |
d14a1e28 RD |
27342 | return resultobj; |
27343 | fail: | |
27344 | return NULL; | |
27345 | } | |
27346 | ||
27347 | ||
c32bde28 | 27348 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27349 | PyObject *resultobj; |
27350 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 27351 | bool arg2 = (bool) true ; |
d14a1e28 RD |
27352 | bool result; |
27353 | PyObject * obj0 = 0 ; | |
27354 | PyObject * obj1 = 0 ; | |
27355 | char *kwnames[] = { | |
27356 | (char *) "self",(char *) "enable", NULL | |
27357 | }; | |
27358 | ||
27359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 27362 | if (obj1) { |
093d3ff1 RD |
27363 | { |
27364 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27365 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27366 | } | |
d14a1e28 RD |
27367 | } |
27368 | { | |
27369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27370 | result = (bool)(arg1)->Enable(arg2); | |
27371 | ||
27372 | wxPyEndAllowThreads(__tstate); | |
27373 | if (PyErr_Occurred()) SWIG_fail; | |
27374 | } | |
4f89f6a3 RD |
27375 | { |
27376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27377 | } | |
d14a1e28 RD |
27378 | return resultobj; |
27379 | fail: | |
27380 | return NULL; | |
27381 | } | |
27382 | ||
27383 | ||
c32bde28 | 27384 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27385 | PyObject *resultobj; |
27386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27387 | bool result; | |
27388 | PyObject * obj0 = 0 ; | |
27389 | char *kwnames[] = { | |
27390 | (char *) "self", NULL | |
27391 | }; | |
27392 | ||
27393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27396 | { |
27397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27398 | result = (bool)(arg1)->Disable(); | |
27399 | ||
27400 | wxPyEndAllowThreads(__tstate); | |
27401 | if (PyErr_Occurred()) SWIG_fail; | |
27402 | } | |
4f89f6a3 RD |
27403 | { |
27404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27405 | } | |
d14a1e28 RD |
27406 | return resultobj; |
27407 | fail: | |
27408 | return NULL; | |
27409 | } | |
27410 | ||
27411 | ||
c32bde28 | 27412 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27413 | PyObject *resultobj; |
27414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27415 | bool result; | |
27416 | PyObject * obj0 = 0 ; | |
27417 | char *kwnames[] = { | |
27418 | (char *) "self", NULL | |
27419 | }; | |
27420 | ||
27421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27424 | { |
27425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27426 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
27427 | ||
27428 | wxPyEndAllowThreads(__tstate); | |
27429 | if (PyErr_Occurred()) SWIG_fail; | |
27430 | } | |
4f89f6a3 RD |
27431 | { |
27432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27433 | } | |
d14a1e28 RD |
27434 | return resultobj; |
27435 | fail: | |
27436 | return NULL; | |
27437 | } | |
27438 | ||
27439 | ||
c32bde28 | 27440 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27441 | PyObject *resultobj; |
27442 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27443 | bool result; | |
27444 | PyObject * obj0 = 0 ; | |
27445 | char *kwnames[] = { | |
27446 | (char *) "self", NULL | |
27447 | }; | |
27448 | ||
27449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27452 | { |
27453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27454 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
27455 | ||
27456 | wxPyEndAllowThreads(__tstate); | |
27457 | if (PyErr_Occurred()) SWIG_fail; | |
27458 | } | |
4f89f6a3 RD |
27459 | { |
27460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27461 | } | |
d14a1e28 RD |
27462 | return resultobj; |
27463 | fail: | |
27464 | return NULL; | |
27465 | } | |
27466 | ||
27467 | ||
c32bde28 | 27468 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27469 | PyObject *resultobj; |
27470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27471 | long arg2 ; | |
27472 | PyObject * obj0 = 0 ; | |
994141e6 | 27473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27474 | char *kwnames[] = { |
27475 | (char *) "self",(char *) "style", NULL | |
27476 | }; | |
27477 | ||
994141e6 | 27478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27481 | { | |
27482 | arg2 = (long)(SWIG_As_long(obj1)); | |
27483 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27484 | } | |
d14a1e28 RD |
27485 | { |
27486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27487 | (arg1)->SetWindowStyleFlag(arg2); | |
27488 | ||
27489 | wxPyEndAllowThreads(__tstate); | |
27490 | if (PyErr_Occurred()) SWIG_fail; | |
27491 | } | |
27492 | Py_INCREF(Py_None); resultobj = Py_None; | |
27493 | return resultobj; | |
27494 | fail: | |
27495 | return NULL; | |
27496 | } | |
27497 | ||
27498 | ||
c32bde28 | 27499 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27500 | PyObject *resultobj; |
27501 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27502 | long result; | |
27503 | PyObject * obj0 = 0 ; | |
27504 | char *kwnames[] = { | |
27505 | (char *) "self", NULL | |
27506 | }; | |
27507 | ||
27508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27511 | { |
27512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27513 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
27514 | ||
27515 | wxPyEndAllowThreads(__tstate); | |
27516 | if (PyErr_Occurred()) SWIG_fail; | |
27517 | } | |
093d3ff1 RD |
27518 | { |
27519 | resultobj = SWIG_From_long((long)(result)); | |
27520 | } | |
d14a1e28 RD |
27521 | return resultobj; |
27522 | fail: | |
27523 | return NULL; | |
27524 | } | |
27525 | ||
27526 | ||
c32bde28 | 27527 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27528 | PyObject *resultobj; |
27529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27530 | int arg2 ; | |
27531 | bool result; | |
27532 | PyObject * obj0 = 0 ; | |
994141e6 | 27533 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27534 | char *kwnames[] = { |
27535 | (char *) "self",(char *) "flag", NULL | |
27536 | }; | |
27537 | ||
994141e6 | 27538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27541 | { | |
27542 | arg2 = (int)(SWIG_As_int(obj1)); | |
27543 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27544 | } | |
d14a1e28 RD |
27545 | { |
27546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27547 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
27548 | ||
27549 | wxPyEndAllowThreads(__tstate); | |
27550 | if (PyErr_Occurred()) SWIG_fail; | |
27551 | } | |
4f89f6a3 RD |
27552 | { |
27553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27554 | } | |
d14a1e28 RD |
27555 | return resultobj; |
27556 | fail: | |
27557 | return NULL; | |
27558 | } | |
27559 | ||
27560 | ||
c32bde28 | 27561 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27562 | PyObject *resultobj; |
27563 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27564 | bool result; | |
27565 | PyObject * obj0 = 0 ; | |
27566 | char *kwnames[] = { | |
27567 | (char *) "self", NULL | |
27568 | }; | |
27569 | ||
27570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27573 | { |
27574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27575 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
27576 | ||
27577 | wxPyEndAllowThreads(__tstate); | |
27578 | if (PyErr_Occurred()) SWIG_fail; | |
27579 | } | |
4f89f6a3 RD |
27580 | { |
27581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27582 | } | |
d14a1e28 RD |
27583 | return resultobj; |
27584 | fail: | |
27585 | return NULL; | |
27586 | } | |
27587 | ||
27588 | ||
c32bde28 | 27589 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27590 | PyObject *resultobj; |
27591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27592 | long arg2 ; | |
27593 | PyObject * obj0 = 0 ; | |
994141e6 | 27594 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27595 | char *kwnames[] = { |
27596 | (char *) "self",(char *) "exStyle", NULL | |
27597 | }; | |
27598 | ||
994141e6 | 27599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27602 | { | |
27603 | arg2 = (long)(SWIG_As_long(obj1)); | |
27604 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27605 | } | |
d14a1e28 RD |
27606 | { |
27607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27608 | (arg1)->SetExtraStyle(arg2); | |
27609 | ||
27610 | wxPyEndAllowThreads(__tstate); | |
27611 | if (PyErr_Occurred()) SWIG_fail; | |
27612 | } | |
27613 | Py_INCREF(Py_None); resultobj = Py_None; | |
27614 | return resultobj; | |
27615 | fail: | |
27616 | return NULL; | |
27617 | } | |
27618 | ||
27619 | ||
c32bde28 | 27620 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27621 | PyObject *resultobj; |
27622 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27623 | long result; | |
27624 | PyObject * obj0 = 0 ; | |
27625 | char *kwnames[] = { | |
27626 | (char *) "self", NULL | |
27627 | }; | |
27628 | ||
27629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27632 | { |
27633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27634 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
27635 | ||
27636 | wxPyEndAllowThreads(__tstate); | |
27637 | if (PyErr_Occurred()) SWIG_fail; | |
27638 | } | |
093d3ff1 RD |
27639 | { |
27640 | resultobj = SWIG_From_long((long)(result)); | |
27641 | } | |
d14a1e28 RD |
27642 | return resultobj; |
27643 | fail: | |
27644 | return NULL; | |
27645 | } | |
27646 | ||
27647 | ||
c32bde28 | 27648 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27649 | PyObject *resultobj; |
27650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 27651 | bool arg2 = (bool) true ; |
d14a1e28 RD |
27652 | PyObject * obj0 = 0 ; |
27653 | PyObject * obj1 = 0 ; | |
27654 | char *kwnames[] = { | |
27655 | (char *) "self",(char *) "modal", NULL | |
27656 | }; | |
27657 | ||
27658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 27661 | if (obj1) { |
093d3ff1 RD |
27662 | { |
27663 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27664 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27665 | } | |
d14a1e28 RD |
27666 | } |
27667 | { | |
27668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27669 | (arg1)->MakeModal(arg2); | |
27670 | ||
27671 | wxPyEndAllowThreads(__tstate); | |
27672 | if (PyErr_Occurred()) SWIG_fail; | |
27673 | } | |
27674 | Py_INCREF(Py_None); resultobj = Py_None; | |
27675 | return resultobj; | |
27676 | fail: | |
27677 | return NULL; | |
27678 | } | |
27679 | ||
27680 | ||
c32bde28 | 27681 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27682 | PyObject *resultobj; |
27683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27684 | bool arg2 ; | |
27685 | PyObject * obj0 = 0 ; | |
27686 | PyObject * obj1 = 0 ; | |
27687 | char *kwnames[] = { | |
27688 | (char *) "self",(char *) "enableTheme", NULL | |
27689 | }; | |
27690 | ||
27691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27694 | { | |
27695 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27697 | } | |
d14a1e28 RD |
27698 | { |
27699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27700 | (arg1)->SetThemeEnabled(arg2); | |
27701 | ||
27702 | wxPyEndAllowThreads(__tstate); | |
27703 | if (PyErr_Occurred()) SWIG_fail; | |
27704 | } | |
27705 | Py_INCREF(Py_None); resultobj = Py_None; | |
27706 | return resultobj; | |
27707 | fail: | |
27708 | return NULL; | |
27709 | } | |
27710 | ||
27711 | ||
c32bde28 | 27712 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27713 | PyObject *resultobj; |
27714 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27715 | bool result; | |
27716 | PyObject * obj0 = 0 ; | |
27717 | char *kwnames[] = { | |
27718 | (char *) "self", NULL | |
27719 | }; | |
27720 | ||
27721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27722 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27723 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27724 | { |
27725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27726 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
27727 | ||
27728 | wxPyEndAllowThreads(__tstate); | |
27729 | if (PyErr_Occurred()) SWIG_fail; | |
27730 | } | |
4f89f6a3 RD |
27731 | { |
27732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27733 | } | |
d14a1e28 RD |
27734 | return resultobj; |
27735 | fail: | |
27736 | return NULL; | |
27737 | } | |
27738 | ||
27739 | ||
c32bde28 | 27740 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27741 | PyObject *resultobj; |
27742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27743 | PyObject * obj0 = 0 ; | |
27744 | char *kwnames[] = { | |
27745 | (char *) "self", NULL | |
27746 | }; | |
27747 | ||
27748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27751 | { |
27752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27753 | (arg1)->SetFocus(); | |
27754 | ||
27755 | wxPyEndAllowThreads(__tstate); | |
27756 | if (PyErr_Occurred()) SWIG_fail; | |
27757 | } | |
27758 | Py_INCREF(Py_None); resultobj = Py_None; | |
27759 | return resultobj; | |
27760 | fail: | |
27761 | return NULL; | |
27762 | } | |
27763 | ||
27764 | ||
c32bde28 | 27765 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27766 | PyObject *resultobj; |
27767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27768 | PyObject * obj0 = 0 ; | |
27769 | char *kwnames[] = { | |
27770 | (char *) "self", NULL | |
27771 | }; | |
27772 | ||
27773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27774 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27775 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27776 | { |
27777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27778 | (arg1)->SetFocusFromKbd(); | |
27779 | ||
27780 | wxPyEndAllowThreads(__tstate); | |
27781 | if (PyErr_Occurred()) SWIG_fail; | |
27782 | } | |
27783 | Py_INCREF(Py_None); resultobj = Py_None; | |
27784 | return resultobj; | |
27785 | fail: | |
27786 | return NULL; | |
27787 | } | |
27788 | ||
27789 | ||
c32bde28 | 27790 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27791 | PyObject *resultobj; |
27792 | wxWindow *result; | |
27793 | char *kwnames[] = { | |
27794 | NULL | |
27795 | }; | |
27796 | ||
27797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
27798 | { | |
e3b71cb8 | 27799 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
27800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27801 | result = (wxWindow *)wxWindow::FindFocus(); | |
27802 | ||
27803 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27804 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27805 | } |
27806 | { | |
412d302d | 27807 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
27808 | } |
27809 | return resultobj; | |
27810 | fail: | |
27811 | return NULL; | |
27812 | } | |
27813 | ||
27814 | ||
c32bde28 | 27815 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27816 | PyObject *resultobj; |
27817 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27818 | bool result; | |
27819 | PyObject * obj0 = 0 ; | |
27820 | char *kwnames[] = { | |
27821 | (char *) "self", NULL | |
27822 | }; | |
27823 | ||
27824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27827 | { |
27828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27829 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
27830 | ||
27831 | wxPyEndAllowThreads(__tstate); | |
27832 | if (PyErr_Occurred()) SWIG_fail; | |
27833 | } | |
4f89f6a3 RD |
27834 | { |
27835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27836 | } | |
d14a1e28 RD |
27837 | return resultobj; |
27838 | fail: | |
27839 | return NULL; | |
27840 | } | |
27841 | ||
27842 | ||
c32bde28 | 27843 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27844 | PyObject *resultobj; |
27845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27846 | bool result; | |
27847 | PyObject * obj0 = 0 ; | |
27848 | char *kwnames[] = { | |
27849 | (char *) "self", NULL | |
27850 | }; | |
27851 | ||
27852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27855 | { |
27856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27857 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
27858 | ||
27859 | wxPyEndAllowThreads(__tstate); | |
27860 | if (PyErr_Occurred()) SWIG_fail; | |
27861 | } | |
4f89f6a3 RD |
27862 | { |
27863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27864 | } | |
d14a1e28 RD |
27865 | return resultobj; |
27866 | fail: | |
27867 | return NULL; | |
27868 | } | |
27869 | ||
27870 | ||
c32bde28 | 27871 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27872 | PyObject *resultobj; |
27873 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27874 | wxWindow *result; | |
27875 | PyObject * obj0 = 0 ; | |
27876 | char *kwnames[] = { | |
27877 | (char *) "self", NULL | |
27878 | }; | |
27879 | ||
27880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27883 | { |
27884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27885 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
27886 | ||
27887 | wxPyEndAllowThreads(__tstate); | |
27888 | if (PyErr_Occurred()) SWIG_fail; | |
27889 | } | |
27890 | { | |
412d302d | 27891 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
27892 | } |
27893 | return resultobj; | |
27894 | fail: | |
27895 | return NULL; | |
27896 | } | |
27897 | ||
27898 | ||
c32bde28 | 27899 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27900 | PyObject *resultobj; |
27901 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27902 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27903 | wxWindow *result; | |
27904 | PyObject * obj0 = 0 ; | |
27905 | PyObject * obj1 = 0 ; | |
27906 | char *kwnames[] = { | |
27907 | (char *) "self",(char *) "child", NULL | |
27908 | }; | |
27909 | ||
27910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27913 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27914 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27915 | { |
27916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27917 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
27918 | ||
27919 | wxPyEndAllowThreads(__tstate); | |
27920 | if (PyErr_Occurred()) SWIG_fail; | |
27921 | } | |
27922 | { | |
412d302d | 27923 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
27924 | } |
27925 | return resultobj; | |
27926 | fail: | |
27927 | return NULL; | |
27928 | } | |
27929 | ||
27930 | ||
c32bde28 | 27931 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27932 | PyObject *resultobj; |
27933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27934 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27935 | PyObject * obj0 = 0 ; | |
27936 | PyObject * obj1 = 0 ; | |
27937 | char *kwnames[] = { | |
27938 | (char *) "self",(char *) "win", NULL | |
27939 | }; | |
27940 | ||
27941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27942 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27943 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27944 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27946 | { |
27947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27948 | (arg1)->SetTmpDefaultItem(arg2); | |
27949 | ||
27950 | wxPyEndAllowThreads(__tstate); | |
27951 | if (PyErr_Occurred()) SWIG_fail; | |
27952 | } | |
27953 | Py_INCREF(Py_None); resultobj = Py_None; | |
27954 | return resultobj; | |
27955 | fail: | |
27956 | return NULL; | |
27957 | } | |
27958 | ||
27959 | ||
c32bde28 | 27960 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
27961 | PyObject *resultobj; |
27962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27963 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
27964 | bool result; | |
27965 | PyObject * obj0 = 0 ; | |
27966 | PyObject * obj1 = 0 ; | |
27967 | char *kwnames[] = { | |
27968 | (char *) "self",(char *) "flags", NULL | |
27969 | }; | |
27970 | ||
27971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
908b74cd | 27974 | if (obj1) { |
093d3ff1 RD |
27975 | { |
27976 | arg2 = (int)(SWIG_As_int(obj1)); | |
27977 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27978 | } | |
908b74cd RD |
27979 | } |
27980 | { | |
27981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27982 | result = (bool)(arg1)->Navigate(arg2); | |
27983 | ||
27984 | wxPyEndAllowThreads(__tstate); | |
27985 | if (PyErr_Occurred()) SWIG_fail; | |
27986 | } | |
27987 | { | |
27988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27989 | } | |
27990 | return resultobj; | |
27991 | fail: | |
27992 | return NULL; | |
27993 | } | |
27994 | ||
27995 | ||
c32bde28 | 27996 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
7f98d120 RD |
27997 | PyObject *resultobj; |
27998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27999 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28000 | PyObject * obj0 = 0 ; | |
28001 | PyObject * obj1 = 0 ; | |
28002 | char *kwnames[] = { | |
28003 | (char *) "self",(char *) "win", NULL | |
28004 | }; | |
28005 | ||
28006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28009 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7f98d120 RD |
28011 | { |
28012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28013 | (arg1)->MoveAfterInTabOrder(arg2); | |
28014 | ||
28015 | wxPyEndAllowThreads(__tstate); | |
28016 | if (PyErr_Occurred()) SWIG_fail; | |
28017 | } | |
28018 | Py_INCREF(Py_None); resultobj = Py_None; | |
28019 | return resultobj; | |
28020 | fail: | |
28021 | return NULL; | |
28022 | } | |
28023 | ||
28024 | ||
c32bde28 | 28025 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
7f98d120 RD |
28026 | PyObject *resultobj; |
28027 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28028 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28029 | PyObject * obj0 = 0 ; | |
28030 | PyObject * obj1 = 0 ; | |
28031 | char *kwnames[] = { | |
28032 | (char *) "self",(char *) "win", NULL | |
28033 | }; | |
28034 | ||
28035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28038 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7f98d120 RD |
28040 | { |
28041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28042 | (arg1)->MoveBeforeInTabOrder(arg2); | |
28043 | ||
28044 | wxPyEndAllowThreads(__tstate); | |
28045 | if (PyErr_Occurred()) SWIG_fail; | |
28046 | } | |
28047 | Py_INCREF(Py_None); resultobj = Py_None; | |
28048 | return resultobj; | |
28049 | fail: | |
28050 | return NULL; | |
28051 | } | |
28052 | ||
28053 | ||
c32bde28 | 28054 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28055 | PyObject *resultobj; |
28056 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28057 | PyObject *result; | |
28058 | PyObject * obj0 = 0 ; | |
28059 | char *kwnames[] = { | |
28060 | (char *) "self", NULL | |
28061 | }; | |
28062 | ||
28063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28066 | { |
28067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28068 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
28069 | ||
28070 | wxPyEndAllowThreads(__tstate); | |
28071 | if (PyErr_Occurred()) SWIG_fail; | |
28072 | } | |
28073 | resultobj = result; | |
28074 | return resultobj; | |
28075 | fail: | |
28076 | return NULL; | |
28077 | } | |
28078 | ||
28079 | ||
c32bde28 | 28080 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28081 | PyObject *resultobj; |
28082 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28083 | wxWindow *result; | |
28084 | PyObject * obj0 = 0 ; | |
28085 | char *kwnames[] = { | |
28086 | (char *) "self", NULL | |
28087 | }; | |
28088 | ||
28089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28090 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28091 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28092 | { |
28093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28094 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
28095 | ||
28096 | wxPyEndAllowThreads(__tstate); | |
28097 | if (PyErr_Occurred()) SWIG_fail; | |
28098 | } | |
28099 | { | |
412d302d | 28100 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28101 | } |
28102 | return resultobj; | |
28103 | fail: | |
28104 | return NULL; | |
28105 | } | |
28106 | ||
28107 | ||
c32bde28 | 28108 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28109 | PyObject *resultobj; |
28110 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28111 | wxWindow *result; | |
28112 | PyObject * obj0 = 0 ; | |
28113 | char *kwnames[] = { | |
28114 | (char *) "self", NULL | |
28115 | }; | |
28116 | ||
28117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28120 | { |
28121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28122 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
28123 | ||
28124 | wxPyEndAllowThreads(__tstate); | |
28125 | if (PyErr_Occurred()) SWIG_fail; | |
28126 | } | |
28127 | { | |
412d302d | 28128 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28129 | } |
28130 | return resultobj; | |
28131 | fail: | |
28132 | return NULL; | |
28133 | } | |
28134 | ||
28135 | ||
c32bde28 | 28136 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28137 | PyObject *resultobj; |
28138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28139 | bool result; | |
28140 | PyObject * obj0 = 0 ; | |
28141 | char *kwnames[] = { | |
28142 | (char *) "self", NULL | |
28143 | }; | |
28144 | ||
28145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28148 | { |
28149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28150 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
28151 | ||
28152 | wxPyEndAllowThreads(__tstate); | |
28153 | if (PyErr_Occurred()) SWIG_fail; | |
28154 | } | |
4f89f6a3 RD |
28155 | { |
28156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28157 | } | |
d14a1e28 RD |
28158 | return resultobj; |
28159 | fail: | |
28160 | return NULL; | |
28161 | } | |
28162 | ||
28163 | ||
c32bde28 | 28164 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28165 | PyObject *resultobj; |
28166 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28167 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28168 | bool result; | |
28169 | PyObject * obj0 = 0 ; | |
28170 | PyObject * obj1 = 0 ; | |
28171 | char *kwnames[] = { | |
28172 | (char *) "self",(char *) "newParent", NULL | |
28173 | }; | |
28174 | ||
28175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28178 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28179 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28180 | { |
28181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28182 | result = (bool)(arg1)->Reparent(arg2); | |
28183 | ||
28184 | wxPyEndAllowThreads(__tstate); | |
28185 | if (PyErr_Occurred()) SWIG_fail; | |
28186 | } | |
4f89f6a3 RD |
28187 | { |
28188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28189 | } | |
d14a1e28 RD |
28190 | return resultobj; |
28191 | fail: | |
28192 | return NULL; | |
28193 | } | |
28194 | ||
28195 | ||
c32bde28 | 28196 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28197 | PyObject *resultobj; |
28198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28199 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28200 | PyObject * obj0 = 0 ; | |
28201 | PyObject * obj1 = 0 ; | |
28202 | char *kwnames[] = { | |
28203 | (char *) "self",(char *) "child", NULL | |
28204 | }; | |
28205 | ||
28206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28209 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28210 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28211 | { |
28212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28213 | (arg1)->AddChild(arg2); | |
28214 | ||
28215 | wxPyEndAllowThreads(__tstate); | |
28216 | if (PyErr_Occurred()) SWIG_fail; | |
28217 | } | |
28218 | Py_INCREF(Py_None); resultobj = Py_None; | |
28219 | return resultobj; | |
28220 | fail: | |
28221 | return NULL; | |
28222 | } | |
28223 | ||
28224 | ||
c32bde28 | 28225 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28226 | PyObject *resultobj; |
28227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28228 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28229 | PyObject * obj0 = 0 ; | |
28230 | PyObject * obj1 = 0 ; | |
28231 | char *kwnames[] = { | |
28232 | (char *) "self",(char *) "child", NULL | |
28233 | }; | |
28234 | ||
28235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28238 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28239 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28240 | { |
28241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28242 | (arg1)->RemoveChild(arg2); | |
28243 | ||
28244 | wxPyEndAllowThreads(__tstate); | |
28245 | if (PyErr_Occurred()) SWIG_fail; | |
28246 | } | |
28247 | Py_INCREF(Py_None); resultobj = Py_None; | |
28248 | return resultobj; | |
28249 | fail: | |
28250 | return NULL; | |
28251 | } | |
28252 | ||
28253 | ||
c32bde28 | 28254 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28255 | PyObject *resultobj; |
28256 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28257 | long arg2 ; | |
28258 | wxWindow *result; | |
28259 | PyObject * obj0 = 0 ; | |
994141e6 | 28260 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28261 | char *kwnames[] = { |
28262 | (char *) "self",(char *) "winid", NULL | |
28263 | }; | |
28264 | ||
994141e6 | 28265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28268 | { | |
28269 | arg2 = (long)(SWIG_As_long(obj1)); | |
28270 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28271 | } | |
d14a1e28 RD |
28272 | { |
28273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28274 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
28275 | ||
28276 | wxPyEndAllowThreads(__tstate); | |
28277 | if (PyErr_Occurred()) SWIG_fail; | |
28278 | } | |
28279 | { | |
412d302d | 28280 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28281 | } |
28282 | return resultobj; | |
28283 | fail: | |
28284 | return NULL; | |
28285 | } | |
28286 | ||
28287 | ||
c32bde28 | 28288 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28289 | PyObject *resultobj; |
28290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28291 | wxString *arg2 = 0 ; | |
28292 | wxWindow *result; | |
ae8162c8 | 28293 | bool temp2 = false ; |
d14a1e28 RD |
28294 | PyObject * obj0 = 0 ; |
28295 | PyObject * obj1 = 0 ; | |
28296 | char *kwnames[] = { | |
28297 | (char *) "self",(char *) "name", NULL | |
28298 | }; | |
28299 | ||
28300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) 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; | |
d14a1e28 RD |
28303 | { |
28304 | arg2 = wxString_in_helper(obj1); | |
28305 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28306 | temp2 = true; |
d14a1e28 RD |
28307 | } |
28308 | { | |
28309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28310 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
28311 | ||
28312 | wxPyEndAllowThreads(__tstate); | |
28313 | if (PyErr_Occurred()) SWIG_fail; | |
28314 | } | |
28315 | { | |
412d302d | 28316 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28317 | } |
28318 | { | |
28319 | if (temp2) | |
28320 | delete arg2; | |
28321 | } | |
28322 | return resultobj; | |
28323 | fail: | |
28324 | { | |
28325 | if (temp2) | |
28326 | delete arg2; | |
28327 | } | |
28328 | return NULL; | |
28329 | } | |
28330 | ||
28331 | ||
c32bde28 | 28332 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28333 | PyObject *resultobj; |
28334 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28335 | wxEvtHandler *result; | |
28336 | PyObject * obj0 = 0 ; | |
28337 | char *kwnames[] = { | |
28338 | (char *) "self", NULL | |
28339 | }; | |
28340 | ||
28341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28344 | { |
28345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28346 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
28347 | ||
28348 | wxPyEndAllowThreads(__tstate); | |
28349 | if (PyErr_Occurred()) SWIG_fail; | |
28350 | } | |
28351 | { | |
412d302d | 28352 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28353 | } |
28354 | return resultobj; | |
28355 | fail: | |
28356 | return NULL; | |
28357 | } | |
28358 | ||
28359 | ||
c32bde28 | 28360 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28361 | PyObject *resultobj; |
28362 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28363 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28364 | PyObject * obj0 = 0 ; | |
28365 | PyObject * obj1 = 0 ; | |
28366 | char *kwnames[] = { | |
28367 | (char *) "self",(char *) "handler", NULL | |
28368 | }; | |
28369 | ||
28370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28373 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
28374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28375 | { |
28376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28377 | (arg1)->SetEventHandler(arg2); | |
28378 | ||
28379 | wxPyEndAllowThreads(__tstate); | |
28380 | if (PyErr_Occurred()) SWIG_fail; | |
28381 | } | |
28382 | Py_INCREF(Py_None); resultobj = Py_None; | |
28383 | return resultobj; | |
28384 | fail: | |
28385 | return NULL; | |
28386 | } | |
28387 | ||
28388 | ||
c32bde28 | 28389 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28390 | PyObject *resultobj; |
28391 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28392 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28393 | PyObject * obj0 = 0 ; | |
28394 | PyObject * obj1 = 0 ; | |
28395 | char *kwnames[] = { | |
28396 | (char *) "self",(char *) "handler", NULL | |
28397 | }; | |
28398 | ||
28399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28402 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
28403 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28404 | { |
28405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28406 | (arg1)->PushEventHandler(arg2); | |
28407 | ||
28408 | wxPyEndAllowThreads(__tstate); | |
28409 | if (PyErr_Occurred()) SWIG_fail; | |
28410 | } | |
28411 | Py_INCREF(Py_None); resultobj = Py_None; | |
28412 | return resultobj; | |
28413 | fail: | |
28414 | return NULL; | |
28415 | } | |
28416 | ||
28417 | ||
c32bde28 | 28418 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28419 | PyObject *resultobj; |
28420 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 28421 | bool arg2 = (bool) false ; |
d14a1e28 RD |
28422 | wxEvtHandler *result; |
28423 | PyObject * obj0 = 0 ; | |
28424 | PyObject * obj1 = 0 ; | |
28425 | char *kwnames[] = { | |
28426 | (char *) "self",(char *) "deleteHandler", NULL | |
28427 | }; | |
28428 | ||
28429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 28432 | if (obj1) { |
093d3ff1 RD |
28433 | { |
28434 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
28435 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28436 | } | |
d14a1e28 RD |
28437 | } |
28438 | { | |
28439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28440 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
28441 | ||
28442 | wxPyEndAllowThreads(__tstate); | |
28443 | if (PyErr_Occurred()) SWIG_fail; | |
28444 | } | |
28445 | { | |
412d302d | 28446 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28447 | } |
28448 | return resultobj; | |
28449 | fail: | |
28450 | return NULL; | |
28451 | } | |
28452 | ||
28453 | ||
c32bde28 | 28454 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28455 | PyObject *resultobj; |
28456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28457 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28458 | bool result; | |
28459 | PyObject * obj0 = 0 ; | |
28460 | PyObject * obj1 = 0 ; | |
28461 | char *kwnames[] = { | |
28462 | (char *) "self",(char *) "handler", NULL | |
28463 | }; | |
28464 | ||
28465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28468 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
28469 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28470 | { |
28471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28472 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
28473 | ||
28474 | wxPyEndAllowThreads(__tstate); | |
28475 | if (PyErr_Occurred()) SWIG_fail; | |
28476 | } | |
4f89f6a3 RD |
28477 | { |
28478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28479 | } | |
d14a1e28 RD |
28480 | return resultobj; |
28481 | fail: | |
28482 | return NULL; | |
28483 | } | |
28484 | ||
28485 | ||
c32bde28 | 28486 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28487 | PyObject *resultobj; |
28488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28489 | wxValidator *arg2 = 0 ; | |
28490 | PyObject * obj0 = 0 ; | |
28491 | PyObject * obj1 = 0 ; | |
28492 | char *kwnames[] = { | |
28493 | (char *) "self",(char *) "validator", NULL | |
28494 | }; | |
28495 | ||
28496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28499 | { | |
28500 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28501 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28502 | if (arg2 == NULL) { | |
28503 | SWIG_null_ref("wxValidator"); | |
28504 | } | |
28505 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28506 | } |
28507 | { | |
28508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28509 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
28510 | ||
28511 | wxPyEndAllowThreads(__tstate); | |
28512 | if (PyErr_Occurred()) SWIG_fail; | |
28513 | } | |
28514 | Py_INCREF(Py_None); resultobj = Py_None; | |
28515 | return resultobj; | |
28516 | fail: | |
28517 | return NULL; | |
28518 | } | |
28519 | ||
28520 | ||
c32bde28 | 28521 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28522 | PyObject *resultobj; |
28523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28524 | wxValidator *result; | |
28525 | PyObject * obj0 = 0 ; | |
28526 | char *kwnames[] = { | |
28527 | (char *) "self", NULL | |
28528 | }; | |
28529 | ||
28530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28533 | { |
28534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28535 | result = (wxValidator *)(arg1)->GetValidator(); | |
28536 | ||
28537 | wxPyEndAllowThreads(__tstate); | |
28538 | if (PyErr_Occurred()) SWIG_fail; | |
28539 | } | |
28540 | { | |
412d302d | 28541 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28542 | } |
28543 | return resultobj; | |
28544 | fail: | |
28545 | return NULL; | |
28546 | } | |
28547 | ||
28548 | ||
c32bde28 | 28549 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
28550 | PyObject *resultobj; |
28551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28552 | bool result; | |
28553 | PyObject * obj0 = 0 ; | |
28554 | char *kwnames[] = { | |
28555 | (char *) "self", NULL | |
28556 | }; | |
28557 | ||
28558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
28561 | { |
28562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28563 | result = (bool)(arg1)->Validate(); | |
28564 | ||
28565 | wxPyEndAllowThreads(__tstate); | |
28566 | if (PyErr_Occurred()) SWIG_fail; | |
28567 | } | |
28568 | { | |
28569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28570 | } | |
28571 | return resultobj; | |
28572 | fail: | |
28573 | return NULL; | |
28574 | } | |
28575 | ||
28576 | ||
c32bde28 | 28577 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
28578 | PyObject *resultobj; |
28579 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28580 | bool result; | |
28581 | PyObject * obj0 = 0 ; | |
28582 | char *kwnames[] = { | |
28583 | (char *) "self", NULL | |
28584 | }; | |
28585 | ||
28586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
28589 | { |
28590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28591 | result = (bool)(arg1)->TransferDataToWindow(); | |
28592 | ||
28593 | wxPyEndAllowThreads(__tstate); | |
28594 | if (PyErr_Occurred()) SWIG_fail; | |
28595 | } | |
28596 | { | |
28597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28598 | } | |
28599 | return resultobj; | |
28600 | fail: | |
28601 | return NULL; | |
28602 | } | |
28603 | ||
28604 | ||
c32bde28 | 28605 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
28606 | PyObject *resultobj; |
28607 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28608 | bool result; | |
28609 | PyObject * obj0 = 0 ; | |
28610 | char *kwnames[] = { | |
28611 | (char *) "self", NULL | |
28612 | }; | |
28613 | ||
28614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
28617 | { |
28618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28619 | result = (bool)(arg1)->TransferDataFromWindow(); | |
28620 | ||
28621 | wxPyEndAllowThreads(__tstate); | |
28622 | if (PyErr_Occurred()) SWIG_fail; | |
28623 | } | |
28624 | { | |
28625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28626 | } | |
28627 | return resultobj; | |
28628 | fail: | |
28629 | return NULL; | |
28630 | } | |
28631 | ||
28632 | ||
c32bde28 | 28633 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
28634 | PyObject *resultobj; |
28635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28636 | PyObject * obj0 = 0 ; | |
28637 | char *kwnames[] = { | |
28638 | (char *) "self", NULL | |
28639 | }; | |
28640 | ||
28641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
28644 | { |
28645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28646 | (arg1)->InitDialog(); | |
28647 | ||
28648 | wxPyEndAllowThreads(__tstate); | |
28649 | if (PyErr_Occurred()) SWIG_fail; | |
28650 | } | |
28651 | Py_INCREF(Py_None); resultobj = Py_None; | |
28652 | return resultobj; | |
28653 | fail: | |
28654 | return NULL; | |
28655 | } | |
28656 | ||
28657 | ||
c32bde28 | 28658 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28659 | PyObject *resultobj; |
28660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28661 | wxAcceleratorTable *arg2 = 0 ; | |
28662 | PyObject * obj0 = 0 ; | |
28663 | PyObject * obj1 = 0 ; | |
28664 | char *kwnames[] = { | |
28665 | (char *) "self",(char *) "accel", NULL | |
28666 | }; | |
28667 | ||
28668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28671 | { | |
28672 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0); | |
28673 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28674 | if (arg2 == NULL) { | |
28675 | SWIG_null_ref("wxAcceleratorTable"); | |
28676 | } | |
28677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28678 | } |
28679 | { | |
28680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28681 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
28682 | ||
28683 | wxPyEndAllowThreads(__tstate); | |
28684 | if (PyErr_Occurred()) SWIG_fail; | |
28685 | } | |
28686 | Py_INCREF(Py_None); resultobj = Py_None; | |
28687 | return resultobj; | |
28688 | fail: | |
28689 | return NULL; | |
28690 | } | |
28691 | ||
28692 | ||
c32bde28 | 28693 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28694 | PyObject *resultobj; |
28695 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28696 | wxAcceleratorTable *result; | |
28697 | PyObject * obj0 = 0 ; | |
28698 | char *kwnames[] = { | |
28699 | (char *) "self", NULL | |
28700 | }; | |
28701 | ||
28702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28705 | { |
28706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28707 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
28708 | ||
28709 | wxPyEndAllowThreads(__tstate); | |
28710 | if (PyErr_Occurred()) SWIG_fail; | |
28711 | } | |
15afbcd0 | 28712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
28713 | return resultobj; |
28714 | fail: | |
28715 | return NULL; | |
28716 | } | |
28717 | ||
28718 | ||
c32bde28 | 28719 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28720 | PyObject *resultobj; |
28721 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28722 | int arg2 ; | |
28723 | int arg3 ; | |
28724 | int arg4 ; | |
28725 | bool result; | |
28726 | PyObject * obj0 = 0 ; | |
994141e6 RD |
28727 | PyObject * obj1 = 0 ; |
28728 | PyObject * obj2 = 0 ; | |
28729 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
28730 | char *kwnames[] = { |
28731 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
28732 | }; | |
28733 | ||
994141e6 | 28734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
28735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28737 | { | |
28738 | arg2 = (int)(SWIG_As_int(obj1)); | |
28739 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28740 | } | |
28741 | { | |
28742 | arg3 = (int)(SWIG_As_int(obj2)); | |
28743 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28744 | } | |
28745 | { | |
28746 | arg4 = (int)(SWIG_As_int(obj3)); | |
28747 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28748 | } | |
d14a1e28 RD |
28749 | { |
28750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28751 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
28752 | ||
28753 | wxPyEndAllowThreads(__tstate); | |
28754 | if (PyErr_Occurred()) SWIG_fail; | |
28755 | } | |
4f89f6a3 RD |
28756 | { |
28757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28758 | } | |
d14a1e28 RD |
28759 | return resultobj; |
28760 | fail: | |
28761 | return NULL; | |
28762 | } | |
28763 | ||
28764 | ||
c32bde28 | 28765 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28766 | PyObject *resultobj; |
28767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28768 | int arg2 ; | |
28769 | bool result; | |
28770 | PyObject * obj0 = 0 ; | |
994141e6 | 28771 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28772 | char *kwnames[] = { |
28773 | (char *) "self",(char *) "hotkeyId", NULL | |
28774 | }; | |
28775 | ||
994141e6 | 28776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28777 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28778 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28779 | { | |
28780 | arg2 = (int)(SWIG_As_int(obj1)); | |
28781 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28782 | } | |
d14a1e28 RD |
28783 | { |
28784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28785 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
28786 | ||
28787 | wxPyEndAllowThreads(__tstate); | |
28788 | if (PyErr_Occurred()) SWIG_fail; | |
28789 | } | |
4f89f6a3 RD |
28790 | { |
28791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28792 | } | |
d14a1e28 RD |
28793 | return resultobj; |
28794 | fail: | |
28795 | return NULL; | |
28796 | } | |
28797 | ||
28798 | ||
c32bde28 | 28799 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28800 | PyObject *resultobj; |
28801 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28802 | wxPoint *arg2 = 0 ; | |
28803 | wxPoint result; | |
28804 | wxPoint temp2 ; | |
28805 | PyObject * obj0 = 0 ; | |
28806 | PyObject * obj1 = 0 ; | |
28807 | char *kwnames[] = { | |
28808 | (char *) "self",(char *) "pt", NULL | |
28809 | }; | |
28810 | ||
28811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28814 | { |
28815 | arg2 = &temp2; | |
28816 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28817 | } | |
28818 | { | |
28819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28820 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
28821 | ||
28822 | wxPyEndAllowThreads(__tstate); | |
28823 | if (PyErr_Occurred()) SWIG_fail; | |
28824 | } | |
28825 | { | |
28826 | wxPoint * resultptr; | |
093d3ff1 | 28827 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 28828 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
28829 | } |
28830 | return resultobj; | |
28831 | fail: | |
28832 | return NULL; | |
28833 | } | |
28834 | ||
28835 | ||
c32bde28 | 28836 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28837 | PyObject *resultobj; |
28838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28839 | wxSize *arg2 = 0 ; | |
28840 | wxSize result; | |
28841 | wxSize temp2 ; | |
28842 | PyObject * obj0 = 0 ; | |
28843 | PyObject * obj1 = 0 ; | |
28844 | char *kwnames[] = { | |
28845 | (char *) "self",(char *) "sz", NULL | |
28846 | }; | |
28847 | ||
28848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28851 | { |
28852 | arg2 = &temp2; | |
28853 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28854 | } | |
28855 | { | |
28856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28857 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
28858 | ||
28859 | wxPyEndAllowThreads(__tstate); | |
28860 | if (PyErr_Occurred()) SWIG_fail; | |
28861 | } | |
28862 | { | |
28863 | wxSize * resultptr; | |
093d3ff1 | 28864 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 28865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28866 | } |
28867 | return resultobj; | |
28868 | fail: | |
28869 | return NULL; | |
28870 | } | |
28871 | ||
28872 | ||
c32bde28 | 28873 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28874 | PyObject *resultobj; |
28875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28876 | wxPoint *arg2 = 0 ; | |
28877 | wxPoint result; | |
28878 | wxPoint temp2 ; | |
28879 | PyObject * obj0 = 0 ; | |
28880 | PyObject * obj1 = 0 ; | |
28881 | char *kwnames[] = { | |
28882 | (char *) "self",(char *) "pt", NULL | |
28883 | }; | |
28884 | ||
28885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28888 | { |
28889 | arg2 = &temp2; | |
28890 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28891 | } | |
28892 | { | |
28893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28894 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
28895 | ||
28896 | wxPyEndAllowThreads(__tstate); | |
28897 | if (PyErr_Occurred()) SWIG_fail; | |
28898 | } | |
28899 | { | |
28900 | wxPoint * resultptr; | |
093d3ff1 | 28901 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 28902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
28903 | } |
28904 | return resultobj; | |
28905 | fail: | |
28906 | return NULL; | |
28907 | } | |
28908 | ||
28909 | ||
c32bde28 | 28910 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28911 | PyObject *resultobj; |
28912 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28913 | wxSize *arg2 = 0 ; | |
28914 | wxSize result; | |
28915 | wxSize temp2 ; | |
28916 | PyObject * obj0 = 0 ; | |
28917 | PyObject * obj1 = 0 ; | |
28918 | char *kwnames[] = { | |
28919 | (char *) "self",(char *) "sz", NULL | |
28920 | }; | |
28921 | ||
28922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28925 | { |
28926 | arg2 = &temp2; | |
28927 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28928 | } | |
28929 | { | |
28930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28931 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
28932 | ||
28933 | wxPyEndAllowThreads(__tstate); | |
28934 | if (PyErr_Occurred()) SWIG_fail; | |
28935 | } | |
28936 | { | |
28937 | wxSize * resultptr; | |
093d3ff1 | 28938 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 28939 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28940 | } |
28941 | return resultobj; | |
28942 | fail: | |
28943 | return NULL; | |
28944 | } | |
28945 | ||
28946 | ||
c32bde28 | 28947 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28948 | PyObject *resultobj; |
28949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28950 | wxPoint *arg2 = 0 ; | |
28951 | wxPoint result; | |
28952 | wxPoint temp2 ; | |
28953 | PyObject * obj0 = 0 ; | |
28954 | PyObject * obj1 = 0 ; | |
28955 | char *kwnames[] = { | |
28956 | (char *) "self",(char *) "pt", NULL | |
28957 | }; | |
28958 | ||
28959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28962 | { |
28963 | arg2 = &temp2; | |
28964 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28965 | } | |
28966 | { | |
28967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28968 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
28969 | ||
28970 | wxPyEndAllowThreads(__tstate); | |
28971 | if (PyErr_Occurred()) SWIG_fail; | |
28972 | } | |
28973 | { | |
28974 | wxPoint * resultptr; | |
093d3ff1 | 28975 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 28976 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
28977 | } |
28978 | return resultobj; | |
28979 | fail: | |
28980 | return NULL; | |
28981 | } | |
28982 | ||
28983 | ||
c32bde28 | 28984 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28985 | PyObject *resultobj; |
28986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28987 | wxSize *arg2 = 0 ; | |
28988 | wxSize result; | |
28989 | wxSize temp2 ; | |
28990 | PyObject * obj0 = 0 ; | |
28991 | PyObject * obj1 = 0 ; | |
28992 | char *kwnames[] = { | |
28993 | (char *) "self",(char *) "sz", NULL | |
28994 | }; | |
28995 | ||
28996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
28998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28999 | { |
29000 | arg2 = &temp2; | |
29001 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29002 | } | |
29003 | { | |
29004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29005 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
29006 | ||
29007 | wxPyEndAllowThreads(__tstate); | |
29008 | if (PyErr_Occurred()) SWIG_fail; | |
29009 | } | |
29010 | { | |
29011 | wxSize * resultptr; | |
093d3ff1 | 29012 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 29013 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29014 | } |
29015 | return resultobj; | |
29016 | fail: | |
29017 | return NULL; | |
29018 | } | |
29019 | ||
29020 | ||
c32bde28 | 29021 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29022 | PyObject *resultobj; |
29023 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29024 | int arg2 ; | |
29025 | int arg3 ; | |
29026 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29027 | PyObject * obj1 = 0 ; |
29028 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29029 | char *kwnames[] = { |
29030 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29031 | }; | |
29032 | ||
994141e6 | 29033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29036 | { | |
29037 | arg2 = (int)(SWIG_As_int(obj1)); | |
29038 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29039 | } | |
29040 | { | |
29041 | arg3 = (int)(SWIG_As_int(obj2)); | |
29042 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29043 | } | |
d14a1e28 RD |
29044 | { |
29045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29046 | (arg1)->WarpPointer(arg2,arg3); | |
29047 | ||
29048 | wxPyEndAllowThreads(__tstate); | |
29049 | if (PyErr_Occurred()) SWIG_fail; | |
29050 | } | |
29051 | Py_INCREF(Py_None); resultobj = Py_None; | |
29052 | return resultobj; | |
29053 | fail: | |
29054 | return NULL; | |
29055 | } | |
29056 | ||
29057 | ||
c32bde28 | 29058 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29059 | PyObject *resultobj; |
29060 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29061 | PyObject * obj0 = 0 ; | |
29062 | char *kwnames[] = { | |
29063 | (char *) "self", NULL | |
29064 | }; | |
29065 | ||
29066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29069 | { |
29070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29071 | (arg1)->CaptureMouse(); | |
29072 | ||
29073 | wxPyEndAllowThreads(__tstate); | |
29074 | if (PyErr_Occurred()) SWIG_fail; | |
29075 | } | |
29076 | Py_INCREF(Py_None); resultobj = Py_None; | |
29077 | return resultobj; | |
29078 | fail: | |
29079 | return NULL; | |
29080 | } | |
29081 | ||
29082 | ||
c32bde28 | 29083 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29084 | PyObject *resultobj; |
29085 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29086 | PyObject * obj0 = 0 ; | |
29087 | char *kwnames[] = { | |
29088 | (char *) "self", NULL | |
29089 | }; | |
29090 | ||
29091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29094 | { |
29095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29096 | (arg1)->ReleaseMouse(); | |
29097 | ||
29098 | wxPyEndAllowThreads(__tstate); | |
29099 | if (PyErr_Occurred()) SWIG_fail; | |
29100 | } | |
29101 | Py_INCREF(Py_None); resultobj = Py_None; | |
29102 | return resultobj; | |
29103 | fail: | |
29104 | return NULL; | |
29105 | } | |
29106 | ||
29107 | ||
c32bde28 | 29108 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29109 | PyObject *resultobj; |
29110 | wxWindow *result; | |
29111 | char *kwnames[] = { | |
29112 | NULL | |
29113 | }; | |
29114 | ||
29115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
29116 | { | |
e3b71cb8 | 29117 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29119 | result = (wxWindow *)wxWindow::GetCapture(); | |
29120 | ||
29121 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29122 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
29123 | } |
29124 | { | |
412d302d | 29125 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29126 | } |
29127 | return resultobj; | |
29128 | fail: | |
29129 | return NULL; | |
29130 | } | |
29131 | ||
29132 | ||
c32bde28 | 29133 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29134 | PyObject *resultobj; |
29135 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29136 | bool result; | |
29137 | PyObject * obj0 = 0 ; | |
29138 | char *kwnames[] = { | |
29139 | (char *) "self", NULL | |
29140 | }; | |
29141 | ||
29142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29145 | { |
29146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29147 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
29148 | ||
29149 | wxPyEndAllowThreads(__tstate); | |
29150 | if (PyErr_Occurred()) SWIG_fail; | |
29151 | } | |
4f89f6a3 RD |
29152 | { |
29153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29154 | } | |
d14a1e28 RD |
29155 | return resultobj; |
29156 | fail: | |
29157 | return NULL; | |
29158 | } | |
29159 | ||
29160 | ||
c32bde28 | 29161 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29162 | PyObject *resultobj; |
29163 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 29164 | bool arg2 = (bool) true ; |
d14a1e28 RD |
29165 | wxRect *arg3 = (wxRect *) NULL ; |
29166 | PyObject * obj0 = 0 ; | |
29167 | PyObject * obj1 = 0 ; | |
29168 | PyObject * obj2 = 0 ; | |
29169 | char *kwnames[] = { | |
29170 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
29171 | }; | |
29172 | ||
29173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 29176 | if (obj1) { |
093d3ff1 RD |
29177 | { |
29178 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
29179 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29180 | } | |
d14a1e28 RD |
29181 | } |
29182 | if (obj2) { | |
093d3ff1 RD |
29183 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
29184 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
29185 | } |
29186 | { | |
29187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29188 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
29189 | ||
29190 | wxPyEndAllowThreads(__tstate); | |
29191 | if (PyErr_Occurred()) SWIG_fail; | |
29192 | } | |
29193 | Py_INCREF(Py_None); resultobj = Py_None; | |
29194 | return resultobj; | |
29195 | fail: | |
29196 | return NULL; | |
29197 | } | |
29198 | ||
29199 | ||
c32bde28 | 29200 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29201 | PyObject *resultobj; |
29202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29203 | wxRect *arg2 = 0 ; | |
fef4c27a | 29204 | bool arg3 = (bool) true ; |
d14a1e28 RD |
29205 | wxRect temp2 ; |
29206 | PyObject * obj0 = 0 ; | |
29207 | PyObject * obj1 = 0 ; | |
fef4c27a | 29208 | PyObject * obj2 = 0 ; |
d14a1e28 | 29209 | char *kwnames[] = { |
fef4c27a | 29210 | (char *) "self",(char *) "rect",(char *) "eraseBackground", NULL |
d14a1e28 RD |
29211 | }; |
29212 | ||
fef4c27a | 29213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_RefreshRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29216 | { |
29217 | arg2 = &temp2; | |
29218 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29219 | } | |
fef4c27a RD |
29220 | if (obj2) { |
29221 | { | |
29222 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29223 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29224 | } | |
29225 | } | |
d14a1e28 RD |
29226 | { |
29227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fef4c27a | 29228 | (arg1)->RefreshRect((wxRect const &)*arg2,arg3); |
d14a1e28 RD |
29229 | |
29230 | wxPyEndAllowThreads(__tstate); | |
29231 | if (PyErr_Occurred()) SWIG_fail; | |
29232 | } | |
29233 | Py_INCREF(Py_None); resultobj = Py_None; | |
29234 | return resultobj; | |
29235 | fail: | |
29236 | return NULL; | |
29237 | } | |
29238 | ||
29239 | ||
c32bde28 | 29240 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29241 | PyObject *resultobj; |
29242 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29243 | PyObject * obj0 = 0 ; | |
29244 | char *kwnames[] = { | |
29245 | (char *) "self", NULL | |
29246 | }; | |
29247 | ||
29248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29251 | { |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29253 | (arg1)->Update(); | |
29254 | ||
29255 | wxPyEndAllowThreads(__tstate); | |
29256 | if (PyErr_Occurred()) SWIG_fail; | |
29257 | } | |
29258 | Py_INCREF(Py_None); resultobj = Py_None; | |
29259 | return resultobj; | |
29260 | fail: | |
29261 | return NULL; | |
29262 | } | |
29263 | ||
29264 | ||
c32bde28 | 29265 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29266 | PyObject *resultobj; |
29267 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29268 | PyObject * obj0 = 0 ; | |
29269 | char *kwnames[] = { | |
29270 | (char *) "self", NULL | |
29271 | }; | |
29272 | ||
29273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29276 | { |
29277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29278 | (arg1)->ClearBackground(); | |
29279 | ||
29280 | wxPyEndAllowThreads(__tstate); | |
29281 | if (PyErr_Occurred()) SWIG_fail; | |
29282 | } | |
29283 | Py_INCREF(Py_None); resultobj = Py_None; | |
29284 | return resultobj; | |
29285 | fail: | |
29286 | return NULL; | |
29287 | } | |
29288 | ||
29289 | ||
c32bde28 | 29290 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29291 | PyObject *resultobj; |
29292 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29293 | PyObject * obj0 = 0 ; | |
29294 | char *kwnames[] = { | |
29295 | (char *) "self", NULL | |
29296 | }; | |
29297 | ||
29298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29301 | { |
29302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29303 | (arg1)->Freeze(); | |
29304 | ||
29305 | wxPyEndAllowThreads(__tstate); | |
29306 | if (PyErr_Occurred()) SWIG_fail; | |
29307 | } | |
29308 | Py_INCREF(Py_None); resultobj = Py_None; | |
29309 | return resultobj; | |
29310 | fail: | |
29311 | return NULL; | |
29312 | } | |
29313 | ||
29314 | ||
c32bde28 | 29315 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29316 | PyObject *resultobj; |
29317 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29318 | PyObject * obj0 = 0 ; | |
29319 | char *kwnames[] = { | |
29320 | (char *) "self", NULL | |
29321 | }; | |
29322 | ||
29323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29326 | { |
29327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29328 | (arg1)->Thaw(); | |
29329 | ||
29330 | wxPyEndAllowThreads(__tstate); | |
29331 | if (PyErr_Occurred()) SWIG_fail; | |
29332 | } | |
29333 | Py_INCREF(Py_None); resultobj = Py_None; | |
29334 | return resultobj; | |
29335 | fail: | |
29336 | return NULL; | |
29337 | } | |
29338 | ||
29339 | ||
c32bde28 | 29340 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29341 | PyObject *resultobj; |
29342 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29343 | wxDC *arg2 = 0 ; | |
29344 | PyObject * obj0 = 0 ; | |
29345 | PyObject * obj1 = 0 ; | |
29346 | char *kwnames[] = { | |
29347 | (char *) "self",(char *) "dc", NULL | |
29348 | }; | |
29349 | ||
29350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29353 | { | |
29354 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
29355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29356 | if (arg2 == NULL) { | |
29357 | SWIG_null_ref("wxDC"); | |
29358 | } | |
29359 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29360 | } |
29361 | { | |
29362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29363 | (arg1)->PrepareDC(*arg2); | |
29364 | ||
29365 | wxPyEndAllowThreads(__tstate); | |
29366 | if (PyErr_Occurred()) SWIG_fail; | |
29367 | } | |
29368 | Py_INCREF(Py_None); resultobj = Py_None; | |
29369 | return resultobj; | |
29370 | fail: | |
29371 | return NULL; | |
29372 | } | |
29373 | ||
29374 | ||
c32bde28 | 29375 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29376 | PyObject *resultobj; |
29377 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29378 | wxRegion *result; | |
29379 | PyObject * obj0 = 0 ; | |
29380 | char *kwnames[] = { | |
29381 | (char *) "self", NULL | |
29382 | }; | |
29383 | ||
29384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29387 | { |
29388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29389 | { | |
29390 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
29391 | result = (wxRegion *) &_result_ref; | |
29392 | } | |
29393 | ||
29394 | wxPyEndAllowThreads(__tstate); | |
29395 | if (PyErr_Occurred()) SWIG_fail; | |
29396 | } | |
15afbcd0 | 29397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
29398 | return resultobj; |
29399 | fail: | |
29400 | return NULL; | |
29401 | } | |
29402 | ||
29403 | ||
c32bde28 | 29404 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29405 | PyObject *resultobj; |
29406 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29407 | wxRect result; | |
29408 | PyObject * obj0 = 0 ; | |
29409 | char *kwnames[] = { | |
29410 | (char *) "self", NULL | |
29411 | }; | |
29412 | ||
29413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29416 | { |
29417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29418 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
29419 | ||
29420 | wxPyEndAllowThreads(__tstate); | |
29421 | if (PyErr_Occurred()) SWIG_fail; | |
29422 | } | |
29423 | { | |
29424 | wxRect * resultptr; | |
093d3ff1 | 29425 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 29426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
29427 | } |
29428 | return resultobj; | |
29429 | fail: | |
29430 | return NULL; | |
29431 | } | |
29432 | ||
29433 | ||
c32bde28 | 29434 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29435 | PyObject *resultobj; |
29436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29437 | int arg2 ; | |
29438 | int arg3 ; | |
29439 | int arg4 = (int) 1 ; | |
29440 | int arg5 = (int) 1 ; | |
29441 | bool result; | |
29442 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29443 | PyObject * obj1 = 0 ; |
29444 | PyObject * obj2 = 0 ; | |
29445 | PyObject * obj3 = 0 ; | |
29446 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
29447 | char *kwnames[] = { |
29448 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29449 | }; | |
29450 | ||
994141e6 | 29451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
29452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29454 | { | |
29455 | arg2 = (int)(SWIG_As_int(obj1)); | |
29456 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29457 | } | |
29458 | { | |
29459 | arg3 = (int)(SWIG_As_int(obj2)); | |
29460 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29461 | } | |
994141e6 | 29462 | if (obj3) { |
093d3ff1 RD |
29463 | { |
29464 | arg4 = (int)(SWIG_As_int(obj3)); | |
29465 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29466 | } | |
994141e6 RD |
29467 | } |
29468 | if (obj4) { | |
093d3ff1 RD |
29469 | { |
29470 | arg5 = (int)(SWIG_As_int(obj4)); | |
29471 | if (SWIG_arg_fail(5)) SWIG_fail; | |
29472 | } | |
994141e6 | 29473 | } |
d14a1e28 RD |
29474 | { |
29475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29476 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
29477 | ||
29478 | wxPyEndAllowThreads(__tstate); | |
29479 | if (PyErr_Occurred()) SWIG_fail; | |
29480 | } | |
4f89f6a3 RD |
29481 | { |
29482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29483 | } | |
d14a1e28 RD |
29484 | return resultobj; |
29485 | fail: | |
29486 | return NULL; | |
29487 | } | |
29488 | ||
29489 | ||
c32bde28 | 29490 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29491 | PyObject *resultobj; |
29492 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29493 | wxPoint *arg2 = 0 ; | |
29494 | bool result; | |
29495 | wxPoint temp2 ; | |
29496 | PyObject * obj0 = 0 ; | |
29497 | PyObject * obj1 = 0 ; | |
29498 | char *kwnames[] = { | |
29499 | (char *) "self",(char *) "pt", NULL | |
29500 | }; | |
29501 | ||
29502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29505 | { |
29506 | arg2 = &temp2; | |
29507 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29508 | } | |
29509 | { | |
29510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29511 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
29512 | ||
29513 | wxPyEndAllowThreads(__tstate); | |
29514 | if (PyErr_Occurred()) SWIG_fail; | |
29515 | } | |
4f89f6a3 RD |
29516 | { |
29517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29518 | } | |
d14a1e28 RD |
29519 | return resultobj; |
29520 | fail: | |
29521 | return NULL; | |
29522 | } | |
29523 | ||
29524 | ||
c32bde28 | 29525 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29526 | PyObject *resultobj; |
29527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29528 | wxRect *arg2 = 0 ; | |
29529 | bool result; | |
29530 | wxRect temp2 ; | |
29531 | PyObject * obj0 = 0 ; | |
29532 | PyObject * obj1 = 0 ; | |
29533 | char *kwnames[] = { | |
29534 | (char *) "self",(char *) "rect", NULL | |
29535 | }; | |
29536 | ||
4276dc52 | 29537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
29538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29540 | { |
29541 | arg2 = &temp2; | |
29542 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29543 | } | |
29544 | { | |
29545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29546 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
29547 | ||
29548 | wxPyEndAllowThreads(__tstate); | |
29549 | if (PyErr_Occurred()) SWIG_fail; | |
29550 | } | |
4f89f6a3 RD |
29551 | { |
29552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29553 | } | |
d14a1e28 RD |
29554 | return resultobj; |
29555 | fail: | |
29556 | return NULL; | |
29557 | } | |
29558 | ||
29559 | ||
c32bde28 | 29560 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
29561 | PyObject *resultobj; |
29562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29563 | wxVisualAttributes result; | |
29564 | PyObject * obj0 = 0 ; | |
29565 | char *kwnames[] = { | |
29566 | (char *) "self", NULL | |
29567 | }; | |
29568 | ||
29569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
74a57fcd RD |
29572 | { |
29573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29574 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
29575 | ||
29576 | wxPyEndAllowThreads(__tstate); | |
29577 | if (PyErr_Occurred()) SWIG_fail; | |
29578 | } | |
29579 | { | |
29580 | wxVisualAttributes * resultptr; | |
093d3ff1 | 29581 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
29582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
29583 | } | |
29584 | return resultobj; | |
29585 | fail: | |
29586 | return NULL; | |
29587 | } | |
29588 | ||
29589 | ||
c32bde28 | 29590 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd | 29591 | PyObject *resultobj; |
093d3ff1 | 29592 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
29593 | wxVisualAttributes result; |
29594 | PyObject * obj0 = 0 ; | |
29595 | char *kwnames[] = { | |
29596 | (char *) "variant", NULL | |
29597 | }; | |
29598 | ||
29599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
29600 | if (obj0) { | |
093d3ff1 RD |
29601 | { |
29602 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
29603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29604 | } | |
74a57fcd RD |
29605 | } |
29606 | { | |
e3b71cb8 | 29607 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
29608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29609 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
29610 | ||
29611 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29612 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
29613 | } |
29614 | { | |
29615 | wxVisualAttributes * resultptr; | |
093d3ff1 | 29616 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
29617 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
29618 | } | |
29619 | return resultobj; | |
29620 | fail: | |
29621 | return NULL; | |
29622 | } | |
29623 | ||
29624 | ||
c32bde28 | 29625 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29626 | PyObject *resultobj; |
29627 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29628 | wxColour *arg2 = 0 ; | |
29629 | bool result; | |
29630 | wxColour temp2 ; | |
29631 | PyObject * obj0 = 0 ; | |
29632 | PyObject * obj1 = 0 ; | |
29633 | char *kwnames[] = { | |
29634 | (char *) "self",(char *) "colour", NULL | |
29635 | }; | |
29636 | ||
29637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29640 | { |
29641 | arg2 = &temp2; | |
29642 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29643 | } | |
29644 | { | |
29645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29646 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
29647 | ||
29648 | wxPyEndAllowThreads(__tstate); | |
29649 | if (PyErr_Occurred()) SWIG_fail; | |
29650 | } | |
4f89f6a3 RD |
29651 | { |
29652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29653 | } | |
d14a1e28 RD |
29654 | return resultobj; |
29655 | fail: | |
29656 | return NULL; | |
29657 | } | |
29658 | ||
29659 | ||
c32bde28 | 29660 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
29661 | PyObject *resultobj; |
29662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29663 | wxColour *arg2 = 0 ; | |
29664 | wxColour temp2 ; | |
29665 | PyObject * obj0 = 0 ; | |
29666 | PyObject * obj1 = 0 ; | |
29667 | char *kwnames[] = { | |
29668 | (char *) "self",(char *) "colour", NULL | |
29669 | }; | |
29670 | ||
412d302d | 29671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
29672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b2df227b RD |
29674 | { |
29675 | arg2 = &temp2; | |
29676 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29677 | } | |
29678 | { | |
29679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 29680 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
b2df227b RD |
29681 | |
29682 | wxPyEndAllowThreads(__tstate); | |
29683 | if (PyErr_Occurred()) SWIG_fail; | |
29684 | } | |
29685 | Py_INCREF(Py_None); resultobj = Py_None; | |
29686 | return resultobj; | |
29687 | fail: | |
29688 | return NULL; | |
29689 | } | |
29690 | ||
29691 | ||
c32bde28 | 29692 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29693 | PyObject *resultobj; |
29694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29695 | wxColour *arg2 = 0 ; | |
29696 | bool result; | |
29697 | wxColour temp2 ; | |
29698 | PyObject * obj0 = 0 ; | |
29699 | PyObject * obj1 = 0 ; | |
29700 | char *kwnames[] = { | |
29701 | (char *) "self",(char *) "colour", NULL | |
29702 | }; | |
29703 | ||
29704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29707 | { |
29708 | arg2 = &temp2; | |
29709 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29710 | } | |
29711 | { | |
29712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29713 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
29714 | ||
29715 | wxPyEndAllowThreads(__tstate); | |
29716 | if (PyErr_Occurred()) SWIG_fail; | |
29717 | } | |
4f89f6a3 RD |
29718 | { |
29719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29720 | } | |
d14a1e28 RD |
29721 | return resultobj; |
29722 | fail: | |
29723 | return NULL; | |
29724 | } | |
29725 | ||
29726 | ||
c32bde28 | 29727 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
29728 | PyObject *resultobj; |
29729 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29730 | wxColour *arg2 = 0 ; | |
29731 | wxColour temp2 ; | |
29732 | PyObject * obj0 = 0 ; | |
29733 | PyObject * obj1 = 0 ; | |
29734 | char *kwnames[] = { | |
29735 | (char *) "self",(char *) "colour", NULL | |
29736 | }; | |
29737 | ||
fa47d7a7 | 29738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
29739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b2df227b RD |
29741 | { |
29742 | arg2 = &temp2; | |
29743 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29744 | } | |
29745 | { | |
29746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 29747 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
b2df227b RD |
29748 | |
29749 | wxPyEndAllowThreads(__tstate); | |
29750 | if (PyErr_Occurred()) SWIG_fail; | |
29751 | } | |
29752 | Py_INCREF(Py_None); resultobj = Py_None; | |
29753 | return resultobj; | |
29754 | fail: | |
29755 | return NULL; | |
29756 | } | |
29757 | ||
29758 | ||
c32bde28 | 29759 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29760 | PyObject *resultobj; |
29761 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29762 | wxColour result; | |
29763 | PyObject * obj0 = 0 ; | |
29764 | char *kwnames[] = { | |
29765 | (char *) "self", NULL | |
29766 | }; | |
29767 | ||
29768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29771 | { |
29772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29773 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
29774 | ||
29775 | wxPyEndAllowThreads(__tstate); | |
29776 | if (PyErr_Occurred()) SWIG_fail; | |
29777 | } | |
29778 | { | |
29779 | wxColour * resultptr; | |
093d3ff1 | 29780 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 29781 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
29782 | } |
29783 | return resultobj; | |
29784 | fail: | |
29785 | return NULL; | |
29786 | } | |
29787 | ||
29788 | ||
c32bde28 | 29789 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29790 | PyObject *resultobj; |
29791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29792 | wxColour result; | |
29793 | PyObject * obj0 = 0 ; | |
29794 | char *kwnames[] = { | |
29795 | (char *) "self", NULL | |
29796 | }; | |
29797 | ||
29798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29801 | { |
29802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29803 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
29804 | ||
29805 | wxPyEndAllowThreads(__tstate); | |
29806 | if (PyErr_Occurred()) SWIG_fail; | |
29807 | } | |
29808 | { | |
29809 | wxColour * resultptr; | |
093d3ff1 | 29810 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 29811 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
29812 | } |
29813 | return resultobj; | |
29814 | fail: | |
29815 | return NULL; | |
29816 | } | |
29817 | ||
29818 | ||
562ecc31 RD |
29819 | static PyObject *_wrap_Window_InheritsBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
29820 | PyObject *resultobj; | |
29821 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29822 | bool result; | |
29823 | PyObject * obj0 = 0 ; | |
29824 | char *kwnames[] = { | |
29825 | (char *) "self", NULL | |
29826 | }; | |
29827 | ||
29828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritsBackgroundColour",kwnames,&obj0)) goto fail; | |
29829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
29830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29831 | { | |
29832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29833 | result = (bool)((wxWindow const *)arg1)->InheritsBackgroundColour(); | |
29834 | ||
29835 | wxPyEndAllowThreads(__tstate); | |
29836 | if (PyErr_Occurred()) SWIG_fail; | |
29837 | } | |
29838 | { | |
29839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29840 | } | |
29841 | return resultobj; | |
29842 | fail: | |
29843 | return NULL; | |
29844 | } | |
29845 | ||
29846 | ||
29847 | static PyObject *_wrap_Window_UseBgCol(PyObject *, PyObject *args, PyObject *kwargs) { | |
29848 | PyObject *resultobj; | |
29849 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29850 | bool result; | |
29851 | PyObject * obj0 = 0 ; | |
29852 | char *kwnames[] = { | |
29853 | (char *) "self", NULL | |
29854 | }; | |
29855 | ||
29856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_UseBgCol",kwnames,&obj0)) goto fail; | |
29857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
29858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29859 | { | |
29860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29861 | result = (bool)((wxWindow const *)arg1)->UseBgCol(); | |
29862 | ||
29863 | wxPyEndAllowThreads(__tstate); | |
29864 | if (PyErr_Occurred()) SWIG_fail; | |
29865 | } | |
29866 | { | |
29867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29868 | } | |
29869 | return resultobj; | |
29870 | fail: | |
29871 | return NULL; | |
29872 | } | |
29873 | ||
29874 | ||
c32bde28 | 29875 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
7bc1e663 RD |
29876 | PyObject *resultobj; |
29877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 29878 | wxBackgroundStyle arg2 ; |
7bc1e663 RD |
29879 | bool result; |
29880 | PyObject * obj0 = 0 ; | |
29881 | PyObject * obj1 = 0 ; | |
29882 | char *kwnames[] = { | |
29883 | (char *) "self",(char *) "style", NULL | |
29884 | }; | |
29885 | ||
29886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29889 | { | |
29890 | arg2 = (wxBackgroundStyle)(SWIG_As_int(obj1)); | |
29891 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29892 | } | |
7bc1e663 RD |
29893 | { |
29894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29895 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
29896 | ||
29897 | wxPyEndAllowThreads(__tstate); | |
29898 | if (PyErr_Occurred()) SWIG_fail; | |
29899 | } | |
29900 | { | |
29901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29902 | } | |
29903 | return resultobj; | |
29904 | fail: | |
29905 | return NULL; | |
29906 | } | |
29907 | ||
29908 | ||
c32bde28 | 29909 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
7bc1e663 RD |
29910 | PyObject *resultobj; |
29911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 29912 | wxBackgroundStyle result; |
7bc1e663 RD |
29913 | PyObject * obj0 = 0 ; |
29914 | char *kwnames[] = { | |
29915 | (char *) "self", NULL | |
29916 | }; | |
29917 | ||
29918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7bc1e663 RD |
29921 | { |
29922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 29923 | result = (wxBackgroundStyle)((wxWindow const *)arg1)->GetBackgroundStyle(); |
7bc1e663 RD |
29924 | |
29925 | wxPyEndAllowThreads(__tstate); | |
29926 | if (PyErr_Occurred()) SWIG_fail; | |
29927 | } | |
093d3ff1 | 29928 | resultobj = SWIG_From_int((result)); |
7bc1e663 RD |
29929 | return resultobj; |
29930 | fail: | |
29931 | return NULL; | |
29932 | } | |
29933 | ||
29934 | ||
51b83b37 RD |
29935 | static PyObject *_wrap_Window_HasTransparentBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
29936 | PyObject *resultobj; | |
29937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29938 | bool result; | |
29939 | PyObject * obj0 = 0 ; | |
29940 | char *kwnames[] = { | |
29941 | (char *) "self", NULL | |
29942 | }; | |
29943 | ||
29944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasTransparentBackground",kwnames,&obj0)) goto fail; | |
29945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
29946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29947 | { | |
29948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29949 | result = (bool)(arg1)->HasTransparentBackground(); | |
29950 | ||
29951 | wxPyEndAllowThreads(__tstate); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | } | |
29954 | { | |
29955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29956 | } | |
29957 | return resultobj; | |
29958 | fail: | |
29959 | return NULL; | |
29960 | } | |
29961 | ||
29962 | ||
c32bde28 | 29963 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29964 | PyObject *resultobj; |
29965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29966 | wxCursor *arg2 = 0 ; | |
29967 | bool result; | |
29968 | PyObject * obj0 = 0 ; | |
29969 | PyObject * obj1 = 0 ; | |
29970 | char *kwnames[] = { | |
29971 | (char *) "self",(char *) "cursor", NULL | |
29972 | }; | |
29973 | ||
29974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29977 | { | |
29978 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
29979 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29980 | if (arg2 == NULL) { | |
29981 | SWIG_null_ref("wxCursor"); | |
29982 | } | |
29983 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29984 | } |
29985 | { | |
29986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29987 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
29988 | ||
29989 | wxPyEndAllowThreads(__tstate); | |
29990 | if (PyErr_Occurred()) SWIG_fail; | |
29991 | } | |
4f89f6a3 RD |
29992 | { |
29993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29994 | } | |
d14a1e28 RD |
29995 | return resultobj; |
29996 | fail: | |
29997 | return NULL; | |
29998 | } | |
29999 | ||
30000 | ||
c32bde28 | 30001 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30002 | PyObject *resultobj; |
30003 | wxWindow *arg1 = (wxWindow *) 0 ; | |
dfbb5885 | 30004 | wxCursor result; |
d14a1e28 RD |
30005 | PyObject * obj0 = 0 ; |
30006 | char *kwnames[] = { | |
30007 | (char *) "self", NULL | |
30008 | }; | |
30009 | ||
30010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30013 | { |
30014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
dfbb5885 | 30015 | result = (arg1)->GetCursor(); |
d14a1e28 RD |
30016 | |
30017 | wxPyEndAllowThreads(__tstate); | |
30018 | if (PyErr_Occurred()) SWIG_fail; | |
30019 | } | |
4276dc52 | 30020 | { |
dfbb5885 | 30021 | wxCursor * resultptr; |
093d3ff1 | 30022 | resultptr = new wxCursor((wxCursor &)(result)); |
dfbb5885 | 30023 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); |
4276dc52 | 30024 | } |
d14a1e28 RD |
30025 | return resultobj; |
30026 | fail: | |
30027 | return NULL; | |
30028 | } | |
30029 | ||
30030 | ||
c32bde28 | 30031 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30032 | PyObject *resultobj; |
30033 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30034 | wxFont *arg2 = 0 ; | |
30035 | bool result; | |
30036 | PyObject * obj0 = 0 ; | |
30037 | PyObject * obj1 = 0 ; | |
30038 | char *kwnames[] = { | |
30039 | (char *) "self",(char *) "font", NULL | |
30040 | }; | |
30041 | ||
30042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30043 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30045 | { | |
30046 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
30047 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30048 | if (arg2 == NULL) { | |
30049 | SWIG_null_ref("wxFont"); | |
30050 | } | |
30051 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30052 | } |
30053 | { | |
30054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30055 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
30056 | ||
30057 | wxPyEndAllowThreads(__tstate); | |
30058 | if (PyErr_Occurred()) SWIG_fail; | |
30059 | } | |
4f89f6a3 RD |
30060 | { |
30061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30062 | } | |
d14a1e28 RD |
30063 | return resultobj; |
30064 | fail: | |
30065 | return NULL; | |
30066 | } | |
30067 | ||
30068 | ||
c32bde28 | 30069 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
30070 | PyObject *resultobj; |
30071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30072 | wxFont *arg2 = 0 ; | |
30073 | PyObject * obj0 = 0 ; | |
30074 | PyObject * obj1 = 0 ; | |
30075 | char *kwnames[] = { | |
30076 | (char *) "self",(char *) "font", NULL | |
30077 | }; | |
30078 | ||
fa47d7a7 | 30079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30082 | { | |
30083 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
30084 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30085 | if (arg2 == NULL) { | |
30086 | SWIG_null_ref("wxFont"); | |
30087 | } | |
30088 | if (SWIG_arg_fail(2)) SWIG_fail; | |
b2df227b RD |
30089 | } |
30090 | { | |
30091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 30092 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
b2df227b RD |
30093 | |
30094 | wxPyEndAllowThreads(__tstate); | |
30095 | if (PyErr_Occurred()) SWIG_fail; | |
30096 | } | |
30097 | Py_INCREF(Py_None); resultobj = Py_None; | |
30098 | return resultobj; | |
30099 | fail: | |
30100 | return NULL; | |
30101 | } | |
30102 | ||
30103 | ||
c32bde28 | 30104 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30105 | PyObject *resultobj; |
30106 | wxWindow *arg1 = (wxWindow *) 0 ; | |
dfbb5885 | 30107 | wxFont result; |
d14a1e28 RD |
30108 | PyObject * obj0 = 0 ; |
30109 | char *kwnames[] = { | |
30110 | (char *) "self", NULL | |
30111 | }; | |
30112 | ||
30113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30114 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30115 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30116 | { |
30117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
dfbb5885 | 30118 | result = (arg1)->GetFont(); |
d14a1e28 RD |
30119 | |
30120 | wxPyEndAllowThreads(__tstate); | |
30121 | if (PyErr_Occurred()) SWIG_fail; | |
30122 | } | |
4276dc52 | 30123 | { |
dfbb5885 | 30124 | wxFont * resultptr; |
093d3ff1 | 30125 | resultptr = new wxFont((wxFont &)(result)); |
dfbb5885 | 30126 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
4276dc52 | 30127 | } |
d14a1e28 RD |
30128 | return resultobj; |
30129 | fail: | |
30130 | return NULL; | |
30131 | } | |
30132 | ||
30133 | ||
c32bde28 | 30134 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30135 | PyObject *resultobj; |
30136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30137 | wxCaret *arg2 = (wxCaret *) 0 ; | |
30138 | PyObject * obj0 = 0 ; | |
30139 | PyObject * obj1 = 0 ; | |
30140 | char *kwnames[] = { | |
30141 | (char *) "self",(char *) "caret", NULL | |
30142 | }; | |
30143 | ||
30144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30147 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0); | |
30148 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30149 | { |
30150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30151 | (arg1)->SetCaret(arg2); | |
30152 | ||
30153 | wxPyEndAllowThreads(__tstate); | |
30154 | if (PyErr_Occurred()) SWIG_fail; | |
30155 | } | |
30156 | Py_INCREF(Py_None); resultobj = Py_None; | |
30157 | return resultobj; | |
30158 | fail: | |
30159 | return NULL; | |
30160 | } | |
30161 | ||
30162 | ||
c32bde28 | 30163 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30164 | PyObject *resultobj; |
30165 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30166 | wxCaret *result; | |
30167 | PyObject * obj0 = 0 ; | |
30168 | char *kwnames[] = { | |
30169 | (char *) "self", NULL | |
30170 | }; | |
30171 | ||
30172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30175 | { |
30176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30177 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
30178 | ||
30179 | wxPyEndAllowThreads(__tstate); | |
30180 | if (PyErr_Occurred()) SWIG_fail; | |
30181 | } | |
15afbcd0 | 30182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
30183 | return resultobj; |
30184 | fail: | |
30185 | return NULL; | |
30186 | } | |
30187 | ||
30188 | ||
c32bde28 | 30189 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30190 | PyObject *resultobj; |
30191 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30192 | int result; | |
30193 | PyObject * obj0 = 0 ; | |
30194 | char *kwnames[] = { | |
30195 | (char *) "self", NULL | |
30196 | }; | |
30197 | ||
30198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30201 | { |
30202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30203 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
30204 | ||
30205 | wxPyEndAllowThreads(__tstate); | |
30206 | if (PyErr_Occurred()) SWIG_fail; | |
30207 | } | |
093d3ff1 RD |
30208 | { |
30209 | resultobj = SWIG_From_int((int)(result)); | |
30210 | } | |
d14a1e28 RD |
30211 | return resultobj; |
30212 | fail: | |
30213 | return NULL; | |
30214 | } | |
30215 | ||
30216 | ||
c32bde28 | 30217 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30218 | PyObject *resultobj; |
30219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30220 | int result; | |
30221 | PyObject * obj0 = 0 ; | |
30222 | char *kwnames[] = { | |
30223 | (char *) "self", NULL | |
30224 | }; | |
30225 | ||
30226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30229 | { |
30230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30231 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
30232 | ||
30233 | wxPyEndAllowThreads(__tstate); | |
30234 | if (PyErr_Occurred()) SWIG_fail; | |
30235 | } | |
093d3ff1 RD |
30236 | { |
30237 | resultobj = SWIG_From_int((int)(result)); | |
30238 | } | |
d14a1e28 RD |
30239 | return resultobj; |
30240 | fail: | |
30241 | return NULL; | |
30242 | } | |
30243 | ||
30244 | ||
c32bde28 | 30245 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30246 | PyObject *resultobj; |
30247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30248 | wxString *arg2 = 0 ; | |
30249 | int *arg3 = (int *) 0 ; | |
30250 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 30251 | bool temp2 = false ; |
d14a1e28 | 30252 | int temp3 ; |
c32bde28 | 30253 | int res3 = 0 ; |
d14a1e28 | 30254 | int temp4 ; |
c32bde28 | 30255 | int res4 = 0 ; |
d14a1e28 RD |
30256 | PyObject * obj0 = 0 ; |
30257 | PyObject * obj1 = 0 ; | |
30258 | char *kwnames[] = { | |
30259 | (char *) "self",(char *) "string", NULL | |
30260 | }; | |
30261 | ||
c32bde28 RD |
30262 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
30263 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d14a1e28 | 30264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30265 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30267 | { |
30268 | arg2 = wxString_in_helper(obj1); | |
30269 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30270 | temp2 = true; |
d14a1e28 RD |
30271 | } |
30272 | { | |
30273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30274 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
30275 | ||
30276 | wxPyEndAllowThreads(__tstate); | |
30277 | if (PyErr_Occurred()) SWIG_fail; | |
30278 | } | |
30279 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30280 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30281 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
30282 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
30283 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30284 | { |
30285 | if (temp2) | |
30286 | delete arg2; | |
30287 | } | |
30288 | return resultobj; | |
30289 | fail: | |
30290 | { | |
30291 | if (temp2) | |
30292 | delete arg2; | |
30293 | } | |
30294 | return NULL; | |
30295 | } | |
30296 | ||
30297 | ||
c32bde28 | 30298 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30299 | PyObject *resultobj; |
30300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30301 | wxString *arg2 = 0 ; | |
30302 | int *arg3 = (int *) 0 ; | |
30303 | int *arg4 = (int *) 0 ; | |
30304 | int *arg5 = (int *) 0 ; | |
30305 | int *arg6 = (int *) 0 ; | |
30306 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 30307 | bool temp2 = false ; |
d14a1e28 | 30308 | int temp3 ; |
c32bde28 | 30309 | int res3 = 0 ; |
d14a1e28 | 30310 | int temp4 ; |
c32bde28 | 30311 | int res4 = 0 ; |
d14a1e28 | 30312 | int temp5 ; |
c32bde28 | 30313 | int res5 = 0 ; |
d14a1e28 | 30314 | int temp6 ; |
c32bde28 | 30315 | int res6 = 0 ; |
d14a1e28 RD |
30316 | PyObject * obj0 = 0 ; |
30317 | PyObject * obj1 = 0 ; | |
30318 | PyObject * obj2 = 0 ; | |
30319 | char *kwnames[] = { | |
30320 | (char *) "self",(char *) "string",(char *) "font", NULL | |
30321 | }; | |
30322 | ||
c32bde28 RD |
30323 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
30324 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
30325 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
30326 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d14a1e28 | 30327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
30328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30330 | { |
30331 | arg2 = wxString_in_helper(obj1); | |
30332 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30333 | temp2 = true; |
d14a1e28 RD |
30334 | } |
30335 | if (obj2) { | |
093d3ff1 RD |
30336 | SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); |
30337 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
30338 | } |
30339 | { | |
30340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30341 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
30342 | ||
30343 | wxPyEndAllowThreads(__tstate); | |
30344 | if (PyErr_Occurred()) SWIG_fail; | |
30345 | } | |
30346 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30347 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30348 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
30349 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
30350 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
30351 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
30352 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
30353 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
30354 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30355 | { |
30356 | if (temp2) | |
30357 | delete arg2; | |
30358 | } | |
30359 | return resultobj; | |
30360 | fail: | |
30361 | { | |
30362 | if (temp2) | |
30363 | delete arg2; | |
30364 | } | |
30365 | return NULL; | |
30366 | } | |
30367 | ||
30368 | ||
c32bde28 | 30369 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30370 | PyObject *resultobj; |
30371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30372 | int *arg2 = (int *) 0 ; | |
30373 | int *arg3 = (int *) 0 ; | |
30374 | int temp2 ; | |
c32bde28 | 30375 | int res2 = 0 ; |
d14a1e28 | 30376 | int temp3 ; |
c32bde28 | 30377 | int res3 = 0 ; |
d14a1e28 RD |
30378 | PyObject * obj0 = 0 ; |
30379 | PyObject * obj1 = 0 ; | |
30380 | PyObject * obj2 = 0 ; | |
30381 | char *kwnames[] = { | |
30382 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30383 | }; | |
30384 | ||
30385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 30388 | { |
c32bde28 RD |
30389 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
30390 | temp2 = SWIG_As_int(obj1); | |
093d3ff1 | 30391 | if (SWIG_arg_fail(2)) SWIG_fail; |
c32bde28 RD |
30392 | arg2 = &temp2; |
30393 | res2 = SWIG_NEWOBJ; | |
30394 | } | |
d14a1e28 RD |
30395 | } |
30396 | { | |
c32bde28 RD |
30397 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
30398 | temp3 = SWIG_As_int(obj2); | |
093d3ff1 | 30399 | if (SWIG_arg_fail(3)) SWIG_fail; |
c32bde28 RD |
30400 | arg3 = &temp3; |
30401 | res3 = SWIG_NEWOBJ; | |
30402 | } | |
d14a1e28 RD |
30403 | } |
30404 | { | |
30405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30406 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
30407 | ||
30408 | wxPyEndAllowThreads(__tstate); | |
30409 | if (PyErr_Occurred()) SWIG_fail; | |
30410 | } | |
30411 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30412 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30413 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30414 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30415 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30416 | return resultobj; |
30417 | fail: | |
30418 | return NULL; | |
30419 | } | |
30420 | ||
30421 | ||
c32bde28 | 30422 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30423 | PyObject *resultobj; |
30424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30425 | int *arg2 = (int *) 0 ; | |
30426 | int *arg3 = (int *) 0 ; | |
30427 | int temp2 ; | |
c32bde28 | 30428 | int res2 = 0 ; |
d14a1e28 | 30429 | int temp3 ; |
c32bde28 | 30430 | int res3 = 0 ; |
d14a1e28 RD |
30431 | PyObject * obj0 = 0 ; |
30432 | PyObject * obj1 = 0 ; | |
30433 | PyObject * obj2 = 0 ; | |
30434 | char *kwnames[] = { | |
30435 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30436 | }; | |
30437 | ||
30438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 30441 | { |
c32bde28 RD |
30442 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
30443 | temp2 = SWIG_As_int(obj1); | |
093d3ff1 | 30444 | if (SWIG_arg_fail(2)) SWIG_fail; |
c32bde28 RD |
30445 | arg2 = &temp2; |
30446 | res2 = SWIG_NEWOBJ; | |
30447 | } | |
d14a1e28 RD |
30448 | } |
30449 | { | |
c32bde28 RD |
30450 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
30451 | temp3 = SWIG_As_int(obj2); | |
093d3ff1 | 30452 | if (SWIG_arg_fail(3)) SWIG_fail; |
c32bde28 RD |
30453 | arg3 = &temp3; |
30454 | res3 = SWIG_NEWOBJ; | |
30455 | } | |
d14a1e28 RD |
30456 | } |
30457 | { | |
30458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30459 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
30460 | ||
30461 | wxPyEndAllowThreads(__tstate); | |
30462 | if (PyErr_Occurred()) SWIG_fail; | |
30463 | } | |
30464 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
30465 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
30466 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
30467 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30468 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30469 | return resultobj; |
30470 | fail: | |
30471 | return NULL; | |
30472 | } | |
30473 | ||
30474 | ||
c32bde28 | 30475 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30476 | PyObject *resultobj; |
30477 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30478 | wxPoint *arg2 = 0 ; | |
30479 | wxPoint result; | |
30480 | wxPoint temp2 ; | |
30481 | PyObject * obj0 = 0 ; | |
30482 | PyObject * obj1 = 0 ; | |
30483 | char *kwnames[] = { | |
30484 | (char *) "self",(char *) "pt", NULL | |
30485 | }; | |
30486 | ||
30487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30490 | { |
30491 | arg2 = &temp2; | |
30492 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30493 | } | |
30494 | { | |
30495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30496 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
30497 | ||
30498 | wxPyEndAllowThreads(__tstate); | |
30499 | if (PyErr_Occurred()) SWIG_fail; | |
30500 | } | |
30501 | { | |
30502 | wxPoint * resultptr; | |
093d3ff1 | 30503 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 30504 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
30505 | } |
30506 | return resultobj; | |
30507 | fail: | |
30508 | return NULL; | |
30509 | } | |
30510 | ||
30511 | ||
c32bde28 | 30512 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30513 | PyObject *resultobj; |
30514 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30515 | wxPoint *arg2 = 0 ; | |
30516 | wxPoint result; | |
30517 | wxPoint temp2 ; | |
30518 | PyObject * obj0 = 0 ; | |
30519 | PyObject * obj1 = 0 ; | |
30520 | char *kwnames[] = { | |
30521 | (char *) "self",(char *) "pt", NULL | |
30522 | }; | |
30523 | ||
30524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30525 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30526 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30527 | { |
30528 | arg2 = &temp2; | |
30529 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30530 | } | |
30531 | { | |
30532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30533 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
30534 | ||
30535 | wxPyEndAllowThreads(__tstate); | |
30536 | if (PyErr_Occurred()) SWIG_fail; | |
30537 | } | |
30538 | { | |
30539 | wxPoint * resultptr; | |
093d3ff1 | 30540 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 30541 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
30542 | } |
30543 | return resultobj; | |
30544 | fail: | |
30545 | return NULL; | |
30546 | } | |
30547 | ||
30548 | ||
c32bde28 | 30549 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30550 | PyObject *resultobj; |
30551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce RD |
30552 | int arg2 ; |
30553 | int arg3 ; | |
093d3ff1 | 30554 | wxHitTest result; |
d14a1e28 | 30555 | PyObject * obj0 = 0 ; |
994141e6 RD |
30556 | PyObject * obj1 = 0 ; |
30557 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
30558 | char *kwnames[] = { |
30559 | (char *) "self",(char *) "x",(char *) "y", NULL | |
30560 | }; | |
30561 | ||
994141e6 | 30562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
30563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30565 | { | |
30566 | arg2 = (int)(SWIG_As_int(obj1)); | |
30567 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30568 | } | |
30569 | { | |
30570 | arg3 = (int)(SWIG_As_int(obj2)); | |
30571 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30572 | } | |
d14a1e28 RD |
30573 | { |
30574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30575 | result = (wxHitTest)((wxWindow const *)arg1)->HitTest(arg2,arg3); |
d14a1e28 RD |
30576 | |
30577 | wxPyEndAllowThreads(__tstate); | |
30578 | if (PyErr_Occurred()) SWIG_fail; | |
30579 | } | |
093d3ff1 | 30580 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30581 | return resultobj; |
30582 | fail: | |
30583 | return NULL; | |
30584 | } | |
30585 | ||
30586 | ||
c32bde28 | 30587 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30588 | PyObject *resultobj; |
30589 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30590 | wxPoint *arg2 = 0 ; | |
093d3ff1 | 30591 | wxHitTest result; |
d14a1e28 RD |
30592 | wxPoint temp2 ; |
30593 | PyObject * obj0 = 0 ; | |
30594 | PyObject * obj1 = 0 ; | |
30595 | char *kwnames[] = { | |
30596 | (char *) "self",(char *) "pt", NULL | |
30597 | }; | |
30598 | ||
30599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30602 | { |
30603 | arg2 = &temp2; | |
30604 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30605 | } | |
30606 | { | |
30607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30608 | result = (wxHitTest)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); |
d14a1e28 RD |
30609 | |
30610 | wxPyEndAllowThreads(__tstate); | |
30611 | if (PyErr_Occurred()) SWIG_fail; | |
30612 | } | |
093d3ff1 | 30613 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30614 | return resultobj; |
30615 | fail: | |
30616 | return NULL; | |
30617 | } | |
30618 | ||
30619 | ||
c32bde28 | 30620 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
30621 | PyObject *resultobj; |
30622 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30623 | long arg2 ; | |
093d3ff1 | 30624 | wxBorder result; |
d14a1e28 | 30625 | PyObject * obj0 = 0 ; |
994141e6 | 30626 | PyObject * obj1 = 0 ; |
d14a1e28 | 30627 | |
15afbcd0 | 30628 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&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; | |
30631 | { | |
30632 | arg2 = (long)(SWIG_As_long(obj1)); | |
30633 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30634 | } | |
d14a1e28 RD |
30635 | { |
30636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30637 | result = (wxBorder)((wxWindow const *)arg1)->GetBorder(arg2); |
d14a1e28 RD |
30638 | |
30639 | wxPyEndAllowThreads(__tstate); | |
30640 | if (PyErr_Occurred()) SWIG_fail; | |
30641 | } | |
093d3ff1 | 30642 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30643 | return resultobj; |
30644 | fail: | |
30645 | return NULL; | |
30646 | } | |
30647 | ||
30648 | ||
c32bde28 | 30649 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
30650 | PyObject *resultobj; |
30651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
093d3ff1 | 30652 | wxBorder result; |
d14a1e28 | 30653 | PyObject * obj0 = 0 ; |
d14a1e28 | 30654 | |
15afbcd0 | 30655 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
093d3ff1 RD |
30656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30658 | { |
30659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30660 | result = (wxBorder)((wxWindow const *)arg1)->GetBorder(); |
d14a1e28 RD |
30661 | |
30662 | wxPyEndAllowThreads(__tstate); | |
30663 | if (PyErr_Occurred()) SWIG_fail; | |
30664 | } | |
093d3ff1 | 30665 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
30666 | return resultobj; |
30667 | fail: | |
30668 | return NULL; | |
30669 | } | |
30670 | ||
30671 | ||
15afbcd0 RD |
30672 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
30673 | int argc; | |
30674 | PyObject *argv[3]; | |
30675 | int ii; | |
30676 | ||
30677 | argc = PyObject_Length(args); | |
30678 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
30679 | argv[ii] = PyTuple_GetItem(args,ii); | |
30680 | } | |
30681 | if (argc == 1) { | |
30682 | int _v; | |
30683 | { | |
30684 | void *ptr; | |
30685 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
30686 | _v = 0; | |
30687 | PyErr_Clear(); | |
30688 | } else { | |
30689 | _v = 1; | |
30690 | } | |
30691 | } | |
30692 | if (_v) { | |
30693 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
30694 | } | |
30695 | } | |
30696 | if (argc == 2) { | |
30697 | int _v; | |
30698 | { | |
30699 | void *ptr; | |
30700 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
30701 | _v = 0; | |
30702 | PyErr_Clear(); | |
30703 | } else { | |
30704 | _v = 1; | |
30705 | } | |
30706 | } | |
30707 | if (_v) { | |
c32bde28 | 30708 | _v = SWIG_Check_long(argv[1]); |
15afbcd0 RD |
30709 | if (_v) { |
30710 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
30711 | } | |
30712 | } | |
30713 | } | |
30714 | ||
093d3ff1 | 30715 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'Window_GetBorder'"); |
15afbcd0 RD |
30716 | return NULL; |
30717 | } | |
30718 | ||
30719 | ||
c32bde28 | 30720 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30721 | PyObject *resultobj; |
30722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30723 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
30724 | PyObject * obj0 = 0 ; | |
994141e6 | 30725 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30726 | char *kwnames[] = { |
30727 | (char *) "self",(char *) "flags", NULL | |
30728 | }; | |
30729 | ||
994141e6 | 30730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30731 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30732 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 30733 | if (obj1) { |
093d3ff1 RD |
30734 | { |
30735 | arg2 = (long)(SWIG_As_long(obj1)); | |
30736 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30737 | } | |
994141e6 | 30738 | } |
d14a1e28 RD |
30739 | { |
30740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30741 | (arg1)->UpdateWindowUI(arg2); | |
30742 | ||
30743 | wxPyEndAllowThreads(__tstate); | |
30744 | if (PyErr_Occurred()) SWIG_fail; | |
30745 | } | |
30746 | Py_INCREF(Py_None); resultobj = Py_None; | |
30747 | return resultobj; | |
30748 | fail: | |
30749 | return NULL; | |
30750 | } | |
30751 | ||
30752 | ||
c32bde28 | 30753 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30754 | PyObject *resultobj; |
30755 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30756 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
30757 | int arg3 = (int) -1 ; |
30758 | int arg4 = (int) -1 ; | |
d14a1e28 RD |
30759 | bool result; |
30760 | PyObject * obj0 = 0 ; | |
30761 | PyObject * obj1 = 0 ; | |
994141e6 RD |
30762 | PyObject * obj2 = 0 ; |
30763 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30764 | char *kwnames[] = { |
30765 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
30766 | }; | |
30767 | ||
b0503257 | 30768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30771 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
30772 | if (SWIG_arg_fail(2)) SWIG_fail; | |
b0503257 | 30773 | if (obj2) { |
093d3ff1 RD |
30774 | { |
30775 | arg3 = (int)(SWIG_As_int(obj2)); | |
30776 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30777 | } | |
b0503257 RD |
30778 | } |
30779 | if (obj3) { | |
093d3ff1 RD |
30780 | { |
30781 | arg4 = (int)(SWIG_As_int(obj3)); | |
30782 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30783 | } | |
b0503257 | 30784 | } |
d14a1e28 RD |
30785 | { |
30786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30787 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
30788 | ||
30789 | wxPyEndAllowThreads(__tstate); | |
30790 | if (PyErr_Occurred()) SWIG_fail; | |
30791 | } | |
4f89f6a3 RD |
30792 | { |
30793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30794 | } | |
d14a1e28 RD |
30795 | return resultobj; |
30796 | fail: | |
30797 | return NULL; | |
30798 | } | |
30799 | ||
30800 | ||
c32bde28 | 30801 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30802 | PyObject *resultobj; |
30803 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30804 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
30805 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30806 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d14a1e28 RD |
30807 | bool result; |
30808 | wxPoint temp3 ; | |
30809 | PyObject * obj0 = 0 ; | |
30810 | PyObject * obj1 = 0 ; | |
30811 | PyObject * obj2 = 0 ; | |
30812 | char *kwnames[] = { | |
30813 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
30814 | }; | |
30815 | ||
b0503257 | 30816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
30817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30819 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
30820 | if (SWIG_arg_fail(2)) SWIG_fail; | |
b0503257 RD |
30821 | if (obj2) { |
30822 | { | |
30823 | arg3 = &temp3; | |
30824 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30825 | } | |
d14a1e28 RD |
30826 | } |
30827 | { | |
30828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30829 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
30830 | ||
30831 | wxPyEndAllowThreads(__tstate); | |
30832 | if (PyErr_Occurred()) SWIG_fail; | |
30833 | } | |
4f89f6a3 RD |
30834 | { |
30835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30836 | } | |
d14a1e28 RD |
30837 | return resultobj; |
30838 | fail: | |
30839 | return NULL; | |
30840 | } | |
30841 | ||
30842 | ||
c32bde28 | 30843 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30844 | PyObject *resultobj; |
30845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30846 | long result; | |
30847 | PyObject * obj0 = 0 ; | |
30848 | char *kwnames[] = { | |
30849 | (char *) "self", NULL | |
30850 | }; | |
30851 | ||
30852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30855 | { |
30856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30857 | result = (long)wxWindow_GetHandle(arg1); | |
30858 | ||
30859 | wxPyEndAllowThreads(__tstate); | |
30860 | if (PyErr_Occurred()) SWIG_fail; | |
30861 | } | |
093d3ff1 RD |
30862 | { |
30863 | resultobj = SWIG_From_long((long)(result)); | |
30864 | } | |
d14a1e28 RD |
30865 | return resultobj; |
30866 | fail: | |
30867 | return NULL; | |
30868 | } | |
30869 | ||
30870 | ||
7e63a440 RD |
30871 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
30872 | PyObject *resultobj; | |
30873 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30874 | long arg2 ; | |
30875 | PyObject * obj0 = 0 ; | |
30876 | PyObject * obj1 = 0 ; | |
30877 | char *kwnames[] = { | |
30878 | (char *) "self",(char *) "handle", NULL | |
30879 | }; | |
30880 | ||
30881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30884 | { | |
30885 | arg2 = (long)(SWIG_As_long(obj1)); | |
30886 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30887 | } | |
7e63a440 RD |
30888 | { |
30889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30890 | wxWindow_AssociateHandle(arg1,arg2); | |
30891 | ||
30892 | wxPyEndAllowThreads(__tstate); | |
30893 | if (PyErr_Occurred()) SWIG_fail; | |
30894 | } | |
30895 | Py_INCREF(Py_None); resultobj = Py_None; | |
30896 | return resultobj; | |
30897 | fail: | |
30898 | return NULL; | |
30899 | } | |
30900 | ||
30901 | ||
30902 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
30903 | PyObject *resultobj; | |
30904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30905 | PyObject * obj0 = 0 ; | |
30906 | char *kwnames[] = { | |
30907 | (char *) "self", NULL | |
30908 | }; | |
30909 | ||
30910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7e63a440 RD |
30913 | { |
30914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30915 | (arg1)->DissociateHandle(); | |
30916 | ||
30917 | wxPyEndAllowThreads(__tstate); | |
30918 | if (PyErr_Occurred()) SWIG_fail; | |
30919 | } | |
30920 | Py_INCREF(Py_None); resultobj = Py_None; | |
30921 | return resultobj; | |
30922 | fail: | |
30923 | return NULL; | |
30924 | } | |
30925 | ||
30926 | ||
c32bde28 | 30927 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30928 | PyObject *resultobj; |
30929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30930 | int arg2 ; | |
30931 | bool result; | |
30932 | PyObject * obj0 = 0 ; | |
994141e6 | 30933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30934 | char *kwnames[] = { |
30935 | (char *) "self",(char *) "orient", NULL | |
30936 | }; | |
30937 | ||
994141e6 | 30938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30941 | { | |
30942 | arg2 = (int)(SWIG_As_int(obj1)); | |
30943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30944 | } | |
d14a1e28 RD |
30945 | { |
30946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30947 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
30948 | ||
30949 | wxPyEndAllowThreads(__tstate); | |
30950 | if (PyErr_Occurred()) SWIG_fail; | |
30951 | } | |
4f89f6a3 RD |
30952 | { |
30953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30954 | } | |
d14a1e28 RD |
30955 | return resultobj; |
30956 | fail: | |
30957 | return NULL; | |
30958 | } | |
30959 | ||
30960 | ||
c32bde28 | 30961 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30962 | PyObject *resultobj; |
30963 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30964 | int arg2 ; | |
30965 | int arg3 ; | |
30966 | int arg4 ; | |
30967 | int arg5 ; | |
ae8162c8 | 30968 | bool arg6 = (bool) true ; |
d14a1e28 | 30969 | PyObject * obj0 = 0 ; |
994141e6 RD |
30970 | PyObject * obj1 = 0 ; |
30971 | PyObject * obj2 = 0 ; | |
30972 | PyObject * obj3 = 0 ; | |
30973 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
30974 | PyObject * obj5 = 0 ; |
30975 | char *kwnames[] = { | |
41e2b43e | 30976 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
30977 | }; |
30978 | ||
994141e6 | 30979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
30980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30982 | { | |
30983 | arg2 = (int)(SWIG_As_int(obj1)); | |
30984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30985 | } | |
30986 | { | |
30987 | arg3 = (int)(SWIG_As_int(obj2)); | |
30988 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30989 | } | |
30990 | { | |
30991 | arg4 = (int)(SWIG_As_int(obj3)); | |
30992 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30993 | } | |
30994 | { | |
30995 | arg5 = (int)(SWIG_As_int(obj4)); | |
30996 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30997 | } | |
d14a1e28 | 30998 | if (obj5) { |
093d3ff1 RD |
30999 | { |
31000 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
31001 | if (SWIG_arg_fail(6)) SWIG_fail; | |
31002 | } | |
d14a1e28 RD |
31003 | } |
31004 | { | |
31005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31006 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
31007 | ||
31008 | wxPyEndAllowThreads(__tstate); | |
31009 | if (PyErr_Occurred()) SWIG_fail; | |
31010 | } | |
31011 | Py_INCREF(Py_None); resultobj = Py_None; | |
31012 | return resultobj; | |
31013 | fail: | |
31014 | return NULL; | |
31015 | } | |
31016 | ||
31017 | ||
c32bde28 | 31018 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31019 | PyObject *resultobj; |
31020 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31021 | int arg2 ; | |
31022 | int arg3 ; | |
ae8162c8 | 31023 | bool arg4 = (bool) true ; |
d14a1e28 | 31024 | PyObject * obj0 = 0 ; |
994141e6 RD |
31025 | PyObject * obj1 = 0 ; |
31026 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
31027 | PyObject * obj3 = 0 ; |
31028 | char *kwnames[] = { | |
15afbcd0 | 31029 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
31030 | }; |
31031 | ||
994141e6 | 31032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
31033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31035 | { | |
31036 | arg2 = (int)(SWIG_As_int(obj1)); | |
31037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31038 | } | |
31039 | { | |
31040 | arg3 = (int)(SWIG_As_int(obj2)); | |
31041 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31042 | } | |
d14a1e28 | 31043 | if (obj3) { |
093d3ff1 RD |
31044 | { |
31045 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
31046 | if (SWIG_arg_fail(4)) SWIG_fail; | |
31047 | } | |
d14a1e28 RD |
31048 | } |
31049 | { | |
31050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31051 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
31052 | ||
31053 | wxPyEndAllowThreads(__tstate); | |
31054 | if (PyErr_Occurred()) SWIG_fail; | |
31055 | } | |
31056 | Py_INCREF(Py_None); resultobj = Py_None; | |
31057 | return resultobj; | |
31058 | fail: | |
31059 | return NULL; | |
31060 | } | |
31061 | ||
31062 | ||
c32bde28 | 31063 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31064 | PyObject *resultobj; |
31065 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31066 | int arg2 ; | |
31067 | int result; | |
31068 | PyObject * obj0 = 0 ; | |
994141e6 | 31069 | PyObject * obj1 = 0 ; |
d14a1e28 | 31070 | char *kwnames[] = { |
15afbcd0 | 31071 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
31072 | }; |
31073 | ||
994141e6 | 31074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31077 | { | |
31078 | arg2 = (int)(SWIG_As_int(obj1)); | |
31079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31080 | } | |
d14a1e28 RD |
31081 | { |
31082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31083 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
31084 | ||
31085 | wxPyEndAllowThreads(__tstate); | |
31086 | if (PyErr_Occurred()) SWIG_fail; | |
31087 | } | |
093d3ff1 RD |
31088 | { |
31089 | resultobj = SWIG_From_int((int)(result)); | |
31090 | } | |
d14a1e28 RD |
31091 | return resultobj; |
31092 | fail: | |
31093 | return NULL; | |
31094 | } | |
31095 | ||
31096 | ||
c32bde28 | 31097 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31098 | PyObject *resultobj; |
31099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31100 | int arg2 ; | |
31101 | int result; | |
31102 | PyObject * obj0 = 0 ; | |
994141e6 | 31103 | PyObject * obj1 = 0 ; |
d14a1e28 | 31104 | char *kwnames[] = { |
15afbcd0 | 31105 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
31106 | }; |
31107 | ||
994141e6 | 31108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31111 | { | |
31112 | arg2 = (int)(SWIG_As_int(obj1)); | |
31113 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31114 | } | |
d14a1e28 RD |
31115 | { |
31116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31117 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
31118 | ||
31119 | wxPyEndAllowThreads(__tstate); | |
31120 | if (PyErr_Occurred()) SWIG_fail; | |
31121 | } | |
093d3ff1 RD |
31122 | { |
31123 | resultobj = SWIG_From_int((int)(result)); | |
31124 | } | |
d14a1e28 RD |
31125 | return resultobj; |
31126 | fail: | |
31127 | return NULL; | |
31128 | } | |
31129 | ||
31130 | ||
c32bde28 | 31131 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31132 | PyObject *resultobj; |
31133 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31134 | int arg2 ; | |
31135 | int result; | |
31136 | PyObject * obj0 = 0 ; | |
994141e6 | 31137 | PyObject * obj1 = 0 ; |
d14a1e28 | 31138 | char *kwnames[] = { |
15afbcd0 | 31139 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
31140 | }; |
31141 | ||
994141e6 | 31142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31145 | { | |
31146 | arg2 = (int)(SWIG_As_int(obj1)); | |
31147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31148 | } | |
d14a1e28 RD |
31149 | { |
31150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31151 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
31152 | ||
31153 | wxPyEndAllowThreads(__tstate); | |
31154 | if (PyErr_Occurred()) SWIG_fail; | |
31155 | } | |
093d3ff1 RD |
31156 | { |
31157 | resultobj = SWIG_From_int((int)(result)); | |
31158 | } | |
d14a1e28 RD |
31159 | return resultobj; |
31160 | fail: | |
31161 | return NULL; | |
31162 | } | |
31163 | ||
31164 | ||
c32bde28 | 31165 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31166 | PyObject *resultobj; |
31167 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31168 | int arg2 ; | |
31169 | int arg3 ; | |
31170 | wxRect *arg4 = (wxRect *) NULL ; | |
31171 | PyObject * obj0 = 0 ; | |
994141e6 RD |
31172 | PyObject * obj1 = 0 ; |
31173 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
31174 | PyObject * obj3 = 0 ; |
31175 | char *kwnames[] = { | |
31176 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
31177 | }; | |
31178 | ||
994141e6 | 31179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
31180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31182 | { | |
31183 | arg2 = (int)(SWIG_As_int(obj1)); | |
31184 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31185 | } | |
31186 | { | |
31187 | arg3 = (int)(SWIG_As_int(obj2)); | |
31188 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31189 | } | |
d14a1e28 | 31190 | if (obj3) { |
093d3ff1 RD |
31191 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
31192 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
31193 | } |
31194 | { | |
31195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31196 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
31197 | ||
31198 | wxPyEndAllowThreads(__tstate); | |
31199 | if (PyErr_Occurred()) SWIG_fail; | |
31200 | } | |
31201 | Py_INCREF(Py_None); resultobj = Py_None; | |
31202 | return resultobj; | |
31203 | fail: | |
31204 | return NULL; | |
31205 | } | |
31206 | ||
31207 | ||
c32bde28 | 31208 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31209 | PyObject *resultobj; |
31210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31211 | int arg2 ; | |
31212 | bool result; | |
31213 | PyObject * obj0 = 0 ; | |
994141e6 | 31214 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31215 | char *kwnames[] = { |
31216 | (char *) "self",(char *) "lines", NULL | |
31217 | }; | |
31218 | ||
994141e6 | 31219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31222 | { | |
31223 | arg2 = (int)(SWIG_As_int(obj1)); | |
31224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31225 | } | |
d14a1e28 RD |
31226 | { |
31227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31228 | result = (bool)(arg1)->ScrollLines(arg2); | |
31229 | ||
31230 | wxPyEndAllowThreads(__tstate); | |
31231 | if (PyErr_Occurred()) SWIG_fail; | |
31232 | } | |
4f89f6a3 RD |
31233 | { |
31234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31235 | } | |
d14a1e28 RD |
31236 | return resultobj; |
31237 | fail: | |
31238 | return NULL; | |
31239 | } | |
31240 | ||
31241 | ||
c32bde28 | 31242 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31243 | PyObject *resultobj; |
31244 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31245 | int arg2 ; | |
31246 | bool result; | |
31247 | PyObject * obj0 = 0 ; | |
994141e6 | 31248 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31249 | char *kwnames[] = { |
31250 | (char *) "self",(char *) "pages", NULL | |
31251 | }; | |
31252 | ||
994141e6 | 31253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31256 | { | |
31257 | arg2 = (int)(SWIG_As_int(obj1)); | |
31258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31259 | } | |
d14a1e28 RD |
31260 | { |
31261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31262 | result = (bool)(arg1)->ScrollPages(arg2); | |
31263 | ||
31264 | wxPyEndAllowThreads(__tstate); | |
31265 | if (PyErr_Occurred()) SWIG_fail; | |
31266 | } | |
4f89f6a3 RD |
31267 | { |
31268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31269 | } | |
d14a1e28 RD |
31270 | return resultobj; |
31271 | fail: | |
31272 | return NULL; | |
31273 | } | |
31274 | ||
31275 | ||
c32bde28 | 31276 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31277 | PyObject *resultobj; |
31278 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31279 | bool result; | |
31280 | PyObject * obj0 = 0 ; | |
31281 | char *kwnames[] = { | |
31282 | (char *) "self", NULL | |
31283 | }; | |
31284 | ||
31285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31288 | { |
31289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31290 | result = (bool)(arg1)->LineUp(); | |
31291 | ||
31292 | wxPyEndAllowThreads(__tstate); | |
31293 | if (PyErr_Occurred()) SWIG_fail; | |
31294 | } | |
4f89f6a3 RD |
31295 | { |
31296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31297 | } | |
d14a1e28 RD |
31298 | return resultobj; |
31299 | fail: | |
31300 | return NULL; | |
31301 | } | |
31302 | ||
31303 | ||
c32bde28 | 31304 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31305 | PyObject *resultobj; |
31306 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31307 | bool result; | |
31308 | PyObject * obj0 = 0 ; | |
31309 | char *kwnames[] = { | |
31310 | (char *) "self", NULL | |
31311 | }; | |
31312 | ||
31313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31316 | { |
31317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31318 | result = (bool)(arg1)->LineDown(); | |
31319 | ||
31320 | wxPyEndAllowThreads(__tstate); | |
31321 | if (PyErr_Occurred()) SWIG_fail; | |
31322 | } | |
4f89f6a3 RD |
31323 | { |
31324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31325 | } | |
d14a1e28 RD |
31326 | return resultobj; |
31327 | fail: | |
31328 | return NULL; | |
31329 | } | |
31330 | ||
31331 | ||
c32bde28 | 31332 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31333 | PyObject *resultobj; |
31334 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31335 | bool result; | |
31336 | PyObject * obj0 = 0 ; | |
31337 | char *kwnames[] = { | |
31338 | (char *) "self", NULL | |
31339 | }; | |
31340 | ||
31341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31344 | { |
31345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31346 | result = (bool)(arg1)->PageUp(); | |
31347 | ||
31348 | wxPyEndAllowThreads(__tstate); | |
31349 | if (PyErr_Occurred()) SWIG_fail; | |
31350 | } | |
4f89f6a3 RD |
31351 | { |
31352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31353 | } | |
d14a1e28 RD |
31354 | return resultobj; |
31355 | fail: | |
31356 | return NULL; | |
31357 | } | |
31358 | ||
31359 | ||
c32bde28 | 31360 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31361 | PyObject *resultobj; |
31362 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31363 | bool result; | |
31364 | PyObject * obj0 = 0 ; | |
31365 | char *kwnames[] = { | |
31366 | (char *) "self", NULL | |
31367 | }; | |
31368 | ||
31369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31372 | { |
31373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31374 | result = (bool)(arg1)->PageDown(); | |
31375 | ||
31376 | wxPyEndAllowThreads(__tstate); | |
31377 | if (PyErr_Occurred()) SWIG_fail; | |
31378 | } | |
4f89f6a3 RD |
31379 | { |
31380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31381 | } | |
d14a1e28 RD |
31382 | return resultobj; |
31383 | fail: | |
31384 | return NULL; | |
31385 | } | |
31386 | ||
31387 | ||
c32bde28 | 31388 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31389 | PyObject *resultobj; |
31390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31391 | wxString *arg2 = 0 ; | |
ae8162c8 | 31392 | bool temp2 = false ; |
d14a1e28 RD |
31393 | PyObject * obj0 = 0 ; |
31394 | PyObject * obj1 = 0 ; | |
31395 | char *kwnames[] = { | |
31396 | (char *) "self",(char *) "text", NULL | |
31397 | }; | |
31398 | ||
31399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31402 | { |
31403 | arg2 = wxString_in_helper(obj1); | |
31404 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31405 | temp2 = true; |
d14a1e28 RD |
31406 | } |
31407 | { | |
31408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31409 | (arg1)->SetHelpText((wxString const &)*arg2); | |
31410 | ||
31411 | wxPyEndAllowThreads(__tstate); | |
31412 | if (PyErr_Occurred()) SWIG_fail; | |
31413 | } | |
31414 | Py_INCREF(Py_None); resultobj = Py_None; | |
31415 | { | |
31416 | if (temp2) | |
31417 | delete arg2; | |
31418 | } | |
31419 | return resultobj; | |
31420 | fail: | |
31421 | { | |
31422 | if (temp2) | |
31423 | delete arg2; | |
31424 | } | |
31425 | return NULL; | |
31426 | } | |
31427 | ||
31428 | ||
c32bde28 | 31429 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31430 | PyObject *resultobj; |
31431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31432 | wxString *arg2 = 0 ; | |
ae8162c8 | 31433 | bool temp2 = false ; |
d14a1e28 RD |
31434 | PyObject * obj0 = 0 ; |
31435 | PyObject * obj1 = 0 ; | |
31436 | char *kwnames[] = { | |
31437 | (char *) "self",(char *) "text", NULL | |
31438 | }; | |
31439 | ||
31440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31443 | { |
31444 | arg2 = wxString_in_helper(obj1); | |
31445 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31446 | temp2 = true; |
d14a1e28 RD |
31447 | } |
31448 | { | |
31449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31450 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
31451 | ||
31452 | wxPyEndAllowThreads(__tstate); | |
31453 | if (PyErr_Occurred()) SWIG_fail; | |
31454 | } | |
31455 | Py_INCREF(Py_None); resultobj = Py_None; | |
31456 | { | |
31457 | if (temp2) | |
31458 | delete arg2; | |
31459 | } | |
31460 | return resultobj; | |
31461 | fail: | |
31462 | { | |
31463 | if (temp2) | |
31464 | delete arg2; | |
31465 | } | |
31466 | return NULL; | |
31467 | } | |
31468 | ||
31469 | ||
c32bde28 | 31470 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31471 | PyObject *resultobj; |
31472 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31473 | wxString result; | |
31474 | PyObject * obj0 = 0 ; | |
31475 | char *kwnames[] = { | |
31476 | (char *) "self", NULL | |
31477 | }; | |
31478 | ||
31479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31482 | { |
31483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31484 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
31485 | ||
31486 | wxPyEndAllowThreads(__tstate); | |
31487 | if (PyErr_Occurred()) SWIG_fail; | |
31488 | } | |
31489 | { | |
31490 | #if wxUSE_UNICODE | |
31491 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31492 | #else | |
31493 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31494 | #endif | |
31495 | } | |
31496 | return resultobj; | |
31497 | fail: | |
31498 | return NULL; | |
31499 | } | |
31500 | ||
31501 | ||
c32bde28 | 31502 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31503 | PyObject *resultobj; |
31504 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31505 | wxString *arg2 = 0 ; | |
ae8162c8 | 31506 | bool temp2 = false ; |
d14a1e28 RD |
31507 | PyObject * obj0 = 0 ; |
31508 | PyObject * obj1 = 0 ; | |
31509 | char *kwnames[] = { | |
31510 | (char *) "self",(char *) "tip", NULL | |
31511 | }; | |
31512 | ||
31513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31516 | { |
31517 | arg2 = wxString_in_helper(obj1); | |
31518 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31519 | temp2 = true; |
d14a1e28 RD |
31520 | } |
31521 | { | |
31522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31523 | (arg1)->SetToolTip((wxString const &)*arg2); | |
31524 | ||
31525 | wxPyEndAllowThreads(__tstate); | |
31526 | if (PyErr_Occurred()) SWIG_fail; | |
31527 | } | |
31528 | Py_INCREF(Py_None); resultobj = Py_None; | |
31529 | { | |
31530 | if (temp2) | |
31531 | delete arg2; | |
31532 | } | |
31533 | return resultobj; | |
31534 | fail: | |
31535 | { | |
31536 | if (temp2) | |
31537 | delete arg2; | |
31538 | } | |
31539 | return NULL; | |
31540 | } | |
31541 | ||
31542 | ||
c32bde28 | 31543 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31544 | PyObject *resultobj; |
31545 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31546 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
31547 | PyObject * obj0 = 0 ; | |
31548 | PyObject * obj1 = 0 ; | |
31549 | char *kwnames[] = { | |
31550 | (char *) "self",(char *) "tip", NULL | |
31551 | }; | |
31552 | ||
31553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31556 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0); | |
31557 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31558 | { |
31559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31560 | (arg1)->SetToolTip(arg2); | |
31561 | ||
31562 | wxPyEndAllowThreads(__tstate); | |
31563 | if (PyErr_Occurred()) SWIG_fail; | |
31564 | } | |
31565 | Py_INCREF(Py_None); resultobj = Py_None; | |
31566 | return resultobj; | |
31567 | fail: | |
31568 | return NULL; | |
31569 | } | |
31570 | ||
31571 | ||
c32bde28 | 31572 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31573 | PyObject *resultobj; |
31574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31575 | wxToolTip *result; | |
31576 | PyObject * obj0 = 0 ; | |
31577 | char *kwnames[] = { | |
31578 | (char *) "self", NULL | |
31579 | }; | |
31580 | ||
31581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31582 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31583 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31584 | { |
31585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31586 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
31587 | ||
31588 | wxPyEndAllowThreads(__tstate); | |
31589 | if (PyErr_Occurred()) SWIG_fail; | |
31590 | } | |
31591 | { | |
412d302d | 31592 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31593 | } |
31594 | return resultobj; | |
31595 | fail: | |
31596 | return NULL; | |
31597 | } | |
31598 | ||
31599 | ||
c32bde28 | 31600 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31601 | PyObject *resultobj; |
31602 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 31603 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
31604 | PyObject * obj0 = 0 ; |
31605 | PyObject * obj1 = 0 ; | |
31606 | char *kwnames[] = { | |
31607 | (char *) "self",(char *) "dropTarget", NULL | |
31608 | }; | |
31609 | ||
31610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31611 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31612 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31613 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
31614 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31615 | { |
31616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31617 | (arg1)->SetDropTarget(arg2); | |
31618 | ||
31619 | wxPyEndAllowThreads(__tstate); | |
31620 | if (PyErr_Occurred()) SWIG_fail; | |
31621 | } | |
31622 | Py_INCREF(Py_None); resultobj = Py_None; | |
31623 | return resultobj; | |
31624 | fail: | |
31625 | return NULL; | |
31626 | } | |
31627 | ||
31628 | ||
c32bde28 | 31629 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31630 | PyObject *resultobj; |
31631 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 31632 | wxPyDropTarget *result; |
d14a1e28 RD |
31633 | PyObject * obj0 = 0 ; |
31634 | char *kwnames[] = { | |
31635 | (char *) "self", NULL | |
31636 | }; | |
31637 | ||
31638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31641 | { |
31642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 31643 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
31644 | |
31645 | wxPyEndAllowThreads(__tstate); | |
31646 | if (PyErr_Occurred()) SWIG_fail; | |
31647 | } | |
15afbcd0 | 31648 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
31649 | return resultobj; |
31650 | fail: | |
31651 | return NULL; | |
31652 | } | |
31653 | ||
31654 | ||
c32bde28 | 31655 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31656 | PyObject *resultobj; |
31657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31658 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
31659 | PyObject * obj0 = 0 ; | |
31660 | PyObject * obj1 = 0 ; | |
31661 | char *kwnames[] = { | |
31662 | (char *) "self",(char *) "constraints", NULL | |
31663 | }; | |
31664 | ||
31665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31666 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31667 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31668 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); | |
31669 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31670 | { |
31671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31672 | (arg1)->SetConstraints(arg2); | |
31673 | ||
31674 | wxPyEndAllowThreads(__tstate); | |
31675 | if (PyErr_Occurred()) SWIG_fail; | |
31676 | } | |
31677 | Py_INCREF(Py_None); resultobj = Py_None; | |
31678 | return resultobj; | |
31679 | fail: | |
31680 | return NULL; | |
31681 | } | |
31682 | ||
31683 | ||
c32bde28 | 31684 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31685 | PyObject *resultobj; |
31686 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31687 | wxLayoutConstraints *result; | |
31688 | PyObject * obj0 = 0 ; | |
31689 | char *kwnames[] = { | |
31690 | (char *) "self", NULL | |
31691 | }; | |
31692 | ||
31693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31694 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31695 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31696 | { |
31697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31698 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
31699 | ||
31700 | wxPyEndAllowThreads(__tstate); | |
31701 | if (PyErr_Occurred()) SWIG_fail; | |
31702 | } | |
15afbcd0 | 31703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
31704 | return resultobj; |
31705 | fail: | |
31706 | return NULL; | |
31707 | } | |
31708 | ||
31709 | ||
c32bde28 | 31710 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31711 | PyObject *resultobj; |
31712 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31713 | bool arg2 ; | |
31714 | PyObject * obj0 = 0 ; | |
31715 | PyObject * obj1 = 0 ; | |
31716 | char *kwnames[] = { | |
31717 | (char *) "self",(char *) "autoLayout", NULL | |
31718 | }; | |
31719 | ||
31720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31721 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31722 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31723 | { | |
31724 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
31725 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31726 | } | |
d14a1e28 RD |
31727 | { |
31728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31729 | (arg1)->SetAutoLayout(arg2); | |
31730 | ||
31731 | wxPyEndAllowThreads(__tstate); | |
31732 | if (PyErr_Occurred()) SWIG_fail; | |
31733 | } | |
31734 | Py_INCREF(Py_None); resultobj = Py_None; | |
31735 | return resultobj; | |
31736 | fail: | |
31737 | return NULL; | |
31738 | } | |
31739 | ||
31740 | ||
c32bde28 | 31741 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31742 | PyObject *resultobj; |
31743 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31744 | bool result; | |
31745 | PyObject * obj0 = 0 ; | |
31746 | char *kwnames[] = { | |
31747 | (char *) "self", NULL | |
31748 | }; | |
31749 | ||
31750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31753 | { |
31754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31755 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
31756 | ||
31757 | wxPyEndAllowThreads(__tstate); | |
31758 | if (PyErr_Occurred()) SWIG_fail; | |
31759 | } | |
4f89f6a3 RD |
31760 | { |
31761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31762 | } | |
d14a1e28 RD |
31763 | return resultobj; |
31764 | fail: | |
31765 | return NULL; | |
31766 | } | |
31767 | ||
31768 | ||
c32bde28 | 31769 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31770 | PyObject *resultobj; |
31771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31772 | bool result; | |
31773 | PyObject * obj0 = 0 ; | |
31774 | char *kwnames[] = { | |
31775 | (char *) "self", NULL | |
31776 | }; | |
31777 | ||
31778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31781 | { |
31782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31783 | result = (bool)(arg1)->Layout(); | |
31784 | ||
31785 | wxPyEndAllowThreads(__tstate); | |
31786 | if (PyErr_Occurred()) SWIG_fail; | |
31787 | } | |
4f89f6a3 RD |
31788 | { |
31789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31790 | } | |
d14a1e28 RD |
31791 | return resultobj; |
31792 | fail: | |
31793 | return NULL; | |
31794 | } | |
31795 | ||
31796 | ||
c32bde28 | 31797 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31798 | PyObject *resultobj; |
31799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31800 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 31801 | bool arg3 = (bool) true ; |
d14a1e28 RD |
31802 | PyObject * obj0 = 0 ; |
31803 | PyObject * obj1 = 0 ; | |
31804 | PyObject * obj2 = 0 ; | |
31805 | char *kwnames[] = { | |
31806 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
31807 | }; | |
31808 | ||
31809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
31810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31812 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31813 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 31814 | if (obj2) { |
093d3ff1 RD |
31815 | { |
31816 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
31817 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31818 | } | |
d14a1e28 RD |
31819 | } |
31820 | { | |
31821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31822 | (arg1)->SetSizer(arg2,arg3); | |
31823 | ||
31824 | wxPyEndAllowThreads(__tstate); | |
31825 | if (PyErr_Occurred()) SWIG_fail; | |
31826 | } | |
31827 | Py_INCREF(Py_None); resultobj = Py_None; | |
31828 | return resultobj; | |
31829 | fail: | |
31830 | return NULL; | |
31831 | } | |
31832 | ||
31833 | ||
c32bde28 | 31834 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31835 | PyObject *resultobj; |
31836 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31837 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 31838 | bool arg3 = (bool) true ; |
d14a1e28 RD |
31839 | PyObject * obj0 = 0 ; |
31840 | PyObject * obj1 = 0 ; | |
31841 | PyObject * obj2 = 0 ; | |
31842 | char *kwnames[] = { | |
31843 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
31844 | }; | |
31845 | ||
31846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
31847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31849 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31850 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 31851 | if (obj2) { |
093d3ff1 RD |
31852 | { |
31853 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
31854 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31855 | } | |
d14a1e28 RD |
31856 | } |
31857 | { | |
31858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31859 | (arg1)->SetSizerAndFit(arg2,arg3); | |
31860 | ||
31861 | wxPyEndAllowThreads(__tstate); | |
31862 | if (PyErr_Occurred()) SWIG_fail; | |
31863 | } | |
31864 | Py_INCREF(Py_None); resultobj = Py_None; | |
31865 | return resultobj; | |
31866 | fail: | |
31867 | return NULL; | |
31868 | } | |
31869 | ||
31870 | ||
c32bde28 | 31871 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31872 | PyObject *resultobj; |
31873 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31874 | wxSizer *result; | |
31875 | PyObject * obj0 = 0 ; | |
31876 | char *kwnames[] = { | |
31877 | (char *) "self", NULL | |
31878 | }; | |
31879 | ||
31880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31883 | { |
31884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31885 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
31886 | ||
31887 | wxPyEndAllowThreads(__tstate); | |
31888 | if (PyErr_Occurred()) SWIG_fail; | |
31889 | } | |
31890 | { | |
412d302d | 31891 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
31892 | } |
31893 | return resultobj; | |
31894 | fail: | |
31895 | return NULL; | |
31896 | } | |
31897 | ||
31898 | ||
c32bde28 | 31899 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31900 | PyObject *resultobj; |
31901 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31902 | wxSizer *arg2 = (wxSizer *) 0 ; | |
31903 | PyObject * obj0 = 0 ; | |
31904 | PyObject * obj1 = 0 ; | |
31905 | char *kwnames[] = { | |
31906 | (char *) "self",(char *) "sizer", NULL | |
31907 | }; | |
31908 | ||
31909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31912 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
31913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31914 | { |
31915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31916 | (arg1)->SetContainingSizer(arg2); | |
31917 | ||
31918 | wxPyEndAllowThreads(__tstate); | |
31919 | if (PyErr_Occurred()) SWIG_fail; | |
31920 | } | |
31921 | Py_INCREF(Py_None); resultobj = Py_None; | |
31922 | return resultobj; | |
31923 | fail: | |
31924 | return NULL; | |
31925 | } | |
31926 | ||
31927 | ||
c32bde28 | 31928 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31929 | PyObject *resultobj; |
31930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31931 | wxSizer *result; | |
31932 | PyObject * obj0 = 0 ; | |
31933 | char *kwnames[] = { | |
31934 | (char *) "self", NULL | |
31935 | }; | |
31936 | ||
31937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31940 | { |
31941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31942 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
31943 | ||
31944 | wxPyEndAllowThreads(__tstate); | |
31945 | if (PyErr_Occurred()) SWIG_fail; | |
31946 | } | |
31947 | { | |
412d302d | 31948 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
31949 | } |
31950 | return resultobj; | |
31951 | fail: | |
31952 | return NULL; | |
31953 | } | |
31954 | ||
31955 | ||
c32bde28 | 31956 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
a95a7133 RD |
31957 | PyObject *resultobj; |
31958 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31959 | PyObject * obj0 = 0 ; | |
31960 | char *kwnames[] = { | |
31961 | (char *) "self", NULL | |
31962 | }; | |
31963 | ||
31964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 RD |
31967 | { |
31968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31969 | (arg1)->InheritAttributes(); | |
31970 | ||
31971 | wxPyEndAllowThreads(__tstate); | |
31972 | if (PyErr_Occurred()) SWIG_fail; | |
31973 | } | |
31974 | Py_INCREF(Py_None); resultobj = Py_None; | |
31975 | return resultobj; | |
31976 | fail: | |
31977 | return NULL; | |
31978 | } | |
31979 | ||
31980 | ||
c32bde28 | 31981 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
a95a7133 RD |
31982 | PyObject *resultobj; |
31983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31984 | bool result; | |
31985 | PyObject * obj0 = 0 ; | |
31986 | char *kwnames[] = { | |
31987 | (char *) "self", NULL | |
31988 | }; | |
31989 | ||
31990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31991 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31992 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 RD |
31993 | { |
31994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31995 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
31996 | ||
31997 | wxPyEndAllowThreads(__tstate); | |
31998 | if (PyErr_Occurred()) SWIG_fail; | |
31999 | } | |
32000 | { | |
32001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32002 | } | |
32003 | return resultobj; | |
32004 | fail: | |
32005 | return NULL; | |
32006 | } | |
32007 | ||
32008 | ||
c32bde28 | 32009 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32010 | PyObject *obj; |
32011 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32012 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
32013 | Py_INCREF(obj); | |
32014 | return Py_BuildValue((char *)""); | |
32015 | } | |
c32bde28 | 32016 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32017 | PyObject *resultobj; |
32018 | long arg1 ; | |
32019 | wxWindow *arg2 = (wxWindow *) NULL ; | |
32020 | wxWindow *result; | |
994141e6 | 32021 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
32022 | PyObject * obj1 = 0 ; |
32023 | char *kwnames[] = { | |
32024 | (char *) "id",(char *) "parent", NULL | |
32025 | }; | |
32026 | ||
994141e6 | 32027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
32028 | { |
32029 | arg1 = (long)(SWIG_As_long(obj0)); | |
32030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32031 | } | |
d14a1e28 | 32032 | if (obj1) { |
093d3ff1 RD |
32033 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32034 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32035 | } |
32036 | { | |
e3b71cb8 | 32037 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32039 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
32040 | ||
32041 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32042 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32043 | } |
32044 | { | |
412d302d | 32045 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32046 | } |
32047 | return resultobj; | |
32048 | fail: | |
32049 | return NULL; | |
32050 | } | |
32051 | ||
32052 | ||
c32bde28 | 32053 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32054 | PyObject *resultobj; |
32055 | wxString *arg1 = 0 ; | |
32056 | wxWindow *arg2 = (wxWindow *) NULL ; | |
32057 | wxWindow *result; | |
ae8162c8 | 32058 | bool temp1 = false ; |
d14a1e28 RD |
32059 | PyObject * obj0 = 0 ; |
32060 | PyObject * obj1 = 0 ; | |
32061 | char *kwnames[] = { | |
32062 | (char *) "name",(char *) "parent", NULL | |
32063 | }; | |
32064 | ||
32065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
32066 | { | |
32067 | arg1 = wxString_in_helper(obj0); | |
32068 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 32069 | temp1 = true; |
d14a1e28 RD |
32070 | } |
32071 | if (obj1) { | |
093d3ff1 RD |
32072 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32074 | } |
32075 | { | |
e3b71cb8 | 32076 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32078 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
32079 | ||
32080 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32081 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32082 | } |
32083 | { | |
412d302d | 32084 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32085 | } |
32086 | { | |
32087 | if (temp1) | |
32088 | delete arg1; | |
32089 | } | |
32090 | return resultobj; | |
32091 | fail: | |
32092 | { | |
32093 | if (temp1) | |
32094 | delete arg1; | |
32095 | } | |
32096 | return NULL; | |
32097 | } | |
32098 | ||
32099 | ||
c32bde28 | 32100 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32101 | PyObject *resultobj; |
32102 | wxString *arg1 = 0 ; | |
32103 | wxWindow *arg2 = (wxWindow *) NULL ; | |
32104 | wxWindow *result; | |
ae8162c8 | 32105 | bool temp1 = false ; |
d14a1e28 RD |
32106 | PyObject * obj0 = 0 ; |
32107 | PyObject * obj1 = 0 ; | |
32108 | char *kwnames[] = { | |
32109 | (char *) "label",(char *) "parent", NULL | |
32110 | }; | |
32111 | ||
32112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
32113 | { | |
32114 | arg1 = wxString_in_helper(obj0); | |
32115 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 32116 | temp1 = true; |
d14a1e28 RD |
32117 | } |
32118 | if (obj1) { | |
093d3ff1 RD |
32119 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32120 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32121 | } |
32122 | { | |
e3b71cb8 | 32123 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32125 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
32126 | ||
32127 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32128 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32129 | } |
32130 | { | |
412d302d | 32131 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32132 | } |
32133 | { | |
32134 | if (temp1) | |
32135 | delete arg1; | |
32136 | } | |
32137 | return resultobj; | |
32138 | fail: | |
32139 | { | |
32140 | if (temp1) | |
32141 | delete arg1; | |
32142 | } | |
32143 | return NULL; | |
32144 | } | |
32145 | ||
32146 | ||
c32bde28 | 32147 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 32148 | PyObject *resultobj; |
4276dc52 RD |
32149 | wxWindow *arg1 = (wxWindow *) 0 ; |
32150 | unsigned long arg2 ; | |
d14a1e28 RD |
32151 | wxWindow *result; |
32152 | PyObject * obj0 = 0 ; | |
4276dc52 | 32153 | PyObject * obj1 = 0 ; |
d14a1e28 | 32154 | char *kwnames[] = { |
4276dc52 | 32155 | (char *) "parent",(char *) "_hWnd", NULL |
d14a1e28 RD |
32156 | }; |
32157 | ||
4276dc52 | 32158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
32159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32161 | { | |
32162 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
32163 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32164 | } | |
d14a1e28 RD |
32165 | { |
32166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 32167 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); |
d14a1e28 RD |
32168 | |
32169 | wxPyEndAllowThreads(__tstate); | |
32170 | if (PyErr_Occurred()) SWIG_fail; | |
32171 | } | |
32172 | { | |
412d302d | 32173 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32174 | } |
32175 | return resultobj; | |
32176 | fail: | |
32177 | return NULL; | |
32178 | } | |
32179 | ||
32180 | ||
c32bde28 | 32181 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32182 | PyObject *resultobj; |
32183 | wxValidator *result; | |
32184 | char *kwnames[] = { | |
32185 | NULL | |
32186 | }; | |
32187 | ||
32188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
32189 | { | |
32190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32191 | result = (wxValidator *)new wxValidator(); | |
32192 | ||
32193 | wxPyEndAllowThreads(__tstate); | |
32194 | if (PyErr_Occurred()) SWIG_fail; | |
32195 | } | |
b0f7404b | 32196 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d14a1e28 RD |
32197 | return resultobj; |
32198 | fail: | |
32199 | return NULL; | |
32200 | } | |
32201 | ||
32202 | ||
c32bde28 | 32203 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32204 | PyObject *resultobj; |
32205 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32206 | wxValidator *result; | |
32207 | PyObject * obj0 = 0 ; | |
32208 | char *kwnames[] = { | |
32209 | (char *) "self", NULL | |
32210 | }; | |
32211 | ||
32212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32215 | { |
32216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32217 | result = (wxValidator *)(arg1)->Clone(); | |
32218 | ||
32219 | wxPyEndAllowThreads(__tstate); | |
32220 | if (PyErr_Occurred()) SWIG_fail; | |
32221 | } | |
32222 | { | |
412d302d | 32223 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32224 | } |
32225 | return resultobj; | |
32226 | fail: | |
32227 | return NULL; | |
32228 | } | |
32229 | ||
32230 | ||
c32bde28 | 32231 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32232 | PyObject *resultobj; |
32233 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32234 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32235 | bool result; | |
32236 | PyObject * obj0 = 0 ; | |
32237 | PyObject * obj1 = 0 ; | |
32238 | char *kwnames[] = { | |
32239 | (char *) "self",(char *) "parent", NULL | |
32240 | }; | |
32241 | ||
32242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32245 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32246 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32247 | { |
32248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32249 | result = (bool)(arg1)->Validate(arg2); | |
32250 | ||
32251 | wxPyEndAllowThreads(__tstate); | |
32252 | if (PyErr_Occurred()) SWIG_fail; | |
32253 | } | |
4f89f6a3 RD |
32254 | { |
32255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32256 | } | |
d14a1e28 RD |
32257 | return resultobj; |
32258 | fail: | |
32259 | return NULL; | |
32260 | } | |
32261 | ||
32262 | ||
c32bde28 | 32263 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32264 | PyObject *resultobj; |
32265 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32266 | bool result; | |
32267 | PyObject * obj0 = 0 ; | |
32268 | char *kwnames[] = { | |
32269 | (char *) "self", NULL | |
32270 | }; | |
32271 | ||
32272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32275 | { |
32276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32277 | result = (bool)(arg1)->TransferToWindow(); | |
32278 | ||
32279 | wxPyEndAllowThreads(__tstate); | |
32280 | if (PyErr_Occurred()) SWIG_fail; | |
32281 | } | |
4f89f6a3 RD |
32282 | { |
32283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32284 | } | |
d14a1e28 RD |
32285 | return resultobj; |
32286 | fail: | |
32287 | return NULL; | |
32288 | } | |
32289 | ||
32290 | ||
c32bde28 | 32291 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32292 | PyObject *resultobj; |
32293 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32294 | bool result; | |
32295 | PyObject * obj0 = 0 ; | |
32296 | char *kwnames[] = { | |
32297 | (char *) "self", NULL | |
32298 | }; | |
32299 | ||
32300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32303 | { |
32304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32305 | result = (bool)(arg1)->TransferFromWindow(); | |
32306 | ||
32307 | wxPyEndAllowThreads(__tstate); | |
32308 | if (PyErr_Occurred()) SWIG_fail; | |
32309 | } | |
4f89f6a3 RD |
32310 | { |
32311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32312 | } | |
d14a1e28 RD |
32313 | return resultobj; |
32314 | fail: | |
32315 | return NULL; | |
32316 | } | |
32317 | ||
32318 | ||
c32bde28 | 32319 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32320 | PyObject *resultobj; |
32321 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32322 | wxWindow *result; | |
32323 | PyObject * obj0 = 0 ; | |
32324 | char *kwnames[] = { | |
32325 | (char *) "self", NULL | |
32326 | }; | |
32327 | ||
32328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32331 | { |
32332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32333 | result = (wxWindow *)(arg1)->GetWindow(); | |
32334 | ||
32335 | wxPyEndAllowThreads(__tstate); | |
32336 | if (PyErr_Occurred()) SWIG_fail; | |
32337 | } | |
32338 | { | |
412d302d | 32339 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32340 | } |
32341 | return resultobj; | |
32342 | fail: | |
32343 | return NULL; | |
32344 | } | |
32345 | ||
32346 | ||
c32bde28 | 32347 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32348 | PyObject *resultobj; |
32349 | wxValidator *arg1 = (wxValidator *) 0 ; | |
32350 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32351 | PyObject * obj0 = 0 ; | |
32352 | PyObject * obj1 = 0 ; | |
32353 | char *kwnames[] = { | |
32354 | (char *) "self",(char *) "window", NULL | |
32355 | }; | |
32356 | ||
32357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); |
32359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32360 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32361 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32362 | { |
32363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32364 | (arg1)->SetWindow(arg2); | |
32365 | ||
32366 | wxPyEndAllowThreads(__tstate); | |
32367 | if (PyErr_Occurred()) SWIG_fail; | |
32368 | } | |
32369 | Py_INCREF(Py_None); resultobj = Py_None; | |
32370 | return resultobj; | |
32371 | fail: | |
32372 | return NULL; | |
32373 | } | |
32374 | ||
32375 | ||
c32bde28 | 32376 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32377 | PyObject *resultobj; |
32378 | bool result; | |
32379 | char *kwnames[] = { | |
32380 | NULL | |
32381 | }; | |
32382 | ||
32383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
32384 | { | |
32385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32386 | result = (bool)wxValidator::IsSilent(); | |
32387 | ||
32388 | wxPyEndAllowThreads(__tstate); | |
32389 | if (PyErr_Occurred()) SWIG_fail; | |
32390 | } | |
4f89f6a3 RD |
32391 | { |
32392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32393 | } | |
d14a1e28 RD |
32394 | return resultobj; |
32395 | fail: | |
32396 | return NULL; | |
32397 | } | |
32398 | ||
32399 | ||
c32bde28 | 32400 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 32401 | PyObject *resultobj; |
ae8162c8 | 32402 | int arg1 = (int) true ; |
994141e6 | 32403 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
32404 | char *kwnames[] = { |
32405 | (char *) "doIt", NULL | |
32406 | }; | |
32407 | ||
994141e6 RD |
32408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
32409 | if (obj0) { | |
093d3ff1 RD |
32410 | { |
32411 | arg1 = (int)(SWIG_As_int(obj0)); | |
32412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32413 | } | |
994141e6 | 32414 | } |
d14a1e28 RD |
32415 | { |
32416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32417 | wxValidator::SetBellOnError(arg1); | |
32418 | ||
32419 | wxPyEndAllowThreads(__tstate); | |
32420 | if (PyErr_Occurred()) SWIG_fail; | |
32421 | } | |
32422 | Py_INCREF(Py_None); resultobj = Py_None; | |
32423 | return resultobj; | |
32424 | fail: | |
32425 | return NULL; | |
32426 | } | |
32427 | ||
32428 | ||
c32bde28 | 32429 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32430 | PyObject *obj; |
32431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32432 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
32433 | Py_INCREF(obj); | |
32434 | return Py_BuildValue((char *)""); | |
32435 | } | |
c32bde28 | 32436 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32437 | PyObject *resultobj; |
32438 | wxPyValidator *result; | |
32439 | char *kwnames[] = { | |
32440 | NULL | |
32441 | }; | |
32442 | ||
32443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
32444 | { | |
32445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32446 | result = (wxPyValidator *)new wxPyValidator(); | |
32447 | ||
32448 | wxPyEndAllowThreads(__tstate); | |
32449 | if (PyErr_Occurred()) SWIG_fail; | |
32450 | } | |
15afbcd0 | 32451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
32452 | return resultobj; |
32453 | fail: | |
32454 | return NULL; | |
32455 | } | |
32456 | ||
32457 | ||
c32bde28 | 32458 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32459 | PyObject *resultobj; |
32460 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
32461 | PyObject *arg2 = (PyObject *) 0 ; | |
32462 | PyObject *arg3 = (PyObject *) 0 ; | |
ae8162c8 | 32463 | int arg4 = (int) true ; |
d14a1e28 RD |
32464 | PyObject * obj0 = 0 ; |
32465 | PyObject * obj1 = 0 ; | |
32466 | PyObject * obj2 = 0 ; | |
994141e6 | 32467 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
32468 | char *kwnames[] = { |
32469 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
32470 | }; | |
32471 | ||
994141e6 | 32472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
32473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyValidator, SWIG_POINTER_EXCEPTION | 0); |
32474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32475 | arg2 = obj1; |
32476 | arg3 = obj2; | |
994141e6 | 32477 | if (obj3) { |
093d3ff1 RD |
32478 | { |
32479 | arg4 = (int)(SWIG_As_int(obj3)); | |
32480 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32481 | } | |
994141e6 | 32482 | } |
d14a1e28 RD |
32483 | { |
32484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32485 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
32486 | ||
32487 | wxPyEndAllowThreads(__tstate); | |
32488 | if (PyErr_Occurred()) SWIG_fail; | |
32489 | } | |
32490 | Py_INCREF(Py_None); resultobj = Py_None; | |
32491 | return resultobj; | |
32492 | fail: | |
32493 | return NULL; | |
32494 | } | |
32495 | ||
32496 | ||
c32bde28 | 32497 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32498 | PyObject *obj; |
32499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32500 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
32501 | Py_INCREF(obj); | |
32502 | return Py_BuildValue((char *)""); | |
32503 | } | |
c32bde28 | 32504 | static int _wrap_DefaultValidator_set(PyObject *) { |
d14a1e28 RD |
32505 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
32506 | return 1; | |
32507 | } | |
32508 | ||
32509 | ||
093d3ff1 | 32510 | static PyObject *_wrap_DefaultValidator_get(void) { |
d14a1e28 RD |
32511 | PyObject *pyobj; |
32512 | ||
15afbcd0 | 32513 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
32514 | return pyobj; |
32515 | } | |
32516 | ||
32517 | ||
c32bde28 | 32518 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32519 | PyObject *resultobj; |
32520 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
32521 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
32522 | long arg2 = (long) 0 ; | |
32523 | wxMenu *result; | |
ae8162c8 | 32524 | bool temp1 = false ; |
d14a1e28 | 32525 | PyObject * obj0 = 0 ; |
994141e6 | 32526 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32527 | char *kwnames[] = { |
32528 | (char *) "title",(char *) "style", NULL | |
32529 | }; | |
32530 | ||
994141e6 | 32531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
32532 | if (obj0) { |
32533 | { | |
32534 | arg1 = wxString_in_helper(obj0); | |
32535 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 32536 | temp1 = true; |
d14a1e28 RD |
32537 | } |
32538 | } | |
994141e6 | 32539 | if (obj1) { |
093d3ff1 RD |
32540 | { |
32541 | arg2 = (long)(SWIG_As_long(obj1)); | |
32542 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32543 | } | |
994141e6 | 32544 | } |
d14a1e28 | 32545 | { |
e3b71cb8 | 32546 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32548 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
32549 | ||
32550 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32551 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32552 | } |
b0f7404b | 32553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d14a1e28 RD |
32554 | { |
32555 | if (temp1) | |
32556 | delete arg1; | |
32557 | } | |
32558 | return resultobj; | |
32559 | fail: | |
32560 | { | |
32561 | if (temp1) | |
32562 | delete arg1; | |
32563 | } | |
32564 | return NULL; | |
32565 | } | |
32566 | ||
32567 | ||
c32bde28 | 32568 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32569 | PyObject *resultobj; |
32570 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32571 | int arg2 ; | |
32572 | wxString *arg3 = 0 ; | |
32573 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32574 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 32575 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
a41e16b6 | 32576 | wxMenuItem *result; |
ae8162c8 RD |
32577 | bool temp3 = false ; |
32578 | bool temp4 = false ; | |
d14a1e28 | 32579 | PyObject * obj0 = 0 ; |
994141e6 | 32580 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32581 | PyObject * obj2 = 0 ; |
32582 | PyObject * obj3 = 0 ; | |
994141e6 | 32583 | PyObject * obj4 = 0 ; |
d14a1e28 | 32584 | char *kwnames[] = { |
242b7b46 | 32585 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
32586 | }; |
32587 | ||
994141e6 | 32588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
32589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32591 | { | |
32592 | arg2 = (int)(SWIG_As_int(obj1)); | |
32593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32594 | } | |
d14a1e28 RD |
32595 | { |
32596 | arg3 = wxString_in_helper(obj2); | |
32597 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32598 | temp3 = true; |
d14a1e28 RD |
32599 | } |
32600 | if (obj3) { | |
32601 | { | |
32602 | arg4 = wxString_in_helper(obj3); | |
32603 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32604 | temp4 = true; |
d14a1e28 RD |
32605 | } |
32606 | } | |
994141e6 | 32607 | if (obj4) { |
093d3ff1 RD |
32608 | { |
32609 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
32610 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32611 | } | |
994141e6 | 32612 | } |
d14a1e28 RD |
32613 | { |
32614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 32615 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
32616 | |
32617 | wxPyEndAllowThreads(__tstate); | |
32618 | if (PyErr_Occurred()) SWIG_fail; | |
32619 | } | |
a41e16b6 | 32620 | { |
412d302d | 32621 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 32622 | } |
d14a1e28 RD |
32623 | { |
32624 | if (temp3) | |
32625 | delete arg3; | |
32626 | } | |
32627 | { | |
32628 | if (temp4) | |
32629 | delete arg4; | |
32630 | } | |
32631 | return resultobj; | |
32632 | fail: | |
32633 | { | |
32634 | if (temp3) | |
32635 | delete arg3; | |
32636 | } | |
32637 | { | |
32638 | if (temp4) | |
32639 | delete arg4; | |
32640 | } | |
32641 | return NULL; | |
32642 | } | |
32643 | ||
32644 | ||
c32bde28 | 32645 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32646 | PyObject *resultobj; |
32647 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 32648 | wxMenuItem *result; |
d14a1e28 RD |
32649 | PyObject * obj0 = 0 ; |
32650 | char *kwnames[] = { | |
32651 | (char *) "self", NULL | |
32652 | }; | |
32653 | ||
32654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32657 | { |
32658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 32659 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
32660 | |
32661 | wxPyEndAllowThreads(__tstate); | |
32662 | if (PyErr_Occurred()) SWIG_fail; | |
32663 | } | |
a41e16b6 | 32664 | { |
412d302d | 32665 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 32666 | } |
d14a1e28 RD |
32667 | return resultobj; |
32668 | fail: | |
32669 | return NULL; | |
32670 | } | |
32671 | ||
32672 | ||
c32bde28 | 32673 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32674 | PyObject *resultobj; |
32675 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32676 | int arg2 ; | |
32677 | wxString *arg3 = 0 ; | |
32678 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32679 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 32680 | wxMenuItem *result; |
ae8162c8 RD |
32681 | bool temp3 = false ; |
32682 | bool temp4 = false ; | |
d14a1e28 | 32683 | PyObject * obj0 = 0 ; |
994141e6 | 32684 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32685 | PyObject * obj2 = 0 ; |
32686 | PyObject * obj3 = 0 ; | |
32687 | char *kwnames[] = { | |
242b7b46 | 32688 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
32689 | }; |
32690 | ||
994141e6 | 32691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
32692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32694 | { | |
32695 | arg2 = (int)(SWIG_As_int(obj1)); | |
32696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32697 | } | |
d14a1e28 RD |
32698 | { |
32699 | arg3 = wxString_in_helper(obj2); | |
32700 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32701 | temp3 = true; |
d14a1e28 RD |
32702 | } |
32703 | if (obj3) { | |
32704 | { | |
32705 | arg4 = wxString_in_helper(obj3); | |
32706 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32707 | temp4 = true; |
d14a1e28 RD |
32708 | } |
32709 | } | |
32710 | { | |
32711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 32712 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
32713 | |
32714 | wxPyEndAllowThreads(__tstate); | |
32715 | if (PyErr_Occurred()) SWIG_fail; | |
32716 | } | |
a41e16b6 | 32717 | { |
412d302d | 32718 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 32719 | } |
d14a1e28 RD |
32720 | { |
32721 | if (temp3) | |
32722 | delete arg3; | |
32723 | } | |
32724 | { | |
32725 | if (temp4) | |
32726 | delete arg4; | |
32727 | } | |
32728 | return resultobj; | |
32729 | fail: | |
32730 | { | |
32731 | if (temp3) | |
32732 | delete arg3; | |
32733 | } | |
32734 | { | |
32735 | if (temp4) | |
32736 | delete arg4; | |
32737 | } | |
32738 | return NULL; | |
32739 | } | |
32740 | ||
32741 | ||
c32bde28 | 32742 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32743 | PyObject *resultobj; |
32744 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32745 | int arg2 ; | |
32746 | wxString *arg3 = 0 ; | |
32747 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32748 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 32749 | wxMenuItem *result; |
ae8162c8 RD |
32750 | bool temp3 = false ; |
32751 | bool temp4 = false ; | |
d14a1e28 | 32752 | PyObject * obj0 = 0 ; |
994141e6 | 32753 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32754 | PyObject * obj2 = 0 ; |
32755 | PyObject * obj3 = 0 ; | |
32756 | char *kwnames[] = { | |
242b7b46 | 32757 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
32758 | }; |
32759 | ||
994141e6 | 32760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
32761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32763 | { | |
32764 | arg2 = (int)(SWIG_As_int(obj1)); | |
32765 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32766 | } | |
d14a1e28 RD |
32767 | { |
32768 | arg3 = wxString_in_helper(obj2); | |
32769 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32770 | temp3 = true; |
d14a1e28 RD |
32771 | } |
32772 | if (obj3) { | |
32773 | { | |
32774 | arg4 = wxString_in_helper(obj3); | |
32775 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32776 | temp4 = true; |
d14a1e28 RD |
32777 | } |
32778 | } | |
32779 | { | |
32780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 32781 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
32782 | |
32783 | wxPyEndAllowThreads(__tstate); | |
32784 | if (PyErr_Occurred()) SWIG_fail; | |
32785 | } | |
a41e16b6 | 32786 | { |
412d302d | 32787 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 32788 | } |
d14a1e28 RD |
32789 | { |
32790 | if (temp3) | |
32791 | delete arg3; | |
32792 | } | |
32793 | { | |
32794 | if (temp4) | |
32795 | delete arg4; | |
32796 | } | |
32797 | return resultobj; | |
32798 | fail: | |
32799 | { | |
32800 | if (temp3) | |
32801 | delete arg3; | |
32802 | } | |
32803 | { | |
32804 | if (temp4) | |
32805 | delete arg4; | |
32806 | } | |
32807 | return NULL; | |
32808 | } | |
32809 | ||
32810 | ||
c32bde28 | 32811 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32812 | PyObject *resultobj; |
32813 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32814 | int arg2 ; | |
32815 | wxString *arg3 = 0 ; | |
32816 | wxMenu *arg4 = (wxMenu *) 0 ; | |
32817 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
32818 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 32819 | wxMenuItem *result; |
ae8162c8 RD |
32820 | bool temp3 = false ; |
32821 | bool temp5 = false ; | |
d14a1e28 | 32822 | PyObject * obj0 = 0 ; |
994141e6 | 32823 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32824 | PyObject * obj2 = 0 ; |
32825 | PyObject * obj3 = 0 ; | |
32826 | PyObject * obj4 = 0 ; | |
32827 | char *kwnames[] = { | |
242b7b46 | 32828 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
32829 | }; |
32830 | ||
994141e6 | 32831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
32832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32834 | { | |
32835 | arg2 = (int)(SWIG_As_int(obj1)); | |
32836 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32837 | } | |
d14a1e28 RD |
32838 | { |
32839 | arg3 = wxString_in_helper(obj2); | |
32840 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32841 | temp3 = true; |
d14a1e28 | 32842 | } |
093d3ff1 RD |
32843 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32844 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
32845 | if (obj4) { |
32846 | { | |
32847 | arg5 = wxString_in_helper(obj4); | |
32848 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 32849 | temp5 = true; |
d14a1e28 RD |
32850 | } |
32851 | } | |
32852 | { | |
32853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 32854 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
32855 | |
32856 | wxPyEndAllowThreads(__tstate); | |
32857 | if (PyErr_Occurred()) SWIG_fail; | |
32858 | } | |
a41e16b6 | 32859 | { |
412d302d | 32860 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 32861 | } |
d14a1e28 RD |
32862 | { |
32863 | if (temp3) | |
32864 | delete arg3; | |
32865 | } | |
32866 | { | |
32867 | if (temp5) | |
32868 | delete arg5; | |
32869 | } | |
32870 | return resultobj; | |
32871 | fail: | |
32872 | { | |
32873 | if (temp3) | |
32874 | delete arg3; | |
32875 | } | |
32876 | { | |
32877 | if (temp5) | |
32878 | delete arg5; | |
32879 | } | |
32880 | return NULL; | |
32881 | } | |
32882 | ||
32883 | ||
c32bde28 | 32884 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32885 | PyObject *resultobj; |
32886 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32887 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 32888 | wxMenuItem *result; |
d14a1e28 RD |
32889 | PyObject * obj0 = 0 ; |
32890 | PyObject * obj1 = 0 ; | |
32891 | char *kwnames[] = { | |
32892 | (char *) "self",(char *) "item", NULL | |
32893 | }; | |
32894 | ||
32895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32898 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
32899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32900 | { |
32901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 32902 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
32903 | |
32904 | wxPyEndAllowThreads(__tstate); | |
32905 | if (PyErr_Occurred()) SWIG_fail; | |
32906 | } | |
a41e16b6 | 32907 | { |
412d302d | 32908 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 32909 | } |
d14a1e28 RD |
32910 | return resultobj; |
32911 | fail: | |
32912 | return NULL; | |
32913 | } | |
32914 | ||
32915 | ||
c32bde28 | 32916 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32917 | PyObject *resultobj; |
32918 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32919 | PyObject * obj0 = 0 ; | |
32920 | char *kwnames[] = { | |
32921 | (char *) "self", NULL | |
32922 | }; | |
32923 | ||
32924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32927 | { |
32928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32929 | (arg1)->Break(); | |
32930 | ||
32931 | wxPyEndAllowThreads(__tstate); | |
32932 | if (PyErr_Occurred()) SWIG_fail; | |
32933 | } | |
32934 | Py_INCREF(Py_None); resultobj = Py_None; | |
32935 | return resultobj; | |
32936 | fail: | |
32937 | return NULL; | |
32938 | } | |
32939 | ||
32940 | ||
c32bde28 | 32941 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32942 | PyObject *resultobj; |
32943 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32944 | size_t arg2 ; | |
32945 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
a41e16b6 | 32946 | wxMenuItem *result; |
d14a1e28 RD |
32947 | PyObject * obj0 = 0 ; |
32948 | PyObject * obj1 = 0 ; | |
32949 | PyObject * obj2 = 0 ; | |
32950 | char *kwnames[] = { | |
32951 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
32952 | }; | |
32953 | ||
32954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
32956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32957 | { | |
32958 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
32959 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32960 | } | |
32961 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
32962 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
32963 | { |
32964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 32965 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
32966 | |
32967 | wxPyEndAllowThreads(__tstate); | |
32968 | if (PyErr_Occurred()) SWIG_fail; | |
32969 | } | |
a41e16b6 | 32970 | { |
412d302d | 32971 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 32972 | } |
d14a1e28 RD |
32973 | return resultobj; |
32974 | fail: | |
32975 | return NULL; | |
32976 | } | |
32977 | ||
32978 | ||
c32bde28 | 32979 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32980 | PyObject *resultobj; |
32981 | wxMenu *arg1 = (wxMenu *) 0 ; | |
32982 | size_t arg2 ; | |
32983 | int arg3 ; | |
32984 | wxString *arg4 = 0 ; | |
32985 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
32986 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
093d3ff1 | 32987 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
a41e16b6 | 32988 | wxMenuItem *result; |
ae8162c8 RD |
32989 | bool temp4 = false ; |
32990 | bool temp5 = false ; | |
d14a1e28 RD |
32991 | PyObject * obj0 = 0 ; |
32992 | PyObject * obj1 = 0 ; | |
994141e6 | 32993 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32994 | PyObject * obj3 = 0 ; |
32995 | PyObject * obj4 = 0 ; | |
994141e6 | 32996 | PyObject * obj5 = 0 ; |
d14a1e28 | 32997 | char *kwnames[] = { |
242b7b46 | 32998 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
32999 | }; |
33000 | ||
994141e6 | 33001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
33002 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33004 | { | |
33005 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33006 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33007 | } | |
33008 | { | |
33009 | arg3 = (int)(SWIG_As_int(obj2)); | |
33010 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33011 | } | |
d14a1e28 RD |
33012 | { |
33013 | arg4 = wxString_in_helper(obj3); | |
33014 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33015 | temp4 = true; |
d14a1e28 RD |
33016 | } |
33017 | if (obj4) { | |
33018 | { | |
33019 | arg5 = wxString_in_helper(obj4); | |
33020 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 33021 | temp5 = true; |
d14a1e28 RD |
33022 | } |
33023 | } | |
994141e6 | 33024 | if (obj5) { |
093d3ff1 RD |
33025 | { |
33026 | arg6 = (wxItemKind)(SWIG_As_int(obj5)); | |
33027 | if (SWIG_arg_fail(6)) SWIG_fail; | |
33028 | } | |
994141e6 | 33029 | } |
d14a1e28 RD |
33030 | { |
33031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33032 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
33033 | |
33034 | wxPyEndAllowThreads(__tstate); | |
33035 | if (PyErr_Occurred()) SWIG_fail; | |
33036 | } | |
a41e16b6 | 33037 | { |
412d302d | 33038 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33039 | } |
d14a1e28 RD |
33040 | { |
33041 | if (temp4) | |
33042 | delete arg4; | |
33043 | } | |
33044 | { | |
33045 | if (temp5) | |
33046 | delete arg5; | |
33047 | } | |
33048 | return resultobj; | |
33049 | fail: | |
33050 | { | |
33051 | if (temp4) | |
33052 | delete arg4; | |
33053 | } | |
33054 | { | |
33055 | if (temp5) | |
33056 | delete arg5; | |
33057 | } | |
33058 | return NULL; | |
33059 | } | |
33060 | ||
33061 | ||
c32bde28 | 33062 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33063 | PyObject *resultobj; |
33064 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33065 | size_t arg2 ; | |
a41e16b6 | 33066 | wxMenuItem *result; |
d14a1e28 RD |
33067 | PyObject * obj0 = 0 ; |
33068 | PyObject * obj1 = 0 ; | |
33069 | char *kwnames[] = { | |
33070 | (char *) "self",(char *) "pos", NULL | |
33071 | }; | |
33072 | ||
33073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33076 | { | |
33077 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33078 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33079 | } | |
d14a1e28 RD |
33080 | { |
33081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33082 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
33083 | |
33084 | wxPyEndAllowThreads(__tstate); | |
33085 | if (PyErr_Occurred()) SWIG_fail; | |
33086 | } | |
a41e16b6 | 33087 | { |
412d302d | 33088 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33089 | } |
d14a1e28 RD |
33090 | return resultobj; |
33091 | fail: | |
33092 | return NULL; | |
33093 | } | |
33094 | ||
33095 | ||
c32bde28 | 33096 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33097 | PyObject *resultobj; |
33098 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33099 | size_t arg2 ; | |
33100 | int arg3 ; | |
33101 | wxString *arg4 = 0 ; | |
33102 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
33103 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 33104 | wxMenuItem *result; |
ae8162c8 RD |
33105 | bool temp4 = false ; |
33106 | bool temp5 = false ; | |
d14a1e28 RD |
33107 | PyObject * obj0 = 0 ; |
33108 | PyObject * obj1 = 0 ; | |
994141e6 | 33109 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33110 | PyObject * obj3 = 0 ; |
33111 | PyObject * obj4 = 0 ; | |
33112 | char *kwnames[] = { | |
242b7b46 | 33113 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
33114 | }; |
33115 | ||
994141e6 | 33116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33119 | { | |
33120 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33121 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33122 | } | |
33123 | { | |
33124 | arg3 = (int)(SWIG_As_int(obj2)); | |
33125 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33126 | } | |
d14a1e28 RD |
33127 | { |
33128 | arg4 = wxString_in_helper(obj3); | |
33129 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33130 | temp4 = true; |
d14a1e28 RD |
33131 | } |
33132 | if (obj4) { | |
33133 | { | |
33134 | arg5 = wxString_in_helper(obj4); | |
33135 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 33136 | temp5 = true; |
d14a1e28 RD |
33137 | } |
33138 | } | |
33139 | { | |
33140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33141 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
33142 | |
33143 | wxPyEndAllowThreads(__tstate); | |
33144 | if (PyErr_Occurred()) SWIG_fail; | |
33145 | } | |
a41e16b6 | 33146 | { |
412d302d | 33147 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33148 | } |
d14a1e28 RD |
33149 | { |
33150 | if (temp4) | |
33151 | delete arg4; | |
33152 | } | |
33153 | { | |
33154 | if (temp5) | |
33155 | delete arg5; | |
33156 | } | |
33157 | return resultobj; | |
33158 | fail: | |
33159 | { | |
33160 | if (temp4) | |
33161 | delete arg4; | |
33162 | } | |
33163 | { | |
33164 | if (temp5) | |
33165 | delete arg5; | |
33166 | } | |
33167 | return NULL; | |
33168 | } | |
33169 | ||
33170 | ||
c32bde28 | 33171 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33172 | PyObject *resultobj; |
33173 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33174 | size_t arg2 ; | |
33175 | int arg3 ; | |
33176 | wxString *arg4 = 0 ; | |
33177 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
33178 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 33179 | wxMenuItem *result; |
ae8162c8 RD |
33180 | bool temp4 = false ; |
33181 | bool temp5 = false ; | |
d14a1e28 RD |
33182 | PyObject * obj0 = 0 ; |
33183 | PyObject * obj1 = 0 ; | |
994141e6 | 33184 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33185 | PyObject * obj3 = 0 ; |
33186 | PyObject * obj4 = 0 ; | |
33187 | char *kwnames[] = { | |
242b7b46 | 33188 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
33189 | }; |
33190 | ||
994141e6 | 33191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33192 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33193 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33194 | { | |
33195 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33196 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33197 | } | |
33198 | { | |
33199 | arg3 = (int)(SWIG_As_int(obj2)); | |
33200 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33201 | } | |
d14a1e28 RD |
33202 | { |
33203 | arg4 = wxString_in_helper(obj3); | |
33204 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33205 | temp4 = true; |
d14a1e28 RD |
33206 | } |
33207 | if (obj4) { | |
33208 | { | |
33209 | arg5 = wxString_in_helper(obj4); | |
33210 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 33211 | temp5 = true; |
d14a1e28 RD |
33212 | } |
33213 | } | |
33214 | { | |
33215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33216 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
33217 | |
33218 | wxPyEndAllowThreads(__tstate); | |
33219 | if (PyErr_Occurred()) SWIG_fail; | |
33220 | } | |
a41e16b6 | 33221 | { |
412d302d | 33222 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33223 | } |
d14a1e28 RD |
33224 | { |
33225 | if (temp4) | |
33226 | delete arg4; | |
33227 | } | |
33228 | { | |
33229 | if (temp5) | |
33230 | delete arg5; | |
33231 | } | |
33232 | return resultobj; | |
33233 | fail: | |
33234 | { | |
33235 | if (temp4) | |
33236 | delete arg4; | |
33237 | } | |
33238 | { | |
33239 | if (temp5) | |
33240 | delete arg5; | |
33241 | } | |
33242 | return NULL; | |
33243 | } | |
33244 | ||
33245 | ||
c32bde28 | 33246 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33247 | PyObject *resultobj; |
33248 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33249 | size_t arg2 ; | |
33250 | int arg3 ; | |
33251 | wxString *arg4 = 0 ; | |
33252 | wxMenu *arg5 = (wxMenu *) 0 ; | |
33253 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
33254 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
a41e16b6 | 33255 | wxMenuItem *result; |
ae8162c8 RD |
33256 | bool temp4 = false ; |
33257 | bool temp6 = false ; | |
d14a1e28 RD |
33258 | PyObject * obj0 = 0 ; |
33259 | PyObject * obj1 = 0 ; | |
994141e6 | 33260 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33261 | PyObject * obj3 = 0 ; |
33262 | PyObject * obj4 = 0 ; | |
33263 | PyObject * obj5 = 0 ; | |
33264 | char *kwnames[] = { | |
242b7b46 | 33265 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
33266 | }; |
33267 | ||
994141e6 | 33268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
33269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33271 | { | |
33272 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
33273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33274 | } | |
33275 | { | |
33276 | arg3 = (int)(SWIG_As_int(obj2)); | |
33277 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33278 | } | |
d14a1e28 RD |
33279 | { |
33280 | arg4 = wxString_in_helper(obj3); | |
33281 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33282 | temp4 = true; |
d14a1e28 | 33283 | } |
093d3ff1 RD |
33284 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33285 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
33286 | if (obj5) { |
33287 | { | |
33288 | arg6 = wxString_in_helper(obj5); | |
33289 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 33290 | temp6 = true; |
d14a1e28 RD |
33291 | } |
33292 | } | |
33293 | { | |
33294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33295 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
33296 | |
33297 | wxPyEndAllowThreads(__tstate); | |
33298 | if (PyErr_Occurred()) SWIG_fail; | |
33299 | } | |
a41e16b6 | 33300 | { |
412d302d | 33301 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33302 | } |
d14a1e28 RD |
33303 | { |
33304 | if (temp4) | |
33305 | delete arg4; | |
33306 | } | |
33307 | { | |
33308 | if (temp6) | |
33309 | delete arg6; | |
33310 | } | |
33311 | return resultobj; | |
33312 | fail: | |
33313 | { | |
33314 | if (temp4) | |
33315 | delete arg4; | |
33316 | } | |
33317 | { | |
33318 | if (temp6) | |
33319 | delete arg6; | |
33320 | } | |
33321 | return NULL; | |
33322 | } | |
33323 | ||
33324 | ||
c32bde28 | 33325 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33326 | PyObject *resultobj; |
33327 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33328 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 33329 | wxMenuItem *result; |
d14a1e28 RD |
33330 | PyObject * obj0 = 0 ; |
33331 | PyObject * obj1 = 0 ; | |
33332 | char *kwnames[] = { | |
33333 | (char *) "self",(char *) "item", NULL | |
33334 | }; | |
33335 | ||
33336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33339 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33340 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33341 | { |
33342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33343 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
33344 | |
33345 | wxPyEndAllowThreads(__tstate); | |
33346 | if (PyErr_Occurred()) SWIG_fail; | |
33347 | } | |
a41e16b6 | 33348 | { |
412d302d | 33349 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33350 | } |
d14a1e28 RD |
33351 | return resultobj; |
33352 | fail: | |
33353 | return NULL; | |
33354 | } | |
33355 | ||
33356 | ||
c32bde28 | 33357 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33358 | PyObject *resultobj; |
33359 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33360 | int arg2 ; | |
33361 | wxString *arg3 = 0 ; | |
33362 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
33363 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 33364 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
a41e16b6 | 33365 | wxMenuItem *result; |
ae8162c8 RD |
33366 | bool temp3 = false ; |
33367 | bool temp4 = false ; | |
d14a1e28 | 33368 | PyObject * obj0 = 0 ; |
994141e6 | 33369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33370 | PyObject * obj2 = 0 ; |
33371 | PyObject * obj3 = 0 ; | |
994141e6 | 33372 | PyObject * obj4 = 0 ; |
d14a1e28 | 33373 | char *kwnames[] = { |
242b7b46 | 33374 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
33375 | }; |
33376 | ||
994141e6 | 33377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33380 | { | |
33381 | arg2 = (int)(SWIG_As_int(obj1)); | |
33382 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33383 | } | |
d14a1e28 RD |
33384 | { |
33385 | arg3 = wxString_in_helper(obj2); | |
33386 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33387 | temp3 = true; |
d14a1e28 RD |
33388 | } |
33389 | if (obj3) { | |
33390 | { | |
33391 | arg4 = wxString_in_helper(obj3); | |
33392 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33393 | temp4 = true; |
d14a1e28 RD |
33394 | } |
33395 | } | |
994141e6 | 33396 | if (obj4) { |
093d3ff1 RD |
33397 | { |
33398 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
33399 | if (SWIG_arg_fail(5)) SWIG_fail; | |
33400 | } | |
994141e6 | 33401 | } |
d14a1e28 RD |
33402 | { |
33403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33404 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
33405 | |
33406 | wxPyEndAllowThreads(__tstate); | |
33407 | if (PyErr_Occurred()) SWIG_fail; | |
33408 | } | |
a41e16b6 | 33409 | { |
412d302d | 33410 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33411 | } |
d14a1e28 RD |
33412 | { |
33413 | if (temp3) | |
33414 | delete arg3; | |
33415 | } | |
33416 | { | |
33417 | if (temp4) | |
33418 | delete arg4; | |
33419 | } | |
33420 | return resultobj; | |
33421 | fail: | |
33422 | { | |
33423 | if (temp3) | |
33424 | delete arg3; | |
33425 | } | |
33426 | { | |
33427 | if (temp4) | |
33428 | delete arg4; | |
33429 | } | |
33430 | return NULL; | |
33431 | } | |
33432 | ||
33433 | ||
c32bde28 | 33434 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33435 | PyObject *resultobj; |
33436 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 33437 | wxMenuItem *result; |
d14a1e28 RD |
33438 | PyObject * obj0 = 0 ; |
33439 | char *kwnames[] = { | |
33440 | (char *) "self", NULL | |
33441 | }; | |
33442 | ||
33443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33446 | { |
33447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33448 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
33449 | |
33450 | wxPyEndAllowThreads(__tstate); | |
33451 | if (PyErr_Occurred()) SWIG_fail; | |
33452 | } | |
a41e16b6 | 33453 | { |
412d302d | 33454 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33455 | } |
d14a1e28 RD |
33456 | return resultobj; |
33457 | fail: | |
33458 | return NULL; | |
33459 | } | |
33460 | ||
33461 | ||
c32bde28 | 33462 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33463 | PyObject *resultobj; |
33464 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33465 | int arg2 ; | |
33466 | wxString *arg3 = 0 ; | |
33467 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
33468 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 33469 | wxMenuItem *result; |
ae8162c8 RD |
33470 | bool temp3 = false ; |
33471 | bool temp4 = false ; | |
d14a1e28 | 33472 | PyObject * obj0 = 0 ; |
994141e6 | 33473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33474 | PyObject * obj2 = 0 ; |
33475 | PyObject * obj3 = 0 ; | |
33476 | char *kwnames[] = { | |
242b7b46 | 33477 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
33478 | }; |
33479 | ||
994141e6 | 33480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
33481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33483 | { | |
33484 | arg2 = (int)(SWIG_As_int(obj1)); | |
33485 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33486 | } | |
d14a1e28 RD |
33487 | { |
33488 | arg3 = wxString_in_helper(obj2); | |
33489 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33490 | temp3 = true; |
d14a1e28 RD |
33491 | } |
33492 | if (obj3) { | |
33493 | { | |
33494 | arg4 = wxString_in_helper(obj3); | |
33495 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33496 | temp4 = true; |
d14a1e28 RD |
33497 | } |
33498 | } | |
33499 | { | |
33500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33501 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
33502 | |
33503 | wxPyEndAllowThreads(__tstate); | |
33504 | if (PyErr_Occurred()) SWIG_fail; | |
33505 | } | |
a41e16b6 | 33506 | { |
412d302d | 33507 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33508 | } |
d14a1e28 RD |
33509 | { |
33510 | if (temp3) | |
33511 | delete arg3; | |
33512 | } | |
33513 | { | |
33514 | if (temp4) | |
33515 | delete arg4; | |
33516 | } | |
33517 | return resultobj; | |
33518 | fail: | |
33519 | { | |
33520 | if (temp3) | |
33521 | delete arg3; | |
33522 | } | |
33523 | { | |
33524 | if (temp4) | |
33525 | delete arg4; | |
33526 | } | |
33527 | return NULL; | |
33528 | } | |
33529 | ||
33530 | ||
c32bde28 | 33531 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33532 | PyObject *resultobj; |
33533 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33534 | int arg2 ; | |
33535 | wxString *arg3 = 0 ; | |
33536 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
33537 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 33538 | wxMenuItem *result; |
ae8162c8 RD |
33539 | bool temp3 = false ; |
33540 | bool temp4 = false ; | |
d14a1e28 | 33541 | PyObject * obj0 = 0 ; |
994141e6 | 33542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33543 | PyObject * obj2 = 0 ; |
33544 | PyObject * obj3 = 0 ; | |
33545 | char *kwnames[] = { | |
242b7b46 | 33546 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
33547 | }; |
33548 | ||
994141e6 | 33549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
33550 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33551 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33552 | { | |
33553 | arg2 = (int)(SWIG_As_int(obj1)); | |
33554 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33555 | } | |
d14a1e28 RD |
33556 | { |
33557 | arg3 = wxString_in_helper(obj2); | |
33558 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33559 | temp3 = true; |
d14a1e28 RD |
33560 | } |
33561 | if (obj3) { | |
33562 | { | |
33563 | arg4 = wxString_in_helper(obj3); | |
33564 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 33565 | temp4 = true; |
d14a1e28 RD |
33566 | } |
33567 | } | |
33568 | { | |
33569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33570 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
33571 | |
33572 | wxPyEndAllowThreads(__tstate); | |
33573 | if (PyErr_Occurred()) SWIG_fail; | |
33574 | } | |
a41e16b6 | 33575 | { |
412d302d | 33576 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33577 | } |
d14a1e28 RD |
33578 | { |
33579 | if (temp3) | |
33580 | delete arg3; | |
33581 | } | |
33582 | { | |
33583 | if (temp4) | |
33584 | delete arg4; | |
33585 | } | |
33586 | return resultobj; | |
33587 | fail: | |
33588 | { | |
33589 | if (temp3) | |
33590 | delete arg3; | |
33591 | } | |
33592 | { | |
33593 | if (temp4) | |
33594 | delete arg4; | |
33595 | } | |
33596 | return NULL; | |
33597 | } | |
33598 | ||
33599 | ||
c32bde28 | 33600 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33601 | PyObject *resultobj; |
33602 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33603 | int arg2 ; | |
33604 | wxString *arg3 = 0 ; | |
33605 | wxMenu *arg4 = (wxMenu *) 0 ; | |
33606 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
33607 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 33608 | wxMenuItem *result; |
ae8162c8 RD |
33609 | bool temp3 = false ; |
33610 | bool temp5 = false ; | |
d14a1e28 | 33611 | PyObject * obj0 = 0 ; |
994141e6 | 33612 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33613 | PyObject * obj2 = 0 ; |
33614 | PyObject * obj3 = 0 ; | |
33615 | PyObject * obj4 = 0 ; | |
33616 | char *kwnames[] = { | |
242b7b46 | 33617 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
33618 | }; |
33619 | ||
994141e6 | 33620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33623 | { | |
33624 | arg2 = (int)(SWIG_As_int(obj1)); | |
33625 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33626 | } | |
d14a1e28 RD |
33627 | { |
33628 | arg3 = wxString_in_helper(obj2); | |
33629 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33630 | temp3 = true; |
d14a1e28 | 33631 | } |
093d3ff1 RD |
33632 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33633 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
33634 | if (obj4) { |
33635 | { | |
33636 | arg5 = wxString_in_helper(obj4); | |
33637 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 33638 | temp5 = true; |
d14a1e28 RD |
33639 | } |
33640 | } | |
33641 | { | |
33642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 33643 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
33644 | |
33645 | wxPyEndAllowThreads(__tstate); | |
33646 | if (PyErr_Occurred()) SWIG_fail; | |
33647 | } | |
a41e16b6 | 33648 | { |
412d302d | 33649 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 33650 | } |
d14a1e28 RD |
33651 | { |
33652 | if (temp3) | |
33653 | delete arg3; | |
33654 | } | |
33655 | { | |
33656 | if (temp5) | |
33657 | delete arg5; | |
33658 | } | |
33659 | return resultobj; | |
33660 | fail: | |
33661 | { | |
33662 | if (temp3) | |
33663 | delete arg3; | |
33664 | } | |
33665 | { | |
33666 | if (temp5) | |
33667 | delete arg5; | |
33668 | } | |
33669 | return NULL; | |
33670 | } | |
33671 | ||
33672 | ||
c32bde28 | 33673 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33674 | PyObject *resultobj; |
33675 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33676 | int arg2 ; | |
33677 | wxMenuItem *result; | |
33678 | PyObject * obj0 = 0 ; | |
994141e6 | 33679 | PyObject * obj1 = 0 ; |
d14a1e28 | 33680 | char *kwnames[] = { |
242b7b46 | 33681 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
33682 | }; |
33683 | ||
994141e6 | 33684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
33685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33687 | { | |
33688 | arg2 = (int)(SWIG_As_int(obj1)); | |
33689 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33690 | } | |
d14a1e28 RD |
33691 | { |
33692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33693 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
33694 | ||
33695 | wxPyEndAllowThreads(__tstate); | |
33696 | if (PyErr_Occurred()) SWIG_fail; | |
33697 | } | |
33698 | { | |
412d302d | 33699 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
33700 | } |
33701 | return resultobj; | |
33702 | fail: | |
33703 | return NULL; | |
33704 | } | |
33705 | ||
33706 | ||
c32bde28 | 33707 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33708 | PyObject *resultobj; |
33709 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33710 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
33711 | wxMenuItem *result; | |
33712 | PyObject * obj0 = 0 ; | |
33713 | PyObject * obj1 = 0 ; | |
33714 | char *kwnames[] = { | |
33715 | (char *) "self",(char *) "item", NULL | |
33716 | }; | |
33717 | ||
33718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33721 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33723 | { |
33724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33725 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
33726 | ||
33727 | wxPyEndAllowThreads(__tstate); | |
33728 | if (PyErr_Occurred()) SWIG_fail; | |
33729 | } | |
33730 | { | |
412d302d | 33731 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
33732 | } |
33733 | return resultobj; | |
33734 | fail: | |
33735 | return NULL; | |
33736 | } | |
33737 | ||
33738 | ||
c32bde28 | 33739 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33740 | PyObject *resultobj; |
33741 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33742 | int arg2 ; | |
33743 | bool result; | |
33744 | PyObject * obj0 = 0 ; | |
994141e6 | 33745 | PyObject * obj1 = 0 ; |
d14a1e28 | 33746 | char *kwnames[] = { |
242b7b46 | 33747 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
33748 | }; |
33749 | ||
994141e6 | 33750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
33751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33753 | { | |
33754 | arg2 = (int)(SWIG_As_int(obj1)); | |
33755 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33756 | } | |
d14a1e28 RD |
33757 | { |
33758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33759 | result = (bool)(arg1)->Delete(arg2); | |
33760 | ||
33761 | wxPyEndAllowThreads(__tstate); | |
33762 | if (PyErr_Occurred()) SWIG_fail; | |
33763 | } | |
4f89f6a3 RD |
33764 | { |
33765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33766 | } | |
d14a1e28 RD |
33767 | return resultobj; |
33768 | fail: | |
33769 | return NULL; | |
33770 | } | |
33771 | ||
33772 | ||
c32bde28 | 33773 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33774 | PyObject *resultobj; |
33775 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33776 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
33777 | bool result; | |
33778 | PyObject * obj0 = 0 ; | |
33779 | PyObject * obj1 = 0 ; | |
33780 | char *kwnames[] = { | |
33781 | (char *) "self",(char *) "item", NULL | |
33782 | }; | |
33783 | ||
33784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33787 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33789 | { |
33790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33791 | result = (bool)(arg1)->Delete(arg2); | |
33792 | ||
33793 | wxPyEndAllowThreads(__tstate); | |
33794 | if (PyErr_Occurred()) SWIG_fail; | |
33795 | } | |
4f89f6a3 RD |
33796 | { |
33797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33798 | } | |
d14a1e28 RD |
33799 | return resultobj; |
33800 | fail: | |
33801 | return NULL; | |
33802 | } | |
33803 | ||
33804 | ||
c32bde28 | 33805 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33806 | PyObject *resultobj; |
33807 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33808 | PyObject * obj0 = 0 ; | |
33809 | char *kwnames[] = { | |
33810 | (char *) "self", NULL | |
33811 | }; | |
33812 | ||
33813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33816 | { |
33817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33818 | wxMenu_Destroy(arg1); | |
33819 | ||
33820 | wxPyEndAllowThreads(__tstate); | |
33821 | if (PyErr_Occurred()) SWIG_fail; | |
33822 | } | |
33823 | Py_INCREF(Py_None); resultobj = Py_None; | |
33824 | return resultobj; | |
33825 | fail: | |
33826 | return NULL; | |
33827 | } | |
33828 | ||
33829 | ||
c32bde28 | 33830 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33831 | PyObject *resultobj; |
33832 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33833 | int arg2 ; | |
33834 | bool result; | |
33835 | PyObject * obj0 = 0 ; | |
994141e6 | 33836 | PyObject * obj1 = 0 ; |
d14a1e28 | 33837 | char *kwnames[] = { |
242b7b46 | 33838 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
33839 | }; |
33840 | ||
994141e6 | 33841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
33842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33844 | { | |
33845 | arg2 = (int)(SWIG_As_int(obj1)); | |
33846 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33847 | } | |
d14a1e28 RD |
33848 | { |
33849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33850 | result = (bool)(arg1)->Destroy(arg2); | |
33851 | ||
33852 | wxPyEndAllowThreads(__tstate); | |
33853 | if (PyErr_Occurred()) SWIG_fail; | |
33854 | } | |
4f89f6a3 RD |
33855 | { |
33856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33857 | } | |
d14a1e28 RD |
33858 | return resultobj; |
33859 | fail: | |
33860 | return NULL; | |
33861 | } | |
33862 | ||
33863 | ||
c32bde28 | 33864 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33865 | PyObject *resultobj; |
33866 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33867 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
33868 | bool result; | |
33869 | PyObject * obj0 = 0 ; | |
33870 | PyObject * obj1 = 0 ; | |
33871 | char *kwnames[] = { | |
33872 | (char *) "self",(char *) "item", NULL | |
33873 | }; | |
33874 | ||
33875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33878 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
33879 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33880 | { |
33881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33882 | result = (bool)(arg1)->Destroy(arg2); | |
33883 | ||
33884 | wxPyEndAllowThreads(__tstate); | |
33885 | if (PyErr_Occurred()) SWIG_fail; | |
33886 | } | |
4f89f6a3 RD |
33887 | { |
33888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33889 | } | |
d14a1e28 RD |
33890 | return resultobj; |
33891 | fail: | |
33892 | return NULL; | |
33893 | } | |
33894 | ||
33895 | ||
c32bde28 | 33896 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33897 | PyObject *resultobj; |
33898 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33899 | size_t result; | |
33900 | PyObject * obj0 = 0 ; | |
33901 | char *kwnames[] = { | |
33902 | (char *) "self", NULL | |
33903 | }; | |
33904 | ||
33905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33908 | { |
33909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33910 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
33911 | ||
33912 | wxPyEndAllowThreads(__tstate); | |
33913 | if (PyErr_Occurred()) SWIG_fail; | |
33914 | } | |
093d3ff1 RD |
33915 | { |
33916 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
33917 | } | |
d14a1e28 RD |
33918 | return resultobj; |
33919 | fail: | |
33920 | return NULL; | |
33921 | } | |
33922 | ||
33923 | ||
c32bde28 | 33924 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33925 | PyObject *resultobj; |
33926 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33927 | PyObject *result; | |
33928 | PyObject * obj0 = 0 ; | |
33929 | char *kwnames[] = { | |
33930 | (char *) "self", NULL | |
33931 | }; | |
33932 | ||
33933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33936 | { |
33937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33938 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
33939 | ||
33940 | wxPyEndAllowThreads(__tstate); | |
33941 | if (PyErr_Occurred()) SWIG_fail; | |
33942 | } | |
33943 | resultobj = result; | |
33944 | return resultobj; | |
33945 | fail: | |
33946 | return NULL; | |
33947 | } | |
33948 | ||
33949 | ||
c32bde28 | 33950 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33951 | PyObject *resultobj; |
33952 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33953 | wxString *arg2 = 0 ; | |
33954 | int result; | |
ae8162c8 | 33955 | bool temp2 = false ; |
d14a1e28 RD |
33956 | PyObject * obj0 = 0 ; |
33957 | PyObject * obj1 = 0 ; | |
33958 | char *kwnames[] = { | |
33959 | (char *) "self",(char *) "item", NULL | |
33960 | }; | |
33961 | ||
33962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
33964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33965 | { |
33966 | arg2 = wxString_in_helper(obj1); | |
33967 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33968 | temp2 = true; |
d14a1e28 RD |
33969 | } |
33970 | { | |
33971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33972 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
33973 | ||
33974 | wxPyEndAllowThreads(__tstate); | |
33975 | if (PyErr_Occurred()) SWIG_fail; | |
33976 | } | |
093d3ff1 RD |
33977 | { |
33978 | resultobj = SWIG_From_int((int)(result)); | |
33979 | } | |
d14a1e28 RD |
33980 | { |
33981 | if (temp2) | |
33982 | delete arg2; | |
33983 | } | |
33984 | return resultobj; | |
33985 | fail: | |
33986 | { | |
33987 | if (temp2) | |
33988 | delete arg2; | |
33989 | } | |
33990 | return NULL; | |
33991 | } | |
33992 | ||
33993 | ||
c32bde28 | 33994 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33995 | PyObject *resultobj; |
33996 | wxMenu *arg1 = (wxMenu *) 0 ; | |
33997 | int arg2 ; | |
33998 | wxMenuItem *result; | |
33999 | PyObject * obj0 = 0 ; | |
994141e6 | 34000 | PyObject * obj1 = 0 ; |
d14a1e28 | 34001 | char *kwnames[] = { |
242b7b46 | 34002 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
34003 | }; |
34004 | ||
994141e6 | 34005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
34006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34008 | { | |
34009 | arg2 = (int)(SWIG_As_int(obj1)); | |
34010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34011 | } | |
d14a1e28 RD |
34012 | { |
34013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34014 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
34015 | ||
34016 | wxPyEndAllowThreads(__tstate); | |
34017 | if (PyErr_Occurred()) SWIG_fail; | |
34018 | } | |
34019 | { | |
412d302d | 34020 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
34021 | } |
34022 | return resultobj; | |
34023 | fail: | |
34024 | return NULL; | |
34025 | } | |
34026 | ||
34027 | ||
c32bde28 | 34028 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34029 | PyObject *resultobj; |
34030 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34031 | size_t arg2 ; | |
34032 | wxMenuItem *result; | |
34033 | PyObject * obj0 = 0 ; | |
34034 | PyObject * obj1 = 0 ; | |
34035 | char *kwnames[] = { | |
34036 | (char *) "self",(char *) "position", NULL | |
34037 | }; | |
34038 | ||
34039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34042 | { | |
34043 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34044 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34045 | } | |
d14a1e28 RD |
34046 | { |
34047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34048 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
34049 | ||
34050 | wxPyEndAllowThreads(__tstate); | |
34051 | if (PyErr_Occurred()) SWIG_fail; | |
34052 | } | |
34053 | { | |
412d302d | 34054 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
34055 | } |
34056 | return resultobj; | |
34057 | fail: | |
34058 | return NULL; | |
34059 | } | |
34060 | ||
34061 | ||
c32bde28 | 34062 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34063 | PyObject *resultobj; |
34064 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34065 | int arg2 ; | |
34066 | bool arg3 ; | |
34067 | PyObject * obj0 = 0 ; | |
994141e6 | 34068 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34069 | PyObject * obj2 = 0 ; |
34070 | char *kwnames[] = { | |
242b7b46 | 34071 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
34072 | }; |
34073 | ||
994141e6 | 34074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
34075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34077 | { | |
34078 | arg2 = (int)(SWIG_As_int(obj1)); | |
34079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34080 | } | |
34081 | { | |
34082 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
34083 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34084 | } | |
d14a1e28 RD |
34085 | { |
34086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34087 | (arg1)->Enable(arg2,arg3); | |
34088 | ||
34089 | wxPyEndAllowThreads(__tstate); | |
34090 | if (PyErr_Occurred()) SWIG_fail; | |
34091 | } | |
34092 | Py_INCREF(Py_None); resultobj = Py_None; | |
34093 | return resultobj; | |
34094 | fail: | |
34095 | return NULL; | |
34096 | } | |
34097 | ||
34098 | ||
c32bde28 | 34099 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34100 | PyObject *resultobj; |
34101 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34102 | int arg2 ; | |
34103 | bool result; | |
34104 | PyObject * obj0 = 0 ; | |
994141e6 | 34105 | PyObject * obj1 = 0 ; |
d14a1e28 | 34106 | char *kwnames[] = { |
242b7b46 | 34107 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
34108 | }; |
34109 | ||
994141e6 | 34110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
34111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34113 | { | |
34114 | arg2 = (int)(SWIG_As_int(obj1)); | |
34115 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34116 | } | |
d14a1e28 RD |
34117 | { |
34118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34119 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
34120 | ||
34121 | wxPyEndAllowThreads(__tstate); | |
34122 | if (PyErr_Occurred()) SWIG_fail; | |
34123 | } | |
4f89f6a3 RD |
34124 | { |
34125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34126 | } | |
d14a1e28 RD |
34127 | return resultobj; |
34128 | fail: | |
34129 | return NULL; | |
34130 | } | |
34131 | ||
34132 | ||
c32bde28 | 34133 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34134 | PyObject *resultobj; |
34135 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34136 | int arg2 ; | |
34137 | bool arg3 ; | |
34138 | PyObject * obj0 = 0 ; | |
994141e6 | 34139 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34140 | PyObject * obj2 = 0 ; |
34141 | char *kwnames[] = { | |
242b7b46 | 34142 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
34143 | }; |
34144 | ||
994141e6 | 34145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
34146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34148 | { | |
34149 | arg2 = (int)(SWIG_As_int(obj1)); | |
34150 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34151 | } | |
34152 | { | |
34153 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
34154 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34155 | } | |
d14a1e28 RD |
34156 | { |
34157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34158 | (arg1)->Check(arg2,arg3); | |
34159 | ||
34160 | wxPyEndAllowThreads(__tstate); | |
34161 | if (PyErr_Occurred()) SWIG_fail; | |
34162 | } | |
34163 | Py_INCREF(Py_None); resultobj = Py_None; | |
34164 | return resultobj; | |
34165 | fail: | |
34166 | return NULL; | |
34167 | } | |
34168 | ||
34169 | ||
c32bde28 | 34170 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34171 | PyObject *resultobj; |
34172 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34173 | int arg2 ; | |
34174 | bool result; | |
34175 | PyObject * obj0 = 0 ; | |
994141e6 | 34176 | PyObject * obj1 = 0 ; |
d14a1e28 | 34177 | char *kwnames[] = { |
242b7b46 | 34178 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
34179 | }; |
34180 | ||
994141e6 | 34181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
34182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34184 | { | |
34185 | arg2 = (int)(SWIG_As_int(obj1)); | |
34186 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34187 | } | |
d14a1e28 RD |
34188 | { |
34189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34190 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
34191 | ||
34192 | wxPyEndAllowThreads(__tstate); | |
34193 | if (PyErr_Occurred()) SWIG_fail; | |
34194 | } | |
4f89f6a3 RD |
34195 | { |
34196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34197 | } | |
d14a1e28 RD |
34198 | return resultobj; |
34199 | fail: | |
34200 | return NULL; | |
34201 | } | |
34202 | ||
34203 | ||
c32bde28 | 34204 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34205 | PyObject *resultobj; |
34206 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34207 | int arg2 ; | |
34208 | wxString *arg3 = 0 ; | |
ae8162c8 | 34209 | bool temp3 = false ; |
d14a1e28 | 34210 | PyObject * obj0 = 0 ; |
994141e6 | 34211 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34212 | PyObject * obj2 = 0 ; |
34213 | char *kwnames[] = { | |
242b7b46 | 34214 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
34215 | }; |
34216 | ||
994141e6 | 34217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
34218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34220 | { | |
34221 | arg2 = (int)(SWIG_As_int(obj1)); | |
34222 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34223 | } | |
d14a1e28 RD |
34224 | { |
34225 | arg3 = wxString_in_helper(obj2); | |
34226 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34227 | temp3 = true; |
d14a1e28 RD |
34228 | } |
34229 | { | |
34230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34231 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
34232 | ||
34233 | wxPyEndAllowThreads(__tstate); | |
34234 | if (PyErr_Occurred()) SWIG_fail; | |
34235 | } | |
34236 | Py_INCREF(Py_None); resultobj = Py_None; | |
34237 | { | |
34238 | if (temp3) | |
34239 | delete arg3; | |
34240 | } | |
34241 | return resultobj; | |
34242 | fail: | |
34243 | { | |
34244 | if (temp3) | |
34245 | delete arg3; | |
34246 | } | |
34247 | return NULL; | |
34248 | } | |
34249 | ||
34250 | ||
c32bde28 | 34251 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34252 | PyObject *resultobj; |
34253 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34254 | int arg2 ; | |
34255 | wxString result; | |
34256 | PyObject * obj0 = 0 ; | |
994141e6 | 34257 | PyObject * obj1 = 0 ; |
d14a1e28 | 34258 | char *kwnames[] = { |
242b7b46 | 34259 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
34260 | }; |
34261 | ||
994141e6 | 34262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
34263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34265 | { | |
34266 | arg2 = (int)(SWIG_As_int(obj1)); | |
34267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34268 | } | |
d14a1e28 RD |
34269 | { |
34270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34271 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
34272 | ||
34273 | wxPyEndAllowThreads(__tstate); | |
34274 | if (PyErr_Occurred()) SWIG_fail; | |
34275 | } | |
34276 | { | |
34277 | #if wxUSE_UNICODE | |
34278 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34279 | #else | |
34280 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34281 | #endif | |
34282 | } | |
34283 | return resultobj; | |
34284 | fail: | |
34285 | return NULL; | |
34286 | } | |
34287 | ||
34288 | ||
c32bde28 | 34289 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34290 | PyObject *resultobj; |
34291 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34292 | int arg2 ; | |
34293 | wxString *arg3 = 0 ; | |
ae8162c8 | 34294 | bool temp3 = false ; |
d14a1e28 | 34295 | PyObject * obj0 = 0 ; |
994141e6 | 34296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34297 | PyObject * obj2 = 0 ; |
34298 | char *kwnames[] = { | |
242b7b46 | 34299 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
34300 | }; |
34301 | ||
994141e6 | 34302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
34303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34305 | { | |
34306 | arg2 = (int)(SWIG_As_int(obj1)); | |
34307 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34308 | } | |
d14a1e28 RD |
34309 | { |
34310 | arg3 = wxString_in_helper(obj2); | |
34311 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34312 | temp3 = true; |
d14a1e28 RD |
34313 | } |
34314 | { | |
34315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34316 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
34317 | ||
34318 | wxPyEndAllowThreads(__tstate); | |
34319 | if (PyErr_Occurred()) SWIG_fail; | |
34320 | } | |
34321 | Py_INCREF(Py_None); resultobj = Py_None; | |
34322 | { | |
34323 | if (temp3) | |
34324 | delete arg3; | |
34325 | } | |
34326 | return resultobj; | |
34327 | fail: | |
34328 | { | |
34329 | if (temp3) | |
34330 | delete arg3; | |
34331 | } | |
34332 | return NULL; | |
34333 | } | |
34334 | ||
34335 | ||
c32bde28 | 34336 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34337 | PyObject *resultobj; |
34338 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34339 | int arg2 ; | |
34340 | wxString result; | |
34341 | PyObject * obj0 = 0 ; | |
994141e6 | 34342 | PyObject * obj1 = 0 ; |
d14a1e28 | 34343 | char *kwnames[] = { |
242b7b46 | 34344 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
34345 | }; |
34346 | ||
994141e6 | 34347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
34348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34350 | { | |
34351 | arg2 = (int)(SWIG_As_int(obj1)); | |
34352 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34353 | } | |
d14a1e28 RD |
34354 | { |
34355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34356 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
34357 | ||
34358 | wxPyEndAllowThreads(__tstate); | |
34359 | if (PyErr_Occurred()) SWIG_fail; | |
34360 | } | |
34361 | { | |
34362 | #if wxUSE_UNICODE | |
34363 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34364 | #else | |
34365 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34366 | #endif | |
34367 | } | |
34368 | return resultobj; | |
34369 | fail: | |
34370 | return NULL; | |
34371 | } | |
34372 | ||
34373 | ||
c32bde28 | 34374 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34375 | PyObject *resultobj; |
34376 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34377 | wxString *arg2 = 0 ; | |
ae8162c8 | 34378 | bool temp2 = false ; |
d14a1e28 RD |
34379 | PyObject * obj0 = 0 ; |
34380 | PyObject * obj1 = 0 ; | |
34381 | char *kwnames[] = { | |
34382 | (char *) "self",(char *) "title", NULL | |
34383 | }; | |
34384 | ||
34385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34388 | { |
34389 | arg2 = wxString_in_helper(obj1); | |
34390 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34391 | temp2 = true; |
d14a1e28 RD |
34392 | } |
34393 | { | |
34394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34395 | (arg1)->SetTitle((wxString const &)*arg2); | |
34396 | ||
34397 | wxPyEndAllowThreads(__tstate); | |
34398 | if (PyErr_Occurred()) SWIG_fail; | |
34399 | } | |
34400 | Py_INCREF(Py_None); resultobj = Py_None; | |
34401 | { | |
34402 | if (temp2) | |
34403 | delete arg2; | |
34404 | } | |
34405 | return resultobj; | |
34406 | fail: | |
34407 | { | |
34408 | if (temp2) | |
34409 | delete arg2; | |
34410 | } | |
34411 | return NULL; | |
34412 | } | |
34413 | ||
34414 | ||
c32bde28 | 34415 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34416 | PyObject *resultobj; |
34417 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34418 | wxString result; | |
34419 | PyObject * obj0 = 0 ; | |
34420 | char *kwnames[] = { | |
34421 | (char *) "self", NULL | |
34422 | }; | |
34423 | ||
34424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34427 | { |
34428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34429 | result = ((wxMenu const *)arg1)->GetTitle(); | |
34430 | ||
34431 | wxPyEndAllowThreads(__tstate); | |
34432 | if (PyErr_Occurred()) SWIG_fail; | |
34433 | } | |
34434 | { | |
34435 | #if wxUSE_UNICODE | |
34436 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34437 | #else | |
34438 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34439 | #endif | |
34440 | } | |
34441 | return resultobj; | |
34442 | fail: | |
34443 | return NULL; | |
34444 | } | |
34445 | ||
34446 | ||
c32bde28 | 34447 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34448 | PyObject *resultobj; |
34449 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34450 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
34451 | PyObject * obj0 = 0 ; | |
34452 | PyObject * obj1 = 0 ; | |
34453 | char *kwnames[] = { | |
34454 | (char *) "self",(char *) "handler", NULL | |
34455 | }; | |
34456 | ||
34457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34460 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); | |
34461 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34462 | { |
34463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34464 | (arg1)->SetEventHandler(arg2); | |
34465 | ||
34466 | wxPyEndAllowThreads(__tstate); | |
34467 | if (PyErr_Occurred()) SWIG_fail; | |
34468 | } | |
34469 | Py_INCREF(Py_None); resultobj = Py_None; | |
34470 | return resultobj; | |
34471 | fail: | |
34472 | return NULL; | |
34473 | } | |
34474 | ||
34475 | ||
c32bde28 | 34476 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34477 | PyObject *resultobj; |
34478 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34479 | wxEvtHandler *result; | |
34480 | PyObject * obj0 = 0 ; | |
34481 | char *kwnames[] = { | |
34482 | (char *) "self", NULL | |
34483 | }; | |
34484 | ||
34485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34488 | { |
34489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34490 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
34491 | ||
34492 | wxPyEndAllowThreads(__tstate); | |
34493 | if (PyErr_Occurred()) SWIG_fail; | |
34494 | } | |
34495 | { | |
412d302d | 34496 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
34497 | } |
34498 | return resultobj; | |
34499 | fail: | |
34500 | return NULL; | |
34501 | } | |
34502 | ||
34503 | ||
c32bde28 | 34504 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34505 | PyObject *resultobj; |
34506 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34507 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34508 | PyObject * obj0 = 0 ; | |
34509 | PyObject * obj1 = 0 ; | |
34510 | char *kwnames[] = { | |
34511 | (char *) "self",(char *) "win", NULL | |
34512 | }; | |
34513 | ||
34514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34515 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34516 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34517 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34518 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34519 | { |
34520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34521 | (arg1)->SetInvokingWindow(arg2); | |
34522 | ||
34523 | wxPyEndAllowThreads(__tstate); | |
34524 | if (PyErr_Occurred()) SWIG_fail; | |
34525 | } | |
34526 | Py_INCREF(Py_None); resultobj = Py_None; | |
34527 | return resultobj; | |
34528 | fail: | |
34529 | return NULL; | |
34530 | } | |
34531 | ||
34532 | ||
c32bde28 | 34533 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34534 | PyObject *resultobj; |
34535 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34536 | wxWindow *result; | |
34537 | PyObject * obj0 = 0 ; | |
34538 | char *kwnames[] = { | |
34539 | (char *) "self", NULL | |
34540 | }; | |
34541 | ||
34542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34545 | { |
34546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34547 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
34548 | ||
34549 | wxPyEndAllowThreads(__tstate); | |
34550 | if (PyErr_Occurred()) SWIG_fail; | |
34551 | } | |
34552 | { | |
412d302d | 34553 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
34554 | } |
34555 | return resultobj; | |
34556 | fail: | |
34557 | return NULL; | |
34558 | } | |
34559 | ||
34560 | ||
c32bde28 | 34561 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34562 | PyObject *resultobj; |
34563 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34564 | long result; | |
34565 | PyObject * obj0 = 0 ; | |
34566 | char *kwnames[] = { | |
34567 | (char *) "self", NULL | |
34568 | }; | |
34569 | ||
34570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34573 | { |
34574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34575 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
34576 | ||
34577 | wxPyEndAllowThreads(__tstate); | |
34578 | if (PyErr_Occurred()) SWIG_fail; | |
34579 | } | |
093d3ff1 RD |
34580 | { |
34581 | resultobj = SWIG_From_long((long)(result)); | |
34582 | } | |
d14a1e28 RD |
34583 | return resultobj; |
34584 | fail: | |
34585 | return NULL; | |
34586 | } | |
34587 | ||
34588 | ||
c32bde28 | 34589 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34590 | PyObject *resultobj; |
34591 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34592 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
34593 | PyObject * obj0 = 0 ; | |
34594 | PyObject * obj1 = 0 ; | |
34595 | char *kwnames[] = { | |
34596 | (char *) "self",(char *) "source", NULL | |
34597 | }; | |
34598 | ||
34599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 34602 | if (obj1) { |
093d3ff1 RD |
34603 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0); |
34604 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34605 | } |
34606 | { | |
34607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34608 | (arg1)->UpdateUI(arg2); | |
34609 | ||
34610 | wxPyEndAllowThreads(__tstate); | |
34611 | if (PyErr_Occurred()) SWIG_fail; | |
34612 | } | |
34613 | Py_INCREF(Py_None); resultobj = Py_None; | |
34614 | return resultobj; | |
34615 | fail: | |
34616 | return NULL; | |
34617 | } | |
34618 | ||
34619 | ||
c32bde28 | 34620 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34621 | PyObject *resultobj; |
34622 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34623 | wxMenuBar *result; | |
34624 | PyObject * obj0 = 0 ; | |
34625 | char *kwnames[] = { | |
34626 | (char *) "self", NULL | |
34627 | }; | |
34628 | ||
34629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34632 | { |
34633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34634 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
34635 | ||
34636 | wxPyEndAllowThreads(__tstate); | |
34637 | if (PyErr_Occurred()) SWIG_fail; | |
34638 | } | |
34639 | { | |
412d302d | 34640 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
34641 | } |
34642 | return resultobj; | |
34643 | fail: | |
34644 | return NULL; | |
34645 | } | |
34646 | ||
34647 | ||
c32bde28 | 34648 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34649 | PyObject *resultobj; |
34650 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34651 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
34652 | PyObject * obj0 = 0 ; | |
34653 | PyObject * obj1 = 0 ; | |
34654 | char *kwnames[] = { | |
34655 | (char *) "self",(char *) "menubar", NULL | |
34656 | }; | |
34657 | ||
34658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34661 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuBarBase, SWIG_POINTER_EXCEPTION | 0); | |
34662 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34663 | { |
34664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34665 | (arg1)->Attach(arg2); | |
34666 | ||
34667 | wxPyEndAllowThreads(__tstate); | |
34668 | if (PyErr_Occurred()) SWIG_fail; | |
34669 | } | |
34670 | Py_INCREF(Py_None); resultobj = Py_None; | |
34671 | return resultobj; | |
34672 | fail: | |
34673 | return NULL; | |
34674 | } | |
34675 | ||
34676 | ||
c32bde28 | 34677 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34678 | PyObject *resultobj; |
34679 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34680 | PyObject * obj0 = 0 ; | |
34681 | char *kwnames[] = { | |
34682 | (char *) "self", NULL | |
34683 | }; | |
34684 | ||
34685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34688 | { |
34689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34690 | (arg1)->Detach(); | |
34691 | ||
34692 | wxPyEndAllowThreads(__tstate); | |
34693 | if (PyErr_Occurred()) SWIG_fail; | |
34694 | } | |
34695 | Py_INCREF(Py_None); resultobj = Py_None; | |
34696 | return resultobj; | |
34697 | fail: | |
34698 | return NULL; | |
34699 | } | |
34700 | ||
34701 | ||
c32bde28 | 34702 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34703 | PyObject *resultobj; |
34704 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34705 | bool result; | |
34706 | PyObject * obj0 = 0 ; | |
34707 | char *kwnames[] = { | |
34708 | (char *) "self", NULL | |
34709 | }; | |
34710 | ||
34711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34714 | { |
34715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34716 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
34717 | ||
34718 | wxPyEndAllowThreads(__tstate); | |
34719 | if (PyErr_Occurred()) SWIG_fail; | |
34720 | } | |
4f89f6a3 RD |
34721 | { |
34722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34723 | } | |
d14a1e28 RD |
34724 | return resultobj; |
34725 | fail: | |
34726 | return NULL; | |
34727 | } | |
34728 | ||
34729 | ||
c32bde28 | 34730 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34731 | PyObject *resultobj; |
34732 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34733 | wxMenu *arg2 = (wxMenu *) 0 ; | |
34734 | PyObject * obj0 = 0 ; | |
34735 | PyObject * obj1 = 0 ; | |
34736 | char *kwnames[] = { | |
34737 | (char *) "self",(char *) "parent", NULL | |
34738 | }; | |
34739 | ||
34740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34743 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34744 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34745 | { |
34746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34747 | (arg1)->SetParent(arg2); | |
34748 | ||
34749 | wxPyEndAllowThreads(__tstate); | |
34750 | if (PyErr_Occurred()) SWIG_fail; | |
34751 | } | |
34752 | Py_INCREF(Py_None); resultobj = Py_None; | |
34753 | return resultobj; | |
34754 | fail: | |
34755 | return NULL; | |
34756 | } | |
34757 | ||
34758 | ||
c32bde28 | 34759 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34760 | PyObject *resultobj; |
34761 | wxMenu *arg1 = (wxMenu *) 0 ; | |
34762 | wxMenu *result; | |
34763 | PyObject * obj0 = 0 ; | |
34764 | char *kwnames[] = { | |
34765 | (char *) "self", NULL | |
34766 | }; | |
34767 | ||
34768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
34770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34771 | { |
34772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34773 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
34774 | ||
34775 | wxPyEndAllowThreads(__tstate); | |
34776 | if (PyErr_Occurred()) SWIG_fail; | |
34777 | } | |
34778 | { | |
412d302d | 34779 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
34780 | } |
34781 | return resultobj; | |
34782 | fail: | |
34783 | return NULL; | |
34784 | } | |
34785 | ||
34786 | ||
c32bde28 | 34787 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34788 | PyObject *obj; |
34789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34790 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
34791 | Py_INCREF(obj); | |
34792 | return Py_BuildValue((char *)""); | |
34793 | } | |
c32bde28 | 34794 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34795 | PyObject *resultobj; |
34796 | long arg1 = (long) 0 ; | |
34797 | wxMenuBar *result; | |
994141e6 | 34798 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
34799 | char *kwnames[] = { |
34800 | (char *) "style", NULL | |
34801 | }; | |
34802 | ||
994141e6 RD |
34803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
34804 | if (obj0) { | |
093d3ff1 RD |
34805 | { |
34806 | arg1 = (long)(SWIG_As_long(obj0)); | |
34807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34808 | } | |
994141e6 | 34809 | } |
d14a1e28 | 34810 | { |
e3b71cb8 | 34811 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
34812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34813 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
34814 | ||
34815 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34816 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 34817 | } |
b0f7404b | 34818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d14a1e28 RD |
34819 | return resultobj; |
34820 | fail: | |
34821 | return NULL; | |
34822 | } | |
34823 | ||
34824 | ||
c32bde28 | 34825 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34826 | PyObject *resultobj; |
34827 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34828 | wxMenu *arg2 = (wxMenu *) 0 ; | |
34829 | wxString *arg3 = 0 ; | |
34830 | bool result; | |
ae8162c8 | 34831 | bool temp3 = false ; |
d14a1e28 RD |
34832 | PyObject * obj0 = 0 ; |
34833 | PyObject * obj1 = 0 ; | |
34834 | PyObject * obj2 = 0 ; | |
34835 | char *kwnames[] = { | |
34836 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
34837 | }; | |
34838 | ||
34839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34840 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34841 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34842 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34843 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34844 | { |
34845 | arg3 = wxString_in_helper(obj2); | |
34846 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34847 | temp3 = true; |
d14a1e28 RD |
34848 | } |
34849 | { | |
34850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34851 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
34852 | ||
34853 | wxPyEndAllowThreads(__tstate); | |
34854 | if (PyErr_Occurred()) SWIG_fail; | |
34855 | } | |
4f89f6a3 RD |
34856 | { |
34857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34858 | } | |
d14a1e28 RD |
34859 | { |
34860 | if (temp3) | |
34861 | delete arg3; | |
34862 | } | |
34863 | return resultobj; | |
34864 | fail: | |
34865 | { | |
34866 | if (temp3) | |
34867 | delete arg3; | |
34868 | } | |
34869 | return NULL; | |
34870 | } | |
34871 | ||
34872 | ||
c32bde28 | 34873 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34874 | PyObject *resultobj; |
34875 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34876 | size_t arg2 ; | |
34877 | wxMenu *arg3 = (wxMenu *) 0 ; | |
34878 | wxString *arg4 = 0 ; | |
34879 | bool result; | |
ae8162c8 | 34880 | bool temp4 = false ; |
d14a1e28 RD |
34881 | PyObject * obj0 = 0 ; |
34882 | PyObject * obj1 = 0 ; | |
34883 | PyObject * obj2 = 0 ; | |
34884 | PyObject * obj3 = 0 ; | |
34885 | char *kwnames[] = { | |
34886 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
34887 | }; | |
34888 | ||
34889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
34890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34892 | { | |
34893 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34894 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34895 | } | |
34896 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
34897 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
34898 | { |
34899 | arg4 = wxString_in_helper(obj3); | |
34900 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 34901 | temp4 = true; |
d14a1e28 RD |
34902 | } |
34903 | { | |
34904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34905 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
34906 | ||
34907 | wxPyEndAllowThreads(__tstate); | |
34908 | if (PyErr_Occurred()) SWIG_fail; | |
34909 | } | |
4f89f6a3 RD |
34910 | { |
34911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34912 | } | |
d14a1e28 RD |
34913 | { |
34914 | if (temp4) | |
34915 | delete arg4; | |
34916 | } | |
34917 | return resultobj; | |
34918 | fail: | |
34919 | { | |
34920 | if (temp4) | |
34921 | delete arg4; | |
34922 | } | |
34923 | return NULL; | |
34924 | } | |
34925 | ||
34926 | ||
c32bde28 | 34927 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34928 | PyObject *resultobj; |
34929 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34930 | size_t result; | |
34931 | PyObject * obj0 = 0 ; | |
34932 | char *kwnames[] = { | |
34933 | (char *) "self", NULL | |
34934 | }; | |
34935 | ||
34936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34939 | { |
34940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34941 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
34942 | ||
34943 | wxPyEndAllowThreads(__tstate); | |
34944 | if (PyErr_Occurred()) SWIG_fail; | |
34945 | } | |
093d3ff1 RD |
34946 | { |
34947 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
34948 | } | |
d14a1e28 RD |
34949 | return resultobj; |
34950 | fail: | |
34951 | return NULL; | |
34952 | } | |
34953 | ||
34954 | ||
c32bde28 | 34955 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34956 | PyObject *resultobj; |
34957 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34958 | size_t arg2 ; | |
34959 | wxMenu *result; | |
34960 | PyObject * obj0 = 0 ; | |
34961 | PyObject * obj1 = 0 ; | |
34962 | char *kwnames[] = { | |
34963 | (char *) "self",(char *) "pos", NULL | |
34964 | }; | |
34965 | ||
34966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
34968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34969 | { | |
34970 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
34971 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34972 | } | |
d14a1e28 RD |
34973 | { |
34974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34975 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
34976 | ||
34977 | wxPyEndAllowThreads(__tstate); | |
34978 | if (PyErr_Occurred()) SWIG_fail; | |
34979 | } | |
34980 | { | |
412d302d | 34981 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
34982 | } |
34983 | return resultobj; | |
34984 | fail: | |
34985 | return NULL; | |
34986 | } | |
34987 | ||
34988 | ||
c32bde28 | 34989 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
34990 | PyObject *resultobj; |
34991 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
34992 | size_t arg2 ; | |
34993 | wxMenu *arg3 = (wxMenu *) 0 ; | |
34994 | wxString *arg4 = 0 ; | |
34995 | wxMenu *result; | |
ae8162c8 | 34996 | bool temp4 = false ; |
d14a1e28 RD |
34997 | PyObject * obj0 = 0 ; |
34998 | PyObject * obj1 = 0 ; | |
34999 | PyObject * obj2 = 0 ; | |
35000 | PyObject * obj3 = 0 ; | |
35001 | char *kwnames[] = { | |
35002 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
35003 | }; | |
35004 | ||
35005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
35006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35008 | { | |
35009 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35011 | } | |
35012 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
35013 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
35014 | { |
35015 | arg4 = wxString_in_helper(obj3); | |
35016 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 35017 | temp4 = true; |
d14a1e28 RD |
35018 | } |
35019 | { | |
35020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35021 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
35022 | ||
35023 | wxPyEndAllowThreads(__tstate); | |
35024 | if (PyErr_Occurred()) SWIG_fail; | |
35025 | } | |
35026 | { | |
412d302d | 35027 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
35028 | } |
35029 | { | |
35030 | if (temp4) | |
35031 | delete arg4; | |
35032 | } | |
35033 | return resultobj; | |
35034 | fail: | |
35035 | { | |
35036 | if (temp4) | |
35037 | delete arg4; | |
35038 | } | |
35039 | return NULL; | |
35040 | } | |
35041 | ||
35042 | ||
c32bde28 | 35043 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35044 | PyObject *resultobj; |
35045 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35046 | size_t arg2 ; | |
35047 | wxMenu *result; | |
35048 | PyObject * obj0 = 0 ; | |
35049 | PyObject * obj1 = 0 ; | |
35050 | char *kwnames[] = { | |
35051 | (char *) "self",(char *) "pos", NULL | |
35052 | }; | |
35053 | ||
35054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35055 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35056 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35057 | { | |
35058 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35059 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35060 | } | |
d14a1e28 RD |
35061 | { |
35062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35063 | result = (wxMenu *)(arg1)->Remove(arg2); | |
35064 | ||
35065 | wxPyEndAllowThreads(__tstate); | |
35066 | if (PyErr_Occurred()) SWIG_fail; | |
35067 | } | |
35068 | { | |
412d302d | 35069 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
35070 | } |
35071 | return resultobj; | |
35072 | fail: | |
35073 | return NULL; | |
35074 | } | |
35075 | ||
35076 | ||
c32bde28 | 35077 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35078 | PyObject *resultobj; |
35079 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35080 | size_t arg2 ; | |
35081 | bool arg3 ; | |
35082 | PyObject * obj0 = 0 ; | |
35083 | PyObject * obj1 = 0 ; | |
35084 | PyObject * obj2 = 0 ; | |
35085 | char *kwnames[] = { | |
35086 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
35087 | }; | |
35088 | ||
35089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35090 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35091 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35092 | { | |
35093 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35094 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35095 | } | |
35096 | { | |
35097 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
35098 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35099 | } | |
d14a1e28 RD |
35100 | { |
35101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35102 | (arg1)->EnableTop(arg2,arg3); | |
35103 | ||
35104 | wxPyEndAllowThreads(__tstate); | |
35105 | if (PyErr_Occurred()) SWIG_fail; | |
35106 | } | |
35107 | Py_INCREF(Py_None); resultobj = Py_None; | |
35108 | return resultobj; | |
35109 | fail: | |
35110 | return NULL; | |
35111 | } | |
35112 | ||
35113 | ||
c32bde28 | 35114 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35115 | PyObject *resultobj; |
35116 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35117 | size_t arg2 ; | |
35118 | bool result; | |
35119 | PyObject * obj0 = 0 ; | |
35120 | PyObject * obj1 = 0 ; | |
35121 | char *kwnames[] = { | |
35122 | (char *) "self",(char *) "pos", NULL | |
35123 | }; | |
35124 | ||
35125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35128 | { | |
35129 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35130 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35131 | } | |
d14a1e28 RD |
35132 | { |
35133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35134 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
35135 | ||
35136 | wxPyEndAllowThreads(__tstate); | |
35137 | if (PyErr_Occurred()) SWIG_fail; | |
35138 | } | |
4f89f6a3 RD |
35139 | { |
35140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35141 | } | |
d14a1e28 RD |
35142 | return resultobj; |
35143 | fail: | |
35144 | return NULL; | |
35145 | } | |
35146 | ||
35147 | ||
c32bde28 | 35148 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35149 | PyObject *resultobj; |
35150 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35151 | size_t arg2 ; | |
35152 | wxString *arg3 = 0 ; | |
ae8162c8 | 35153 | bool temp3 = false ; |
d14a1e28 RD |
35154 | PyObject * obj0 = 0 ; |
35155 | PyObject * obj1 = 0 ; | |
35156 | PyObject * obj2 = 0 ; | |
35157 | char *kwnames[] = { | |
35158 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
35159 | }; | |
35160 | ||
35161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35164 | { | |
35165 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35166 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35167 | } | |
d14a1e28 RD |
35168 | { |
35169 | arg3 = wxString_in_helper(obj2); | |
35170 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35171 | temp3 = true; |
d14a1e28 RD |
35172 | } |
35173 | { | |
35174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35175 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
35176 | ||
35177 | wxPyEndAllowThreads(__tstate); | |
35178 | if (PyErr_Occurred()) SWIG_fail; | |
35179 | } | |
35180 | Py_INCREF(Py_None); resultobj = Py_None; | |
35181 | { | |
35182 | if (temp3) | |
35183 | delete arg3; | |
35184 | } | |
35185 | return resultobj; | |
35186 | fail: | |
35187 | { | |
35188 | if (temp3) | |
35189 | delete arg3; | |
35190 | } | |
35191 | return NULL; | |
35192 | } | |
35193 | ||
35194 | ||
c32bde28 | 35195 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35196 | PyObject *resultobj; |
35197 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35198 | size_t arg2 ; | |
35199 | wxString result; | |
35200 | PyObject * obj0 = 0 ; | |
35201 | PyObject * obj1 = 0 ; | |
35202 | char *kwnames[] = { | |
35203 | (char *) "self",(char *) "pos", NULL | |
35204 | }; | |
35205 | ||
35206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35209 | { | |
35210 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
35211 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35212 | } | |
d14a1e28 RD |
35213 | { |
35214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35215 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
35216 | ||
35217 | wxPyEndAllowThreads(__tstate); | |
35218 | if (PyErr_Occurred()) SWIG_fail; | |
35219 | } | |
35220 | { | |
35221 | #if wxUSE_UNICODE | |
35222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35223 | #else | |
35224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35225 | #endif | |
35226 | } | |
35227 | return resultobj; | |
35228 | fail: | |
35229 | return NULL; | |
35230 | } | |
35231 | ||
35232 | ||
c32bde28 | 35233 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35234 | PyObject *resultobj; |
35235 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35236 | wxString *arg2 = 0 ; | |
35237 | wxString *arg3 = 0 ; | |
35238 | int result; | |
ae8162c8 RD |
35239 | bool temp2 = false ; |
35240 | bool temp3 = false ; | |
d14a1e28 RD |
35241 | PyObject * obj0 = 0 ; |
35242 | PyObject * obj1 = 0 ; | |
35243 | PyObject * obj2 = 0 ; | |
35244 | char *kwnames[] = { | |
35245 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
35246 | }; | |
35247 | ||
35248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
35251 | { |
35252 | arg2 = wxString_in_helper(obj1); | |
35253 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 35254 | temp2 = true; |
d14a1e28 RD |
35255 | } |
35256 | { | |
35257 | arg3 = wxString_in_helper(obj2); | |
35258 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35259 | temp3 = true; |
d14a1e28 RD |
35260 | } |
35261 | { | |
35262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35263 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
35264 | ||
35265 | wxPyEndAllowThreads(__tstate); | |
35266 | if (PyErr_Occurred()) SWIG_fail; | |
35267 | } | |
093d3ff1 RD |
35268 | { |
35269 | resultobj = SWIG_From_int((int)(result)); | |
35270 | } | |
d14a1e28 RD |
35271 | { |
35272 | if (temp2) | |
35273 | delete arg2; | |
35274 | } | |
35275 | { | |
35276 | if (temp3) | |
35277 | delete arg3; | |
35278 | } | |
35279 | return resultobj; | |
35280 | fail: | |
35281 | { | |
35282 | if (temp2) | |
35283 | delete arg2; | |
35284 | } | |
35285 | { | |
35286 | if (temp3) | |
35287 | delete arg3; | |
35288 | } | |
35289 | return NULL; | |
35290 | } | |
35291 | ||
35292 | ||
c32bde28 | 35293 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35294 | PyObject *resultobj; |
35295 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35296 | int arg2 ; | |
35297 | wxMenuItem *result; | |
35298 | PyObject * obj0 = 0 ; | |
994141e6 | 35299 | PyObject * obj1 = 0 ; |
d14a1e28 | 35300 | char *kwnames[] = { |
242b7b46 | 35301 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
35302 | }; |
35303 | ||
994141e6 | 35304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
35305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35307 | { | |
35308 | arg2 = (int)(SWIG_As_int(obj1)); | |
35309 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35310 | } | |
d14a1e28 RD |
35311 | { |
35312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35313 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
35314 | ||
35315 | wxPyEndAllowThreads(__tstate); | |
35316 | if (PyErr_Occurred()) SWIG_fail; | |
35317 | } | |
35318 | { | |
412d302d | 35319 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
35320 | } |
35321 | return resultobj; | |
35322 | fail: | |
35323 | return NULL; | |
35324 | } | |
35325 | ||
35326 | ||
c32bde28 | 35327 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35328 | PyObject *resultobj; |
35329 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35330 | wxString *arg2 = 0 ; | |
35331 | int result; | |
ae8162c8 | 35332 | bool temp2 = false ; |
d14a1e28 RD |
35333 | PyObject * obj0 = 0 ; |
35334 | PyObject * obj1 = 0 ; | |
35335 | char *kwnames[] = { | |
35336 | (char *) "self",(char *) "title", NULL | |
35337 | }; | |
35338 | ||
35339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
35342 | { |
35343 | arg2 = wxString_in_helper(obj1); | |
35344 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 35345 | temp2 = true; |
d14a1e28 RD |
35346 | } |
35347 | { | |
35348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35349 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
35350 | ||
35351 | wxPyEndAllowThreads(__tstate); | |
35352 | if (PyErr_Occurred()) SWIG_fail; | |
35353 | } | |
093d3ff1 RD |
35354 | { |
35355 | resultobj = SWIG_From_int((int)(result)); | |
35356 | } | |
d14a1e28 RD |
35357 | { |
35358 | if (temp2) | |
35359 | delete arg2; | |
35360 | } | |
35361 | return resultobj; | |
35362 | fail: | |
35363 | { | |
35364 | if (temp2) | |
35365 | delete arg2; | |
35366 | } | |
35367 | return NULL; | |
35368 | } | |
35369 | ||
35370 | ||
c32bde28 | 35371 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35372 | PyObject *resultobj; |
35373 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35374 | int arg2 ; | |
35375 | bool arg3 ; | |
35376 | PyObject * obj0 = 0 ; | |
994141e6 | 35377 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35378 | PyObject * obj2 = 0 ; |
35379 | char *kwnames[] = { | |
242b7b46 | 35380 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
35381 | }; |
35382 | ||
994141e6 | 35383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
35384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35386 | { | |
35387 | arg2 = (int)(SWIG_As_int(obj1)); | |
35388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35389 | } | |
35390 | { | |
35391 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
35392 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35393 | } | |
d14a1e28 RD |
35394 | { |
35395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35396 | (arg1)->Enable(arg2,arg3); | |
35397 | ||
35398 | wxPyEndAllowThreads(__tstate); | |
35399 | if (PyErr_Occurred()) SWIG_fail; | |
35400 | } | |
35401 | Py_INCREF(Py_None); resultobj = Py_None; | |
35402 | return resultobj; | |
35403 | fail: | |
35404 | return NULL; | |
35405 | } | |
35406 | ||
35407 | ||
c32bde28 | 35408 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35409 | PyObject *resultobj; |
35410 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35411 | int arg2 ; | |
35412 | bool arg3 ; | |
35413 | PyObject * obj0 = 0 ; | |
994141e6 | 35414 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35415 | PyObject * obj2 = 0 ; |
35416 | char *kwnames[] = { | |
242b7b46 | 35417 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
35418 | }; |
35419 | ||
994141e6 | 35420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
35421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35423 | { | |
35424 | arg2 = (int)(SWIG_As_int(obj1)); | |
35425 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35426 | } | |
35427 | { | |
35428 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
35429 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35430 | } | |
d14a1e28 RD |
35431 | { |
35432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35433 | (arg1)->Check(arg2,arg3); | |
35434 | ||
35435 | wxPyEndAllowThreads(__tstate); | |
35436 | if (PyErr_Occurred()) SWIG_fail; | |
35437 | } | |
35438 | Py_INCREF(Py_None); resultobj = Py_None; | |
35439 | return resultobj; | |
35440 | fail: | |
35441 | return NULL; | |
35442 | } | |
35443 | ||
35444 | ||
c32bde28 | 35445 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35446 | PyObject *resultobj; |
35447 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35448 | int arg2 ; | |
35449 | bool result; | |
35450 | PyObject * obj0 = 0 ; | |
994141e6 | 35451 | PyObject * obj1 = 0 ; |
d14a1e28 | 35452 | char *kwnames[] = { |
242b7b46 | 35453 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
35454 | }; |
35455 | ||
994141e6 | 35456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
35457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35459 | { | |
35460 | arg2 = (int)(SWIG_As_int(obj1)); | |
35461 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35462 | } | |
d14a1e28 RD |
35463 | { |
35464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35465 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
35466 | ||
35467 | wxPyEndAllowThreads(__tstate); | |
35468 | if (PyErr_Occurred()) SWIG_fail; | |
35469 | } | |
4f89f6a3 RD |
35470 | { |
35471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35472 | } | |
d14a1e28 RD |
35473 | return resultobj; |
35474 | fail: | |
35475 | return NULL; | |
35476 | } | |
35477 | ||
35478 | ||
c32bde28 | 35479 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35480 | PyObject *resultobj; |
35481 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35482 | int arg2 ; | |
35483 | bool result; | |
35484 | PyObject * obj0 = 0 ; | |
994141e6 | 35485 | PyObject * obj1 = 0 ; |
d14a1e28 | 35486 | char *kwnames[] = { |
242b7b46 | 35487 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
35488 | }; |
35489 | ||
994141e6 | 35490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
35491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35493 | { | |
35494 | arg2 = (int)(SWIG_As_int(obj1)); | |
35495 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35496 | } | |
d14a1e28 RD |
35497 | { |
35498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35499 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
35500 | ||
35501 | wxPyEndAllowThreads(__tstate); | |
35502 | if (PyErr_Occurred()) SWIG_fail; | |
35503 | } | |
4f89f6a3 RD |
35504 | { |
35505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35506 | } | |
d14a1e28 RD |
35507 | return resultobj; |
35508 | fail: | |
35509 | return NULL; | |
35510 | } | |
35511 | ||
35512 | ||
c32bde28 | 35513 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35514 | PyObject *resultobj; |
35515 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35516 | int arg2 ; | |
35517 | wxString *arg3 = 0 ; | |
ae8162c8 | 35518 | bool temp3 = false ; |
d14a1e28 | 35519 | PyObject * obj0 = 0 ; |
994141e6 | 35520 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35521 | PyObject * obj2 = 0 ; |
35522 | char *kwnames[] = { | |
242b7b46 | 35523 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
35524 | }; |
35525 | ||
994141e6 | 35526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
35527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35529 | { | |
35530 | arg2 = (int)(SWIG_As_int(obj1)); | |
35531 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35532 | } | |
d14a1e28 RD |
35533 | { |
35534 | arg3 = wxString_in_helper(obj2); | |
35535 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35536 | temp3 = true; |
d14a1e28 RD |
35537 | } |
35538 | { | |
35539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35540 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
35541 | ||
35542 | wxPyEndAllowThreads(__tstate); | |
35543 | if (PyErr_Occurred()) SWIG_fail; | |
35544 | } | |
35545 | Py_INCREF(Py_None); resultobj = Py_None; | |
35546 | { | |
35547 | if (temp3) | |
35548 | delete arg3; | |
35549 | } | |
35550 | return resultobj; | |
35551 | fail: | |
35552 | { | |
35553 | if (temp3) | |
35554 | delete arg3; | |
35555 | } | |
35556 | return NULL; | |
35557 | } | |
35558 | ||
35559 | ||
c32bde28 | 35560 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35561 | PyObject *resultobj; |
35562 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35563 | int arg2 ; | |
35564 | wxString result; | |
35565 | PyObject * obj0 = 0 ; | |
994141e6 | 35566 | PyObject * obj1 = 0 ; |
d14a1e28 | 35567 | char *kwnames[] = { |
242b7b46 | 35568 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
35569 | }; |
35570 | ||
994141e6 | 35571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
35572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35574 | { | |
35575 | arg2 = (int)(SWIG_As_int(obj1)); | |
35576 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35577 | } | |
d14a1e28 RD |
35578 | { |
35579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35580 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
35581 | ||
35582 | wxPyEndAllowThreads(__tstate); | |
35583 | if (PyErr_Occurred()) SWIG_fail; | |
35584 | } | |
35585 | { | |
35586 | #if wxUSE_UNICODE | |
35587 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35588 | #else | |
35589 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35590 | #endif | |
35591 | } | |
35592 | return resultobj; | |
35593 | fail: | |
35594 | return NULL; | |
35595 | } | |
35596 | ||
35597 | ||
c32bde28 | 35598 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35599 | PyObject *resultobj; |
35600 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35601 | int arg2 ; | |
35602 | wxString *arg3 = 0 ; | |
ae8162c8 | 35603 | bool temp3 = false ; |
d14a1e28 | 35604 | PyObject * obj0 = 0 ; |
994141e6 | 35605 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35606 | PyObject * obj2 = 0 ; |
35607 | char *kwnames[] = { | |
242b7b46 | 35608 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
35609 | }; |
35610 | ||
994141e6 | 35611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
35612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35614 | { | |
35615 | arg2 = (int)(SWIG_As_int(obj1)); | |
35616 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35617 | } | |
d14a1e28 RD |
35618 | { |
35619 | arg3 = wxString_in_helper(obj2); | |
35620 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35621 | temp3 = true; |
d14a1e28 RD |
35622 | } |
35623 | { | |
35624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35625 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
35626 | ||
35627 | wxPyEndAllowThreads(__tstate); | |
35628 | if (PyErr_Occurred()) SWIG_fail; | |
35629 | } | |
35630 | Py_INCREF(Py_None); resultobj = Py_None; | |
35631 | { | |
35632 | if (temp3) | |
35633 | delete arg3; | |
35634 | } | |
35635 | return resultobj; | |
35636 | fail: | |
35637 | { | |
35638 | if (temp3) | |
35639 | delete arg3; | |
35640 | } | |
35641 | return NULL; | |
35642 | } | |
35643 | ||
35644 | ||
c32bde28 | 35645 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35646 | PyObject *resultobj; |
35647 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35648 | int arg2 ; | |
35649 | wxString result; | |
35650 | PyObject * obj0 = 0 ; | |
994141e6 | 35651 | PyObject * obj1 = 0 ; |
d14a1e28 | 35652 | char *kwnames[] = { |
242b7b46 | 35653 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
35654 | }; |
35655 | ||
994141e6 | 35656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
35657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35659 | { | |
35660 | arg2 = (int)(SWIG_As_int(obj1)); | |
35661 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35662 | } | |
d14a1e28 RD |
35663 | { |
35664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35665 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
35666 | ||
35667 | wxPyEndAllowThreads(__tstate); | |
35668 | if (PyErr_Occurred()) SWIG_fail; | |
35669 | } | |
35670 | { | |
35671 | #if wxUSE_UNICODE | |
35672 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35673 | #else | |
35674 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35675 | #endif | |
35676 | } | |
35677 | return resultobj; | |
35678 | fail: | |
35679 | return NULL; | |
35680 | } | |
35681 | ||
35682 | ||
c32bde28 | 35683 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35684 | PyObject *resultobj; |
35685 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35686 | wxFrame *result; | |
35687 | PyObject * obj0 = 0 ; | |
35688 | char *kwnames[] = { | |
35689 | (char *) "self", NULL | |
35690 | }; | |
35691 | ||
35692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
35695 | { |
35696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35697 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
35698 | ||
35699 | wxPyEndAllowThreads(__tstate); | |
35700 | if (PyErr_Occurred()) SWIG_fail; | |
35701 | } | |
35702 | { | |
412d302d | 35703 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
35704 | } |
35705 | return resultobj; | |
35706 | fail: | |
35707 | return NULL; | |
35708 | } | |
35709 | ||
35710 | ||
c32bde28 | 35711 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35712 | PyObject *resultobj; |
35713 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35714 | bool result; | |
35715 | PyObject * obj0 = 0 ; | |
35716 | char *kwnames[] = { | |
35717 | (char *) "self", NULL | |
35718 | }; | |
35719 | ||
35720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35721 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35722 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
35723 | { |
35724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35725 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
35726 | ||
35727 | wxPyEndAllowThreads(__tstate); | |
35728 | if (PyErr_Occurred()) SWIG_fail; | |
35729 | } | |
4f89f6a3 RD |
35730 | { |
35731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35732 | } | |
d14a1e28 RD |
35733 | return resultobj; |
35734 | fail: | |
35735 | return NULL; | |
35736 | } | |
35737 | ||
35738 | ||
c32bde28 | 35739 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35740 | PyObject *resultobj; |
35741 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35742 | wxFrame *arg2 = (wxFrame *) 0 ; | |
35743 | PyObject * obj0 = 0 ; | |
35744 | PyObject * obj1 = 0 ; | |
35745 | char *kwnames[] = { | |
35746 | (char *) "self",(char *) "frame", NULL | |
35747 | }; | |
35748 | ||
35749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35752 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0); | |
35753 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
35754 | { |
35755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35756 | (arg1)->Attach(arg2); | |
35757 | ||
35758 | wxPyEndAllowThreads(__tstate); | |
35759 | if (PyErr_Occurred()) SWIG_fail; | |
35760 | } | |
35761 | Py_INCREF(Py_None); resultobj = Py_None; | |
35762 | return resultobj; | |
35763 | fail: | |
35764 | return NULL; | |
35765 | } | |
35766 | ||
35767 | ||
c32bde28 | 35768 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35769 | PyObject *resultobj; |
35770 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
35771 | PyObject * obj0 = 0 ; | |
35772 | char *kwnames[] = { | |
35773 | (char *) "self", NULL | |
35774 | }; | |
35775 | ||
35776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35777 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0); |
35778 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
35779 | { |
35780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35781 | (arg1)->Detach(); | |
35782 | ||
35783 | wxPyEndAllowThreads(__tstate); | |
35784 | if (PyErr_Occurred()) SWIG_fail; | |
35785 | } | |
35786 | Py_INCREF(Py_None); resultobj = Py_None; | |
35787 | return resultobj; | |
35788 | fail: | |
35789 | return NULL; | |
35790 | } | |
35791 | ||
35792 | ||
c32bde28 | 35793 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
35794 | PyObject *obj; |
35795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35796 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
35797 | Py_INCREF(obj); | |
35798 | return Py_BuildValue((char *)""); | |
35799 | } | |
c32bde28 | 35800 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35801 | PyObject *resultobj; |
35802 | wxMenu *arg1 = (wxMenu *) NULL ; | |
a95a7133 | 35803 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
35804 | wxString const &arg3_defvalue = wxPyEmptyString ; |
35805 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
35806 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
35807 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
093d3ff1 | 35808 | wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
35809 | wxMenu *arg6 = (wxMenu *) NULL ; |
35810 | wxMenuItem *result; | |
ae8162c8 RD |
35811 | bool temp3 = false ; |
35812 | bool temp4 = false ; | |
d14a1e28 | 35813 | PyObject * obj0 = 0 ; |
994141e6 | 35814 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35815 | PyObject * obj2 = 0 ; |
35816 | PyObject * obj3 = 0 ; | |
994141e6 | 35817 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
35818 | PyObject * obj5 = 0 ; |
35819 | char *kwnames[] = { | |
35820 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
35821 | }; | |
35822 | ||
994141e6 | 35823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 35824 | if (obj0) { |
093d3ff1 RD |
35825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
35826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 35827 | } |
994141e6 | 35828 | if (obj1) { |
093d3ff1 RD |
35829 | { |
35830 | arg2 = (int)(SWIG_As_int(obj1)); | |
35831 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35832 | } | |
994141e6 | 35833 | } |
d14a1e28 RD |
35834 | if (obj2) { |
35835 | { | |
35836 | arg3 = wxString_in_helper(obj2); | |
35837 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 35838 | temp3 = true; |
d14a1e28 RD |
35839 | } |
35840 | } | |
35841 | if (obj3) { | |
35842 | { | |
35843 | arg4 = wxString_in_helper(obj3); | |
35844 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 35845 | temp4 = true; |
d14a1e28 RD |
35846 | } |
35847 | } | |
994141e6 | 35848 | if (obj4) { |
093d3ff1 RD |
35849 | { |
35850 | arg5 = (wxItemKind)(SWIG_As_int(obj4)); | |
35851 | if (SWIG_arg_fail(5)) SWIG_fail; | |
35852 | } | |
994141e6 | 35853 | } |
d14a1e28 | 35854 | if (obj5) { |
093d3ff1 RD |
35855 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); |
35856 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
35857 | } |
35858 | { | |
35859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35860 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
35861 | ||
35862 | wxPyEndAllowThreads(__tstate); | |
35863 | if (PyErr_Occurred()) SWIG_fail; | |
35864 | } | |
35865 | { | |
412d302d | 35866 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
35867 | } |
35868 | { | |
35869 | if (temp3) | |
35870 | delete arg3; | |
35871 | } | |
35872 | { | |
35873 | if (temp4) | |
35874 | delete arg4; | |
35875 | } | |
35876 | return resultobj; | |
35877 | fail: | |
35878 | { | |
35879 | if (temp3) | |
35880 | delete arg3; | |
35881 | } | |
35882 | { | |
35883 | if (temp4) | |
35884 | delete arg4; | |
35885 | } | |
35886 | return NULL; | |
35887 | } | |
35888 | ||
35889 | ||
c32bde28 | 35890 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35891 | PyObject *resultobj; |
35892 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35893 | wxMenu *result; | |
35894 | PyObject * obj0 = 0 ; | |
35895 | char *kwnames[] = { | |
35896 | (char *) "self", NULL | |
35897 | }; | |
35898 | ||
35899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
35902 | { |
35903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35904 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
35905 | ||
35906 | wxPyEndAllowThreads(__tstate); | |
35907 | if (PyErr_Occurred()) SWIG_fail; | |
35908 | } | |
35909 | { | |
412d302d | 35910 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
35911 | } |
35912 | return resultobj; | |
35913 | fail: | |
35914 | return NULL; | |
35915 | } | |
35916 | ||
35917 | ||
c32bde28 | 35918 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35919 | PyObject *resultobj; |
35920 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35921 | wxMenu *arg2 = (wxMenu *) 0 ; | |
35922 | PyObject * obj0 = 0 ; | |
35923 | PyObject * obj1 = 0 ; | |
35924 | char *kwnames[] = { | |
35925 | (char *) "self",(char *) "menu", NULL | |
35926 | }; | |
35927 | ||
35928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) 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; | |
35931 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
35932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
35933 | { |
35934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35935 | (arg1)->SetMenu(arg2); | |
35936 | ||
35937 | wxPyEndAllowThreads(__tstate); | |
35938 | if (PyErr_Occurred()) SWIG_fail; | |
35939 | } | |
35940 | Py_INCREF(Py_None); resultobj = Py_None; | |
35941 | return resultobj; | |
35942 | fail: | |
35943 | return NULL; | |
35944 | } | |
35945 | ||
35946 | ||
c32bde28 | 35947 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35948 | PyObject *resultobj; |
35949 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35950 | int arg2 ; | |
35951 | PyObject * obj0 = 0 ; | |
994141e6 | 35952 | PyObject * obj1 = 0 ; |
d14a1e28 | 35953 | char *kwnames[] = { |
242b7b46 | 35954 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
35955 | }; |
35956 | ||
994141e6 | 35957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
35958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35960 | { | |
35961 | arg2 = (int)(SWIG_As_int(obj1)); | |
35962 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35963 | } | |
d14a1e28 RD |
35964 | { |
35965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35966 | (arg1)->SetId(arg2); | |
35967 | ||
35968 | wxPyEndAllowThreads(__tstate); | |
35969 | if (PyErr_Occurred()) SWIG_fail; | |
35970 | } | |
35971 | Py_INCREF(Py_None); resultobj = Py_None; | |
35972 | return resultobj; | |
35973 | fail: | |
35974 | return NULL; | |
35975 | } | |
35976 | ||
35977 | ||
c32bde28 | 35978 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
35979 | PyObject *resultobj; |
35980 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
35981 | int result; | |
35982 | PyObject * obj0 = 0 ; | |
35983 | char *kwnames[] = { | |
35984 | (char *) "self", NULL | |
35985 | }; | |
35986 | ||
35987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
35989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
35990 | { |
35991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35992 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
35993 | ||
35994 | wxPyEndAllowThreads(__tstate); | |
35995 | if (PyErr_Occurred()) SWIG_fail; | |
35996 | } | |
093d3ff1 RD |
35997 | { |
35998 | resultobj = SWIG_From_int((int)(result)); | |
35999 | } | |
d14a1e28 RD |
36000 | return resultobj; |
36001 | fail: | |
36002 | return NULL; | |
36003 | } | |
36004 | ||
36005 | ||
c32bde28 | 36006 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36007 | PyObject *resultobj; |
36008 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36009 | bool result; | |
36010 | PyObject * obj0 = 0 ; | |
36011 | char *kwnames[] = { | |
36012 | (char *) "self", NULL | |
36013 | }; | |
36014 | ||
36015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36018 | { |
36019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36020 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
36021 | ||
36022 | wxPyEndAllowThreads(__tstate); | |
36023 | if (PyErr_Occurred()) SWIG_fail; | |
36024 | } | |
4f89f6a3 RD |
36025 | { |
36026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36027 | } | |
d14a1e28 RD |
36028 | return resultobj; |
36029 | fail: | |
36030 | return NULL; | |
36031 | } | |
36032 | ||
36033 | ||
c32bde28 | 36034 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36035 | PyObject *resultobj; |
36036 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36037 | wxString *arg2 = 0 ; | |
ae8162c8 | 36038 | bool temp2 = false ; |
d14a1e28 RD |
36039 | PyObject * obj0 = 0 ; |
36040 | PyObject * obj1 = 0 ; | |
36041 | char *kwnames[] = { | |
36042 | (char *) "self",(char *) "str", NULL | |
36043 | }; | |
36044 | ||
36045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36048 | { |
36049 | arg2 = wxString_in_helper(obj1); | |
36050 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 36051 | temp2 = true; |
d14a1e28 RD |
36052 | } |
36053 | { | |
36054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36055 | (arg1)->SetText((wxString const &)*arg2); | |
36056 | ||
36057 | wxPyEndAllowThreads(__tstate); | |
36058 | if (PyErr_Occurred()) SWIG_fail; | |
36059 | } | |
36060 | Py_INCREF(Py_None); resultobj = Py_None; | |
36061 | { | |
36062 | if (temp2) | |
36063 | delete arg2; | |
36064 | } | |
36065 | return resultobj; | |
36066 | fail: | |
36067 | { | |
36068 | if (temp2) | |
36069 | delete arg2; | |
36070 | } | |
36071 | return NULL; | |
36072 | } | |
36073 | ||
36074 | ||
c32bde28 | 36075 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36076 | PyObject *resultobj; |
36077 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36078 | wxString result; | |
36079 | PyObject * obj0 = 0 ; | |
36080 | char *kwnames[] = { | |
36081 | (char *) "self", NULL | |
36082 | }; | |
36083 | ||
36084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36087 | { |
36088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36089 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
36090 | ||
36091 | wxPyEndAllowThreads(__tstate); | |
36092 | if (PyErr_Occurred()) SWIG_fail; | |
36093 | } | |
36094 | { | |
36095 | #if wxUSE_UNICODE | |
36096 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36097 | #else | |
36098 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36099 | #endif | |
36100 | } | |
36101 | return resultobj; | |
36102 | fail: | |
36103 | return NULL; | |
36104 | } | |
36105 | ||
36106 | ||
c32bde28 | 36107 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36108 | PyObject *resultobj; |
36109 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36110 | wxString *result; | |
36111 | PyObject * obj0 = 0 ; | |
36112 | char *kwnames[] = { | |
36113 | (char *) "self", NULL | |
36114 | }; | |
36115 | ||
36116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36119 | { |
36120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36121 | { | |
36122 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
36123 | result = (wxString *) &_result_ref; | |
36124 | } | |
36125 | ||
36126 | wxPyEndAllowThreads(__tstate); | |
36127 | if (PyErr_Occurred()) SWIG_fail; | |
36128 | } | |
cc6dd355 RD |
36129 | { |
36130 | #if wxUSE_UNICODE | |
36131 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
36132 | #else | |
36133 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
36134 | #endif | |
36135 | } | |
d14a1e28 RD |
36136 | return resultobj; |
36137 | fail: | |
36138 | return NULL; | |
36139 | } | |
36140 | ||
36141 | ||
c32bde28 | 36142 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36143 | PyObject *resultobj; |
36144 | wxString *arg1 = 0 ; | |
36145 | wxString result; | |
ae8162c8 | 36146 | bool temp1 = false ; |
d14a1e28 RD |
36147 | PyObject * obj0 = 0 ; |
36148 | char *kwnames[] = { | |
36149 | (char *) "text", NULL | |
36150 | }; | |
36151 | ||
36152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
36153 | { | |
36154 | arg1 = wxString_in_helper(obj0); | |
36155 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 36156 | temp1 = true; |
d14a1e28 RD |
36157 | } |
36158 | { | |
36159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36160 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
36161 | ||
36162 | wxPyEndAllowThreads(__tstate); | |
36163 | if (PyErr_Occurred()) SWIG_fail; | |
36164 | } | |
36165 | { | |
36166 | #if wxUSE_UNICODE | |
36167 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
36168 | #else | |
36169 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
36170 | #endif | |
36171 | } | |
36172 | { | |
36173 | if (temp1) | |
36174 | delete arg1; | |
36175 | } | |
36176 | return resultobj; | |
36177 | fail: | |
36178 | { | |
36179 | if (temp1) | |
36180 | delete arg1; | |
36181 | } | |
36182 | return NULL; | |
36183 | } | |
36184 | ||
36185 | ||
c32bde28 | 36186 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36187 | PyObject *resultobj; |
36188 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
093d3ff1 | 36189 | wxItemKind result; |
d14a1e28 RD |
36190 | PyObject * obj0 = 0 ; |
36191 | char *kwnames[] = { | |
36192 | (char *) "self", NULL | |
36193 | }; | |
36194 | ||
36195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36198 | { |
36199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 36200 | result = (wxItemKind)((wxMenuItem const *)arg1)->GetKind(); |
d14a1e28 RD |
36201 | |
36202 | wxPyEndAllowThreads(__tstate); | |
36203 | if (PyErr_Occurred()) SWIG_fail; | |
36204 | } | |
093d3ff1 | 36205 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
36206 | return resultobj; |
36207 | fail: | |
36208 | return NULL; | |
36209 | } | |
36210 | ||
36211 | ||
c32bde28 | 36212 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
a95a7133 RD |
36213 | PyObject *resultobj; |
36214 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
093d3ff1 | 36215 | wxItemKind arg2 ; |
a95a7133 RD |
36216 | PyObject * obj0 = 0 ; |
36217 | PyObject * obj1 = 0 ; | |
36218 | char *kwnames[] = { | |
36219 | (char *) "self",(char *) "kind", NULL | |
36220 | }; | |
36221 | ||
36222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36225 | { | |
36226 | arg2 = (wxItemKind)(SWIG_As_int(obj1)); | |
36227 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36228 | } | |
a95a7133 RD |
36229 | { |
36230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36231 | (arg1)->SetKind((wxItemKind )arg2); | |
36232 | ||
36233 | wxPyEndAllowThreads(__tstate); | |
36234 | if (PyErr_Occurred()) SWIG_fail; | |
36235 | } | |
36236 | Py_INCREF(Py_None); resultobj = Py_None; | |
36237 | return resultobj; | |
36238 | fail: | |
36239 | return NULL; | |
36240 | } | |
36241 | ||
36242 | ||
c32bde28 | 36243 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36244 | PyObject *resultobj; |
36245 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36246 | bool arg2 ; | |
36247 | PyObject * obj0 = 0 ; | |
36248 | PyObject * obj1 = 0 ; | |
36249 | char *kwnames[] = { | |
36250 | (char *) "self",(char *) "checkable", NULL | |
36251 | }; | |
36252 | ||
36253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36256 | { | |
36257 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
36258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36259 | } | |
d14a1e28 RD |
36260 | { |
36261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36262 | (arg1)->SetCheckable(arg2); | |
36263 | ||
36264 | wxPyEndAllowThreads(__tstate); | |
36265 | if (PyErr_Occurred()) SWIG_fail; | |
36266 | } | |
36267 | Py_INCREF(Py_None); resultobj = Py_None; | |
36268 | return resultobj; | |
36269 | fail: | |
36270 | return NULL; | |
36271 | } | |
36272 | ||
36273 | ||
c32bde28 | 36274 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36275 | PyObject *resultobj; |
36276 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36277 | bool result; | |
36278 | PyObject * obj0 = 0 ; | |
36279 | char *kwnames[] = { | |
36280 | (char *) "self", NULL | |
36281 | }; | |
36282 | ||
36283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36286 | { |
36287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36288 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
36289 | ||
36290 | wxPyEndAllowThreads(__tstate); | |
36291 | if (PyErr_Occurred()) SWIG_fail; | |
36292 | } | |
4f89f6a3 RD |
36293 | { |
36294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36295 | } | |
d14a1e28 RD |
36296 | return resultobj; |
36297 | fail: | |
36298 | return NULL; | |
36299 | } | |
36300 | ||
36301 | ||
c32bde28 | 36302 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36303 | PyObject *resultobj; |
36304 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36305 | bool result; | |
36306 | PyObject * obj0 = 0 ; | |
36307 | char *kwnames[] = { | |
36308 | (char *) "self", NULL | |
36309 | }; | |
36310 | ||
36311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36314 | { |
36315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36316 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
36317 | ||
36318 | wxPyEndAllowThreads(__tstate); | |
36319 | if (PyErr_Occurred()) SWIG_fail; | |
36320 | } | |
4f89f6a3 RD |
36321 | { |
36322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36323 | } | |
d14a1e28 RD |
36324 | return resultobj; |
36325 | fail: | |
36326 | return NULL; | |
36327 | } | |
36328 | ||
36329 | ||
c32bde28 | 36330 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36331 | PyObject *resultobj; |
36332 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36333 | wxMenu *arg2 = (wxMenu *) 0 ; | |
36334 | PyObject * obj0 = 0 ; | |
36335 | PyObject * obj1 = 0 ; | |
36336 | char *kwnames[] = { | |
36337 | (char *) "self",(char *) "menu", NULL | |
36338 | }; | |
36339 | ||
36340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) 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; | |
36343 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0); | |
36344 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
36345 | { |
36346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36347 | (arg1)->SetSubMenu(arg2); | |
36348 | ||
36349 | wxPyEndAllowThreads(__tstate); | |
36350 | if (PyErr_Occurred()) SWIG_fail; | |
36351 | } | |
36352 | Py_INCREF(Py_None); resultobj = Py_None; | |
36353 | return resultobj; | |
36354 | fail: | |
36355 | return NULL; | |
36356 | } | |
36357 | ||
36358 | ||
c32bde28 | 36359 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36360 | PyObject *resultobj; |
36361 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36362 | wxMenu *result; | |
36363 | PyObject * obj0 = 0 ; | |
36364 | char *kwnames[] = { | |
36365 | (char *) "self", NULL | |
36366 | }; | |
36367 | ||
36368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36369 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36370 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36371 | { |
36372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36373 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
36374 | ||
36375 | wxPyEndAllowThreads(__tstate); | |
36376 | if (PyErr_Occurred()) SWIG_fail; | |
36377 | } | |
36378 | { | |
412d302d | 36379 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
36380 | } |
36381 | return resultobj; | |
36382 | fail: | |
36383 | return NULL; | |
36384 | } | |
36385 | ||
36386 | ||
c32bde28 | 36387 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36388 | PyObject *resultobj; |
36389 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 36390 | bool arg2 = (bool) true ; |
d14a1e28 RD |
36391 | PyObject * obj0 = 0 ; |
36392 | PyObject * obj1 = 0 ; | |
36393 | char *kwnames[] = { | |
36394 | (char *) "self",(char *) "enable", NULL | |
36395 | }; | |
36396 | ||
36397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 36400 | if (obj1) { |
093d3ff1 RD |
36401 | { |
36402 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
36403 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36404 | } | |
d14a1e28 RD |
36405 | } |
36406 | { | |
36407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36408 | (arg1)->Enable(arg2); | |
36409 | ||
36410 | wxPyEndAllowThreads(__tstate); | |
36411 | if (PyErr_Occurred()) SWIG_fail; | |
36412 | } | |
36413 | Py_INCREF(Py_None); resultobj = Py_None; | |
36414 | return resultobj; | |
36415 | fail: | |
36416 | return NULL; | |
36417 | } | |
36418 | ||
36419 | ||
c32bde28 | 36420 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36421 | PyObject *resultobj; |
36422 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36423 | bool result; | |
36424 | PyObject * obj0 = 0 ; | |
36425 | char *kwnames[] = { | |
36426 | (char *) "self", NULL | |
36427 | }; | |
36428 | ||
36429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36432 | { |
36433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36434 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
36435 | ||
36436 | wxPyEndAllowThreads(__tstate); | |
36437 | if (PyErr_Occurred()) SWIG_fail; | |
36438 | } | |
4f89f6a3 RD |
36439 | { |
36440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36441 | } | |
d14a1e28 RD |
36442 | return resultobj; |
36443 | fail: | |
36444 | return NULL; | |
36445 | } | |
36446 | ||
36447 | ||
c32bde28 | 36448 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36449 | PyObject *resultobj; |
36450 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 36451 | bool arg2 = (bool) true ; |
d14a1e28 RD |
36452 | PyObject * obj0 = 0 ; |
36453 | PyObject * obj1 = 0 ; | |
36454 | char *kwnames[] = { | |
36455 | (char *) "self",(char *) "check", NULL | |
36456 | }; | |
36457 | ||
36458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 36461 | if (obj1) { |
093d3ff1 RD |
36462 | { |
36463 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
36464 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36465 | } | |
d14a1e28 RD |
36466 | } |
36467 | { | |
36468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36469 | (arg1)->Check(arg2); | |
36470 | ||
36471 | wxPyEndAllowThreads(__tstate); | |
36472 | if (PyErr_Occurred()) SWIG_fail; | |
36473 | } | |
36474 | Py_INCREF(Py_None); resultobj = Py_None; | |
36475 | return resultobj; | |
36476 | fail: | |
36477 | return NULL; | |
36478 | } | |
36479 | ||
36480 | ||
c32bde28 | 36481 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36482 | PyObject *resultobj; |
36483 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36484 | bool result; | |
36485 | PyObject * obj0 = 0 ; | |
36486 | char *kwnames[] = { | |
36487 | (char *) "self", NULL | |
36488 | }; | |
36489 | ||
36490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36493 | { |
36494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36495 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
36496 | ||
36497 | wxPyEndAllowThreads(__tstate); | |
36498 | if (PyErr_Occurred()) SWIG_fail; | |
36499 | } | |
4f89f6a3 RD |
36500 | { |
36501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36502 | } | |
d14a1e28 RD |
36503 | return resultobj; |
36504 | fail: | |
36505 | return NULL; | |
36506 | } | |
36507 | ||
36508 | ||
c32bde28 | 36509 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36510 | PyObject *resultobj; |
36511 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36512 | PyObject * obj0 = 0 ; | |
36513 | char *kwnames[] = { | |
36514 | (char *) "self", NULL | |
36515 | }; | |
36516 | ||
36517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36520 | { |
36521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36522 | (arg1)->Toggle(); | |
36523 | ||
36524 | wxPyEndAllowThreads(__tstate); | |
36525 | if (PyErr_Occurred()) SWIG_fail; | |
36526 | } | |
36527 | Py_INCREF(Py_None); resultobj = Py_None; | |
36528 | return resultobj; | |
36529 | fail: | |
36530 | return NULL; | |
36531 | } | |
36532 | ||
36533 | ||
c32bde28 | 36534 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36535 | PyObject *resultobj; |
36536 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36537 | wxString *arg2 = 0 ; | |
ae8162c8 | 36538 | bool temp2 = false ; |
d14a1e28 RD |
36539 | PyObject * obj0 = 0 ; |
36540 | PyObject * obj1 = 0 ; | |
36541 | char *kwnames[] = { | |
36542 | (char *) "self",(char *) "str", NULL | |
36543 | }; | |
36544 | ||
36545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36548 | { |
36549 | arg2 = wxString_in_helper(obj1); | |
36550 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 36551 | temp2 = true; |
d14a1e28 RD |
36552 | } |
36553 | { | |
36554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36555 | (arg1)->SetHelp((wxString const &)*arg2); | |
36556 | ||
36557 | wxPyEndAllowThreads(__tstate); | |
36558 | if (PyErr_Occurred()) SWIG_fail; | |
36559 | } | |
36560 | Py_INCREF(Py_None); resultobj = Py_None; | |
36561 | { | |
36562 | if (temp2) | |
36563 | delete arg2; | |
36564 | } | |
36565 | return resultobj; | |
36566 | fail: | |
36567 | { | |
36568 | if (temp2) | |
36569 | delete arg2; | |
36570 | } | |
36571 | return NULL; | |
36572 | } | |
36573 | ||
36574 | ||
c32bde28 | 36575 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36576 | PyObject *resultobj; |
36577 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36578 | wxString *result; | |
36579 | PyObject * obj0 = 0 ; | |
36580 | char *kwnames[] = { | |
36581 | (char *) "self", NULL | |
36582 | }; | |
36583 | ||
36584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36587 | { |
36588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36589 | { | |
36590 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
36591 | result = (wxString *) &_result_ref; | |
36592 | } | |
36593 | ||
36594 | wxPyEndAllowThreads(__tstate); | |
36595 | if (PyErr_Occurred()) SWIG_fail; | |
36596 | } | |
cc6dd355 RD |
36597 | { |
36598 | #if wxUSE_UNICODE | |
36599 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
36600 | #else | |
36601 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
36602 | #endif | |
36603 | } | |
d14a1e28 RD |
36604 | return resultobj; |
36605 | fail: | |
36606 | return NULL; | |
36607 | } | |
36608 | ||
36609 | ||
c32bde28 | 36610 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36611 | PyObject *resultobj; |
36612 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36613 | wxAcceleratorEntry *result; | |
36614 | PyObject * obj0 = 0 ; | |
36615 | char *kwnames[] = { | |
36616 | (char *) "self", NULL | |
36617 | }; | |
36618 | ||
36619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
36620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
36622 | { |
36623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36624 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
36625 | ||
36626 | wxPyEndAllowThreads(__tstate); | |
36627 | if (PyErr_Occurred()) SWIG_fail; | |
36628 | } | |
15afbcd0 | 36629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
36630 | return resultobj; |
36631 | fail: | |
36632 | return NULL; | |
36633 | } | |
36634 | ||
36635 | ||
c32bde28 | 36636 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
36637 | PyObject *resultobj; |
36638 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36639 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
36640 | PyObject * obj0 = 0 ; | |
36641 | PyObject * obj1 = 0 ; | |
36642 | char *kwnames[] = { | |
36643 | (char *) "self",(char *) "accel", NULL | |
36644 | }; | |
36645 | ||
36646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
36647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
36648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36649 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0); | |
36650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
36651 | { |
36652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36653 | (arg1)->SetAccel(arg2); | |
36654 | ||
36655 | wxPyEndAllowThreads(__tstate); | |
36656 | if (PyErr_Occurred()) SWIG_fail; | |
36657 | } | |
36658 | Py_INCREF(Py_None); resultobj = Py_None; | |
36659 | return resultobj; | |
36660 | fail: | |
36661 | return NULL; | |
36662 | } | |
36663 | ||
36664 | ||
c1280d1e RD |
36665 | static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
36666 | PyObject *resultobj; | |
36667 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36668 | wxFont *arg2 = 0 ; | |
36669 | PyObject * obj0 = 0 ; | |
36670 | PyObject * obj1 = 0 ; | |
36671 | char *kwnames[] = { | |
36672 | (char *) "self",(char *) "font", NULL | |
36673 | }; | |
36674 | ||
36675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
36676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36678 | { | |
36679 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
36680 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36681 | if (arg2 == NULL) { | |
36682 | SWIG_null_ref("wxFont"); | |
36683 | } | |
36684 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36685 | } | |
36686 | { | |
36687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36688 | wxMenuItem_SetFont(arg1,(wxFont const &)*arg2); | |
36689 | ||
36690 | wxPyEndAllowThreads(__tstate); | |
36691 | if (PyErr_Occurred()) SWIG_fail; | |
36692 | } | |
36693 | Py_INCREF(Py_None); resultobj = Py_None; | |
36694 | return resultobj; | |
36695 | fail: | |
36696 | return NULL; | |
36697 | } | |
36698 | ||
36699 | ||
36700 | static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
36701 | PyObject *resultobj; | |
36702 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36703 | wxFont result; | |
36704 | PyObject * obj0 = 0 ; | |
36705 | char *kwnames[] = { | |
36706 | (char *) "self", NULL | |
36707 | }; | |
36708 | ||
36709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
36710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36712 | { | |
36713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36714 | result = wxMenuItem_GetFont(arg1); | |
36715 | ||
36716 | wxPyEndAllowThreads(__tstate); | |
36717 | if (PyErr_Occurred()) SWIG_fail; | |
36718 | } | |
36719 | { | |
36720 | wxFont * resultptr; | |
36721 | resultptr = new wxFont((wxFont &)(result)); | |
36722 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
36723 | } | |
36724 | return resultobj; | |
36725 | fail: | |
36726 | return NULL; | |
36727 | } | |
36728 | ||
36729 | ||
36730 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
36731 | PyObject *resultobj; | |
36732 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36733 | wxColour *arg2 = 0 ; | |
36734 | wxColour temp2 ; | |
36735 | PyObject * obj0 = 0 ; | |
36736 | PyObject * obj1 = 0 ; | |
36737 | char *kwnames[] = { | |
36738 | (char *) "self",(char *) "colText", NULL | |
36739 | }; | |
36740 | ||
36741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
36742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36744 | { | |
36745 | arg2 = &temp2; | |
36746 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
36747 | } | |
36748 | { | |
36749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36750 | wxMenuItem_SetTextColour(arg1,(wxColour const &)*arg2); | |
36751 | ||
36752 | wxPyEndAllowThreads(__tstate); | |
36753 | if (PyErr_Occurred()) SWIG_fail; | |
36754 | } | |
36755 | Py_INCREF(Py_None); resultobj = Py_None; | |
36756 | return resultobj; | |
36757 | fail: | |
36758 | return NULL; | |
36759 | } | |
36760 | ||
36761 | ||
36762 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
36763 | PyObject *resultobj; | |
36764 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36765 | wxColour result; | |
36766 | PyObject * obj0 = 0 ; | |
36767 | char *kwnames[] = { | |
36768 | (char *) "self", NULL | |
36769 | }; | |
36770 | ||
36771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
36772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36774 | { | |
36775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36776 | result = wxMenuItem_GetTextColour(arg1); | |
36777 | ||
36778 | wxPyEndAllowThreads(__tstate); | |
36779 | if (PyErr_Occurred()) SWIG_fail; | |
36780 | } | |
36781 | { | |
36782 | wxColour * resultptr; | |
36783 | resultptr = new wxColour((wxColour &)(result)); | |
36784 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
36785 | } | |
36786 | return resultobj; | |
36787 | fail: | |
36788 | return NULL; | |
36789 | } | |
36790 | ||
36791 | ||
36792 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
36793 | PyObject *resultobj; | |
36794 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36795 | wxColour *arg2 = 0 ; | |
36796 | wxColour temp2 ; | |
36797 | PyObject * obj0 = 0 ; | |
36798 | PyObject * obj1 = 0 ; | |
36799 | char *kwnames[] = { | |
36800 | (char *) "self",(char *) "colBack", NULL | |
36801 | }; | |
36802 | ||
36803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
36804 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36805 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36806 | { | |
36807 | arg2 = &temp2; | |
36808 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
36809 | } | |
36810 | { | |
36811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36812 | wxMenuItem_SetBackgroundColour(arg1,(wxColour const &)*arg2); | |
36813 | ||
36814 | wxPyEndAllowThreads(__tstate); | |
36815 | if (PyErr_Occurred()) SWIG_fail; | |
36816 | } | |
36817 | Py_INCREF(Py_None); resultobj = Py_None; | |
36818 | return resultobj; | |
36819 | fail: | |
36820 | return NULL; | |
36821 | } | |
36822 | ||
36823 | ||
36824 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
36825 | PyObject *resultobj; | |
36826 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36827 | wxColour result; | |
36828 | PyObject * obj0 = 0 ; | |
36829 | char *kwnames[] = { | |
36830 | (char *) "self", NULL | |
36831 | }; | |
36832 | ||
36833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
36834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36836 | { | |
36837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36838 | result = wxMenuItem_GetBackgroundColour(arg1); | |
36839 | ||
36840 | wxPyEndAllowThreads(__tstate); | |
36841 | if (PyErr_Occurred()) SWIG_fail; | |
36842 | } | |
36843 | { | |
36844 | wxColour * resultptr; | |
36845 | resultptr = new wxColour((wxColour &)(result)); | |
36846 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
36847 | } | |
36848 | return resultobj; | |
36849 | fail: | |
36850 | return NULL; | |
36851 | } | |
36852 | ||
36853 | ||
36854 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) { | |
36855 | PyObject *resultobj; | |
36856 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36857 | wxBitmap *arg2 = 0 ; | |
36858 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
36859 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
36860 | PyObject * obj0 = 0 ; | |
36861 | PyObject * obj1 = 0 ; | |
36862 | PyObject * obj2 = 0 ; | |
36863 | char *kwnames[] = { | |
36864 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
36865 | }; | |
36866 | ||
36867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36870 | { | |
36871 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36872 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36873 | if (arg2 == NULL) { | |
36874 | SWIG_null_ref("wxBitmap"); | |
36875 | } | |
36876 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36877 | } | |
36878 | if (obj2) { | |
36879 | { | |
36880 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36881 | if (SWIG_arg_fail(3)) SWIG_fail; | |
36882 | if (arg3 == NULL) { | |
36883 | SWIG_null_ref("wxBitmap"); | |
36884 | } | |
36885 | if (SWIG_arg_fail(3)) SWIG_fail; | |
36886 | } | |
36887 | } | |
36888 | { | |
36889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36890 | wxMenuItem_SetBitmaps(arg1,(wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
36891 | ||
36892 | wxPyEndAllowThreads(__tstate); | |
36893 | if (PyErr_Occurred()) SWIG_fail; | |
36894 | } | |
36895 | Py_INCREF(Py_None); resultobj = Py_None; | |
36896 | return resultobj; | |
36897 | fail: | |
36898 | return NULL; | |
36899 | } | |
36900 | ||
36901 | ||
36902 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
36903 | PyObject *resultobj; | |
36904 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36905 | wxBitmap *arg2 = 0 ; | |
36906 | PyObject * obj0 = 0 ; | |
36907 | PyObject * obj1 = 0 ; | |
36908 | char *kwnames[] = { | |
36909 | (char *) "self",(char *) "bmpDisabled", NULL | |
36910 | }; | |
36911 | ||
36912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
36913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36915 | { | |
36916 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
36917 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36918 | if (arg2 == NULL) { | |
36919 | SWIG_null_ref("wxBitmap"); | |
36920 | } | |
36921 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36922 | } | |
36923 | { | |
36924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36925 | wxMenuItem_SetDisabledBitmap(arg1,(wxBitmap const &)*arg2); | |
36926 | ||
36927 | wxPyEndAllowThreads(__tstate); | |
36928 | if (PyErr_Occurred()) SWIG_fail; | |
36929 | } | |
36930 | Py_INCREF(Py_None); resultobj = Py_None; | |
36931 | return resultobj; | |
36932 | fail: | |
36933 | return NULL; | |
36934 | } | |
36935 | ||
36936 | ||
36937 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
36938 | PyObject *resultobj; | |
36939 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36940 | wxBitmap *result; | |
36941 | PyObject * obj0 = 0 ; | |
36942 | char *kwnames[] = { | |
36943 | (char *) "self", NULL | |
36944 | }; | |
36945 | ||
36946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
36947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36949 | { | |
36950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36951 | { | |
36952 | wxBitmap const &_result_ref = wxMenuItem_GetDisabledBitmap((wxMenuItem const *)arg1); | |
36953 | result = (wxBitmap *) &_result_ref; | |
36954 | } | |
36955 | ||
36956 | wxPyEndAllowThreads(__tstate); | |
36957 | if (PyErr_Occurred()) SWIG_fail; | |
36958 | } | |
36959 | { | |
36960 | wxBitmap* resultptr = new wxBitmap(*result); | |
36961 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
36962 | } | |
36963 | return resultobj; | |
36964 | fail: | |
36965 | return NULL; | |
36966 | } | |
36967 | ||
36968 | ||
36969 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
36970 | PyObject *resultobj; | |
36971 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
36972 | int arg2 ; | |
36973 | PyObject * obj0 = 0 ; | |
36974 | PyObject * obj1 = 0 ; | |
36975 | char *kwnames[] = { | |
36976 | (char *) "self",(char *) "nWidth", NULL | |
36977 | }; | |
36978 | ||
36979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
36980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
36981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36982 | { | |
36983 | arg2 = (int)(SWIG_As_int(obj1)); | |
36984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36985 | } | |
36986 | { | |
36987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36988 | wxMenuItem_SetMarginWidth(arg1,arg2); | |
36989 | ||
36990 | wxPyEndAllowThreads(__tstate); | |
36991 | if (PyErr_Occurred()) SWIG_fail; | |
36992 | } | |
36993 | Py_INCREF(Py_None); resultobj = Py_None; | |
36994 | return resultobj; | |
36995 | fail: | |
36996 | return NULL; | |
36997 | } | |
36998 | ||
36999 | ||
37000 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
37001 | PyObject *resultobj; | |
37002 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37003 | int result; | |
37004 | PyObject * obj0 = 0 ; | |
37005 | char *kwnames[] = { | |
37006 | (char *) "self", NULL | |
37007 | }; | |
37008 | ||
37009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
37010 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
37011 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37012 | { | |
37013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37014 | result = (int)wxMenuItem_GetMarginWidth(arg1); | |
37015 | ||
37016 | wxPyEndAllowThreads(__tstate); | |
37017 | if (PyErr_Occurred()) SWIG_fail; | |
37018 | } | |
37019 | { | |
37020 | resultobj = SWIG_From_int((int)(result)); | |
37021 | } | |
37022 | return resultobj; | |
37023 | fail: | |
37024 | return NULL; | |
37025 | } | |
37026 | ||
37027 | ||
c32bde28 | 37028 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37029 | PyObject *resultobj; |
37030 | int result; | |
37031 | char *kwnames[] = { | |
37032 | NULL | |
37033 | }; | |
37034 | ||
37035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
37036 | { | |
37037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37038 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
37039 | ||
37040 | wxPyEndAllowThreads(__tstate); | |
37041 | if (PyErr_Occurred()) SWIG_fail; | |
37042 | } | |
093d3ff1 RD |
37043 | { |
37044 | resultobj = SWIG_From_int((int)(result)); | |
37045 | } | |
d14a1e28 RD |
37046 | return resultobj; |
37047 | fail: | |
37048 | return NULL; | |
37049 | } | |
37050 | ||
37051 | ||
c1280d1e RD |
37052 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
37053 | PyObject *resultobj; | |
37054 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37055 | bool result; | |
37056 | PyObject * obj0 = 0 ; | |
37057 | char *kwnames[] = { | |
37058 | (char *) "self", NULL | |
37059 | }; | |
37060 | ||
37061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
37062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
37063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37064 | { | |
37065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37066 | result = (bool)wxMenuItem_IsOwnerDrawn(arg1); | |
37067 | ||
37068 | wxPyEndAllowThreads(__tstate); | |
37069 | if (PyErr_Occurred()) SWIG_fail; | |
37070 | } | |
37071 | { | |
37072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37073 | } | |
37074 | return resultobj; | |
37075 | fail: | |
37076 | return NULL; | |
37077 | } | |
37078 | ||
37079 | ||
37080 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { | |
37081 | PyObject *resultobj; | |
37082 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37083 | bool arg2 = (bool) true ; | |
37084 | PyObject * obj0 = 0 ; | |
37085 | PyObject * obj1 = 0 ; | |
37086 | char *kwnames[] = { | |
37087 | (char *) "self",(char *) "ownerDrawn", NULL | |
37088 | }; | |
37089 | ||
37090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
37091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
37092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37093 | if (obj1) { | |
37094 | { | |
37095 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
37096 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37097 | } | |
37098 | } | |
37099 | { | |
37100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37101 | wxMenuItem_SetOwnerDrawn(arg1,arg2); | |
37102 | ||
37103 | wxPyEndAllowThreads(__tstate); | |
37104 | if (PyErr_Occurred()) SWIG_fail; | |
37105 | } | |
37106 | Py_INCREF(Py_None); resultobj = Py_None; | |
37107 | return resultobj; | |
37108 | fail: | |
37109 | return NULL; | |
37110 | } | |
37111 | ||
37112 | ||
37113 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { | |
37114 | PyObject *resultobj; | |
37115 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37116 | PyObject * obj0 = 0 ; | |
37117 | char *kwnames[] = { | |
37118 | (char *) "self", NULL | |
37119 | }; | |
37120 | ||
37121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
37122 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); | |
37123 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37124 | { | |
37125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37126 | wxMenuItem_ResetOwnerDrawn(arg1); | |
37127 | ||
37128 | wxPyEndAllowThreads(__tstate); | |
37129 | if (PyErr_Occurred()) SWIG_fail; | |
37130 | } | |
37131 | Py_INCREF(Py_None); resultobj = Py_None; | |
37132 | return resultobj; | |
37133 | fail: | |
37134 | return NULL; | |
37135 | } | |
37136 | ||
37137 | ||
c32bde28 | 37138 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37139 | PyObject *resultobj; |
37140 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37141 | wxBitmap *arg2 = 0 ; | |
37142 | PyObject * obj0 = 0 ; | |
37143 | PyObject * obj1 = 0 ; | |
37144 | char *kwnames[] = { | |
37145 | (char *) "self",(char *) "bitmap", NULL | |
37146 | }; | |
37147 | ||
37148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37151 | { | |
37152 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
37153 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37154 | if (arg2 == NULL) { | |
37155 | SWIG_null_ref("wxBitmap"); | |
37156 | } | |
37157 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
37158 | } |
37159 | { | |
37160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37161 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
37162 | ||
37163 | wxPyEndAllowThreads(__tstate); | |
37164 | if (PyErr_Occurred()) SWIG_fail; | |
37165 | } | |
37166 | Py_INCREF(Py_None); resultobj = Py_None; | |
37167 | return resultobj; | |
37168 | fail: | |
37169 | return NULL; | |
37170 | } | |
37171 | ||
37172 | ||
c32bde28 | 37173 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37174 | PyObject *resultobj; |
37175 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
37176 | wxBitmap *result; | |
37177 | PyObject * obj0 = 0 ; | |
37178 | char *kwnames[] = { | |
37179 | (char *) "self", NULL | |
37180 | }; | |
37181 | ||
37182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0); |
37184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37185 | { |
37186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37187 | { | |
37188 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
37189 | result = (wxBitmap *) &_result_ref; | |
37190 | } | |
37191 | ||
37192 | wxPyEndAllowThreads(__tstate); | |
37193 | if (PyErr_Occurred()) SWIG_fail; | |
37194 | } | |
4276dc52 RD |
37195 | { |
37196 | wxBitmap* resultptr = new wxBitmap(*result); | |
37197 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
37198 | } | |
d14a1e28 RD |
37199 | return resultobj; |
37200 | fail: | |
37201 | return NULL; | |
37202 | } | |
37203 | ||
37204 | ||
c32bde28 | 37205 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
37206 | PyObject *obj; |
37207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37208 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
37209 | Py_INCREF(obj); | |
37210 | return Py_BuildValue((char *)""); | |
37211 | } | |
c32bde28 | 37212 | static int _wrap_ControlNameStr_set(PyObject *) { |
b2dc1044 RD |
37213 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
37214 | return 1; | |
37215 | } | |
37216 | ||
37217 | ||
093d3ff1 | 37218 | static PyObject *_wrap_ControlNameStr_get(void) { |
b2dc1044 RD |
37219 | PyObject *pyobj; |
37220 | ||
37221 | { | |
37222 | #if wxUSE_UNICODE | |
37223 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
37224 | #else | |
37225 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
37226 | #endif | |
37227 | } | |
37228 | return pyobj; | |
37229 | } | |
37230 | ||
37231 | ||
c32bde28 | 37232 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37233 | PyObject *resultobj; |
37234 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 37235 | int arg2 = (int) -1 ; |
d14a1e28 RD |
37236 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
37237 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
37238 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
37239 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
37240 | long arg5 = (long) 0 ; | |
37241 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
37242 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
37243 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
37244 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
37245 | wxControl *result; | |
37246 | wxPoint temp3 ; | |
37247 | wxSize temp4 ; | |
ae8162c8 | 37248 | bool temp7 = false ; |
d14a1e28 | 37249 | PyObject * obj0 = 0 ; |
994141e6 | 37250 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37251 | PyObject * obj2 = 0 ; |
37252 | PyObject * obj3 = 0 ; | |
994141e6 | 37253 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
37254 | PyObject * obj5 = 0 ; |
37255 | PyObject * obj6 = 0 ; | |
37256 | char *kwnames[] = { | |
37257 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
37258 | }; | |
37259 | ||
248ed943 | 37260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
37261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
37262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 37263 | if (obj1) { |
093d3ff1 RD |
37264 | { |
37265 | arg2 = (int)(SWIG_As_int(obj1)); | |
37266 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37267 | } | |
248ed943 | 37268 | } |
d14a1e28 RD |
37269 | if (obj2) { |
37270 | { | |
37271 | arg3 = &temp3; | |
37272 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37273 | } | |
37274 | } | |
37275 | if (obj3) { | |
37276 | { | |
37277 | arg4 = &temp4; | |
37278 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
37279 | } | |
37280 | } | |
994141e6 | 37281 | if (obj4) { |
093d3ff1 RD |
37282 | { |
37283 | arg5 = (long)(SWIG_As_long(obj4)); | |
37284 | if (SWIG_arg_fail(5)) SWIG_fail; | |
37285 | } | |
994141e6 | 37286 | } |
d14a1e28 | 37287 | if (obj5) { |
093d3ff1 RD |
37288 | { |
37289 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
37290 | if (SWIG_arg_fail(6)) SWIG_fail; | |
37291 | if (arg6 == NULL) { | |
37292 | SWIG_null_ref("wxValidator"); | |
37293 | } | |
37294 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
37295 | } |
37296 | } | |
37297 | if (obj6) { | |
37298 | { | |
37299 | arg7 = wxString_in_helper(obj6); | |
37300 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 37301 | temp7 = true; |
d14a1e28 RD |
37302 | } |
37303 | } | |
37304 | { | |
e3b71cb8 | 37305 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
37306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
37307 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
37308 | ||
37309 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 37310 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 37311 | } |
b0f7404b | 37312 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d14a1e28 RD |
37313 | { |
37314 | if (temp7) | |
37315 | delete arg7; | |
37316 | } | |
37317 | return resultobj; | |
37318 | fail: | |
37319 | { | |
37320 | if (temp7) | |
37321 | delete arg7; | |
37322 | } | |
37323 | return NULL; | |
37324 | } | |
37325 | ||
37326 | ||
c32bde28 | 37327 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37328 | PyObject *resultobj; |
37329 | wxControl *result; | |
37330 | char *kwnames[] = { | |
37331 | NULL | |
37332 | }; | |
37333 | ||
37334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
37335 | { | |
e3b71cb8 | 37336 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
37337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
37338 | result = (wxControl *)new wxControl(); | |
37339 | ||
37340 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 37341 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 37342 | } |
b0f7404b | 37343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d14a1e28 RD |
37344 | return resultobj; |
37345 | fail: | |
37346 | return NULL; | |
37347 | } | |
37348 | ||
37349 | ||
c32bde28 | 37350 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37351 | PyObject *resultobj; |
37352 | wxControl *arg1 = (wxControl *) 0 ; | |
37353 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 37354 | int arg3 = (int) -1 ; |
d14a1e28 RD |
37355 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
37356 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
37357 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
37358 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
37359 | long arg6 = (long) 0 ; | |
37360 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
37361 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
37362 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
37363 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
37364 | bool result; | |
37365 | wxPoint temp4 ; | |
37366 | wxSize temp5 ; | |
ae8162c8 | 37367 | bool temp8 = false ; |
d14a1e28 RD |
37368 | PyObject * obj0 = 0 ; |
37369 | PyObject * obj1 = 0 ; | |
994141e6 | 37370 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37371 | PyObject * obj3 = 0 ; |
37372 | PyObject * obj4 = 0 ; | |
994141e6 | 37373 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
37374 | PyObject * obj6 = 0 ; |
37375 | PyObject * obj7 = 0 ; | |
37376 | char *kwnames[] = { | |
37377 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
37378 | }; | |
37379 | ||
248ed943 | 37380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
37381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
37382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37383 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
37384 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 37385 | if (obj2) { |
093d3ff1 RD |
37386 | { |
37387 | arg3 = (int)(SWIG_As_int(obj2)); | |
37388 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37389 | } | |
248ed943 | 37390 | } |
d14a1e28 RD |
37391 | if (obj3) { |
37392 | { | |
37393 | arg4 = &temp4; | |
37394 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
37395 | } | |
37396 | } | |
37397 | if (obj4) { | |
37398 | { | |
37399 | arg5 = &temp5; | |
37400 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
37401 | } | |
37402 | } | |
994141e6 | 37403 | if (obj5) { |
093d3ff1 RD |
37404 | { |
37405 | arg6 = (long)(SWIG_As_long(obj5)); | |
37406 | if (SWIG_arg_fail(6)) SWIG_fail; | |
37407 | } | |
994141e6 | 37408 | } |
d14a1e28 | 37409 | if (obj6) { |
093d3ff1 RD |
37410 | { |
37411 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
37412 | if (SWIG_arg_fail(7)) SWIG_fail; | |
37413 | if (arg7 == NULL) { | |
37414 | SWIG_null_ref("wxValidator"); | |
37415 | } | |
37416 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
37417 | } |
37418 | } | |
37419 | if (obj7) { | |
37420 | { | |
37421 | arg8 = wxString_in_helper(obj7); | |
37422 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 37423 | temp8 = true; |
d14a1e28 RD |
37424 | } |
37425 | } | |
37426 | { | |
37427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37428 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
37429 | ||
37430 | wxPyEndAllowThreads(__tstate); | |
37431 | if (PyErr_Occurred()) SWIG_fail; | |
37432 | } | |
4f89f6a3 RD |
37433 | { |
37434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37435 | } | |
d14a1e28 RD |
37436 | { |
37437 | if (temp8) | |
37438 | delete arg8; | |
37439 | } | |
37440 | return resultobj; | |
37441 | fail: | |
37442 | { | |
37443 | if (temp8) | |
37444 | delete arg8; | |
37445 | } | |
37446 | return NULL; | |
37447 | } | |
37448 | ||
37449 | ||
c32bde28 | 37450 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37451 | PyObject *resultobj; |
37452 | wxControl *arg1 = (wxControl *) 0 ; | |
37453 | wxCommandEvent *arg2 = 0 ; | |
37454 | PyObject * obj0 = 0 ; | |
37455 | PyObject * obj1 = 0 ; | |
37456 | char *kwnames[] = { | |
37457 | (char *) "self",(char *) "event", NULL | |
37458 | }; | |
37459 | ||
37460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
37462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37463 | { | |
37464 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0); | |
37465 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37466 | if (arg2 == NULL) { | |
37467 | SWIG_null_ref("wxCommandEvent"); | |
37468 | } | |
37469 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
37470 | } |
37471 | { | |
37472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37473 | (arg1)->Command(*arg2); | |
37474 | ||
37475 | wxPyEndAllowThreads(__tstate); | |
37476 | if (PyErr_Occurred()) SWIG_fail; | |
37477 | } | |
37478 | Py_INCREF(Py_None); resultobj = Py_None; | |
37479 | return resultobj; | |
37480 | fail: | |
37481 | return NULL; | |
37482 | } | |
37483 | ||
37484 | ||
c32bde28 | 37485 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37486 | PyObject *resultobj; |
37487 | wxControl *arg1 = (wxControl *) 0 ; | |
37488 | wxString result; | |
37489 | PyObject * obj0 = 0 ; | |
37490 | char *kwnames[] = { | |
37491 | (char *) "self", NULL | |
37492 | }; | |
37493 | ||
37494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
37496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37497 | { |
37498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37499 | result = (arg1)->GetLabel(); | |
37500 | ||
37501 | wxPyEndAllowThreads(__tstate); | |
37502 | if (PyErr_Occurred()) SWIG_fail; | |
37503 | } | |
37504 | { | |
37505 | #if wxUSE_UNICODE | |
37506 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37507 | #else | |
37508 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37509 | #endif | |
37510 | } | |
37511 | return resultobj; | |
37512 | fail: | |
37513 | return NULL; | |
37514 | } | |
37515 | ||
37516 | ||
c32bde28 | 37517 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37518 | PyObject *resultobj; |
37519 | wxControl *arg1 = (wxControl *) 0 ; | |
37520 | wxString *arg2 = 0 ; | |
ae8162c8 | 37521 | bool temp2 = false ; |
d14a1e28 RD |
37522 | PyObject * obj0 = 0 ; |
37523 | PyObject * obj1 = 0 ; | |
37524 | char *kwnames[] = { | |
37525 | (char *) "self",(char *) "label", NULL | |
37526 | }; | |
37527 | ||
37528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); |
37530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37531 | { |
37532 | arg2 = wxString_in_helper(obj1); | |
37533 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 37534 | temp2 = true; |
d14a1e28 RD |
37535 | } |
37536 | { | |
37537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37538 | (arg1)->SetLabel((wxString const &)*arg2); | |
37539 | ||
37540 | wxPyEndAllowThreads(__tstate); | |
37541 | if (PyErr_Occurred()) SWIG_fail; | |
37542 | } | |
37543 | Py_INCREF(Py_None); resultobj = Py_None; | |
37544 | { | |
37545 | if (temp2) | |
37546 | delete arg2; | |
37547 | } | |
37548 | return resultobj; | |
37549 | fail: | |
37550 | { | |
37551 | if (temp2) | |
37552 | delete arg2; | |
37553 | } | |
37554 | return NULL; | |
37555 | } | |
37556 | ||
37557 | ||
c32bde28 | 37558 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd | 37559 | PyObject *resultobj; |
093d3ff1 | 37560 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
37561 | wxVisualAttributes result; |
37562 | PyObject * obj0 = 0 ; | |
37563 | char *kwnames[] = { | |
37564 | (char *) "variant", NULL | |
37565 | }; | |
37566 | ||
37567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
37568 | if (obj0) { | |
093d3ff1 RD |
37569 | { |
37570 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
37571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37572 | } | |
74a57fcd RD |
37573 | } |
37574 | { | |
110da5b0 | 37575 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
37576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
37577 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
37578 | ||
37579 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 37580 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
37581 | } |
37582 | { | |
37583 | wxVisualAttributes * resultptr; | |
093d3ff1 | 37584 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
37585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
37586 | } | |
37587 | return resultobj; | |
37588 | fail: | |
37589 | return NULL; | |
37590 | } | |
37591 | ||
37592 | ||
c32bde28 | 37593 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
37594 | PyObject *obj; |
37595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37596 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
37597 | Py_INCREF(obj); | |
37598 | return Py_BuildValue((char *)""); | |
37599 | } | |
c32bde28 | 37600 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37601 | PyObject *resultobj; |
37602 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37603 | wxString *arg2 = 0 ; | |
37604 | PyObject *arg3 = (PyObject *) NULL ; | |
37605 | int result; | |
ae8162c8 | 37606 | bool temp2 = false ; |
d14a1e28 RD |
37607 | PyObject * obj0 = 0 ; |
37608 | PyObject * obj1 = 0 ; | |
37609 | PyObject * obj2 = 0 ; | |
37610 | char *kwnames[] = { | |
37611 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
37612 | }; | |
37613 | ||
37614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
37615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37617 | { |
37618 | arg2 = wxString_in_helper(obj1); | |
37619 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 37620 | temp2 = true; |
d14a1e28 RD |
37621 | } |
37622 | if (obj2) { | |
37623 | arg3 = obj2; | |
37624 | } | |
37625 | { | |
37626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37627 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
37628 | ||
37629 | wxPyEndAllowThreads(__tstate); | |
37630 | if (PyErr_Occurred()) SWIG_fail; | |
37631 | } | |
093d3ff1 RD |
37632 | { |
37633 | resultobj = SWIG_From_int((int)(result)); | |
37634 | } | |
d14a1e28 RD |
37635 | { |
37636 | if (temp2) | |
37637 | delete arg2; | |
37638 | } | |
37639 | return resultobj; | |
37640 | fail: | |
37641 | { | |
37642 | if (temp2) | |
37643 | delete arg2; | |
37644 | } | |
37645 | return NULL; | |
37646 | } | |
37647 | ||
37648 | ||
c32bde28 | 37649 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37650 | PyObject *resultobj; |
37651 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37652 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 37653 | bool temp2 = false ; |
d14a1e28 RD |
37654 | PyObject * obj0 = 0 ; |
37655 | PyObject * obj1 = 0 ; | |
37656 | char *kwnames[] = { | |
37657 | (char *) "self",(char *) "strings", NULL | |
37658 | }; | |
37659 | ||
37660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
37661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37663 | { |
37664 | if (! PySequence_Check(obj1)) { | |
37665 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
37666 | SWIG_fail; | |
37667 | } | |
37668 | arg2 = new wxArrayString; | |
ae8162c8 | 37669 | temp2 = true; |
d14a1e28 RD |
37670 | int i, len=PySequence_Length(obj1); |
37671 | for (i=0; i<len; i++) { | |
37672 | PyObject* item = PySequence_GetItem(obj1, i); | |
37673 | #if wxUSE_UNICODE | |
37674 | PyObject* str = PyObject_Unicode(item); | |
37675 | #else | |
37676 | PyObject* str = PyObject_Str(item); | |
37677 | #endif | |
74a57fcd | 37678 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
37679 | arg2->Add(Py2wxString(str)); |
37680 | Py_DECREF(item); | |
37681 | Py_DECREF(str); | |
37682 | } | |
37683 | } | |
37684 | { | |
37685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37686 | (arg1)->Append((wxArrayString const &)*arg2); | |
37687 | ||
37688 | wxPyEndAllowThreads(__tstate); | |
37689 | if (PyErr_Occurred()) SWIG_fail; | |
37690 | } | |
37691 | Py_INCREF(Py_None); resultobj = Py_None; | |
37692 | { | |
3adfb63b | 37693 | if (temp2) delete arg2; |
d14a1e28 RD |
37694 | } |
37695 | return resultobj; | |
37696 | fail: | |
37697 | { | |
3adfb63b | 37698 | if (temp2) delete arg2; |
d14a1e28 RD |
37699 | } |
37700 | return NULL; | |
37701 | } | |
37702 | ||
37703 | ||
c32bde28 | 37704 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37705 | PyObject *resultobj; |
37706 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37707 | wxString *arg2 = 0 ; | |
37708 | int arg3 ; | |
37709 | PyObject *arg4 = (PyObject *) NULL ; | |
37710 | int result; | |
ae8162c8 | 37711 | bool temp2 = false ; |
d14a1e28 RD |
37712 | PyObject * obj0 = 0 ; |
37713 | PyObject * obj1 = 0 ; | |
994141e6 | 37714 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37715 | PyObject * obj3 = 0 ; |
37716 | char *kwnames[] = { | |
37717 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
37718 | }; | |
37719 | ||
994141e6 | 37720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
37721 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37722 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37723 | { |
37724 | arg2 = wxString_in_helper(obj1); | |
37725 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 37726 | temp2 = true; |
d14a1e28 | 37727 | } |
093d3ff1 RD |
37728 | { |
37729 | arg3 = (int)(SWIG_As_int(obj2)); | |
37730 | if (SWIG_arg_fail(3)) SWIG_fail; | |
37731 | } | |
d14a1e28 RD |
37732 | if (obj3) { |
37733 | arg4 = obj3; | |
37734 | } | |
37735 | { | |
37736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37737 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
37738 | ||
37739 | wxPyEndAllowThreads(__tstate); | |
37740 | if (PyErr_Occurred()) SWIG_fail; | |
37741 | } | |
093d3ff1 RD |
37742 | { |
37743 | resultobj = SWIG_From_int((int)(result)); | |
37744 | } | |
d14a1e28 RD |
37745 | { |
37746 | if (temp2) | |
37747 | delete arg2; | |
37748 | } | |
37749 | return resultobj; | |
37750 | fail: | |
37751 | { | |
37752 | if (temp2) | |
37753 | delete arg2; | |
37754 | } | |
37755 | return NULL; | |
37756 | } | |
37757 | ||
37758 | ||
c32bde28 | 37759 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37760 | PyObject *resultobj; |
37761 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37762 | PyObject * obj0 = 0 ; | |
37763 | char *kwnames[] = { | |
37764 | (char *) "self", NULL | |
37765 | }; | |
37766 | ||
37767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37770 | { |
37771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37772 | (arg1)->Clear(); | |
37773 | ||
37774 | wxPyEndAllowThreads(__tstate); | |
37775 | if (PyErr_Occurred()) SWIG_fail; | |
37776 | } | |
37777 | Py_INCREF(Py_None); resultobj = Py_None; | |
37778 | return resultobj; | |
37779 | fail: | |
37780 | return NULL; | |
37781 | } | |
37782 | ||
37783 | ||
c32bde28 | 37784 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37785 | PyObject *resultobj; |
37786 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37787 | int arg2 ; | |
37788 | PyObject * obj0 = 0 ; | |
994141e6 | 37789 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37790 | char *kwnames[] = { |
37791 | (char *) "self",(char *) "n", NULL | |
37792 | }; | |
37793 | ||
994141e6 | 37794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
37795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37797 | { | |
37798 | arg2 = (int)(SWIG_As_int(obj1)); | |
37799 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37800 | } | |
d14a1e28 RD |
37801 | { |
37802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37803 | (arg1)->Delete(arg2); | |
37804 | ||
37805 | wxPyEndAllowThreads(__tstate); | |
37806 | if (PyErr_Occurred()) SWIG_fail; | |
37807 | } | |
37808 | Py_INCREF(Py_None); resultobj = Py_None; | |
37809 | return resultobj; | |
37810 | fail: | |
37811 | return NULL; | |
37812 | } | |
37813 | ||
37814 | ||
53aa7709 RD |
37815 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
37816 | PyObject *resultobj; | |
37817 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37818 | int arg2 ; | |
37819 | PyObject *result; | |
37820 | PyObject * obj0 = 0 ; | |
37821 | PyObject * obj1 = 0 ; | |
37822 | char *kwnames[] = { | |
37823 | (char *) "self",(char *) "n", NULL | |
37824 | }; | |
37825 | ||
37826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
37827 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37835 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
37836 | ||
37837 | wxPyEndAllowThreads(__tstate); | |
37838 | if (PyErr_Occurred()) SWIG_fail; | |
37839 | } | |
37840 | resultobj = result; | |
37841 | return resultobj; | |
37842 | fail: | |
37843 | return NULL; | |
37844 | } | |
37845 | ||
37846 | ||
37847 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { | |
37848 | PyObject *resultobj; | |
37849 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37850 | int arg2 ; | |
37851 | PyObject *arg3 = (PyObject *) 0 ; | |
37852 | PyObject * obj0 = 0 ; | |
37853 | PyObject * obj1 = 0 ; | |
37854 | PyObject * obj2 = 0 ; | |
37855 | char *kwnames[] = { | |
37856 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
37857 | }; | |
37858 | ||
37859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); | |
37861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37862 | { | |
37863 | arg2 = (int)(SWIG_As_int(obj1)); | |
37864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37865 | } | |
37866 | arg3 = obj2; | |
37867 | { | |
37868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37869 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
37870 | ||
37871 | wxPyEndAllowThreads(__tstate); | |
37872 | if (PyErr_Occurred()) SWIG_fail; | |
37873 | } | |
37874 | Py_INCREF(Py_None); resultobj = Py_None; | |
37875 | return resultobj; | |
37876 | fail: | |
37877 | return NULL; | |
37878 | } | |
37879 | ||
37880 | ||
c32bde28 | 37881 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37882 | PyObject *resultobj; |
37883 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37884 | int result; | |
37885 | PyObject * obj0 = 0 ; | |
37886 | char *kwnames[] = { | |
37887 | (char *) "self", NULL | |
37888 | }; | |
37889 | ||
37890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37893 | { |
37894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37895 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
37896 | ||
37897 | wxPyEndAllowThreads(__tstate); | |
37898 | if (PyErr_Occurred()) SWIG_fail; | |
37899 | } | |
093d3ff1 RD |
37900 | { |
37901 | resultobj = SWIG_From_int((int)(result)); | |
37902 | } | |
d14a1e28 RD |
37903 | return resultobj; |
37904 | fail: | |
37905 | return NULL; | |
37906 | } | |
37907 | ||
37908 | ||
c32bde28 | 37909 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37910 | PyObject *resultobj; |
37911 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37912 | bool result; | |
37913 | PyObject * obj0 = 0 ; | |
37914 | char *kwnames[] = { | |
37915 | (char *) "self", NULL | |
37916 | }; | |
37917 | ||
37918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37921 | { |
37922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37923 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
37924 | ||
37925 | wxPyEndAllowThreads(__tstate); | |
37926 | if (PyErr_Occurred()) SWIG_fail; | |
37927 | } | |
4f89f6a3 RD |
37928 | { |
37929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37930 | } | |
d14a1e28 RD |
37931 | return resultobj; |
37932 | fail: | |
37933 | return NULL; | |
37934 | } | |
37935 | ||
37936 | ||
c32bde28 | 37937 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37938 | PyObject *resultobj; |
37939 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37940 | int arg2 ; | |
37941 | wxString result; | |
37942 | PyObject * obj0 = 0 ; | |
994141e6 | 37943 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37944 | char *kwnames[] = { |
37945 | (char *) "self",(char *) "n", NULL | |
37946 | }; | |
37947 | ||
994141e6 | 37948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
37949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
37951 | { | |
37952 | arg2 = (int)(SWIG_As_int(obj1)); | |
37953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
37954 | } | |
d14a1e28 RD |
37955 | { |
37956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37957 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
37958 | ||
37959 | wxPyEndAllowThreads(__tstate); | |
37960 | if (PyErr_Occurred()) SWIG_fail; | |
37961 | } | |
37962 | { | |
37963 | #if wxUSE_UNICODE | |
37964 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
37965 | #else | |
37966 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
37967 | #endif | |
37968 | } | |
37969 | return resultobj; | |
37970 | fail: | |
37971 | return NULL; | |
37972 | } | |
37973 | ||
37974 | ||
c32bde28 | 37975 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37976 | PyObject *resultobj; |
37977 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
37978 | wxArrayString result; | |
37979 | PyObject * obj0 = 0 ; | |
37980 | char *kwnames[] = { | |
37981 | (char *) "self", NULL | |
37982 | }; | |
37983 | ||
37984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
37985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
37986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
37987 | { |
37988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37989 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
37990 | ||
37991 | wxPyEndAllowThreads(__tstate); | |
37992 | if (PyErr_Occurred()) SWIG_fail; | |
37993 | } | |
37994 | { | |
37995 | resultobj = wxArrayString2PyList_helper(result); | |
37996 | } | |
37997 | return resultobj; | |
37998 | fail: | |
37999 | return NULL; | |
38000 | } | |
38001 | ||
38002 | ||
c32bde28 | 38003 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38004 | PyObject *resultobj; |
38005 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38006 | int arg2 ; | |
38007 | wxString *arg3 = 0 ; | |
ae8162c8 | 38008 | bool temp3 = false ; |
d14a1e28 | 38009 | PyObject * obj0 = 0 ; |
994141e6 | 38010 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38011 | PyObject * obj2 = 0 ; |
38012 | char *kwnames[] = { | |
38013 | (char *) "self",(char *) "n",(char *) "s", NULL | |
38014 | }; | |
38015 | ||
994141e6 | 38016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
38017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38019 | { | |
38020 | arg2 = (int)(SWIG_As_int(obj1)); | |
38021 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38022 | } | |
d14a1e28 RD |
38023 | { |
38024 | arg3 = wxString_in_helper(obj2); | |
38025 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 38026 | temp3 = true; |
d14a1e28 RD |
38027 | } |
38028 | { | |
38029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38030 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
38031 | ||
38032 | wxPyEndAllowThreads(__tstate); | |
38033 | if (PyErr_Occurred()) SWIG_fail; | |
38034 | } | |
38035 | Py_INCREF(Py_None); resultobj = Py_None; | |
38036 | { | |
38037 | if (temp3) | |
38038 | delete arg3; | |
38039 | } | |
38040 | return resultobj; | |
38041 | fail: | |
38042 | { | |
38043 | if (temp3) | |
38044 | delete arg3; | |
38045 | } | |
38046 | return NULL; | |
38047 | } | |
38048 | ||
38049 | ||
c32bde28 | 38050 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38051 | PyObject *resultobj; |
38052 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38053 | wxString *arg2 = 0 ; | |
38054 | int result; | |
ae8162c8 | 38055 | bool temp2 = false ; |
d14a1e28 RD |
38056 | PyObject * obj0 = 0 ; |
38057 | PyObject * obj1 = 0 ; | |
38058 | char *kwnames[] = { | |
38059 | (char *) "self",(char *) "s", NULL | |
38060 | }; | |
38061 | ||
38062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38065 | { |
38066 | arg2 = wxString_in_helper(obj1); | |
38067 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 38068 | temp2 = true; |
d14a1e28 RD |
38069 | } |
38070 | { | |
38071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38072 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
38073 | ||
38074 | wxPyEndAllowThreads(__tstate); | |
38075 | if (PyErr_Occurred()) SWIG_fail; | |
38076 | } | |
093d3ff1 RD |
38077 | { |
38078 | resultobj = SWIG_From_int((int)(result)); | |
38079 | } | |
d14a1e28 RD |
38080 | { |
38081 | if (temp2) | |
38082 | delete arg2; | |
38083 | } | |
38084 | return resultobj; | |
38085 | fail: | |
38086 | { | |
38087 | if (temp2) | |
38088 | delete arg2; | |
38089 | } | |
38090 | return NULL; | |
38091 | } | |
38092 | ||
38093 | ||
53aa7709 | 38094 | static PyObject *_wrap_ItemContainer_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38095 | PyObject *resultobj; |
38096 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38097 | int arg2 ; | |
38098 | PyObject * obj0 = 0 ; | |
994141e6 | 38099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38100 | char *kwnames[] = { |
38101 | (char *) "self",(char *) "n", NULL | |
38102 | }; | |
38103 | ||
53aa7709 | 38104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
38105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38107 | { | |
38108 | arg2 = (int)(SWIG_As_int(obj1)); | |
38109 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38110 | } | |
d14a1e28 RD |
38111 | { |
38112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 38113 | (arg1)->SetSelection(arg2); |
d14a1e28 RD |
38114 | |
38115 | wxPyEndAllowThreads(__tstate); | |
38116 | if (PyErr_Occurred()) SWIG_fail; | |
38117 | } | |
38118 | Py_INCREF(Py_None); resultobj = Py_None; | |
38119 | return resultobj; | |
38120 | fail: | |
38121 | return NULL; | |
38122 | } | |
38123 | ||
38124 | ||
c32bde28 | 38125 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38126 | PyObject *resultobj; |
38127 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38128 | int result; | |
38129 | PyObject * obj0 = 0 ; | |
38130 | char *kwnames[] = { | |
38131 | (char *) "self", NULL | |
38132 | }; | |
38133 | ||
38134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38137 | { |
38138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38139 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
38140 | ||
38141 | wxPyEndAllowThreads(__tstate); | |
38142 | if (PyErr_Occurred()) SWIG_fail; | |
38143 | } | |
093d3ff1 RD |
38144 | { |
38145 | resultobj = SWIG_From_int((int)(result)); | |
38146 | } | |
d14a1e28 RD |
38147 | return resultobj; |
38148 | fail: | |
38149 | return NULL; | |
38150 | } | |
38151 | ||
38152 | ||
53aa7709 | 38153 | static PyObject *_wrap_ItemContainer_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38154 | PyObject *resultobj; |
38155 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
53aa7709 RD |
38156 | wxString *arg2 = 0 ; |
38157 | bool result; | |
38158 | bool temp2 = false ; | |
d14a1e28 | 38159 | PyObject * obj0 = 0 ; |
53aa7709 | 38160 | PyObject * obj1 = 0 ; |
d14a1e28 | 38161 | char *kwnames[] = { |
53aa7709 | 38162 | (char *) "self",(char *) "s", NULL |
d14a1e28 RD |
38163 | }; |
38164 | ||
53aa7709 | 38165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
38166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
53aa7709 RD |
38168 | { |
38169 | arg2 = wxString_in_helper(obj1); | |
38170 | if (arg2 == NULL) SWIG_fail; | |
38171 | temp2 = true; | |
38172 | } | |
d14a1e28 RD |
38173 | { |
38174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 38175 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
38176 | |
38177 | wxPyEndAllowThreads(__tstate); | |
38178 | if (PyErr_Occurred()) SWIG_fail; | |
38179 | } | |
38180 | { | |
53aa7709 RD |
38181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
38182 | } | |
38183 | { | |
38184 | if (temp2) | |
38185 | delete arg2; | |
d14a1e28 RD |
38186 | } |
38187 | return resultobj; | |
38188 | fail: | |
53aa7709 RD |
38189 | { |
38190 | if (temp2) | |
38191 | delete arg2; | |
38192 | } | |
d14a1e28 RD |
38193 | return NULL; |
38194 | } | |
38195 | ||
38196 | ||
53aa7709 | 38197 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38198 | PyObject *resultobj; |
38199 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
53aa7709 | 38200 | wxString result; |
d14a1e28 RD |
38201 | PyObject * obj0 = 0 ; |
38202 | char *kwnames[] = { | |
53aa7709 | 38203 | (char *) "self", NULL |
d14a1e28 RD |
38204 | }; |
38205 | ||
53aa7709 | 38206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
38207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38209 | { |
38210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 38211 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); |
d14a1e28 RD |
38212 | |
38213 | wxPyEndAllowThreads(__tstate); | |
38214 | if (PyErr_Occurred()) SWIG_fail; | |
38215 | } | |
53aa7709 RD |
38216 | { |
38217 | #if wxUSE_UNICODE | |
38218 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
38219 | #else | |
38220 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
38221 | #endif | |
38222 | } | |
d14a1e28 RD |
38223 | return resultobj; |
38224 | fail: | |
38225 | return NULL; | |
38226 | } | |
38227 | ||
38228 | ||
53aa7709 | 38229 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38230 | PyObject *resultobj; |
38231 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
38232 | int arg2 ; | |
d14a1e28 | 38233 | PyObject * obj0 = 0 ; |
994141e6 | 38234 | PyObject * obj1 = 0 ; |
d14a1e28 | 38235 | char *kwnames[] = { |
53aa7709 | 38236 | (char *) "self",(char *) "n", NULL |
d14a1e28 RD |
38237 | }; |
38238 | ||
53aa7709 | 38239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
38240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0); |
38241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38242 | { | |
38243 | arg2 = (int)(SWIG_As_int(obj1)); | |
38244 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38245 | } | |
d14a1e28 RD |
38246 | { |
38247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 38248 | (arg1)->Select(arg2); |
d14a1e28 RD |
38249 | |
38250 | wxPyEndAllowThreads(__tstate); | |
38251 | if (PyErr_Occurred()) SWIG_fail; | |
38252 | } | |
38253 | Py_INCREF(Py_None); resultobj = Py_None; | |
38254 | return resultobj; | |
38255 | fail: | |
38256 | return NULL; | |
38257 | } | |
38258 | ||
38259 | ||
c32bde28 | 38260 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
38261 | PyObject *obj; |
38262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38263 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
38264 | Py_INCREF(obj); | |
38265 | return Py_BuildValue((char *)""); | |
38266 | } | |
c32bde28 | 38267 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
38268 | PyObject *obj; |
38269 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38270 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
38271 | Py_INCREF(obj); | |
38272 | return Py_BuildValue((char *)""); | |
38273 | } | |
c32bde28 | 38274 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38275 | PyObject *resultobj; |
38276 | wxSizerItem *result; | |
38277 | char *kwnames[] = { | |
38278 | NULL | |
38279 | }; | |
38280 | ||
38281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
38282 | { | |
38283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38284 | result = (wxSizerItem *)new wxSizerItem(); | |
38285 | ||
38286 | wxPyEndAllowThreads(__tstate); | |
38287 | if (PyErr_Occurred()) SWIG_fail; | |
38288 | } | |
15afbcd0 | 38289 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
38290 | return resultobj; |
38291 | fail: | |
38292 | return NULL; | |
38293 | } | |
38294 | ||
38295 | ||
c32bde28 | 38296 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 38297 | PyObject *resultobj; |
248ed943 | 38298 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
38299 | int arg2 ; |
38300 | int arg3 ; | |
38301 | int arg4 ; | |
248ed943 | 38302 | PyObject *arg5 = (PyObject *) NULL ; |
d14a1e28 | 38303 | wxSizerItem *result; |
994141e6 RD |
38304 | PyObject * obj0 = 0 ; |
38305 | PyObject * obj1 = 0 ; | |
38306 | PyObject * obj2 = 0 ; | |
38307 | PyObject * obj3 = 0 ; | |
38308 | PyObject * obj4 = 0 ; | |
d14a1e28 | 38309 | char *kwnames[] = { |
248ed943 | 38310 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d14a1e28 RD |
38311 | }; |
38312 | ||
248ed943 | 38313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
38314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
38315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38316 | { | |
38317 | arg2 = (int)(SWIG_As_int(obj1)); | |
38318 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38319 | } | |
38320 | { | |
38321 | arg3 = (int)(SWIG_As_int(obj2)); | |
38322 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38323 | } | |
38324 | { | |
38325 | arg4 = (int)(SWIG_As_int(obj3)); | |
38326 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38327 | } | |
248ed943 RD |
38328 | if (obj4) { |
38329 | arg5 = obj4; | |
38330 | } | |
d14a1e28 RD |
38331 | { |
38332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38333 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
38334 | |
38335 | wxPyEndAllowThreads(__tstate); | |
38336 | if (PyErr_Occurred()) SWIG_fail; | |
38337 | } | |
15afbcd0 | 38338 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
38339 | return resultobj; |
38340 | fail: | |
38341 | return NULL; | |
38342 | } | |
38343 | ||
38344 | ||
c32bde28 | 38345 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 38346 | PyObject *resultobj; |
248ed943 | 38347 | int arg1 ; |
d14a1e28 RD |
38348 | int arg2 ; |
38349 | int arg3 ; | |
38350 | int arg4 ; | |
248ed943 RD |
38351 | int arg5 ; |
38352 | PyObject *arg6 = (PyObject *) NULL ; | |
d14a1e28 RD |
38353 | wxSizerItem *result; |
38354 | PyObject * obj0 = 0 ; | |
994141e6 RD |
38355 | PyObject * obj1 = 0 ; |
38356 | PyObject * obj2 = 0 ; | |
38357 | PyObject * obj3 = 0 ; | |
d14a1e28 | 38358 | PyObject * obj4 = 0 ; |
248ed943 | 38359 | PyObject * obj5 = 0 ; |
d14a1e28 | 38360 | char *kwnames[] = { |
248ed943 | 38361 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d14a1e28 RD |
38362 | }; |
38363 | ||
248ed943 | 38364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
38365 | { |
38366 | arg1 = (int)(SWIG_As_int(obj0)); | |
38367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38368 | } | |
38369 | { | |
38370 | arg2 = (int)(SWIG_As_int(obj1)); | |
38371 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38372 | } | |
38373 | { | |
38374 | arg3 = (int)(SWIG_As_int(obj2)); | |
38375 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38376 | } | |
38377 | { | |
38378 | arg4 = (int)(SWIG_As_int(obj3)); | |
38379 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38380 | } | |
38381 | { | |
38382 | arg5 = (int)(SWIG_As_int(obj4)); | |
38383 | if (SWIG_arg_fail(5)) SWIG_fail; | |
38384 | } | |
248ed943 RD |
38385 | if (obj5) { |
38386 | arg6 = obj5; | |
38387 | } | |
d14a1e28 RD |
38388 | { |
38389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38390 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
38391 | |
38392 | wxPyEndAllowThreads(__tstate); | |
38393 | if (PyErr_Occurred()) SWIG_fail; | |
38394 | } | |
15afbcd0 | 38395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
38396 | return resultobj; |
38397 | fail: | |
38398 | return NULL; | |
38399 | } | |
38400 | ||
38401 | ||
c32bde28 | 38402 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38403 | PyObject *resultobj; |
38404 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38405 | int arg2 ; | |
38406 | int arg3 ; | |
38407 | int arg4 ; | |
248ed943 | 38408 | PyObject *arg5 = (PyObject *) NULL ; |
d14a1e28 RD |
38409 | wxSizerItem *result; |
38410 | PyObject * obj0 = 0 ; | |
994141e6 RD |
38411 | PyObject * obj1 = 0 ; |
38412 | PyObject * obj2 = 0 ; | |
38413 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38414 | PyObject * obj4 = 0 ; |
38415 | char *kwnames[] = { | |
38416 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38417 | }; | |
38418 | ||
248ed943 | 38419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
38420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
38421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38422 | { | |
38423 | arg2 = (int)(SWIG_As_int(obj1)); | |
38424 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38425 | } | |
38426 | { | |
38427 | arg3 = (int)(SWIG_As_int(obj2)); | |
38428 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38429 | } | |
38430 | { | |
38431 | arg4 = (int)(SWIG_As_int(obj3)); | |
38432 | if (SWIG_arg_fail(4)) SWIG_fail; | |
38433 | } | |
248ed943 RD |
38434 | if (obj4) { |
38435 | arg5 = obj4; | |
38436 | } | |
d14a1e28 RD |
38437 | { |
38438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38439 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
38440 | |
38441 | wxPyEndAllowThreads(__tstate); | |
38442 | if (PyErr_Occurred()) SWIG_fail; | |
38443 | } | |
15afbcd0 | 38444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
38445 | return resultobj; |
38446 | fail: | |
38447 | return NULL; | |
38448 | } | |
38449 | ||
38450 | ||
c32bde28 | 38451 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38452 | PyObject *resultobj; |
38453 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38454 | PyObject * obj0 = 0 ; | |
38455 | char *kwnames[] = { | |
38456 | (char *) "self", NULL | |
38457 | }; | |
38458 | ||
38459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38462 | { |
38463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38464 | (arg1)->DeleteWindows(); | |
38465 | ||
38466 | wxPyEndAllowThreads(__tstate); | |
38467 | if (PyErr_Occurred()) SWIG_fail; | |
38468 | } | |
38469 | Py_INCREF(Py_None); resultobj = Py_None; | |
38470 | return resultobj; | |
38471 | fail: | |
38472 | return NULL; | |
38473 | } | |
38474 | ||
38475 | ||
c32bde28 | 38476 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38477 | PyObject *resultobj; |
38478 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38479 | PyObject * obj0 = 0 ; | |
38480 | char *kwnames[] = { | |
38481 | (char *) "self", NULL | |
38482 | }; | |
38483 | ||
38484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38487 | { |
38488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38489 | (arg1)->DetachSizer(); | |
38490 | ||
38491 | wxPyEndAllowThreads(__tstate); | |
38492 | if (PyErr_Occurred()) SWIG_fail; | |
38493 | } | |
38494 | Py_INCREF(Py_None); resultobj = Py_None; | |
38495 | return resultobj; | |
38496 | fail: | |
38497 | return NULL; | |
38498 | } | |
38499 | ||
38500 | ||
c32bde28 | 38501 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38502 | PyObject *resultobj; |
38503 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38504 | wxSize result; | |
38505 | PyObject * obj0 = 0 ; | |
38506 | char *kwnames[] = { | |
38507 | (char *) "self", NULL | |
38508 | }; | |
38509 | ||
38510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38513 | { |
38514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38515 | result = (arg1)->GetSize(); | |
38516 | ||
38517 | wxPyEndAllowThreads(__tstate); | |
38518 | if (PyErr_Occurred()) SWIG_fail; | |
38519 | } | |
38520 | { | |
38521 | wxSize * resultptr; | |
093d3ff1 | 38522 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 38523 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
38524 | } |
38525 | return resultobj; | |
38526 | fail: | |
38527 | return NULL; | |
38528 | } | |
38529 | ||
38530 | ||
c32bde28 | 38531 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38532 | PyObject *resultobj; |
38533 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38534 | wxSize result; | |
38535 | PyObject * obj0 = 0 ; | |
38536 | char *kwnames[] = { | |
38537 | (char *) "self", NULL | |
38538 | }; | |
38539 | ||
38540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38543 | { |
38544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38545 | result = (arg1)->CalcMin(); | |
38546 | ||
38547 | wxPyEndAllowThreads(__tstate); | |
38548 | if (PyErr_Occurred()) SWIG_fail; | |
38549 | } | |
38550 | { | |
38551 | wxSize * resultptr; | |
093d3ff1 | 38552 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 38553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
38554 | } |
38555 | return resultobj; | |
38556 | fail: | |
38557 | return NULL; | |
38558 | } | |
38559 | ||
38560 | ||
c32bde28 | 38561 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38562 | PyObject *resultobj; |
38563 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38564 | wxPoint arg2 ; | |
38565 | wxSize arg3 ; | |
d14a1e28 RD |
38566 | PyObject * obj0 = 0 ; |
38567 | PyObject * obj1 = 0 ; | |
38568 | PyObject * obj2 = 0 ; | |
38569 | char *kwnames[] = { | |
38570 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
38571 | }; | |
38572 | ||
38573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
38574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38576 | { | |
38577 | wxPoint * argp; | |
38578 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION); | |
38579 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38580 | if (argp == NULL) { | |
38581 | SWIG_null_ref("wxPoint"); | |
38582 | } | |
38583 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38584 | arg2 = *argp; | |
38585 | } | |
38586 | { | |
38587 | wxSize * argp; | |
38588 | SWIG_Python_ConvertPtr(obj2, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION); | |
38589 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38590 | if (argp == NULL) { | |
38591 | SWIG_null_ref("wxSize"); | |
38592 | } | |
38593 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38594 | arg3 = *argp; | |
38595 | } | |
d14a1e28 RD |
38596 | { |
38597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38598 | (arg1)->SetDimension(arg2,arg3); | |
38599 | ||
38600 | wxPyEndAllowThreads(__tstate); | |
38601 | if (PyErr_Occurred()) SWIG_fail; | |
38602 | } | |
38603 | Py_INCREF(Py_None); resultobj = Py_None; | |
38604 | return resultobj; | |
38605 | fail: | |
38606 | return NULL; | |
38607 | } | |
38608 | ||
38609 | ||
c32bde28 | 38610 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38611 | PyObject *resultobj; |
38612 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38613 | wxSize result; | |
38614 | PyObject * obj0 = 0 ; | |
38615 | char *kwnames[] = { | |
38616 | (char *) "self", NULL | |
38617 | }; | |
38618 | ||
38619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38622 | { |
38623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38624 | result = (arg1)->GetMinSize(); | |
38625 | ||
38626 | wxPyEndAllowThreads(__tstate); | |
38627 | if (PyErr_Occurred()) SWIG_fail; | |
38628 | } | |
38629 | { | |
38630 | wxSize * resultptr; | |
093d3ff1 | 38631 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 38632 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
38633 | } |
38634 | return resultobj; | |
38635 | fail: | |
38636 | return NULL; | |
38637 | } | |
38638 | ||
38639 | ||
c32bde28 | 38640 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
dfbb5885 RD |
38641 | PyObject *resultobj; |
38642 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38643 | wxSize result; | |
38644 | PyObject * obj0 = 0 ; | |
38645 | char *kwnames[] = { | |
38646 | (char *) "self", NULL | |
38647 | }; | |
38648 | ||
38649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
dfbb5885 RD |
38652 | { |
38653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38654 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
38655 | ||
38656 | wxPyEndAllowThreads(__tstate); | |
38657 | if (PyErr_Occurred()) SWIG_fail; | |
38658 | } | |
38659 | { | |
38660 | wxSize * resultptr; | |
093d3ff1 | 38661 | resultptr = new wxSize((wxSize &)(result)); |
dfbb5885 RD |
38662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
38663 | } | |
38664 | return resultobj; | |
38665 | fail: | |
38666 | return NULL; | |
38667 | } | |
38668 | ||
38669 | ||
c32bde28 | 38670 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38671 | PyObject *resultobj; |
38672 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38673 | int arg2 ; | |
38674 | int arg3 ; | |
38675 | PyObject * obj0 = 0 ; | |
994141e6 RD |
38676 | PyObject * obj1 = 0 ; |
38677 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
38678 | char *kwnames[] = { |
38679 | (char *) "self",(char *) "x",(char *) "y", NULL | |
38680 | }; | |
38681 | ||
994141e6 | 38682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
38683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38685 | { | |
38686 | arg2 = (int)(SWIG_As_int(obj1)); | |
38687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38688 | } | |
38689 | { | |
38690 | arg3 = (int)(SWIG_As_int(obj2)); | |
38691 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38692 | } | |
d14a1e28 RD |
38693 | { |
38694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38695 | (arg1)->SetInitSize(arg2,arg3); | |
38696 | ||
38697 | wxPyEndAllowThreads(__tstate); | |
38698 | if (PyErr_Occurred()) SWIG_fail; | |
38699 | } | |
38700 | Py_INCREF(Py_None); resultobj = Py_None; | |
38701 | return resultobj; | |
38702 | fail: | |
38703 | return NULL; | |
38704 | } | |
38705 | ||
38706 | ||
c32bde28 | 38707 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38708 | PyObject *resultobj; |
38709 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38710 | int arg2 ; | |
38711 | int arg3 ; | |
38712 | PyObject * obj0 = 0 ; | |
994141e6 RD |
38713 | PyObject * obj1 = 0 ; |
38714 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
38715 | char *kwnames[] = { |
38716 | (char *) "self",(char *) "width",(char *) "height", NULL | |
38717 | }; | |
38718 | ||
994141e6 | 38719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
38720 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38721 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38722 | { | |
38723 | arg2 = (int)(SWIG_As_int(obj1)); | |
38724 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38725 | } | |
38726 | { | |
38727 | arg3 = (int)(SWIG_As_int(obj2)); | |
38728 | if (SWIG_arg_fail(3)) SWIG_fail; | |
38729 | } | |
d14a1e28 RD |
38730 | { |
38731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38732 | (arg1)->SetRatio(arg2,arg3); | |
38733 | ||
38734 | wxPyEndAllowThreads(__tstate); | |
38735 | if (PyErr_Occurred()) SWIG_fail; | |
38736 | } | |
38737 | Py_INCREF(Py_None); resultobj = Py_None; | |
38738 | return resultobj; | |
38739 | fail: | |
38740 | return NULL; | |
38741 | } | |
38742 | ||
38743 | ||
c32bde28 | 38744 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38745 | PyObject *resultobj; |
38746 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
88c6b281 RD |
38747 | wxSize *arg2 = 0 ; |
38748 | wxSize temp2 ; | |
d14a1e28 RD |
38749 | PyObject * obj0 = 0 ; |
38750 | PyObject * obj1 = 0 ; | |
38751 | char *kwnames[] = { | |
38752 | (char *) "self",(char *) "size", NULL | |
38753 | }; | |
38754 | ||
38755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
38756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38758 | { | |
88c6b281 RD |
38759 | arg2 = &temp2; |
38760 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
093d3ff1 | 38761 | } |
d14a1e28 RD |
38762 | { |
38763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
88c6b281 | 38764 | (arg1)->SetRatio((wxSize const &)*arg2); |
d14a1e28 RD |
38765 | |
38766 | wxPyEndAllowThreads(__tstate); | |
38767 | if (PyErr_Occurred()) SWIG_fail; | |
38768 | } | |
38769 | Py_INCREF(Py_None); resultobj = Py_None; | |
38770 | return resultobj; | |
38771 | fail: | |
38772 | return NULL; | |
38773 | } | |
38774 | ||
38775 | ||
c32bde28 | 38776 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38777 | PyObject *resultobj; |
38778 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38779 | float arg2 ; | |
38780 | PyObject * obj0 = 0 ; | |
994141e6 | 38781 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38782 | char *kwnames[] = { |
38783 | (char *) "self",(char *) "ratio", NULL | |
38784 | }; | |
38785 | ||
994141e6 | 38786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
38787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38789 | { | |
38790 | arg2 = (float)(SWIG_As_float(obj1)); | |
38791 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38792 | } | |
d14a1e28 RD |
38793 | { |
38794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38795 | (arg1)->SetRatio(arg2); | |
38796 | ||
38797 | wxPyEndAllowThreads(__tstate); | |
38798 | if (PyErr_Occurred()) SWIG_fail; | |
38799 | } | |
38800 | Py_INCREF(Py_None); resultobj = Py_None; | |
38801 | return resultobj; | |
38802 | fail: | |
38803 | return NULL; | |
38804 | } | |
38805 | ||
38806 | ||
c32bde28 | 38807 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38808 | PyObject *resultobj; |
38809 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38810 | float result; | |
38811 | PyObject * obj0 = 0 ; | |
38812 | char *kwnames[] = { | |
38813 | (char *) "self", NULL | |
38814 | }; | |
38815 | ||
38816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38819 | { |
38820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38821 | result = (float)(arg1)->GetRatio(); | |
38822 | ||
38823 | wxPyEndAllowThreads(__tstate); | |
38824 | if (PyErr_Occurred()) SWIG_fail; | |
38825 | } | |
093d3ff1 RD |
38826 | { |
38827 | resultobj = SWIG_From_float((float)(result)); | |
38828 | } | |
d14a1e28 RD |
38829 | return resultobj; |
38830 | fail: | |
38831 | return NULL; | |
38832 | } | |
38833 | ||
38834 | ||
d3b6e4ff RD |
38835 | static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
38836 | PyObject *resultobj; | |
38837 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38838 | wxRect result; | |
38839 | PyObject * obj0 = 0 ; | |
38840 | char *kwnames[] = { | |
38841 | (char *) "self", NULL | |
38842 | }; | |
38843 | ||
38844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
38847 | { |
38848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38849 | result = (arg1)->GetRect(); | |
38850 | ||
38851 | wxPyEndAllowThreads(__tstate); | |
38852 | if (PyErr_Occurred()) SWIG_fail; | |
38853 | } | |
38854 | { | |
38855 | wxRect * resultptr; | |
093d3ff1 | 38856 | resultptr = new wxRect((wxRect &)(result)); |
d3b6e4ff RD |
38857 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
38858 | } | |
38859 | return resultobj; | |
38860 | fail: | |
38861 | return NULL; | |
38862 | } | |
38863 | ||
38864 | ||
c32bde28 | 38865 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38866 | PyObject *resultobj; |
38867 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38868 | bool result; | |
38869 | PyObject * obj0 = 0 ; | |
38870 | char *kwnames[] = { | |
38871 | (char *) "self", NULL | |
38872 | }; | |
38873 | ||
38874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38877 | { |
38878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38879 | result = (bool)(arg1)->IsWindow(); | |
38880 | ||
38881 | wxPyEndAllowThreads(__tstate); | |
38882 | if (PyErr_Occurred()) SWIG_fail; | |
38883 | } | |
4f89f6a3 RD |
38884 | { |
38885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38886 | } | |
d14a1e28 RD |
38887 | return resultobj; |
38888 | fail: | |
38889 | return NULL; | |
38890 | } | |
38891 | ||
38892 | ||
c32bde28 | 38893 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38894 | PyObject *resultobj; |
38895 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38896 | bool result; | |
38897 | PyObject * obj0 = 0 ; | |
38898 | char *kwnames[] = { | |
38899 | (char *) "self", NULL | |
38900 | }; | |
38901 | ||
38902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38905 | { |
38906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38907 | result = (bool)(arg1)->IsSizer(); | |
38908 | ||
38909 | wxPyEndAllowThreads(__tstate); | |
38910 | if (PyErr_Occurred()) SWIG_fail; | |
38911 | } | |
4f89f6a3 RD |
38912 | { |
38913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38914 | } | |
d14a1e28 RD |
38915 | return resultobj; |
38916 | fail: | |
38917 | return NULL; | |
38918 | } | |
38919 | ||
38920 | ||
c32bde28 | 38921 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38922 | PyObject *resultobj; |
38923 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38924 | bool result; | |
38925 | PyObject * obj0 = 0 ; | |
38926 | char *kwnames[] = { | |
38927 | (char *) "self", NULL | |
38928 | }; | |
38929 | ||
38930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38933 | { |
38934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38935 | result = (bool)(arg1)->IsSpacer(); | |
38936 | ||
38937 | wxPyEndAllowThreads(__tstate); | |
38938 | if (PyErr_Occurred()) SWIG_fail; | |
38939 | } | |
4f89f6a3 RD |
38940 | { |
38941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38942 | } | |
d14a1e28 RD |
38943 | return resultobj; |
38944 | fail: | |
38945 | return NULL; | |
38946 | } | |
38947 | ||
38948 | ||
c32bde28 | 38949 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38950 | PyObject *resultobj; |
38951 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38952 | int arg2 ; | |
38953 | PyObject * obj0 = 0 ; | |
994141e6 | 38954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38955 | char *kwnames[] = { |
38956 | (char *) "self",(char *) "proportion", NULL | |
38957 | }; | |
38958 | ||
994141e6 | 38959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
38960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
38962 | { | |
38963 | arg2 = (int)(SWIG_As_int(obj1)); | |
38964 | if (SWIG_arg_fail(2)) SWIG_fail; | |
38965 | } | |
d14a1e28 RD |
38966 | { |
38967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38968 | (arg1)->SetProportion(arg2); | |
38969 | ||
38970 | wxPyEndAllowThreads(__tstate); | |
38971 | if (PyErr_Occurred()) SWIG_fail; | |
38972 | } | |
38973 | Py_INCREF(Py_None); resultobj = Py_None; | |
38974 | return resultobj; | |
38975 | fail: | |
38976 | return NULL; | |
38977 | } | |
38978 | ||
38979 | ||
c32bde28 | 38980 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38981 | PyObject *resultobj; |
38982 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
38983 | int result; | |
38984 | PyObject * obj0 = 0 ; | |
38985 | char *kwnames[] = { | |
38986 | (char *) "self", NULL | |
38987 | }; | |
38988 | ||
38989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
38990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
38991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
38992 | { |
38993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38994 | result = (int)(arg1)->GetProportion(); | |
38995 | ||
38996 | wxPyEndAllowThreads(__tstate); | |
38997 | if (PyErr_Occurred()) SWIG_fail; | |
38998 | } | |
093d3ff1 RD |
38999 | { |
39000 | resultobj = SWIG_From_int((int)(result)); | |
39001 | } | |
d14a1e28 RD |
39002 | return resultobj; |
39003 | fail: | |
39004 | return NULL; | |
39005 | } | |
39006 | ||
39007 | ||
c32bde28 | 39008 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39009 | PyObject *resultobj; |
39010 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39011 | int arg2 ; | |
39012 | PyObject * obj0 = 0 ; | |
994141e6 | 39013 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39014 | char *kwnames[] = { |
39015 | (char *) "self",(char *) "flag", NULL | |
39016 | }; | |
39017 | ||
994141e6 | 39018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
39019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, 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 | } | |
d14a1e28 RD |
39025 | { |
39026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39027 | (arg1)->SetFlag(arg2); | |
39028 | ||
39029 | wxPyEndAllowThreads(__tstate); | |
39030 | if (PyErr_Occurred()) SWIG_fail; | |
39031 | } | |
39032 | Py_INCREF(Py_None); resultobj = Py_None; | |
39033 | return resultobj; | |
39034 | fail: | |
39035 | return NULL; | |
39036 | } | |
39037 | ||
39038 | ||
c32bde28 | 39039 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39040 | PyObject *resultobj; |
39041 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39042 | int result; | |
39043 | PyObject * obj0 = 0 ; | |
39044 | char *kwnames[] = { | |
39045 | (char *) "self", NULL | |
39046 | }; | |
39047 | ||
39048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39051 | { |
39052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39053 | result = (int)(arg1)->GetFlag(); | |
39054 | ||
39055 | wxPyEndAllowThreads(__tstate); | |
39056 | if (PyErr_Occurred()) SWIG_fail; | |
39057 | } | |
093d3ff1 RD |
39058 | { |
39059 | resultobj = SWIG_From_int((int)(result)); | |
39060 | } | |
d14a1e28 RD |
39061 | return resultobj; |
39062 | fail: | |
39063 | return NULL; | |
39064 | } | |
39065 | ||
39066 | ||
c32bde28 | 39067 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39068 | PyObject *resultobj; |
39069 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39070 | int arg2 ; | |
39071 | PyObject * obj0 = 0 ; | |
994141e6 | 39072 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39073 | char *kwnames[] = { |
39074 | (char *) "self",(char *) "border", NULL | |
39075 | }; | |
39076 | ||
994141e6 | 39077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
39078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39080 | { | |
39081 | arg2 = (int)(SWIG_As_int(obj1)); | |
39082 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39083 | } | |
d14a1e28 RD |
39084 | { |
39085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39086 | (arg1)->SetBorder(arg2); | |
39087 | ||
39088 | wxPyEndAllowThreads(__tstate); | |
39089 | if (PyErr_Occurred()) SWIG_fail; | |
39090 | } | |
39091 | Py_INCREF(Py_None); resultobj = Py_None; | |
39092 | return resultobj; | |
39093 | fail: | |
39094 | return NULL; | |
39095 | } | |
39096 | ||
39097 | ||
c32bde28 | 39098 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39099 | PyObject *resultobj; |
39100 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39101 | int result; | |
39102 | PyObject * obj0 = 0 ; | |
39103 | char *kwnames[] = { | |
39104 | (char *) "self", NULL | |
39105 | }; | |
39106 | ||
39107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39110 | { |
39111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39112 | result = (int)(arg1)->GetBorder(); | |
39113 | ||
39114 | wxPyEndAllowThreads(__tstate); | |
39115 | if (PyErr_Occurred()) SWIG_fail; | |
39116 | } | |
093d3ff1 RD |
39117 | { |
39118 | resultobj = SWIG_From_int((int)(result)); | |
39119 | } | |
d14a1e28 RD |
39120 | return resultobj; |
39121 | fail: | |
39122 | return NULL; | |
39123 | } | |
39124 | ||
39125 | ||
c32bde28 | 39126 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39127 | PyObject *resultobj; |
39128 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39129 | wxWindow *result; | |
39130 | PyObject * obj0 = 0 ; | |
39131 | char *kwnames[] = { | |
39132 | (char *) "self", NULL | |
39133 | }; | |
39134 | ||
39135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39138 | { |
39139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39140 | result = (wxWindow *)(arg1)->GetWindow(); | |
39141 | ||
39142 | wxPyEndAllowThreads(__tstate); | |
39143 | if (PyErr_Occurred()) SWIG_fail; | |
39144 | } | |
39145 | { | |
412d302d | 39146 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
39147 | } |
39148 | return resultobj; | |
39149 | fail: | |
39150 | return NULL; | |
39151 | } | |
39152 | ||
39153 | ||
c32bde28 | 39154 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39155 | PyObject *resultobj; |
39156 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39157 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39158 | PyObject * obj0 = 0 ; | |
39159 | PyObject * obj1 = 0 ; | |
39160 | char *kwnames[] = { | |
39161 | (char *) "self",(char *) "window", NULL | |
39162 | }; | |
39163 | ||
39164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39167 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
39168 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
39169 | { |
39170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39171 | (arg1)->SetWindow(arg2); | |
39172 | ||
39173 | wxPyEndAllowThreads(__tstate); | |
39174 | if (PyErr_Occurred()) SWIG_fail; | |
39175 | } | |
39176 | Py_INCREF(Py_None); resultobj = Py_None; | |
39177 | return resultobj; | |
39178 | fail: | |
39179 | return NULL; | |
39180 | } | |
39181 | ||
39182 | ||
c32bde28 | 39183 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39184 | PyObject *resultobj; |
39185 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39186 | wxSizer *result; | |
39187 | PyObject * obj0 = 0 ; | |
39188 | char *kwnames[] = { | |
39189 | (char *) "self", NULL | |
39190 | }; | |
39191 | ||
39192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39195 | { |
39196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39197 | result = (wxSizer *)(arg1)->GetSizer(); | |
39198 | ||
39199 | wxPyEndAllowThreads(__tstate); | |
39200 | if (PyErr_Occurred()) SWIG_fail; | |
39201 | } | |
39202 | { | |
412d302d | 39203 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
39204 | } |
39205 | return resultobj; | |
39206 | fail: | |
39207 | return NULL; | |
39208 | } | |
39209 | ||
39210 | ||
c32bde28 | 39211 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39212 | PyObject *resultobj; |
39213 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39214 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39215 | PyObject * obj0 = 0 ; | |
39216 | PyObject * obj1 = 0 ; | |
39217 | char *kwnames[] = { | |
39218 | (char *) "self",(char *) "sizer", NULL | |
39219 | }; | |
39220 | ||
39221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39222 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39223 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39224 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
39225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
39226 | { |
39227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39228 | (arg1)->SetSizer(arg2); | |
39229 | ||
39230 | wxPyEndAllowThreads(__tstate); | |
39231 | if (PyErr_Occurred()) SWIG_fail; | |
39232 | } | |
39233 | Py_INCREF(Py_None); resultobj = Py_None; | |
39234 | return resultobj; | |
39235 | fail: | |
39236 | return NULL; | |
39237 | } | |
39238 | ||
39239 | ||
c32bde28 | 39240 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39241 | PyObject *resultobj; |
39242 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39243 | wxSize *result; | |
39244 | PyObject * obj0 = 0 ; | |
39245 | char *kwnames[] = { | |
39246 | (char *) "self", NULL | |
39247 | }; | |
39248 | ||
39249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39252 | { |
39253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39254 | { | |
39255 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
39256 | result = (wxSize *) &_result_ref; | |
39257 | } | |
39258 | ||
39259 | wxPyEndAllowThreads(__tstate); | |
39260 | if (PyErr_Occurred()) SWIG_fail; | |
39261 | } | |
15afbcd0 | 39262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
39263 | return resultobj; |
39264 | fail: | |
39265 | return NULL; | |
39266 | } | |
39267 | ||
39268 | ||
c32bde28 | 39269 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39270 | PyObject *resultobj; |
39271 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39272 | wxSize *arg2 = 0 ; | |
39273 | wxSize temp2 ; | |
39274 | PyObject * obj0 = 0 ; | |
39275 | PyObject * obj1 = 0 ; | |
39276 | char *kwnames[] = { | |
39277 | (char *) "self",(char *) "size", NULL | |
39278 | }; | |
39279 | ||
39280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39283 | { |
39284 | arg2 = &temp2; | |
39285 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
39286 | } | |
39287 | { | |
39288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39289 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
39290 | ||
39291 | wxPyEndAllowThreads(__tstate); | |
39292 | if (PyErr_Occurred()) SWIG_fail; | |
39293 | } | |
39294 | Py_INCREF(Py_None); resultobj = Py_None; | |
39295 | return resultobj; | |
39296 | fail: | |
39297 | return NULL; | |
39298 | } | |
39299 | ||
39300 | ||
c32bde28 | 39301 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39302 | PyObject *resultobj; |
39303 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39304 | bool arg2 ; | |
39305 | PyObject * obj0 = 0 ; | |
39306 | PyObject * obj1 = 0 ; | |
39307 | char *kwnames[] = { | |
39308 | (char *) "self",(char *) "show", NULL | |
39309 | }; | |
39310 | ||
39311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39314 | { | |
39315 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
39316 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39317 | } | |
d14a1e28 RD |
39318 | { |
39319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39320 | (arg1)->Show(arg2); | |
39321 | ||
39322 | wxPyEndAllowThreads(__tstate); | |
39323 | if (PyErr_Occurred()) SWIG_fail; | |
39324 | } | |
39325 | Py_INCREF(Py_None); resultobj = Py_None; | |
39326 | return resultobj; | |
39327 | fail: | |
39328 | return NULL; | |
39329 | } | |
39330 | ||
39331 | ||
c32bde28 | 39332 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39333 | PyObject *resultobj; |
39334 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39335 | bool result; | |
39336 | PyObject * obj0 = 0 ; | |
39337 | char *kwnames[] = { | |
39338 | (char *) "self", NULL | |
39339 | }; | |
39340 | ||
39341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39344 | { |
39345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39346 | result = (bool)(arg1)->IsShown(); | |
39347 | ||
39348 | wxPyEndAllowThreads(__tstate); | |
39349 | if (PyErr_Occurred()) SWIG_fail; | |
39350 | } | |
4f89f6a3 RD |
39351 | { |
39352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39353 | } | |
d14a1e28 RD |
39354 | return resultobj; |
39355 | fail: | |
39356 | return NULL; | |
39357 | } | |
39358 | ||
39359 | ||
c32bde28 | 39360 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39361 | PyObject *resultobj; |
39362 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39363 | wxPoint result; | |
39364 | PyObject * obj0 = 0 ; | |
39365 | char *kwnames[] = { | |
39366 | (char *) "self", NULL | |
39367 | }; | |
39368 | ||
39369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39372 | { |
39373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39374 | result = (arg1)->GetPosition(); | |
39375 | ||
39376 | wxPyEndAllowThreads(__tstate); | |
39377 | if (PyErr_Occurred()) SWIG_fail; | |
39378 | } | |
39379 | { | |
39380 | wxPoint * resultptr; | |
093d3ff1 | 39381 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 39382 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
39383 | } |
39384 | return resultobj; | |
39385 | fail: | |
39386 | return NULL; | |
39387 | } | |
39388 | ||
39389 | ||
c32bde28 | 39390 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39391 | PyObject *resultobj; |
39392 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
39393 | PyObject *result; | |
39394 | PyObject * obj0 = 0 ; | |
39395 | char *kwnames[] = { | |
39396 | (char *) "self", NULL | |
39397 | }; | |
39398 | ||
39399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); |
39401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39402 | { |
39403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39404 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
39405 | ||
39406 | wxPyEndAllowThreads(__tstate); | |
39407 | if (PyErr_Occurred()) SWIG_fail; | |
39408 | } | |
39409 | resultobj = result; | |
39410 | return resultobj; | |
39411 | fail: | |
39412 | return NULL; | |
39413 | } | |
39414 | ||
39415 | ||
c32bde28 | 39416 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
39417 | PyObject *obj; |
39418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39419 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
39420 | Py_INCREF(obj); | |
39421 | return Py_BuildValue((char *)""); | |
39422 | } | |
c32bde28 | 39423 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39424 | PyObject *resultobj; |
39425 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39426 | PyObject *arg2 = (PyObject *) 0 ; | |
39427 | PyObject * obj0 = 0 ; | |
39428 | PyObject * obj1 = 0 ; | |
39429 | char *kwnames[] = { | |
39430 | (char *) "self",(char *) "_self", NULL | |
39431 | }; | |
39432 | ||
39433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39436 | arg2 = obj1; |
39437 | { | |
39438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39439 | wxSizer__setOORInfo(arg1,arg2); | |
39440 | ||
39441 | wxPyEndAllowThreads(__tstate); | |
39442 | if (PyErr_Occurred()) SWIG_fail; | |
39443 | } | |
39444 | Py_INCREF(Py_None); resultobj = Py_None; | |
39445 | return resultobj; | |
39446 | fail: | |
39447 | return NULL; | |
39448 | } | |
39449 | ||
39450 | ||
c32bde28 | 39451 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39452 | PyObject *resultobj; |
39453 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39454 | PyObject *arg2 = (PyObject *) 0 ; | |
39455 | int arg3 = (int) 0 ; | |
39456 | int arg4 = (int) 0 ; | |
39457 | int arg5 = (int) 0 ; | |
39458 | PyObject *arg6 = (PyObject *) NULL ; | |
d3b6e4ff | 39459 | wxSizerItem *result; |
d14a1e28 RD |
39460 | PyObject * obj0 = 0 ; |
39461 | PyObject * obj1 = 0 ; | |
994141e6 RD |
39462 | PyObject * obj2 = 0 ; |
39463 | PyObject * obj3 = 0 ; | |
39464 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
39465 | PyObject * obj5 = 0 ; |
39466 | char *kwnames[] = { | |
39467 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
39468 | }; | |
39469 | ||
994141e6 | 39470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
39471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 39473 | arg2 = obj1; |
994141e6 | 39474 | if (obj2) { |
093d3ff1 RD |
39475 | { |
39476 | arg3 = (int)(SWIG_As_int(obj2)); | |
39477 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39478 | } | |
994141e6 RD |
39479 | } |
39480 | if (obj3) { | |
093d3ff1 RD |
39481 | { |
39482 | arg4 = (int)(SWIG_As_int(obj3)); | |
39483 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39484 | } | |
994141e6 RD |
39485 | } |
39486 | if (obj4) { | |
093d3ff1 RD |
39487 | { |
39488 | arg5 = (int)(SWIG_As_int(obj4)); | |
39489 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39490 | } | |
994141e6 | 39491 | } |
d14a1e28 RD |
39492 | if (obj5) { |
39493 | arg6 = obj5; | |
39494 | } | |
39495 | { | |
39496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 39497 | result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
39498 | |
39499 | wxPyEndAllowThreads(__tstate); | |
39500 | if (PyErr_Occurred()) SWIG_fail; | |
39501 | } | |
d3b6e4ff | 39502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
39503 | return resultobj; |
39504 | fail: | |
39505 | return NULL; | |
39506 | } | |
39507 | ||
39508 | ||
c32bde28 | 39509 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39510 | PyObject *resultobj; |
39511 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39512 | int arg2 ; | |
39513 | PyObject *arg3 = (PyObject *) 0 ; | |
39514 | int arg4 = (int) 0 ; | |
39515 | int arg5 = (int) 0 ; | |
39516 | int arg6 = (int) 0 ; | |
39517 | PyObject *arg7 = (PyObject *) NULL ; | |
d3b6e4ff | 39518 | wxSizerItem *result; |
d14a1e28 | 39519 | PyObject * obj0 = 0 ; |
994141e6 | 39520 | PyObject * obj1 = 0 ; |
d14a1e28 | 39521 | PyObject * obj2 = 0 ; |
994141e6 RD |
39522 | PyObject * obj3 = 0 ; |
39523 | PyObject * obj4 = 0 ; | |
39524 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
39525 | PyObject * obj6 = 0 ; |
39526 | char *kwnames[] = { | |
39527 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
39528 | }; | |
39529 | ||
994141e6 | 39530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
39531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39533 | { | |
39534 | arg2 = (int)(SWIG_As_int(obj1)); | |
39535 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39536 | } | |
d14a1e28 | 39537 | arg3 = obj2; |
994141e6 | 39538 | if (obj3) { |
093d3ff1 RD |
39539 | { |
39540 | arg4 = (int)(SWIG_As_int(obj3)); | |
39541 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39542 | } | |
994141e6 RD |
39543 | } |
39544 | if (obj4) { | |
093d3ff1 RD |
39545 | { |
39546 | arg5 = (int)(SWIG_As_int(obj4)); | |
39547 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39548 | } | |
994141e6 RD |
39549 | } |
39550 | if (obj5) { | |
093d3ff1 RD |
39551 | { |
39552 | arg6 = (int)(SWIG_As_int(obj5)); | |
39553 | if (SWIG_arg_fail(6)) SWIG_fail; | |
39554 | } | |
994141e6 | 39555 | } |
d14a1e28 RD |
39556 | if (obj6) { |
39557 | arg7 = obj6; | |
39558 | } | |
39559 | { | |
39560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 39561 | result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d14a1e28 RD |
39562 | |
39563 | wxPyEndAllowThreads(__tstate); | |
39564 | if (PyErr_Occurred()) SWIG_fail; | |
39565 | } | |
d3b6e4ff | 39566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
39567 | return resultobj; |
39568 | fail: | |
39569 | return NULL; | |
39570 | } | |
39571 | ||
39572 | ||
c32bde28 | 39573 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39574 | PyObject *resultobj; |
39575 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39576 | PyObject *arg2 = (PyObject *) 0 ; | |
39577 | int arg3 = (int) 0 ; | |
39578 | int arg4 = (int) 0 ; | |
39579 | int arg5 = (int) 0 ; | |
39580 | PyObject *arg6 = (PyObject *) NULL ; | |
d3b6e4ff | 39581 | wxSizerItem *result; |
d14a1e28 RD |
39582 | PyObject * obj0 = 0 ; |
39583 | PyObject * obj1 = 0 ; | |
994141e6 RD |
39584 | PyObject * obj2 = 0 ; |
39585 | PyObject * obj3 = 0 ; | |
39586 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
39587 | PyObject * obj5 = 0 ; |
39588 | char *kwnames[] = { | |
39589 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
39590 | }; | |
39591 | ||
994141e6 | 39592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
39593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 39595 | arg2 = obj1; |
994141e6 | 39596 | if (obj2) { |
093d3ff1 RD |
39597 | { |
39598 | arg3 = (int)(SWIG_As_int(obj2)); | |
39599 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39600 | } | |
994141e6 RD |
39601 | } |
39602 | if (obj3) { | |
093d3ff1 RD |
39603 | { |
39604 | arg4 = (int)(SWIG_As_int(obj3)); | |
39605 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39606 | } | |
994141e6 RD |
39607 | } |
39608 | if (obj4) { | |
093d3ff1 RD |
39609 | { |
39610 | arg5 = (int)(SWIG_As_int(obj4)); | |
39611 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39612 | } | |
994141e6 | 39613 | } |
d14a1e28 RD |
39614 | if (obj5) { |
39615 | arg6 = obj5; | |
39616 | } | |
39617 | { | |
39618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 39619 | result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
39620 | |
39621 | wxPyEndAllowThreads(__tstate); | |
39622 | if (PyErr_Occurred()) SWIG_fail; | |
39623 | } | |
d3b6e4ff | 39624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
39625 | return resultobj; |
39626 | fail: | |
39627 | return NULL; | |
39628 | } | |
39629 | ||
39630 | ||
c32bde28 | 39631 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39632 | PyObject *resultobj; |
39633 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39634 | PyObject *arg2 = (PyObject *) 0 ; | |
39635 | bool result; | |
39636 | PyObject * obj0 = 0 ; | |
39637 | PyObject * obj1 = 0 ; | |
39638 | char *kwnames[] = { | |
39639 | (char *) "self",(char *) "item", NULL | |
39640 | }; | |
39641 | ||
39642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39645 | arg2 = obj1; |
39646 | { | |
39647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39648 | result = (bool)wxSizer_Remove(arg1,arg2); | |
39649 | ||
39650 | wxPyEndAllowThreads(__tstate); | |
39651 | if (PyErr_Occurred()) SWIG_fail; | |
39652 | } | |
4f89f6a3 RD |
39653 | { |
39654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39655 | } | |
d14a1e28 RD |
39656 | return resultobj; |
39657 | fail: | |
39658 | return NULL; | |
39659 | } | |
39660 | ||
39661 | ||
c32bde28 | 39662 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1c0f361b RD |
39663 | PyObject *resultobj; |
39664 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39665 | PyObject *arg2 = (PyObject *) 0 ; | |
39666 | bool result; | |
39667 | PyObject * obj0 = 0 ; | |
39668 | PyObject * obj1 = 0 ; | |
39669 | char *kwnames[] = { | |
39670 | (char *) "self",(char *) "item", NULL | |
39671 | }; | |
39672 | ||
39673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1c0f361b RD |
39676 | arg2 = obj1; |
39677 | { | |
39678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39679 | result = (bool)wxSizer_Detach(arg1,arg2); | |
39680 | ||
39681 | wxPyEndAllowThreads(__tstate); | |
39682 | if (PyErr_Occurred()) SWIG_fail; | |
39683 | } | |
39684 | { | |
39685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39686 | } | |
39687 | return resultobj; | |
39688 | fail: | |
39689 | return NULL; | |
39690 | } | |
39691 | ||
39692 | ||
d3b6e4ff RD |
39693 | static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
39694 | PyObject *resultobj; | |
39695 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39696 | PyObject *arg2 = (PyObject *) 0 ; | |
39697 | wxSizerItem *result; | |
39698 | PyObject * obj0 = 0 ; | |
39699 | PyObject * obj1 = 0 ; | |
39700 | char *kwnames[] = { | |
39701 | (char *) "self",(char *) "item", NULL | |
39702 | }; | |
39703 | ||
39704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d3b6e4ff RD |
39707 | arg2 = obj1; |
39708 | { | |
39709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39710 | result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2); | |
39711 | ||
39712 | wxPyEndAllowThreads(__tstate); | |
39713 | if (PyErr_Occurred()) SWIG_fail; | |
39714 | } | |
39715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); | |
39716 | return resultobj; | |
39717 | fail: | |
39718 | return NULL; | |
39719 | } | |
39720 | ||
39721 | ||
c32bde28 | 39722 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39723 | PyObject *resultobj; |
39724 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39725 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce RD |
39726 | wxSize *arg3 = 0 ; |
39727 | wxSize temp3 ; | |
d14a1e28 RD |
39728 | PyObject * obj0 = 0 ; |
39729 | PyObject * obj1 = 0 ; | |
39730 | PyObject * obj2 = 0 ; | |
39731 | char *kwnames[] = { | |
39732 | (char *) "self",(char *) "item",(char *) "size", NULL | |
39733 | }; | |
39734 | ||
39735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
39736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 39738 | arg2 = obj1; |
e811c8ce RD |
39739 | { |
39740 | arg3 = &temp3; | |
39741 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
39742 | } | |
d14a1e28 RD |
39743 | { |
39744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 39745 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
39746 | |
39747 | wxPyEndAllowThreads(__tstate); | |
39748 | if (PyErr_Occurred()) SWIG_fail; | |
39749 | } | |
39750 | Py_INCREF(Py_None); resultobj = Py_None; | |
39751 | return resultobj; | |
39752 | fail: | |
39753 | return NULL; | |
39754 | } | |
39755 | ||
39756 | ||
c32bde28 | 39757 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39758 | PyObject *resultobj; |
39759 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39760 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
d3b6e4ff | 39761 | wxSizerItem *result; |
d14a1e28 RD |
39762 | PyObject * obj0 = 0 ; |
39763 | PyObject * obj1 = 0 ; | |
39764 | char *kwnames[] = { | |
39765 | (char *) "self",(char *) "item", NULL | |
39766 | }; | |
39767 | ||
39768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39771 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
39772 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
39773 | { |
39774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 39775 | result = (wxSizerItem *)(arg1)->Add(arg2); |
d14a1e28 RD |
39776 | |
39777 | wxPyEndAllowThreads(__tstate); | |
39778 | if (PyErr_Occurred()) SWIG_fail; | |
39779 | } | |
d3b6e4ff | 39780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
39781 | return resultobj; |
39782 | fail: | |
39783 | return NULL; | |
39784 | } | |
39785 | ||
39786 | ||
c32bde28 | 39787 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39788 | PyObject *resultobj; |
39789 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39790 | size_t arg2 ; | |
39791 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
d3b6e4ff | 39792 | wxSizerItem *result; |
d14a1e28 RD |
39793 | PyObject * obj0 = 0 ; |
39794 | PyObject * obj1 = 0 ; | |
39795 | PyObject * obj2 = 0 ; | |
39796 | char *kwnames[] = { | |
39797 | (char *) "self",(char *) "index",(char *) "item", NULL | |
39798 | }; | |
39799 | ||
39800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
39801 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39802 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39803 | { | |
39804 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
39805 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39806 | } | |
39807 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
39808 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
39809 | { |
39810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 39811 | result = (wxSizerItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
39812 | |
39813 | wxPyEndAllowThreads(__tstate); | |
39814 | if (PyErr_Occurred()) SWIG_fail; | |
39815 | } | |
d3b6e4ff | 39816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
39817 | return resultobj; |
39818 | fail: | |
39819 | return NULL; | |
39820 | } | |
39821 | ||
39822 | ||
c32bde28 | 39823 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39824 | PyObject *resultobj; |
39825 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39826 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
d3b6e4ff | 39827 | wxSizerItem *result; |
d14a1e28 RD |
39828 | PyObject * obj0 = 0 ; |
39829 | PyObject * obj1 = 0 ; | |
39830 | char *kwnames[] = { | |
39831 | (char *) "self",(char *) "item", NULL | |
39832 | }; | |
39833 | ||
39834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39837 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
39838 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
39839 | { |
39840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 39841 | result = (wxSizerItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
39842 | |
39843 | wxPyEndAllowThreads(__tstate); | |
39844 | if (PyErr_Occurred()) SWIG_fail; | |
39845 | } | |
d3b6e4ff | 39846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d14a1e28 RD |
39847 | return resultobj; |
39848 | fail: | |
39849 | return NULL; | |
39850 | } | |
39851 | ||
39852 | ||
c32bde28 | 39853 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39854 | PyObject *resultobj; |
39855 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39856 | int arg2 ; | |
39857 | int arg3 ; | |
39858 | int arg4 ; | |
39859 | int arg5 ; | |
39860 | PyObject * obj0 = 0 ; | |
994141e6 RD |
39861 | PyObject * obj1 = 0 ; |
39862 | PyObject * obj2 = 0 ; | |
39863 | PyObject * obj3 = 0 ; | |
39864 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
39865 | char *kwnames[] = { |
39866 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
39867 | }; | |
39868 | ||
994141e6 | 39869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
39870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
39872 | { | |
39873 | arg2 = (int)(SWIG_As_int(obj1)); | |
39874 | if (SWIG_arg_fail(2)) SWIG_fail; | |
39875 | } | |
39876 | { | |
39877 | arg3 = (int)(SWIG_As_int(obj2)); | |
39878 | if (SWIG_arg_fail(3)) SWIG_fail; | |
39879 | } | |
39880 | { | |
39881 | arg4 = (int)(SWIG_As_int(obj3)); | |
39882 | if (SWIG_arg_fail(4)) SWIG_fail; | |
39883 | } | |
39884 | { | |
39885 | arg5 = (int)(SWIG_As_int(obj4)); | |
39886 | if (SWIG_arg_fail(5)) SWIG_fail; | |
39887 | } | |
d14a1e28 RD |
39888 | { |
39889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39890 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
39891 | ||
39892 | wxPyEndAllowThreads(__tstate); | |
39893 | if (PyErr_Occurred()) SWIG_fail; | |
39894 | } | |
39895 | Py_INCREF(Py_None); resultobj = Py_None; | |
39896 | return resultobj; | |
39897 | fail: | |
39898 | return NULL; | |
39899 | } | |
39900 | ||
39901 | ||
c32bde28 | 39902 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39903 | PyObject *resultobj; |
39904 | wxSizer *arg1 = (wxSizer *) 0 ; | |
1fc9204a RD |
39905 | wxSize *arg2 = 0 ; |
39906 | wxSize temp2 ; | |
d14a1e28 RD |
39907 | PyObject * obj0 = 0 ; |
39908 | PyObject * obj1 = 0 ; | |
39909 | char *kwnames[] = { | |
39910 | (char *) "self",(char *) "size", NULL | |
39911 | }; | |
39912 | ||
39913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
39914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1fc9204a RD |
39916 | { |
39917 | arg2 = &temp2; | |
39918 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
39919 | } | |
d14a1e28 RD |
39920 | { |
39921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fc9204a | 39922 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
39923 | |
39924 | wxPyEndAllowThreads(__tstate); | |
39925 | if (PyErr_Occurred()) SWIG_fail; | |
39926 | } | |
39927 | Py_INCREF(Py_None); resultobj = Py_None; | |
39928 | return resultobj; | |
39929 | fail: | |
39930 | return NULL; | |
39931 | } | |
39932 | ||
39933 | ||
c32bde28 | 39934 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39935 | PyObject *resultobj; |
39936 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39937 | wxSize result; | |
39938 | PyObject * obj0 = 0 ; | |
39939 | char *kwnames[] = { | |
39940 | (char *) "self", NULL | |
39941 | }; | |
39942 | ||
39943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39946 | { |
39947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39948 | result = (arg1)->GetSize(); | |
39949 | ||
39950 | wxPyEndAllowThreads(__tstate); | |
39951 | if (PyErr_Occurred()) SWIG_fail; | |
39952 | } | |
39953 | { | |
39954 | wxSize * resultptr; | |
093d3ff1 | 39955 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 39956 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
39957 | } |
39958 | return resultobj; | |
39959 | fail: | |
39960 | return NULL; | |
39961 | } | |
39962 | ||
39963 | ||
c32bde28 | 39964 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39965 | PyObject *resultobj; |
39966 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39967 | wxPoint result; | |
39968 | PyObject * obj0 = 0 ; | |
39969 | char *kwnames[] = { | |
39970 | (char *) "self", NULL | |
39971 | }; | |
39972 | ||
39973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
39974 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
39975 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
39976 | { |
39977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39978 | result = (arg1)->GetPosition(); | |
39979 | ||
39980 | wxPyEndAllowThreads(__tstate); | |
39981 | if (PyErr_Occurred()) SWIG_fail; | |
39982 | } | |
39983 | { | |
39984 | wxPoint * resultptr; | |
093d3ff1 | 39985 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 39986 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
39987 | } |
39988 | return resultobj; | |
39989 | fail: | |
39990 | return NULL; | |
39991 | } | |
39992 | ||
39993 | ||
c32bde28 | 39994 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
39995 | PyObject *resultobj; |
39996 | wxSizer *arg1 = (wxSizer *) 0 ; | |
39997 | wxSize result; | |
39998 | PyObject * obj0 = 0 ; | |
39999 | char *kwnames[] = { | |
40000 | (char *) "self", NULL | |
40001 | }; | |
40002 | ||
40003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40006 | { |
40007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40008 | result = (arg1)->GetMinSize(); | |
40009 | ||
40010 | wxPyEndAllowThreads(__tstate); | |
40011 | if (PyErr_Occurred()) SWIG_fail; | |
40012 | } | |
40013 | { | |
40014 | wxSize * resultptr; | |
093d3ff1 | 40015 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 40016 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
40017 | } |
40018 | return resultobj; | |
40019 | fail: | |
40020 | return NULL; | |
40021 | } | |
40022 | ||
40023 | ||
c32bde28 | 40024 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40025 | PyObject *resultobj; |
40026 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40027 | PyObject * obj0 = 0 ; | |
40028 | char *kwnames[] = { | |
40029 | (char *) "self", NULL | |
40030 | }; | |
40031 | ||
40032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40035 | { |
40036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40037 | (arg1)->RecalcSizes(); | |
40038 | ||
40039 | wxPyEndAllowThreads(__tstate); | |
40040 | if (PyErr_Occurred()) SWIG_fail; | |
40041 | } | |
40042 | Py_INCREF(Py_None); resultobj = Py_None; | |
40043 | return resultobj; | |
40044 | fail: | |
40045 | return NULL; | |
40046 | } | |
40047 | ||
40048 | ||
c32bde28 | 40049 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40050 | PyObject *resultobj; |
40051 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40052 | wxSize result; | |
40053 | PyObject * obj0 = 0 ; | |
40054 | char *kwnames[] = { | |
40055 | (char *) "self", NULL | |
40056 | }; | |
40057 | ||
40058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40061 | { |
40062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40063 | result = (arg1)->CalcMin(); | |
40064 | ||
40065 | wxPyEndAllowThreads(__tstate); | |
40066 | if (PyErr_Occurred()) SWIG_fail; | |
40067 | } | |
40068 | { | |
40069 | wxSize * resultptr; | |
093d3ff1 | 40070 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 40071 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
40072 | } |
40073 | return resultobj; | |
40074 | fail: | |
40075 | return NULL; | |
40076 | } | |
40077 | ||
40078 | ||
c32bde28 | 40079 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40080 | PyObject *resultobj; |
40081 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40082 | PyObject * obj0 = 0 ; | |
40083 | char *kwnames[] = { | |
40084 | (char *) "self", NULL | |
40085 | }; | |
40086 | ||
40087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40088 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40089 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40090 | { |
40091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40092 | (arg1)->Layout(); | |
40093 | ||
40094 | wxPyEndAllowThreads(__tstate); | |
40095 | if (PyErr_Occurred()) SWIG_fail; | |
40096 | } | |
40097 | Py_INCREF(Py_None); resultobj = Py_None; | |
40098 | return resultobj; | |
40099 | fail: | |
40100 | return NULL; | |
40101 | } | |
40102 | ||
40103 | ||
c32bde28 | 40104 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40105 | PyObject *resultobj; |
40106 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40107 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40108 | wxSize result; | |
40109 | PyObject * obj0 = 0 ; | |
40110 | PyObject * obj1 = 0 ; | |
40111 | char *kwnames[] = { | |
40112 | (char *) "self",(char *) "window", NULL | |
40113 | }; | |
40114 | ||
40115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40116 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40117 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40118 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
40119 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
40120 | { |
40121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40122 | result = (arg1)->Fit(arg2); | |
40123 | ||
40124 | wxPyEndAllowThreads(__tstate); | |
40125 | if (PyErr_Occurred()) SWIG_fail; | |
40126 | } | |
40127 | { | |
40128 | wxSize * resultptr; | |
093d3ff1 | 40129 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 40130 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
40131 | } |
40132 | return resultobj; | |
40133 | fail: | |
40134 | return NULL; | |
40135 | } | |
40136 | ||
40137 | ||
c32bde28 | 40138 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40139 | PyObject *resultobj; |
40140 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40141 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40142 | PyObject * obj0 = 0 ; | |
40143 | PyObject * obj1 = 0 ; | |
40144 | char *kwnames[] = { | |
40145 | (char *) "self",(char *) "window", NULL | |
40146 | }; | |
40147 | ||
40148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40151 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
40152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
40153 | { |
40154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40155 | (arg1)->FitInside(arg2); | |
40156 | ||
40157 | wxPyEndAllowThreads(__tstate); | |
40158 | if (PyErr_Occurred()) SWIG_fail; | |
40159 | } | |
40160 | Py_INCREF(Py_None); resultobj = Py_None; | |
40161 | return resultobj; | |
40162 | fail: | |
40163 | return NULL; | |
40164 | } | |
40165 | ||
40166 | ||
c32bde28 | 40167 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40168 | PyObject *resultobj; |
40169 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40170 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40171 | PyObject * obj0 = 0 ; | |
40172 | PyObject * obj1 = 0 ; | |
40173 | char *kwnames[] = { | |
40174 | (char *) "self",(char *) "window", NULL | |
40175 | }; | |
40176 | ||
40177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40180 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
40181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
40182 | { |
40183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40184 | (arg1)->SetSizeHints(arg2); | |
40185 | ||
40186 | wxPyEndAllowThreads(__tstate); | |
40187 | if (PyErr_Occurred()) SWIG_fail; | |
40188 | } | |
40189 | Py_INCREF(Py_None); resultobj = Py_None; | |
40190 | return resultobj; | |
40191 | fail: | |
40192 | return NULL; | |
40193 | } | |
40194 | ||
40195 | ||
c32bde28 | 40196 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40197 | PyObject *resultobj; |
40198 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40199 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40200 | PyObject * obj0 = 0 ; | |
40201 | PyObject * obj1 = 0 ; | |
40202 | char *kwnames[] = { | |
40203 | (char *) "self",(char *) "window", NULL | |
40204 | }; | |
40205 | ||
40206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40209 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
40210 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
40211 | { |
40212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40213 | (arg1)->SetVirtualSizeHints(arg2); | |
40214 | ||
40215 | wxPyEndAllowThreads(__tstate); | |
40216 | if (PyErr_Occurred()) SWIG_fail; | |
40217 | } | |
40218 | Py_INCREF(Py_None); resultobj = Py_None; | |
40219 | return resultobj; | |
40220 | fail: | |
40221 | return NULL; | |
40222 | } | |
40223 | ||
40224 | ||
c32bde28 | 40225 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40226 | PyObject *resultobj; |
40227 | wxSizer *arg1 = (wxSizer *) 0 ; | |
ae8162c8 | 40228 | bool arg2 = (bool) false ; |
d14a1e28 RD |
40229 | PyObject * obj0 = 0 ; |
40230 | PyObject * obj1 = 0 ; | |
40231 | char *kwnames[] = { | |
248ed943 | 40232 | (char *) "self",(char *) "deleteWindows", NULL |
d14a1e28 RD |
40233 | }; |
40234 | ||
40235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 40238 | if (obj1) { |
093d3ff1 RD |
40239 | { |
40240 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
40241 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40242 | } | |
d14a1e28 RD |
40243 | } |
40244 | { | |
40245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40246 | (arg1)->Clear(arg2); | |
40247 | ||
40248 | wxPyEndAllowThreads(__tstate); | |
40249 | if (PyErr_Occurred()) SWIG_fail; | |
40250 | } | |
40251 | Py_INCREF(Py_None); resultobj = Py_None; | |
40252 | return resultobj; | |
40253 | fail: | |
40254 | return NULL; | |
40255 | } | |
40256 | ||
40257 | ||
c32bde28 | 40258 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40259 | PyObject *resultobj; |
40260 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40261 | PyObject * obj0 = 0 ; | |
40262 | char *kwnames[] = { | |
40263 | (char *) "self", NULL | |
40264 | }; | |
40265 | ||
40266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40269 | { |
40270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40271 | (arg1)->DeleteWindows(); | |
40272 | ||
40273 | wxPyEndAllowThreads(__tstate); | |
40274 | if (PyErr_Occurred()) SWIG_fail; | |
40275 | } | |
40276 | Py_INCREF(Py_None); resultobj = Py_None; | |
40277 | return resultobj; | |
40278 | fail: | |
40279 | return NULL; | |
40280 | } | |
40281 | ||
40282 | ||
c32bde28 | 40283 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40284 | PyObject *resultobj; |
40285 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40286 | PyObject *result; | |
40287 | PyObject * obj0 = 0 ; | |
40288 | char *kwnames[] = { | |
40289 | (char *) "self", NULL | |
40290 | }; | |
40291 | ||
40292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40295 | { |
40296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40297 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
40298 | ||
40299 | wxPyEndAllowThreads(__tstate); | |
40300 | if (PyErr_Occurred()) SWIG_fail; | |
40301 | } | |
40302 | resultobj = result; | |
40303 | return resultobj; | |
40304 | fail: | |
40305 | return NULL; | |
40306 | } | |
40307 | ||
40308 | ||
c32bde28 | 40309 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40310 | PyObject *resultobj; |
40311 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40312 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 RD |
40313 | bool arg3 = (bool) true ; |
40314 | bool arg4 = (bool) false ; | |
7e63a440 | 40315 | bool result; |
d14a1e28 RD |
40316 | PyObject * obj0 = 0 ; |
40317 | PyObject * obj1 = 0 ; | |
40318 | PyObject * obj2 = 0 ; | |
7e63a440 | 40319 | PyObject * obj3 = 0 ; |
d14a1e28 | 40320 | char *kwnames[] = { |
7e63a440 | 40321 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d14a1e28 RD |
40322 | }; |
40323 | ||
7e63a440 | 40324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
40325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40327 | arg2 = obj1; |
40328 | if (obj2) { | |
093d3ff1 RD |
40329 | { |
40330 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
40331 | if (SWIG_arg_fail(3)) SWIG_fail; | |
40332 | } | |
d14a1e28 | 40333 | } |
7e63a440 | 40334 | if (obj3) { |
093d3ff1 RD |
40335 | { |
40336 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
40337 | if (SWIG_arg_fail(4)) SWIG_fail; | |
40338 | } | |
7e63a440 | 40339 | } |
d14a1e28 RD |
40340 | { |
40341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e63a440 | 40342 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
40343 | |
40344 | wxPyEndAllowThreads(__tstate); | |
40345 | if (PyErr_Occurred()) SWIG_fail; | |
40346 | } | |
7e63a440 RD |
40347 | { |
40348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40349 | } | |
d14a1e28 RD |
40350 | return resultobj; |
40351 | fail: | |
40352 | return NULL; | |
40353 | } | |
40354 | ||
40355 | ||
c32bde28 | 40356 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40357 | PyObject *resultobj; |
40358 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40359 | PyObject *arg2 = (PyObject *) 0 ; | |
40360 | bool result; | |
40361 | PyObject * obj0 = 0 ; | |
40362 | PyObject * obj1 = 0 ; | |
40363 | char *kwnames[] = { | |
40364 | (char *) "self",(char *) "item", NULL | |
40365 | }; | |
40366 | ||
40367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40370 | arg2 = obj1; |
40371 | { | |
40372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40373 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
40374 | ||
40375 | wxPyEndAllowThreads(__tstate); | |
40376 | if (PyErr_Occurred()) SWIG_fail; | |
40377 | } | |
4f89f6a3 RD |
40378 | { |
40379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40380 | } | |
d14a1e28 RD |
40381 | return resultobj; |
40382 | fail: | |
40383 | return NULL; | |
40384 | } | |
40385 | ||
40386 | ||
c32bde28 | 40387 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40388 | PyObject *resultobj; |
40389 | wxSizer *arg1 = (wxSizer *) 0 ; | |
40390 | bool arg2 ; | |
40391 | PyObject * obj0 = 0 ; | |
40392 | PyObject * obj1 = 0 ; | |
40393 | char *kwnames[] = { | |
40394 | (char *) "self",(char *) "show", NULL | |
40395 | }; | |
40396 | ||
40397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
40398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
40399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40400 | { | |
40401 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
40402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40403 | } | |
d14a1e28 RD |
40404 | { |
40405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40406 | (arg1)->ShowItems(arg2); | |
40407 | ||
40408 | wxPyEndAllowThreads(__tstate); | |
40409 | if (PyErr_Occurred()) SWIG_fail; | |
40410 | } | |
40411 | Py_INCREF(Py_None); resultobj = Py_None; | |
40412 | return resultobj; | |
40413 | fail: | |
40414 | return NULL; | |
40415 | } | |
40416 | ||
40417 | ||
c32bde28 | 40418 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
40419 | PyObject *obj; |
40420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40421 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
40422 | Py_INCREF(obj); | |
40423 | return Py_BuildValue((char *)""); | |
40424 | } | |
c32bde28 | 40425 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40426 | PyObject *resultobj; |
40427 | wxPySizer *result; | |
40428 | char *kwnames[] = { | |
40429 | NULL | |
40430 | }; | |
40431 | ||
40432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
40433 | { | |
40434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40435 | result = (wxPySizer *)new wxPySizer(); | |
40436 | ||
40437 | wxPyEndAllowThreads(__tstate); | |
40438 | if (PyErr_Occurred()) SWIG_fail; | |
40439 | } | |
15afbcd0 | 40440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
40441 | return resultobj; |
40442 | fail: | |
40443 | return NULL; | |
40444 | } | |
40445 | ||
40446 | ||
c32bde28 | 40447 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40448 | PyObject *resultobj; |
40449 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
40450 | PyObject *arg2 = (PyObject *) 0 ; | |
40451 | PyObject *arg3 = (PyObject *) 0 ; | |
40452 | PyObject * obj0 = 0 ; | |
40453 | PyObject * obj1 = 0 ; | |
40454 | PyObject * obj2 = 0 ; | |
40455 | char *kwnames[] = { | |
40456 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
40457 | }; | |
40458 | ||
40459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
40460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPySizer, SWIG_POINTER_EXCEPTION | 0); |
40461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40462 | arg2 = obj1; |
40463 | arg3 = obj2; | |
40464 | { | |
40465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40466 | (arg1)->_setCallbackInfo(arg2,arg3); | |
40467 | ||
40468 | wxPyEndAllowThreads(__tstate); | |
40469 | if (PyErr_Occurred()) SWIG_fail; | |
40470 | } | |
40471 | Py_INCREF(Py_None); resultobj = Py_None; | |
40472 | return resultobj; | |
40473 | fail: | |
40474 | return NULL; | |
40475 | } | |
40476 | ||
40477 | ||
c32bde28 | 40478 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
40479 | PyObject *obj; |
40480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40481 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
40482 | Py_INCREF(obj); | |
40483 | return Py_BuildValue((char *)""); | |
40484 | } | |
c32bde28 | 40485 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40486 | PyObject *resultobj; |
40487 | int arg1 = (int) wxHORIZONTAL ; | |
40488 | wxBoxSizer *result; | |
994141e6 | 40489 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
40490 | char *kwnames[] = { |
40491 | (char *) "orient", NULL | |
40492 | }; | |
40493 | ||
994141e6 RD |
40494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
40495 | if (obj0) { | |
093d3ff1 RD |
40496 | { |
40497 | arg1 = (int)(SWIG_As_int(obj0)); | |
40498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40499 | } | |
994141e6 | 40500 | } |
d14a1e28 RD |
40501 | { |
40502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40503 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
40504 | ||
40505 | wxPyEndAllowThreads(__tstate); | |
40506 | if (PyErr_Occurred()) SWIG_fail; | |
40507 | } | |
15afbcd0 | 40508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
40509 | return resultobj; |
40510 | fail: | |
40511 | return NULL; | |
40512 | } | |
40513 | ||
40514 | ||
c32bde28 | 40515 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40516 | PyObject *resultobj; |
40517 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
40518 | int result; | |
40519 | PyObject * obj0 = 0 ; | |
40520 | char *kwnames[] = { | |
40521 | (char *) "self", NULL | |
40522 | }; | |
40523 | ||
40524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40525 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
40526 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40527 | { |
40528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40529 | result = (int)(arg1)->GetOrientation(); | |
40530 | ||
40531 | wxPyEndAllowThreads(__tstate); | |
40532 | if (PyErr_Occurred()) SWIG_fail; | |
40533 | } | |
093d3ff1 RD |
40534 | { |
40535 | resultobj = SWIG_From_int((int)(result)); | |
40536 | } | |
d14a1e28 RD |
40537 | return resultobj; |
40538 | fail: | |
40539 | return NULL; | |
40540 | } | |
40541 | ||
40542 | ||
c32bde28 | 40543 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40544 | PyObject *resultobj; |
40545 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
40546 | int arg2 ; | |
40547 | PyObject * obj0 = 0 ; | |
994141e6 | 40548 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40549 | char *kwnames[] = { |
40550 | (char *) "self",(char *) "orient", NULL | |
40551 | }; | |
40552 | ||
994141e6 | 40553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
40554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
40555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40556 | { | |
40557 | arg2 = (int)(SWIG_As_int(obj1)); | |
40558 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40559 | } | |
d14a1e28 RD |
40560 | { |
40561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40562 | (arg1)->SetOrientation(arg2); | |
40563 | ||
40564 | wxPyEndAllowThreads(__tstate); | |
40565 | if (PyErr_Occurred()) SWIG_fail; | |
40566 | } | |
40567 | Py_INCREF(Py_None); resultobj = Py_None; | |
40568 | return resultobj; | |
40569 | fail: | |
40570 | return NULL; | |
40571 | } | |
40572 | ||
40573 | ||
c32bde28 | 40574 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
40575 | PyObject *obj; |
40576 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40577 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
40578 | Py_INCREF(obj); | |
40579 | return Py_BuildValue((char *)""); | |
40580 | } | |
c32bde28 | 40581 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40582 | PyObject *resultobj; |
40583 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
40584 | int arg2 = (int) wxHORIZONTAL ; | |
40585 | wxStaticBoxSizer *result; | |
40586 | PyObject * obj0 = 0 ; | |
994141e6 | 40587 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40588 | char *kwnames[] = { |
40589 | (char *) "box",(char *) "orient", NULL | |
40590 | }; | |
40591 | ||
994141e6 | 40592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
40593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
40594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 40595 | if (obj1) { |
093d3ff1 RD |
40596 | { |
40597 | arg2 = (int)(SWIG_As_int(obj1)); | |
40598 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40599 | } | |
994141e6 | 40600 | } |
d14a1e28 RD |
40601 | { |
40602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40603 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
40604 | ||
40605 | wxPyEndAllowThreads(__tstate); | |
40606 | if (PyErr_Occurred()) SWIG_fail; | |
40607 | } | |
15afbcd0 | 40608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
40609 | return resultobj; |
40610 | fail: | |
40611 | return NULL; | |
40612 | } | |
40613 | ||
40614 | ||
c32bde28 | 40615 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40616 | PyObject *resultobj; |
40617 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
40618 | wxStaticBox *result; | |
40619 | PyObject * obj0 = 0 ; | |
40620 | char *kwnames[] = { | |
40621 | (char *) "self", NULL | |
40622 | }; | |
40623 | ||
40624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBoxSizer, SWIG_POINTER_EXCEPTION | 0); |
40626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40627 | { |
40628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40629 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
40630 | ||
40631 | wxPyEndAllowThreads(__tstate); | |
40632 | if (PyErr_Occurred()) SWIG_fail; | |
40633 | } | |
40634 | { | |
412d302d | 40635 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
40636 | } |
40637 | return resultobj; | |
40638 | fail: | |
40639 | return NULL; | |
40640 | } | |
40641 | ||
40642 | ||
c32bde28 | 40643 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
40644 | PyObject *obj; |
40645 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40646 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
40647 | Py_INCREF(obj); | |
40648 | return Py_BuildValue((char *)""); | |
40649 | } | |
c32bde28 | 40650 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40651 | PyObject *resultobj; |
40652 | int arg1 = (int) 1 ; | |
40653 | int arg2 = (int) 0 ; | |
40654 | int arg3 = (int) 0 ; | |
40655 | int arg4 = (int) 0 ; | |
40656 | wxGridSizer *result; | |
994141e6 RD |
40657 | PyObject * obj0 = 0 ; |
40658 | PyObject * obj1 = 0 ; | |
40659 | PyObject * obj2 = 0 ; | |
40660 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
40661 | char *kwnames[] = { |
40662 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
40663 | }; | |
40664 | ||
994141e6 RD |
40665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
40666 | if (obj0) { | |
093d3ff1 RD |
40667 | { |
40668 | arg1 = (int)(SWIG_As_int(obj0)); | |
40669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40670 | } | |
994141e6 RD |
40671 | } |
40672 | if (obj1) { | |
093d3ff1 RD |
40673 | { |
40674 | arg2 = (int)(SWIG_As_int(obj1)); | |
40675 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40676 | } | |
994141e6 RD |
40677 | } |
40678 | if (obj2) { | |
093d3ff1 RD |
40679 | { |
40680 | arg3 = (int)(SWIG_As_int(obj2)); | |
40681 | if (SWIG_arg_fail(3)) SWIG_fail; | |
40682 | } | |
994141e6 RD |
40683 | } |
40684 | if (obj3) { | |
093d3ff1 RD |
40685 | { |
40686 | arg4 = (int)(SWIG_As_int(obj3)); | |
40687 | if (SWIG_arg_fail(4)) SWIG_fail; | |
40688 | } | |
994141e6 | 40689 | } |
d14a1e28 RD |
40690 | { |
40691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40692 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
40693 | ||
40694 | wxPyEndAllowThreads(__tstate); | |
40695 | if (PyErr_Occurred()) SWIG_fail; | |
40696 | } | |
15afbcd0 | 40697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
40698 | return resultobj; |
40699 | fail: | |
40700 | return NULL; | |
40701 | } | |
40702 | ||
40703 | ||
c32bde28 | 40704 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40705 | PyObject *resultobj; |
40706 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40707 | int arg2 ; | |
40708 | PyObject * obj0 = 0 ; | |
994141e6 | 40709 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40710 | char *kwnames[] = { |
40711 | (char *) "self",(char *) "cols", NULL | |
40712 | }; | |
40713 | ||
994141e6 | 40714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
40715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40717 | { | |
40718 | arg2 = (int)(SWIG_As_int(obj1)); | |
40719 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40720 | } | |
d14a1e28 RD |
40721 | { |
40722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40723 | (arg1)->SetCols(arg2); | |
40724 | ||
40725 | wxPyEndAllowThreads(__tstate); | |
40726 | if (PyErr_Occurred()) SWIG_fail; | |
40727 | } | |
40728 | Py_INCREF(Py_None); resultobj = Py_None; | |
40729 | return resultobj; | |
40730 | fail: | |
40731 | return NULL; | |
40732 | } | |
40733 | ||
40734 | ||
c32bde28 | 40735 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40736 | PyObject *resultobj; |
40737 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40738 | int arg2 ; | |
40739 | PyObject * obj0 = 0 ; | |
994141e6 | 40740 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40741 | char *kwnames[] = { |
40742 | (char *) "self",(char *) "rows", NULL | |
40743 | }; | |
40744 | ||
994141e6 | 40745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
40746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40748 | { | |
40749 | arg2 = (int)(SWIG_As_int(obj1)); | |
40750 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40751 | } | |
d14a1e28 RD |
40752 | { |
40753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40754 | (arg1)->SetRows(arg2); | |
40755 | ||
40756 | wxPyEndAllowThreads(__tstate); | |
40757 | if (PyErr_Occurred()) SWIG_fail; | |
40758 | } | |
40759 | Py_INCREF(Py_None); resultobj = Py_None; | |
40760 | return resultobj; | |
40761 | fail: | |
40762 | return NULL; | |
40763 | } | |
40764 | ||
40765 | ||
c32bde28 | 40766 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40767 | PyObject *resultobj; |
40768 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40769 | int arg2 ; | |
40770 | PyObject * obj0 = 0 ; | |
994141e6 | 40771 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40772 | char *kwnames[] = { |
40773 | (char *) "self",(char *) "gap", NULL | |
40774 | }; | |
40775 | ||
994141e6 | 40776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
40777 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40778 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40779 | { | |
40780 | arg2 = (int)(SWIG_As_int(obj1)); | |
40781 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40782 | } | |
d14a1e28 RD |
40783 | { |
40784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40785 | (arg1)->SetVGap(arg2); | |
40786 | ||
40787 | wxPyEndAllowThreads(__tstate); | |
40788 | if (PyErr_Occurred()) SWIG_fail; | |
40789 | } | |
40790 | Py_INCREF(Py_None); resultobj = Py_None; | |
40791 | return resultobj; | |
40792 | fail: | |
40793 | return NULL; | |
40794 | } | |
40795 | ||
40796 | ||
c32bde28 | 40797 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40798 | PyObject *resultobj; |
40799 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40800 | int arg2 ; | |
40801 | PyObject * obj0 = 0 ; | |
994141e6 | 40802 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
40803 | char *kwnames[] = { |
40804 | (char *) "self",(char *) "gap", NULL | |
40805 | }; | |
40806 | ||
994141e6 | 40807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
40808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40810 | { | |
40811 | arg2 = (int)(SWIG_As_int(obj1)); | |
40812 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40813 | } | |
d14a1e28 RD |
40814 | { |
40815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40816 | (arg1)->SetHGap(arg2); | |
40817 | ||
40818 | wxPyEndAllowThreads(__tstate); | |
40819 | if (PyErr_Occurred()) SWIG_fail; | |
40820 | } | |
40821 | Py_INCREF(Py_None); resultobj = Py_None; | |
40822 | return resultobj; | |
40823 | fail: | |
40824 | return NULL; | |
40825 | } | |
40826 | ||
40827 | ||
c32bde28 | 40828 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40829 | PyObject *resultobj; |
40830 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40831 | int result; | |
40832 | PyObject * obj0 = 0 ; | |
40833 | char *kwnames[] = { | |
40834 | (char *) "self", NULL | |
40835 | }; | |
40836 | ||
40837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40840 | { |
40841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40842 | result = (int)(arg1)->GetCols(); | |
40843 | ||
40844 | wxPyEndAllowThreads(__tstate); | |
40845 | if (PyErr_Occurred()) SWIG_fail; | |
40846 | } | |
093d3ff1 RD |
40847 | { |
40848 | resultobj = SWIG_From_int((int)(result)); | |
40849 | } | |
d14a1e28 RD |
40850 | return resultobj; |
40851 | fail: | |
40852 | return NULL; | |
40853 | } | |
40854 | ||
40855 | ||
c32bde28 | 40856 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40857 | PyObject *resultobj; |
40858 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40859 | int result; | |
40860 | PyObject * obj0 = 0 ; | |
40861 | char *kwnames[] = { | |
40862 | (char *) "self", NULL | |
40863 | }; | |
40864 | ||
40865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40868 | { |
40869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40870 | result = (int)(arg1)->GetRows(); | |
40871 | ||
40872 | wxPyEndAllowThreads(__tstate); | |
40873 | if (PyErr_Occurred()) SWIG_fail; | |
40874 | } | |
093d3ff1 RD |
40875 | { |
40876 | resultobj = SWIG_From_int((int)(result)); | |
40877 | } | |
d14a1e28 RD |
40878 | return resultobj; |
40879 | fail: | |
40880 | return NULL; | |
40881 | } | |
40882 | ||
40883 | ||
c32bde28 | 40884 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40885 | PyObject *resultobj; |
40886 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40887 | int result; | |
40888 | PyObject * obj0 = 0 ; | |
40889 | char *kwnames[] = { | |
40890 | (char *) "self", NULL | |
40891 | }; | |
40892 | ||
40893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40896 | { |
40897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40898 | result = (int)(arg1)->GetVGap(); | |
40899 | ||
40900 | wxPyEndAllowThreads(__tstate); | |
40901 | if (PyErr_Occurred()) SWIG_fail; | |
40902 | } | |
093d3ff1 RD |
40903 | { |
40904 | resultobj = SWIG_From_int((int)(result)); | |
40905 | } | |
d14a1e28 RD |
40906 | return resultobj; |
40907 | fail: | |
40908 | return NULL; | |
40909 | } | |
40910 | ||
40911 | ||
c32bde28 | 40912 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40913 | PyObject *resultobj; |
40914 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
40915 | int result; | |
40916 | PyObject * obj0 = 0 ; | |
40917 | char *kwnames[] = { | |
40918 | (char *) "self", NULL | |
40919 | }; | |
40920 | ||
40921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
40922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0); |
40923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
40924 | { |
40925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40926 | result = (int)(arg1)->GetHGap(); | |
40927 | ||
40928 | wxPyEndAllowThreads(__tstate); | |
40929 | if (PyErr_Occurred()) SWIG_fail; | |
40930 | } | |
093d3ff1 RD |
40931 | { |
40932 | resultobj = SWIG_From_int((int)(result)); | |
40933 | } | |
d14a1e28 RD |
40934 | return resultobj; |
40935 | fail: | |
40936 | return NULL; | |
40937 | } | |
40938 | ||
40939 | ||
c32bde28 | 40940 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
40941 | PyObject *obj; |
40942 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40943 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
40944 | Py_INCREF(obj); | |
40945 | return Py_BuildValue((char *)""); | |
40946 | } | |
c32bde28 | 40947 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
40948 | PyObject *resultobj; |
40949 | int arg1 = (int) 1 ; | |
40950 | int arg2 = (int) 0 ; | |
40951 | int arg3 = (int) 0 ; | |
40952 | int arg4 = (int) 0 ; | |
40953 | wxFlexGridSizer *result; | |
994141e6 RD |
40954 | PyObject * obj0 = 0 ; |
40955 | PyObject * obj1 = 0 ; | |
40956 | PyObject * obj2 = 0 ; | |
40957 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
40958 | char *kwnames[] = { |
40959 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
40960 | }; | |
40961 | ||
994141e6 RD |
40962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
40963 | if (obj0) { | |
093d3ff1 RD |
40964 | { |
40965 | arg1 = (int)(SWIG_As_int(obj0)); | |
40966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
40967 | } | |
994141e6 RD |
40968 | } |
40969 | if (obj1) { | |
093d3ff1 RD |
40970 | { |
40971 | arg2 = (int)(SWIG_As_int(obj1)); | |
40972 | if (SWIG_arg_fail(2)) SWIG_fail; | |
40973 | } | |
994141e6 RD |
40974 | } |
40975 | if (obj2) { | |
093d3ff1 RD |
40976 | { |
40977 | arg3 = (int)(SWIG_As_int(obj2)); | |
40978 | if (SWIG_arg_fail(3)) SWIG_fail; | |
40979 | } | |
994141e6 RD |
40980 | } |
40981 | if (obj3) { | |
093d3ff1 RD |
40982 | { |
40983 | arg4 = (int)(SWIG_As_int(obj3)); | |
40984 | if (SWIG_arg_fail(4)) SWIG_fail; | |
40985 | } | |
994141e6 | 40986 | } |
d14a1e28 RD |
40987 | { |
40988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40989 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
40990 | ||
40991 | wxPyEndAllowThreads(__tstate); | |
40992 | if (PyErr_Occurred()) SWIG_fail; | |
40993 | } | |
15afbcd0 | 40994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
40995 | return resultobj; |
40996 | fail: | |
40997 | return NULL; | |
40998 | } | |
40999 | ||
41000 | ||
c32bde28 | 41001 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41002 | PyObject *resultobj; |
41003 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41004 | size_t arg2 ; | |
41005 | int arg3 = (int) 0 ; | |
41006 | PyObject * obj0 = 0 ; | |
41007 | PyObject * obj1 = 0 ; | |
994141e6 | 41008 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
41009 | char *kwnames[] = { |
41010 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
41011 | }; | |
41012 | ||
994141e6 | 41013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
41014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41016 | { | |
41017 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
41018 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41019 | } | |
994141e6 | 41020 | if (obj2) { |
093d3ff1 RD |
41021 | { |
41022 | arg3 = (int)(SWIG_As_int(obj2)); | |
41023 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41024 | } | |
994141e6 | 41025 | } |
d14a1e28 RD |
41026 | { |
41027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41028 | (arg1)->AddGrowableRow(arg2,arg3); | |
41029 | ||
41030 | wxPyEndAllowThreads(__tstate); | |
41031 | if (PyErr_Occurred()) SWIG_fail; | |
41032 | } | |
41033 | Py_INCREF(Py_None); resultobj = Py_None; | |
41034 | return resultobj; | |
41035 | fail: | |
41036 | return NULL; | |
41037 | } | |
41038 | ||
41039 | ||
c32bde28 | 41040 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41041 | PyObject *resultobj; |
41042 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41043 | size_t arg2 ; | |
41044 | PyObject * obj0 = 0 ; | |
41045 | PyObject * obj1 = 0 ; | |
41046 | char *kwnames[] = { | |
41047 | (char *) "self",(char *) "idx", NULL | |
41048 | }; | |
41049 | ||
41050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41053 | { | |
41054 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
41055 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41056 | } | |
d14a1e28 RD |
41057 | { |
41058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41059 | (arg1)->RemoveGrowableRow(arg2); | |
41060 | ||
41061 | wxPyEndAllowThreads(__tstate); | |
41062 | if (PyErr_Occurred()) SWIG_fail; | |
41063 | } | |
41064 | Py_INCREF(Py_None); resultobj = Py_None; | |
41065 | return resultobj; | |
41066 | fail: | |
41067 | return NULL; | |
41068 | } | |
41069 | ||
41070 | ||
c32bde28 | 41071 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41072 | PyObject *resultobj; |
41073 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41074 | size_t arg2 ; | |
41075 | int arg3 = (int) 0 ; | |
41076 | PyObject * obj0 = 0 ; | |
41077 | PyObject * obj1 = 0 ; | |
994141e6 | 41078 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
41079 | char *kwnames[] = { |
41080 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
41081 | }; | |
41082 | ||
994141e6 | 41083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
41084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41086 | { | |
41087 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
41088 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41089 | } | |
994141e6 | 41090 | if (obj2) { |
093d3ff1 RD |
41091 | { |
41092 | arg3 = (int)(SWIG_As_int(obj2)); | |
41093 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41094 | } | |
994141e6 | 41095 | } |
d14a1e28 RD |
41096 | { |
41097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41098 | (arg1)->AddGrowableCol(arg2,arg3); | |
41099 | ||
41100 | wxPyEndAllowThreads(__tstate); | |
41101 | if (PyErr_Occurred()) SWIG_fail; | |
41102 | } | |
41103 | Py_INCREF(Py_None); resultobj = Py_None; | |
41104 | return resultobj; | |
41105 | fail: | |
41106 | return NULL; | |
41107 | } | |
41108 | ||
41109 | ||
c32bde28 | 41110 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41111 | PyObject *resultobj; |
41112 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41113 | size_t arg2 ; | |
41114 | PyObject * obj0 = 0 ; | |
41115 | PyObject * obj1 = 0 ; | |
41116 | char *kwnames[] = { | |
41117 | (char *) "self",(char *) "idx", NULL | |
41118 | }; | |
41119 | ||
41120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41123 | { | |
41124 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
41125 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41126 | } | |
d14a1e28 RD |
41127 | { |
41128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41129 | (arg1)->RemoveGrowableCol(arg2); | |
41130 | ||
41131 | wxPyEndAllowThreads(__tstate); | |
41132 | if (PyErr_Occurred()) SWIG_fail; | |
41133 | } | |
41134 | Py_INCREF(Py_None); resultobj = Py_None; | |
41135 | return resultobj; | |
41136 | fail: | |
41137 | return NULL; | |
41138 | } | |
41139 | ||
41140 | ||
c32bde28 | 41141 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41142 | PyObject *resultobj; |
41143 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41144 | int arg2 ; | |
41145 | PyObject * obj0 = 0 ; | |
994141e6 | 41146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
41147 | char *kwnames[] = { |
41148 | (char *) "self",(char *) "direction", NULL | |
41149 | }; | |
41150 | ||
994141e6 | 41151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
41152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41154 | { | |
41155 | arg2 = (int)(SWIG_As_int(obj1)); | |
41156 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41157 | } | |
d14a1e28 RD |
41158 | { |
41159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41160 | (arg1)->SetFlexibleDirection(arg2); | |
41161 | ||
41162 | wxPyEndAllowThreads(__tstate); | |
41163 | if (PyErr_Occurred()) SWIG_fail; | |
41164 | } | |
41165 | Py_INCREF(Py_None); resultobj = Py_None; | |
41166 | return resultobj; | |
41167 | fail: | |
41168 | return NULL; | |
41169 | } | |
41170 | ||
41171 | ||
c32bde28 | 41172 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41173 | PyObject *resultobj; |
41174 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41175 | int result; | |
41176 | PyObject * obj0 = 0 ; | |
41177 | char *kwnames[] = { | |
41178 | (char *) "self", NULL | |
41179 | }; | |
41180 | ||
41181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
41184 | { |
41185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41186 | result = (int)(arg1)->GetFlexibleDirection(); | |
41187 | ||
41188 | wxPyEndAllowThreads(__tstate); | |
41189 | if (PyErr_Occurred()) SWIG_fail; | |
41190 | } | |
093d3ff1 RD |
41191 | { |
41192 | resultobj = SWIG_From_int((int)(result)); | |
41193 | } | |
d14a1e28 RD |
41194 | return resultobj; |
41195 | fail: | |
41196 | return NULL; | |
41197 | } | |
41198 | ||
41199 | ||
c32bde28 | 41200 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41201 | PyObject *resultobj; |
41202 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
093d3ff1 | 41203 | wxFlexSizerGrowMode arg2 ; |
d14a1e28 | 41204 | PyObject * obj0 = 0 ; |
994141e6 | 41205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
41206 | char *kwnames[] = { |
41207 | (char *) "self",(char *) "mode", NULL | |
41208 | }; | |
41209 | ||
994141e6 | 41210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
41211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41213 | { | |
41214 | arg2 = (wxFlexSizerGrowMode)(SWIG_As_int(obj1)); | |
41215 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41216 | } | |
d14a1e28 RD |
41217 | { |
41218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41219 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
41220 | ||
41221 | wxPyEndAllowThreads(__tstate); | |
41222 | if (PyErr_Occurred()) SWIG_fail; | |
41223 | } | |
41224 | Py_INCREF(Py_None); resultobj = Py_None; | |
41225 | return resultobj; | |
41226 | fail: | |
41227 | return NULL; | |
41228 | } | |
41229 | ||
41230 | ||
c32bde28 | 41231 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41232 | PyObject *resultobj; |
41233 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
093d3ff1 | 41234 | wxFlexSizerGrowMode result; |
d14a1e28 RD |
41235 | PyObject * obj0 = 0 ; |
41236 | char *kwnames[] = { | |
41237 | (char *) "self", NULL | |
41238 | }; | |
41239 | ||
41240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41241 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41242 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
41243 | { |
41244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 41245 | result = (wxFlexSizerGrowMode)(arg1)->GetNonFlexibleGrowMode(); |
d14a1e28 RD |
41246 | |
41247 | wxPyEndAllowThreads(__tstate); | |
41248 | if (PyErr_Occurred()) SWIG_fail; | |
41249 | } | |
093d3ff1 | 41250 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
41251 | return resultobj; |
41252 | fail: | |
41253 | return NULL; | |
41254 | } | |
41255 | ||
41256 | ||
c32bde28 | 41257 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
41258 | PyObject *resultobj; |
41259 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41260 | wxArrayInt *result; | |
41261 | PyObject * obj0 = 0 ; | |
41262 | char *kwnames[] = { | |
41263 | (char *) "self", NULL | |
41264 | }; | |
41265 | ||
41266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
41269 | { |
41270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41271 | { | |
41272 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
41273 | result = (wxArrayInt *) &_result_ref; | |
41274 | } | |
41275 | ||
41276 | wxPyEndAllowThreads(__tstate); | |
41277 | if (PyErr_Occurred()) SWIG_fail; | |
41278 | } | |
41279 | { | |
41280 | resultobj = PyList_New(0); | |
41281 | size_t idx; | |
41282 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
41283 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
41284 | PyList_Append(resultobj, val); | |
41285 | Py_DECREF(val); | |
41286 | } | |
41287 | } | |
41288 | return resultobj; | |
41289 | fail: | |
41290 | return NULL; | |
41291 | } | |
41292 | ||
41293 | ||
c32bde28 | 41294 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
41295 | PyObject *resultobj; |
41296 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
41297 | wxArrayInt *result; | |
41298 | PyObject * obj0 = 0 ; | |
41299 | char *kwnames[] = { | |
41300 | (char *) "self", NULL | |
41301 | }; | |
41302 | ||
41303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0); |
41305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
41306 | { |
41307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41308 | { | |
41309 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
41310 | result = (wxArrayInt *) &_result_ref; | |
41311 | } | |
41312 | ||
41313 | wxPyEndAllowThreads(__tstate); | |
41314 | if (PyErr_Occurred()) SWIG_fail; | |
41315 | } | |
41316 | { | |
41317 | resultobj = PyList_New(0); | |
41318 | size_t idx; | |
41319 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
41320 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
41321 | PyList_Append(resultobj, val); | |
41322 | Py_DECREF(val); | |
41323 | } | |
41324 | } | |
41325 | return resultobj; | |
41326 | fail: | |
41327 | return NULL; | |
41328 | } | |
41329 | ||
41330 | ||
c32bde28 | 41331 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
41332 | PyObject *obj; |
41333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41334 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
41335 | Py_INCREF(obj); | |
41336 | return Py_BuildValue((char *)""); | |
41337 | } | |
e505d15e RD |
41338 | static PyObject *_wrap_new_StdDialogButtonSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
41339 | PyObject *resultobj; | |
41340 | wxStdDialogButtonSizer *result; | |
41341 | char *kwnames[] = { | |
41342 | NULL | |
41343 | }; | |
41344 | ||
41345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StdDialogButtonSizer",kwnames)) goto fail; | |
41346 | { | |
41347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41348 | result = (wxStdDialogButtonSizer *)new wxStdDialogButtonSizer(); | |
41349 | ||
41350 | wxPyEndAllowThreads(__tstate); | |
41351 | if (PyErr_Occurred()) SWIG_fail; | |
41352 | } | |
41353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStdDialogButtonSizer, 1); | |
41354 | return resultobj; | |
41355 | fail: | |
41356 | return NULL; | |
41357 | } | |
41358 | ||
41359 | ||
41360 | static PyObject *_wrap_StdDialogButtonSizer_AddButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41361 | PyObject *resultobj; | |
41362 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41363 | wxButton *arg2 = (wxButton *) 0 ; | |
41364 | PyObject * obj0 = 0 ; | |
41365 | PyObject * obj1 = 0 ; | |
41366 | char *kwnames[] = { | |
41367 | (char *) "self",(char *) "button", NULL | |
41368 | }; | |
41369 | ||
41370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_AddButton",kwnames,&obj0,&obj1)) goto fail; | |
41371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41373 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
41374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41375 | { | |
41376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41377 | (arg1)->AddButton(arg2); | |
41378 | ||
41379 | wxPyEndAllowThreads(__tstate); | |
41380 | if (PyErr_Occurred()) SWIG_fail; | |
41381 | } | |
41382 | Py_INCREF(Py_None); resultobj = Py_None; | |
41383 | return resultobj; | |
41384 | fail: | |
41385 | return NULL; | |
41386 | } | |
41387 | ||
41388 | ||
53aa7709 | 41389 | static PyObject *_wrap_StdDialogButtonSizer_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
e505d15e RD |
41390 | PyObject *resultobj; |
41391 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41392 | PyObject * obj0 = 0 ; | |
41393 | char *kwnames[] = { | |
41394 | (char *) "self", NULL | |
41395 | }; | |
41396 | ||
53aa7709 | 41397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_Realize",kwnames,&obj0)) goto fail; |
e505d15e RD |
41398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); |
41399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41400 | { | |
41401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
53aa7709 | 41402 | (arg1)->Realize(); |
e505d15e RD |
41403 | |
41404 | wxPyEndAllowThreads(__tstate); | |
41405 | if (PyErr_Occurred()) SWIG_fail; | |
41406 | } | |
41407 | Py_INCREF(Py_None); resultobj = Py_None; | |
41408 | return resultobj; | |
41409 | fail: | |
41410 | return NULL; | |
41411 | } | |
41412 | ||
41413 | ||
51b83b37 RD |
41414 | static PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) { |
41415 | PyObject *resultobj; | |
41416 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41417 | wxButton *arg2 = (wxButton *) 0 ; | |
41418 | PyObject * obj0 = 0 ; | |
41419 | PyObject * obj1 = 0 ; | |
41420 | char *kwnames[] = { | |
41421 | (char *) "self",(char *) "button", NULL | |
41422 | }; | |
41423 | ||
41424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) goto fail; | |
41425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41427 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
41428 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41429 | { | |
41430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41431 | (arg1)->SetAffirmativeButton(arg2); | |
41432 | ||
41433 | wxPyEndAllowThreads(__tstate); | |
41434 | if (PyErr_Occurred()) SWIG_fail; | |
41435 | } | |
41436 | Py_INCREF(Py_None); resultobj = Py_None; | |
41437 | return resultobj; | |
41438 | fail: | |
41439 | return NULL; | |
41440 | } | |
41441 | ||
41442 | ||
41443 | static PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41444 | PyObject *resultobj; | |
41445 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41446 | wxButton *arg2 = (wxButton *) 0 ; | |
41447 | PyObject * obj0 = 0 ; | |
41448 | PyObject * obj1 = 0 ; | |
41449 | char *kwnames[] = { | |
41450 | (char *) "self",(char *) "button", NULL | |
41451 | }; | |
41452 | ||
41453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) goto fail; | |
41454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41456 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
41457 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41458 | { | |
41459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41460 | (arg1)->SetNegativeButton(arg2); | |
41461 | ||
41462 | wxPyEndAllowThreads(__tstate); | |
41463 | if (PyErr_Occurred()) SWIG_fail; | |
41464 | } | |
41465 | Py_INCREF(Py_None); resultobj = Py_None; | |
41466 | return resultobj; | |
41467 | fail: | |
41468 | return NULL; | |
41469 | } | |
41470 | ||
41471 | ||
41472 | static PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41473 | PyObject *resultobj; | |
41474 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41475 | wxButton *arg2 = (wxButton *) 0 ; | |
41476 | PyObject * obj0 = 0 ; | |
41477 | PyObject * obj1 = 0 ; | |
41478 | char *kwnames[] = { | |
41479 | (char *) "self",(char *) "button", NULL | |
41480 | }; | |
41481 | ||
41482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) goto fail; | |
41483 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41484 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41485 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
41486 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41487 | { | |
41488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41489 | (arg1)->SetCancelButton(arg2); | |
41490 | ||
41491 | wxPyEndAllowThreads(__tstate); | |
41492 | if (PyErr_Occurred()) SWIG_fail; | |
41493 | } | |
41494 | Py_INCREF(Py_None); resultobj = Py_None; | |
41495 | return resultobj; | |
41496 | fail: | |
41497 | return NULL; | |
41498 | } | |
41499 | ||
41500 | ||
e505d15e RD |
41501 | static PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) { |
41502 | PyObject *resultobj; | |
41503 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41504 | wxButton *result; | |
41505 | PyObject * obj0 = 0 ; | |
41506 | char *kwnames[] = { | |
41507 | (char *) "self", NULL | |
41508 | }; | |
41509 | ||
41510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetAffirmativeButton",kwnames,&obj0)) goto fail; | |
41511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41513 | { | |
41514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41515 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetAffirmativeButton(); | |
41516 | ||
41517 | wxPyEndAllowThreads(__tstate); | |
41518 | if (PyErr_Occurred()) SWIG_fail; | |
41519 | } | |
41520 | { | |
41521 | resultobj = wxPyMake_wxObject(result, 0); | |
41522 | } | |
41523 | return resultobj; | |
41524 | fail: | |
41525 | return NULL; | |
41526 | } | |
41527 | ||
41528 | ||
41529 | static PyObject *_wrap_StdDialogButtonSizer_GetApplyButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41530 | PyObject *resultobj; | |
41531 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41532 | wxButton *result; | |
41533 | PyObject * obj0 = 0 ; | |
41534 | char *kwnames[] = { | |
41535 | (char *) "self", NULL | |
41536 | }; | |
41537 | ||
41538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetApplyButton",kwnames,&obj0)) goto fail; | |
41539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41541 | { | |
41542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41543 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetApplyButton(); | |
41544 | ||
41545 | wxPyEndAllowThreads(__tstate); | |
41546 | if (PyErr_Occurred()) SWIG_fail; | |
41547 | } | |
41548 | { | |
41549 | resultobj = wxPyMake_wxObject(result, 0); | |
41550 | } | |
41551 | return resultobj; | |
41552 | fail: | |
41553 | return NULL; | |
41554 | } | |
41555 | ||
41556 | ||
41557 | static PyObject *_wrap_StdDialogButtonSizer_GetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41558 | PyObject *resultobj; | |
41559 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41560 | wxButton *result; | |
41561 | PyObject * obj0 = 0 ; | |
41562 | char *kwnames[] = { | |
41563 | (char *) "self", NULL | |
41564 | }; | |
41565 | ||
41566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetNegativeButton",kwnames,&obj0)) goto fail; | |
41567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41569 | { | |
41570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41571 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetNegativeButton(); | |
41572 | ||
41573 | wxPyEndAllowThreads(__tstate); | |
41574 | if (PyErr_Occurred()) SWIG_fail; | |
41575 | } | |
41576 | { | |
41577 | resultobj = wxPyMake_wxObject(result, 0); | |
41578 | } | |
41579 | return resultobj; | |
41580 | fail: | |
41581 | return NULL; | |
41582 | } | |
41583 | ||
41584 | ||
41585 | static PyObject *_wrap_StdDialogButtonSizer_GetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41586 | PyObject *resultobj; | |
41587 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41588 | wxButton *result; | |
41589 | PyObject * obj0 = 0 ; | |
41590 | char *kwnames[] = { | |
41591 | (char *) "self", NULL | |
41592 | }; | |
41593 | ||
41594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetCancelButton",kwnames,&obj0)) goto fail; | |
41595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41597 | { | |
41598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41599 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetCancelButton(); | |
41600 | ||
41601 | wxPyEndAllowThreads(__tstate); | |
41602 | if (PyErr_Occurred()) SWIG_fail; | |
41603 | } | |
41604 | { | |
41605 | resultobj = wxPyMake_wxObject(result, 0); | |
41606 | } | |
41607 | return resultobj; | |
41608 | fail: | |
41609 | return NULL; | |
41610 | } | |
41611 | ||
41612 | ||
41613 | static PyObject *_wrap_StdDialogButtonSizer_GetHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
41614 | PyObject *resultobj; | |
41615 | wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ; | |
41616 | wxButton *result; | |
41617 | PyObject * obj0 = 0 ; | |
41618 | char *kwnames[] = { | |
41619 | (char *) "self", NULL | |
41620 | }; | |
41621 | ||
41622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetHelpButton",kwnames,&obj0)) goto fail; | |
41623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0); | |
41624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41625 | { | |
41626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41627 | result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetHelpButton(); | |
41628 | ||
41629 | wxPyEndAllowThreads(__tstate); | |
41630 | if (PyErr_Occurred()) SWIG_fail; | |
41631 | } | |
41632 | { | |
41633 | resultobj = wxPyMake_wxObject(result, 0); | |
41634 | } | |
41635 | return resultobj; | |
41636 | fail: | |
41637 | return NULL; | |
41638 | } | |
41639 | ||
41640 | ||
41641 | static PyObject * StdDialogButtonSizer_swigregister(PyObject *, PyObject *args) { | |
41642 | PyObject *obj; | |
41643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41644 | SWIG_TypeClientData(SWIGTYPE_p_wxStdDialogButtonSizer, obj); | |
41645 | Py_INCREF(obj); | |
41646 | return Py_BuildValue((char *)""); | |
41647 | } | |
c32bde28 | 41648 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41649 | PyObject *resultobj; |
41650 | int arg1 = (int) 0 ; | |
41651 | int arg2 = (int) 0 ; | |
41652 | wxGBPosition *result; | |
994141e6 RD |
41653 | PyObject * obj0 = 0 ; |
41654 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
41655 | char *kwnames[] = { |
41656 | (char *) "row",(char *) "col", NULL | |
41657 | }; | |
41658 | ||
994141e6 RD |
41659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
41660 | if (obj0) { | |
093d3ff1 RD |
41661 | { |
41662 | arg1 = (int)(SWIG_As_int(obj0)); | |
41663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41664 | } | |
994141e6 RD |
41665 | } |
41666 | if (obj1) { | |
093d3ff1 RD |
41667 | { |
41668 | arg2 = (int)(SWIG_As_int(obj1)); | |
41669 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41670 | } | |
994141e6 | 41671 | } |
d14a1e28 RD |
41672 | { |
41673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41674 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
41675 | ||
41676 | wxPyEndAllowThreads(__tstate); | |
41677 | if (PyErr_Occurred()) SWIG_fail; | |
41678 | } | |
15afbcd0 | 41679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
41680 | return resultobj; |
41681 | fail: | |
41682 | return NULL; | |
41683 | } | |
41684 | ||
41685 | ||
c32bde28 | 41686 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41687 | PyObject *resultobj; |
41688 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41689 | int result; | |
41690 | PyObject * obj0 = 0 ; | |
41691 | char *kwnames[] = { | |
41692 | (char *) "self", NULL | |
41693 | }; | |
41694 | ||
41695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41696 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
41698 | { |
41699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41700 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
41701 | ||
41702 | wxPyEndAllowThreads(__tstate); | |
41703 | if (PyErr_Occurred()) SWIG_fail; | |
41704 | } | |
093d3ff1 RD |
41705 | { |
41706 | resultobj = SWIG_From_int((int)(result)); | |
41707 | } | |
d14a1e28 RD |
41708 | return resultobj; |
41709 | fail: | |
41710 | return NULL; | |
41711 | } | |
41712 | ||
41713 | ||
c32bde28 | 41714 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41715 | PyObject *resultobj; |
41716 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41717 | int result; | |
41718 | PyObject * obj0 = 0 ; | |
41719 | char *kwnames[] = { | |
41720 | (char *) "self", NULL | |
41721 | }; | |
41722 | ||
41723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
41726 | { |
41727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41728 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
41729 | ||
41730 | wxPyEndAllowThreads(__tstate); | |
41731 | if (PyErr_Occurred()) SWIG_fail; | |
41732 | } | |
093d3ff1 RD |
41733 | { |
41734 | resultobj = SWIG_From_int((int)(result)); | |
41735 | } | |
d14a1e28 RD |
41736 | return resultobj; |
41737 | fail: | |
41738 | return NULL; | |
41739 | } | |
41740 | ||
41741 | ||
c32bde28 | 41742 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41743 | PyObject *resultobj; |
41744 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41745 | int arg2 ; | |
41746 | PyObject * obj0 = 0 ; | |
994141e6 | 41747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
41748 | char *kwnames[] = { |
41749 | (char *) "self",(char *) "row", NULL | |
41750 | }; | |
41751 | ||
994141e6 | 41752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
41753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41755 | { | |
41756 | arg2 = (int)(SWIG_As_int(obj1)); | |
41757 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41758 | } | |
d14a1e28 RD |
41759 | { |
41760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41761 | (arg1)->SetRow(arg2); | |
41762 | ||
41763 | wxPyEndAllowThreads(__tstate); | |
41764 | if (PyErr_Occurred()) SWIG_fail; | |
41765 | } | |
41766 | Py_INCREF(Py_None); resultobj = Py_None; | |
41767 | return resultobj; | |
41768 | fail: | |
41769 | return NULL; | |
41770 | } | |
41771 | ||
41772 | ||
c32bde28 | 41773 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41774 | PyObject *resultobj; |
41775 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41776 | int arg2 ; | |
41777 | PyObject * obj0 = 0 ; | |
994141e6 | 41778 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
41779 | char *kwnames[] = { |
41780 | (char *) "self",(char *) "col", NULL | |
41781 | }; | |
41782 | ||
994141e6 | 41783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
41784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41786 | { | |
41787 | arg2 = (int)(SWIG_As_int(obj1)); | |
41788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41789 | } | |
d14a1e28 RD |
41790 | { |
41791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41792 | (arg1)->SetCol(arg2); | |
41793 | ||
41794 | wxPyEndAllowThreads(__tstate); | |
41795 | if (PyErr_Occurred()) SWIG_fail; | |
41796 | } | |
41797 | Py_INCREF(Py_None); resultobj = Py_None; | |
41798 | return resultobj; | |
41799 | fail: | |
41800 | return NULL; | |
41801 | } | |
41802 | ||
41803 | ||
c32bde28 | 41804 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41805 | PyObject *resultobj; |
41806 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 41807 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 41808 | bool result; |
4f89f6a3 | 41809 | wxGBPosition temp2 ; |
d14a1e28 RD |
41810 | PyObject * obj0 = 0 ; |
41811 | PyObject * obj1 = 0 ; | |
41812 | char *kwnames[] = { | |
22faec7d | 41813 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
41814 | }; |
41815 | ||
41816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 RD |
41819 | { |
41820 | arg2 = &temp2; | |
41821 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41822 | } | |
d14a1e28 RD |
41823 | { |
41824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 41825 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); |
d14a1e28 RD |
41826 | |
41827 | wxPyEndAllowThreads(__tstate); | |
41828 | if (PyErr_Occurred()) SWIG_fail; | |
41829 | } | |
4f89f6a3 RD |
41830 | { |
41831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41832 | } | |
d14a1e28 RD |
41833 | return resultobj; |
41834 | fail: | |
41835 | return NULL; | |
41836 | } | |
41837 | ||
41838 | ||
c32bde28 | 41839 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41840 | PyObject *resultobj; |
41841 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 41842 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 41843 | bool result; |
4f89f6a3 | 41844 | wxGBPosition temp2 ; |
d14a1e28 RD |
41845 | PyObject * obj0 = 0 ; |
41846 | PyObject * obj1 = 0 ; | |
41847 | char *kwnames[] = { | |
22faec7d | 41848 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
41849 | }; |
41850 | ||
41851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
41852 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41853 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 RD |
41854 | { |
41855 | arg2 = &temp2; | |
41856 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
41857 | } | |
d14a1e28 RD |
41858 | { |
41859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 41860 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); |
d14a1e28 RD |
41861 | |
41862 | wxPyEndAllowThreads(__tstate); | |
41863 | if (PyErr_Occurred()) SWIG_fail; | |
41864 | } | |
4f89f6a3 RD |
41865 | { |
41866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41867 | } | |
d14a1e28 RD |
41868 | return resultobj; |
41869 | fail: | |
41870 | return NULL; | |
41871 | } | |
41872 | ||
41873 | ||
c32bde28 | 41874 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
41875 | PyObject *resultobj; |
41876 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41877 | int arg2 = (int) 0 ; | |
41878 | int arg3 = (int) 0 ; | |
41879 | PyObject * obj0 = 0 ; | |
994141e6 RD |
41880 | PyObject * obj1 = 0 ; |
41881 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
41882 | char *kwnames[] = { |
41883 | (char *) "self",(char *) "row",(char *) "col", NULL | |
41884 | }; | |
41885 | ||
994141e6 | 41886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
41887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 41889 | if (obj1) { |
093d3ff1 RD |
41890 | { |
41891 | arg2 = (int)(SWIG_As_int(obj1)); | |
41892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41893 | } | |
994141e6 RD |
41894 | } |
41895 | if (obj2) { | |
093d3ff1 RD |
41896 | { |
41897 | arg3 = (int)(SWIG_As_int(obj2)); | |
41898 | if (SWIG_arg_fail(3)) SWIG_fail; | |
41899 | } | |
994141e6 | 41900 | } |
e811c8ce RD |
41901 | { |
41902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41903 | wxGBPosition_Set(arg1,arg2,arg3); | |
41904 | ||
41905 | wxPyEndAllowThreads(__tstate); | |
41906 | if (PyErr_Occurred()) SWIG_fail; | |
41907 | } | |
41908 | Py_INCREF(Py_None); resultobj = Py_None; | |
41909 | return resultobj; | |
41910 | fail: | |
41911 | return NULL; | |
41912 | } | |
41913 | ||
41914 | ||
c32bde28 | 41915 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41916 | PyObject *resultobj; |
41917 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
41918 | PyObject *result; | |
41919 | PyObject * obj0 = 0 ; | |
41920 | char *kwnames[] = { | |
41921 | (char *) "self", NULL | |
41922 | }; | |
41923 | ||
e811c8ce | 41924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
41925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0); |
41926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
41927 | { |
41928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 41929 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
41930 | |
41931 | wxPyEndAllowThreads(__tstate); | |
41932 | if (PyErr_Occurred()) SWIG_fail; | |
41933 | } | |
41934 | resultobj = result; | |
41935 | return resultobj; | |
41936 | fail: | |
41937 | return NULL; | |
41938 | } | |
41939 | ||
41940 | ||
c32bde28 | 41941 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
41942 | PyObject *obj; |
41943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41944 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
41945 | Py_INCREF(obj); | |
41946 | return Py_BuildValue((char *)""); | |
41947 | } | |
c32bde28 | 41948 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41949 | PyObject *resultobj; |
41950 | int arg1 = (int) 1 ; | |
41951 | int arg2 = (int) 1 ; | |
41952 | wxGBSpan *result; | |
994141e6 RD |
41953 | PyObject * obj0 = 0 ; |
41954 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
41955 | char *kwnames[] = { |
41956 | (char *) "rowspan",(char *) "colspan", NULL | |
41957 | }; | |
41958 | ||
994141e6 RD |
41959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
41960 | if (obj0) { | |
093d3ff1 RD |
41961 | { |
41962 | arg1 = (int)(SWIG_As_int(obj0)); | |
41963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
41964 | } | |
994141e6 RD |
41965 | } |
41966 | if (obj1) { | |
093d3ff1 RD |
41967 | { |
41968 | arg2 = (int)(SWIG_As_int(obj1)); | |
41969 | if (SWIG_arg_fail(2)) SWIG_fail; | |
41970 | } | |
994141e6 | 41971 | } |
d14a1e28 RD |
41972 | { |
41973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41974 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
41975 | ||
41976 | wxPyEndAllowThreads(__tstate); | |
41977 | if (PyErr_Occurred()) SWIG_fail; | |
41978 | } | |
15afbcd0 | 41979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
41980 | return resultobj; |
41981 | fail: | |
41982 | return NULL; | |
41983 | } | |
41984 | ||
41985 | ||
c32bde28 | 41986 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
41987 | PyObject *resultobj; |
41988 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
41989 | int result; | |
41990 | PyObject * obj0 = 0 ; | |
41991 | char *kwnames[] = { | |
41992 | (char *) "self", NULL | |
41993 | }; | |
41994 | ||
41995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
41996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
41997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
41998 | { |
41999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42000 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
42001 | ||
42002 | wxPyEndAllowThreads(__tstate); | |
42003 | if (PyErr_Occurred()) SWIG_fail; | |
42004 | } | |
093d3ff1 RD |
42005 | { |
42006 | resultobj = SWIG_From_int((int)(result)); | |
42007 | } | |
d14a1e28 RD |
42008 | return resultobj; |
42009 | fail: | |
42010 | return NULL; | |
42011 | } | |
42012 | ||
42013 | ||
c32bde28 | 42014 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42015 | PyObject *resultobj; |
42016 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42017 | int result; | |
42018 | PyObject * obj0 = 0 ; | |
42019 | char *kwnames[] = { | |
42020 | (char *) "self", NULL | |
42021 | }; | |
42022 | ||
42023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42026 | { |
42027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42028 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
42029 | ||
42030 | wxPyEndAllowThreads(__tstate); | |
42031 | if (PyErr_Occurred()) SWIG_fail; | |
42032 | } | |
093d3ff1 RD |
42033 | { |
42034 | resultobj = SWIG_From_int((int)(result)); | |
42035 | } | |
d14a1e28 RD |
42036 | return resultobj; |
42037 | fail: | |
42038 | return NULL; | |
42039 | } | |
42040 | ||
42041 | ||
c32bde28 | 42042 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42043 | PyObject *resultobj; |
42044 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42045 | int arg2 ; | |
42046 | PyObject * obj0 = 0 ; | |
994141e6 | 42047 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
42048 | char *kwnames[] = { |
42049 | (char *) "self",(char *) "rowspan", NULL | |
42050 | }; | |
42051 | ||
994141e6 | 42052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
42053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42055 | { | |
42056 | arg2 = (int)(SWIG_As_int(obj1)); | |
42057 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42058 | } | |
d14a1e28 RD |
42059 | { |
42060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42061 | (arg1)->SetRowspan(arg2); | |
42062 | ||
42063 | wxPyEndAllowThreads(__tstate); | |
42064 | if (PyErr_Occurred()) SWIG_fail; | |
42065 | } | |
42066 | Py_INCREF(Py_None); resultobj = Py_None; | |
42067 | return resultobj; | |
42068 | fail: | |
42069 | return NULL; | |
42070 | } | |
42071 | ||
42072 | ||
c32bde28 | 42073 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42074 | PyObject *resultobj; |
42075 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42076 | int arg2 ; | |
42077 | PyObject * obj0 = 0 ; | |
994141e6 | 42078 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
42079 | char *kwnames[] = { |
42080 | (char *) "self",(char *) "colspan", NULL | |
42081 | }; | |
42082 | ||
994141e6 | 42083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
42084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42086 | { | |
42087 | arg2 = (int)(SWIG_As_int(obj1)); | |
42088 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42089 | } | |
d14a1e28 RD |
42090 | { |
42091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42092 | (arg1)->SetColspan(arg2); | |
42093 | ||
42094 | wxPyEndAllowThreads(__tstate); | |
42095 | if (PyErr_Occurred()) SWIG_fail; | |
42096 | } | |
42097 | Py_INCREF(Py_None); resultobj = Py_None; | |
42098 | return resultobj; | |
42099 | fail: | |
42100 | return NULL; | |
42101 | } | |
42102 | ||
42103 | ||
c32bde28 | 42104 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42105 | PyObject *resultobj; |
42106 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 42107 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 42108 | bool result; |
4f89f6a3 | 42109 | wxGBSpan temp2 ; |
d14a1e28 RD |
42110 | PyObject * obj0 = 0 ; |
42111 | PyObject * obj1 = 0 ; | |
42112 | char *kwnames[] = { | |
22faec7d | 42113 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
42114 | }; |
42115 | ||
42116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 RD |
42119 | { |
42120 | arg2 = &temp2; | |
42121 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
42122 | } | |
d14a1e28 RD |
42123 | { |
42124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 42125 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); |
d14a1e28 RD |
42126 | |
42127 | wxPyEndAllowThreads(__tstate); | |
42128 | if (PyErr_Occurred()) SWIG_fail; | |
42129 | } | |
4f89f6a3 RD |
42130 | { |
42131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42132 | } | |
d14a1e28 RD |
42133 | return resultobj; |
42134 | fail: | |
42135 | return NULL; | |
42136 | } | |
42137 | ||
42138 | ||
c32bde28 | 42139 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42140 | PyObject *resultobj; |
42141 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 42142 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 42143 | bool result; |
4f89f6a3 | 42144 | wxGBSpan temp2 ; |
d14a1e28 RD |
42145 | PyObject * obj0 = 0 ; |
42146 | PyObject * obj1 = 0 ; | |
42147 | char *kwnames[] = { | |
22faec7d | 42148 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
42149 | }; |
42150 | ||
42151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 RD |
42154 | { |
42155 | arg2 = &temp2; | |
42156 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
42157 | } | |
d14a1e28 RD |
42158 | { |
42159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 42160 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); |
d14a1e28 RD |
42161 | |
42162 | wxPyEndAllowThreads(__tstate); | |
42163 | if (PyErr_Occurred()) SWIG_fail; | |
42164 | } | |
4f89f6a3 RD |
42165 | { |
42166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42167 | } | |
d14a1e28 RD |
42168 | return resultobj; |
42169 | fail: | |
42170 | return NULL; | |
42171 | } | |
42172 | ||
42173 | ||
c32bde28 | 42174 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
42175 | PyObject *resultobj; |
42176 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42177 | int arg2 = (int) 1 ; | |
42178 | int arg3 = (int) 1 ; | |
42179 | PyObject * obj0 = 0 ; | |
994141e6 RD |
42180 | PyObject * obj1 = 0 ; |
42181 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
42182 | char *kwnames[] = { |
42183 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
42184 | }; | |
42185 | ||
994141e6 | 42186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
42187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 42189 | if (obj1) { |
093d3ff1 RD |
42190 | { |
42191 | arg2 = (int)(SWIG_As_int(obj1)); | |
42192 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42193 | } | |
994141e6 RD |
42194 | } |
42195 | if (obj2) { | |
093d3ff1 RD |
42196 | { |
42197 | arg3 = (int)(SWIG_As_int(obj2)); | |
42198 | if (SWIG_arg_fail(3)) SWIG_fail; | |
42199 | } | |
994141e6 | 42200 | } |
e811c8ce RD |
42201 | { |
42202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42203 | wxGBSpan_Set(arg1,arg2,arg3); | |
42204 | ||
42205 | wxPyEndAllowThreads(__tstate); | |
42206 | if (PyErr_Occurred()) SWIG_fail; | |
42207 | } | |
42208 | Py_INCREF(Py_None); resultobj = Py_None; | |
42209 | return resultobj; | |
42210 | fail: | |
42211 | return NULL; | |
42212 | } | |
42213 | ||
42214 | ||
c32bde28 | 42215 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42216 | PyObject *resultobj; |
42217 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
42218 | PyObject *result; | |
42219 | PyObject * obj0 = 0 ; | |
42220 | char *kwnames[] = { | |
42221 | (char *) "self", NULL | |
42222 | }; | |
42223 | ||
e811c8ce | 42224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
42225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0); |
42226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42227 | { |
42228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 42229 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
42230 | |
42231 | wxPyEndAllowThreads(__tstate); | |
42232 | if (PyErr_Occurred()) SWIG_fail; | |
42233 | } | |
42234 | resultobj = result; | |
42235 | return resultobj; | |
42236 | fail: | |
42237 | return NULL; | |
42238 | } | |
42239 | ||
42240 | ||
c32bde28 | 42241 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
42242 | PyObject *obj; |
42243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
42244 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
42245 | Py_INCREF(obj); | |
42246 | return Py_BuildValue((char *)""); | |
42247 | } | |
c32bde28 | 42248 | static int _wrap_DefaultSpan_set(PyObject *) { |
d14a1e28 RD |
42249 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
42250 | return 1; | |
42251 | } | |
42252 | ||
42253 | ||
093d3ff1 | 42254 | static PyObject *_wrap_DefaultSpan_get(void) { |
d14a1e28 RD |
42255 | PyObject *pyobj; |
42256 | ||
15afbcd0 | 42257 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
42258 | return pyobj; |
42259 | } | |
42260 | ||
42261 | ||
c32bde28 | 42262 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42263 | PyObject *resultobj; |
42264 | wxGBSizerItem *result; | |
42265 | char *kwnames[] = { | |
42266 | NULL | |
42267 | }; | |
42268 | ||
42269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
42270 | { | |
42271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42272 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
42273 | ||
42274 | wxPyEndAllowThreads(__tstate); | |
42275 | if (PyErr_Occurred()) SWIG_fail; | |
42276 | } | |
15afbcd0 | 42277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
42278 | return resultobj; |
42279 | fail: | |
42280 | return NULL; | |
42281 | } | |
42282 | ||
42283 | ||
c32bde28 | 42284 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42285 | PyObject *resultobj; |
42286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
42287 | wxGBPosition *arg2 = 0 ; | |
42288 | wxGBSpan *arg3 = 0 ; | |
42289 | int arg4 ; | |
42290 | int arg5 ; | |
248ed943 | 42291 | PyObject *arg6 = (PyObject *) NULL ; |
d14a1e28 RD |
42292 | wxGBSizerItem *result; |
42293 | wxGBPosition temp2 ; | |
42294 | wxGBSpan temp3 ; | |
42295 | PyObject * obj0 = 0 ; | |
42296 | PyObject * obj1 = 0 ; | |
42297 | PyObject * obj2 = 0 ; | |
994141e6 RD |
42298 | PyObject * obj3 = 0 ; |
42299 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
42300 | PyObject * obj5 = 0 ; |
42301 | char *kwnames[] = { | |
42302 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
42303 | }; | |
42304 | ||
248ed943 | 42305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
42306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
42307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42308 | { |
42309 | arg2 = &temp2; | |
42310 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
42311 | } | |
42312 | { | |
42313 | arg3 = &temp3; | |
42314 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42315 | } | |
093d3ff1 RD |
42316 | { |
42317 | arg4 = (int)(SWIG_As_int(obj3)); | |
42318 | if (SWIG_arg_fail(4)) SWIG_fail; | |
42319 | } | |
42320 | { | |
42321 | arg5 = (int)(SWIG_As_int(obj4)); | |
42322 | if (SWIG_arg_fail(5)) SWIG_fail; | |
42323 | } | |
248ed943 RD |
42324 | if (obj5) { |
42325 | arg6 = obj5; | |
42326 | } | |
d14a1e28 RD |
42327 | { |
42328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 42329 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d14a1e28 RD |
42330 | |
42331 | wxPyEndAllowThreads(__tstate); | |
42332 | if (PyErr_Occurred()) SWIG_fail; | |
42333 | } | |
15afbcd0 | 42334 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
42335 | return resultobj; |
42336 | fail: | |
42337 | return NULL; | |
42338 | } | |
42339 | ||
42340 | ||
c32bde28 | 42341 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42342 | PyObject *resultobj; |
42343 | wxSizer *arg1 = (wxSizer *) 0 ; | |
42344 | wxGBPosition *arg2 = 0 ; | |
42345 | wxGBSpan *arg3 = 0 ; | |
42346 | int arg4 ; | |
42347 | int arg5 ; | |
248ed943 | 42348 | PyObject *arg6 = (PyObject *) NULL ; |
d14a1e28 RD |
42349 | wxGBSizerItem *result; |
42350 | wxGBPosition temp2 ; | |
42351 | wxGBSpan temp3 ; | |
42352 | PyObject * obj0 = 0 ; | |
42353 | PyObject * obj1 = 0 ; | |
42354 | PyObject * obj2 = 0 ; | |
994141e6 RD |
42355 | PyObject * obj3 = 0 ; |
42356 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
42357 | PyObject * obj5 = 0 ; |
42358 | char *kwnames[] = { | |
42359 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
42360 | }; | |
42361 | ||
248ed943 | 42362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
42363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); |
42364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42365 | { |
42366 | arg2 = &temp2; | |
42367 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
42368 | } | |
42369 | { | |
42370 | arg3 = &temp3; | |
42371 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42372 | } | |
093d3ff1 RD |
42373 | { |
42374 | arg4 = (int)(SWIG_As_int(obj3)); | |
42375 | if (SWIG_arg_fail(4)) SWIG_fail; | |
42376 | } | |
42377 | { | |
42378 | arg5 = (int)(SWIG_As_int(obj4)); | |
42379 | if (SWIG_arg_fail(5)) SWIG_fail; | |
42380 | } | |
248ed943 RD |
42381 | if (obj5) { |
42382 | arg6 = obj5; | |
42383 | } | |
d14a1e28 RD |
42384 | { |
42385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 42386 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d14a1e28 RD |
42387 | |
42388 | wxPyEndAllowThreads(__tstate); | |
42389 | if (PyErr_Occurred()) SWIG_fail; | |
42390 | } | |
15afbcd0 | 42391 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
42392 | return resultobj; |
42393 | fail: | |
42394 | return NULL; | |
42395 | } | |
42396 | ||
42397 | ||
c32bde28 | 42398 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42399 | PyObject *resultobj; |
42400 | int arg1 ; | |
42401 | int arg2 ; | |
42402 | wxGBPosition *arg3 = 0 ; | |
42403 | wxGBSpan *arg4 = 0 ; | |
42404 | int arg5 ; | |
42405 | int arg6 ; | |
248ed943 | 42406 | PyObject *arg7 = (PyObject *) NULL ; |
d14a1e28 RD |
42407 | wxGBSizerItem *result; |
42408 | wxGBPosition temp3 ; | |
42409 | wxGBSpan temp4 ; | |
994141e6 RD |
42410 | PyObject * obj0 = 0 ; |
42411 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
42412 | PyObject * obj2 = 0 ; |
42413 | PyObject * obj3 = 0 ; | |
994141e6 RD |
42414 | PyObject * obj4 = 0 ; |
42415 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
42416 | PyObject * obj6 = 0 ; |
42417 | char *kwnames[] = { | |
42418 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
42419 | }; | |
42420 | ||
248ed943 | 42421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
42422 | { |
42423 | arg1 = (int)(SWIG_As_int(obj0)); | |
42424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42425 | } | |
42426 | { | |
42427 | arg2 = (int)(SWIG_As_int(obj1)); | |
42428 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42429 | } | |
d14a1e28 RD |
42430 | { |
42431 | arg3 = &temp3; | |
42432 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
42433 | } | |
42434 | { | |
42435 | arg4 = &temp4; | |
42436 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
42437 | } | |
093d3ff1 RD |
42438 | { |
42439 | arg5 = (int)(SWIG_As_int(obj4)); | |
42440 | if (SWIG_arg_fail(5)) SWIG_fail; | |
42441 | } | |
42442 | { | |
42443 | arg6 = (int)(SWIG_As_int(obj5)); | |
42444 | if (SWIG_arg_fail(6)) SWIG_fail; | |
42445 | } | |
248ed943 RD |
42446 | if (obj6) { |
42447 | arg7 = obj6; | |
42448 | } | |
d14a1e28 RD |
42449 | { |
42450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 42451 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d14a1e28 RD |
42452 | |
42453 | wxPyEndAllowThreads(__tstate); | |
42454 | if (PyErr_Occurred()) SWIG_fail; | |
42455 | } | |
15afbcd0 | 42456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
42457 | return resultobj; |
42458 | fail: | |
42459 | return NULL; | |
42460 | } | |
42461 | ||
42462 | ||
c32bde28 | 42463 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42464 | PyObject *resultobj; |
42465 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42466 | wxGBPosition result; | |
42467 | PyObject * obj0 = 0 ; | |
42468 | char *kwnames[] = { | |
42469 | (char *) "self", NULL | |
42470 | }; | |
42471 | ||
42472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42475 | { |
42476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42477 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
42478 | ||
42479 | wxPyEndAllowThreads(__tstate); | |
42480 | if (PyErr_Occurred()) SWIG_fail; | |
42481 | } | |
42482 | { | |
42483 | wxGBPosition * resultptr; | |
093d3ff1 | 42484 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
15afbcd0 | 42485 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
42486 | } |
42487 | return resultobj; | |
42488 | fail: | |
42489 | return NULL; | |
42490 | } | |
42491 | ||
42492 | ||
c32bde28 | 42493 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42494 | PyObject *resultobj; |
42495 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42496 | wxGBSpan result; | |
42497 | PyObject * obj0 = 0 ; | |
42498 | char *kwnames[] = { | |
42499 | (char *) "self", NULL | |
42500 | }; | |
42501 | ||
42502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42505 | { |
42506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42507 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
42508 | ||
42509 | wxPyEndAllowThreads(__tstate); | |
42510 | if (PyErr_Occurred()) SWIG_fail; | |
42511 | } | |
42512 | { | |
42513 | wxGBSpan * resultptr; | |
093d3ff1 | 42514 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
15afbcd0 | 42515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
42516 | } |
42517 | return resultobj; | |
42518 | fail: | |
42519 | return NULL; | |
42520 | } | |
42521 | ||
42522 | ||
c32bde28 | 42523 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42524 | PyObject *resultobj; |
42525 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42526 | wxGBPosition *arg2 = 0 ; | |
42527 | bool result; | |
42528 | wxGBPosition temp2 ; | |
42529 | PyObject * obj0 = 0 ; | |
42530 | PyObject * obj1 = 0 ; | |
42531 | char *kwnames[] = { | |
42532 | (char *) "self",(char *) "pos", NULL | |
42533 | }; | |
42534 | ||
42535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42538 | { |
42539 | arg2 = &temp2; | |
42540 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
42541 | } | |
42542 | { | |
42543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42544 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
42545 | ||
42546 | wxPyEndAllowThreads(__tstate); | |
42547 | if (PyErr_Occurred()) SWIG_fail; | |
42548 | } | |
4f89f6a3 RD |
42549 | { |
42550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42551 | } | |
d14a1e28 RD |
42552 | return resultobj; |
42553 | fail: | |
42554 | return NULL; | |
42555 | } | |
42556 | ||
42557 | ||
c32bde28 | 42558 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42559 | PyObject *resultobj; |
42560 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42561 | wxGBSpan *arg2 = 0 ; | |
42562 | bool result; | |
42563 | wxGBSpan temp2 ; | |
42564 | PyObject * obj0 = 0 ; | |
42565 | PyObject * obj1 = 0 ; | |
42566 | char *kwnames[] = { | |
42567 | (char *) "self",(char *) "span", NULL | |
42568 | }; | |
42569 | ||
42570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42573 | { |
42574 | arg2 = &temp2; | |
42575 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
42576 | } | |
42577 | { | |
42578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42579 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
42580 | ||
42581 | wxPyEndAllowThreads(__tstate); | |
42582 | if (PyErr_Occurred()) SWIG_fail; | |
42583 | } | |
4f89f6a3 RD |
42584 | { |
42585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42586 | } | |
d14a1e28 RD |
42587 | return resultobj; |
42588 | fail: | |
42589 | return NULL; | |
42590 | } | |
42591 | ||
42592 | ||
c32bde28 | 42593 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42594 | PyObject *resultobj; |
42595 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42596 | wxGBSizerItem *arg2 = 0 ; | |
42597 | bool result; | |
42598 | PyObject * obj0 = 0 ; | |
42599 | PyObject * obj1 = 0 ; | |
248ed943 RD |
42600 | char *kwnames[] = { |
42601 | (char *) "self",(char *) "other", NULL | |
42602 | }; | |
d14a1e28 | 42603 | |
248ed943 | 42604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
42605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42607 | { | |
42608 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
42609 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42610 | if (arg2 == NULL) { | |
42611 | SWIG_null_ref("wxGBSizerItem"); | |
42612 | } | |
42613 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
42614 | } |
42615 | { | |
42616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42617 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
42618 | ||
42619 | wxPyEndAllowThreads(__tstate); | |
42620 | if (PyErr_Occurred()) SWIG_fail; | |
42621 | } | |
4f89f6a3 RD |
42622 | { |
42623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42624 | } | |
d14a1e28 RD |
42625 | return resultobj; |
42626 | fail: | |
42627 | return NULL; | |
42628 | } | |
42629 | ||
42630 | ||
c32bde28 | 42631 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42632 | PyObject *resultobj; |
42633 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42634 | wxGBPosition *arg2 = 0 ; | |
42635 | wxGBSpan *arg3 = 0 ; | |
42636 | bool result; | |
42637 | wxGBPosition temp2 ; | |
42638 | wxGBSpan temp3 ; | |
42639 | PyObject * obj0 = 0 ; | |
42640 | PyObject * obj1 = 0 ; | |
42641 | PyObject * obj2 = 0 ; | |
248ed943 RD |
42642 | char *kwnames[] = { |
42643 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
42644 | }; | |
d14a1e28 | 42645 | |
248ed943 | 42646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
42647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42649 | { |
42650 | arg2 = &temp2; | |
42651 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
42652 | } | |
42653 | { | |
42654 | arg3 = &temp3; | |
42655 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
42656 | } | |
42657 | { | |
42658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42659 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
42660 | ||
42661 | wxPyEndAllowThreads(__tstate); | |
42662 | if (PyErr_Occurred()) SWIG_fail; | |
42663 | } | |
4f89f6a3 RD |
42664 | { |
42665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
42666 | } | |
d14a1e28 RD |
42667 | return resultobj; |
42668 | fail: | |
42669 | return NULL; | |
42670 | } | |
42671 | ||
42672 | ||
c32bde28 | 42673 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42674 | PyObject *resultobj; |
42675 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 42676 | wxGBPosition result; |
d14a1e28 | 42677 | PyObject * obj0 = 0 ; |
d14a1e28 | 42678 | char *kwnames[] = { |
248ed943 | 42679 | (char *) "self", NULL |
d14a1e28 RD |
42680 | }; |
42681 | ||
248ed943 | 42682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
42683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42685 | { |
42686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 42687 | result = wxGBSizerItem_GetEndPos(arg1); |
d14a1e28 RD |
42688 | |
42689 | wxPyEndAllowThreads(__tstate); | |
42690 | if (PyErr_Occurred()) SWIG_fail; | |
42691 | } | |
248ed943 RD |
42692 | { |
42693 | wxGBPosition * resultptr; | |
093d3ff1 | 42694 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
248ed943 RD |
42695 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
42696 | } | |
d14a1e28 RD |
42697 | return resultobj; |
42698 | fail: | |
42699 | return NULL; | |
42700 | } | |
42701 | ||
42702 | ||
c32bde28 | 42703 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42704 | PyObject *resultobj; |
42705 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42706 | wxGridBagSizer *result; | |
42707 | PyObject * obj0 = 0 ; | |
42708 | char *kwnames[] = { | |
42709 | (char *) "self", NULL | |
42710 | }; | |
42711 | ||
42712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42715 | { |
42716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42717 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
42718 | ||
42719 | wxPyEndAllowThreads(__tstate); | |
42720 | if (PyErr_Occurred()) SWIG_fail; | |
42721 | } | |
15afbcd0 | 42722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
42723 | return resultobj; |
42724 | fail: | |
42725 | return NULL; | |
42726 | } | |
42727 | ||
42728 | ||
c32bde28 | 42729 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42730 | PyObject *resultobj; |
42731 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
42732 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
42733 | PyObject * obj0 = 0 ; | |
42734 | PyObject * obj1 = 0 ; | |
42735 | char *kwnames[] = { | |
42736 | (char *) "self",(char *) "sizer", NULL | |
42737 | }; | |
42738 | ||
42739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
42741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42742 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); | |
42743 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
42744 | { |
42745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42746 | (arg1)->SetGBSizer(arg2); | |
42747 | ||
42748 | wxPyEndAllowThreads(__tstate); | |
42749 | if (PyErr_Occurred()) SWIG_fail; | |
42750 | } | |
42751 | Py_INCREF(Py_None); resultobj = Py_None; | |
42752 | return resultobj; | |
42753 | fail: | |
42754 | return NULL; | |
42755 | } | |
42756 | ||
42757 | ||
c32bde28 | 42758 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
42759 | PyObject *obj; |
42760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
42761 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
42762 | Py_INCREF(obj); | |
42763 | return Py_BuildValue((char *)""); | |
42764 | } | |
c32bde28 | 42765 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42766 | PyObject *resultobj; |
42767 | int arg1 = (int) 0 ; | |
42768 | int arg2 = (int) 0 ; | |
42769 | wxGridBagSizer *result; | |
994141e6 RD |
42770 | PyObject * obj0 = 0 ; |
42771 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
42772 | char *kwnames[] = { |
42773 | (char *) "vgap",(char *) "hgap", NULL | |
42774 | }; | |
42775 | ||
994141e6 RD |
42776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
42777 | if (obj0) { | |
093d3ff1 RD |
42778 | { |
42779 | arg1 = (int)(SWIG_As_int(obj0)); | |
42780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42781 | } | |
994141e6 RD |
42782 | } |
42783 | if (obj1) { | |
093d3ff1 RD |
42784 | { |
42785 | arg2 = (int)(SWIG_As_int(obj1)); | |
42786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42787 | } | |
994141e6 | 42788 | } |
d14a1e28 RD |
42789 | { |
42790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42791 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
42792 | ||
42793 | wxPyEndAllowThreads(__tstate); | |
42794 | if (PyErr_Occurred()) SWIG_fail; | |
42795 | } | |
15afbcd0 | 42796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
42797 | return resultobj; |
42798 | fail: | |
42799 | return NULL; | |
42800 | } | |
42801 | ||
42802 | ||
c32bde28 | 42803 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42804 | PyObject *resultobj; |
42805 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42806 | PyObject *arg2 = (PyObject *) 0 ; | |
42807 | wxGBPosition *arg3 = 0 ; | |
42808 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
42809 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
42810 | int arg5 = (int) 0 ; | |
42811 | int arg6 = (int) 0 ; | |
42812 | PyObject *arg7 = (PyObject *) NULL ; | |
d3b6e4ff | 42813 | wxGBSizerItem *result; |
d14a1e28 RD |
42814 | wxGBPosition temp3 ; |
42815 | wxGBSpan temp4 ; | |
42816 | PyObject * obj0 = 0 ; | |
42817 | PyObject * obj1 = 0 ; | |
42818 | PyObject * obj2 = 0 ; | |
42819 | PyObject * obj3 = 0 ; | |
994141e6 RD |
42820 | PyObject * obj4 = 0 ; |
42821 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
42822 | PyObject * obj6 = 0 ; |
42823 | char *kwnames[] = { | |
42824 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
42825 | }; | |
42826 | ||
994141e6 | 42827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
42828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42830 | arg2 = obj1; |
42831 | { | |
42832 | arg3 = &temp3; | |
42833 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
42834 | } | |
42835 | if (obj3) { | |
42836 | { | |
42837 | arg4 = &temp4; | |
42838 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
42839 | } | |
42840 | } | |
994141e6 | 42841 | if (obj4) { |
093d3ff1 RD |
42842 | { |
42843 | arg5 = (int)(SWIG_As_int(obj4)); | |
42844 | if (SWIG_arg_fail(5)) SWIG_fail; | |
42845 | } | |
994141e6 RD |
42846 | } |
42847 | if (obj5) { | |
093d3ff1 RD |
42848 | { |
42849 | arg6 = (int)(SWIG_As_int(obj5)); | |
42850 | if (SWIG_arg_fail(6)) SWIG_fail; | |
42851 | } | |
994141e6 | 42852 | } |
d14a1e28 RD |
42853 | if (obj6) { |
42854 | arg7 = obj6; | |
42855 | } | |
42856 | { | |
42857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 42858 | result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d14a1e28 RD |
42859 | |
42860 | wxPyEndAllowThreads(__tstate); | |
42861 | if (PyErr_Occurred()) SWIG_fail; | |
42862 | } | |
d3b6e4ff | 42863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
42864 | return resultobj; |
42865 | fail: | |
42866 | return NULL; | |
42867 | } | |
42868 | ||
42869 | ||
c32bde28 | 42870 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42871 | PyObject *resultobj; |
42872 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42873 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
d3b6e4ff | 42874 | wxGBSizerItem *result; |
d14a1e28 RD |
42875 | PyObject * obj0 = 0 ; |
42876 | PyObject * obj1 = 0 ; | |
42877 | char *kwnames[] = { | |
42878 | (char *) "self",(char *) "item", NULL | |
42879 | }; | |
42880 | ||
42881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42884 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
42885 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
42886 | { |
42887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d3b6e4ff | 42888 | result = (wxGBSizerItem *)(arg1)->Add(arg2); |
d14a1e28 RD |
42889 | |
42890 | wxPyEndAllowThreads(__tstate); | |
42891 | if (PyErr_Occurred()) SWIG_fail; | |
42892 | } | |
d3b6e4ff | 42893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
42894 | return resultobj; |
42895 | fail: | |
42896 | return NULL; | |
42897 | } | |
42898 | ||
42899 | ||
84f85550 RD |
42900 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
42901 | PyObject *resultobj; | |
42902 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42903 | int arg2 ; | |
42904 | int arg3 ; | |
42905 | wxSize result; | |
42906 | PyObject * obj0 = 0 ; | |
42907 | PyObject * obj1 = 0 ; | |
42908 | PyObject * obj2 = 0 ; | |
42909 | char *kwnames[] = { | |
42910 | (char *) "self",(char *) "row",(char *) "col", NULL | |
42911 | }; | |
42912 | ||
42913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
42914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
42916 | { | |
42917 | arg2 = (int)(SWIG_As_int(obj1)); | |
42918 | if (SWIG_arg_fail(2)) SWIG_fail; | |
42919 | } | |
42920 | { | |
42921 | arg3 = (int)(SWIG_As_int(obj2)); | |
42922 | if (SWIG_arg_fail(3)) SWIG_fail; | |
42923 | } | |
84f85550 RD |
42924 | { |
42925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42926 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
42927 | ||
42928 | wxPyEndAllowThreads(__tstate); | |
42929 | if (PyErr_Occurred()) SWIG_fail; | |
42930 | } | |
42931 | { | |
42932 | wxSize * resultptr; | |
093d3ff1 | 42933 | resultptr = new wxSize((wxSize &)(result)); |
84f85550 RD |
42934 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
42935 | } | |
42936 | return resultobj; | |
42937 | fail: | |
42938 | return NULL; | |
42939 | } | |
42940 | ||
42941 | ||
c32bde28 | 42942 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42943 | PyObject *resultobj; |
42944 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42945 | wxSize result; | |
42946 | PyObject * obj0 = 0 ; | |
42947 | char *kwnames[] = { | |
42948 | (char *) "self", NULL | |
42949 | }; | |
42950 | ||
42951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
42952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42954 | { |
42955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42956 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
42957 | ||
42958 | wxPyEndAllowThreads(__tstate); | |
42959 | if (PyErr_Occurred()) SWIG_fail; | |
42960 | } | |
42961 | { | |
42962 | wxSize * resultptr; | |
093d3ff1 | 42963 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 42964 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
42965 | } |
42966 | return resultobj; | |
42967 | fail: | |
42968 | return NULL; | |
42969 | } | |
42970 | ||
42971 | ||
c32bde28 | 42972 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
42973 | PyObject *resultobj; |
42974 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
42975 | wxSize *arg2 = 0 ; | |
42976 | wxSize temp2 ; | |
42977 | PyObject * obj0 = 0 ; | |
42978 | PyObject * obj1 = 0 ; | |
42979 | char *kwnames[] = { | |
42980 | (char *) "self",(char *) "sz", NULL | |
42981 | }; | |
42982 | ||
42983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
42984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
42985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
42986 | { |
42987 | arg2 = &temp2; | |
42988 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
42989 | } | |
42990 | { | |
42991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
42992 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
42993 | ||
42994 | wxPyEndAllowThreads(__tstate); | |
42995 | if (PyErr_Occurred()) SWIG_fail; | |
42996 | } | |
42997 | Py_INCREF(Py_None); resultobj = Py_None; | |
42998 | return resultobj; | |
42999 | fail: | |
43000 | return NULL; | |
43001 | } | |
43002 | ||
43003 | ||
c32bde28 | 43004 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
43005 | PyObject *resultobj; |
43006 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43007 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43008 | wxGBPosition result; | |
43009 | PyObject * obj0 = 0 ; | |
43010 | PyObject * obj1 = 0 ; | |
43011 | ||
43012 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43015 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43017 | { |
43018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43019 | result = (arg1)->GetItemPosition(arg2); | |
43020 | ||
43021 | wxPyEndAllowThreads(__tstate); | |
43022 | if (PyErr_Occurred()) SWIG_fail; | |
43023 | } | |
43024 | { | |
43025 | wxGBPosition * resultptr; | |
093d3ff1 | 43026 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
15afbcd0 | 43027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
43028 | } |
43029 | return resultobj; | |
43030 | fail: | |
43031 | return NULL; | |
43032 | } | |
43033 | ||
43034 | ||
c32bde28 | 43035 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
43036 | PyObject *resultobj; |
43037 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43038 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43039 | wxGBPosition result; | |
43040 | PyObject * obj0 = 0 ; | |
43041 | PyObject * obj1 = 0 ; | |
43042 | ||
43043 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43046 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43047 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43048 | { |
43049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43050 | result = (arg1)->GetItemPosition(arg2); | |
43051 | ||
43052 | wxPyEndAllowThreads(__tstate); | |
43053 | if (PyErr_Occurred()) SWIG_fail; | |
43054 | } | |
43055 | { | |
43056 | wxGBPosition * resultptr; | |
093d3ff1 | 43057 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
15afbcd0 | 43058 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
43059 | } |
43060 | return resultobj; | |
43061 | fail: | |
43062 | return NULL; | |
43063 | } | |
43064 | ||
43065 | ||
c32bde28 | 43066 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
43067 | PyObject *resultobj; |
43068 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43069 | size_t arg2 ; | |
43070 | wxGBPosition result; | |
43071 | PyObject * obj0 = 0 ; | |
43072 | PyObject * obj1 = 0 ; | |
43073 | ||
43074 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43077 | { | |
43078 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
43079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43080 | } | |
d14a1e28 RD |
43081 | { |
43082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43083 | result = (arg1)->GetItemPosition(arg2); | |
43084 | ||
43085 | wxPyEndAllowThreads(__tstate); | |
43086 | if (PyErr_Occurred()) SWIG_fail; | |
43087 | } | |
43088 | { | |
43089 | wxGBPosition * resultptr; | |
093d3ff1 | 43090 | resultptr = new wxGBPosition((wxGBPosition &)(result)); |
15afbcd0 | 43091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
43092 | } |
43093 | return resultobj; | |
43094 | fail: | |
43095 | return NULL; | |
43096 | } | |
43097 | ||
43098 | ||
43099 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
43100 | int argc; | |
43101 | PyObject *argv[3]; | |
43102 | int ii; | |
43103 | ||
43104 | argc = PyObject_Length(args); | |
43105 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
43106 | argv[ii] = PyTuple_GetItem(args,ii); | |
43107 | } | |
43108 | if (argc == 2) { | |
43109 | int _v; | |
43110 | { | |
43111 | void *ptr; | |
15afbcd0 | 43112 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43113 | _v = 0; |
43114 | PyErr_Clear(); | |
43115 | } else { | |
43116 | _v = 1; | |
43117 | } | |
43118 | } | |
43119 | if (_v) { | |
43120 | { | |
43121 | void *ptr; | |
15afbcd0 | 43122 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
43123 | _v = 0; |
43124 | PyErr_Clear(); | |
43125 | } else { | |
43126 | _v = 1; | |
43127 | } | |
43128 | } | |
43129 | if (_v) { | |
43130 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
43131 | } | |
43132 | } | |
43133 | } | |
43134 | if (argc == 2) { | |
43135 | int _v; | |
43136 | { | |
43137 | void *ptr; | |
15afbcd0 | 43138 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43139 | _v = 0; |
43140 | PyErr_Clear(); | |
43141 | } else { | |
43142 | _v = 1; | |
43143 | } | |
43144 | } | |
43145 | if (_v) { | |
43146 | { | |
43147 | void *ptr; | |
15afbcd0 | 43148 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
43149 | _v = 0; |
43150 | PyErr_Clear(); | |
43151 | } else { | |
43152 | _v = 1; | |
43153 | } | |
43154 | } | |
43155 | if (_v) { | |
43156 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
43157 | } | |
43158 | } | |
43159 | } | |
43160 | if (argc == 2) { | |
43161 | int _v; | |
43162 | { | |
43163 | void *ptr; | |
15afbcd0 | 43164 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43165 | _v = 0; |
43166 | PyErr_Clear(); | |
43167 | } else { | |
43168 | _v = 1; | |
43169 | } | |
43170 | } | |
43171 | if (_v) { | |
c32bde28 | 43172 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d14a1e28 RD |
43173 | if (_v) { |
43174 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
43175 | } | |
43176 | } | |
43177 | } | |
43178 | ||
093d3ff1 | 43179 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); |
d14a1e28 RD |
43180 | return NULL; |
43181 | } | |
43182 | ||
43183 | ||
c32bde28 | 43184 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
43185 | PyObject *resultobj; |
43186 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43187 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43188 | wxGBPosition *arg3 = 0 ; | |
43189 | bool result; | |
43190 | wxGBPosition temp3 ; | |
43191 | PyObject * obj0 = 0 ; | |
43192 | PyObject * obj1 = 0 ; | |
43193 | PyObject * obj2 = 0 ; | |
43194 | ||
43195 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43198 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43199 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43200 | { |
43201 | arg3 = &temp3; | |
43202 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
43203 | } | |
43204 | { | |
43205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43206 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
43207 | ||
43208 | wxPyEndAllowThreads(__tstate); | |
43209 | if (PyErr_Occurred()) SWIG_fail; | |
43210 | } | |
4f89f6a3 RD |
43211 | { |
43212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43213 | } | |
d14a1e28 RD |
43214 | return resultobj; |
43215 | fail: | |
43216 | return NULL; | |
43217 | } | |
43218 | ||
43219 | ||
c32bde28 | 43220 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
43221 | PyObject *resultobj; |
43222 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43223 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43224 | wxGBPosition *arg3 = 0 ; | |
43225 | bool result; | |
43226 | wxGBPosition temp3 ; | |
43227 | PyObject * obj0 = 0 ; | |
43228 | PyObject * obj1 = 0 ; | |
43229 | PyObject * obj2 = 0 ; | |
43230 | ||
43231 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43234 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43235 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43236 | { |
43237 | arg3 = &temp3; | |
43238 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
43239 | } | |
43240 | { | |
43241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43242 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
43243 | ||
43244 | wxPyEndAllowThreads(__tstate); | |
43245 | if (PyErr_Occurred()) SWIG_fail; | |
43246 | } | |
4f89f6a3 RD |
43247 | { |
43248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43249 | } | |
d14a1e28 RD |
43250 | return resultobj; |
43251 | fail: | |
43252 | return NULL; | |
43253 | } | |
43254 | ||
43255 | ||
c32bde28 | 43256 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
43257 | PyObject *resultobj; |
43258 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43259 | size_t arg2 ; | |
43260 | wxGBPosition *arg3 = 0 ; | |
43261 | bool result; | |
43262 | wxGBPosition temp3 ; | |
43263 | PyObject * obj0 = 0 ; | |
43264 | PyObject * obj1 = 0 ; | |
43265 | PyObject * obj2 = 0 ; | |
43266 | ||
43267 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43270 | { | |
43271 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
43272 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43273 | } | |
d14a1e28 RD |
43274 | { |
43275 | arg3 = &temp3; | |
43276 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
43277 | } | |
43278 | { | |
43279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43280 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
43281 | ||
43282 | wxPyEndAllowThreads(__tstate); | |
43283 | if (PyErr_Occurred()) SWIG_fail; | |
43284 | } | |
4f89f6a3 RD |
43285 | { |
43286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43287 | } | |
d14a1e28 RD |
43288 | return resultobj; |
43289 | fail: | |
43290 | return NULL; | |
43291 | } | |
43292 | ||
43293 | ||
43294 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
43295 | int argc; | |
43296 | PyObject *argv[4]; | |
43297 | int ii; | |
43298 | ||
43299 | argc = PyObject_Length(args); | |
43300 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
43301 | argv[ii] = PyTuple_GetItem(args,ii); | |
43302 | } | |
43303 | if (argc == 3) { | |
43304 | int _v; | |
43305 | { | |
43306 | void *ptr; | |
15afbcd0 | 43307 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43308 | _v = 0; |
43309 | PyErr_Clear(); | |
43310 | } else { | |
43311 | _v = 1; | |
43312 | } | |
43313 | } | |
43314 | if (_v) { | |
43315 | { | |
43316 | void *ptr; | |
15afbcd0 | 43317 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
43318 | _v = 0; |
43319 | PyErr_Clear(); | |
43320 | } else { | |
43321 | _v = 1; | |
43322 | } | |
43323 | } | |
43324 | if (_v) { | |
43325 | { | |
43326 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
43327 | } | |
43328 | if (_v) { | |
43329 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
43330 | } | |
43331 | } | |
43332 | } | |
43333 | } | |
43334 | if (argc == 3) { | |
43335 | int _v; | |
43336 | { | |
43337 | void *ptr; | |
15afbcd0 | 43338 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43339 | _v = 0; |
43340 | PyErr_Clear(); | |
43341 | } else { | |
43342 | _v = 1; | |
43343 | } | |
43344 | } | |
43345 | if (_v) { | |
43346 | { | |
43347 | void *ptr; | |
15afbcd0 | 43348 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
43349 | _v = 0; |
43350 | PyErr_Clear(); | |
43351 | } else { | |
43352 | _v = 1; | |
43353 | } | |
43354 | } | |
43355 | if (_v) { | |
43356 | { | |
43357 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
43358 | } | |
43359 | if (_v) { | |
43360 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
43361 | } | |
43362 | } | |
43363 | } | |
43364 | } | |
43365 | if (argc == 3) { | |
43366 | int _v; | |
43367 | { | |
43368 | void *ptr; | |
15afbcd0 | 43369 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43370 | _v = 0; |
43371 | PyErr_Clear(); | |
43372 | } else { | |
43373 | _v = 1; | |
43374 | } | |
43375 | } | |
43376 | if (_v) { | |
c32bde28 | 43377 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d14a1e28 RD |
43378 | if (_v) { |
43379 | { | |
43380 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
43381 | } | |
43382 | if (_v) { | |
43383 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
43384 | } | |
43385 | } | |
43386 | } | |
43387 | } | |
43388 | ||
093d3ff1 | 43389 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); |
d14a1e28 RD |
43390 | return NULL; |
43391 | } | |
43392 | ||
43393 | ||
c32bde28 | 43394 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
43395 | PyObject *resultobj; |
43396 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43397 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43398 | wxGBSpan result; | |
43399 | PyObject * obj0 = 0 ; | |
43400 | PyObject * obj1 = 0 ; | |
43401 | ||
43402 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43405 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43406 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43407 | { |
43408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43409 | result = (arg1)->GetItemSpan(arg2); | |
43410 | ||
43411 | wxPyEndAllowThreads(__tstate); | |
43412 | if (PyErr_Occurred()) SWIG_fail; | |
43413 | } | |
43414 | { | |
43415 | wxGBSpan * resultptr; | |
093d3ff1 | 43416 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
15afbcd0 | 43417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
43418 | } |
43419 | return resultobj; | |
43420 | fail: | |
43421 | return NULL; | |
43422 | } | |
43423 | ||
43424 | ||
c32bde28 | 43425 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
43426 | PyObject *resultobj; |
43427 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43428 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43429 | wxGBSpan result; | |
43430 | PyObject * obj0 = 0 ; | |
43431 | PyObject * obj1 = 0 ; | |
43432 | ||
43433 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43436 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43438 | { |
43439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43440 | result = (arg1)->GetItemSpan(arg2); | |
43441 | ||
43442 | wxPyEndAllowThreads(__tstate); | |
43443 | if (PyErr_Occurred()) SWIG_fail; | |
43444 | } | |
43445 | { | |
43446 | wxGBSpan * resultptr; | |
093d3ff1 | 43447 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
15afbcd0 | 43448 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
43449 | } |
43450 | return resultobj; | |
43451 | fail: | |
43452 | return NULL; | |
43453 | } | |
43454 | ||
43455 | ||
c32bde28 | 43456 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
43457 | PyObject *resultobj; |
43458 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43459 | size_t arg2 ; | |
43460 | wxGBSpan result; | |
43461 | PyObject * obj0 = 0 ; | |
43462 | PyObject * obj1 = 0 ; | |
43463 | ||
43464 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43467 | { | |
43468 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
43469 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43470 | } | |
d14a1e28 RD |
43471 | { |
43472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43473 | result = (arg1)->GetItemSpan(arg2); | |
43474 | ||
43475 | wxPyEndAllowThreads(__tstate); | |
43476 | if (PyErr_Occurred()) SWIG_fail; | |
43477 | } | |
43478 | { | |
43479 | wxGBSpan * resultptr; | |
093d3ff1 | 43480 | resultptr = new wxGBSpan((wxGBSpan &)(result)); |
15afbcd0 | 43481 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
43482 | } |
43483 | return resultobj; | |
43484 | fail: | |
43485 | return NULL; | |
43486 | } | |
43487 | ||
43488 | ||
43489 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
43490 | int argc; | |
43491 | PyObject *argv[3]; | |
43492 | int ii; | |
43493 | ||
43494 | argc = PyObject_Length(args); | |
43495 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
43496 | argv[ii] = PyTuple_GetItem(args,ii); | |
43497 | } | |
43498 | if (argc == 2) { | |
43499 | int _v; | |
43500 | { | |
43501 | void *ptr; | |
15afbcd0 | 43502 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43503 | _v = 0; |
43504 | PyErr_Clear(); | |
43505 | } else { | |
43506 | _v = 1; | |
43507 | } | |
43508 | } | |
43509 | if (_v) { | |
43510 | { | |
43511 | void *ptr; | |
15afbcd0 | 43512 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
43513 | _v = 0; |
43514 | PyErr_Clear(); | |
43515 | } else { | |
43516 | _v = 1; | |
43517 | } | |
43518 | } | |
43519 | if (_v) { | |
43520 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
43521 | } | |
43522 | } | |
43523 | } | |
43524 | if (argc == 2) { | |
43525 | int _v; | |
43526 | { | |
43527 | void *ptr; | |
15afbcd0 | 43528 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43529 | _v = 0; |
43530 | PyErr_Clear(); | |
43531 | } else { | |
43532 | _v = 1; | |
43533 | } | |
43534 | } | |
43535 | if (_v) { | |
43536 | { | |
43537 | void *ptr; | |
15afbcd0 | 43538 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
43539 | _v = 0; |
43540 | PyErr_Clear(); | |
43541 | } else { | |
43542 | _v = 1; | |
43543 | } | |
43544 | } | |
43545 | if (_v) { | |
43546 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
43547 | } | |
43548 | } | |
43549 | } | |
43550 | if (argc == 2) { | |
43551 | int _v; | |
43552 | { | |
43553 | void *ptr; | |
15afbcd0 | 43554 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43555 | _v = 0; |
43556 | PyErr_Clear(); | |
43557 | } else { | |
43558 | _v = 1; | |
43559 | } | |
43560 | } | |
43561 | if (_v) { | |
c32bde28 | 43562 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d14a1e28 RD |
43563 | if (_v) { |
43564 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
43565 | } | |
43566 | } | |
43567 | } | |
43568 | ||
093d3ff1 | 43569 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); |
d14a1e28 RD |
43570 | return NULL; |
43571 | } | |
43572 | ||
43573 | ||
c32bde28 | 43574 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
43575 | PyObject *resultobj; |
43576 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43577 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43578 | wxGBSpan *arg3 = 0 ; | |
43579 | bool result; | |
43580 | wxGBSpan temp3 ; | |
43581 | PyObject * obj0 = 0 ; | |
43582 | PyObject * obj1 = 0 ; | |
43583 | PyObject * obj2 = 0 ; | |
43584 | ||
43585 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43588 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43589 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43590 | { |
43591 | arg3 = &temp3; | |
43592 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
43593 | } | |
43594 | { | |
43595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43596 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
43597 | ||
43598 | wxPyEndAllowThreads(__tstate); | |
43599 | if (PyErr_Occurred()) SWIG_fail; | |
43600 | } | |
4f89f6a3 RD |
43601 | { |
43602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43603 | } | |
d14a1e28 RD |
43604 | return resultobj; |
43605 | fail: | |
43606 | return NULL; | |
43607 | } | |
43608 | ||
43609 | ||
c32bde28 | 43610 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
43611 | PyObject *resultobj; |
43612 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43613 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43614 | wxGBSpan *arg3 = 0 ; | |
43615 | bool result; | |
43616 | wxGBSpan temp3 ; | |
43617 | PyObject * obj0 = 0 ; | |
43618 | PyObject * obj1 = 0 ; | |
43619 | PyObject * obj2 = 0 ; | |
43620 | ||
43621 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43624 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43625 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43626 | { |
43627 | arg3 = &temp3; | |
43628 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
43629 | } | |
43630 | { | |
43631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43632 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
43633 | ||
43634 | wxPyEndAllowThreads(__tstate); | |
43635 | if (PyErr_Occurred()) SWIG_fail; | |
43636 | } | |
4f89f6a3 RD |
43637 | { |
43638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43639 | } | |
d14a1e28 RD |
43640 | return resultobj; |
43641 | fail: | |
43642 | return NULL; | |
43643 | } | |
43644 | ||
43645 | ||
c32bde28 | 43646 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d14a1e28 RD |
43647 | PyObject *resultobj; |
43648 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43649 | size_t arg2 ; | |
43650 | wxGBSpan *arg3 = 0 ; | |
43651 | bool result; | |
43652 | wxGBSpan temp3 ; | |
43653 | PyObject * obj0 = 0 ; | |
43654 | PyObject * obj1 = 0 ; | |
43655 | PyObject * obj2 = 0 ; | |
43656 | ||
43657 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
43658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43660 | { | |
43661 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
43662 | if (SWIG_arg_fail(2)) SWIG_fail; | |
43663 | } | |
d14a1e28 RD |
43664 | { |
43665 | arg3 = &temp3; | |
43666 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
43667 | } | |
43668 | { | |
43669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43670 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
43671 | ||
43672 | wxPyEndAllowThreads(__tstate); | |
43673 | if (PyErr_Occurred()) SWIG_fail; | |
43674 | } | |
4f89f6a3 RD |
43675 | { |
43676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
43677 | } | |
d14a1e28 RD |
43678 | return resultobj; |
43679 | fail: | |
43680 | return NULL; | |
43681 | } | |
43682 | ||
43683 | ||
43684 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
43685 | int argc; | |
43686 | PyObject *argv[4]; | |
43687 | int ii; | |
43688 | ||
43689 | argc = PyObject_Length(args); | |
43690 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
43691 | argv[ii] = PyTuple_GetItem(args,ii); | |
43692 | } | |
43693 | if (argc == 3) { | |
43694 | int _v; | |
43695 | { | |
43696 | void *ptr; | |
15afbcd0 | 43697 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43698 | _v = 0; |
43699 | PyErr_Clear(); | |
43700 | } else { | |
43701 | _v = 1; | |
43702 | } | |
43703 | } | |
43704 | if (_v) { | |
43705 | { | |
43706 | void *ptr; | |
15afbcd0 | 43707 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
43708 | _v = 0; |
43709 | PyErr_Clear(); | |
43710 | } else { | |
43711 | _v = 1; | |
43712 | } | |
43713 | } | |
43714 | if (_v) { | |
43715 | { | |
43716 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
43717 | } | |
43718 | if (_v) { | |
43719 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
43720 | } | |
43721 | } | |
43722 | } | |
43723 | } | |
43724 | if (argc == 3) { | |
43725 | int _v; | |
43726 | { | |
43727 | void *ptr; | |
15afbcd0 | 43728 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43729 | _v = 0; |
43730 | PyErr_Clear(); | |
43731 | } else { | |
43732 | _v = 1; | |
43733 | } | |
43734 | } | |
43735 | if (_v) { | |
43736 | { | |
43737 | void *ptr; | |
15afbcd0 | 43738 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
43739 | _v = 0; |
43740 | PyErr_Clear(); | |
43741 | } else { | |
43742 | _v = 1; | |
43743 | } | |
43744 | } | |
43745 | if (_v) { | |
43746 | { | |
43747 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
43748 | } | |
43749 | if (_v) { | |
43750 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
43751 | } | |
43752 | } | |
43753 | } | |
43754 | } | |
43755 | if (argc == 3) { | |
43756 | int _v; | |
43757 | { | |
43758 | void *ptr; | |
15afbcd0 | 43759 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43760 | _v = 0; |
43761 | PyErr_Clear(); | |
43762 | } else { | |
43763 | _v = 1; | |
43764 | } | |
43765 | } | |
43766 | if (_v) { | |
c32bde28 | 43767 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d14a1e28 RD |
43768 | if (_v) { |
43769 | { | |
43770 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
43771 | } | |
43772 | if (_v) { | |
43773 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
43774 | } | |
43775 | } | |
43776 | } | |
43777 | } | |
43778 | ||
093d3ff1 | 43779 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); |
d14a1e28 RD |
43780 | return NULL; |
43781 | } | |
43782 | ||
43783 | ||
c32bde28 | 43784 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
43785 | PyObject *resultobj; |
43786 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43787 | wxWindow *arg2 = (wxWindow *) 0 ; | |
43788 | wxGBSizerItem *result; | |
43789 | PyObject * obj0 = 0 ; | |
43790 | PyObject * obj1 = 0 ; | |
43791 | ||
43792 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43795 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
43796 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43797 | { |
43798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43799 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
43800 | ||
43801 | wxPyEndAllowThreads(__tstate); | |
43802 | if (PyErr_Occurred()) SWIG_fail; | |
43803 | } | |
15afbcd0 | 43804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
43805 | return resultobj; |
43806 | fail: | |
43807 | return NULL; | |
43808 | } | |
43809 | ||
43810 | ||
c32bde28 | 43811 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
43812 | PyObject *resultobj; |
43813 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43814 | wxSizer *arg2 = (wxSizer *) 0 ; | |
43815 | wxGBSizerItem *result; | |
43816 | PyObject * obj0 = 0 ; | |
43817 | PyObject * obj1 = 0 ; | |
43818 | ||
43819 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43822 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0); | |
43823 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
43824 | { |
43825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43826 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
43827 | ||
43828 | wxPyEndAllowThreads(__tstate); | |
43829 | if (PyErr_Occurred()) SWIG_fail; | |
43830 | } | |
15afbcd0 | 43831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
43832 | return resultobj; |
43833 | fail: | |
43834 | return NULL; | |
43835 | } | |
43836 | ||
43837 | ||
43838 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
43839 | int argc; | |
43840 | PyObject *argv[3]; | |
43841 | int ii; | |
43842 | ||
43843 | argc = PyObject_Length(args); | |
43844 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
43845 | argv[ii] = PyTuple_GetItem(args,ii); | |
43846 | } | |
43847 | if (argc == 2) { | |
43848 | int _v; | |
43849 | { | |
43850 | void *ptr; | |
15afbcd0 | 43851 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43852 | _v = 0; |
43853 | PyErr_Clear(); | |
43854 | } else { | |
43855 | _v = 1; | |
43856 | } | |
43857 | } | |
43858 | if (_v) { | |
43859 | { | |
43860 | void *ptr; | |
15afbcd0 | 43861 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
43862 | _v = 0; |
43863 | PyErr_Clear(); | |
43864 | } else { | |
43865 | _v = 1; | |
43866 | } | |
43867 | } | |
43868 | if (_v) { | |
43869 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
43870 | } | |
43871 | } | |
43872 | } | |
43873 | if (argc == 2) { | |
43874 | int _v; | |
43875 | { | |
43876 | void *ptr; | |
15afbcd0 | 43877 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
43878 | _v = 0; |
43879 | PyErr_Clear(); | |
43880 | } else { | |
43881 | _v = 1; | |
43882 | } | |
43883 | } | |
43884 | if (_v) { | |
43885 | { | |
43886 | void *ptr; | |
15afbcd0 | 43887 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
43888 | _v = 0; |
43889 | PyErr_Clear(); | |
43890 | } else { | |
43891 | _v = 1; | |
43892 | } | |
43893 | } | |
43894 | if (_v) { | |
43895 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
43896 | } | |
43897 | } | |
43898 | } | |
43899 | ||
093d3ff1 | 43900 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_FindItem'"); |
d14a1e28 RD |
43901 | return NULL; |
43902 | } | |
43903 | ||
43904 | ||
c32bde28 | 43905 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
43906 | PyObject *resultobj; |
43907 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43908 | wxGBPosition *arg2 = 0 ; | |
43909 | wxGBSizerItem *result; | |
43910 | wxGBPosition temp2 ; | |
43911 | PyObject * obj0 = 0 ; | |
43912 | PyObject * obj1 = 0 ; | |
43913 | char *kwnames[] = { | |
43914 | (char *) "self",(char *) "pos", NULL | |
43915 | }; | |
43916 | ||
43917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
43920 | { |
43921 | arg2 = &temp2; | |
43922 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
43923 | } | |
43924 | { | |
43925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43926 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
43927 | ||
43928 | wxPyEndAllowThreads(__tstate); | |
43929 | if (PyErr_Occurred()) SWIG_fail; | |
43930 | } | |
15afbcd0 | 43931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
43932 | return resultobj; |
43933 | fail: | |
43934 | return NULL; | |
43935 | } | |
43936 | ||
43937 | ||
c32bde28 | 43938 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
43939 | PyObject *resultobj; |
43940 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43941 | wxPoint *arg2 = 0 ; | |
43942 | wxGBSizerItem *result; | |
43943 | wxPoint temp2 ; | |
43944 | PyObject * obj0 = 0 ; | |
43945 | PyObject * obj1 = 0 ; | |
43946 | char *kwnames[] = { | |
43947 | (char *) "self",(char *) "pt", NULL | |
43948 | }; | |
43949 | ||
43950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
43951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
43953 | { |
43954 | arg2 = &temp2; | |
43955 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
43956 | } | |
43957 | { | |
43958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43959 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
43960 | ||
43961 | wxPyEndAllowThreads(__tstate); | |
43962 | if (PyErr_Occurred()) SWIG_fail; | |
43963 | } | |
15afbcd0 | 43964 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
e811c8ce RD |
43965 | return resultobj; |
43966 | fail: | |
43967 | return NULL; | |
43968 | } | |
43969 | ||
43970 | ||
c32bde28 | 43971 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
43972 | PyObject *resultobj; |
43973 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
43974 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
43975 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
43976 | bool result; | |
43977 | PyObject * obj0 = 0 ; | |
43978 | PyObject * obj1 = 0 ; | |
43979 | PyObject * obj2 = 0 ; | |
248ed943 RD |
43980 | char *kwnames[] = { |
43981 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
43982 | }; | |
d14a1e28 | 43983 | |
248ed943 | 43984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
43985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
43986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
43987 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); | |
43988 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 43989 | if (obj2) { |
093d3ff1 RD |
43990 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
43991 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
43992 | } |
43993 | { | |
43994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
43995 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
43996 | ||
43997 | wxPyEndAllowThreads(__tstate); | |
43998 | if (PyErr_Occurred()) SWIG_fail; | |
43999 | } | |
4f89f6a3 RD |
44000 | { |
44001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44002 | } | |
d14a1e28 RD |
44003 | return resultobj; |
44004 | fail: | |
44005 | return NULL; | |
44006 | } | |
44007 | ||
44008 | ||
c32bde28 | 44009 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44010 | PyObject *resultobj; |
44011 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
44012 | wxGBPosition *arg2 = 0 ; | |
44013 | wxGBSpan *arg3 = 0 ; | |
44014 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
44015 | bool result; | |
44016 | wxGBPosition temp2 ; | |
44017 | wxGBSpan temp3 ; | |
44018 | PyObject * obj0 = 0 ; | |
44019 | PyObject * obj1 = 0 ; | |
44020 | PyObject * obj2 = 0 ; | |
44021 | PyObject * obj3 = 0 ; | |
248ed943 RD |
44022 | char *kwnames[] = { |
44023 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
44024 | }; | |
d14a1e28 | 44025 | |
248ed943 | 44026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
44027 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0); |
44028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44029 | { |
44030 | arg2 = &temp2; | |
44031 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
44032 | } | |
44033 | { | |
44034 | arg3 = &temp3; | |
44035 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
44036 | } | |
44037 | if (obj3) { | |
093d3ff1 RD |
44038 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0); |
44039 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
44040 | } |
44041 | { | |
44042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44043 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
44044 | ||
44045 | wxPyEndAllowThreads(__tstate); | |
44046 | if (PyErr_Occurred()) SWIG_fail; | |
44047 | } | |
4f89f6a3 RD |
44048 | { |
44049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44050 | } | |
d14a1e28 RD |
44051 | return resultobj; |
44052 | fail: | |
44053 | return NULL; | |
44054 | } | |
44055 | ||
44056 | ||
c32bde28 | 44057 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
44058 | PyObject *obj; |
44059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
44060 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
44061 | Py_INCREF(obj); | |
44062 | return Py_BuildValue((char *)""); | |
44063 | } | |
c32bde28 | 44064 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44065 | PyObject *resultobj; |
44066 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44067 | wxRelationship arg2 ; |
d14a1e28 | 44068 | wxWindow *arg3 = (wxWindow *) 0 ; |
093d3ff1 | 44069 | wxEdge arg4 ; |
d14a1e28 RD |
44070 | int arg5 = (int) 0 ; |
44071 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
44072 | PyObject * obj0 = 0 ; | |
994141e6 | 44073 | PyObject * obj1 = 0 ; |
d14a1e28 | 44074 | PyObject * obj2 = 0 ; |
994141e6 RD |
44075 | PyObject * obj3 = 0 ; |
44076 | PyObject * obj4 = 0 ; | |
44077 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
44078 | char *kwnames[] = { |
44079 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
44080 | }; | |
44081 | ||
994141e6 | 44082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
44083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44085 | { | |
44086 | arg2 = (wxRelationship)(SWIG_As_int(obj1)); | |
44087 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44088 | } | |
44089 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44090 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44091 | { | |
44092 | arg4 = (wxEdge)(SWIG_As_int(obj3)); | |
44093 | if (SWIG_arg_fail(4)) SWIG_fail; | |
44094 | } | |
994141e6 | 44095 | if (obj4) { |
093d3ff1 RD |
44096 | { |
44097 | arg5 = (int)(SWIG_As_int(obj4)); | |
44098 | if (SWIG_arg_fail(5)) SWIG_fail; | |
44099 | } | |
994141e6 RD |
44100 | } |
44101 | if (obj5) { | |
093d3ff1 RD |
44102 | { |
44103 | arg6 = (int)(SWIG_As_int(obj5)); | |
44104 | if (SWIG_arg_fail(6)) SWIG_fail; | |
44105 | } | |
994141e6 | 44106 | } |
d14a1e28 RD |
44107 | { |
44108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44109 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
44110 | ||
44111 | wxPyEndAllowThreads(__tstate); | |
44112 | if (PyErr_Occurred()) SWIG_fail; | |
44113 | } | |
44114 | Py_INCREF(Py_None); resultobj = Py_None; | |
44115 | return resultobj; | |
44116 | fail: | |
44117 | return NULL; | |
44118 | } | |
44119 | ||
44120 | ||
c32bde28 | 44121 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44122 | PyObject *resultobj; |
44123 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44124 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44125 | int arg3 = (int) 0 ; | |
44126 | PyObject * obj0 = 0 ; | |
44127 | PyObject * obj1 = 0 ; | |
994141e6 | 44128 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
44129 | char *kwnames[] = { |
44130 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
44131 | }; | |
44132 | ||
994141e6 | 44133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
44134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44136 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44137 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 44138 | if (obj2) { |
093d3ff1 RD |
44139 | { |
44140 | arg3 = (int)(SWIG_As_int(obj2)); | |
44141 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44142 | } | |
994141e6 | 44143 | } |
d14a1e28 RD |
44144 | { |
44145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44146 | (arg1)->LeftOf(arg2,arg3); | |
44147 | ||
44148 | wxPyEndAllowThreads(__tstate); | |
44149 | if (PyErr_Occurred()) SWIG_fail; | |
44150 | } | |
44151 | Py_INCREF(Py_None); resultobj = Py_None; | |
44152 | return resultobj; | |
44153 | fail: | |
44154 | return NULL; | |
44155 | } | |
44156 | ||
44157 | ||
c32bde28 | 44158 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44159 | PyObject *resultobj; |
44160 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44161 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44162 | int arg3 = (int) 0 ; | |
44163 | PyObject * obj0 = 0 ; | |
44164 | PyObject * obj1 = 0 ; | |
994141e6 | 44165 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
44166 | char *kwnames[] = { |
44167 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
44168 | }; | |
44169 | ||
994141e6 | 44170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
44171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44173 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44174 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 44175 | if (obj2) { |
093d3ff1 RD |
44176 | { |
44177 | arg3 = (int)(SWIG_As_int(obj2)); | |
44178 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44179 | } | |
994141e6 | 44180 | } |
d14a1e28 RD |
44181 | { |
44182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44183 | (arg1)->RightOf(arg2,arg3); | |
44184 | ||
44185 | wxPyEndAllowThreads(__tstate); | |
44186 | if (PyErr_Occurred()) SWIG_fail; | |
44187 | } | |
44188 | Py_INCREF(Py_None); resultobj = Py_None; | |
44189 | return resultobj; | |
44190 | fail: | |
44191 | return NULL; | |
44192 | } | |
44193 | ||
44194 | ||
c32bde28 | 44195 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44196 | PyObject *resultobj; |
44197 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44198 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44199 | int arg3 = (int) 0 ; | |
44200 | PyObject * obj0 = 0 ; | |
44201 | PyObject * obj1 = 0 ; | |
994141e6 | 44202 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
44203 | char *kwnames[] = { |
44204 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
44205 | }; | |
44206 | ||
994141e6 | 44207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
44208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44210 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44211 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 44212 | if (obj2) { |
093d3ff1 RD |
44213 | { |
44214 | arg3 = (int)(SWIG_As_int(obj2)); | |
44215 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44216 | } | |
994141e6 | 44217 | } |
d14a1e28 RD |
44218 | { |
44219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44220 | (arg1)->Above(arg2,arg3); | |
44221 | ||
44222 | wxPyEndAllowThreads(__tstate); | |
44223 | if (PyErr_Occurred()) SWIG_fail; | |
44224 | } | |
44225 | Py_INCREF(Py_None); resultobj = Py_None; | |
44226 | return resultobj; | |
44227 | fail: | |
44228 | return NULL; | |
44229 | } | |
44230 | ||
44231 | ||
c32bde28 | 44232 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44233 | PyObject *resultobj; |
44234 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44235 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44236 | int arg3 = (int) 0 ; | |
44237 | PyObject * obj0 = 0 ; | |
44238 | PyObject * obj1 = 0 ; | |
994141e6 | 44239 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
44240 | char *kwnames[] = { |
44241 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
44242 | }; | |
44243 | ||
994141e6 | 44244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
44245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44247 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44248 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 44249 | if (obj2) { |
093d3ff1 RD |
44250 | { |
44251 | arg3 = (int)(SWIG_As_int(obj2)); | |
44252 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44253 | } | |
994141e6 | 44254 | } |
d14a1e28 RD |
44255 | { |
44256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44257 | (arg1)->Below(arg2,arg3); | |
44258 | ||
44259 | wxPyEndAllowThreads(__tstate); | |
44260 | if (PyErr_Occurred()) SWIG_fail; | |
44261 | } | |
44262 | Py_INCREF(Py_None); resultobj = Py_None; | |
44263 | return resultobj; | |
44264 | fail: | |
44265 | return NULL; | |
44266 | } | |
44267 | ||
44268 | ||
c32bde28 | 44269 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44270 | PyObject *resultobj; |
44271 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44272 | wxWindow *arg2 = (wxWindow *) 0 ; | |
093d3ff1 | 44273 | wxEdge arg3 ; |
d14a1e28 RD |
44274 | int arg4 = (int) 0 ; |
44275 | PyObject * obj0 = 0 ; | |
44276 | PyObject * obj1 = 0 ; | |
994141e6 RD |
44277 | PyObject * obj2 = 0 ; |
44278 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
44279 | char *kwnames[] = { |
44280 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
44281 | }; | |
44282 | ||
994141e6 | 44283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
44284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44286 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44287 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44288 | { | |
44289 | arg3 = (wxEdge)(SWIG_As_int(obj2)); | |
44290 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44291 | } | |
994141e6 | 44292 | if (obj3) { |
093d3ff1 RD |
44293 | { |
44294 | arg4 = (int)(SWIG_As_int(obj3)); | |
44295 | if (SWIG_arg_fail(4)) SWIG_fail; | |
44296 | } | |
994141e6 | 44297 | } |
d14a1e28 RD |
44298 | { |
44299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44300 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
44301 | ||
44302 | wxPyEndAllowThreads(__tstate); | |
44303 | if (PyErr_Occurred()) SWIG_fail; | |
44304 | } | |
44305 | Py_INCREF(Py_None); resultobj = Py_None; | |
44306 | return resultobj; | |
44307 | fail: | |
44308 | return NULL; | |
44309 | } | |
44310 | ||
44311 | ||
c32bde28 | 44312 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44313 | PyObject *resultobj; |
44314 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44315 | wxWindow *arg2 = (wxWindow *) 0 ; | |
093d3ff1 | 44316 | wxEdge arg3 ; |
d14a1e28 RD |
44317 | int arg4 ; |
44318 | PyObject * obj0 = 0 ; | |
44319 | PyObject * obj1 = 0 ; | |
994141e6 RD |
44320 | PyObject * obj2 = 0 ; |
44321 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
44322 | char *kwnames[] = { |
44323 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
44324 | }; | |
44325 | ||
994141e6 | 44326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
44327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44329 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44330 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44331 | { | |
44332 | arg3 = (wxEdge)(SWIG_As_int(obj2)); | |
44333 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44334 | } | |
44335 | { | |
44336 | arg4 = (int)(SWIG_As_int(obj3)); | |
44337 | if (SWIG_arg_fail(4)) SWIG_fail; | |
44338 | } | |
d14a1e28 RD |
44339 | { |
44340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44341 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
44342 | ||
44343 | wxPyEndAllowThreads(__tstate); | |
44344 | if (PyErr_Occurred()) SWIG_fail; | |
44345 | } | |
44346 | Py_INCREF(Py_None); resultobj = Py_None; | |
44347 | return resultobj; | |
44348 | fail: | |
44349 | return NULL; | |
44350 | } | |
44351 | ||
44352 | ||
c32bde28 | 44353 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44354 | PyObject *resultobj; |
44355 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44356 | int arg2 ; | |
44357 | PyObject * obj0 = 0 ; | |
994141e6 | 44358 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
44359 | char *kwnames[] = { |
44360 | (char *) "self",(char *) "val", NULL | |
44361 | }; | |
44362 | ||
994141e6 | 44363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
44364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44366 | { | |
44367 | arg2 = (int)(SWIG_As_int(obj1)); | |
44368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44369 | } | |
d14a1e28 RD |
44370 | { |
44371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44372 | (arg1)->Absolute(arg2); | |
44373 | ||
44374 | wxPyEndAllowThreads(__tstate); | |
44375 | if (PyErr_Occurred()) SWIG_fail; | |
44376 | } | |
44377 | Py_INCREF(Py_None); resultobj = Py_None; | |
44378 | return resultobj; | |
44379 | fail: | |
44380 | return NULL; | |
44381 | } | |
44382 | ||
44383 | ||
c32bde28 | 44384 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44385 | PyObject *resultobj; |
44386 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44387 | PyObject * obj0 = 0 ; | |
44388 | char *kwnames[] = { | |
44389 | (char *) "self", NULL | |
44390 | }; | |
44391 | ||
44392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44395 | { |
44396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44397 | (arg1)->Unconstrained(); | |
44398 | ||
44399 | wxPyEndAllowThreads(__tstate); | |
44400 | if (PyErr_Occurred()) SWIG_fail; | |
44401 | } | |
44402 | Py_INCREF(Py_None); resultobj = Py_None; | |
44403 | return resultobj; | |
44404 | fail: | |
44405 | return NULL; | |
44406 | } | |
44407 | ||
44408 | ||
c32bde28 | 44409 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44410 | PyObject *resultobj; |
44411 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44412 | PyObject * obj0 = 0 ; | |
44413 | char *kwnames[] = { | |
44414 | (char *) "self", NULL | |
44415 | }; | |
44416 | ||
44417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44418 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44419 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44420 | { |
44421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44422 | (arg1)->AsIs(); | |
44423 | ||
44424 | wxPyEndAllowThreads(__tstate); | |
44425 | if (PyErr_Occurred()) SWIG_fail; | |
44426 | } | |
44427 | Py_INCREF(Py_None); resultobj = Py_None; | |
44428 | return resultobj; | |
44429 | fail: | |
44430 | return NULL; | |
44431 | } | |
44432 | ||
44433 | ||
c32bde28 | 44434 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44435 | PyObject *resultobj; |
44436 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44437 | wxWindow *result; | |
44438 | PyObject * obj0 = 0 ; | |
44439 | char *kwnames[] = { | |
44440 | (char *) "self", NULL | |
44441 | }; | |
44442 | ||
44443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44446 | { |
44447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44448 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
44449 | ||
44450 | wxPyEndAllowThreads(__tstate); | |
44451 | if (PyErr_Occurred()) SWIG_fail; | |
44452 | } | |
44453 | { | |
412d302d | 44454 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
44455 | } |
44456 | return resultobj; | |
44457 | fail: | |
44458 | return NULL; | |
44459 | } | |
44460 | ||
44461 | ||
c32bde28 | 44462 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44463 | PyObject *resultobj; |
44464 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44465 | wxEdge result; |
d14a1e28 RD |
44466 | PyObject * obj0 = 0 ; |
44467 | char *kwnames[] = { | |
44468 | (char *) "self", NULL | |
44469 | }; | |
44470 | ||
44471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44474 | { |
44475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 44476 | result = (wxEdge)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); |
d14a1e28 RD |
44477 | |
44478 | wxPyEndAllowThreads(__tstate); | |
44479 | if (PyErr_Occurred()) SWIG_fail; | |
44480 | } | |
093d3ff1 | 44481 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
44482 | return resultobj; |
44483 | fail: | |
44484 | return NULL; | |
44485 | } | |
44486 | ||
44487 | ||
c32bde28 | 44488 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44489 | PyObject *resultobj; |
44490 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44491 | wxEdge arg2 ; |
d14a1e28 | 44492 | PyObject * obj0 = 0 ; |
994141e6 | 44493 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
44494 | char *kwnames[] = { |
44495 | (char *) "self",(char *) "which", NULL | |
44496 | }; | |
44497 | ||
994141e6 | 44498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
44499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44501 | { | |
44502 | arg2 = (wxEdge)(SWIG_As_int(obj1)); | |
44503 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44504 | } | |
d14a1e28 RD |
44505 | { |
44506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44507 | (arg1)->SetEdge((wxEdge )arg2); | |
44508 | ||
44509 | wxPyEndAllowThreads(__tstate); | |
44510 | if (PyErr_Occurred()) SWIG_fail; | |
44511 | } | |
44512 | Py_INCREF(Py_None); resultobj = Py_None; | |
44513 | return resultobj; | |
44514 | fail: | |
44515 | return NULL; | |
44516 | } | |
44517 | ||
44518 | ||
c32bde28 | 44519 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44520 | PyObject *resultobj; |
44521 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44522 | int arg2 ; | |
44523 | PyObject * obj0 = 0 ; | |
994141e6 | 44524 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
44525 | char *kwnames[] = { |
44526 | (char *) "self",(char *) "v", NULL | |
44527 | }; | |
44528 | ||
994141e6 | 44529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
44530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44532 | { | |
44533 | arg2 = (int)(SWIG_As_int(obj1)); | |
44534 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44535 | } | |
d14a1e28 RD |
44536 | { |
44537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44538 | (arg1)->SetValue(arg2); | |
44539 | ||
44540 | wxPyEndAllowThreads(__tstate); | |
44541 | if (PyErr_Occurred()) SWIG_fail; | |
44542 | } | |
44543 | Py_INCREF(Py_None); resultobj = Py_None; | |
44544 | return resultobj; | |
44545 | fail: | |
44546 | return NULL; | |
44547 | } | |
44548 | ||
44549 | ||
c32bde28 | 44550 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44551 | PyObject *resultobj; |
44552 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44553 | int result; | |
44554 | PyObject * obj0 = 0 ; | |
44555 | char *kwnames[] = { | |
44556 | (char *) "self", NULL | |
44557 | }; | |
44558 | ||
44559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44562 | { |
44563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44564 | result = (int)(arg1)->GetMargin(); | |
44565 | ||
44566 | wxPyEndAllowThreads(__tstate); | |
44567 | if (PyErr_Occurred()) SWIG_fail; | |
44568 | } | |
093d3ff1 RD |
44569 | { |
44570 | resultobj = SWIG_From_int((int)(result)); | |
44571 | } | |
d14a1e28 RD |
44572 | return resultobj; |
44573 | fail: | |
44574 | return NULL; | |
44575 | } | |
44576 | ||
44577 | ||
c32bde28 | 44578 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44579 | PyObject *resultobj; |
44580 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44581 | int arg2 ; | |
44582 | PyObject * obj0 = 0 ; | |
994141e6 | 44583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
44584 | char *kwnames[] = { |
44585 | (char *) "self",(char *) "m", NULL | |
44586 | }; | |
44587 | ||
994141e6 | 44588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
44589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44591 | { | |
44592 | arg2 = (int)(SWIG_As_int(obj1)); | |
44593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44594 | } | |
d14a1e28 RD |
44595 | { |
44596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44597 | (arg1)->SetMargin(arg2); | |
44598 | ||
44599 | wxPyEndAllowThreads(__tstate); | |
44600 | if (PyErr_Occurred()) SWIG_fail; | |
44601 | } | |
44602 | Py_INCREF(Py_None); resultobj = Py_None; | |
44603 | return resultobj; | |
44604 | fail: | |
44605 | return NULL; | |
44606 | } | |
44607 | ||
44608 | ||
c32bde28 | 44609 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44610 | PyObject *resultobj; |
44611 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44612 | int result; | |
44613 | PyObject * obj0 = 0 ; | |
44614 | char *kwnames[] = { | |
44615 | (char *) "self", NULL | |
44616 | }; | |
44617 | ||
44618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44621 | { |
44622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44623 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
44624 | ||
44625 | wxPyEndAllowThreads(__tstate); | |
44626 | if (PyErr_Occurred()) SWIG_fail; | |
44627 | } | |
093d3ff1 RD |
44628 | { |
44629 | resultobj = SWIG_From_int((int)(result)); | |
44630 | } | |
d14a1e28 RD |
44631 | return resultobj; |
44632 | fail: | |
44633 | return NULL; | |
44634 | } | |
44635 | ||
44636 | ||
c32bde28 | 44637 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44638 | PyObject *resultobj; |
44639 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44640 | int result; | |
44641 | PyObject * obj0 = 0 ; | |
44642 | char *kwnames[] = { | |
44643 | (char *) "self", NULL | |
44644 | }; | |
44645 | ||
44646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44649 | { |
44650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44651 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
44652 | ||
44653 | wxPyEndAllowThreads(__tstate); | |
44654 | if (PyErr_Occurred()) SWIG_fail; | |
44655 | } | |
093d3ff1 RD |
44656 | { |
44657 | resultobj = SWIG_From_int((int)(result)); | |
44658 | } | |
d14a1e28 RD |
44659 | return resultobj; |
44660 | fail: | |
44661 | return NULL; | |
44662 | } | |
44663 | ||
44664 | ||
c32bde28 | 44665 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44666 | PyObject *resultobj; |
44667 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44668 | int result; | |
44669 | PyObject * obj0 = 0 ; | |
44670 | char *kwnames[] = { | |
44671 | (char *) "self", NULL | |
44672 | }; | |
44673 | ||
44674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44677 | { |
44678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44679 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
44680 | ||
44681 | wxPyEndAllowThreads(__tstate); | |
44682 | if (PyErr_Occurred()) SWIG_fail; | |
44683 | } | |
093d3ff1 RD |
44684 | { |
44685 | resultobj = SWIG_From_int((int)(result)); | |
44686 | } | |
d14a1e28 RD |
44687 | return resultobj; |
44688 | fail: | |
44689 | return NULL; | |
44690 | } | |
44691 | ||
44692 | ||
c32bde28 | 44693 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44694 | PyObject *resultobj; |
44695 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44696 | bool result; | |
44697 | PyObject * obj0 = 0 ; | |
44698 | char *kwnames[] = { | |
44699 | (char *) "self", NULL | |
44700 | }; | |
44701 | ||
44702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44705 | { |
44706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44707 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
44708 | ||
44709 | wxPyEndAllowThreads(__tstate); | |
44710 | if (PyErr_Occurred()) SWIG_fail; | |
44711 | } | |
4f89f6a3 RD |
44712 | { |
44713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44714 | } | |
d14a1e28 RD |
44715 | return resultobj; |
44716 | fail: | |
44717 | return NULL; | |
44718 | } | |
44719 | ||
44720 | ||
c32bde28 | 44721 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44722 | PyObject *resultobj; |
44723 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44724 | bool arg2 ; | |
44725 | PyObject * obj0 = 0 ; | |
44726 | PyObject * obj1 = 0 ; | |
44727 | char *kwnames[] = { | |
44728 | (char *) "self",(char *) "d", NULL | |
44729 | }; | |
44730 | ||
44731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44734 | { | |
44735 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
44736 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44737 | } | |
d14a1e28 RD |
44738 | { |
44739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44740 | (arg1)->SetDone(arg2); | |
44741 | ||
44742 | wxPyEndAllowThreads(__tstate); | |
44743 | if (PyErr_Occurred()) SWIG_fail; | |
44744 | } | |
44745 | Py_INCREF(Py_None); resultobj = Py_None; | |
44746 | return resultobj; | |
44747 | fail: | |
44748 | return NULL; | |
44749 | } | |
44750 | ||
44751 | ||
c32bde28 | 44752 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44753 | PyObject *resultobj; |
44754 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44755 | wxRelationship result; |
d14a1e28 RD |
44756 | PyObject * obj0 = 0 ; |
44757 | char *kwnames[] = { | |
44758 | (char *) "self", NULL | |
44759 | }; | |
44760 | ||
44761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44764 | { |
44765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 44766 | result = (wxRelationship)(arg1)->GetRelationship(); |
d14a1e28 RD |
44767 | |
44768 | wxPyEndAllowThreads(__tstate); | |
44769 | if (PyErr_Occurred()) SWIG_fail; | |
44770 | } | |
093d3ff1 | 44771 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
44772 | return resultobj; |
44773 | fail: | |
44774 | return NULL; | |
44775 | } | |
44776 | ||
44777 | ||
c32bde28 | 44778 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44779 | PyObject *resultobj; |
44780 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44781 | wxRelationship arg2 ; |
d14a1e28 | 44782 | PyObject * obj0 = 0 ; |
994141e6 | 44783 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
44784 | char *kwnames[] = { |
44785 | (char *) "self",(char *) "r", NULL | |
44786 | }; | |
44787 | ||
994141e6 | 44788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
44789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44791 | { | |
44792 | arg2 = (wxRelationship)(SWIG_As_int(obj1)); | |
44793 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44794 | } | |
d14a1e28 RD |
44795 | { |
44796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44797 | (arg1)->SetRelationship((wxRelationship )arg2); | |
44798 | ||
44799 | wxPyEndAllowThreads(__tstate); | |
44800 | if (PyErr_Occurred()) SWIG_fail; | |
44801 | } | |
44802 | Py_INCREF(Py_None); resultobj = Py_None; | |
44803 | return resultobj; | |
44804 | fail: | |
44805 | return NULL; | |
44806 | } | |
44807 | ||
44808 | ||
c32bde28 | 44809 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44810 | PyObject *resultobj; |
44811 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44812 | wxWindow *arg2 = (wxWindow *) 0 ; | |
44813 | bool result; | |
44814 | PyObject * obj0 = 0 ; | |
44815 | PyObject * obj1 = 0 ; | |
44816 | char *kwnames[] = { | |
44817 | (char *) "self",(char *) "otherW", NULL | |
44818 | }; | |
44819 | ||
44820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
44821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44823 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44824 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
44825 | { |
44826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44827 | result = (bool)(arg1)->ResetIfWin(arg2); | |
44828 | ||
44829 | wxPyEndAllowThreads(__tstate); | |
44830 | if (PyErr_Occurred()) SWIG_fail; | |
44831 | } | |
4f89f6a3 RD |
44832 | { |
44833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44834 | } | |
d14a1e28 RD |
44835 | return resultobj; |
44836 | fail: | |
44837 | return NULL; | |
44838 | } | |
44839 | ||
44840 | ||
c32bde28 | 44841 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44842 | PyObject *resultobj; |
44843 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
44844 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
44845 | wxWindow *arg3 = (wxWindow *) 0 ; | |
44846 | bool result; | |
44847 | PyObject * obj0 = 0 ; | |
44848 | PyObject * obj1 = 0 ; | |
44849 | PyObject * obj2 = 0 ; | |
44850 | char *kwnames[] = { | |
44851 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
44852 | }; | |
44853 | ||
44854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
44855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44857 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); | |
44858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44859 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44860 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
44861 | { |
44862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44863 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
44864 | ||
44865 | wxPyEndAllowThreads(__tstate); | |
44866 | if (PyErr_Occurred()) SWIG_fail; | |
44867 | } | |
4f89f6a3 RD |
44868 | { |
44869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
44870 | } | |
d14a1e28 RD |
44871 | return resultobj; |
44872 | fail: | |
44873 | return NULL; | |
44874 | } | |
44875 | ||
44876 | ||
c32bde28 | 44877 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44878 | PyObject *resultobj; |
44879 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
093d3ff1 | 44880 | wxEdge arg2 ; |
d14a1e28 RD |
44881 | wxWindow *arg3 = (wxWindow *) 0 ; |
44882 | wxWindow *arg4 = (wxWindow *) 0 ; | |
44883 | int result; | |
44884 | PyObject * obj0 = 0 ; | |
994141e6 | 44885 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
44886 | PyObject * obj2 = 0 ; |
44887 | PyObject * obj3 = 0 ; | |
44888 | char *kwnames[] = { | |
44889 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
44890 | }; | |
44891 | ||
994141e6 | 44892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
44893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0); |
44894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44895 | { | |
44896 | arg2 = (wxEdge)(SWIG_As_int(obj1)); | |
44897 | if (SWIG_arg_fail(2)) SWIG_fail; | |
44898 | } | |
44899 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44900 | if (SWIG_arg_fail(3)) SWIG_fail; | |
44901 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
44902 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
44903 | { |
44904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44905 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
44906 | ||
44907 | wxPyEndAllowThreads(__tstate); | |
44908 | if (PyErr_Occurred()) SWIG_fail; | |
44909 | } | |
093d3ff1 RD |
44910 | { |
44911 | resultobj = SWIG_From_int((int)(result)); | |
44912 | } | |
d14a1e28 RD |
44913 | return resultobj; |
44914 | fail: | |
44915 | return NULL; | |
44916 | } | |
44917 | ||
44918 | ||
c32bde28 | 44919 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
44920 | PyObject *obj; |
44921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
44922 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
44923 | Py_INCREF(obj); | |
44924 | return Py_BuildValue((char *)""); | |
44925 | } | |
c32bde28 | 44926 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44927 | PyObject *resultobj; |
44928 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44929 | wxIndividualLayoutConstraint *result; | |
44930 | PyObject * obj0 = 0 ; | |
44931 | char *kwnames[] = { | |
44932 | (char *) "self", NULL | |
44933 | }; | |
44934 | ||
44935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44938 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
44939 | ||
15afbcd0 | 44940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
44941 | return resultobj; |
44942 | fail: | |
44943 | return NULL; | |
44944 | } | |
44945 | ||
44946 | ||
c32bde28 | 44947 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44948 | PyObject *resultobj; |
44949 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44950 | wxIndividualLayoutConstraint *result; | |
44951 | PyObject * obj0 = 0 ; | |
44952 | char *kwnames[] = { | |
44953 | (char *) "self", NULL | |
44954 | }; | |
44955 | ||
44956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44959 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
44960 | ||
15afbcd0 | 44961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
44962 | return resultobj; |
44963 | fail: | |
44964 | return NULL; | |
44965 | } | |
44966 | ||
44967 | ||
c32bde28 | 44968 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44969 | PyObject *resultobj; |
44970 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44971 | wxIndividualLayoutConstraint *result; | |
44972 | PyObject * obj0 = 0 ; | |
44973 | char *kwnames[] = { | |
44974 | (char *) "self", NULL | |
44975 | }; | |
44976 | ||
44977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
44979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
44980 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
44981 | ||
15afbcd0 | 44982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
44983 | return resultobj; |
44984 | fail: | |
44985 | return NULL; | |
44986 | } | |
44987 | ||
44988 | ||
c32bde28 | 44989 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
44990 | PyObject *resultobj; |
44991 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
44992 | wxIndividualLayoutConstraint *result; | |
44993 | PyObject * obj0 = 0 ; | |
44994 | char *kwnames[] = { | |
44995 | (char *) "self", NULL | |
44996 | }; | |
44997 | ||
44998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
44999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
45001 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
45002 | ||
15afbcd0 | 45003 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
45004 | return resultobj; |
45005 | fail: | |
45006 | return NULL; | |
45007 | } | |
45008 | ||
45009 | ||
c32bde28 | 45010 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
45011 | PyObject *resultobj; |
45012 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45013 | wxIndividualLayoutConstraint *result; | |
45014 | PyObject * obj0 = 0 ; | |
45015 | char *kwnames[] = { | |
45016 | (char *) "self", NULL | |
45017 | }; | |
45018 | ||
45019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
45022 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
45023 | ||
15afbcd0 | 45024 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
45025 | return resultobj; |
45026 | fail: | |
45027 | return NULL; | |
45028 | } | |
45029 | ||
45030 | ||
c32bde28 | 45031 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
45032 | PyObject *resultobj; |
45033 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45034 | wxIndividualLayoutConstraint *result; | |
45035 | PyObject * obj0 = 0 ; | |
45036 | char *kwnames[] = { | |
45037 | (char *) "self", NULL | |
45038 | }; | |
45039 | ||
45040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
45043 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
45044 | ||
15afbcd0 | 45045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
45046 | return resultobj; |
45047 | fail: | |
45048 | return NULL; | |
45049 | } | |
45050 | ||
45051 | ||
c32bde28 | 45052 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
45053 | PyObject *resultobj; |
45054 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45055 | wxIndividualLayoutConstraint *result; | |
45056 | PyObject * obj0 = 0 ; | |
45057 | char *kwnames[] = { | |
45058 | (char *) "self", NULL | |
45059 | }; | |
45060 | ||
45061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
45064 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
45065 | ||
15afbcd0 | 45066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
45067 | return resultobj; |
45068 | fail: | |
45069 | return NULL; | |
45070 | } | |
45071 | ||
45072 | ||
c32bde28 | 45073 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
45074 | PyObject *resultobj; |
45075 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45076 | wxIndividualLayoutConstraint *result; | |
45077 | PyObject * obj0 = 0 ; | |
45078 | char *kwnames[] = { | |
45079 | (char *) "self", NULL | |
45080 | }; | |
45081 | ||
45082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
45085 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
45086 | ||
15afbcd0 | 45087 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
45088 | return resultobj; |
45089 | fail: | |
45090 | return NULL; | |
45091 | } | |
45092 | ||
45093 | ||
c32bde28 | 45094 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
45095 | PyObject *resultobj; |
45096 | wxLayoutConstraints *result; | |
45097 | char *kwnames[] = { | |
45098 | NULL | |
45099 | }; | |
45100 | ||
45101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
45102 | { | |
45103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45104 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
45105 | ||
45106 | wxPyEndAllowThreads(__tstate); | |
45107 | if (PyErr_Occurred()) SWIG_fail; | |
45108 | } | |
15afbcd0 | 45109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
45110 | return resultobj; |
45111 | fail: | |
45112 | return NULL; | |
45113 | } | |
45114 | ||
45115 | ||
c32bde28 | 45116 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
45117 | PyObject *resultobj; |
45118 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45119 | wxWindow *arg2 = (wxWindow *) 0 ; | |
45120 | int *arg3 = (int *) 0 ; | |
45121 | bool result; | |
45122 | int temp3 ; | |
c32bde28 | 45123 | int res3 = 0 ; |
d14a1e28 RD |
45124 | PyObject * obj0 = 0 ; |
45125 | PyObject * obj1 = 0 ; | |
45126 | char *kwnames[] = { | |
45127 | (char *) "self",(char *) "win", NULL | |
45128 | }; | |
45129 | ||
c32bde28 | 45130 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 45131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
45132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
45134 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
45135 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
45136 | { |
45137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45138 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
45139 | ||
45140 | wxPyEndAllowThreads(__tstate); | |
45141 | if (PyErr_Occurred()) SWIG_fail; | |
45142 | } | |
4f89f6a3 RD |
45143 | { |
45144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45145 | } | |
c32bde28 RD |
45146 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
45147 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
45148 | return resultobj; |
45149 | fail: | |
45150 | return NULL; | |
45151 | } | |
45152 | ||
45153 | ||
c32bde28 | 45154 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
45155 | PyObject *resultobj; |
45156 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
45157 | bool result; | |
45158 | PyObject * obj0 = 0 ; | |
45159 | char *kwnames[] = { | |
45160 | (char *) "self", NULL | |
45161 | }; | |
45162 | ||
45163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
45164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0); |
45165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
45166 | { |
45167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
45168 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
45169 | ||
45170 | wxPyEndAllowThreads(__tstate); | |
45171 | if (PyErr_Occurred()) SWIG_fail; | |
45172 | } | |
4f89f6a3 RD |
45173 | { |
45174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
45175 | } | |
d14a1e28 RD |
45176 | return resultobj; |
45177 | fail: | |
45178 | return NULL; | |
45179 | } | |
45180 | ||
45181 | ||
c32bde28 | 45182 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
45183 | PyObject *obj; |
45184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
45185 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
45186 | Py_INCREF(obj); | |
45187 | return Py_BuildValue((char *)""); | |
45188 | } | |
45189 | static PyMethodDef SwigMethods[] = { | |
093d3ff1 RD |
45190 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL}, |
45191 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL}, | |
45192 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45193 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45194 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL}, | |
45195 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45196 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45197 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45198 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45199 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45200 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45201 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45202 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45203 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45204 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45205 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45206 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45207 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45208 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45209 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45210 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45211 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45212 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45213 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45214 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45215 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL}, | |
45216 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45217 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45218 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45219 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45220 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45221 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45222 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45223 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45224 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45225 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45226 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45227 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45228 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL}, | |
45229 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45230 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45231 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45232 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45233 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45234 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45235 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45236 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45237 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45238 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45239 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45240 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45241 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45242 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45243 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL}, | |
45244 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45245 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45246 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45247 | { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45248 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45249 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45250 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45251 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45252 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45253 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45254 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45255 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45256 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45257 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45258 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45259 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45260 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
aff4cc5c | 45261 | { (char *)"Rect_IsEmpty", (PyCFunction) _wrap_Rect_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45262 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, |
45263 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45264 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45265 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45266 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45267 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45268 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45269 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45270 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45271 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45272 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45273 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45274 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45275 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45276 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45277 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45278 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45279 | { (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45280 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45281 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45282 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45283 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45284 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45285 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45286 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45287 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45288 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45289 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45290 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45291 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45292 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45293 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45294 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45295 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45296 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45297 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL}, | |
45298 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45299 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45300 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45301 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45302 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45303 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45304 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45305 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45306 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45307 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45308 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45309 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45310 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45311 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45312 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45313 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45314 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45315 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45316 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45317 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45318 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45319 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45320 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45321 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45322 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45323 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45324 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45325 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL}, | |
45326 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45327 | { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45328 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45329 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45330 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45331 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45332 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45333 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45334 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45335 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45336 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45337 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45338 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45339 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45340 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45341 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45342 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45343 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45344 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL}, | |
45345 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45346 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL}, | |
45347 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45348 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45349 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45350 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45351 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45352 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45353 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45354 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL}, | |
45355 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL}, | |
45356 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45357 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45358 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45359 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45360 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45361 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45362 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45363 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45364 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45365 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45366 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45367 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL}, | |
45368 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45369 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45370 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45371 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45372 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45373 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45374 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45375 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45376 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45377 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45378 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45379 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL}, | |
45380 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45381 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45382 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45383 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL}, | |
45384 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45385 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45386 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45387 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45388 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45389 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL}, | |
45390 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45391 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45392 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45393 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45394 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45395 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45396 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45397 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45398 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45399 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL}, | |
45400 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45401 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45402 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45403 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45404 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45405 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45406 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45407 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45408 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45409 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL}, | |
45410 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45411 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45412 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
f1cbd8fa RD |
45413 | { (char *)"ImageHistogram_GetCount", (PyCFunction) _wrap_ImageHistogram_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
45414 | { (char *)"ImageHistogram_GetCountRGB", (PyCFunction) _wrap_ImageHistogram_GetCountRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45415 | { (char *)"ImageHistogram_GetCountColour", (PyCFunction) _wrap_ImageHistogram_GetCountColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
45416 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL}, |
45417 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45418 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45419 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45420 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45421 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45422 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45423 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45424 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45425 | { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45426 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45427 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45428 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45429 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45430 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
aff4cc5c | 45431 | { (char *)"Image_Resize", (PyCFunction) _wrap_Image_Resize, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 45432 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, |
aff4cc5c | 45433 | { (char *)"Image_SetRGBRect", (PyCFunction) _wrap_Image_SetRGBRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45434 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL}, |
45435 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45436 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45437 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45438 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45439 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
68350608 | 45440 | { (char *)"Image_InitAlpha", (PyCFunction) _wrap_Image_InitAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45441 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
45442 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45443 | { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45444 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45445 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45446 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45447 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45448 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45449 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45450 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45451 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45452 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45453 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45454 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45455 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45456 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45457 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45458 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
aff4cc5c | 45459 | { (char *)"Image_Size", (PyCFunction) _wrap_Image_Size, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45460 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, |
45461 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45462 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45463 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45464 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45465 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45466 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45467 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45468 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45469 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45470 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
aff4cc5c | 45471 | { (char *)"Image_GetOrFindMaskColour", (PyCFunction) _wrap_Image_GetOrFindMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
45472 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL}, |
45473 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45474 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45475 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45476 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45477 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45478 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45479 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45480 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45481 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45482 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45483 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45484 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45485 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45486 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45487 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45488 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45489 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45490 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45491 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45492 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45493 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45494 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45495 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL}, | |
45496 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45497 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL}, | |
45498 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45499 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL}, | |
45500 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45501 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL}, | |
45502 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45503 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL}, | |
45504 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45505 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL}, | |
45506 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45507 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL}, | |
45508 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45509 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL}, | |
45510 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45511 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL}, | |
45512 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45513 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL}, | |
45514 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45515 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL}, | |
45516 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45517 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL}, | |
45518 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45519 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL}, | |
45520 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45521 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45522 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45523 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45524 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45525 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45526 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45527 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45528 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45529 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45530 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45531 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45532 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45533 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL}, | |
45534 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45535 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45536 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45537 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45538 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45539 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45540 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45541 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45542 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45543 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45544 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45545 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45546 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45547 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45548 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45549 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45550 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45551 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL}, | |
45552 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45553 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45554 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL}, | |
45555 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45556 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45557 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL}, | |
45558 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45559 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45560 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45561 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45562 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45563 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45564 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45565 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45566 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45567 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45568 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45569 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL}, | |
45570 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45571 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45572 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45573 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45574 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL}, | |
45575 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45576 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45577 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45578 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45579 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45580 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL}, | |
45581 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45582 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45583 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45584 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45585 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45586 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL}, | |
45587 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45588 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45589 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45590 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45591 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45592 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45593 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45594 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45595 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45596 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45597 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45598 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45599 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45600 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45601 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45602 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45603 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45604 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45605 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45606 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45607 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45608 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45609 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45610 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45611 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45612 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45613 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45614 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45615 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45616 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45617 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45618 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45619 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45620 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45621 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45622 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45623 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45624 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45625 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45626 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45627 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45628 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45629 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45630 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45631 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45632 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45633 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45634 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45635 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45636 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45637 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45638 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45639 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45640 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45641 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45642 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45643 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45644 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45645 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45646 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45647 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45648 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45649 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL}, | |
45650 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45651 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45652 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45653 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45654 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45655 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45656 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL}, | |
45657 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45658 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45659 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45660 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45661 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45662 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45663 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45664 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45665 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45666 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45667 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45668 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45669 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45670 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45671 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45672 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45673 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45674 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45675 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45676 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45677 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45678 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45679 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45680 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45681 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45682 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45683 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45684 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45685 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45686 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45687 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45688 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45689 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45690 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45691 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45692 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL}, | |
45693 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45694 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45695 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45696 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45697 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45698 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45699 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45700 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45701 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45702 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL}, | |
45703 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45704 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45705 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45706 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45707 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
45708 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL}, |
45709 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45710 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL}, | |
45711 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45712 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL}, | |
45713 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45714 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45715 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL}, | |
45716 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45717 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45718 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45719 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL}, | |
45720 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45721 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45722 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL}, | |
45723 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45724 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45725 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL}, | |
45726 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45727 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL}, | |
45728 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45729 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45730 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45731 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45732 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL}, | |
45733 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45734 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45735 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45736 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45737 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45738 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45739 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45740 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL}, | |
45741 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45742 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45743 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45744 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL}, | |
45745 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45746 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45747 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL}, | |
45748 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45749 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL}, | |
45750 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45751 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45752 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45753 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL}, | |
45754 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45755 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45756 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45757 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45758 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45759 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45760 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45761 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45762 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45763 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45764 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45765 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45766 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45767 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45768 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45769 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45770 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL}, | |
45771 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45772 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL}, | |
45773 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45774 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45775 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL}, | |
45776 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45777 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL}, | |
45778 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45779 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45780 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45781 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL}, | |
45782 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45783 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45784 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45785 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL}, | |
45786 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45787 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45788 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45789 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45790 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
68350608 RD |
45791 | { (char *)"NavigationKeyEvent_IsFromTab", (PyCFunction) _wrap_NavigationKeyEvent_IsFromTab, METH_VARARGS | METH_KEYWORDS, NULL}, |
45792 | { (char *)"NavigationKeyEvent_SetFromTab", (PyCFunction) _wrap_NavigationKeyEvent_SetFromTab, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
45793 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
45794 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45795 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45796 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL}, | |
45797 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45798 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45799 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL}, | |
45800 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45801 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45802 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL}, | |
45803 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45804 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45805 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45806 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL}, | |
45807 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45808 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45809 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45810 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45811 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45812 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45813 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL}, | |
45814 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45815 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45816 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45817 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45818 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL}, | |
45819 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45820 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45821 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45822 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45823 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL}, | |
53aa7709 RD |
45824 | { (char *)"new_DateEvent", (PyCFunction) _wrap_new_DateEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
45825 | { (char *)"DateEvent_GetDate", (PyCFunction) _wrap_DateEvent_GetDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45826 | { (char *)"DateEvent_SetDate", (PyCFunction) _wrap_DateEvent_SetDate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45827 | { (char *)"DateEvent_swigregister", DateEvent_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
45828 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL}, |
45829 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45830 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45831 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45832 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45833 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45834 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45835 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45836 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45837 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45838 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45839 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45840 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45841 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45842 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45843 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45844 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45845 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45846 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45847 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45848 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45849 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45850 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45851 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45852 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45853 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45854 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45855 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45856 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45857 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45858 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45859 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45860 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45861 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45862 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45863 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45864 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45865 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45866 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45867 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45868 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45869 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45870 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45871 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45872 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL}, | |
45873 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45874 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45875 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45876 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45877 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45878 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45879 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45880 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45881 | { (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45882 | { (char *)"GetDefaultPyEncoding", (PyCFunction) _wrap_GetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45883 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45884 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45885 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45886 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45887 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45888 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45889 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45890 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45891 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45892 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL}, | |
45893 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45894 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45895 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45896 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45897 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45898 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45899 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL}, | |
45900 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45901 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45902 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45903 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL}, | |
45904 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45905 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45906 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45907 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45908 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45909 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45910 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45911 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45912 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45913 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL}, | |
45914 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45915 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45916 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45917 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45918 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45919 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45920 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45921 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45922 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45923 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45924 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45925 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45926 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45927 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45928 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45929 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45930 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45931 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45932 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45933 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45934 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45935 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45936 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45937 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45938 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45939 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45940 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45941 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45942 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45943 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45944 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45945 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45946 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45947 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45948 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45949 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45950 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45951 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45952 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45953 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45954 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45955 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45956 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45957 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45958 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45959 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45960 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45961 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45962 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45963 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45964 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45965 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45966 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45967 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45968 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45969 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45970 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45971 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45972 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45973 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45974 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45975 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45976 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45977 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45978 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45979 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45980 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45981 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45982 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45983 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45984 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45985 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45986 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45987 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45988 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45989 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45990 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45991 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45992 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45993 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45994 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45995 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45996 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45997 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45998 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
45999 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46000 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46001 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46002 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46003 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46004 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46005 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46006 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46007 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46008 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46009 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46010 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46011 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46012 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46013 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46014 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46015 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46016 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46017 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46018 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46019 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46020 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46021 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46022 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46023 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46024 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46025 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46026 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46027 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46028 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46029 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46030 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46031 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46032 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46033 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46034 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46035 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46036 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46037 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46038 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46039 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46040 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46041 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46042 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46043 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46044 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46045 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46046 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46047 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46048 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46049 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46050 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46051 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46052 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46053 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46054 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46055 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46056 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46057 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46058 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46059 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46060 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46061 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46062 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
562ecc31 RD |
46063 | { (char *)"Window_InheritsBackgroundColour", (PyCFunction) _wrap_Window_InheritsBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
46064 | { (char *)"Window_UseBgCol", (PyCFunction) _wrap_Window_UseBgCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
46065 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
46066 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
51b83b37 | 46067 | { (char *)"Window_HasTransparentBackground", (PyCFunction) _wrap_Window_HasTransparentBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
46068 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, |
46069 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46070 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46071 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46072 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46073 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46074 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46075 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46076 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46077 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46078 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46079 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46080 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46081 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46082 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46083 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46084 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46085 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL}, | |
46086 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46087 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46088 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46089 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46090 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46091 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46092 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46093 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46094 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46095 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46096 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46097 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46098 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46099 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46100 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46101 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46102 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46103 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46104 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46105 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46106 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46107 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46108 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46109 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46110 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46111 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46112 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46113 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46114 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46115 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46116 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46117 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46118 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46119 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46120 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46121 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46122 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46123 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46124 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46125 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL}, | |
46126 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46127 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46128 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46129 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46130 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46131 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46132 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46133 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46134 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46135 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46136 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46137 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46138 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46139 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL}, | |
46140 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46141 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46142 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL}, | |
46143 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46144 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46145 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46146 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46147 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46148 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46149 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46150 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46151 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46152 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46153 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46154 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46155 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46156 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46157 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46158 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46159 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46160 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46161 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46162 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46163 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46164 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46165 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46166 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46167 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46168 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46169 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46170 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46171 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46172 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46173 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46174 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46175 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46176 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46177 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46178 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46179 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46180 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46181 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46182 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46183 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46184 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46185 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46186 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46187 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46188 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46189 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46190 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46191 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46192 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46193 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46194 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46195 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46196 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46197 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL}, | |
46198 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46199 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46200 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46201 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46202 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46203 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46204 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46205 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46206 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46207 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46208 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46209 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46210 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46211 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46212 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46213 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46214 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46215 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46216 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46217 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46218 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46219 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46220 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46221 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46222 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46223 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46224 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL}, | |
46225 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46226 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46227 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46228 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46229 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46230 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46231 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46232 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46233 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46234 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46235 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46236 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46237 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46238 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46239 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46240 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46241 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46242 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46243 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46244 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46245 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46246 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46247 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46248 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46249 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46250 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c1280d1e RD |
46251 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
46252 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46253 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46254 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46255 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46256 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46257 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46258 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46259 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46260 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46261 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 46262 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL}, |
c1280d1e RD |
46263 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, |
46264 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46265 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
46266 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
46267 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46268 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL}, | |
46269 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46270 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46271 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46272 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46273 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46274 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46275 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46276 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL}, | |
46277 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46278 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46279 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46280 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46281 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
53aa7709 RD |
46282 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, |
46283 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
46284 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
46285 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46286 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46287 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46288 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46289 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
53aa7709 | 46290 | { (char *)"ItemContainer_SetSelection", (PyCFunction) _wrap_ItemContainer_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 46291 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
53aa7709 | 46292 | { (char *)"ItemContainer_SetStringSelection", (PyCFunction) _wrap_ItemContainer_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 46293 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
53aa7709 | 46294 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
46295 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL}, |
46296 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL}, | |
46297 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46298 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46299 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46300 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46301 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46302 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46303 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46304 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46305 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46306 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46307 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46308 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46309 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46310 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46311 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46312 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46313 | { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46314 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46315 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46316 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46317 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46318 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46319 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46320 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46321 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46322 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46323 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46324 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46325 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46326 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46327 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46328 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46329 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46330 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46331 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46332 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46333 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL}, | |
46334 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46335 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46336 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46337 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46338 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46339 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46340 | { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46341 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46342 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46343 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46344 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46345 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46346 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46347 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46348 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46349 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46350 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46351 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46352 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46353 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46354 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46355 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46356 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46357 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46358 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46359 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46360 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46361 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46362 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46363 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL}, | |
46364 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46365 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46366 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL}, | |
46367 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46368 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46369 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46370 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL}, | |
46371 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46372 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46373 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL}, | |
46374 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46375 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46376 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46377 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46378 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46379 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46380 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46381 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46382 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46383 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL}, | |
46384 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46385 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46386 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46387 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46388 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46389 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46390 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46391 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46392 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46393 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46394 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46395 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL}, | |
e505d15e RD |
46396 | { (char *)"new_StdDialogButtonSizer", (PyCFunction) _wrap_new_StdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
46397 | { (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
53aa7709 | 46398 | { (char *)"StdDialogButtonSizer_Realize", (PyCFunction) _wrap_StdDialogButtonSizer_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, |
51b83b37 RD |
46399 | { (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
46400 | { (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46401 | { (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
e505d15e RD |
46402 | { (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
46403 | { (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetApplyButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46404 | { (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46405 | { (char *)"StdDialogButtonSizer_GetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46406 | { (char *)"StdDialogButtonSizer_GetHelpButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46407 | { (char *)"StdDialogButtonSizer_swigregister", StdDialogButtonSizer_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
46408 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
46409 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46410 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46411 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46412 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46413 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46414 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46415 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46416 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46417 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL}, | |
46418 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46419 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46420 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46421 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46422 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46423 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46424 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46425 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46426 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46427 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL}, | |
46428 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46429 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46430 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46431 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46432 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46433 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46434 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46435 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46436 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46437 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46438 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46439 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46440 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46441 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL}, | |
46442 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46443 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46444 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46445 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46446 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46447 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46448 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL}, | |
46449 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL}, | |
46450 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL}, | |
46451 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL}, | |
46452 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL}, | |
46453 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46454 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46455 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46456 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46457 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL}, | |
46458 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46459 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46460 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46461 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46462 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46463 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46464 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46465 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46466 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46467 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46468 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46469 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46470 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46471 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46472 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46473 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46474 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46475 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46476 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46477 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46478 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46479 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46480 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46481 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46482 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46483 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46484 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL}, | |
46485 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46486 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46487 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46488 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46489 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46490 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46491 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46492 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46493 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46494 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46495 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL}, | |
46496 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 46497 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
46498 | }; |
46499 | ||
46500 | ||
46501 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
46502 | ||
46503 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
46504 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
46505 | } | |
46506 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
46507 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
46508 | } | |
46509 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
46510 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
46511 | } | |
e505d15e RD |
46512 | static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) { |
46513 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
46514 | } | |
d14a1e28 RD |
46515 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { |
46516 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
46517 | } | |
46518 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
46519 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
46520 | } | |
46521 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
46522 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
46523 | } | |
46524 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
46525 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
46526 | } | |
46527 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
46528 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
46529 | } | |
e505d15e RD |
46530 | static void *_p_wxStdDialogButtonSizerTo_p_wxBoxSizer(void *x) { |
46531 | return (void *)((wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
46532 | } | |
d14a1e28 RD |
46533 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
46534 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
46535 | } | |
46536 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
46537 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
46538 | } | |
46539 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
46540 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
46541 | } | |
46542 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
46543 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
46544 | } | |
46545 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
46546 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
46547 | } | |
46548 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
46549 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
46550 | } | |
46551 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
46552 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
46553 | } | |
46554 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
46555 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
46556 | } | |
46557 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
46558 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
46559 | } | |
46560 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
46561 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
46562 | } | |
46563 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
46564 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
46565 | } | |
46566 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
46567 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
46568 | } | |
46569 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
46570 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
46571 | } | |
46572 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
46573 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
46574 | } | |
46575 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
46576 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
46577 | } | |
46578 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
46579 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
46580 | } | |
46581 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
46582 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
46583 | } | |
46584 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
46585 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
46586 | } | |
53aa7709 RD |
46587 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
46588 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
46589 | } | |
d14a1e28 RD |
46590 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
46591 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
46592 | } | |
46593 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
46594 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
46595 | } | |
46596 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
46597 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
46598 | } | |
46599 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
46600 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
46601 | } | |
46602 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
46603 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
46604 | } | |
46605 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
46606 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
46607 | } | |
46608 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
46609 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
46610 | } | |
46611 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
46612 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
46613 | } | |
46614 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
46615 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
46616 | } | |
46617 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
46618 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
46619 | } | |
46620 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
46621 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
46622 | } | |
46623 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
46624 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
46625 | } | |
46626 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
46627 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
46628 | } | |
46629 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
46630 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
46631 | } | |
46632 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
46633 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
46634 | } | |
46635 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
46636 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
46637 | } | |
46638 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
46639 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
46640 | } | |
46641 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
46642 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
46643 | } | |
46644 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
46645 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
46646 | } | |
46647 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
46648 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
46649 | } | |
46650 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
46651 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
46652 | } | |
46653 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
46654 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
46655 | } | |
46656 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
46657 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
46658 | } | |
46659 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
46660 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
46661 | } | |
46662 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
46663 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
46664 | } | |
46665 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
46666 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
46667 | } | |
46668 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
46669 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
46670 | } | |
46671 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
46672 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
46673 | } | |
46674 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
46675 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
46676 | } | |
46677 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
46678 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
46679 | } | |
46680 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
46681 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
46682 | } | |
46683 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
46684 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
46685 | } | |
46686 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
46687 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
46688 | } | |
46689 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
46690 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
46691 | } | |
46692 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
46693 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
46694 | } | |
46695 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
46696 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
46697 | } | |
46698 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
46699 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
46700 | } | |
46701 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
46702 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
46703 | } | |
46704 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
46705 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
46706 | } | |
46707 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
46708 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
46709 | } | |
46710 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
46711 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
46712 | } | |
46713 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
46714 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
46715 | } | |
46716 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
46717 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
46718 | } | |
46719 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
46720 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
46721 | } | |
46722 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
46723 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
46724 | } | |
46725 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
46726 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
46727 | } | |
46728 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
46729 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
46730 | } | |
46731 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
46732 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
46733 | } | |
46734 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
46735 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
46736 | } | |
46737 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
46738 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
46739 | } | |
46740 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
46741 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
46742 | } | |
e505d15e RD |
46743 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
46744 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
d14a1e28 | 46745 | } |
e505d15e RD |
46746 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
46747 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
d14a1e28 | 46748 | } |
e505d15e RD |
46749 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
46750 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
d14a1e28 | 46751 | } |
e505d15e RD |
46752 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
46753 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
d14a1e28 | 46754 | } |
e505d15e RD |
46755 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { |
46756 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
d14a1e28 | 46757 | } |
e505d15e RD |
46758 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
46759 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
d14a1e28 | 46760 | } |
e505d15e RD |
46761 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { |
46762 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
d14a1e28 RD |
46763 | } |
46764 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
46765 | return (void *)((wxObject *) ((wxSizer *) x)); | |
46766 | } | |
e505d15e RD |
46767 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { |
46768 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
d14a1e28 | 46769 | } |
e505d15e RD |
46770 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { |
46771 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
d14a1e28 | 46772 | } |
e505d15e RD |
46773 | static void *_p_wxEventTo_p_wxObject(void *x) { |
46774 | return (void *)((wxObject *) ((wxEvent *) x)); | |
46775 | } | |
46776 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
46777 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
46778 | } | |
46779 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
46780 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
d14a1e28 RD |
46781 | } |
46782 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
46783 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
46784 | } | |
e505d15e RD |
46785 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
46786 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
d14a1e28 | 46787 | } |
e505d15e RD |
46788 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { |
46789 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
d14a1e28 | 46790 | } |
e505d15e RD |
46791 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { |
46792 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
d14a1e28 | 46793 | } |
e505d15e RD |
46794 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { |
46795 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
d14a1e28 | 46796 | } |
e505d15e RD |
46797 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { |
46798 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
46799 | } | |
46800 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
46801 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
d14a1e28 RD |
46802 | } |
46803 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
46804 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
46805 | } | |
e505d15e RD |
46806 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
46807 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
1e0c8722 | 46808 | } |
e505d15e RD |
46809 | static void *_p_wxFSFileTo_p_wxObject(void *x) { |
46810 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
d14a1e28 | 46811 | } |
e505d15e RD |
46812 | static void *_p_wxPySizerTo_p_wxObject(void *x) { |
46813 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
d14a1e28 | 46814 | } |
e505d15e RD |
46815 | static void *_p_wxPyEventTo_p_wxObject(void *x) { |
46816 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
d14a1e28 | 46817 | } |
e505d15e RD |
46818 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { |
46819 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
d14a1e28 | 46820 | } |
e505d15e RD |
46821 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
46822 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
d14a1e28 | 46823 | } |
e505d15e RD |
46824 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { |
46825 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
d14a1e28 | 46826 | } |
53aa7709 RD |
46827 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
46828 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
46829 | } | |
e505d15e RD |
46830 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
46831 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
d14a1e28 | 46832 | } |
e505d15e RD |
46833 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { |
46834 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
46835 | } | |
46836 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
46837 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
d14a1e28 RD |
46838 | } |
46839 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
46840 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
46841 | } | |
e505d15e RD |
46842 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { |
46843 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
d14a1e28 | 46844 | } |
e505d15e RD |
46845 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { |
46846 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
d14a1e28 | 46847 | } |
e505d15e RD |
46848 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { |
46849 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
d14a1e28 | 46850 | } |
e505d15e RD |
46851 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { |
46852 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
d14a1e28 | 46853 | } |
e505d15e RD |
46854 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
46855 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
d14a1e28 | 46856 | } |
e505d15e RD |
46857 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
46858 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
d14a1e28 | 46859 | } |
e505d15e RD |
46860 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { |
46861 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
d14a1e28 | 46862 | } |
e505d15e RD |
46863 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { |
46864 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
d14a1e28 | 46865 | } |
e505d15e RD |
46866 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { |
46867 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
d14a1e28 | 46868 | } |
e505d15e RD |
46869 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { |
46870 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
d14a1e28 RD |
46871 | } |
46872 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
46873 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
46874 | } | |
e505d15e RD |
46875 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { |
46876 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
d14a1e28 | 46877 | } |
e505d15e RD |
46878 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { |
46879 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
d14a1e28 | 46880 | } |
e505d15e RD |
46881 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { |
46882 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
d14a1e28 | 46883 | } |
e505d15e RD |
46884 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
46885 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
d14a1e28 | 46886 | } |
e505d15e RD |
46887 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
46888 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
d14a1e28 | 46889 | } |
e505d15e RD |
46890 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
46891 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
d14a1e28 | 46892 | } |
e505d15e RD |
46893 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
46894 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
d14a1e28 | 46895 | } |
e505d15e RD |
46896 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
46897 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
d14a1e28 | 46898 | } |
e505d15e RD |
46899 | static void *_p_wxImageTo_p_wxObject(void *x) { |
46900 | return (void *)((wxObject *) ((wxImage *) x)); | |
d14a1e28 | 46901 | } |
e505d15e RD |
46902 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
46903 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
d14a1e28 | 46904 | } |
e505d15e RD |
46905 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
46906 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
d14a1e28 | 46907 | } |
e505d15e RD |
46908 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { |
46909 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
d14a1e28 | 46910 | } |
e505d15e RD |
46911 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { |
46912 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
d14a1e28 | 46913 | } |
e505d15e RD |
46914 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
46915 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
d14a1e28 | 46916 | } |
e505d15e RD |
46917 | static void *_p_wxMenuTo_p_wxObject(void *x) { |
46918 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
d14a1e28 | 46919 | } |
e505d15e RD |
46920 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { |
46921 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
d14a1e28 | 46922 | } |
e505d15e RD |
46923 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
46924 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
d14a1e28 | 46925 | } |
e505d15e RD |
46926 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
46927 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
d14a1e28 | 46928 | } |
e505d15e RD |
46929 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { |
46930 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
d14a1e28 | 46931 | } |
e505d15e RD |
46932 | static void *_p_wxPyAppTo_p_wxObject(void *x) { |
46933 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
d14a1e28 | 46934 | } |
e505d15e RD |
46935 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { |
46936 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
d14a1e28 | 46937 | } |
e505d15e RD |
46938 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { |
46939 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
d14a1e28 | 46940 | } |
e505d15e RD |
46941 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { |
46942 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
d14a1e28 RD |
46943 | } |
46944 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
46945 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
46946 | } | |
e505d15e RD |
46947 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { |
46948 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
d14a1e28 | 46949 | } |
e505d15e RD |
46950 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { |
46951 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
d14a1e28 | 46952 | } |
e505d15e RD |
46953 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { |
46954 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
d14a1e28 | 46955 | } |
e505d15e RD |
46956 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { |
46957 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
d14a1e28 | 46958 | } |
e505d15e RD |
46959 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
46960 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
d14a1e28 | 46961 | } |
e505d15e RD |
46962 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
46963 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
d14a1e28 | 46964 | } |
e505d15e RD |
46965 | static void *_p_wxValidatorTo_p_wxObject(void *x) { |
46966 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
d14a1e28 RD |
46967 | } |
46968 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
46969 | return (void *)((wxWindow *) ((wxControl *) x)); | |
46970 | } | |
46971 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
46972 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
46973 | } | |
46974 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
46975 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
46976 | } | |
46977 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
46978 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
46979 | } | |
46980 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
46981 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
46982 | } | |
46983 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
46984 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
46985 | } | |
53aa7709 RD |
46986 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
46987 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
46988 | } | |
d14a1e28 RD |
46989 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
46990 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
46991 | } | |
46992 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
46993 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
46994 | } | |
46995 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
46996 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
46997 | } | |
46998 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
46999 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
47000 | } | |
47001 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
47002 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
47003 | } | |
47004 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
47005 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
47006 | } | |
15afbcd0 RD |
47007 | 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}}; |
47008 | 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}}; | |
47009 | 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}}; | |
47010 | 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}}; | |
47011 | 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}}; | |
2ef75293 | 47012 | 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}}; |
15afbcd0 | 47013 | 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}}; |
e505d15e RD |
47014 | 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}}; |
47015 | 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}}; | |
15afbcd0 RD |
47016 | 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}}; |
47017 | 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}}; | |
47018 | 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}}; | |
47019 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 47020 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
093d3ff1 | 47021 | 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}}; |
15afbcd0 RD |
47022 | 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}}; |
47023 | 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}}; | |
47024 | 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}}; | |
47025 | 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}}; | |
47026 | 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}}; | |
47027 | 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}}; | |
47028 | 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}}; | |
47029 | 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}}; | |
47030 | 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}}; | |
47031 | 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}}; | |
47032 | 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}}; | |
47033 | 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}}; | |
47034 | 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}}; | |
47035 | 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}}; | |
47036 | 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}}; | |
47037 | 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 |
47038 | 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}}; |
47039 | 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}}; | |
15afbcd0 RD |
47040 | 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}}; |
47041 | 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}}; | |
47042 | 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}}; | |
47043 | 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}}; | |
47044 | 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}}; | |
47045 | 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}}; | |
74a57fcd | 47046 | 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}}; |
15afbcd0 RD |
47047 | 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}}; |
47048 | 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}}; | |
47049 | 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 | 47050 | 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}}; |
15afbcd0 RD |
47051 | 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}}; |
47052 | 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}}; | |
47053 | 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}}; | |
47054 | 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}}; | |
15afbcd0 RD |
47055 | 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}}; |
47056 | 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 |
47057 | 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}}; |
47058 | 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 | 47059 | 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}}; |
15afbcd0 RD |
47060 | 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}}; |
47061 | 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}}; | |
47062 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 47063 | static swig_type_info _swigt__p_wxDateEvent[] = {{"_p_wxDateEvent", 0, "wxDateEvent *", 0, 0, 0, 0},{"_p_wxDateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
47064 | 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}}; |
47065 | 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}}; | |
47066 | 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 | 47067 | 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}}; |
15afbcd0 RD |
47068 | 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}}; |
47069 | 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}}; | |
47070 | 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}}; | |
47071 | 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}}; | |
47072 | 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}}; | |
47073 | 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}}; | |
47074 | 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}}; | |
47075 | 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}}; | |
47076 | 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 |
47077 | 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}}; |
47078 | 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}}; | |
47079 | 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}}; | |
15afbcd0 RD |
47080 | 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}}; |
47081 | 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}}; | |
47082 | 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}}; | |
47083 | 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}}; | |
47084 | 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}}; | |
47085 | 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}}; | |
15afbcd0 | 47086 | 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}}; |
e505d15e | 47087 | 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}}; |
15afbcd0 RD |
47088 | 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}}; |
47089 | 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}}; | |
47090 | 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}}; | |
e505d15e | 47091 | 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}}; |
15afbcd0 RD |
47092 | 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}}; |
47093 | 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}}; | |
47094 | 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}}; | |
47095 | 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}}; | |
47096 | 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 | 47097 | 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}}; |
15afbcd0 | 47098 | 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}}; |
15afbcd0 RD |
47099 | 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}}; |
47100 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 47101 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 | 47102 | 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 |
47103 | 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}}; |
47104 | 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}}; | |
15afbcd0 RD |
47105 | 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}}; |
47106 | 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}}; | |
47107 | 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}}; | |
47108 | 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 | 47109 | 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}}; |
15afbcd0 RD |
47110 | 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}}; |
47111 | 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}}; | |
47112 | 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}}; | |
47113 | 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 |
47114 | 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}}; |
47115 | 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}}; | |
15afbcd0 RD |
47116 | 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}}; |
47117 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
aff4cc5c | 47118 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
47119 | 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}}; |
47120 | 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 | 47121 | 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}}; |
15afbcd0 | 47122 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 47123 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
47124 | 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}}; |
47125 | 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 | 47126 | 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}}; |
15afbcd0 RD |
47127 | 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}}; |
47128 | 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}}; | |
47129 | 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}}; | |
47130 | 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}}; | |
47131 | 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}}; | |
47132 | 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}}; | |
47133 | 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}}; | |
d14a1e28 RD |
47134 | |
47135 | static swig_type_info *swig_types_initial[] = { | |
47136 | _swigt__p_wxLayoutConstraints, | |
47137 | _swigt__p_wxRealPoint, | |
47138 | _swigt__p_wxSizerItem, | |
47139 | _swigt__p_wxGBSizerItem, | |
47140 | _swigt__p_wxScrollEvent, | |
2ef75293 | 47141 | _swigt__p_wxEventLoop, |
d14a1e28 RD |
47142 | _swigt__p_wxIndividualLayoutConstraint, |
47143 | _swigt__p_wxSizer, | |
47144 | _swigt__p_wxBoxSizer, | |
47145 | _swigt__p_wxStaticBoxSizer, | |
47146 | _swigt__p_wxGridBagSizer, | |
47147 | _swigt__p_wxAcceleratorEntry, | |
47148 | _swigt__p_wxUpdateUIEvent, | |
d14a1e28 | 47149 | _swigt__p_wxEvent, |
093d3ff1 | 47150 | _swigt__p_wxMenu, |
d14a1e28 RD |
47151 | _swigt__p_wxGridSizer, |
47152 | _swigt__p_wxFlexGridSizer, | |
47153 | _swigt__p_wxInitDialogEvent, | |
47154 | _swigt__p_wxItemContainer, | |
47155 | _swigt__p_wxNcPaintEvent, | |
47156 | _swigt__p_wxPaintEvent, | |
47157 | _swigt__p_wxSysColourChangedEvent, | |
47158 | _swigt__p_wxMouseCaptureChangedEvent, | |
47159 | _swigt__p_wxDisplayChangedEvent, | |
47160 | _swigt__p_wxPaletteChangedEvent, | |
47161 | _swigt__p_wxControl, | |
47162 | _swigt__p_wxFont, | |
47163 | _swigt__p_wxMenuBarBase, | |
47164 | _swigt__p_wxSetCursorEvent, | |
47165 | _swigt__p_wxFSFile, | |
47166 | _swigt__p_wxCaret, | |
093d3ff1 RD |
47167 | _swigt__ptrdiff_t, |
47168 | _swigt__std__ptrdiff_t, | |
d14a1e28 RD |
47169 | _swigt__p_wxRegion, |
47170 | _swigt__p_wxPoint2D, | |
47171 | _swigt__p_int, | |
47172 | _swigt__p_wxSize, | |
47173 | _swigt__p_wxDC, | |
47174 | _swigt__p_wxPySizer, | |
74a57fcd | 47175 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
47176 | _swigt__p_wxNotifyEvent, |
47177 | _swigt__p_wxPyEvent, | |
47178 | _swigt__p_wxPropagationDisabler, | |
093d3ff1 | 47179 | _swigt__p_form_ops_t, |
d14a1e28 RD |
47180 | _swigt__p_wxAppTraits, |
47181 | _swigt__p_wxArrayString, | |
47182 | _swigt__p_wxShowEvent, | |
47183 | _swigt__p_wxToolTip, | |
d14a1e28 RD |
47184 | _swigt__p_wxMoveEvent, |
47185 | _swigt__p_wxSizeEvent, | |
093d3ff1 RD |
47186 | _swigt__p_wxActivateEvent, |
47187 | _swigt__p_wxIconizeEvent, | |
c0de73ae | 47188 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
47189 | _swigt__p_wxQueryNewPaletteEvent, |
47190 | _swigt__p_wxWindowCreateEvent, | |
47191 | _swigt__p_wxIdleEvent, | |
53aa7709 | 47192 | _swigt__p_wxDateEvent, |
d14a1e28 RD |
47193 | _swigt__p_wxMenuItem, |
47194 | _swigt__p_wxStaticBox, | |
47195 | _swigt__p_long, | |
093d3ff1 | 47196 | _swigt__p_wxDuplexMode, |
d14a1e28 RD |
47197 | _swigt__p_wxTIFFHandler, |
47198 | _swigt__p_wxXPMHandler, | |
47199 | _swigt__p_wxPNMHandler, | |
47200 | _swigt__p_wxJPEGHandler, | |
47201 | _swigt__p_wxPCXHandler, | |
47202 | _swigt__p_wxGIFHandler, | |
47203 | _swigt__p_wxPNGHandler, | |
47204 | _swigt__p_wxANIHandler, | |
47205 | _swigt__p_wxMemoryFSHandler, | |
093d3ff1 RD |
47206 | _swigt__p_wxZipFSHandler, |
47207 | _swigt__p_wxInternetFSHandler, | |
47208 | _swigt__p_wxPyFileSystemHandler, | |
d14a1e28 RD |
47209 | _swigt__p_wxEvtHandler, |
47210 | _swigt__p_wxCURHandler, | |
47211 | _swigt__p_wxICOHandler, | |
47212 | _swigt__p_wxBMPHandler, | |
47213 | _swigt__p_wxImageHandler, | |
47214 | _swigt__p_wxFileSystemHandler, | |
d14a1e28 | 47215 | _swigt__p_wxRect, |
e505d15e | 47216 | _swigt__p_wxButton, |
d14a1e28 RD |
47217 | _swigt__p_wxGBSpan, |
47218 | _swigt__p_wxPropagateOnce, | |
47219 | _swigt__p_wxAcceleratorTable, | |
e505d15e | 47220 | _swigt__p_wxStdDialogButtonSizer, |
994141e6 | 47221 | _swigt__p_char, |
d14a1e28 RD |
47222 | _swigt__p_wxGBPosition, |
47223 | _swigt__p_wxImage, | |
47224 | _swigt__p_wxFrame, | |
47225 | _swigt__p_wxScrollWinEvent, | |
093d3ff1 | 47226 | _swigt__p_wxPaperSize, |
d14a1e28 | 47227 | _swigt__p_wxImageHistogram, |
d14a1e28 RD |
47228 | _swigt__p_wxPoint, |
47229 | _swigt__p_wxCursor, | |
47230 | _swigt__p_wxObject, | |
d14a1e28 | 47231 | _swigt__p_wxInputStream, |
093d3ff1 RD |
47232 | _swigt__p_wxOutputStream, |
47233 | _swigt__p_wxPyInputStream, | |
d14a1e28 RD |
47234 | _swigt__p_wxDateTime, |
47235 | _swigt__p_wxKeyEvent, | |
47236 | _swigt__p_wxNavigationKeyEvent, | |
47237 | _swigt__p_wxWindowDestroyEvent, | |
093d3ff1 | 47238 | _swigt__p_unsigned_long, |
d14a1e28 RD |
47239 | _swigt__p_wxWindow, |
47240 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
47241 | _swigt__p_wxFileSystem, |
47242 | _swigt__p_wxBitmap, | |
093d3ff1 RD |
47243 | _swigt__unsigned_int, |
47244 | _swigt__p_unsigned_int, | |
d14a1e28 RD |
47245 | _swigt__p_wxMenuEvent, |
47246 | _swigt__p_wxContextMenuEvent, | |
47247 | _swigt__p_unsigned_char, | |
d14a1e28 RD |
47248 | _swigt__p_wxEraseEvent, |
47249 | _swigt__p_wxMouseEvent, | |
093d3ff1 | 47250 | _swigt__p_wxCloseEvent, |
d14a1e28 RD |
47251 | _swigt__p_wxPyApp, |
47252 | _swigt__p_wxCommandEvent, | |
47253 | _swigt__p_wxPyCommandEvent, | |
7722248d | 47254 | _swigt__p_wxPyDropTarget, |
c0de73ae | 47255 | _swigt__p_wxQuantize, |
d14a1e28 RD |
47256 | _swigt__p_wxChildFocusEvent, |
47257 | _swigt__p_wxFocusEvent, | |
47258 | _swigt__p_wxDropFilesEvent, | |
47259 | _swigt__p_wxControlWithItems, | |
47260 | _swigt__p_wxColour, | |
47261 | _swigt__p_wxValidator, | |
47262 | _swigt__p_wxPyValidator, | |
47263 | 0 | |
47264 | }; | |
47265 | ||
47266 | ||
47267 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
47268 | ||
47269 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 47270 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
47271 | |
47272 | #ifdef __cplusplus | |
47273 | } | |
47274 | #endif | |
47275 | ||
093d3ff1 RD |
47276 | |
47277 | #ifdef __cplusplus | |
47278 | extern "C" { | |
47279 | #endif | |
47280 | ||
47281 | /* Python-specific SWIG API */ | |
47282 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
47283 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
47284 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
47285 | ||
47286 | /* ----------------------------------------------------------------------------- | |
47287 | * global variable support code. | |
47288 | * ----------------------------------------------------------------------------- */ | |
47289 | ||
47290 | typedef struct swig_globalvar { | |
47291 | char *name; /* Name of global variable */ | |
47292 | PyObject *(*get_attr)(); /* Return the current value */ | |
47293 | int (*set_attr)(PyObject *); /* Set the value */ | |
47294 | struct swig_globalvar *next; | |
47295 | } swig_globalvar; | |
47296 | ||
47297 | typedef struct swig_varlinkobject { | |
47298 | PyObject_HEAD | |
47299 | swig_globalvar *vars; | |
47300 | } swig_varlinkobject; | |
47301 | ||
47302 | static PyObject * | |
47303 | swig_varlink_repr(swig_varlinkobject *v) { | |
47304 | v = v; | |
47305 | return PyString_FromString("<Swig global variables>"); | |
47306 | } | |
47307 | ||
47308 | static int | |
47309 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
47310 | swig_globalvar *var; | |
47311 | flags = flags; | |
47312 | fprintf(fp,"Swig global variables { "); | |
47313 | for (var = v->vars; var; var=var->next) { | |
47314 | fprintf(fp,"%s", var->name); | |
47315 | if (var->next) fprintf(fp,", "); | |
47316 | } | |
47317 | fprintf(fp," }\n"); | |
47318 | return 0; | |
47319 | } | |
47320 | ||
47321 | static PyObject * | |
47322 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
47323 | swig_globalvar *var = v->vars; | |
47324 | while (var) { | |
47325 | if (strcmp(var->name,n) == 0) { | |
47326 | return (*var->get_attr)(); | |
47327 | } | |
47328 | var = var->next; | |
47329 | } | |
47330 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
47331 | return NULL; | |
47332 | } | |
47333 | ||
47334 | static int | |
47335 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
47336 | swig_globalvar *var = v->vars; | |
47337 | while (var) { | |
47338 | if (strcmp(var->name,n) == 0) { | |
47339 | return (*var->set_attr)(p); | |
47340 | } | |
47341 | var = var->next; | |
47342 | } | |
47343 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
47344 | return 1; | |
47345 | } | |
47346 | ||
47347 | static PyTypeObject varlinktype = { | |
47348 | PyObject_HEAD_INIT(0) | |
47349 | 0, /* Number of items in variable part (ob_size) */ | |
47350 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
47351 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
47352 | 0, /* Itemsize (tp_itemsize) */ | |
47353 | 0, /* Deallocator (tp_dealloc) */ | |
47354 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
47355 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
47356 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
47357 | 0, /* tp_compare */ | |
47358 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
47359 | 0, /* tp_as_number */ | |
47360 | 0, /* tp_as_sequence */ | |
47361 | 0, /* tp_as_mapping */ | |
47362 | 0, /* tp_hash */ | |
47363 | 0, /* tp_call */ | |
47364 | 0, /* tp_str */ | |
47365 | 0, /* tp_getattro */ | |
47366 | 0, /* tp_setattro */ | |
47367 | 0, /* tp_as_buffer */ | |
47368 | 0, /* tp_flags */ | |
47369 | 0, /* tp_doc */ | |
47370 | #if PY_VERSION_HEX >= 0x02000000 | |
47371 | 0, /* tp_traverse */ | |
47372 | 0, /* tp_clear */ | |
47373 | #endif | |
47374 | #if PY_VERSION_HEX >= 0x02010000 | |
47375 | 0, /* tp_richcompare */ | |
47376 | 0, /* tp_weaklistoffset */ | |
47377 | #endif | |
47378 | #if PY_VERSION_HEX >= 0x02020000 | |
47379 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
47380 | #endif | |
47381 | #if PY_VERSION_HEX >= 0x02030000 | |
47382 | 0, /* tp_del */ | |
47383 | #endif | |
47384 | #ifdef COUNT_ALLOCS | |
47385 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
47386 | #endif | |
47387 | }; | |
47388 | ||
47389 | /* Create a variable linking object for use later */ | |
47390 | static PyObject * | |
47391 | SWIG_Python_newvarlink(void) { | |
47392 | swig_varlinkobject *result = 0; | |
47393 | result = PyMem_NEW(swig_varlinkobject,1); | |
47394 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
47395 | result->ob_type = &varlinktype; | |
47396 | result->vars = 0; | |
47397 | result->ob_refcnt = 0; | |
47398 | Py_XINCREF((PyObject *) result); | |
47399 | return ((PyObject*) result); | |
47400 | } | |
47401 | ||
47402 | static void | |
47403 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
47404 | swig_varlinkobject *v; | |
47405 | swig_globalvar *gv; | |
47406 | v= (swig_varlinkobject *) p; | |
47407 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
47408 | gv->name = (char *) malloc(strlen(name)+1); | |
47409 | strcpy(gv->name,name); | |
47410 | gv->get_attr = get_attr; | |
47411 | gv->set_attr = set_attr; | |
47412 | gv->next = v->vars; | |
47413 | v->vars = gv; | |
47414 | } | |
47415 | ||
47416 | /* ----------------------------------------------------------------------------- | |
47417 | * constants/methods manipulation | |
47418 | * ----------------------------------------------------------------------------- */ | |
47419 | ||
47420 | /* Install Constants */ | |
47421 | static void | |
47422 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
47423 | PyObject *obj = 0; | |
47424 | size_t i; | |
47425 | for (i = 0; constants[i].type; i++) { | |
47426 | switch(constants[i].type) { | |
47427 | case SWIG_PY_INT: | |
47428 | obj = PyInt_FromLong(constants[i].lvalue); | |
47429 | break; | |
47430 | case SWIG_PY_FLOAT: | |
47431 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
47432 | break; | |
47433 | case SWIG_PY_STRING: | |
47434 | if (constants[i].pvalue) { | |
47435 | obj = PyString_FromString((char *) constants[i].pvalue); | |
47436 | } else { | |
47437 | Py_INCREF(Py_None); | |
47438 | obj = Py_None; | |
47439 | } | |
47440 | break; | |
47441 | case SWIG_PY_POINTER: | |
47442 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
47443 | break; | |
47444 | case SWIG_PY_BINARY: | |
47445 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
47446 | break; | |
47447 | default: | |
47448 | obj = 0; | |
47449 | break; | |
47450 | } | |
47451 | if (obj) { | |
47452 | PyDict_SetItemString(d,constants[i].name,obj); | |
47453 | Py_DECREF(obj); | |
47454 | } | |
47455 | } | |
47456 | } | |
47457 | ||
47458 | /* -----------------------------------------------------------------------------*/ | |
47459 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
47460 | /* -----------------------------------------------------------------------------*/ | |
47461 | ||
47462 | static void | |
47463 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
47464 | swig_const_info *const_table, | |
47465 | swig_type_info **types, | |
47466 | swig_type_info **types_initial) { | |
47467 | size_t i; | |
47468 | for (i = 0; methods[i].ml_name; ++i) { | |
47469 | char *c = methods[i].ml_doc; | |
47470 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
47471 | int j; | |
47472 | swig_const_info *ci = 0; | |
47473 | char *name = c + 10; | |
47474 | for (j = 0; const_table[j].type; j++) { | |
47475 | if (strncmp(const_table[j].name, name, | |
47476 | strlen(const_table[j].name)) == 0) { | |
47477 | ci = &(const_table[j]); | |
47478 | break; | |
47479 | } | |
47480 | } | |
47481 | if (ci) { | |
47482 | size_t shift = (ci->ptype) - types; | |
47483 | swig_type_info *ty = types_initial[shift]; | |
47484 | size_t ldoc = (c - methods[i].ml_doc); | |
47485 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
47486 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
47487 | char *buff = ndoc; | |
47488 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
47489 | strncpy(buff, methods[i].ml_doc, ldoc); | |
47490 | buff += ldoc; | |
47491 | strncpy(buff, "swig_ptr: ", 10); | |
47492 | buff += 10; | |
47493 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
47494 | methods[i].ml_doc = ndoc; | |
47495 | } | |
47496 | } | |
47497 | } | |
47498 | } | |
47499 | ||
47500 | /* -----------------------------------------------------------------------------* | |
47501 | * Initialize type list | |
47502 | * -----------------------------------------------------------------------------*/ | |
47503 | ||
47504 | #if PY_MAJOR_VERSION < 2 | |
47505 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
47506 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
47507 | static int | |
47508 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
47509 | { | |
47510 | PyObject *dict; | |
47511 | if (!PyModule_Check(m)) { | |
47512 | PyErr_SetString(PyExc_TypeError, | |
47513 | "PyModule_AddObject() needs module as first arg"); | |
47514 | return -1; | |
47515 | } | |
47516 | if (!o) { | |
47517 | PyErr_SetString(PyExc_TypeError, | |
47518 | "PyModule_AddObject() needs non-NULL value"); | |
47519 | return -1; | |
47520 | } | |
47521 | ||
47522 | dict = PyModule_GetDict(m); | |
47523 | if (dict == NULL) { | |
47524 | /* Internal error -- modules must have a dict! */ | |
47525 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
47526 | PyModule_GetName(m)); | |
47527 | return -1; | |
47528 | } | |
47529 | if (PyDict_SetItemString(dict, name, o)) | |
47530 | return -1; | |
47531 | Py_DECREF(o); | |
47532 | return 0; | |
47533 | } | |
47534 | #endif | |
47535 | ||
47536 | static swig_type_info ** | |
47537 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
47538 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
47539 | { | |
47540 | NULL, NULL, 0, NULL | |
47541 | } | |
47542 | };/* Sentinel */ | |
47543 | ||
47544 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
47545 | swig_empty_runtime_method_table); | |
47546 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
47547 | if (pointer && module) { | |
47548 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
47549 | } | |
47550 | return type_list_handle; | |
47551 | } | |
47552 | ||
47553 | static swig_type_info ** | |
47554 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
47555 | swig_type_info **type_pointer; | |
47556 | ||
47557 | /* first check if module already created */ | |
47558 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
47559 | if (type_pointer) { | |
47560 | return type_pointer; | |
47561 | } else { | |
47562 | /* create a new module and variable */ | |
47563 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
47564 | } | |
47565 | } | |
47566 | ||
47567 | #ifdef __cplusplus | |
47568 | } | |
47569 | #endif | |
47570 | ||
47571 | /* -----------------------------------------------------------------------------* | |
47572 | * Partial Init method | |
47573 | * -----------------------------------------------------------------------------*/ | |
47574 | ||
47575 | #ifdef SWIG_LINK_RUNTIME | |
47576 | #ifdef __cplusplus | |
47577 | extern "C" | |
47578 | #endif | |
47579 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
47580 | #endif | |
47581 | ||
d14a1e28 RD |
47582 | #ifdef __cplusplus |
47583 | extern "C" | |
47584 | #endif | |
47585 | SWIGEXPORT(void) SWIG_init(void) { | |
47586 | static PyObject *SWIG_globals = 0; | |
47587 | static int typeinit = 0; | |
47588 | PyObject *m, *d; | |
47589 | int i; | |
47590 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
47591 | |
47592 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
47593 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
47594 | ||
d14a1e28 RD |
47595 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
47596 | d = PyModule_GetDict(m); | |
47597 | ||
47598 | if (!typeinit) { | |
093d3ff1 RD |
47599 | #ifdef SWIG_LINK_RUNTIME |
47600 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
47601 | #else | |
47602 | # ifndef SWIG_STATIC_RUNTIME | |
47603 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
47604 | # endif | |
47605 | #endif | |
d14a1e28 RD |
47606 | for (i = 0; swig_types_initial[i]; i++) { |
47607 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
47608 | } | |
47609 | typeinit = 1; | |
47610 | } | |
47611 | SWIG_InstallConstants(d,swig_const_table); | |
47612 | ||
47613 | ||
47614 | #ifndef wxPyUSE_EXPORT | |
47615 | // Make our API structure a CObject so other modules can import it | |
47616 | // from this module. | |
47617 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
47618 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
47619 | Py_XDECREF(cobj); | |
47620 | #endif | |
47621 | ||
093d3ff1 RD |
47622 | { |
47623 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)(wxNOT_FOUND))); | |
47624 | } | |
47625 | { | |
47626 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)(wxVSCROLL))); | |
47627 | } | |
47628 | { | |
47629 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)(wxHSCROLL))); | |
47630 | } | |
47631 | { | |
47632 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)(wxCAPTION))); | |
47633 | } | |
47634 | { | |
47635 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)(wxDOUBLE_BORDER))); | |
47636 | } | |
47637 | { | |
47638 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)(wxSUNKEN_BORDER))); | |
47639 | } | |
47640 | { | |
47641 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)(wxRAISED_BORDER))); | |
47642 | } | |
47643 | { | |
47644 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)(wxBORDER))); | |
47645 | } | |
47646 | { | |
47647 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)(wxSIMPLE_BORDER))); | |
47648 | } | |
47649 | { | |
47650 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)(wxSTATIC_BORDER))); | |
47651 | } | |
47652 | { | |
47653 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)(wxTRANSPARENT_WINDOW))); | |
47654 | } | |
47655 | { | |
47656 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)(wxNO_BORDER))); | |
47657 | } | |
47658 | { | |
47659 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)(wxTAB_TRAVERSAL))); | |
47660 | } | |
47661 | { | |
47662 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)(wxWANTS_CHARS))); | |
47663 | } | |
47664 | { | |
47665 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)(wxPOPUP_WINDOW))); | |
47666 | } | |
47667 | { | |
47668 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)(wxCENTER_FRAME))); | |
47669 | } | |
47670 | { | |
47671 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)(wxCENTRE_ON_SCREEN))); | |
47672 | } | |
47673 | { | |
47674 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)(wxCENTER_ON_SCREEN))); | |
47675 | } | |
093d3ff1 RD |
47676 | { |
47677 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)(wxCLIP_CHILDREN))); | |
47678 | } | |
47679 | { | |
47680 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)(wxCLIP_SIBLINGS))); | |
47681 | } | |
47682 | { | |
47683 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)(wxALWAYS_SHOW_SB))); | |
47684 | } | |
47685 | { | |
47686 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)(wxRETAINED))); | |
47687 | } | |
47688 | { | |
47689 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)(wxBACKINGSTORE))); | |
47690 | } | |
47691 | { | |
47692 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)(wxCOLOURED))); | |
47693 | } | |
47694 | { | |
47695 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)(wxFIXED_LENGTH))); | |
47696 | } | |
47697 | { | |
47698 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)(wxLB_NEEDED_SB))); | |
47699 | } | |
47700 | { | |
47701 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)(wxLB_ALWAYS_SB))); | |
47702 | } | |
47703 | { | |
47704 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)(wxLB_SORT))); | |
47705 | } | |
47706 | { | |
47707 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)(wxLB_SINGLE))); | |
47708 | } | |
47709 | { | |
47710 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)(wxLB_MULTIPLE))); | |
47711 | } | |
47712 | { | |
47713 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)(wxLB_EXTENDED))); | |
47714 | } | |
47715 | { | |
47716 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)(wxLB_OWNERDRAW))); | |
47717 | } | |
47718 | { | |
47719 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)(wxLB_HSCROLL))); | |
47720 | } | |
47721 | { | |
47722 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)(wxPROCESS_ENTER))); | |
47723 | } | |
47724 | { | |
47725 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)(wxPASSWORD))); | |
47726 | } | |
47727 | { | |
47728 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)(wxCB_SIMPLE))); | |
47729 | } | |
47730 | { | |
47731 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)(wxCB_DROPDOWN))); | |
47732 | } | |
47733 | { | |
47734 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)(wxCB_SORT))); | |
47735 | } | |
47736 | { | |
47737 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)(wxCB_READONLY))); | |
47738 | } | |
47739 | { | |
47740 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)(wxRA_HORIZONTAL))); | |
47741 | } | |
47742 | { | |
47743 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)(wxRA_VERTICAL))); | |
47744 | } | |
47745 | { | |
47746 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)(wxRA_SPECIFY_ROWS))); | |
47747 | } | |
47748 | { | |
47749 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)(wxRA_SPECIFY_COLS))); | |
47750 | } | |
fef4c27a RD |
47751 | { |
47752 | PyDict_SetItemString(d,"RA_USE_CHECKBOX", SWIG_From_int((int)(wxRA_USE_CHECKBOX))); | |
47753 | } | |
093d3ff1 RD |
47754 | { |
47755 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)(wxRB_GROUP))); | |
47756 | } | |
47757 | { | |
47758 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)(wxRB_SINGLE))); | |
47759 | } | |
093d3ff1 RD |
47760 | { |
47761 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)(wxSB_HORIZONTAL))); | |
47762 | } | |
47763 | { | |
47764 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)(wxSB_VERTICAL))); | |
47765 | } | |
fef4c27a RD |
47766 | { |
47767 | PyDict_SetItemString(d,"RB_USE_CHECKBOX", SWIG_From_int((int)(wxRB_USE_CHECKBOX))); | |
47768 | } | |
093d3ff1 RD |
47769 | { |
47770 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)(wxST_SIZEGRIP))); | |
47771 | } | |
47772 | { | |
47773 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)(wxST_NO_AUTORESIZE))); | |
47774 | } | |
47775 | { | |
47776 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)(wxFLOOD_SURFACE))); | |
47777 | } | |
47778 | { | |
47779 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)(wxFLOOD_BORDER))); | |
47780 | } | |
47781 | { | |
47782 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)(wxODDEVEN_RULE))); | |
47783 | } | |
47784 | { | |
47785 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)(wxWINDING_RULE))); | |
47786 | } | |
47787 | { | |
47788 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)(wxTOOL_TOP))); | |
47789 | } | |
47790 | { | |
47791 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)(wxTOOL_BOTTOM))); | |
47792 | } | |
47793 | { | |
47794 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)(wxTOOL_LEFT))); | |
47795 | } | |
47796 | { | |
47797 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)(wxTOOL_RIGHT))); | |
47798 | } | |
47799 | { | |
47800 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)(wxOK))); | |
47801 | } | |
47802 | { | |
47803 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)(wxYES_NO))); | |
47804 | } | |
47805 | { | |
47806 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)(wxCANCEL))); | |
47807 | } | |
47808 | { | |
47809 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)(wxYES))); | |
47810 | } | |
47811 | { | |
47812 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)(wxNO))); | |
47813 | } | |
47814 | { | |
47815 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)(wxNO_DEFAULT))); | |
47816 | } | |
47817 | { | |
47818 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)(wxYES_DEFAULT))); | |
47819 | } | |
47820 | { | |
47821 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)(wxICON_EXCLAMATION))); | |
47822 | } | |
47823 | { | |
47824 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)(wxICON_HAND))); | |
47825 | } | |
47826 | { | |
47827 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)(wxICON_QUESTION))); | |
47828 | } | |
47829 | { | |
47830 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)(wxICON_INFORMATION))); | |
47831 | } | |
47832 | { | |
47833 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)(wxICON_STOP))); | |
47834 | } | |
47835 | { | |
47836 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)(wxICON_ASTERISK))); | |
47837 | } | |
47838 | { | |
47839 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)(wxICON_MASK))); | |
47840 | } | |
47841 | { | |
47842 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)(wxICON_WARNING))); | |
47843 | } | |
47844 | { | |
47845 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)(wxICON_ERROR))); | |
47846 | } | |
47847 | { | |
47848 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)(wxFORWARD))); | |
47849 | } | |
47850 | { | |
47851 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)(wxBACKWARD))); | |
47852 | } | |
47853 | { | |
47854 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)(wxRESET))); | |
47855 | } | |
47856 | { | |
47857 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)(wxHELP))); | |
47858 | } | |
47859 | { | |
47860 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)(wxMORE))); | |
47861 | } | |
47862 | { | |
47863 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)(wxSETUP))); | |
47864 | } | |
47865 | { | |
47866 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)(wxSIZE_AUTO_WIDTH))); | |
47867 | } | |
47868 | { | |
47869 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)(wxSIZE_AUTO_HEIGHT))); | |
47870 | } | |
47871 | { | |
47872 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)(wxSIZE_AUTO))); | |
47873 | } | |
47874 | { | |
47875 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)(wxSIZE_USE_EXISTING))); | |
47876 | } | |
47877 | { | |
47878 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)(wxSIZE_ALLOW_MINUS_ONE))); | |
47879 | } | |
47880 | { | |
47881 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)(wxPORTRAIT))); | |
47882 | } | |
47883 | { | |
47884 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)(wxLANDSCAPE))); | |
47885 | } | |
47886 | { | |
47887 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)(wxPRINT_QUALITY_HIGH))); | |
47888 | } | |
47889 | { | |
47890 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)(wxPRINT_QUALITY_MEDIUM))); | |
47891 | } | |
47892 | { | |
47893 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)(wxPRINT_QUALITY_LOW))); | |
47894 | } | |
47895 | { | |
47896 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)(wxPRINT_QUALITY_DRAFT))); | |
47897 | } | |
47898 | { | |
47899 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)(wxID_ANY))); | |
47900 | } | |
47901 | { | |
47902 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)(wxID_SEPARATOR))); | |
47903 | } | |
47904 | { | |
47905 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)(wxID_LOWEST))); | |
47906 | } | |
47907 | { | |
47908 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)(wxID_OPEN))); | |
47909 | } | |
47910 | { | |
47911 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)(wxID_CLOSE))); | |
47912 | } | |
47913 | { | |
47914 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)(wxID_NEW))); | |
47915 | } | |
47916 | { | |
47917 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)(wxID_SAVE))); | |
47918 | } | |
47919 | { | |
47920 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)(wxID_SAVEAS))); | |
47921 | } | |
47922 | { | |
47923 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)(wxID_REVERT))); | |
47924 | } | |
47925 | { | |
47926 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)(wxID_EXIT))); | |
47927 | } | |
47928 | { | |
47929 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)(wxID_UNDO))); | |
47930 | } | |
47931 | { | |
47932 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)(wxID_REDO))); | |
47933 | } | |
47934 | { | |
47935 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)(wxID_HELP))); | |
47936 | } | |
47937 | { | |
47938 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)(wxID_PRINT))); | |
47939 | } | |
47940 | { | |
47941 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)(wxID_PRINT_SETUP))); | |
47942 | } | |
47943 | { | |
47944 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)(wxID_PREVIEW))); | |
47945 | } | |
47946 | { | |
47947 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)(wxID_ABOUT))); | |
47948 | } | |
47949 | { | |
47950 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)(wxID_HELP_CONTENTS))); | |
47951 | } | |
47952 | { | |
47953 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)(wxID_HELP_COMMANDS))); | |
47954 | } | |
47955 | { | |
47956 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)(wxID_HELP_PROCEDURES))); | |
47957 | } | |
47958 | { | |
47959 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)(wxID_HELP_CONTEXT))); | |
47960 | } | |
47961 | { | |
47962 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)(wxID_CLOSE_ALL))); | |
47963 | } | |
47964 | { | |
47965 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)(wxID_PREFERENCES))); | |
47966 | } | |
47967 | { | |
47968 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)(wxID_CUT))); | |
47969 | } | |
47970 | { | |
47971 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)(wxID_COPY))); | |
47972 | } | |
47973 | { | |
47974 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)(wxID_PASTE))); | |
47975 | } | |
47976 | { | |
47977 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)(wxID_CLEAR))); | |
47978 | } | |
47979 | { | |
47980 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)(wxID_FIND))); | |
47981 | } | |
47982 | { | |
47983 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)(wxID_DUPLICATE))); | |
47984 | } | |
47985 | { | |
47986 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)(wxID_SELECTALL))); | |
47987 | } | |
47988 | { | |
47989 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)(wxID_DELETE))); | |
47990 | } | |
47991 | { | |
47992 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)(wxID_REPLACE))); | |
47993 | } | |
47994 | { | |
47995 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)(wxID_REPLACE_ALL))); | |
47996 | } | |
47997 | { | |
47998 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)(wxID_PROPERTIES))); | |
47999 | } | |
48000 | { | |
48001 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)(wxID_VIEW_DETAILS))); | |
48002 | } | |
48003 | { | |
48004 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)(wxID_VIEW_LARGEICONS))); | |
48005 | } | |
48006 | { | |
48007 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)(wxID_VIEW_SMALLICONS))); | |
48008 | } | |
48009 | { | |
48010 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)(wxID_VIEW_LIST))); | |
48011 | } | |
48012 | { | |
48013 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)(wxID_VIEW_SORTDATE))); | |
48014 | } | |
48015 | { | |
48016 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)(wxID_VIEW_SORTNAME))); | |
48017 | } | |
48018 | { | |
48019 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)(wxID_VIEW_SORTSIZE))); | |
48020 | } | |
48021 | { | |
48022 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)(wxID_VIEW_SORTTYPE))); | |
48023 | } | |
48024 | { | |
48025 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)(wxID_FILE1))); | |
48026 | } | |
48027 | { | |
48028 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)(wxID_FILE2))); | |
48029 | } | |
48030 | { | |
48031 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)(wxID_FILE3))); | |
48032 | } | |
48033 | { | |
48034 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)(wxID_FILE4))); | |
48035 | } | |
48036 | { | |
48037 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)(wxID_FILE5))); | |
48038 | } | |
48039 | { | |
48040 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)(wxID_FILE6))); | |
48041 | } | |
48042 | { | |
48043 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)(wxID_FILE7))); | |
48044 | } | |
48045 | { | |
48046 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)(wxID_FILE8))); | |
48047 | } | |
48048 | { | |
48049 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)(wxID_FILE9))); | |
48050 | } | |
48051 | { | |
48052 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)(wxID_OK))); | |
48053 | } | |
48054 | { | |
48055 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)(wxID_CANCEL))); | |
48056 | } | |
48057 | { | |
48058 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)(wxID_APPLY))); | |
48059 | } | |
48060 | { | |
48061 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)(wxID_YES))); | |
48062 | } | |
48063 | { | |
48064 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)(wxID_NO))); | |
48065 | } | |
48066 | { | |
48067 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)(wxID_STATIC))); | |
48068 | } | |
48069 | { | |
48070 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)(wxID_FORWARD))); | |
48071 | } | |
48072 | { | |
48073 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)(wxID_BACKWARD))); | |
48074 | } | |
48075 | { | |
48076 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)(wxID_DEFAULT))); | |
48077 | } | |
48078 | { | |
48079 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)(wxID_MORE))); | |
48080 | } | |
48081 | { | |
48082 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)(wxID_SETUP))); | |
48083 | } | |
48084 | { | |
48085 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)(wxID_RESET))); | |
48086 | } | |
48087 | { | |
48088 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)(wxID_CONTEXT_HELP))); | |
48089 | } | |
48090 | { | |
48091 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)(wxID_YESTOALL))); | |
48092 | } | |
48093 | { | |
48094 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)(wxID_NOTOALL))); | |
48095 | } | |
48096 | { | |
48097 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)(wxID_ABORT))); | |
48098 | } | |
48099 | { | |
48100 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)(wxID_RETRY))); | |
48101 | } | |
48102 | { | |
48103 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)(wxID_IGNORE))); | |
48104 | } | |
48105 | { | |
48106 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)(wxID_ADD))); | |
48107 | } | |
48108 | { | |
48109 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)(wxID_REMOVE))); | |
48110 | } | |
48111 | { | |
48112 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)(wxID_UP))); | |
48113 | } | |
48114 | { | |
48115 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)(wxID_DOWN))); | |
48116 | } | |
48117 | { | |
48118 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)(wxID_HOME))); | |
48119 | } | |
48120 | { | |
48121 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)(wxID_REFRESH))); | |
48122 | } | |
48123 | { | |
48124 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)(wxID_STOP))); | |
48125 | } | |
48126 | { | |
48127 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)(wxID_INDEX))); | |
48128 | } | |
48129 | { | |
48130 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)(wxID_BOLD))); | |
48131 | } | |
48132 | { | |
48133 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)(wxID_ITALIC))); | |
48134 | } | |
48135 | { | |
48136 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)(wxID_JUSTIFY_CENTER))); | |
48137 | } | |
48138 | { | |
48139 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)(wxID_JUSTIFY_FILL))); | |
48140 | } | |
48141 | { | |
48142 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)(wxID_JUSTIFY_RIGHT))); | |
48143 | } | |
48144 | { | |
48145 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)(wxID_JUSTIFY_LEFT))); | |
48146 | } | |
48147 | { | |
48148 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)(wxID_UNDERLINE))); | |
48149 | } | |
48150 | { | |
48151 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)(wxID_INDENT))); | |
48152 | } | |
48153 | { | |
48154 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)(wxID_UNINDENT))); | |
48155 | } | |
48156 | { | |
48157 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)(wxID_ZOOM_100))); | |
48158 | } | |
48159 | { | |
48160 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)(wxID_ZOOM_FIT))); | |
48161 | } | |
48162 | { | |
48163 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)(wxID_ZOOM_IN))); | |
48164 | } | |
48165 | { | |
48166 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)(wxID_ZOOM_OUT))); | |
48167 | } | |
48168 | { | |
48169 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)(wxID_UNDELETE))); | |
48170 | } | |
48171 | { | |
48172 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)(wxID_REVERT_TO_SAVED))); | |
48173 | } | |
48174 | { | |
48175 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)(wxID_HIGHEST))); | |
48176 | } | |
48177 | { | |
48178 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)(wxOPEN))); | |
48179 | } | |
48180 | { | |
48181 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)(wxSAVE))); | |
48182 | } | |
48183 | { | |
48184 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)(wxHIDE_READONLY))); | |
48185 | } | |
48186 | { | |
48187 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)(wxOVERWRITE_PROMPT))); | |
48188 | } | |
48189 | { | |
48190 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)(wxFILE_MUST_EXIST))); | |
48191 | } | |
48192 | { | |
48193 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)(wxMULTIPLE))); | |
48194 | } | |
48195 | { | |
48196 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)(wxCHANGE_DIR))); | |
48197 | } | |
48198 | { | |
48199 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)(wxACCEL_ALT))); | |
48200 | } | |
48201 | { | |
48202 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)(wxACCEL_CTRL))); | |
48203 | } | |
48204 | { | |
48205 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)(wxACCEL_SHIFT))); | |
48206 | } | |
48207 | { | |
48208 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)(wxACCEL_NORMAL))); | |
48209 | } | |
48210 | { | |
48211 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)(wxPD_AUTO_HIDE))); | |
48212 | } | |
48213 | { | |
48214 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)(wxPD_APP_MODAL))); | |
48215 | } | |
48216 | { | |
48217 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)(wxPD_CAN_ABORT))); | |
48218 | } | |
48219 | { | |
48220 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)(wxPD_ELAPSED_TIME))); | |
48221 | } | |
48222 | { | |
48223 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)(wxPD_ESTIMATED_TIME))); | |
48224 | } | |
48225 | { | |
48226 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)(wxPD_REMAINING_TIME))); | |
48227 | } | |
e505d15e RD |
48228 | { |
48229 | PyDict_SetItemString(d,"PD_SMOOTH", SWIG_From_int((int)(wxPD_SMOOTH))); | |
48230 | } | |
48231 | { | |
48232 | PyDict_SetItemString(d,"PD_CAN_SKIP", SWIG_From_int((int)(wxPD_CAN_SKIP))); | |
48233 | } | |
093d3ff1 RD |
48234 | { |
48235 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)(wxDD_NEW_DIR_BUTTON))); | |
48236 | } | |
48237 | { | |
48238 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)(wxDD_DEFAULT_STYLE))); | |
48239 | } | |
48240 | { | |
48241 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)(wxMENU_TEAROFF))); | |
48242 | } | |
48243 | { | |
48244 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)(wxMB_DOCKABLE))); | |
48245 | } | |
48246 | { | |
48247 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)(wxNO_FULL_REPAINT_ON_RESIZE))); | |
48248 | } | |
48249 | { | |
48250 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)(wxFULL_REPAINT_ON_RESIZE))); | |
48251 | } | |
48252 | { | |
48253 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)(wxLI_HORIZONTAL))); | |
48254 | } | |
48255 | { | |
48256 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)(wxLI_VERTICAL))); | |
48257 | } | |
48258 | { | |
48259 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)(wxWS_EX_VALIDATE_RECURSIVELY))); | |
48260 | } | |
48261 | { | |
48262 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)(wxWS_EX_BLOCK_EVENTS))); | |
48263 | } | |
48264 | { | |
48265 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)(wxWS_EX_TRANSIENT))); | |
48266 | } | |
48267 | { | |
48268 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)(wxWS_EX_THEMED_BACKGROUND))); | |
48269 | } | |
48270 | { | |
48271 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)(wxWS_EX_PROCESS_IDLE))); | |
48272 | } | |
48273 | { | |
48274 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)(wxWS_EX_PROCESS_UI_UPDATES))); | |
48275 | } | |
48276 | { | |
48277 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)(wxMM_TEXT))); | |
48278 | } | |
48279 | { | |
48280 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)(wxMM_LOMETRIC))); | |
48281 | } | |
48282 | { | |
48283 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)(wxMM_HIMETRIC))); | |
48284 | } | |
48285 | { | |
48286 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)(wxMM_LOENGLISH))); | |
48287 | } | |
48288 | { | |
48289 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)(wxMM_HIENGLISH))); | |
48290 | } | |
48291 | { | |
48292 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)(wxMM_TWIPS))); | |
48293 | } | |
48294 | { | |
48295 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)(wxMM_ISOTROPIC))); | |
48296 | } | |
48297 | { | |
48298 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)(wxMM_ANISOTROPIC))); | |
48299 | } | |
48300 | { | |
48301 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)(wxMM_POINTS))); | |
48302 | } | |
48303 | { | |
48304 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)(wxMM_METRIC))); | |
48305 | } | |
48306 | { | |
48307 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)(wxCENTRE))); | |
48308 | } | |
48309 | { | |
48310 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)(wxCENTER))); | |
48311 | } | |
48312 | { | |
48313 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)(wxHORIZONTAL))); | |
48314 | } | |
48315 | { | |
48316 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)(wxVERTICAL))); | |
48317 | } | |
48318 | { | |
48319 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)(wxBOTH))); | |
48320 | } | |
48321 | { | |
48322 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)(wxLEFT))); | |
48323 | } | |
48324 | { | |
48325 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)(wxRIGHT))); | |
48326 | } | |
48327 | { | |
48328 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)(wxUP))); | |
48329 | } | |
48330 | { | |
48331 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)(wxDOWN))); | |
48332 | } | |
48333 | { | |
48334 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)(wxTOP))); | |
48335 | } | |
48336 | { | |
48337 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)(wxBOTTOM))); | |
48338 | } | |
48339 | { | |
48340 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)(wxNORTH))); | |
48341 | } | |
48342 | { | |
48343 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)(wxSOUTH))); | |
48344 | } | |
48345 | { | |
48346 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)(wxWEST))); | |
48347 | } | |
48348 | { | |
48349 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)(wxEAST))); | |
48350 | } | |
48351 | { | |
48352 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)(wxALL))); | |
48353 | } | |
48354 | { | |
48355 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)(wxALIGN_NOT))); | |
48356 | } | |
48357 | { | |
48358 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)(wxALIGN_CENTER_HORIZONTAL))); | |
48359 | } | |
48360 | { | |
48361 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)(wxALIGN_CENTRE_HORIZONTAL))); | |
48362 | } | |
48363 | { | |
48364 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)(wxALIGN_LEFT))); | |
48365 | } | |
48366 | { | |
48367 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)(wxALIGN_TOP))); | |
48368 | } | |
48369 | { | |
48370 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)(wxALIGN_RIGHT))); | |
48371 | } | |
48372 | { | |
48373 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)(wxALIGN_BOTTOM))); | |
48374 | } | |
48375 | { | |
48376 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)(wxALIGN_CENTER_VERTICAL))); | |
48377 | } | |
48378 | { | |
48379 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)(wxALIGN_CENTRE_VERTICAL))); | |
48380 | } | |
48381 | { | |
48382 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)(wxALIGN_CENTER))); | |
48383 | } | |
48384 | { | |
48385 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)(wxALIGN_CENTRE))); | |
48386 | } | |
48387 | { | |
48388 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)(wxALIGN_MASK))); | |
48389 | } | |
48390 | { | |
48391 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)(wxSTRETCH_NOT))); | |
48392 | } | |
48393 | { | |
48394 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)(wxSHRINK))); | |
48395 | } | |
48396 | { | |
48397 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)(wxGROW))); | |
48398 | } | |
48399 | { | |
48400 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)(wxEXPAND))); | |
48401 | } | |
48402 | { | |
48403 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)(wxSHAPED))); | |
48404 | } | |
48405 | { | |
48406 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)(wxFIXED_MINSIZE))); | |
48407 | } | |
48408 | { | |
48409 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)(wxTILE))); | |
48410 | } | |
48411 | { | |
48412 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)(wxADJUST_MINSIZE))); | |
48413 | } | |
48414 | { | |
48415 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)(wxBORDER_DEFAULT))); | |
48416 | } | |
48417 | { | |
48418 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)(wxBORDER_NONE))); | |
48419 | } | |
48420 | { | |
48421 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)(wxBORDER_STATIC))); | |
48422 | } | |
48423 | { | |
48424 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)(wxBORDER_SIMPLE))); | |
48425 | } | |
48426 | { | |
48427 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)(wxBORDER_RAISED))); | |
48428 | } | |
48429 | { | |
48430 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)(wxBORDER_SUNKEN))); | |
48431 | } | |
48432 | { | |
48433 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)(wxBORDER_DOUBLE))); | |
48434 | } | |
48435 | { | |
48436 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)(wxBORDER_MASK))); | |
48437 | } | |
48438 | { | |
48439 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)(wxBG_STYLE_SYSTEM))); | |
48440 | } | |
48441 | { | |
48442 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)(wxBG_STYLE_COLOUR))); | |
48443 | } | |
48444 | { | |
48445 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)(wxBG_STYLE_CUSTOM))); | |
48446 | } | |
48447 | { | |
48448 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)(wxDEFAULT))); | |
48449 | } | |
48450 | { | |
48451 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)(wxDECORATIVE))); | |
48452 | } | |
48453 | { | |
48454 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)(wxROMAN))); | |
48455 | } | |
48456 | { | |
48457 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)(wxSCRIPT))); | |
48458 | } | |
48459 | { | |
48460 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)(wxSWISS))); | |
48461 | } | |
48462 | { | |
48463 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)(wxMODERN))); | |
48464 | } | |
48465 | { | |
48466 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)(wxTELETYPE))); | |
48467 | } | |
48468 | { | |
48469 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)(wxVARIABLE))); | |
48470 | } | |
48471 | { | |
48472 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)(wxFIXED))); | |
48473 | } | |
48474 | { | |
48475 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)(wxNORMAL))); | |
48476 | } | |
48477 | { | |
48478 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)(wxLIGHT))); | |
48479 | } | |
48480 | { | |
48481 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)(wxBOLD))); | |
48482 | } | |
48483 | { | |
48484 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)(wxITALIC))); | |
48485 | } | |
48486 | { | |
48487 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)(wxSLANT))); | |
48488 | } | |
48489 | { | |
48490 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)(wxSOLID))); | |
48491 | } | |
48492 | { | |
48493 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)(wxDOT))); | |
48494 | } | |
48495 | { | |
48496 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)(wxLONG_DASH))); | |
48497 | } | |
48498 | { | |
48499 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)(wxSHORT_DASH))); | |
48500 | } | |
48501 | { | |
48502 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)(wxDOT_DASH))); | |
48503 | } | |
48504 | { | |
48505 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)(wxUSER_DASH))); | |
48506 | } | |
48507 | { | |
48508 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)(wxTRANSPARENT))); | |
48509 | } | |
48510 | { | |
48511 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)(wxSTIPPLE))); | |
48512 | } | |
48513 | { | |
48514 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)(wxBDIAGONAL_HATCH))); | |
48515 | } | |
48516 | { | |
48517 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)(wxCROSSDIAG_HATCH))); | |
48518 | } | |
48519 | { | |
48520 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)(wxFDIAGONAL_HATCH))); | |
48521 | } | |
48522 | { | |
48523 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)(wxCROSS_HATCH))); | |
48524 | } | |
48525 | { | |
48526 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)(wxHORIZONTAL_HATCH))); | |
48527 | } | |
48528 | { | |
48529 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)(wxVERTICAL_HATCH))); | |
48530 | } | |
48531 | { | |
48532 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)(wxJOIN_BEVEL))); | |
48533 | } | |
48534 | { | |
48535 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)(wxJOIN_MITER))); | |
48536 | } | |
48537 | { | |
48538 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)(wxJOIN_ROUND))); | |
48539 | } | |
48540 | { | |
48541 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)(wxCAP_ROUND))); | |
48542 | } | |
48543 | { | |
48544 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)(wxCAP_PROJECTING))); | |
48545 | } | |
48546 | { | |
48547 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)(wxCAP_BUTT))); | |
48548 | } | |
48549 | { | |
48550 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)(wxCLEAR))); | |
48551 | } | |
48552 | { | |
48553 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)(wxXOR))); | |
48554 | } | |
48555 | { | |
48556 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)(wxINVERT))); | |
48557 | } | |
48558 | { | |
48559 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)(wxOR_REVERSE))); | |
48560 | } | |
48561 | { | |
48562 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)(wxAND_REVERSE))); | |
48563 | } | |
48564 | { | |
48565 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)(wxCOPY))); | |
48566 | } | |
48567 | { | |
48568 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)(wxAND))); | |
48569 | } | |
48570 | { | |
48571 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)(wxAND_INVERT))); | |
48572 | } | |
48573 | { | |
48574 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)(wxNO_OP))); | |
48575 | } | |
48576 | { | |
48577 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)(wxNOR))); | |
48578 | } | |
48579 | { | |
48580 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)(wxEQUIV))); | |
48581 | } | |
48582 | { | |
48583 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)(wxSRC_INVERT))); | |
48584 | } | |
48585 | { | |
48586 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)(wxOR_INVERT))); | |
48587 | } | |
48588 | { | |
48589 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)(wxNAND))); | |
48590 | } | |
48591 | { | |
48592 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)(wxOR))); | |
48593 | } | |
48594 | { | |
48595 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)(wxSET))); | |
48596 | } | |
48597 | { | |
48598 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)(WXK_BACK))); | |
48599 | } | |
48600 | { | |
48601 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)(WXK_TAB))); | |
48602 | } | |
48603 | { | |
48604 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)(WXK_RETURN))); | |
48605 | } | |
48606 | { | |
48607 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)(WXK_ESCAPE))); | |
48608 | } | |
48609 | { | |
48610 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)(WXK_SPACE))); | |
48611 | } | |
48612 | { | |
48613 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)(WXK_DELETE))); | |
48614 | } | |
48615 | { | |
48616 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)(WXK_START))); | |
48617 | } | |
48618 | { | |
48619 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)(WXK_LBUTTON))); | |
48620 | } | |
48621 | { | |
48622 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)(WXK_RBUTTON))); | |
48623 | } | |
48624 | { | |
48625 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)(WXK_CANCEL))); | |
48626 | } | |
48627 | { | |
48628 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)(WXK_MBUTTON))); | |
48629 | } | |
48630 | { | |
48631 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)(WXK_CLEAR))); | |
48632 | } | |
48633 | { | |
48634 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)(WXK_SHIFT))); | |
48635 | } | |
48636 | { | |
48637 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)(WXK_ALT))); | |
48638 | } | |
48639 | { | |
48640 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)(WXK_CONTROL))); | |
48641 | } | |
48642 | { | |
48643 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)(WXK_MENU))); | |
48644 | } | |
48645 | { | |
48646 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)(WXK_PAUSE))); | |
48647 | } | |
48648 | { | |
48649 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)(WXK_CAPITAL))); | |
48650 | } | |
48651 | { | |
48652 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)(WXK_PRIOR))); | |
48653 | } | |
48654 | { | |
48655 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)(WXK_NEXT))); | |
48656 | } | |
48657 | { | |
48658 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)(WXK_END))); | |
48659 | } | |
48660 | { | |
48661 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)(WXK_HOME))); | |
48662 | } | |
48663 | { | |
48664 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)(WXK_LEFT))); | |
48665 | } | |
48666 | { | |
48667 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)(WXK_UP))); | |
48668 | } | |
48669 | { | |
48670 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)(WXK_RIGHT))); | |
48671 | } | |
48672 | { | |
48673 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)(WXK_DOWN))); | |
48674 | } | |
48675 | { | |
48676 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)(WXK_SELECT))); | |
48677 | } | |
48678 | { | |
48679 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)(WXK_PRINT))); | |
48680 | } | |
48681 | { | |
48682 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)(WXK_EXECUTE))); | |
48683 | } | |
48684 | { | |
48685 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)(WXK_SNAPSHOT))); | |
48686 | } | |
48687 | { | |
48688 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)(WXK_INSERT))); | |
48689 | } | |
48690 | { | |
48691 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)(WXK_HELP))); | |
48692 | } | |
48693 | { | |
48694 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)(WXK_NUMPAD0))); | |
48695 | } | |
48696 | { | |
48697 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)(WXK_NUMPAD1))); | |
48698 | } | |
48699 | { | |
48700 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)(WXK_NUMPAD2))); | |
48701 | } | |
48702 | { | |
48703 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)(WXK_NUMPAD3))); | |
48704 | } | |
48705 | { | |
48706 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)(WXK_NUMPAD4))); | |
48707 | } | |
48708 | { | |
48709 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)(WXK_NUMPAD5))); | |
48710 | } | |
48711 | { | |
48712 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)(WXK_NUMPAD6))); | |
48713 | } | |
48714 | { | |
48715 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)(WXK_NUMPAD7))); | |
48716 | } | |
48717 | { | |
48718 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)(WXK_NUMPAD8))); | |
48719 | } | |
48720 | { | |
48721 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)(WXK_NUMPAD9))); | |
48722 | } | |
48723 | { | |
48724 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)(WXK_MULTIPLY))); | |
48725 | } | |
48726 | { | |
48727 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)(WXK_ADD))); | |
48728 | } | |
48729 | { | |
48730 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)(WXK_SEPARATOR))); | |
48731 | } | |
48732 | { | |
48733 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)(WXK_SUBTRACT))); | |
48734 | } | |
48735 | { | |
48736 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)(WXK_DECIMAL))); | |
48737 | } | |
48738 | { | |
48739 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)(WXK_DIVIDE))); | |
48740 | } | |
48741 | { | |
48742 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)(WXK_F1))); | |
48743 | } | |
48744 | { | |
48745 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)(WXK_F2))); | |
48746 | } | |
48747 | { | |
48748 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)(WXK_F3))); | |
48749 | } | |
48750 | { | |
48751 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)(WXK_F4))); | |
48752 | } | |
48753 | { | |
48754 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)(WXK_F5))); | |
48755 | } | |
48756 | { | |
48757 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)(WXK_F6))); | |
48758 | } | |
48759 | { | |
48760 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)(WXK_F7))); | |
48761 | } | |
48762 | { | |
48763 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)(WXK_F8))); | |
48764 | } | |
48765 | { | |
48766 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)(WXK_F9))); | |
48767 | } | |
48768 | { | |
48769 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)(WXK_F10))); | |
48770 | } | |
48771 | { | |
48772 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)(WXK_F11))); | |
48773 | } | |
48774 | { | |
48775 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)(WXK_F12))); | |
48776 | } | |
48777 | { | |
48778 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)(WXK_F13))); | |
48779 | } | |
48780 | { | |
48781 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)(WXK_F14))); | |
48782 | } | |
48783 | { | |
48784 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)(WXK_F15))); | |
48785 | } | |
48786 | { | |
48787 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)(WXK_F16))); | |
48788 | } | |
48789 | { | |
48790 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)(WXK_F17))); | |
48791 | } | |
48792 | { | |
48793 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)(WXK_F18))); | |
48794 | } | |
48795 | { | |
48796 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)(WXK_F19))); | |
48797 | } | |
48798 | { | |
48799 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)(WXK_F20))); | |
48800 | } | |
48801 | { | |
48802 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)(WXK_F21))); | |
48803 | } | |
48804 | { | |
48805 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)(WXK_F22))); | |
48806 | } | |
48807 | { | |
48808 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)(WXK_F23))); | |
48809 | } | |
48810 | { | |
48811 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)(WXK_F24))); | |
48812 | } | |
48813 | { | |
48814 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)(WXK_NUMLOCK))); | |
48815 | } | |
48816 | { | |
48817 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)(WXK_SCROLL))); | |
48818 | } | |
48819 | { | |
48820 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)(WXK_PAGEUP))); | |
48821 | } | |
48822 | { | |
48823 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)(WXK_PAGEDOWN))); | |
48824 | } | |
48825 | { | |
48826 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)(WXK_NUMPAD_SPACE))); | |
48827 | } | |
48828 | { | |
48829 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)(WXK_NUMPAD_TAB))); | |
48830 | } | |
48831 | { | |
48832 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)(WXK_NUMPAD_ENTER))); | |
48833 | } | |
48834 | { | |
48835 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)(WXK_NUMPAD_F1))); | |
48836 | } | |
48837 | { | |
48838 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)(WXK_NUMPAD_F2))); | |
48839 | } | |
48840 | { | |
48841 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)(WXK_NUMPAD_F3))); | |
48842 | } | |
48843 | { | |
48844 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)(WXK_NUMPAD_F4))); | |
48845 | } | |
48846 | { | |
48847 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)(WXK_NUMPAD_HOME))); | |
48848 | } | |
48849 | { | |
48850 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)(WXK_NUMPAD_LEFT))); | |
48851 | } | |
48852 | { | |
48853 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)(WXK_NUMPAD_UP))); | |
48854 | } | |
48855 | { | |
48856 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)(WXK_NUMPAD_RIGHT))); | |
48857 | } | |
48858 | { | |
48859 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)(WXK_NUMPAD_DOWN))); | |
48860 | } | |
48861 | { | |
48862 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)(WXK_NUMPAD_PRIOR))); | |
48863 | } | |
48864 | { | |
48865 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)(WXK_NUMPAD_PAGEUP))); | |
48866 | } | |
48867 | { | |
48868 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)(WXK_NUMPAD_NEXT))); | |
48869 | } | |
48870 | { | |
48871 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)(WXK_NUMPAD_PAGEDOWN))); | |
48872 | } | |
48873 | { | |
48874 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)(WXK_NUMPAD_END))); | |
48875 | } | |
48876 | { | |
48877 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)(WXK_NUMPAD_BEGIN))); | |
48878 | } | |
48879 | { | |
48880 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)(WXK_NUMPAD_INSERT))); | |
48881 | } | |
48882 | { | |
48883 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)(WXK_NUMPAD_DELETE))); | |
48884 | } | |
48885 | { | |
48886 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)(WXK_NUMPAD_EQUAL))); | |
48887 | } | |
48888 | { | |
48889 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)(WXK_NUMPAD_MULTIPLY))); | |
48890 | } | |
48891 | { | |
48892 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)(WXK_NUMPAD_ADD))); | |
48893 | } | |
48894 | { | |
48895 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)(WXK_NUMPAD_SEPARATOR))); | |
48896 | } | |
48897 | { | |
48898 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)(WXK_NUMPAD_SUBTRACT))); | |
48899 | } | |
48900 | { | |
48901 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)(WXK_NUMPAD_DECIMAL))); | |
48902 | } | |
48903 | { | |
48904 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)(WXK_NUMPAD_DIVIDE))); | |
48905 | } | |
48906 | { | |
48907 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)(WXK_WINDOWS_LEFT))); | |
48908 | } | |
48909 | { | |
48910 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)(WXK_WINDOWS_RIGHT))); | |
48911 | } | |
48912 | { | |
48913 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)(WXK_WINDOWS_MENU))); | |
48914 | } | |
88c6b281 RD |
48915 | { |
48916 | PyDict_SetItemString(d,"WXK_COMMAND", SWIG_From_int((int)(WXK_COMMAND))); | |
48917 | } | |
48918 | { | |
48919 | PyDict_SetItemString(d,"WXK_SPECIAL1", SWIG_From_int((int)(WXK_SPECIAL1))); | |
48920 | } | |
48921 | { | |
48922 | PyDict_SetItemString(d,"WXK_SPECIAL2", SWIG_From_int((int)(WXK_SPECIAL2))); | |
48923 | } | |
48924 | { | |
48925 | PyDict_SetItemString(d,"WXK_SPECIAL3", SWIG_From_int((int)(WXK_SPECIAL3))); | |
48926 | } | |
48927 | { | |
48928 | PyDict_SetItemString(d,"WXK_SPECIAL4", SWIG_From_int((int)(WXK_SPECIAL4))); | |
48929 | } | |
48930 | { | |
48931 | PyDict_SetItemString(d,"WXK_SPECIAL5", SWIG_From_int((int)(WXK_SPECIAL5))); | |
48932 | } | |
48933 | { | |
48934 | PyDict_SetItemString(d,"WXK_SPECIAL6", SWIG_From_int((int)(WXK_SPECIAL6))); | |
48935 | } | |
48936 | { | |
48937 | PyDict_SetItemString(d,"WXK_SPECIAL7", SWIG_From_int((int)(WXK_SPECIAL7))); | |
48938 | } | |
48939 | { | |
48940 | PyDict_SetItemString(d,"WXK_SPECIAL8", SWIG_From_int((int)(WXK_SPECIAL8))); | |
48941 | } | |
48942 | { | |
48943 | PyDict_SetItemString(d,"WXK_SPECIAL9", SWIG_From_int((int)(WXK_SPECIAL9))); | |
48944 | } | |
48945 | { | |
48946 | PyDict_SetItemString(d,"WXK_SPECIAL10", SWIG_From_int((int)(WXK_SPECIAL10))); | |
48947 | } | |
48948 | { | |
48949 | PyDict_SetItemString(d,"WXK_SPECIAL11", SWIG_From_int((int)(WXK_SPECIAL11))); | |
48950 | } | |
48951 | { | |
48952 | PyDict_SetItemString(d,"WXK_SPECIAL12", SWIG_From_int((int)(WXK_SPECIAL12))); | |
48953 | } | |
48954 | { | |
48955 | PyDict_SetItemString(d,"WXK_SPECIAL13", SWIG_From_int((int)(WXK_SPECIAL13))); | |
48956 | } | |
48957 | { | |
48958 | PyDict_SetItemString(d,"WXK_SPECIAL14", SWIG_From_int((int)(WXK_SPECIAL14))); | |
48959 | } | |
48960 | { | |
48961 | PyDict_SetItemString(d,"WXK_SPECIAL15", SWIG_From_int((int)(WXK_SPECIAL15))); | |
48962 | } | |
48963 | { | |
48964 | PyDict_SetItemString(d,"WXK_SPECIAL16", SWIG_From_int((int)(WXK_SPECIAL16))); | |
48965 | } | |
48966 | { | |
48967 | PyDict_SetItemString(d,"WXK_SPECIAL17", SWIG_From_int((int)(WXK_SPECIAL17))); | |
48968 | } | |
48969 | { | |
48970 | PyDict_SetItemString(d,"WXK_SPECIAL18", SWIG_From_int((int)(WXK_SPECIAL18))); | |
48971 | } | |
48972 | { | |
48973 | PyDict_SetItemString(d,"WXK_SPECIAL19", SWIG_From_int((int)(WXK_SPECIAL19))); | |
48974 | } | |
48975 | { | |
48976 | PyDict_SetItemString(d,"WXK_SPECIAL20", SWIG_From_int((int)(WXK_SPECIAL20))); | |
48977 | } | |
093d3ff1 RD |
48978 | { |
48979 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)(wxPAPER_NONE))); | |
48980 | } | |
48981 | { | |
48982 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)(wxPAPER_LETTER))); | |
48983 | } | |
48984 | { | |
48985 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)(wxPAPER_LEGAL))); | |
48986 | } | |
48987 | { | |
48988 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)(wxPAPER_A4))); | |
48989 | } | |
48990 | { | |
48991 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)(wxPAPER_CSHEET))); | |
48992 | } | |
48993 | { | |
48994 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)(wxPAPER_DSHEET))); | |
48995 | } | |
48996 | { | |
48997 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)(wxPAPER_ESHEET))); | |
48998 | } | |
48999 | { | |
49000 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)(wxPAPER_LETTERSMALL))); | |
49001 | } | |
49002 | { | |
49003 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)(wxPAPER_TABLOID))); | |
49004 | } | |
49005 | { | |
49006 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)(wxPAPER_LEDGER))); | |
49007 | } | |
49008 | { | |
49009 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)(wxPAPER_STATEMENT))); | |
49010 | } | |
49011 | { | |
49012 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)(wxPAPER_EXECUTIVE))); | |
49013 | } | |
49014 | { | |
49015 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)(wxPAPER_A3))); | |
49016 | } | |
49017 | { | |
49018 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)(wxPAPER_A4SMALL))); | |
49019 | } | |
49020 | { | |
49021 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)(wxPAPER_A5))); | |
49022 | } | |
49023 | { | |
49024 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)(wxPAPER_B4))); | |
49025 | } | |
49026 | { | |
49027 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)(wxPAPER_B5))); | |
49028 | } | |
49029 | { | |
49030 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)(wxPAPER_FOLIO))); | |
49031 | } | |
49032 | { | |
49033 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)(wxPAPER_QUARTO))); | |
49034 | } | |
49035 | { | |
49036 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)(wxPAPER_10X14))); | |
49037 | } | |
49038 | { | |
49039 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)(wxPAPER_11X17))); | |
49040 | } | |
49041 | { | |
49042 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)(wxPAPER_NOTE))); | |
49043 | } | |
49044 | { | |
49045 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)(wxPAPER_ENV_9))); | |
49046 | } | |
49047 | { | |
49048 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)(wxPAPER_ENV_10))); | |
49049 | } | |
49050 | { | |
49051 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)(wxPAPER_ENV_11))); | |
49052 | } | |
49053 | { | |
49054 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)(wxPAPER_ENV_12))); | |
49055 | } | |
49056 | { | |
49057 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)(wxPAPER_ENV_14))); | |
49058 | } | |
49059 | { | |
49060 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)(wxPAPER_ENV_DL))); | |
49061 | } | |
49062 | { | |
49063 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)(wxPAPER_ENV_C5))); | |
49064 | } | |
49065 | { | |
49066 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)(wxPAPER_ENV_C3))); | |
49067 | } | |
49068 | { | |
49069 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)(wxPAPER_ENV_C4))); | |
49070 | } | |
49071 | { | |
49072 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)(wxPAPER_ENV_C6))); | |
49073 | } | |
49074 | { | |
49075 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)(wxPAPER_ENV_C65))); | |
49076 | } | |
49077 | { | |
49078 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)(wxPAPER_ENV_B4))); | |
49079 | } | |
49080 | { | |
49081 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)(wxPAPER_ENV_B5))); | |
49082 | } | |
49083 | { | |
49084 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)(wxPAPER_ENV_B6))); | |
49085 | } | |
49086 | { | |
49087 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)(wxPAPER_ENV_ITALY))); | |
49088 | } | |
49089 | { | |
49090 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)(wxPAPER_ENV_MONARCH))); | |
49091 | } | |
49092 | { | |
49093 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)(wxPAPER_ENV_PERSONAL))); | |
49094 | } | |
49095 | { | |
49096 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)(wxPAPER_FANFOLD_US))); | |
49097 | } | |
49098 | { | |
49099 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)(wxPAPER_FANFOLD_STD_GERMAN))); | |
49100 | } | |
49101 | { | |
49102 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)(wxPAPER_FANFOLD_LGL_GERMAN))); | |
49103 | } | |
49104 | { | |
49105 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)(wxPAPER_ISO_B4))); | |
49106 | } | |
49107 | { | |
49108 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)(wxPAPER_JAPANESE_POSTCARD))); | |
49109 | } | |
49110 | { | |
49111 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)(wxPAPER_9X11))); | |
49112 | } | |
49113 | { | |
49114 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)(wxPAPER_10X11))); | |
49115 | } | |
49116 | { | |
49117 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)(wxPAPER_15X11))); | |
49118 | } | |
49119 | { | |
49120 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)(wxPAPER_ENV_INVITE))); | |
49121 | } | |
49122 | { | |
49123 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)(wxPAPER_LETTER_EXTRA))); | |
49124 | } | |
49125 | { | |
49126 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)(wxPAPER_LEGAL_EXTRA))); | |
49127 | } | |
49128 | { | |
49129 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)(wxPAPER_TABLOID_EXTRA))); | |
49130 | } | |
49131 | { | |
49132 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)(wxPAPER_A4_EXTRA))); | |
49133 | } | |
49134 | { | |
49135 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)(wxPAPER_LETTER_TRANSVERSE))); | |
49136 | } | |
49137 | { | |
49138 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A4_TRANSVERSE))); | |
49139 | } | |
49140 | { | |
49141 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)(wxPAPER_LETTER_EXTRA_TRANSVERSE))); | |
49142 | } | |
49143 | { | |
49144 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)(wxPAPER_A_PLUS))); | |
49145 | } | |
49146 | { | |
49147 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)(wxPAPER_B_PLUS))); | |
49148 | } | |
49149 | { | |
49150 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)(wxPAPER_LETTER_PLUS))); | |
49151 | } | |
49152 | { | |
49153 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)(wxPAPER_A4_PLUS))); | |
49154 | } | |
49155 | { | |
49156 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A5_TRANSVERSE))); | |
49157 | } | |
49158 | { | |
49159 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)(wxPAPER_B5_TRANSVERSE))); | |
49160 | } | |
49161 | { | |
49162 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)(wxPAPER_A3_EXTRA))); | |
49163 | } | |
49164 | { | |
49165 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)(wxPAPER_A5_EXTRA))); | |
49166 | } | |
49167 | { | |
49168 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)(wxPAPER_B5_EXTRA))); | |
49169 | } | |
49170 | { | |
49171 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)(wxPAPER_A2))); | |
49172 | } | |
49173 | { | |
49174 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A3_TRANSVERSE))); | |
49175 | } | |
49176 | { | |
49177 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A3_EXTRA_TRANSVERSE))); | |
49178 | } | |
49179 | { | |
49180 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)(wxDUPLEX_SIMPLEX))); | |
49181 | } | |
49182 | { | |
49183 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)(wxDUPLEX_HORIZONTAL))); | |
49184 | } | |
49185 | { | |
49186 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)(wxDUPLEX_VERTICAL))); | |
49187 | } | |
49188 | { | |
49189 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)(wxITEM_SEPARATOR))); | |
49190 | } | |
49191 | { | |
49192 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)(wxITEM_NORMAL))); | |
49193 | } | |
49194 | { | |
49195 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)(wxITEM_CHECK))); | |
49196 | } | |
49197 | { | |
49198 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)(wxITEM_RADIO))); | |
49199 | } | |
49200 | { | |
49201 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)(wxITEM_MAX))); | |
49202 | } | |
49203 | { | |
49204 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)(wxHT_NOWHERE))); | |
49205 | } | |
49206 | { | |
49207 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)(wxHT_SCROLLBAR_FIRST))); | |
49208 | } | |
49209 | { | |
49210 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_LINE_1))); | |
49211 | } | |
49212 | { | |
49213 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_LINE_2))); | |
49214 | } | |
49215 | { | |
49216 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_PAGE_1))); | |
49217 | } | |
49218 | { | |
49219 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_PAGE_2))); | |
49220 | } | |
49221 | { | |
49222 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)(wxHT_SCROLLBAR_THUMB))); | |
49223 | } | |
49224 | { | |
49225 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)(wxHT_SCROLLBAR_BAR_1))); | |
49226 | } | |
49227 | { | |
49228 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)(wxHT_SCROLLBAR_BAR_2))); | |
49229 | } | |
49230 | { | |
49231 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)(wxHT_SCROLLBAR_LAST))); | |
49232 | } | |
49233 | { | |
49234 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)(wxHT_WINDOW_OUTSIDE))); | |
49235 | } | |
49236 | { | |
49237 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)(wxHT_WINDOW_INSIDE))); | |
49238 | } | |
49239 | { | |
49240 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)(wxHT_WINDOW_VERT_SCROLLBAR))); | |
49241 | } | |
49242 | { | |
49243 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)(wxHT_WINDOW_HORZ_SCROLLBAR))); | |
49244 | } | |
49245 | { | |
49246 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)(wxHT_WINDOW_CORNER))); | |
49247 | } | |
49248 | { | |
49249 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)(wxHT_MAX))); | |
49250 | } | |
49251 | { | |
49252 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)(wxMOD_NONE))); | |
49253 | } | |
49254 | { | |
49255 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)(wxMOD_ALT))); | |
49256 | } | |
49257 | { | |
49258 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)(wxMOD_CONTROL))); | |
49259 | } | |
49260 | { | |
49261 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)(wxMOD_SHIFT))); | |
49262 | } | |
49263 | { | |
49264 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)(wxMOD_WIN))); | |
49265 | } | |
49266 | { | |
49267 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)(wxUPDATE_UI_NONE))); | |
49268 | } | |
49269 | { | |
49270 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)(wxUPDATE_UI_RECURSE))); | |
49271 | } | |
49272 | { | |
49273 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)(wxUPDATE_UI_FROMIDLE))); | |
49274 | } | |
49275 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
49276 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
49277 | { | |
49278 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)(wxBITMAP_TYPE_INVALID))); | |
49279 | } | |
49280 | { | |
49281 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)(wxBITMAP_TYPE_BMP))); | |
49282 | } | |
49283 | { | |
49284 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)(wxBITMAP_TYPE_ICO))); | |
49285 | } | |
49286 | { | |
49287 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)(wxBITMAP_TYPE_CUR))); | |
49288 | } | |
49289 | { | |
49290 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)(wxBITMAP_TYPE_XBM))); | |
49291 | } | |
49292 | { | |
49293 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)(wxBITMAP_TYPE_XBM_DATA))); | |
49294 | } | |
49295 | { | |
49296 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)(wxBITMAP_TYPE_XPM))); | |
49297 | } | |
49298 | { | |
49299 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)(wxBITMAP_TYPE_XPM_DATA))); | |
49300 | } | |
49301 | { | |
49302 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)(wxBITMAP_TYPE_TIF))); | |
49303 | } | |
49304 | { | |
49305 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)(wxBITMAP_TYPE_GIF))); | |
49306 | } | |
49307 | { | |
49308 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)(wxBITMAP_TYPE_PNG))); | |
49309 | } | |
49310 | { | |
49311 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)(wxBITMAP_TYPE_JPEG))); | |
49312 | } | |
49313 | { | |
49314 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)(wxBITMAP_TYPE_PNM))); | |
49315 | } | |
49316 | { | |
49317 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)(wxBITMAP_TYPE_PCX))); | |
49318 | } | |
49319 | { | |
49320 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)(wxBITMAP_TYPE_PICT))); | |
49321 | } | |
49322 | { | |
49323 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)(wxBITMAP_TYPE_ICON))); | |
49324 | } | |
49325 | { | |
49326 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)(wxBITMAP_TYPE_ANI))); | |
49327 | } | |
49328 | { | |
49329 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)(wxBITMAP_TYPE_IFF))); | |
49330 | } | |
49331 | { | |
49332 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)(wxBITMAP_TYPE_MACCURSOR))); | |
49333 | } | |
49334 | { | |
49335 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)(wxBITMAP_TYPE_ANY))); | |
49336 | } | |
49337 | { | |
49338 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)(wxCURSOR_NONE))); | |
49339 | } | |
49340 | { | |
49341 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)(wxCURSOR_ARROW))); | |
49342 | } | |
49343 | { | |
49344 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)(wxCURSOR_RIGHT_ARROW))); | |
49345 | } | |
49346 | { | |
49347 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)(wxCURSOR_BULLSEYE))); | |
49348 | } | |
49349 | { | |
49350 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)(wxCURSOR_CHAR))); | |
49351 | } | |
49352 | { | |
49353 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)(wxCURSOR_CROSS))); | |
49354 | } | |
49355 | { | |
49356 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)(wxCURSOR_HAND))); | |
49357 | } | |
49358 | { | |
49359 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)(wxCURSOR_IBEAM))); | |
49360 | } | |
49361 | { | |
49362 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)(wxCURSOR_LEFT_BUTTON))); | |
49363 | } | |
49364 | { | |
49365 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)(wxCURSOR_MAGNIFIER))); | |
49366 | } | |
49367 | { | |
49368 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)(wxCURSOR_MIDDLE_BUTTON))); | |
49369 | } | |
49370 | { | |
49371 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)(wxCURSOR_NO_ENTRY))); | |
49372 | } | |
49373 | { | |
49374 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)(wxCURSOR_PAINT_BRUSH))); | |
49375 | } | |
49376 | { | |
49377 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)(wxCURSOR_PENCIL))); | |
49378 | } | |
49379 | { | |
49380 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)(wxCURSOR_POINT_LEFT))); | |
49381 | } | |
49382 | { | |
49383 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)(wxCURSOR_POINT_RIGHT))); | |
49384 | } | |
49385 | { | |
49386 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)(wxCURSOR_QUESTION_ARROW))); | |
49387 | } | |
49388 | { | |
49389 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)(wxCURSOR_RIGHT_BUTTON))); | |
49390 | } | |
49391 | { | |
49392 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)(wxCURSOR_SIZENESW))); | |
49393 | } | |
49394 | { | |
49395 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)(wxCURSOR_SIZENS))); | |
49396 | } | |
49397 | { | |
49398 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)(wxCURSOR_SIZENWSE))); | |
49399 | } | |
49400 | { | |
49401 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)(wxCURSOR_SIZEWE))); | |
49402 | } | |
49403 | { | |
49404 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)(wxCURSOR_SIZING))); | |
49405 | } | |
49406 | { | |
49407 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)(wxCURSOR_SPRAYCAN))); | |
49408 | } | |
49409 | { | |
49410 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)(wxCURSOR_WAIT))); | |
49411 | } | |
49412 | { | |
49413 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)(wxCURSOR_WATCH))); | |
49414 | } | |
49415 | { | |
49416 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)(wxCURSOR_BLANK))); | |
49417 | } | |
49418 | { | |
49419 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)(wxCURSOR_DEFAULT))); | |
49420 | } | |
49421 | { | |
49422 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)(wxCURSOR_COPY_ARROW))); | |
49423 | } | |
49424 | { | |
49425 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)(wxCURSOR_ARROWWAIT))); | |
49426 | } | |
49427 | { | |
49428 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)(wxCURSOR_MAX))); | |
49429 | } | |
49430 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
49431 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
49432 | { | |
49433 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)(wxFromStart))); | |
49434 | } | |
49435 | { | |
49436 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)(wxFromCurrent))); | |
49437 | } | |
49438 | { | |
49439 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)(wxFromEnd))); | |
49440 | } | |
49441 | ||
49442 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
49443 | ||
49444 | ||
49445 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
49446 | ||
49447 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
0c243d93 | 49448 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_FILENAME",_wrap_IMAGE_OPTION_FILENAME_get, _wrap_IMAGE_OPTION_FILENAME_set); |
093d3ff1 RD |
49449 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); |
49450 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
49451 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
49452 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
0c243d93 RD |
49453 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONX",_wrap_IMAGE_OPTION_RESOLUTIONX_get, _wrap_IMAGE_OPTION_RESOLUTIONX_set); |
49454 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONY",_wrap_IMAGE_OPTION_RESOLUTIONY_get, _wrap_IMAGE_OPTION_RESOLUTIONY_set); | |
093d3ff1 | 49455 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); |
24d7cbea | 49456 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_QUALITY",_wrap_IMAGE_OPTION_QUALITY_get, _wrap_IMAGE_OPTION_QUALITY_set); |
093d3ff1 RD |
49457 | { |
49458 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)(wxIMAGE_RESOLUTION_INCHES))); | |
49459 | } | |
49460 | { | |
49461 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)(wxIMAGE_RESOLUTION_CM))); | |
49462 | } | |
0c243d93 RD |
49463 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BITSPERSAMPLE",_wrap_IMAGE_OPTION_BITSPERSAMPLE_get, _wrap_IMAGE_OPTION_BITSPERSAMPLE_set); |
49464 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_SAMPLESPERPIXEL",_wrap_IMAGE_OPTION_SAMPLESPERPIXEL_get, _wrap_IMAGE_OPTION_SAMPLESPERPIXEL_set); | |
49465 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_COMPRESSION",_wrap_IMAGE_OPTION_COMPRESSION_get, _wrap_IMAGE_OPTION_COMPRESSION_set); | |
49466 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_IMAGEDESCRIPTOR",_wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_get, _wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_set); | |
b9d6a5f3 RD |
49467 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_PNG_FORMAT",_wrap_IMAGE_OPTION_PNG_FORMAT_get, _wrap_IMAGE_OPTION_PNG_FORMAT_set); |
49468 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_PNG_BITDEPTH",_wrap_IMAGE_OPTION_PNG_BITDEPTH_get, _wrap_IMAGE_OPTION_PNG_BITDEPTH_set); | |
49469 | { | |
49470 | PyDict_SetItemString(d,"PNG_TYPE_COLOUR", SWIG_From_int((int)(wxPNG_TYPE_COLOUR))); | |
49471 | } | |
49472 | { | |
49473 | PyDict_SetItemString(d,"PNG_TYPE_GREY", SWIG_From_int((int)(wxPNG_TYPE_GREY))); | |
49474 | } | |
49475 | { | |
49476 | PyDict_SetItemString(d,"PNG_TYPE_GREY_RED", SWIG_From_int((int)(wxPNG_TYPE_GREY_RED))); | |
49477 | } | |
093d3ff1 RD |
49478 | { |
49479 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)(wxBMP_24BPP))); | |
49480 | } | |
49481 | { | |
49482 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)(wxBMP_8BPP))); | |
49483 | } | |
49484 | { | |
49485 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)(wxBMP_8BPP_GREY))); | |
49486 | } | |
49487 | { | |
49488 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)(wxBMP_8BPP_GRAY))); | |
49489 | } | |
49490 | { | |
49491 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)(wxBMP_8BPP_RED))); | |
49492 | } | |
49493 | { | |
49494 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)(wxBMP_8BPP_PALETTE))); | |
49495 | } | |
49496 | { | |
49497 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)(wxBMP_4BPP))); | |
49498 | } | |
49499 | { | |
49500 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)(wxBMP_1BPP))); | |
49501 | } | |
49502 | { | |
49503 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)(wxBMP_1BPP_BW))); | |
49504 | } | |
49505 | { | |
49506 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)(wxQUANTIZE_INCLUDE_WINDOWS_COLOURS))); | |
49507 | } | |
49508 | { | |
49509 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)(wxQUANTIZE_FILL_DESTINATION_IMAGE))); | |
49510 | } | |
49511 | { | |
49512 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)(wxEVENT_PROPAGATE_NONE))); | |
49513 | } | |
49514 | { | |
49515 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)(wxEVENT_PROPAGATE_MAX))); | |
49516 | } | |
49517 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
49518 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
49519 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
49520 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
49521 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
49522 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
49523 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
49524 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
49525 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
49526 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
49527 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
49528 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
49529 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
49530 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
49531 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
49532 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
49533 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
49534 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
49535 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
49536 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
49537 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
49538 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
49539 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
49540 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
49541 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
49542 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
49543 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
49544 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
49545 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
49546 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
49547 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
49548 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
49549 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
49550 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
49551 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
49552 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
49553 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
49554 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
49555 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
49556 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
49557 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
49558 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
49559 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
49560 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
49561 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
49562 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
49563 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
49564 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
49565 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
49566 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
49567 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
49568 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
49569 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
49570 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
49571 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
49572 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
49573 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
49574 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
49575 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
49576 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
49577 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
49578 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
49579 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
49580 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
49581 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
49582 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
49583 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
49584 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
49585 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
49586 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
49587 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
49588 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
49589 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
49590 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
49591 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
49592 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
49593 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
49594 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
49595 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
49596 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
49597 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
49598 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
49599 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
49600 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
49601 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
49602 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
49603 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
49604 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
49605 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
49606 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
49607 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
49608 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
49609 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
49610 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
49611 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
49612 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
49613 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
49614 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
49615 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
49616 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
49617 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
49618 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
49619 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
49620 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
49621 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
49622 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
49623 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
88c6b281 | 49624 | PyDict_SetItemString(d, "wxEVT_HIBERNATE", PyInt_FromLong(wxEVT_HIBERNATE)); |
093d3ff1 RD |
49625 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); |
49626 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
49627 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
49628 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
49629 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
49630 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
49631 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
49632 | { | |
49633 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)(wxMOUSE_BTN_ANY))); | |
49634 | } | |
49635 | { | |
49636 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)(wxMOUSE_BTN_NONE))); | |
49637 | } | |
49638 | { | |
49639 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)(wxMOUSE_BTN_LEFT))); | |
49640 | } | |
49641 | { | |
49642 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)(wxMOUSE_BTN_MIDDLE))); | |
49643 | } | |
49644 | { | |
49645 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)(wxMOUSE_BTN_RIGHT))); | |
49646 | } | |
49647 | { | |
49648 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)(wxUPDATE_UI_PROCESS_ALL))); | |
49649 | } | |
49650 | { | |
49651 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)(wxUPDATE_UI_PROCESS_SPECIFIED))); | |
49652 | } | |
49653 | { | |
49654 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)(wxNavigationKeyEvent::IsBackward))); | |
49655 | } | |
49656 | { | |
49657 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)(wxNavigationKeyEvent::IsForward))); | |
49658 | } | |
49659 | { | |
49660 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)(wxNavigationKeyEvent::WinChange))); | |
49661 | } | |
68350608 RD |
49662 | { |
49663 | PyDict_SetItemString(d,"NavigationKeyEvent_FromTab", SWIG_From_int((int)(wxNavigationKeyEvent::FromTab))); | |
49664 | } | |
093d3ff1 RD |
49665 | { |
49666 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)(wxIDLE_PROCESS_ALL))); | |
49667 | } | |
49668 | { | |
49669 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)(wxIDLE_PROCESS_SPECIFIED))); | |
49670 | } | |
53aa7709 | 49671 | PyDict_SetItemString(d, "wxEVT_DATE_CHANGED", PyInt_FromLong(wxEVT_DATE_CHANGED)); |
093d3ff1 RD |
49672 | { |
49673 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)(wxPYAPP_ASSERT_SUPPRESS))); | |
49674 | } | |
49675 | { | |
49676 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)(wxPYAPP_ASSERT_EXCEPTION))); | |
49677 | } | |
49678 | { | |
49679 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)(wxPYAPP_ASSERT_DIALOG))); | |
49680 | } | |
49681 | { | |
49682 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)(wxPYAPP_ASSERT_LOG))); | |
49683 | } | |
49684 | { | |
49685 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)(wxPRINT_WINDOWS))); | |
49686 | } | |
49687 | { | |
49688 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)(wxPRINT_POSTSCRIPT))); | |
49689 | } | |
49690 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); | |
49691 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
49692 | { | |
49693 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)(wxWINDOW_VARIANT_NORMAL))); | |
49694 | } | |
49695 | { | |
49696 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)(wxWINDOW_VARIANT_SMALL))); | |
49697 | } | |
49698 | { | |
49699 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)(wxWINDOW_VARIANT_MINI))); | |
49700 | } | |
49701 | { | |
49702 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)(wxWINDOW_VARIANT_LARGE))); | |
49703 | } | |
49704 | { | |
49705 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)(wxWINDOW_VARIANT_MAX))); | |
49706 | } | |
49707 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); | |
49708 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
49709 | { | |
49710 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)(wxFLEX_GROWMODE_NONE))); | |
49711 | } | |
49712 | { | |
49713 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)(wxFLEX_GROWMODE_SPECIFIED))); | |
49714 | } | |
49715 | { | |
49716 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)(wxFLEX_GROWMODE_ALL))); | |
49717 | } | |
49718 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
49719 | { | |
49720 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)(wxLeft))); | |
49721 | } | |
49722 | { | |
49723 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)(wxTop))); | |
49724 | } | |
49725 | { | |
49726 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)(wxRight))); | |
49727 | } | |
49728 | { | |
49729 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)(wxBottom))); | |
49730 | } | |
49731 | { | |
49732 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)(wxWidth))); | |
49733 | } | |
49734 | { | |
49735 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)(wxHeight))); | |
49736 | } | |
49737 | { | |
49738 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)(wxCentre))); | |
49739 | } | |
49740 | { | |
49741 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)(wxCenter))); | |
49742 | } | |
49743 | { | |
49744 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)(wxCentreX))); | |
49745 | } | |
49746 | { | |
49747 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)(wxCentreY))); | |
49748 | } | |
49749 | { | |
49750 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)(wxUnconstrained))); | |
49751 | } | |
49752 | { | |
49753 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)(wxAsIs))); | |
49754 | } | |
49755 | { | |
49756 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)(wxPercentOf))); | |
49757 | } | |
49758 | { | |
49759 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)(wxAbove))); | |
49760 | } | |
49761 | { | |
49762 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)(wxBelow))); | |
49763 | } | |
49764 | { | |
49765 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)(wxLeftOf))); | |
49766 | } | |
49767 | { | |
49768 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)(wxRightOf))); | |
49769 | } | |
49770 | { | |
49771 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)(wxSameAs))); | |
49772 | } | |
49773 | { | |
49774 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)(wxAbsolute))); | |
49775 | } | |
d14a1e28 RD |
49776 | |
49777 | // Initialize threading, some globals and such | |
49778 | __wxPyPreStart(d); | |
49779 | ||
49780 | ||
49781 | // Although these are defined in __version__ they need to be here too so | |
49782 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
49783 | // versions match. | |
49784 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
49785 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
49786 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
49787 | ||
49788 | } | |
49789 |